Table of Contents

Class ShortcutAction

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

Constructors

ShortcutAction(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 ShortcutAction(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

ShortcutAction(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected ShortcutAction(CreationData data)

Parameters

data CreationData

ShortcutAction(ShortcutActionHandle)

protected ShortcutAction(ShortcutActionHandle handle)

Parameters

handle ShortcutActionHandle

Methods

Activate(ShortcutActionFlags, Widget, Variant?)

public bool Activate(ShortcutActionFlags flags, Widget widget, Variant? args)

Parameters

flags ShortcutActionFlags
widget Widget
args Variant

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

NewFromPointer(nint, bool)

Creates a new managed ShortcutAction instance for a given pointer.

public static ShortcutAction NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

ShortcutAction

NewWithProperties(ConstructArgument[])

Creates a new ShortcutAction and sets the properties specified by the construct arguments.

public static ShortcutAction NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

ShortcutAction

ParseString(string)

public static ShortcutAction? ParseString(string @string)

Parameters

string string

Returns

ShortcutAction

Print(String)

public void Print(String @string)

Parameters

string String

ToString()

public string ToString()

Returns

string