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 #[doc(alias = "gdk_x11_monitor_get_output")]
14 #[doc(alias = "get_output")]
15 pub fn output(&self) -> XID {
16 unsafe { ffi::gdk_x11_monitor_get_output(self.to_glib_none().0) }
17 }
18}