Table of Contents

Class CallbackAction

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

CallbackAction(CreationData)

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

Parameters

data CreationData

CallbackAction(CallbackActionHandle)

protected CallbackAction(CallbackActionHandle handle)

Parameters

handle CallbackActionHandle

Methods

GetGType()

public static Type GetGType()

Returns

Type

New(ShortcutFunc)

public static CallbackAction New(ShortcutFunc callback)

Parameters

callback ShortcutFunc

A callback. If it raises an exception the application will terminate. To receive this unhandled exception see SetHandler(Action<Exception>?).

Returns

CallbackAction

NewFromPointer(nint, bool)

Creates a new managed CallbackAction instance for a given pointer.

public static CallbackAction NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

CallbackAction

NewWithProperties(ConstructArgument[])

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

public static CallbackAction NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

CallbackAction