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
constructArgumentsConstructArgument[]
NamedAction(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected NamedAction(CreationData data)
Parameters
dataCreationData
NamedAction(NamedActionHandle)
protected NamedAction(NamedActionHandle handle)
Parameters
handleNamedActionHandle
Fields
ActionNamePropertyDefinition
public static readonly Property<string?, NamedAction> ActionNamePropertyDefinition
Field Value
Properties
ActionName
public string? ActionName { get; }
Property Value
Methods
GetActionName()
public string GetActionName()
Returns
GetGType()
public static Type GetGType()
Returns
New(string)
public static NamedAction New(string name)
Parameters
namestring
Returns
NewFromPointer(nint, bool)
Creates a new managed NamedAction instance for a given pointer.
public static NamedAction NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new NamedAction and sets the properties specified by the construct arguments.
public static NamedAction NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.