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