Device
Object Hierarchy:
Description:
[
CCode ( type_id =
"gdk_device_get_type ()" ) ]
public abstract class Device :
Object
The Device object represents a single input device, such as a keyboard, a mouse, a touchpad, etc.
See the Seat documentation for more information about the various kinds of devices,
and their relationships.
Content:
Properties:
Creation methods:
Methods:
- public bool get_caps_lock_state ()
Retrieves whether the Caps Lock modifier of the keyboard is locked, if
this is a keyboard device.
- public unowned DeviceTool get_device_tool ()
- public Direction get_direction ()
Returns the direction of effective layout of the keyboard, if
this is a keyboard device.
- public unowned Display get_display ()
Returns the Display to
which this pertains.
- public bool get_has_cursor ()
Determines whether the pointer follows device motion.
- public ModifierType get_modifier_state ()
Retrieves the current modifier state of the keyboard, if
this is a keyboard device.
- public unowned string get_name ()
Determines the name of the device, suitable for showing in a user interface.
- public bool get_num_lock_state ()
Retrieves whether the Num Lock modifier of the keyboard is locked, if
this is a keyboard device.
- public uint get_num_touches ()
Retrieves the number of touch points associated to
this.
- public unowned string? get_product_id ()
Returns the product ID of this device, or null
if this information couldn't be obtained.
- public bool get_scroll_lock_state ()
Retrieves whether the Scroll Lock modifier of the keyboard is locked, if
this is a keyboard device.
- public unowned Seat get_seat ()
Returns the Seat
the device belongs to.
- public InputSource get_source ()
Determines the type of the device.
- public unowned Surface? get_surface_at_position (out double win_x, out double win_y)
Obtains the surface underneath this,
returning the location of the device in win_x
and win_y
in double precision.
- public unowned string? get_vendor_id ()
Returns the vendor ID of this device, or null
if this information couldn't be obtained.
Signals:
Inherited Members:
All known members inherited from class GLib.Object