pub struct InputContext {
pub mouse_wheel_line_scale: f32,
/* private fields */
}
Fields§
§mouse_wheel_line_scale: f32
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 top_mapping(&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 stack(&self) -> impl Iterator<Item = &InputMappingRef>
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
Auto Trait Implementations§
impl Freeze for InputContext
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