[−][src]Struct egui::Modifiers
State of the modifier keys. These must be fed to Egui.
Fields
alt: bool
Either of the alt keys are down (option ⌥ on Mac)
ctrl: bool
Either of the control keys are down
shift: bool
Either of the shift keys are down
mac_cmd: bool
The Mac ⌘ Command key. Should always be set to false
on other platforms.
command: bool
On Mac, this should be set whenever one of the ⌘ Command keys are down (same as mac_cmd
).
On Windows and Linux, set this to the same value as ctrl
.
This is so that Egui can, for instance, select all text by checking for command + A
and it will work on both Mac and Windows.
Trait Implementations
impl Clone for Modifiers
[src]
impl Copy for Modifiers
[src]
impl Debug for Modifiers
[src]
impl Default for Modifiers
[src]
impl Eq for Modifiers
[src]
impl PartialEq<Modifiers> for Modifiers
[src]
impl StructuralEq for Modifiers
[src]
impl StructuralPartialEq for Modifiers
[src]
Auto Trait Implementations
impl RefUnwindSafe for Modifiers
[src]
impl Send for Modifiers
[src]
impl Sync for Modifiers
[src]
impl Unpin for Modifiers
[src]
impl UnwindSafe for Modifiers
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,