Struct pilka_winit::winit::platform::unix::x11::XConnection[][src]

pub struct XConnection {
    pub xlib: Xlib,
    pub xrandr: Xrandr_2_2_0,
    pub xrandr_1_5: Option<Xrandr>,
    pub xcursor: Xcursor,
    pub xinput2: XInput2,
    pub xlib_xcb: Xlib_xcb,
    pub xrender: Xrender,
    pub display: *mut _XDisplay,
    pub x11_fd: i32,
    pub latest_error: Mutex<RawMutex, Option<XError>>,
    pub cursor_cache: Mutex<RawMutex, HashMap<Option<CursorIcon>, u64, RandomState>>,
}
Expand description

A connection to an X server.

Fields

xlib: Xlibxrandr: Xrandr_2_2_0

Exposes XRandR functions from version < 1.5

xrandr_1_5: Option<Xrandr>

Exposes XRandR functions from version = 1.5

xcursor: Xcursorxinput2: XInput2xlib_xcb: Xlib_xcbxrender: Xrenderdisplay: *mut _XDisplayx11_fd: i32latest_error: Mutex<RawMutex, Option<XError>>cursor_cache: Mutex<RawMutex, HashMap<Option<CursorIcon>, u64, RandomState>>

Implementations

Checks whether an error has been triggered by the previous function calls.

Ignores any previous error.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.