Struct three_d::Modifiers [−][src]
Expand description
State of modifiers (alt, ctrl, shift and command).
Fields
alt: State
Expand description
Either of the alt keys are down (option ⌥ on Mac).
ctrl: State
Expand description
Either of the control keys are down.
When checking for keyboard shortcuts, consider using Self::command
instead.
shift: State
Expand description
Either of the shift keys are down.
command: State
Expand description
On Windows and Linux, set this to the same value as ctrl
.
On Mac, this should be set whenever one of the ⌘ Command keys are down.
Trait Implementations
impl Copy for Modifiers
[src]
impl Eq for Modifiers
[src]
impl StructuralEq for Modifiers
[src]
impl StructuralPartialEq for Modifiers
[src]
Auto Trait Implementations
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnwindSafe for Modifiers
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more