#[repr(C)]pub struct SDL_Color {
pub r: Uint8,
pub g: Uint8,
pub b: Uint8,
pub a: Uint8,
}Expand description
A structure that represents a color as RGBA components.
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).
§Availability
This struct is available since SDL 3.2.0.
Fields§
§r: Uint8§g: Uint8§b: Uint8§a: Uint8Trait Implementations§
impl Copy for SDL_Color
impl Eq for SDL_Color
impl StructuralPartialEq for SDL_Color
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