pub struct XlibApp {Show 16 fields
pub display: *mut Display,
pub xim: XIM,
pub clipboard: String,
pub display_fd: c_int,
pub window_map: HashMap<c_ulong, *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 Display§xim: XIM§clipboard: String§display_fd: c_int§window_map: HashMap<c_ulong, *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<c_ulong>
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: c_ulong, time: u64, )
Auto Trait Implementations§
impl !RefUnwindSafe for XlibApp
impl !Send for XlibApp
impl !Sync for XlibApp
impl !UnwindSafe for XlibApp
impl Freeze for XlibApp
impl Unpin for XlibApp
impl UnsafeUnpin 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