Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-3.0.gir |
C documentation: | GdkModifierType |
Enum : | ModifierType |
Properties | |
---|---|
guint32 Gdk.ModifierType.BUTTON1_MASK : 256
|
|
guint32 Gdk.ModifierType.BUTTON2_MASK : 512
|
|
guint32 Gdk.ModifierType.BUTTON3_MASK : 1024
|
|
guint32 Gdk.ModifierType.BUTTON4_MASK : 2048
|
|
guint32 Gdk.ModifierType.BUTTON5_MASK : 4096
|
|
guint32 Gdk.ModifierType.CONTROL_MASK : 4
|
|
guint32 Gdk.ModifierType.HYPER_MASK : 134217728
|
|
guint32 Gdk.ModifierType.LOCK_MASK : 2
|
|
guint32 Gdk.ModifierType.META_MASK : 268435456
|
|
guint32 Gdk.ModifierType.MOD1_MASK : 8
|
|
guint32 Gdk.ModifierType.MOD2_MASK : 16
|
|
guint32 Gdk.ModifierType.MOD3_MASK : 32
|
|
guint32 Gdk.ModifierType.MOD4_MASK : 64
|
|
guint32 Gdk.ModifierType.MOD5_MASK : 128
|
|
guint32 Gdk.ModifierType.MODIFIER_MASK : 1543512063
|
|
guint32 Gdk.ModifierType.RELEASE_MASK : 1073741824
|
|
guint32 Gdk.ModifierType.SHIFT_MASK : 1
|
|
guint32 Gdk.ModifierType.SUPER_MASK : 67108864
|
None |
None |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gdk
Method |
Gdk.test_simulate_button
(Window window, gint32 x, gint32 y, guint32 button, ModifierType modifiers, EventType button_pressrelease)
:
gboolean
This function is intended to be used in GTK+ test programs.
|
Gdk
Method |
Gdk.test_simulate_key
(Window window, gint32 x, gint32 y, guint32 keyval, ModifierType modifiers, EventType key_pressrelease)
:
gboolean
This function is intended to be used in GTK+ test programs.
|
Gdk.Device
Method |
Specifies the X key event to generate when a macro button of a device
is pressed. |
Gdk.Display
Method |
get_pointer
()
:
Object
Gets the current location of the pointer and the current modifier
mask for a given display. |
Gdk.Keymap
Method |
add_virtual_modifiers
()
:
Gdk.ModifierType
Adds virtual modifiers (i.e.
|
Gdk.Keymap
Method |
translate_keyboard_state
(guint32 hardware_keycode, ModifierType state, gint32 group, Object out_values)
:
gboolean
Translates the contents of a GdkEventKey into a keyval, effective
group, and level. |
Gtk
Method |
Finds the first accelerator in any GtkAccelGroup attached
to object that matches accel_key and accel_mods, and activates that accelerator. |
Gtk
Method |
Gtk.accelerator_get_default_mod_mask
()
:
Gdk.ModifierType
Gets the value set by gtk_accelerator_set_default_mod_mask().
|
Gtk
Method |
Converts an accelerator keyval and modifier mask into a string
which can be used to represent the accelerator to the user. |
Gtk
Method |
Converts an accelerator keyval and modifier mask
into a string parseable by gtk_accelerator_parse(). |
Gtk
Method |
Parses a string representing an accelerator.
|
Gtk
Method |
Gtk.accelerator_set_default_mod_mask
(ModifierType default_mod_mask)
:
none
Sets the modifiers that will be considered significant for keyboard
accelerators. |
Gtk
Method |
Determines whether a given keyval and modifier mask constitute
a valid keyboard accelerator. |
Gtk
Method |
Gtk.binding_entry_add_signall
(BindingSet binding_set, guint32 keyval, ModifierType modifiers, String signal_name, Array binding_args)
:
none
Override or install a new key binding for keyval with modifiers on
|
Gtk
Method |
Remove a binding previously installed via
gtk_binding_entry_add_signal() on binding_set. |
Gtk
Method |
Install a binding on binding_set which causes key lookups
to be aborted, to prevent bindings from lower priority sets to be activated. |
Gtk
Method |
Find a key binding matching keyval and modifiers and activate the
binding on object. |
Gtk
Method |
This function will generate a button click (button press and button
release event) in the middle of the first GdkWindow found that belongs to widget. |
Gtk
Method |
This function will generate keyboard press and release events in
the middle of the first GdkWindow found that belongs to widget. |
Gtk.AccelGroup
Method |
activate
(guint32 accel_quark, Object acceleratable, guint32 accel_key, ModifierType accel_mods)
:
gboolean
Finds the first accelerator in accel_group
that matches accel_key and accel_mods, and activates it. |
Gtk.AccelGroup
Method |
connect
(guint32 accel_key, ModifierType accel_mods, AccelFlags accel_flags, Closure closure)
:
none
Installs an accelerator in this group.
|
Gtk.AccelGroup
Method |
Removes an accelerator previously installed through
gtk_accel_group_connect(). |
Gtk.AccelGroup
Method |
get_modifier_mask
()
:
Gdk.ModifierType
Gets a GdkModifierType representing the mask for this
|
Gtk.AccelGroup
Method |
Queries an accelerator group for all entries matching accel_key and
|
Gtk.AccelMap
Method |
Registers a new accelerator with the global accelerator map.
|
Gtk.AccelMap
Method |
Gtk.AccelMap.change_entry
(String accel_path, guint32 accel_key, ModifierType accel_mods, gboolean replace)
:
gboolean
Changes the accel_key and accel_mods currently associated with accel_path.
|
Gtk.BindingSet
Method |
Find a key binding matching keyval and modifiers within
|
Gtk.IconView
Method |
enable_model_drag_source
(ModifierType start_button_mask, Array targets, gint32 n_targets, DragAction actions)
:
none
Turns icon_view into a drag source for automatic DND.
|
Gtk.TreeView
Method |
enable_model_drag_source
(ModifierType start_button_mask, Array targets, gint32 n_targets, DragAction actions)
:
none
Turns tree_view into a drag source for automatic DND.
|
Gtk.Widget
Method |
add_accelerator
(String accel_signal, AccelGroup accel_group, guint32 accel_key, ModifierType accel_mods, AccelFlags accel_flags)
:
none
Installs an accelerator for this widget in accel_group that causes
The accel_group needs to be added to the widget's toplevel via gtk_window_add_accel_group(), and the signal must be of type G_RUN_ACTION. |
Gtk.Widget
Method |
drag_source_set
(ModifierType start_button_mask, Array targets, gint32 n_targets, DragAction actions)
:
none
Sets up a widget so that GTK+ will start a drag operation when the user
clicks and drags on the widget. |
Gtk.Widget
Method |
Removes an accelerator from widget, previously installed with
gtk_widget_add_accelerator(). |
Gtk.Window
Method |
get_mnemonic_modifier
()
:
Gdk.ModifierType
Returns the mnemonic modifier for this window.
|
Gtk.Window
Method |
Activates the targets associated with the mnemonic.
|
Gtk.Window
Method |
set_mnemonic_modifier
(ModifierType modifier)
:
none
Sets the mnemonic modifier for this window.
|