pub struct PlotLines<'ui, 'p> { /* private fields */ }Expand description
Builder for a plot lines widget
Implementations§
Source§impl<'ui, 'p> PlotLines<'ui, 'p>
impl<'ui, 'p> PlotLines<'ui, 'p>
Sourcepub fn new(ui: &'ui Ui, label: impl AsRef<str>, values: &'p [f32]) -> Self
pub fn new(ui: &'ui Ui, label: impl AsRef<str>, values: &'p [f32]) -> Self
Creates a new plot lines builder
Sourcepub fn values_offset(self, offset: i32) -> Self
pub fn values_offset(self, offset: i32) -> Self
Sets the offset for the values array
Sourcepub fn overlay_text(self, text: impl Into<String>) -> Self
pub fn overlay_text(self, text: impl Into<String>) -> Self
Sets the overlay text
Sourcepub fn graph_size(self, size: [f32; 2]) -> Self
pub fn graph_size(self, size: [f32; 2]) -> Self
Sets the graph size
Trait Implementations§
Auto Trait Implementations§
impl<'ui, 'p> Freeze for PlotLines<'ui, 'p>
impl<'ui, 'p> !RefUnwindSafe for PlotLines<'ui, 'p>
impl<'ui, 'p> !Send for PlotLines<'ui, 'p>
impl<'ui, 'p> !Sync for PlotLines<'ui, 'p>
impl<'ui, 'p> Unpin for PlotLines<'ui, 'p>
impl<'ui, 'p> !UnwindSafe for PlotLines<'ui, 'p>
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