Struct winit::platform_impl::platform::x11::event_processor::EventProcessor
source · pub(super) struct EventProcessor<T: 'static> {Show 13 fields
pub(super) dnd: Dnd,
pub(super) ime_receiver: Receiver<ImeRequest>,
pub(super) ime_event_receiver: Receiver<(Window, ImeEvent)>,
pub(super) randr_event_offset: c_int,
pub(super) devices: RefCell<HashMap<DeviceId, Device>>,
pub(super) xi2ext: XExtension,
pub(super) target: Rc<EventLoopWindowTarget<T>>,
pub(super) mod_keymap: ModifierKeymap,
pub(super) device_mod_state: ModifierKeyState,
pub(super) num_touch: u32,
pub(super) first_touch: Option<u64>,
pub(super) active_window: Option<Window>,
pub(super) is_composing: bool,
}
Fields§
§dnd: Dnd
§ime_receiver: Receiver<ImeRequest>
§ime_event_receiver: Receiver<(Window, ImeEvent)>
§randr_event_offset: c_int
§devices: RefCell<HashMap<DeviceId, Device>>
§xi2ext: XExtension
§target: Rc<EventLoopWindowTarget<T>>
§mod_keymap: ModifierKeymap
§device_mod_state: ModifierKeyState
§num_touch: u32
§first_touch: Option<u64>
§active_window: Option<Window>
§is_composing: bool
Implementations§
source§impl<T: 'static> EventProcessor<T>
impl<T: 'static> EventProcessor<T>
pub(super) fn init_device(&self, device: c_int)
fn with_window<F, Ret>(&self, window_id: Window, callback: F) -> Option<Ret>where F: Fn(&Arc<UnownedWindow>) -> Ret,
fn window_exists(&self, window_id: Window) -> bool
pub(super) fn poll(&self) -> bool
pub(super) unsafe fn poll_one_event(&mut self, event_ptr: *mut XEvent) -> bool
pub(super) fn process_event<F>(&mut self, xev: &mut XEvent, callback: F)where F: FnMut(Event<'_, T>),
fn handle_pressed_keys<F>( wt: &EventLoopWindowTarget<T>, window_id: WindowId, state: ElementState, mod_keymap: &ModifierKeymap, device_mod_state: &mut ModifierKeyState, callback: &mut F )where F: FnMut(Event<'_, T>),
Auto Trait Implementations§
impl<T> !RefUnwindSafe for EventProcessor<T>
impl<T> !Send for EventProcessor<T>
impl<T> !Sync for EventProcessor<T>
impl<T> Unpin for EventProcessor<T>
impl<T> !UnwindSafe for EventProcessor<T>
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