Struct wasm4_sx::DrawColorsBuilder
source · pub struct DrawColorsBuilder(_);
Expand description
Draw colors builder.
Implementations§
source§impl DrawColorsBuilder
impl DrawColorsBuilder
sourcepub fn with_index(self, index: DrawColorsIndex, value: PaletteColor) -> Self
pub fn with_index(self, index: DrawColorsIndex, value: PaletteColor) -> Self
Set a specific palette color for a specific draw color index.
sourcepub fn build(self) -> DrawColors
pub fn build(self) -> DrawColors
Build draw colors.
Trait Implementations§
source§impl Default for DrawColorsBuilder
impl Default for DrawColorsBuilder
source§fn default() -> DrawColorsBuilder
fn default() -> DrawColorsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DrawColorsBuilder
impl Send for DrawColorsBuilder
impl Sync for DrawColorsBuilder
impl Unpin for DrawColorsBuilder
impl UnwindSafe for DrawColorsBuilder
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