[−][src]Struct vega_lite_4::TentacledLinearGradientBuilder
Builder for TentacledLinearGradient
.
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]
&mut self,
value: VALUE
) -> &mut Self
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]
Trait Implementations
impl Clone for TentacledLinearGradientBuilder
[src]
pub fn clone(&self) -> TentacledLinearGradientBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for TentacledLinearGradientBuilder
[src]
pub fn default() -> TentacledLinearGradientBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for TentacledLinearGradientBuilder
[src]
impl Send for TentacledLinearGradientBuilder
[src]
impl Sync for TentacledLinearGradientBuilder
[src]
impl Unpin for TentacledLinearGradientBuilder
[src]
impl UnwindSafe for TentacledLinearGradientBuilder
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,