Struct fermium::pixels::SDL_Palette[][src]

#[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_intcolors: *mut SDL_Colorversion: u32refcount: c_int

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.