Struct gpui2::MonochromeSprite
source · #[repr(C)]pub struct MonochromeSprite {
pub order: u32,
pub bounds: Bounds<ScaledPixels>,
pub content_mask: ContentMask<ScaledPixels>,
pub color: Hsla,
pub tile: AtlasTile,
}
Fields§
§order: u32
§bounds: Bounds<ScaledPixels>
§content_mask: ContentMask<ScaledPixels>
§color: Hsla
§tile: AtlasTile
Trait Implementations§
source§impl Clone for MonochromeSprite
impl Clone for MonochromeSprite
source§fn clone(&self) -> MonochromeSprite
fn clone(&self) -> MonochromeSprite
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 MonochromeSprite
impl Debug for MonochromeSprite
source§impl From<MonochromeSprite> for Primitive
impl From<MonochromeSprite> for Primitive
source§fn from(sprite: MonochromeSprite) -> Self
fn from(sprite: MonochromeSprite) -> Self
Converts to this type from the input type.
source§impl Ord for MonochromeSprite
impl Ord for MonochromeSprite
source§impl PartialEq<MonochromeSprite> for MonochromeSprite
impl PartialEq<MonochromeSprite> for MonochromeSprite
source§fn eq(&self, other: &MonochromeSprite) -> bool
fn eq(&self, other: &MonochromeSprite) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MonochromeSprite> for MonochromeSprite
impl PartialOrd<MonochromeSprite> for MonochromeSprite
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 moreimpl Eq for MonochromeSprite
impl StructuralEq for MonochromeSprite
impl StructuralPartialEq for MonochromeSprite
Auto Trait Implementations§
impl RefUnwindSafe for MonochromeSprite
impl Send for MonochromeSprite
impl Sync for MonochromeSprite
impl Unpin for MonochromeSprite
impl UnwindSafe for MonochromeSprite
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
§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
Compare self to
key
and return true
if they are equal.