GdkEvent
An object representing an event from the windowing system.
Object HierarchyDescription
An object representing an event from the windowing system with
data specific to that event.
Constructors --
Creates a new GdkEvent object for the given type.
Methodsfree()
Free the event and any resources associated with it.
get_axis()
The get_axis() method returns the axis value for the axis use
specified by axis_use from an event structure.
get_coords()
Returns an array of the event coordinates.
get_root_coords()
Returns an array containing the x and y coordinates of the event
relative to the root window.
get_screen()
Returns the GdkScreen for the event.
get_state()
Returns the value of the modifier "state" field.
get_time()
Returns the timestamp field from the event.
put()
Appends a copy of the given event onto the tail of the event queue.
set_screen()
Sets the GdkScreen for the event.
Fieldsstate:
A bit-mask representing the state of the modifier keys
(e.g. Control, Shift and Alt) and the pointer buttons.
type:
The event type
window:
The GdkWindow the event occurred on.
send_event:
TRUE if the event was sent explicitly.
area:
The bounding box of the area to be redrawn.
count:
The number of contiguous Gdk::EXPOSE events
following this one.
time:
The time of the event in milliseconds.
x:
The x coordinate of the pointer relative to the window.
y:
The y coordinate of the pointer relative to the window.
axes:
x, y translated to the
axes of device, or NULL if device is the mouse.
is_hint:
TRUE if the Gdk::POINTER_MOTION_HINT_MASK is set.
device:
The device where the event originated.
x_root:
The x coordinate of the pointer relative to the root of the screen.
y_root:
The y coordinate of the pointer relative to the root of the screen.
button:
The mouse button that was clicked.
keyval:
The key that was pressed or released.
string:
A string containing the composed characters resulting from the key press.
hardware_keycode:
The raw code of the key that was pressed or released.
group: The keyboard group.mode:
The crossing mode (Gdk::CROSSING_NORMAL,
Gdk::CROSSING_GRAB
or Gdk::CROSSING_UNGRAB).
detail:
The kind of crossing that happened.
focus:
TRUE if window is the focus window or an inferior.
in:
TRUE if the window has gained the keyboard
focus, FALSE if it has lost the focus.
width: The new width of the window.height: The new height of the window.context:
The GdkDragContext for the DnD operation.
Note: fields are dependant on the type of event. Each field's page
lists the event types that field as available to.
User Contributed Notes gdk.gdkevent.php
| 
|
There are no user contributed notes for this page.
|
|