[−][src]Struct vega_lite_3::BaseTitleConfigBuilder
Builder for BaseTitleConfig
.
Methods
impl BaseTitleConfigBuilder
[src]
pub fn align<VALUE: Into<Align>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn anchor<VALUE: Into<TitleAnchor>>(&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.
pub fn angle<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
Angle in degrees of title text.
pub fn baseline<VALUE: Into<TextBaseline>>(&mut self, value: VALUE) -> &mut Self
[src]
Vertical text baseline for title text. One of "top"
, "middle"
, "bottom"
, or
"alphabetic"
.
pub fn color<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
Text color for title text.
pub fn dx<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
Delta offset for title text x-coordinate.
pub fn dy<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
Delta offset for title text y-coordinate.
pub fn font<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
Font name for title text.
pub fn font_size<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
Font size in pixels for title text.
Default value: 10
.
pub fn font_style<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
[src]
Font style for title text.
pub fn font_weight<VALUE: Into<FontWeight>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Font weight for title text.
This can be either a string (e.g "bold"
, "normal"
) or a number (100
, 200
, 300
,
..., 900
where "normal"
= 400
and "bold"
= 700
).
pub fn frame<VALUE: Into<TitleFrame>>(&mut self, value: VALUE) -> &mut Self
[src]
The reference frame for the anchor position, one of "bounds"
(to anchor relative to the
full bounding box) or "group"
(to anchor relative to the group width or height).
pub fn limit<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
The maximum allowed length in pixels of legend labels.
pub fn offset<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
The orthogonal offset in pixels by which to displace the title from its position along the edge of the chart.
pub fn orient<VALUE: Into<TitleOrient>>(&mut self, value: VALUE) -> &mut Self
[src]
Default title orientation ("top"
, "bottom"
, "left"
, or "right"
)
pub fn build(&self) -> Result<BaseTitleConfig, String>
[src]
Trait Implementations
impl Clone for BaseTitleConfigBuilder
[src]
fn clone(&self) -> BaseTitleConfigBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for BaseTitleConfigBuilder
[src]
fn default() -> BaseTitleConfigBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for BaseTitleConfigBuilder
impl Send for BaseTitleConfigBuilder
impl Sync for BaseTitleConfigBuilder
impl Unpin for BaseTitleConfigBuilder
impl UnwindSafe for BaseTitleConfigBuilder
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>,