#[repr(C)]pub struct DrawColor {
pub rgba: u32,
}Expand description
Draw data for a solid color.
Fields§
§rgba: u32Packed little-endian RGBA premultiplied color with the red component in the low byte, i.e.,
with r the least significant byte and a the most significant.
Trait Implementations§
impl Copy for DrawColor
Source§impl<CS: ColorSpace> From<AlphaColor<CS>> for DrawColor
impl<CS: ColorSpace> From<AlphaColor<CS>> for DrawColor
Source§fn from(color: AlphaColor<CS>) -> Self
fn from(color: AlphaColor<CS>) -> Self
Converts to this type from the input type.
Source§impl From<DynamicColor> for DrawColor
impl From<DynamicColor> for DrawColor
Source§fn from(color: DynamicColor) -> Self
fn from(color: DynamicColor) -> Self
Converts to this type from the input type.
Source§impl<CS: ColorSpace> From<OpaqueColor<CS>> for DrawColor
impl<CS: ColorSpace> From<OpaqueColor<CS>> for DrawColor
Source§fn from(color: OpaqueColor<CS>) -> Self
fn from(color: OpaqueColor<CS>) -> Self
Converts to this type from the input type.
Source§impl<CS: ColorSpace> From<PremulColor<CS>> for DrawColor
impl<CS: ColorSpace> From<PremulColor<CS>> for DrawColor
Source§fn from(color: PremulColor<CS>) -> Self
fn from(color: PremulColor<CS>) -> Self
Converts to this type from the input type.
impl Pod for DrawColor
Auto Trait Implementations§
impl Forget for DrawColor
impl Freeze for DrawColor
impl Move for DrawColor
impl RefUnwindSafe for DrawColor
impl Send for DrawColor
impl Sync for DrawColor
impl Unpin for DrawColor
impl UnsafeUnpin for DrawColor
impl UnwindSafe for DrawColor
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.