gdk4_x11/
x11_monitor.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use glib::translate::*;
4#[cfg(feature = "xlib")]
5#[cfg_attr(docsrs, doc(cfg(feature = "xlib")))]
6use x11::xlib::XID;
7
8#[cfg(not(feature = "xlib"))]
9use crate::XID;
10use crate::{ffi, X11Monitor};
11
12impl X11Monitor {
13    /// Returns the XID of the Output corresponding to @self.
14    ///
15    /// # Deprecated since 4.18
16    ///
17    ///
18    /// # Returns
19    ///
20    /// the XID of @self
21    #[doc(alias = "gdk_x11_monitor_get_output")]
22    #[doc(alias = "get_output")]
23    pub fn output(&self) -> XID {
24        unsafe { ffi::gdk_x11_monitor_get_output(self.to_glib_none().0) }
25    }
26}