### Class

# GdkWayland WaylandDevice

since: 4.0

#### Description [src]

    final class GdkWayland.WaylandDevice : Gdk.Device
    {
      /* No available fields */
    }

The Wayland implementation of `GdkDevice`.

Beyond the regular `GdkDevice` API, the Wayland implementation provides access to Wayland objects such as the `wl_seat` with `gdk_wayland_device_get_wl_seat()`, the `wl_keyboard` with `gdk_wayland_device_get_wl_keyboard()` and the `wl_pointer` with `gdk_wayland_device_get_wl_pointer()`.

Available since: 4.0

#### Ancestors

- GdkDevice
- GObject

#### Instance methods

###### gdk_wayland_device_get_node_path

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

since: 4.0

###### gdk_wayland_device_get_wl_keyboard

Returns the Wayland `wl_keyboard` of a `GdkDevice`.

since: 4.0

###### gdk_wayland_device_get_wl_pointer

Returns the Wayland `wl_pointer` of a `GdkDevice`.

since: 4.0

###### gdk_wayland_device_get_wl_seat

Returns the Wayland `wl_seat` of a `GdkDevice`.

since: 4.0

###### gdk_wayland_device_get_xkb_keymap

Returns the `xkb_keymap` of a `GdkDevice`.

since: 4.4

##### Methods inherited from GdkDevice (17)

###### gdk_device_get_caps_lock_state

Retrieves whether the Caps Lock modifier of the keyboard is locked.

since: 4.0

###### gdk_device_get_device_tool

Retrieves the current tool for `device`.

since: 4.0

###### gdk_device_get_direction

Returns the direction of effective layout of the keyboard.

since: 4.0

###### gdk_device_get_display

Returns the `GdkDisplay` to which `device` pertains.

since: 4.0

###### gdk_device_get_has_cursor

Determines whether the pointer follows device motion.

since: 4.0

###### gdk_device_get_modifier_state

Retrieves the current modifier state of the keyboard.

since: 4.0

###### gdk_device_get_name

The name of the device, suitable for showing in a user interface.

since: 4.0

###### gdk_device_get_num_lock_state

Retrieves whether the Num Lock modifier of the keyboard is locked.

since: 4.0

###### gdk_device_get_num_touches

Retrieves the number of touch points associated to `device`.

since: 4.0

###### gdk_device_get_product_id

Returns the product ID of this device.

since: 4.0

###### gdk_device_get_scroll_lock_state

Retrieves whether the Scroll Lock modifier of the keyboard is locked.

since: 4.0

###### gdk_device_get_seat

Returns the `GdkSeat` the device belongs to.

since: 4.0

###### gdk_device_get_source

Determines the type of the device.

since: 4.0

###### gdk_device_get_surface_at_position

Obtains the surface underneath `device`, returning the location of the device in `win_x` and `win_y`.

since: 4.0

###### gdk_device_get_timestamp

Returns the timestamp of the last activity for this device.

since: 4.2

###### gdk_device_get_vendor_id

Returns the vendor ID of this device.

since: 4.0

###### gdk_device_has_bidi_layouts

Determines if layouts for both right-to-left and left-to-right languages are in use on the keyboard.

since: 4.0

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

##### Properties inherited from GdkDevice (16)

###### Gdk.Device:caps-lock-state

Whether Caps Lock is on.

since: 4.0

###### Gdk.Device:direction

The direction of the current layout.

since: 4.0

###### Gdk.Device:display

The `GdkDisplay` the `GdkDevice` pertains to.

since: 4.0

###### Gdk.Device:has-bidi-layouts

Whether the device has both right-to-left and left-to-right layouts.

since: 4.0

###### Gdk.Device:has-cursor

Whether the device is represented by a cursor on the screen.

since: 4.0

###### Gdk.Device:modifier-state

The current modifier state of the device.

since: 4.0

###### Gdk.Device:n-axes

Number of axes in the device.

since: 4.0

###### Gdk.Device:name

The device name.

since: 4.0

###### Gdk.Device:num-lock-state

Whether Num Lock is on.

since: 4.0

###### Gdk.Device:num-touches

The maximal number of concurrent touches on a touch device.

since: 4.0

###### Gdk.Device:product-id

Product ID of this device.

since: 4.0

###### Gdk.Device:scroll-lock-state

Whether Scroll Lock is on.

since: 4.0

###### Gdk.Device:seat

`GdkSeat` of this device.

since: 4.0

###### Gdk.Device:source

Source type for the device.

since: 4.0

###### Gdk.Device:tool

The `GdkDeviceTool` that is currently used with this device.

since: 4.0

###### Gdk.Device:vendor-id

Vendor ID of this device.

since: 4.0

#### Signals

##### Signals inherited from GdkDevice (2)

###### GdkDevice::changed

Emitted either when the number of either axes or keys changes.

since: 4.0

###### GdkDevice::tool-changed

Emitted on pen/eraser devices whenever tools enter or leave proximity.

since: 4.0

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

since: 2.0

#### Class structure

    struct GdkWaylandWaylandDeviceClass {
      /* no available fields */
    }

No description available.