SignalAction

A gtk.shortcut.ShortcutAction that emits a signal.

Signals that are used in this way are referred to as keybinding signals, and they are expected to be defined with the G_SIGNAL_ACTION flag.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(string signalName)

Creates an action that when activated, emits the given action signal on the provided widget.

Members

Functions

getSignalName
string getSignalName()

Returns the name of the signal that will be emitted.

self
SignalAction self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]

Static functions

getGType
GType getGType()

Inherited Members

From ShortcutAction

getGType
GType getGType()
gType
GType gType [@property getter]
self
ShortcutAction self()

Returns this, for use in with statements.

parseString
gtk.shortcut_action.ShortcutAction parseString(string string_)

Tries to parse the given string into an action.

activate
bool activate(gtk.types.ShortcutActionFlags flags, gtk.widget.Widget widget, glib.variant.VariantG args)

Activates the action on the widget with the given args.

print
void print(glib.string_.String string_)

Prints the given action into a string for the developer.

toString_
string toString_()

Prints the given action into a human-readable string.