Struct fermium::pixels::SDL_Palette
source · #[repr(C)]pub struct SDL_Palette {
pub ncolors: c_int,
pub colors: *mut SDL_Color,
pub version: u32,
pub refcount: c_int,
}
Expand description
Info about a palette of colors.
Generally, you shouldn’t alter these fields. In fact usually you shouldn’t even allocate or free these on your own, SDL2 will do so for you at the appropriate times.
Fields§
§ncolors: c_int
§colors: *mut SDL_Color
§version: u32
§refcount: c_int
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SDL_Palette
impl !Send for SDL_Palette
impl !Sync for SDL_Palette
impl Unpin for SDL_Palette
impl UnwindSafe for SDL_Palette
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