#[repr(C)]pub struct SDL_Color {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}
Expand description
An RGBA color value (8-bits per channel).
Fields§
§r: u8
§g: u8
§b: u8
§a: u8
Trait Implementations§
source§impl Ord for SDL_Color
impl Ord for SDL_Color
source§impl PartialEq<SDL_Color> for SDL_Color
impl PartialEq<SDL_Color> for SDL_Color
source§impl PartialOrd<SDL_Color> for SDL_Color
impl PartialOrd<SDL_Color> for SDL_Color
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 Copy for SDL_Color
impl Eq for SDL_Color
impl StructuralEq for SDL_Color
impl StructuralPartialEq for SDL_Color
Auto Trait Implementations§
impl RefUnwindSafe for SDL_Color
impl Send for SDL_Color
impl Sync for SDL_Color
impl Unpin for SDL_Color
impl UnwindSafe for SDL_Color
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