[][src]Struct vega_lite_4::TentacledLinearGradientBuilder

pub struct TentacledLinearGradientBuilder { /* fields omitted */ }

Implementations

impl TentacledLinearGradientBuilder[src]

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

The type of gradient. Use "linear" for a linear gradient.

The type of gradient. Use "radial" for a radial gradient.

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

pub fn stops<VALUE: Into<Vec<GradientStop>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

An array of gradient stops defining the gradient color sequence.

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

The starting x-coordinate, in normalized [0, 1] coordinates, of the linear gradient.

Default value: 0

The x-coordinate, in normalized [0, 1] coordinates, for the center of the inner circle for the gradient.

Default value: 0.5

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

The ending x-coordinate, in normalized [0, 1] coordinates, of the linear gradient.

Default value: 1

The x-coordinate, in normalized [0, 1] coordinates, for the center of the outer circle for the gradient.

Default value: 0.5

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

The starting y-coordinate, in normalized [0, 1] coordinates, of the linear gradient.

Default value: 0

The y-coordinate, in normalized [0, 1] coordinates, for the center of the inner circle for the gradient.

Default value: 0.5

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

The ending y-coordinate, in normalized [0, 1] coordinates, of the linear gradient.

Default value: 0

The y-coordinate, in normalized [0, 1] coordinates, for the center of the outer circle for the gradient.

Default value: 0.5

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

The radius length, in normalized [0, 1] coordinates, of the inner circle for the gradient.

Default value: 0

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

The radius length, in normalized [0, 1] coordinates, of the outer circle for the gradient.

Default value: 0.5

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

Vega expression (which can refer to Vega-Lite parameters).

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

Builds a new TentacledLinearGradient.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for TentacledLinearGradientBuilder[src]

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