Back to Seed Clases

Gdk


Classes

Interfaces

Structs

Unions

Enums

Enum Gdk.ModifierType

Import line: Gdk = imports.gi.Gdk;
GIR File: Gdk-3.0.gir
C documentation: GdkModifierType
Enum : ModifierType
A set of bit-flags to indicate the state of modifier keys and mouse buttons
in various event types. Typical modifier keys are Shift, Control, Meta,
Super, Hyper, Alt, Compose, Apple, CapsLock or ShiftLock.
Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.
Since 2.10, GDK recognizes which of the Meta, Super or Hyper keys are mapped
to Mod2 - Mod5, and indicates this by setting GDK_SUPER_MASK,
GDK_HYPER_MASK or GDK_META_MASK in the state field of key events.
Values
Properties
Properties
None
Public Methods
None
Events
None
Used by These Methods / Signals / Properties
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
set_key (guint32 index_, guint32 keyval, ModifierType modifiers) : none
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
Gtk.accel_groups_activate (Object object, guint32 accel_key, ModifierType accel_mods) : gboolean
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
Gtk.accelerator_get_label (guint32 accelerator_key, ModifierType accelerator_mods) : String
Converts an accelerator keyval and modifier mask into a string
which can be used to represent the accelerator to the user.
Gtk
Method
Gtk.accelerator_name (guint32 accelerator_key, ModifierType accelerator_mods) : String
Converts an accelerator keyval and modifier mask
into a string parseable by gtk_accelerator_parse().
Gtk
Method
Gtk.accelerator_parse (String accelerator) : Object
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
Gtk.accelerator_valid (guint32 keyval, ModifierType modifiers) : gboolean
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
Gtk.binding_entry_remove (BindingSet binding_set, guint32 keyval, ModifierType modifiers) : none
Remove a binding previously installed via
gtk_binding_entry_add_signal() on binding_set.
Gtk
Method
Gtk.binding_entry_skip (BindingSet binding_set, guint32 keyval, ModifierType modifiers) : none
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
Gtk.bindings_activate (Object object, guint32 keyval, ModifierType modifiers) : gboolean
Find a key binding matching keyval and modifiers and activate the
binding on object.
Gtk
Method
Gtk.test_widget_click (Widget widget, guint32 button, ModifierType modifiers) : gboolean
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
Gtk.test_widget_send_key (Widget widget, guint32 keyval, ModifierType modifiers) : gboolean
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
disconnect_key (guint32 accel_key, ModifierType accel_mods) : gboolean
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
query (guint32 accel_key, ModifierType accel_mods, Object out_values) : Array
Queries an accelerator group for all entries matching accel_key and
Gtk.AccelMap
Method
Gtk.AccelMap.add_entry (String accel_path, guint32 accel_key, ModifierType accel_mods) : none
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
activate (guint32 keyval, ModifierType modifiers, Object object) : gboolean
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
remove_accelerator (AccelGroup accel_group, guint32 accel_key, ModifierType accel_mods) : gboolean
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
mnemonic_activate (guint32 keyval, ModifierType modifier) : gboolean
Activates the targets associated with the mnemonic.
Gtk.Window
Method
set_mnemonic_modifier (ModifierType modifier) : none
Sets the mnemonic modifier for this window.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:00 GMT+0800 (HKT)