Struct xcb_util_cursor::CursorContext
source · pub struct CursorContext { /* private fields */ }Expand description
Wrapper sctruct for xcb_cursor_context_t that handles creation and freeing.
Implementations§
source§impl CursorContext
impl CursorContext
sourcepub fn new(connection: &Connection, screen: &Screen) -> Option<Self>
pub fn new(connection: &Connection, screen: &Screen) -> Option<Self>
Create a new cursor context.
sourcepub fn load_cursor(&self, cursor: Cursor) -> Cursor
pub fn load_cursor(&self, cursor: Cursor) -> Cursor
Loads a cursor. Returns CURSOR_NONE on error.