enum Gdk::CrossingMode

Overview

Specifies the crossing mode for enter and leave events.

Defined in:

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

Enum Members

Normal = 0_u32

crossing because of pointer motion.

Grab = 1_u32

crossing because a grab is activated.

Ungrab = 2_u32

crossing because a grab is deactivated.

GtkGrab = 3_u32

crossing because a GTK grab is activated.

GtkUngrab = 4_u32

crossing because a GTK grab is deactivated.

StateChanged = 5_u32

crossing because a GTK widget changed state (e.g. sensitivity).

TouchBegin = 6_u32

crossing because a touch sequence has begun, this event is synthetic as the pointer might have not left the surface.

TouchEnd = 7_u32

crossing because a touch sequence has ended, this event is synthetic as the pointer might have not left the surface.

DeviceSwitch = 8_u32

crossing because of a device switch (i.e. a mouse taking control of the pointer after a touch device), this event is synthetic as the pointer didn’t leave the surface.

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 device_switch? #

def grab? #

def gtk_grab? #

def gtk_ungrab? #

def normal? #

def state_changed? #

def touch_begin? #

def touch_end? #

def ungrab? #