Struct spitfire_input::InputContext
source · pub struct InputContext { /* private fields */ }Implementations§
source§impl InputContext
impl InputContext
pub fn push_mapping( &mut self, mapping: impl Into<InputMappingRef> ) -> ID<InputMapping>
pub fn pop_mapping(&mut self) -> Option<InputMappingRef>
pub fn remove_mapping( &mut self, id: ID<InputMapping> ) -> Option<InputMappingRef>
pub fn mapping( &self, id: ID<InputMapping> ) -> Option<RwLockReadGuard<'_, InputMapping>>
pub fn characters(&self) -> InputCharactersRef
pub fn maintain(&mut self)
pub fn on_event(&mut self, event: &WindowEvent<'_>)
Trait Implementations§
source§impl Clone for InputContext
impl Clone for InputContext
source§fn clone(&self) -> InputContext
fn clone(&self) -> InputContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InputContext
impl Debug for InputContext
source§impl Default for InputContext
impl Default for InputContext
source§fn default() -> InputContext
fn default() -> InputContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for InputContext
impl Send for InputContext
impl Sync for InputContext
impl Unpin for InputContext
impl UnwindSafe for InputContext
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