pub struct SurfaceTheme { /* private fields */ }Expand description
Paints applied to renderer-owned drawing surfaces.
Implementations§
Source§impl SurfaceTheme
impl SurfaceTheme
Sourcepub fn new(canvas_root: Color, plot_panel: Color) -> Result<Self, Error>
pub fn new(canvas_root: Color, plot_panel: Color) -> Result<Self, Error>
Construct complete surface paints; transparent paints are valid.
Sourcepub fn get_canvas_root(&self) -> Color
pub fn get_canvas_root(&self) -> Color
Inspect the complete Canvas root paint.
Sourcepub fn get_plot_panel(&self) -> Color
pub fn get_plot_panel(&self) -> Color
Inspect the complete Plot panel paint.
Sourcepub fn canvas_root(self, canvas_root: Color) -> Result<Self, Error>
pub fn canvas_root(self, canvas_root: Color) -> Result<Self, Error>
Replace only the Canvas root paint.
Sourcepub fn plot_panel(self, plot_panel: Color) -> Result<Self, Error>
pub fn plot_panel(self, plot_panel: Color) -> Result<Self, Error>
Replace only the Plot panel paint.
Trait Implementations§
Source§impl Clone for SurfaceTheme
impl Clone for SurfaceTheme
Source§impl Debug for SurfaceTheme
impl Debug for SurfaceTheme
Source§impl PartialEq for SurfaceTheme
impl PartialEq for SurfaceTheme
impl StructuralPartialEq for SurfaceTheme
Auto Trait Implementations§
impl Forget for SurfaceTheme
impl Freeze for SurfaceTheme
impl Move for SurfaceTheme
impl RefUnwindSafe for SurfaceTheme
impl Send for SurfaceTheme
impl Sync for SurfaceTheme
impl Unpin for SurfaceTheme
impl UnsafeUnpin for SurfaceTheme
impl UnwindSafe for SurfaceTheme
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.