Table of Contents

Class NamedAction

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

NamedAction(CreationData)

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

Parameters

data CreationData

NamedAction(NamedActionHandle)

protected NamedAction(NamedActionHandle handle)

Parameters

handle NamedActionHandle

Fields

ActionNamePropertyDefinition

public static readonly Property<string?, NamedAction> ActionNamePropertyDefinition

Field Value

Property<string, NamedAction>

Properties

ActionName

public string? ActionName { get; }

Property Value

string

Methods

GetActionName()

public string GetActionName()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

New(string)

public static NamedAction New(string name)

Parameters

name string

Returns

NamedAction

NewFromPointer(nint, bool)

Creates a new managed NamedAction instance for a given pointer.

public static NamedAction NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

NamedAction

NewWithProperties(ConstructArgument[])

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

public static NamedAction NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

NamedAction