enum
Gdk::InputSource
Overview
An enumeration describing the type of an input device in general terms.
Defined in:
lib/gi-crystal/src/auto/gdk-4.0/gdk.crEnum Members
-
Mouse =
0_u32
-
the device is a mouse. (This will be reported for the core pointer, even if it is something else, such as a trackball.)
-
Pen =
1_u32
-
the device is a stylus of a graphics tablet or similar device.
-
Keyboard =
2_u32
-
the device is a keyboard.
-
Touchscreen =
3_u32
-
the device is a direct-input touch device, such as a touchscreen or tablet
-
Touchpad =
4_u32
-
the device is an indirect touch device, such as a touchpad
-
Trackpoint =
5_u32
-
the device is a trackpoint
-
TabletPad =
6_u32
-
the device is a "pad", a collection of buttons, rings and strips found in drawing tablets
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
-
#keyboard?
Returns
true
if this enum value equalsKeyboard
-
#mouse?
Returns
true
if this enum value equalsMouse
-
#pen?
Returns
true
if this enum value equalsPen
-
#tablet_pad?
Returns
true
if this enum value equalsTabletPad
-
#touchpad?
Returns
true
if this enum value equalsTouchpad
-
#touchscreen?
Returns
true
if this enum value equalsTouchscreen
-
#trackpoint?
Returns
true
if this enum value equalsTrackpoint
Class methods inherited from struct Enum
g_type : UInt64
g_type
Class Method Detail
Returns the type id (GType) registered in GLib type system.