pub struct PointTheme { /* private fields */ }Expand description
Shared point appearance before selecting its final integral radius.
Implementations§
Source§impl PointTheme
impl PointTheme
Sourcepub fn new(
fill_alpha: f64,
shape: PointShape,
outline: Option<PointOutlineTheme>,
) -> Result<PointTheme, Error>
pub fn new( fill_alpha: f64, shape: PointShape, outline: Option<PointOutlineTheme>, ) -> Result<PointTheme, Error>
Construct mapped fill alpha, closed shape and an independent optional outline.
Sourcepub fn get_fill_alpha(&self) -> f64
pub fn get_fill_alpha(&self) -> f64
Inspect the mapped point fill alpha.
Sourcepub fn get_shape(&self) -> PointShape
pub fn get_shape(&self) -> PointShape
Inspect the closed point shape.
Sourcepub fn get_outline(&self) -> Option<&PointOutlineTheme>
pub fn get_outline(&self) -> Option<&PointOutlineTheme>
Borrow the optional independent outline.
Sourcepub fn fill_alpha(self, fill_alpha: f64) -> Result<PointTheme, Error>
pub fn fill_alpha(self, fill_alpha: f64) -> Result<PointTheme, Error>
Replace only mapped fill alpha.
Sourcepub fn shape(self, shape: PointShape) -> Result<PointTheme, Error>
pub fn shape(self, shape: PointShape) -> Result<PointTheme, Error>
Replace only the closed point shape.
Sourcepub fn outline(
self,
outline: Option<PointOutlineTheme>,
) -> Result<PointTheme, Error>
pub fn outline( self, outline: Option<PointOutlineTheme>, ) -> Result<PointTheme, Error>
Replace the optional independent outline without changing fill or shape.
Trait Implementations§
Source§impl Clone for PointTheme
impl Clone for PointTheme
Source§fn clone(&self) -> PointTheme
fn clone(&self) -> PointTheme
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PointTheme
impl Debug for PointTheme
Source§impl PartialEq for PointTheme
impl PartialEq for PointTheme
impl StructuralPartialEq for PointTheme
Auto Trait Implementations§
impl Forget for PointTheme
impl Freeze for PointThemewhere
*const ArcInner<SpacingPayload> is !null: Freeze,
PhantomData<ArcInner<SpacingPayload>>: Freeze,
impl Move for PointTheme
impl RefUnwindSafe for PointTheme
impl Send for PointTheme
impl Sync for PointTheme
impl Unpin for PointTheme
impl UnsafeUnpin for PointThemewhere
*const ArcInner<SpacingPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpacingPayload>>: UnsafeUnpin,
impl UnwindSafe for PointThemewhere
Arc<SpacingPayload>: UnwindSafe,
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.