pub struct ModifierKeys(/* private fields */);Expand description
Modifier key flags for mouse selection.
Use bitwise OR to combine multiple modifiers:
const modifiers = ModifierKeys.SHIFT | ModifierKeys.CONTROL;
renderer.enableSelectionWithOptions(SelectionMode.Block, true, modifiers);Implementations§
Source§impl ModifierKeys
impl ModifierKeys
Sourcepub fn NONE() -> ModifierKeys
pub fn NONE() -> ModifierKeys
No modifier keys required
Sourcepub fn CONTROL() -> ModifierKeys
pub fn CONTROL() -> ModifierKeys
Control key (Ctrl)
Sourcepub fn SHIFT() -> ModifierKeys
pub fn SHIFT() -> ModifierKeys
Shift key
Sourcepub fn ALT() -> ModifierKeys
pub fn ALT() -> ModifierKeys
Alt key (Option on macOS)
Sourcepub fn META() -> ModifierKeys
pub fn META() -> ModifierKeys
Meta key (Command on macOS, Windows key on Windows)
Sourcepub fn or(&self, other: &ModifierKeys) -> ModifierKeys
pub fn or(&self, other: &ModifierKeys) -> ModifierKeys
Combines two modifier key sets using bitwise OR
Trait Implementations§
Source§impl Clone for ModifierKeys
impl Clone for ModifierKeys
Source§fn clone(&self) -> ModifierKeys
fn clone(&self) -> ModifierKeys
Returns a duplicate 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 ModifierKeys
impl Debug for ModifierKeys
Source§impl Default for ModifierKeys
impl Default for ModifierKeys
Source§fn default() -> ModifierKeys
fn default() -> ModifierKeys
Returns the “default value” for a type. Read more
Source§impl From<ModifierKeys> for JsValue
impl From<ModifierKeys> for JsValue
Source§fn from(value: ModifierKeys) -> Self
fn from(value: ModifierKeys) -> Self
Converts to this type from the input type.
Source§impl From<ModifierKeys> for ModifierKeys
impl From<ModifierKeys> for ModifierKeys
Source§fn from(keys: ModifierKeys) -> Self
fn from(keys: ModifierKeys) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ModifierKeys
impl FromWasmAbi for ModifierKeys
Source§impl IntoWasmAbi for ModifierKeys
impl IntoWasmAbi for ModifierKeys
Source§impl LongRefFromWasmAbi for ModifierKeys
impl LongRefFromWasmAbi for ModifierKeys
Source§impl OptionFromWasmAbi for ModifierKeys
impl OptionFromWasmAbi for ModifierKeys
Source§impl OptionIntoWasmAbi for ModifierKeys
impl OptionIntoWasmAbi for ModifierKeys
Source§impl RefFromWasmAbi for ModifierKeys
impl RefFromWasmAbi for ModifierKeys
Source§type Anchor = RcRef<ModifierKeys>
type Anchor = RcRef<ModifierKeys>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for ModifierKeys
impl RefMutFromWasmAbi for ModifierKeys
Source§impl TryFromJsValue for ModifierKeys
impl TryFromJsValue for ModifierKeys
Source§impl VectorFromWasmAbi for ModifierKeys
impl VectorFromWasmAbi for ModifierKeys
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ModifierKeys]>
Source§impl VectorIntoWasmAbi for ModifierKeys
impl VectorIntoWasmAbi for ModifierKeys
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ModifierKeys]>) -> Self::Abi
Source§impl WasmDescribeVector for ModifierKeys
impl WasmDescribeVector for ModifierKeys
impl Copy for ModifierKeys
impl SupportsConstructor for ModifierKeys
impl SupportsInstanceProperty for ModifierKeys
impl SupportsStaticProperty for ModifierKeys
Auto Trait Implementations§
impl Freeze for ModifierKeys
impl RefUnwindSafe for ModifierKeys
impl Send for ModifierKeys
impl Sync for ModifierKeys
impl Unpin for ModifierKeys
impl UnwindSafe for ModifierKeys
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.