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.
AccelGroup self()Returns `this`, for use in `with` statements.AccelGroupGidBuilder builder()Get builder for [gtk.accel_group.AccelGroup] Returns: New builder objectbool isLocked() @propertygdk.types.ModifierType modifierMask() @propertygtk.accel_group.AccelGroup fromAccelClosure(gobject.closure.Closure closure)Finds 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)Finds the first accelerator in accelgroup that matches accelkey and accel_mods, and activates it.void connect(uint accelKey, gdk.types.ModifierType accelMods, gtk.types.AccelFlags accelFlags, gobject.closure.Closure closure)Installs an accelerator in this group. When accelgroup is being activated in response to a call to [gtk.global.accelGroupsActivate], closure will be invoked if the accelkey and accel_mods from [gtk...void connectByPath(string accelPath, gobject.closure.Closure closure)Installs an accelerator in this group, using an accelerator path to look up the appropriate key and modifiers (see [gtk.accelmap.AccelMap.addEntry]). When accelgroup is being activated in response ...bool disconnect(gobject.closure.Closure closure = null)Removes an accelerator previously installed through [gtk.accel_group.AccelGroup.connect].bool disconnectKey(uint accelKey, gdk.types.ModifierType accelMods)Removes an accelerator previously installed through [gtk.accel_group.AccelGroup.connect].gtk.types.AccelKey find(gtk.types.AccelGroupFindFunc findFunc)Finds the first entry in an accelerator group for which find_func returns true and returns its #GtkAccelKey.bool getIsLocked()Locks are added and removed using [gtk.accelgroup.AccelGroup.lock] and [gtk.accelgroup.AccelGroup.unlock]. Returns: true if there are 1 or more locks on the accel_group, false otherwise.gdk.types.ModifierType getModifierMask()Gets a #GdkModifierType representing the mask for this accelgroup. For example, #GDKCONTROLMASK, #GDKSHIFT_MASK, etc. Returns: the modifier mask for this accel group.void lock()Locks the given accelerator group.void unlock()Undoes the last call to [gtk.accelgroup.AccelGroup.lock] on this accelgroup.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)Connect 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)Connect to `AccelChanged` signal.Fluent builder for [gtk.accel_group.AccelGroup]