pub struct Legend { /* private fields */ }
Implementations§
source§impl Legend
impl Legend
pub fn new() -> Self
pub fn type_<T: Into<LegendType>>(self, type_: T) -> Self
pub fn show(self, show: bool) -> Self
pub fn zlevel<F: Into<f64>>(self, zlevel: F) -> Self
pub fn z<F: Into<f64>>(self, z: F) -> Self
pub fn left<C: Into<CompositeValue>>(self, left: C) -> Self
pub fn top<C: Into<CompositeValue>>(self, top: C) -> Self
pub fn right<C: Into<CompositeValue>>(self, right: C) -> Self
pub fn bottom<C: Into<CompositeValue>>(self, bottom: C) -> Self
pub fn width<C: Into<CompositeValue>>(self, width: C) -> Self
pub fn height<C: Into<CompositeValue>>(self, height: C) -> Self
pub fn orient<O: Into<Orient>>(self, orient: O) -> Self
pub fn align<A: Into<LabelAlign>>(self, align: A) -> Self
pub fn padding<P: Into<Padding>>(self, padding: P) -> Self
pub fn item_gap<F: Into<f64>>(self, item_gap: F) -> Self
pub fn item_width<F: Into<f64>>(self, item_width: F) -> Self
pub fn item_height<F: Into<f64>>(self, item_height: F) -> Self
pub fn item_style<S: Into<ItemStyle>>(self, item_style: S) -> Self
pub fn line_style<S: Into<LineStyle>>(self, line_style: S) -> Self
pub fn text_style<S: Into<TextStyle>>(self, text_style: S) -> Self
pub fn symbol_rotate<S: Into<String>>(self, symbol_rotate: S) -> Self
pub fn formatter<S: Into<String>>(self, formatter: S) -> Self
pub fn selected_mode<S: Into<LegendSelectedMode>>( self, selected_mode: S ) -> Self
pub fn border_color<C: Into<Color>>(self, border_color: C) -> Self
pub fn inactive_color<C: Into<Color>>(self, inactive_color: C) -> Self
pub fn data<L: Into<LegendItem>>(self, data: Vec<L>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Legend
impl Send for Legend
impl Sync for Legend
impl Unpin for Legend
impl UnwindSafe for Legend
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