Struct makepad_widgets::KeyModifiers
pub struct KeyModifiers {
pub shift: bool,
pub control: bool,
pub alt: bool,
pub logo: bool,
}
Fields§
§shift: bool
§control: bool
§alt: bool
§logo: bool
Trait Implementations§
§impl Clone for KeyModifiers
impl Clone for KeyModifiers
§fn clone(&self) -> KeyModifiers
fn clone(&self) -> KeyModifiers
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 more§impl DeBin for KeyModifiers
impl DeBin for KeyModifiers
§impl DeJson for KeyModifiers
impl DeJson for KeyModifiers
fn de_json( s: &mut DeJsonState, i: &mut Chars<'_> ) -> Result<KeyModifiers, DeJsonErr>
fn deserialize_json(input: &str) -> Result<Self, DeJsonErr>
§impl Debug for KeyModifiers
impl Debug for KeyModifiers
§impl Default for KeyModifiers
impl Default for KeyModifiers
§fn default() -> KeyModifiers
fn default() -> KeyModifiers
Returns the “default value” for a type. Read more
§impl PartialEq<KeyModifiers> for KeyModifiers
impl PartialEq<KeyModifiers> for KeyModifiers
§fn eq(&self, other: &KeyModifiers) -> bool
fn eq(&self, other: &KeyModifiers) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl SerBin for KeyModifiers
impl SerBin for KeyModifiers
§impl SerJson for KeyModifiers
impl SerJson for KeyModifiers
fn ser_json(&self, d: usize, s: &mut SerJsonState)
fn serialize_json(&self) -> String
impl Copy for KeyModifiers
impl StructuralPartialEq for KeyModifiers
Auto Trait Implementations§
impl RefUnwindSafe for KeyModifiers
impl Send for KeyModifiers
impl Sync for KeyModifiers
impl Unpin for KeyModifiers
impl UnwindSafe for KeyModifiers
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