EventButton

Used for button press and button release events. The @type field will be one of gdk.types.EventType.ButtonPress, gdk.types.EventType._2buttonPress, gdk.types.EventType._3buttonPress or gdk.types.EventType.ButtonRelease,

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 gdk.types.EventType._2buttonPress being received just after the gdk.types.EventType.ButtonPress.

Triple-clicks are very similar to double-clicks, except that gdk.types.EventType._3buttonPress 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.

Constructors

this
this(void* ptr, Flag!"Take" take)

Members

Functions

_cPtr
void* _cPtr()

Properties

button
uint button [@property getter]

Get button field.

button
uint button [@property setter]

Set button field.

device
gdk.device.Device device [@property getter]

Get device field.

device
gdk.device.Device device [@property setter]

Set device field.

sendEvent
byte sendEvent [@property getter]

Get sendEvent field.

sendEvent
byte sendEvent [@property setter]

Set sendEvent field.

state
gdk.types.ModifierType state [@property getter]

Get state field.

state
gdk.types.ModifierType state [@property setter]

Set state field.

time
uint time [@property getter]

Get time field.

time
uint time [@property setter]

Set time field.

type
gdk.types.EventType type [@property getter]

Get type field.

type
gdk.types.EventType type [@property setter]

Set type field.

window
gdk.window.Window window [@property getter]

Get window field.

window
gdk.window.Window window [@property setter]

Set window field.

x
double x [@property getter]

Get x field.

x
double x [@property setter]

Set x field.

xRoot
double xRoot [@property getter]

Get xRoot field.

xRoot
double xRoot [@property setter]

Set xRoot field.

y
double y [@property getter]

Get y field.

y
double y [@property setter]

Set y field.

yRoot
double yRoot [@property getter]

Get yRoot field.

yRoot
double yRoot [@property setter]

Set yRoot field.