pub struct MultiTextPlot<'a> { /* private fields */ }Expand description
Multiple text labels plot
Implementations§
Source§impl<'a> MultiTextPlot<'a>
impl<'a> MultiTextPlot<'a>
Sourcepub fn new(texts: Vec<&'a str>, positions: Vec<(f64, f64)>) -> Self
pub fn new(texts: Vec<&'a str>, positions: Vec<(f64, f64)>) -> Self
Create a new multi-text plot
Sourcepub fn with_pixel_offsets(self, offsets: Vec<(f64, f64)>) -> Self
pub fn with_pixel_offsets(self, offsets: Vec<(f64, f64)>) -> Self
Set pixel offsets for all texts
Sourcepub fn with_flags(self, flags: TextFlags) -> Self
pub fn with_flags(self, flags: TextFlags) -> Self
Set text flags for all texts
Sourcepub fn with_item_flags(self, flags: ItemFlags) -> Self
pub fn with_item_flags(self, flags: ItemFlags) -> Self
Set common item flags for all text items (applies to all plot types)
Trait Implementations§
Source§impl<'a> PlotData for MultiTextPlot<'a>
impl<'a> PlotData for MultiTextPlot<'a>
Auto Trait Implementations§
impl<'a> Freeze for MultiTextPlot<'a>
impl<'a> RefUnwindSafe for MultiTextPlot<'a>
impl<'a> Send for MultiTextPlot<'a>
impl<'a> Sync for MultiTextPlot<'a>
impl<'a> Unpin for MultiTextPlot<'a>
impl<'a> UnsafeUnpin for MultiTextPlot<'a>
impl<'a> UnwindSafe for MultiTextPlot<'a>
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