Enum thyme::AnimStateKey
source · pub enum AnimStateKey {
Hover,
Pressed,
Disabled,
Normal,
Active,
}
Expand description
One component of an AnimState
This represents the animation state of a widget. Animated images use this state to determine which image is used from a set of available images.
Variants§
Hover
The mouse is hovering over the widget
Pressed
The mouse is pressed on a widget
Disabled
The widget is disabled
Normal
The widget has no special animation state.
Active
The widget is activated.
Trait Implementations§
source§impl Clone for AnimStateKey
impl Clone for AnimStateKey
source§fn clone(&self) -> AnimStateKey
fn clone(&self) -> AnimStateKey
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 AnimStateKey
impl Debug for AnimStateKey
source§impl<'de> Deserialize<'de> for AnimStateKey
impl<'de> Deserialize<'de> for AnimStateKey
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 AnimStateKey
impl Hash for AnimStateKey
source§impl Ord for AnimStateKey
impl Ord for AnimStateKey
source§fn cmp(&self, other: &AnimStateKey) -> Ordering
fn cmp(&self, other: &AnimStateKey) -> 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<AnimStateKey> for AnimStateKey
impl PartialEq<AnimStateKey> for AnimStateKey
source§fn eq(&self, other: &AnimStateKey) -> bool
fn eq(&self, other: &AnimStateKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<AnimStateKey> for AnimStateKey
impl PartialOrd<AnimStateKey> for AnimStateKey
source§fn partial_cmp(&self, other: &AnimStateKey) -> Option<Ordering>
fn partial_cmp(&self, other: &AnimStateKey) -> 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 Serialize for AnimStateKey
impl Serialize for AnimStateKey
impl Copy for AnimStateKey
impl Eq for AnimStateKey
impl StructuralEq for AnimStateKey
impl StructuralPartialEq for AnimStateKey
Auto Trait Implementations§
impl RefUnwindSafe for AnimStateKey
impl Send for AnimStateKey
impl Sync for AnimStateKey
impl Unpin for AnimStateKey
impl UnwindSafe for AnimStateKey
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> Content for Twhere
T: Copy,
impl<T> Content for Twhere T: Copy,
source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where F: FnOnce(&mut T) -> Result<(), E>,
Prepares an output buffer, then turns this buffer into an
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.