Class ShortcutTrigger
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class ShortcutTrigger : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
ShortcutTrigger
- Implements
- Derived
- Inherited Members
Constructors
ShortcutTrigger(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public ShortcutTrigger(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
ShortcutTrigger(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ShortcutTrigger(CreationData data)
Parameters
dataCreationData
ShortcutTrigger(ShortcutTriggerHandle)
protected ShortcutTrigger(ShortcutTriggerHandle handle)
Parameters
handleShortcutTriggerHandle
Methods
Compare(nint)
public int Compare(nint trigger2)
Parameters
trigger2nint
Returns
Equal(nint)
public bool Equal(nint trigger2)
Parameters
trigger2nint
Returns
GetGType()
public static Type GetGType()
Returns
Hash()
public uint Hash()
Returns
NewFromPointer(nint, bool)
Creates a new managed ShortcutTrigger instance for a given pointer.
public static ShortcutTrigger NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new ShortcutTrigger and sets the properties specified by the construct arguments.
public static ShortcutTrigger NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ParseString(string)
public static ShortcutTrigger? ParseString(string @string)
Parameters
stringstring
Returns
Print(String)
public void Print(String @string)
Parameters
stringString
PrintLabel(Display, String)
public bool PrintLabel(Display display, String @string)
Parameters
Returns
ToLabel(Display)
public string ToLabel(Display display)
Parameters
displayDisplay
Returns
ToString()
public string ToString()
Returns
Trigger(Event, bool)
public KeyMatch Trigger(Event @event, bool enableMnemonics)