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>

source

pub(super) fn init_device(&self, device: c_int)

source

fn with_window<F, Ret>(&self, window_id: Window, callback: F) -> Option<Ret>where F: Fn(&Arc<UnownedWindow>) -> Ret,

source

fn window_exists(&self, window_id: Window) -> bool

source

pub(super) fn poll(&self) -> bool

source

pub(super) unsafe fn poll_one_event(&mut self, event_ptr: *mut XEvent) -> bool

source

pub(super) fn process_event<F>(&mut self, xev: &mut XEvent, callback: F)where F: FnMut(Event<'_, T>),

source

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.