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.


[View source]

Instance Method Detail

def button_press? #

Returns true if this enum value equals ButtonPress


[View source]
def button_release? #

Returns true if this enum value equals ButtonRelease


[View source]
def delete? #

Returns true if this enum value equals Delete


[View source]
def drag_enter? #

Returns true if this enum value equals DragEnter


[View source]
def drag_leave? #

Returns true if this enum value equals DragLeave


[View source]
def drag_motion? #

Returns true if this enum value equals DragMotion


[View source]
def drop_start? #

Returns true if this enum value equals DropStart


[View source]
def enter_notify? #

Returns true if this enum value equals EnterNotify


[View source]
def event_last? #

Returns true if this enum value equals EventLast


[View source]
def focus_change? #

Returns true if this enum value equals FocusChange


[View source]
def grab_broken? #

Returns true if this enum value equals GrabBroken


[View source]
def key_press? #

Returns true if this enum value equals KeyPress


[View source]
def key_release? #

Returns true if this enum value equals KeyRelease


[View source]
def leave_notify? #

Returns true if this enum value equals LeaveNotify


[View source]
def motion_notify? #

Returns true if this enum value equals MotionNotify


[View source]
def pad_button_press? #

Returns true if this enum value equals PadButtonPress


[View source]
def pad_button_release? #

Returns true if this enum value equals PadButtonRelease


[View source]
def pad_group_mode? #

Returns true if this enum value equals PadGroupMode


[View source]
def pad_ring? #

Returns true if this enum value equals PadRing


[View source]
def pad_strip? #

Returns true if this enum value equals PadStrip


[View source]
def proximity_in? #

Returns true if this enum value equals ProximityIn


[View source]
def proximity_out? #

Returns true if this enum value equals ProximityOut


[View source]
def scroll? #

Returns true if this enum value equals Scroll


[View source]
def touch_begin? #

Returns true if this enum value equals TouchBegin


[View source]
def touch_cancel? #

Returns true if this enum value equals TouchCancel


[View source]
def touch_end? #

Returns true if this enum value equals TouchEnd


[View source]
def touch_update? #

Returns true if this enum value equals TouchUpdate


[View source]
def touchpad_hold? #

Returns true if this enum value equals TouchpadHold


[View source]
def touchpad_pinch? #

Returns true if this enum value equals TouchpadPinch


[View source]
def touchpad_swipe? #

Returns true if this enum value equals TouchpadSwipe


[View source]