ShortcutContext

Constructors

this
this(DzlShortcutContext* dzlShortcutContext, bool ownedRef = false)

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

this
this(string name)

Members

Functions

activate
DzlShortcutMatch activate(Widget widget, ShortcutChord chord)
addAction
void addAction(string accel, string detailedActionName)
addCommand
void addCommand(string accel, string command)
addSignalVaList
void addSignalVaList(string accel, string signalName, uint nArgs, void* args)
addSignalv
void addSignalv(string accel, string signalName, ArrayG values)

This is similar to dzl_shortcut_context_add_signal() but is easier to use from language bindings.

getName
string getName()
getShortcutContextStruct
DzlShortcutContext* getShortcutContextStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

loadFromData
bool loadFromData(string data, ptrdiff_t len)
loadFromResource
bool loadFromResource(string resourcePath)
remove
bool remove(string accel)

Static functions

getType
GType getType()

Variables

dzlShortcutContext
DzlShortcutContext* dzlShortcutContext;

the main Gtk struct

Meta