Struct widgetry::widgets::line_plot::LinePlot [−][src]
pub struct LinePlot<X: Axis<X>, Y: Axis<Y>> { draw: Drawable, max_x: X, max_y: Y, closest: FindClosest<String>, top_left: ScreenPt, dims: ScreenDims, }
Fields
draw: Drawable
max_x: X
max_y: Y
closest: FindClosest<String>
top_left: ScreenPt
dims: ScreenDims
Implementations
impl<X: Axis<X>, Y: Axis<Y>> LinePlot<X, Y>
[src]
impl<X: Axis<X>, Y: Axis<Y>> LinePlot<X, Y>
[src]pub fn new_widget(
ctx: &EventCtx<'_>,
series: Vec<Series<X, Y>>,
opts: PlotOptions<X, Y>
) -> Widget
[src]
ctx: &EventCtx<'_>,
series: Vec<Series<X, Y>>,
opts: PlotOptions<X, Y>
) -> Widget
Trait Implementations
impl<X: Axis<X>, Y: Axis<Y>> WidgetImpl for LinePlot<X, Y>
[src]
impl<X: Axis<X>, Y: Axis<Y>> WidgetImpl for LinePlot<X, Y>
[src]fn get_dims(&self) -> ScreenDims
[src]
fn set_pos(&mut self, top_left: ScreenPt)
[src]
fn event(&mut self, _: &mut EventCtx<'_>, _: &mut WidgetOutput)
[src]
fn draw(&self, g: &mut GfxCtx<'_>)
[src]
fn can_restore(&self) -> bool
[src]
fn restore(&mut self, _: &mut EventCtx<'_>, _prev: &dyn WidgetImpl)
[src]
Auto Trait Implementations
impl<X, Y> !RefUnwindSafe for LinePlot<X, Y>
impl<X, Y> !Send for LinePlot<X, Y>
impl<X, Y> !Sync for LinePlot<X, Y>
impl<X, Y> Unpin for LinePlot<X, Y> where
X: Unpin,
Y: Unpin,
X: Unpin,
Y: Unpin,
impl<X, Y> UnwindSafe for LinePlot<X, Y> where
X: UnwindSafe,
Y: UnwindSafe,
X: UnwindSafe,
Y: UnwindSafe,