pub struct EnhancedChartRenderer;Expand description
Enhanced chart renderer with animation support
Implementations§
Source§impl EnhancedChartRenderer
impl EnhancedChartRenderer
Sourcepub fn render_chart<C, D, T>(
chart: &T,
data: &T::Data,
config: &T::Config,
viewport: Rectangle,
target: &mut D,
) -> RenderResult<()>where
C: PixelColor,
D: DrawTarget<Color = C>,
T: Chart<C>,
T::Data: DataSeries,
<T::Data as DataSeries>::Item: DataPoint,
<<T::Data as DataSeries>::Item as DataPoint>::X: Into<f32> + Copy + PartialOrd,
<<T::Data as DataSeries>::Item as DataPoint>::Y: Into<f32> + Copy + PartialOrd,
pub fn render_chart<C, D, T>(
chart: &T,
data: &T::Data,
config: &T::Config,
viewport: Rectangle,
target: &mut D,
) -> RenderResult<()>where
C: PixelColor,
D: DrawTarget<Color = C>,
T: Chart<C>,
T::Data: DataSeries,
<T::Data as DataSeries>::Item: DataPoint,
<<T::Data as DataSeries>::Item as DataPoint>::X: Into<f32> + Copy + PartialOrd,
<<T::Data as DataSeries>::Item as DataPoint>::Y: Into<f32> + Copy + PartialOrd,
Render a chart with optional animation support
Sourcepub fn render_animated_chart<C, D, T>(
chart: &T,
data: &T::Data,
config: &T::Config,
viewport: Rectangle,
target: &mut D,
) -> RenderResult<()>
pub fn render_animated_chart<C, D, T>( chart: &T, data: &T::Data, config: &T::Config, viewport: Rectangle, target: &mut D, ) -> RenderResult<()>
Render an animated chart
Sourcepub fn update_and_render<C, D, T>(
chart: &mut T,
data: &T::Data,
_delta_time: Milliseconds,
config: &T::Config,
viewport: Rectangle,
target: &mut D,
) -> RenderResult<()>
pub fn update_and_render<C, D, T>( chart: &mut T, data: &T::Data, _delta_time: Milliseconds, config: &T::Config, viewport: Rectangle, target: &mut D, ) -> RenderResult<()>
Update and render an animated chart with timing
Sourcepub fn clear_viewport<C, D>(
viewport: Rectangle,
color: C,
target: &mut D,
) -> RenderResult<()>where
C: PixelColor,
D: DrawTarget<Color = C>,
pub fn clear_viewport<C, D>(
viewport: Rectangle,
color: C,
target: &mut D,
) -> RenderResult<()>where
C: PixelColor,
D: DrawTarget<Color = C>,
Clear a rectangular area with a background color
Auto Trait Implementations§
impl Freeze for EnhancedChartRenderer
impl RefUnwindSafe for EnhancedChartRenderer
impl Send for EnhancedChartRenderer
impl Sync for EnhancedChartRenderer
impl Unpin for EnhancedChartRenderer
impl UnwindSafe for EnhancedChartRenderer
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.