Struct winit::os::unix::x11::XConnection
[−]
[src]
pub struct XConnection {
pub xlib: Xlib,
pub xf86vmode: Xf86vmode,
pub xcursor: Xcursor,
pub xinput2: XInput2,
pub xlib_xcb: Xlib_xcb,
pub display: *mut Display,
pub latest_error: Mutex<Option<XError>>,
}A connection to an X server.
Fields
xlib: Xlib
xf86vmode: Xf86vmode
xcursor: Xcursor
xinput2: XInput2
xlib_xcb: Xlib_xcb
display: *mut Display
latest_error: Mutex<Option<XError>>
Methods
impl XConnection[src]
pub fn new(
error_handler: Option<unsafe extern "C" fn(_: *mut Display, _: *mut XErrorEvent) -> c_int>
) -> Result<XConnection, XNotSupported>[src]
error_handler: Option<unsafe extern "C" fn(_: *mut Display, _: *mut XErrorEvent) -> c_int>
) -> Result<XConnection, XNotSupported>
pub fn check_errors(&self) -> Result<(), XError>[src]
Checks whether an error has been triggered by the previous function calls.
pub fn ignore_error(&self)[src]
Ignores any previous error.