enum Gdk::InputSource


An enumeration describing the type of an input device in general terms.

Defined in:


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.

[View source]

Instance Method Detail

def keyboard? #

[View source]
def mouse? #

[View source]
def pen? #

[View source]
def tablet_pad? #

[View source]
def touchpad? #

[View source]
def touchscreen? #

[View source]
def trackpoint? #

[View source]