Used for button press and button release events.
Class GdkEventButton( One )
One | type of the event-button types (GDK_BUTTON_PRESS, GDK_2BUTTON_PRESS, GDK_3BUTTON_PRESS or GDK_BUTTON_RELEASE). |
Note: In Falcon, this class inherits from GdkEvent.
The type field will be one of GDK_BUTTON_PRESS, 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:
1. GDK_BUTTON_PRESS 2. GDK_BUTTON_RELEASE 3. GDK_BUTTON_PRESS 4. GDK_2BUTTON_PRESS 5. 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:
1. GDK_BUTTON_PRESS 2. GDK_BUTTON_RELEASE 3. GDK_BUTTON_PRESS 4. GDK_2BUTTON_PRESS 5. GDK_BUTTON_RELEASE 6. GDK_BUTTON_PRESS 7. GDK_3BUTTON_PRESS 8. 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 | |
axes | TODO x, y translated to the axes of device, or NULL if device is the mouse. |
button | the button which was pressed or released, numbered from 1 to 5. |
device | TODO the device where the event originated. |
send_event | TRUE if the event was sent explicitly (e. |
state | a bit-mask representing the state of the modifier keys (e. |
time | the time of the event in milliseconds. |
type | the type of the event (GDK_BUTTON_PRESS, GDK_2BUTTON_PRESS, GDK_3BUTTON_PRESS or GDK_BUTTON_RELEASE). |
window | TODO the window which received the event. |
x | the x coordinate of the pointer relative to the window. |
x_root | the x coordinate of the pointer relative to the root of the screen. |
y | the y coordinate of the pointer relative to the window. |
y_root | the y coordinate of the pointer relative to the root of the screen. |
TODO x, y translated to the axes of device, or NULL if device is the mouse.
TODO x, y translated to the axes of device, or NULL if device is the mouse.
the button which was pressed or released, numbered from 1 to 5.
the button which was pressed or released, numbered from 1 to 5. Normally button 1 is the left mouse button, 2 is the middle button, and 3 is the right button. On 2-button mice, the middle button can often be simulated by pressing both mouse buttons together.
TODO the device where the event originated.
TODO the device where the event originated.
TRUE if the event was sent explicitly (e.
TRUE if the event was sent explicitly (e.g. using XSendEvent).
a bit-mask representing the state of the modifier keys (e.
a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType.
the time of the event in milliseconds.
the time of the event in milliseconds.
the type of the event (GDK_BUTTON_PRESS, GDK_2BUTTON_PRESS, GDK_3BUTTON_PRESS or GDK_BUTTON_RELEASE).
the type of the event (GDK_BUTTON_PRESS, GDK_2BUTTON_PRESS, GDK_3BUTTON_PRESS or GDK_BUTTON_RELEASE).
TODO the window which received the event.
TODO the window which received the event.
the x coordinate of the pointer relative to the window.
the x coordinate of the pointer relative to the window.
the x coordinate of the pointer relative to the root of the screen.
the x coordinate of the pointer relative to the root of the screen.
the y coordinate of the pointer relative to the window.
the y coordinate of the pointer relative to the window.
the y coordinate of the pointer relative to the root of the screen.
the y coordinate of the pointer relative to the root of the screen.