Back to Seed Clases

Gdk


Classes

Interfaces

Structs

Unions

Enums

Struct Gdk.EventButton

Import line: Gdk = imports.gi.Gdk;
GIR File: Gdk-3.0.gir
C documentation: GdkEventButton
Struct : EventButton
Used for button press and button release events. The
GDK_2BUTTON_PRESS, GDK_3BUTTON_PRESS, and GDK_BUTTON_RELEASE.
Double and triple-clicks result in a sequence of events being received.
For double-clicks the order of events will be:

GDK_BUTTON_PRESS
GDK_BUTTON_RELEASE
GDK_BUTTON_PRESS
GDK_2BUTTON_PRESS
GDK_BUTTON_RELEASE

Note that the first click is received just like a normal
button press, while the second click results in a GDK_2BUTTON_PRESS
being received just after the GDK_BUTTON_PRESS.
Triple-clicks are very similar to double-clicks, except that
GDK_3BUTTON_PRESS is inserted after the third click. The order of the
events is:

GDK_BUTTON_PRESS
GDK_BUTTON_RELEASE
GDK_BUTTON_PRESS
GDK_2BUTTON_PRESS
GDK_BUTTON_RELEASE
GDK_BUTTON_PRESS
GDK_3BUTTON_PRESS
GDK_BUTTON_RELEASE

For a double click to occur, the second button press must occur within
1/4 of a second of the first. For a triple click to occur, the third
button press must also occur within 1/2 second of the first button press.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new Gdk.EventButton ()
Create a new Gdk.EventButton
Create a new Gdk.EventButton
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gtk.Entry
Signal
icon_press (Entry self, EntryIconPosition icon_pos, EventButton event) : none
The ::icon-press signal is emitted when an activatable icon
is clicked.
Gtk.Entry
Signal
icon_release (Entry self, EntryIconPosition icon_pos, EventButton event) : none
The ::icon-release signal is emitted on the button release from a
mouse click over an activatable icon.
Gtk.StatusIcon
Signal
button_press_event (StatusIcon self, EventButton event) : gboolean
The ::button-press-event signal will be emitted when a button
(typically from a mouse) is pressed.
Gtk.StatusIcon
Signal
button_release_event (StatusIcon self, EventButton event) : gboolean
The ::button-release-event signal will be emitted when a button
(typically from a mouse) is released.
Gtk.Widget
Signal
button_press_event (Widget self, EventButton event) : gboolean
The ::button-press-event signal will be emitted when a button
(typically from a mouse) is pressed.
Gtk.Widget
Signal
button_release_event (Widget self, EventButton event) : gboolean
The ::button-release-event signal will be emitted when a button
(typically from a mouse) is released.
WebKit.WebView
Method
get_hit_test_result (EventButton event) : WebKit.HitTestResult
Does a 'hit test' in the coordinates specified by event to figure
out context information about that position in the webView.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:10:56 GMT+0800 (HKT)