Struct fltk_theme::ColorTheme
source · pub struct ColorTheme(pub Vec<ColorMap>);
Expand description
A theme is just a Vec of colormaps
Tuple Fields§
§0: Vec<ColorMap>
Implementations§
source§impl ColorTheme
impl ColorTheme
sourcepub fn from_colormap(map: &[ColorMap]) -> ColorTheme
pub fn from_colormap(map: &[ColorMap]) -> ColorTheme
Load from a color map
sourcepub fn new(map: &[ColorMap]) -> ColorTheme
pub fn new(map: &[ColorMap]) -> ColorTheme
Load from a color map
Trait Implementations§
source§impl Clone for ColorTheme
impl Clone for ColorTheme
source§fn clone(&self) -> ColorTheme
fn clone(&self) -> ColorTheme
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for ColorTheme
impl Send for ColorTheme
impl Sync for ColorTheme
impl Unpin for ColorTheme
impl UnwindSafe for ColorTheme
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