EventButton


Object Hierarchy:

Gdk.EventButton Gdk.EventButton Gdk.EventButton Gdk.Event Gdk.Event Gdk.Event->Gdk.EventButton

Description:

[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gdk_event_get_type ()" ) ]
[ Compact ]
public class EventButton : Event

Used for button press and button release events.

The type field will be one of gdk_button_press, gdk_2button_press, gdk_3button_press or 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.


Namespace: Gdk
Package: gdk-3.0

Content:

Fields:

Inherited Members:




2022 vala-language.org