Back to Seed Clases

Gdk


Classes

Interfaces

Structs

Unions

Enums

Enum Gdk.EventMask

Import line: Gdk = imports.gi.Gdk;
GIR File: Gdk-3.0.gir
C documentation: GdkEventMask
Enum : EventMask
A set of bit-flags to indicate which events a window is to receive.
Most of these masks map onto one or more of the GdkEventType event types
above.
GDK_POINTER_MOTION_HINT_MASK is a special mask which is used to reduce the
number of GDK_MOTION_NOTIFY events received. Normally a GDK_MOTION_NOTIFY
event is received each time the mouse moves. However, if the application
spends a lot of time processing the event (updating the display, for example),
it can lag behind the position of the mouse. When using
GDK_POINTER_MOTION_HINT_MASK, fewer GDK_MOTION_NOTIFY events will be sent,
some of which are marked as a hint (the is_hint member is TRUE).
To receive more motion events after a motion hint event, the application
needs to asks for more, by calling gdk_event_request_motions().
Values
Properties
Properties
None
Public Methods
None
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gdk
Method
Gdk.pointer_grab (Window window, gboolean owner_events, EventMask event_mask, Window confine_to, Cursor cursor, guint32 time_) : Gdk.GrabStatus
Grabs the pointer (usually a mouse) so that all events are passed to this
application until the pointer is ungrabbed with gdk_pointer_ungrab(), or
the grab window becomes unviewable.
Gdk.Device
Method
grab (Window window, GrabOwnership grab_ownership, gboolean owner_events, EventMask event_mask, Cursor cursor, guint32 time_) : Gdk.GrabStatus
Grabs the device so that all events coming from this device are passed to
this application until the device is ungrabbed with gdk_device_ungrab(),
or the window becomes unviewable.
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_events () : Gdk.EventMask
Gets the event mask for window for all master input devices.
Gdk.Window
Method
get_source_events (InputSource source) : Gdk.EventMask
Returns the event mask for window corresponding to the device class specified
by source.
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.
Gdk.Window
Method
set_events (EventMask event_mask) : none
The event mask for a window determines which events will be reported
for that window from all master input devices.
Gdk.Window
Method
set_source_events (InputSource source, EventMask event_mask) : none
Sets the event mask for any floating device (i.e.
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
get_device_events (Device device) : Gdk.EventMask
Returns the events mask for the widget corresponding to an specific device.
Gtk.Widget
Method
set_device_events (Device device, EventMask events) : none
Sets the device event mask (see GdkEventMask) for a widget.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:10:59 GMT+0800 (HKT)