gtk-Keyboard-Accelerators {RGtk2} | R Documentation |
Groups of global keyboard accelerators for an entire GtkWindow
gtkAccelGroupNew()
gtkAccelGroupConnect(object, accel.key, accel.mods, accel.flags, closure)
gtkAccelGroupConnectByPath(object, accel.path, closure)
gtkAccelGroupDisconnect(object, closure)
gtkAccelGroupDisconnectKey(object, accel.key, accel.mods)
gtkAccelGroupQuery(object, accel.key, accel.mods)
gtkAccelGroupActivate(object, accel.quark, acceleratable, accel.key, accel.mods)
gtkAccelGroupLock(object)
gtkAccelGroupUnlock(object)
gtkAccelGroupFromAccelClosure(closure)
gtkAccelGroupsActivate(object, accel.key, accel.mods)
gtkAccelGroupsFromObject(object)
gtkAccelGroupFind(object, find.func, data = NULL)
gtkAcceleratorValid(keyval, modifiers)
gtkAcceleratorParse(accelerator)
gtkAcceleratorName(accelerator.key, accelerator.mods)
gtkAcceleratorGetLabel(accelerator.key, accelerator.mods)
gtkAcceleratorSetDefaultModMask(default.mod.mask)
gtkAcceleratorGetDefaultModMask()
gtkAccelGroup()
GObject +----GtkAccelGroup
A GtkAccelGroup
represents a group of keyboard accelerators,
typically attached to a toplevel GtkWindow
(with
gtkWindowAddAccelGroup
). Usually you won't need to create a
GtkAccelGroup
directly; instead, when using GtkItemFactory
, GTK+
automatically sets up the accelerators for your menus in the item
factory'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
gtkLabelNewWithMnemonic
. Menu items can have both accelerators
and mnemonics, of course.
GtkAccelGroup
GtkAccelKey
GtkAccelKey
is a transparent-type.
accelKey
accelMods
GdkModifierType
] accelFlags
gtkAccelGroup
is the equivalent of gtkAccelGroupNew
.
GtkAccelGroupActivate(accel.group, acceleratable, keyval, modifier)
accel.group
GtkAccelGroup
] acceleratable
GObject
] keyval
modifier
GdkModifierType
]
GtkAccelGroupFindFunc(key, closure, data)
key
GtkAccelKey
] closure
GClosure
] data
The (accel.group, acceleratable, keyval, modifier, user.data)
GtkAccelGroup
and not meant to be used by applications.
accel.group
GtkAccelGroup
] the GtkAccelGroup
which received the signalacceleratable
GObject
] the object on which the accelerator was activatedkeyval
modifier
GdkModifierType
] the modifier combination of the acceleratoruser.data
Returns: [logical] TRUE
if the accelerator was activated
The (accel.group, keyval, modifier, accel.closure, user.data)
GtkAccelGroupEntry
is added to or removed from the accel group.
Widgets like GtkAccelLabel
which display an associated
accelerator should connect to this signal, and rebuild
their visual representation if the accel.closure
is theirs.
accel.group
GtkAccelGroup
] the GtkAccelGroup
which received the signalkeyval
modifier
GdkModifierType
] the modifier combination of the acceleratoraccel.closure
GClosure
] the GClosure
of the acceleratoruser.data
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gtk/gtk-Keyboard-Accelerators.html