enum Gdk::EventType

Overview

Specifies the type of the event.

Defined in:

lib/gi-crystal/src/auto/gdk-4.0/gdk.cr

Enum Members

Delete = 0_u32

the window manager has requested that the toplevel surface be hidden or destroyed, usually when the user clicks on a special icon in the title bar.

MotionNotify = 1_u32

the pointer (usually a mouse) has moved.

ButtonPress = 2_u32

a mouse button has been pressed.

ButtonRelease = 3_u32

a mouse button has been released.

KeyPress = 4_u32

a key has been pressed.

KeyRelease = 5_u32

a key has been released.

EnterNotify = 6_u32

the pointer has entered the surface.

LeaveNotify = 7_u32

the pointer has left the surface.

FocusChange = 8_u32

the keyboard focus has entered or left the surface.

ProximityIn = 9_u32

an input device has moved into contact with a sensing surface (e.g. a touchscreen or graphics tablet).

ProximityOut = 10_u32

an input device has moved out of contact with a sensing surface.

DragEnter = 11_u32

the mouse has entered the surface while a drag is in progress.

DragLeave = 12_u32

the mouse has left the surface while a drag is in progress.

DragMotion = 13_u32

the mouse has moved in the surface while a drag is in progress.

DropStart = 14_u32

a drop operation onto the surface has started.

Scroll = 15_u32

the scroll wheel was turned

GrabBroken = 16_u32

a pointer or keyboard grab was broken.

TouchBegin = 17_u32

A new touch event sequence has just started.

TouchUpdate = 18_u32

A touch event sequence has been updated.

TouchEnd = 19_u32

A touch event sequence has finished.

TouchCancel = 20_u32

A touch event sequence has been canceled.

TouchpadSwipe = 21_u32

A touchpad swipe gesture event, the current state is determined by its phase field.

TouchpadPinch = 22_u32

A touchpad pinch gesture event, the current state is determined by its phase field.

PadButtonPress = 23_u32

A tablet pad button press event.

PadButtonRelease = 24_u32

A tablet pad button release event.

PadRing = 25_u32

A tablet pad axis event from a "ring".

PadStrip = 26_u32

A tablet pad axis event from a "strip".

PadGroupMode = 27_u32

A tablet pad group mode change.

TouchpadHold = 28_u32

A touchpad hold gesture event, the current state is determined by its phase field. Since: 4.6

EventLast = 29_u32

marks the end of the Gdk::EventType enumeration.

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def button_press? #

def button_release? #

def delete? #

def drag_enter? #

def drag_leave? #

def drag_motion? #

def drop_start? #

def enter_notify? #

def event_last? #

def focus_change? #

def grab_broken? #

def key_press? #

def key_release? #

def leave_notify? #

def motion_notify? #

def pad_button_press? #

def pad_button_release? #

def pad_group_mode? #

def pad_ring? #

def pad_strip? #

def proximity_in? #

def proximity_out? #

def scroll? #

def touch_begin? #

def touch_cancel? #

def touch_end? #

def touch_update? #

def touchpad_hold? #

def touchpad_pinch? #

def touchpad_swipe? #