gtk.accel_group
Module for [AccelGroup] class
Types 3
A #GtkAccelGroup represents a group of keyboard accelerators, typically attached to a toplevel #GtkWindow (with gtk.window.Window.addAccelGroup). Usually you won’t need to create a #GtkAccelGroup directly; instead, when using #GtkUIManager, GTK+ automatically sets up the accelerators for your menus in the ui manager’s #GtkAccelGroup.
Note that “accelerators” are different from “mnemonics”. Accelerators are shortcuts for activating a menu item; they appear alongside the menu item they’re a shortcut for. For example “Ctrl+Q” might appear alongside the “Quit” menu item. Mnemonics are shortcuts for GUI elements such as text entries or buttons; they appear as underlined characters. See gtk.label.Label.newWithMnemonic. Menu items can have both accelerators and mnemonics, of course.
AccelGroupGidBuilder builder() static nothrowGet builder for [gtk.accel_group.AccelGroup] Returns: New builder objectgtk.accel_group.AccelGroup fromAccelClosure(gobject.closure.Closure closure) static nothrowFinds the #GtkAccelGroup to which closure is connected; see [gtk.accel_group.AccelGroup.connect].bool activate(glib.types.Quark accelQuark, gobject.object.ObjectWrap acceleratable, uint accelKey, gdk.types.ModifierType accelMods) nothrowFinds the first accelerator in accel_group that matches accel_key and accel_mods, and activates it.void connect(uint accelKey, gdk.types.ModifierType accelMods, gtk.types.AccelFlags accelFlags, gobject.closure.Closure closure) nothrowInstalls an accelerator in this group. When accel_group is being activated in response to a call to [gtk.global.accelGroupsActivate], closure will be invoked if the accel_key and accel_mods from [g...void connectByPath(string accelPath, gobject.closure.Closure closure) nothrowInstalls an accelerator in this group, using an accelerator path to look up the appropriate key and modifiers (see [gtk.accel_map.AccelMap.addEntry]). When accel_group is being activated in respons...bool disconnect(gobject.closure.Closure closure = null) nothrowRemoves an accelerator previously installed through [gtk.accel_group.AccelGroup.connect].bool disconnectKey(uint accelKey, gdk.types.ModifierType accelMods) nothrowRemoves an accelerator previously installed through [gtk.accel_group.AccelGroup.connect].gtk.types.AccelKey find(gtk.types.AccelGroupFindFunc findFunc) nothrowFinds the first entry in an accelerator group for which find_func returns true and returns its #GtkAccelKey.bool getIsLocked() nothrowLocks are added and removed using [gtk.accel_group.AccelGroup.lock] and [gtk.accel_group.AccelGroup.unlock]. Returns: true if there are 1 or more locks on the accel_group, false otherwise.gdk.types.ModifierType getModifierMask() nothrowGets a #GdkModifierType representing the mask for this accel_group. For example, #GDK_CONTROL_MASK, #GDK_SHIFT_MASK, etc. Returns: the modifier mask for this accel group.gulong connectAccelActivate(T)(string detail = null, T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gobject.object.ObjectWrap)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == uint)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == gdk.types.ModifierType)))
&& (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gtk.accel_group.AccelGroup)))
&& Parameters!T.length < 5) nothrowConnect to `AccelActivate` signal.gulong connectAccelChanged(T)(string detail = null, T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == uint)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gdk.types.ModifierType)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == gobject.closure.Closure)))
&& (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gtk.accel_group.AccelGroup)))
&& Parameters!T.length < 5) nothrowConnect to `AccelChanged` signal.Fluent builder implementation template for gtk.accel_group.AccelGroup
Fluent builder for gtk.accel_group.AccelGroup