CallbackAction

A GtkShortcutAction that invokes a callback.

Constructors

this
this(GtkCallbackAction* gtkCallbackAction, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(GtkShortcutFunc callback, void* data, GDestroyNotify destroy)

Create a custom action that calls the given @callback when activated.

Members

Functions

getCallbackActionStruct
GtkCallbackAction* getCallbackActionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gtkCallbackAction
GtkCallbackAction* gtkCallbackAction;

the main Gtk struct

Inherited Members

From ShortcutAction

gtkShortcutAction
GtkShortcutAction* gtkShortcutAction;

the main Gtk struct

getShortcutActionStruct
GtkShortcutAction* getShortcutActionStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
activate
bool activate(GtkShortcutActionFlags flags, Widget widget, Variant args)

Activates the action on the @widget with the given @args.

print
void print(StringG string_)

Prints the given action into a string for the developer.

toString
string toString()

Prints the given action into a human-readable string.

Meta