pub struct TitleParamsBuilder { /* private fields */ }
Expand description

Builder for TitleParams.

Implementations§

source§

impl TitleParamsBuilder

source

pub fn align<VALUE: Into<Align>>(&mut self, value: VALUE) -> &mut Self

Horizontal text alignment for title text. One of "left", "center", or "right".

source

pub fn anchor<VALUE: Into<TitleAnchorEnum>>( &mut self, value: VALUE ) -> &mut Self

The anchor position for placing the title. One of "start", "middle", or "end". For example, with an orientation of top these anchor positions map to a left-, center-, or right-aligned title.

Default value: "middle" for single and layered views. "start" for other composite views.

Note: For now, anchor is only customizable only for single and layered views. For other composite views, anchor is always "start".

source

pub fn angle<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn aria<VALUE: Into<Aria>>(&mut self, value: VALUE) -> &mut Self

source

pub fn baseline<VALUE: Into<Baseline>>(&mut self, value: VALUE) -> &mut Self

Vertical text baseline for title and subtitle text. One of "alphabetic" (default), "top", "middle", "bottom", "line-top", or "line-bottom". The "line-top" and "line-bottom" values operate similarly to "top" and "bottom", but are calculated relative to the lineHeight rather than fontSize alone.

source

pub fn color<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn dx<VALUE: Into<CornerRadiusUnion>>(&mut self, value: VALUE) -> &mut Self

source

pub fn dy<VALUE: Into<CornerRadiusUnion>>(&mut self, value: VALUE) -> &mut Self

source

pub fn font<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn font_size<VALUE: Into<FontSize>>(&mut self, value: VALUE) -> &mut Self

source

pub fn font_style<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn font_weight<VALUE: Into<FontWeightUnion>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn frame<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self

source

pub fn limit<VALUE: Into<FontSize>>(&mut self, value: VALUE) -> &mut Self

source

pub fn line_height<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn offset<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn orient<VALUE: Into<TitleParamsOrient>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn style<VALUE: Into<LegendText>>(&mut self, value: VALUE) -> &mut Self

A mark style property to apply to the title text mark.

Default value: "group-title".

source

pub fn subtitle<VALUE: Into<LegendText>>(&mut self, value: VALUE) -> &mut Self

The subtitle Text.

source

pub fn subtitle_color<VALUE: Into<Box<Color>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn subtitle_font<VALUE: Into<Box<Color>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn subtitle_font_size<VALUE: Into<FontSize>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn subtitle_font_style<VALUE: Into<Box<Color>>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn subtitle_font_weight<VALUE: Into<FontWeightUnion>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn subtitle_line_height<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn subtitle_padding<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self

source

pub fn text<VALUE: Into<ConditionalValueDefTextExprRefText>>( &mut self, value: VALUE ) -> &mut Self

The title text.

source

pub fn zindex<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self

The integer z-index indicating the layering of the title group relative to other axis, mark and legend groups.

Default value: 0.

source

pub fn build(&self) -> Result<TitleParams, TitleParamsBuilderError>

Builds a new TitleParams.

Errors

If a required field has not been initialized.

Trait Implementations§

source§

impl Clone for TitleParamsBuilder

source§

fn clone(&self) -> TitleParamsBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for TitleParamsBuilder

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.