Class (GI Struct)

Gdk-3.0GdkEventButton

Used for button press and button release events. The type field will be one of Gdk.EventType.BUTTON_PRESS, .2BUTTON_PRESS, .3BUTTON_PRESS or Gdk.EventType.BUTTON_RELEASE,

Double and triple-clicks result in a sequence of events being received. For double-clicks the order of events will be:

Note that the first click is received just like a normal button press, while the second click results in a .2BUTTON_PRESS being received just after the Gdk.EventType.BUTTON_PRESS.

Triple-clicks are very similar to double-clicks, except that .3BUTTON_PRESS is inserted after the third click. The order of the events is:

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.

Index

Constructors

Properties

axes: number
button: number
device: Gdk.Device
send_event: number
time: number
window: Gdk.Window
x: number
x_root: number
y: number
y_root: number