[][src]Struct ploteria::key::KeyProperties

pub struct KeyProperties { /* fields omitted */ }

Properties of the key.

Modified through configure_key.

Implementations

impl KeyProperties[src]

pub fn hide(&mut self) -> &mut KeyProperties[src]

Hides the key

pub fn show(&mut self) -> &mut KeyProperties[src]

Shows the key

Note The key is shown by default

pub fn boxed(&mut self, boxed: bool) -> &mut KeyProperties[src]

Should the key be surrounded by a box or not?

Note The key is not boxed by default

pub fn justification(
    &mut self,
    justification: Justification
) -> &mut KeyProperties
[src]

Changes the justification of the text of each entry

Note The text is RightJustified by default

pub fn order(&mut self, order: Order) -> &mut KeyProperties[src]

How to order each entry

Note The default order is TextSample

pub fn position(&mut self, position: Position) -> &mut KeyProperties[src]

Selects where to place the key

Note By default, the key is placed Inside(Vertical::Top, Horizontal::Right)

pub fn stacked(&mut self, stacked: Stacked) -> &mut KeyProperties[src]

Changes how the entries of the key are stacked

pub fn title<S>(&mut self, title: S) -> &mut KeyProperties where
    S: Into<Cow<'static, str>>, 
[src]

Set the title

Trait Implementations

impl Clone for KeyProperties[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.