[−][src]Struct ploteria::key::KeyProperties
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]
&mut self,
justification: Justification
) -> &mut KeyProperties
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]
S: Into<Cow<'static, str>>,
Set the title
Trait Implementations
impl Clone for KeyProperties
[src]
fn clone(&self) -> KeyProperties
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for KeyProperties
impl Send for KeyProperties
impl Sync for KeyProperties
impl Unpin for KeyProperties
impl UnwindSafe for KeyProperties
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,