[][src]Struct vega_lite_4::TitleParamsBuilder

pub struct TitleParamsBuilder { /* fields omitted */ }

Builder for TitleParams.

Implementations

impl TitleParamsBuilder[src]

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

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

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

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".

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

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

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

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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Default value: "group-title".

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

The subtitle Text.

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

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

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

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

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

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

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

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

The title text.

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

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

Default value: 0.

pub fn build(&self) -> Result<TitleParams, String>[src]

Builds a new TitleParams.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for TitleParamsBuilder[src]

impl Default for TitleParamsBuilder[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.