GdkWayland.WaylandDevice

g GObject.Object GObject.Object Gdk.Device Gdk.Device GObject.Object->Gdk.Device GdkWayland.WaylandDevice GdkWayland.WaylandDevice Gdk.Device->GdkWayland.WaylandDevice

Subclasses:

None

Methods

Inherited:

Gdk.Device (17), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_node_path ()

get_xkb_keymap ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Gdk.Device (16)

Signals

Inherited:

Gdk.Device (2), GObject.Object (1)

Fields

Inherited:

Gdk.Device (2), GObject.Object (1)

Class Details

class GdkWayland.WaylandDevice(**kwargs)
Bases:

Gdk.Device

Abstract:

No

Structure:

GdkWayland.WaylandDeviceClass

The Wayland implementation of GdkDevice.

Beyond the regular [class`Gdk`.Device] API, the Wayland implementation provides access to Wayland objects such as the wl_seat with [method`GdkWayland`.WaylandDevice.get_wl_seat], the wl_keyboard with [method`GdkWayland`.WaylandDevice.get_wl_keyboard] and the wl_pointer with [method`GdkWayland`.WaylandDevice.get_wl_pointer].

get_node_path()
Returns:

the /dev/input/event* path of this device

Return type:

str or None

Returns the /dev/input/event* path of this device.

For ``GdkDevice``s that possibly coalesce multiple hardware devices (eg. mouse, keyboard, touch,…), this function will return None.

This is most notably implemented for devices of type Gdk.InputSource.PEN, Gdk.InputSource.TABLET_PAD.

get_xkb_keymap()
Returns:

a struct xkb_keymap

Return type:

object or None

Returns the xkb_keymap of a GdkDevice.

New in version 4.4.