#[repr(C)]pub struct SDL_Palette {
pub ncolors: c_int,
pub colors: *mut SDL_Color,
pub version: Uint32,
pub refcount: c_int,
}Expand description
A set of indexed colors representing a palette.
Available Since: This struct is available since SDL 3.2.0.
See Also: SDL_SetPaletteColors
Fields§
§ncolors: c_int< number of elements in colors.
colors: *mut SDL_Color< an array of colors, ncolors long.
version: Uint32< internal use only, do not touch.
refcount: c_int< internal use only, do not touch.
Trait Implementations§
Source§impl Clone for SDL_Palette
impl Clone for SDL_Palette
Source§fn clone(&self) -> SDL_Palette
fn clone(&self) -> SDL_Palette
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_Palette
impl Debug for SDL_Palette
Source§impl Default for SDL_Palette
impl Default for SDL_Palette
Source§impl Hash for SDL_Palette
impl Hash for SDL_Palette
impl Copy for SDL_Palette
Auto Trait Implementations§
impl Freeze for SDL_Palette
impl RefUnwindSafe for SDL_Palette
impl !Send for SDL_Palette
impl !Sync for SDL_Palette
impl Unpin for SDL_Palette
impl UnsafeUnpin 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