pub struct XlibApp {Show 16 fields
pub display: *mut _XDisplay,
pub xim: *mut _XIM,
pub clipboard: String,
pub display_fd: i32,
pub window_map: HashMap<u64, *mut XlibWindow>,
pub timers: SelectTimers,
pub last_scroll_time: f64,
pub last_click_time: f64,
pub last_click_pos: (i32, i32),
pub event_callback: Option<Box<dyn FnMut(&mut XlibApp, XlibEvent) -> EventFlow>>,
pub event_flow: EventFlow,
pub current_cursor: MouseCursor,
pub internal_cursor: MouseCursor,
pub atoms: XlibAtoms,
pub dnd: Dnd,
pub next_keypress_is_repeat: bool,
/* private fields */
}Fields§
§display: *mut _XDisplay§xim: *mut _XIM§clipboard: String§display_fd: i32§window_map: HashMap<u64, *mut XlibWindow>§timers: SelectTimers§last_scroll_time: f64§last_click_time: f64§last_click_pos: (i32, i32)§event_callback: Option<Box<dyn FnMut(&mut XlibApp, XlibEvent) -> EventFlow>>§event_flow: EventFlow§current_cursor: MouseCursor§internal_cursor: MouseCursor§atoms: XlibAtoms§dnd: Dnd§next_keypress_is_repeat: boolImplementations§
Source§impl XlibApp
impl XlibApp
pub fn new( event_callback: Box<dyn FnMut(&mut XlibApp, XlibEvent) -> EventFlow>, ) -> XlibApp
pub unsafe fn event_loop_poll(&mut self)
pub fn event_loop(&mut self)
pub fn do_callback(&mut self, event: XlibEvent)
pub fn terminate_event_loop(&mut self)
pub fn start_timer(&mut self, id: u64, timeout: f64, repeats: bool)
pub fn stop_timer(&mut self, id: u64)
pub fn time_now(&self) -> f64
pub fn load_first_cursor(&self, names: &[&[u8]]) -> Option<u64>
pub fn set_internal_mouse_cursor(&mut self, cursor: MouseCursor)
pub fn restore_mouse_cursor(&mut self, cursor: MouseCursor)
pub fn set_mouse_cursor(&mut self, cursor: MouseCursor)
pub unsafe fn copy_to_clipboard( &mut self, text: &String, window_id: u64, time: u64, )
Auto Trait Implementations§
impl Freeze for XlibApp
impl !RefUnwindSafe for XlibApp
impl !Send for XlibApp
impl !Sync for XlibApp
impl Unpin for XlibApp
impl !UnwindSafe for XlibApp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more