Struct map_gui::tools::DivergingScale [−][src]
pub struct DivergingScale { low_color: Color, mid_color: Color, high_color: Color, min: f64, avg: f64, max: f64, ignore: Option<(f64, f64)>, }
Fields
low_color: Color
mid_color: Color
high_color: Color
min: f64
avg: f64
max: f64
ignore: Option<(f64, f64)>
Implementations
impl DivergingScale
[src]
impl DivergingScale
[src]pub fn new(
low_color: Color,
mid_color: Color,
high_color: Color
) -> DivergingScale
[src]
low_color: Color,
mid_color: Color,
high_color: Color
) -> DivergingScale
pub fn range(self, min: f64, max: f64) -> DivergingScale
[src]
pub fn ignore(self, from: f64, to: f64) -> DivergingScale
[src]
pub fn eval(&self, value: f64) -> Option<Color>
[src]
pub fn make_legend<I: Into<String>>(
self,
ctx: &mut EventCtx<'_>,
labels: Vec<I>
) -> Widget
[src]
self,
ctx: &mut EventCtx<'_>,
labels: Vec<I>
) -> Widget
Auto Trait Implementations
impl RefUnwindSafe for DivergingScale
impl Send for DivergingScale
impl Sync for DivergingScale
impl Unpin for DivergingScale
impl UnwindSafe for DivergingScale
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,