Table of Contents

Class Shortcut

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class Shortcut : Object, IDisposable, GTypeProvider, InstanceFactory
Inheritance
Shortcut
Implements
Inherited Members

Constructors

Shortcut(params ConstructArgument[])

public Shortcut(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Shortcut(ShortcutHandle)

public Shortcut(ShortcutHandle handle)

Parameters

handle ShortcutHandle

Fields

ActionPropertyDefinition

public static readonly Property<ShortcutAction?, Shortcut> ActionPropertyDefinition

Field Value

Property<ShortcutAction, Shortcut>

TriggerPropertyDefinition

public static readonly Property<ShortcutTrigger?, Shortcut> TriggerPropertyDefinition

Field Value

Property<ShortcutTrigger, Shortcut>

Properties

Action

public ShortcutAction? Action { get; set; }

Property Value

ShortcutAction

Trigger

public ShortcutTrigger? Trigger { get; set; }

Property Value

ShortcutTrigger

Methods

GetAction()

public ShortcutAction? GetAction()

Returns

ShortcutAction

GetArguments()

public Variant? GetArguments()

Returns

Variant

GetGType()

public static Type GetGType()

Returns

Type

GetTrigger()

public ShortcutTrigger? GetTrigger()

Returns

ShortcutTrigger

New(ShortcutTrigger?, ShortcutAction?)

public static Shortcut New(ShortcutTrigger? trigger, ShortcutAction? action)

Parameters

trigger ShortcutTrigger
action ShortcutAction

Returns

Shortcut

SetAction(ShortcutAction?)

public void SetAction(ShortcutAction? action)

Parameters

action ShortcutAction

SetArguments(Variant?)

public void SetArguments(Variant? args)

Parameters

args Variant

SetTrigger(ShortcutTrigger?)

public void SetTrigger(ShortcutTrigger? trigger)

Parameters

trigger ShortcutTrigger