gdk4_wayland/auto/
wayland_device.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// DO NOT EDIT
4
5use crate::ffi;
6use glib::translate::*;
7
8glib::wrapper! {
9    #[doc(alias = "GdkWaylandDevice")]
10    pub struct WaylandDevice(Object<ffi::GdkWaylandDevice, ffi::GdkWaylandDeviceClass>) @extends gdk::Device;
11
12    match fn {
13        type_ => || ffi::gdk_wayland_device_get_type(),
14    }
15}
16
17impl WaylandDevice {
18    #[doc(alias = "gdk_wayland_device_get_node_path")]
19    #[doc(alias = "get_node_path")]
20    pub fn node_path(&self) -> Option<glib::GString> {
21        unsafe { from_glib_none(ffi::gdk_wayland_device_get_node_path(self.to_glib_none().0)) }
22    }
23}