#[repr(C)]pub struct SDL_Color {
pub r: Uint8,
pub g: Uint8,
pub b: Uint8,
pub a: Uint8,
}
Expand description
The bits of this structure can be directly reinterpreted as an integer-packed color which uses the SDL_PIXELFORMAT_RGBA32 format (SDL_PIXELFORMAT_ABGR8888 on little-endian systems and SDL_PIXELFORMAT_RGBA8888 on big-endian systems).
Fields§
§r: Uint8
§g: Uint8
§b: Uint8
§a: Uint8
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SDL_Color
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