pub struct HistogramRenderOptions {
pub width: u32,
pub height: u32,
pub padding: u32,
pub background: Srgba8,
pub bar: Srgba8,
pub axis: Srgba8,
pub log_scale: bool,
}Available on crate feature
debug-window only.Expand description
Visual configuration for the single-histogram entry points.
Combines HistogramPlotOptions with one bar colour for the
classic “render exactly one histogram” use case. Multi-histogram
plotting goes through HistogramPlotOptions +
HistogramLayer directly.
Fields§
§width: u32Width of the rendered chart in pixels.
height: u32Height of the rendered chart in pixels.
padding: u32Padding around the plot area, in pixels.
background: Srgba8Background fill colour.
bar: Srgba8Bar fill colour. Alpha is honoured but with one layer it simply blends against the background.
axis: Srgba8Axis / baseline colour.
log_scale: boolIf true, scale bar heights logarithmically (log10(1 + count)).
Trait Implementations§
Source§impl Clone for HistogramRenderOptions
impl Clone for HistogramRenderOptions
Source§fn clone(&self) -> HistogramRenderOptions
fn clone(&self) -> HistogramRenderOptions
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 moreimpl Copy for HistogramRenderOptions
Source§impl Debug for HistogramRenderOptions
impl Debug for HistogramRenderOptions
Auto Trait Implementations§
impl Freeze for HistogramRenderOptions
impl RefUnwindSafe for HistogramRenderOptions
impl Send for HistogramRenderOptions
impl Sync for HistogramRenderOptions
impl Unpin for HistogramRenderOptions
impl UnsafeUnpin for HistogramRenderOptions
impl UnwindSafe for HistogramRenderOptions
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
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,
Source§impl<T> ConvertPixelExt for T
impl<T> ConvertPixelExt for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FromLinear<T> for T
impl<T> FromLinear<T> for T
Source§fn from_linear(acc: T) -> T
fn from_linear(acc: T) -> T
Converts a linear-space accumulator value back to this pixel type, applying rounding and clamping. Read more