Struct fyrox_ui::message::KeyboardModifiers
source · pub struct KeyboardModifiers {
pub alt: bool,
pub shift: bool,
pub control: bool,
pub system: bool,
}
Fields§
§alt: bool
§shift: bool
§control: bool
§system: bool
Implementations§
Trait Implementations§
source§impl Clone for KeyboardModifiers
impl Clone for KeyboardModifiers
source§fn clone(&self) -> KeyboardModifiers
fn clone(&self) -> KeyboardModifiers
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 KeyboardModifiers
impl Debug for KeyboardModifiers
source§impl Default for KeyboardModifiers
impl Default for KeyboardModifiers
source§fn default() -> KeyboardModifiers
fn default() -> KeyboardModifiers
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for KeyboardModifiers
impl<'de> Deserialize<'de> for KeyboardModifiers
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for KeyboardModifiers
impl Hash for KeyboardModifiers
source§impl Ord for KeyboardModifiers
impl Ord for KeyboardModifiers
source§fn cmp(&self, other: &KeyboardModifiers) -> Ordering
fn cmp(&self, other: &KeyboardModifiers) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<KeyboardModifiers> for KeyboardModifiers
impl PartialEq<KeyboardModifiers> for KeyboardModifiers
source§fn eq(&self, other: &KeyboardModifiers) -> bool
fn eq(&self, other: &KeyboardModifiers) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<KeyboardModifiers> for KeyboardModifiers
impl PartialOrd<KeyboardModifiers> for KeyboardModifiers
source§fn partial_cmp(&self, other: &KeyboardModifiers) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyboardModifiers) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Reflect for KeyboardModifierswhere
Self: 'static,
bool: Reflect,
impl Reflect for KeyboardModifierswhere Self: 'static, bool: Reflect,
fn type_name(&self) -> &'static str
fn doc(&self) -> &'static str
fn fields_info(&self, func: &mut dyn FnMut(Vec<FieldInfo<'_>>))
fn into_any(self: Box<Self>) -> Box<dyn Any>
fn set( &mut self, value: Box<dyn Reflect> ) -> Result<Box<dyn Reflect>, Box<dyn Reflect>>
fn as_any(&self, func: &mut dyn FnMut(&dyn Any))
fn as_any_mut(&mut self, func: &mut dyn FnMut(&mut dyn Any))
fn as_reflect(&self, func: &mut dyn FnMut(&dyn Reflect))
fn as_reflect_mut(&mut self, func: &mut dyn FnMut(&mut dyn Reflect))
fn fields(&self, func: &mut dyn FnMut(Vec<&dyn Reflect>))
fn fields_mut(&mut self, func: &mut dyn FnMut(Vec<&mut dyn Reflect>))
fn field(&self, name: &str, func: &mut dyn FnMut(Option<&dyn Reflect>))
fn field_mut( &mut self, name: &str, func: &mut dyn FnMut(Option<&mut dyn Reflect>) )
source§fn set_field(
&mut self,
field: &str,
value: Box<dyn Reflect, Global>,
func: &mut dyn FnMut(Result<Box<dyn Reflect, Global>, Box<dyn Reflect, Global>>)
)
fn set_field( &mut self, field: &str, value: Box<dyn Reflect, Global>, func: &mut dyn FnMut(Result<Box<dyn Reflect, Global>, Box<dyn Reflect, Global>>) )
Calls user method specified with
#[reflect(setter = ..)]
or falls back to
Reflect::field_mut
fn as_array(&self, func: &mut dyn FnMut(Option<&(dyn ReflectArray + 'static)>))
fn as_array_mut( &mut self, func: &mut dyn FnMut(Option<&mut (dyn ReflectArray + 'static)>) )
fn as_list(&self, func: &mut dyn FnMut(Option<&(dyn ReflectList + 'static)>))
fn as_list_mut( &mut self, func: &mut dyn FnMut(Option<&mut (dyn ReflectList + 'static)>) )
fn as_inheritable_variable( &self, func: &mut dyn FnMut(Option<&(dyn ReflectInheritableVariable + 'static)>) )
fn as_inheritable_variable_mut( &mut self, func: &mut dyn FnMut(Option<&mut (dyn ReflectInheritableVariable + 'static)>) )
fn as_hash_map( &self, func: &mut dyn FnMut(Option<&(dyn ReflectHashMap + 'static)>) )
fn as_hash_map_mut( &mut self, func: &mut dyn FnMut(Option<&mut (dyn ReflectHashMap + 'static)>) )
source§impl Serialize for KeyboardModifiers
impl Serialize for KeyboardModifiers
impl Copy for KeyboardModifiers
impl Eq for KeyboardModifiers
impl StructuralEq for KeyboardModifiers
impl StructuralPartialEq for KeyboardModifiers
Auto Trait Implementations§
impl RefUnwindSafe for KeyboardModifiers
impl Send for KeyboardModifiers
impl Sync for KeyboardModifiers
impl Unpin for KeyboardModifiers
impl UnwindSafe for KeyboardModifiers
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere T: 'static,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ResolvePath for Twhere
T: Reflect,
impl<T> ResolvePath for Twhere T: Reflect,
fn resolve_path<'p>( &self, path: &'p str, func: &mut dyn FnMut(Result<&(dyn Reflect + 'static), ReflectPathError<'p>>) )
fn resolve_path_mut<'p>( &mut self, path: &'p str, func: &mut dyn FnMut(Result<&mut (dyn Reflect + 'static), ReflectPathError<'p>>) )
fn get_resolve_path<T, 'p>( &self, path: &'p str, func: &mut dyn FnMut(Result<&T, ReflectPathError<'p>>) )where T: Reflect,
fn get_resolve_path_mut<T, 'p>( &mut self, path: &'p str, func: &mut dyn FnMut(Result<&mut T, ReflectPathError<'p>>) )where T: Reflect,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.