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.cr

Enum 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

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

def mouse? #

def pen? #

def tablet_pad? #

def touchpad? #

def touchscreen? #

def trackpoint? #