Back to Seed Clases

Gdk


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gdk.Device

Class Gdk.Device

Import line: Gdk = imports.gi.Gdk;
GIR File: Gdk-3.0.gir
C documentation: GdkDevice
Class : Device
Extends: GObject.Object
The GdkDevice object represents a single input device, such
as a keyboard, a mouse, a touchpad, etc.
See the GdkDeviceManager documentation for more information
about the various kinds of master and slave devices, and their
relationships.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events - usage syntax: this.signals.EVENTNAME.connect( Function )
Event Defined By
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gdk
Method
Gdk.drag_begin_for_device (Window window, Device device, Array targets) : Gdk.DragContext
Starts a drag and creates a new drag context for it.
Gdk.Device
Property
associated_device : Gdk.Device read only
Associated pointer or keyboard with this device, if any.
Gdk.DeviceManager
Signal
device_added (DeviceManager self, Device device) : none
The ::device-added signal is emitted either when a new master
pointer is created, or when a slave (Hardware) input device
is plugged in.
Gdk.DeviceManager
Signal
device_changed (DeviceManager self, Device device) : none
The ::device-changed signal is emitted whenever a device
has changed in the hierarchy, either slave devices being
disconnected from their master device or connected to
another one, or master devices being added or removed
a slave device.
Gdk.DeviceManager
Signal
device_removed (DeviceManager self, Device device) : none
The ::device-removed signal is emitted either when a master
pointer is removed, or when a slave (Hardware) input device
is unplugged.
Gdk.DeviceManager
Method
get_client_pointer () : Gdk.Device
Returns the client pointer, that is, the master pointer that acts as the core pointer
for this application.
Gdk.Display
Method
device_is_grabbed (Device device) : gboolean
Returns TRUE if there is an ongoing grab on device for display.
Gdk.DragContext
Method
get_device () : Gdk.Device
Returns the GdkDevice associated to the drag context.
Gdk.DragContext
Method
set_device (Device device) : none
Associates a GdkDevice to context, so all Drag and Drop events
for context are emitted as if they came from this device.
Gdk.Event
Method
get_device () : Gdk.Device
If the event contains a "device" field, this function will return
it, else it will return NULL.
Gdk.Event
Method
get_source_device () : Gdk.Device
This function returns the hardware (slave) GdkDevice that has
triggered the event, falling back to the virtual (master) device
(as in gdk_event_get_device()) if the event wasn't caused by
interaction with a hardware device.
Gdk.Event
Method
set_device (Device device) : none
Sets the device for event to device.
Gdk.Event
Method
set_source_device (Device device) : none
Sets the slave device for event to device.
Gdk.Window
Method
get_device_cursor (Device device) : Gdk.Cursor
Retrieves a GdkCursor pointer for the device currently set on the
specified GdkWindow, or NULL.
Gdk.Window
Method
get_device_events (Device device) : Gdk.EventMask
Returns the event mask for window corresponding to an specific device.
Gdk.Window
Method
get_device_position (Device device, Object out_values) : Gdk.Window
Obtains the current device position and modifier state.
Gdk.Window
Method
set_device_cursor (Device device, Cursor cursor) : none
Sets a specific GdkCursor for a given device when it gets inside window.
Gdk.Window
Method
set_device_events (Device device, EventMask event_mask) : none
Sets the event mask for a given device (Normally a floating device, not
attached to any visible pointer) to window.
Gtk
Method
Gtk.device_grab_add (Widget widget, Device device, gboolean block_others) : none
Adds a GTK+ grab on device, so all the events on device and its
associated pointer or keyboard (if any) are delivered to widget.
Gtk
Method
Gtk.device_grab_remove (Widget widget, Device device) : none
Removes a device grab from the given widget.
Gtk
Method
Gtk.get_current_event_device () : Gdk.Device
If there is a current event and it has a device, return that
device, otherwise return NULL.
Gtk.ComboBox
Method
popup_for_device (Device device) : none
Pops up the menu or dropdown list of combo_box, the popup window
will be grabbed so only device and its associated pointer/keyboard
are the only GdkDevices able to send events to it.
Gtk.Menu
Method
popup_for_device (Device device, Widget parent_menu_shell, Widget parent_menu_item, Function func, void* data, Function destroy, guint32 button, guint32 activate_time) : none
Displays a menu and makes it available for selection.
Gtk.Widget
Method
add_device_events (Device device, EventMask events) : none
Adds the device events in the bitfield events to the event mask for
Gtk.Widget
Method
device_is_shadowed (Device device) : gboolean
Returns TRUE if device has been shadowed by a GTK+
device grab on another widget, so it would stop sending
events to widget.
Gtk.Widget
Method
get_device_enabled (Device device) : gboolean
Returns whether device can interact with widget and its
children.
Gtk.Widget
Method
get_device_events (Device device) : Gdk.EventMask
Returns the events mask for the widget corresponding to an specific device.
Gtk.Widget
Method
set_device_enabled (Device device, gboolean enabled) : none
Enables or disables a GdkDevice to interact with widget
and all its children.
Gtk.Widget
Method
set_device_events (Device device, EventMask events) : none
Sets the device event mask (see GdkEventMask) for a widget.
Gtk.WindowGroup
Method
get_current_device_grab (Device device) : Gtk.Widget
Returns the current grab widget for device, or NULL if none.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:10:54 GMT+0800 (HKT)