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]
fn new(error_handler: Option<unsafe extern fn(*mut Display, *mut XErrorEvent) -> c_int>)
-> Result<XConnection, XNotSupported>
-> Result<XConnection, XNotSupported>
fn check_errors(&self) -> Result<(), XError>
Checks whether an error has been triggered by the previous function calls.
fn ignore_error(&self)
Ignores any previous error.