Struct vega_lite_4::ViewBackgroundBuilder
source · pub struct ViewBackgroundBuilder { /* private fields */ }
Expand description
Builder for ViewBackground
.
Implementations§
source§impl ViewBackgroundBuilder
impl ViewBackgroundBuilder
pub fn corner_radius<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self
sourcepub fn cursor<VALUE: Into<Cursor>>(&mut self, value: VALUE) -> &mut Self
pub fn cursor<VALUE: Into<Cursor>>(&mut self, value: VALUE) -> &mut Self
The mouse cursor used over the view. Any valid CSS cursor type can be used.
sourcepub fn fill<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self
pub fn fill<VALUE: Into<Box<Color>>>(&mut self, value: VALUE) -> &mut Self
The fill color.
Default value: undefined
pub fn fill_opacity<VALUE: Into<Opacity>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn opacity<VALUE: Into<CornerRadiusUnion>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn opacity<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self
The overall opacity (value between [0,1]).
Default value: 0.7
for non-aggregate plots with point
, tick
, circle
, or
square
marks or layered bar
charts and 1
otherwise.
sourcepub fn stroke<VALUE: Into<RemovableValue<Color>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn stroke<VALUE: Into<RemovableValue<Color>>>( &mut self, value: VALUE ) -> &mut Self
The stroke color.
Default value: "#ddd"
pub fn stroke_cap<VALUE: Into<Cap>>(&mut self, value: VALUE) -> &mut Self
pub fn stroke_dash<VALUE: Into<StrokeDashUnion>>( &mut self, value: VALUE ) -> &mut Self
pub fn stroke_dash_offset<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self
pub fn stroke_join<VALUE: Into<StrokeJoinUnion>>( &mut self, value: VALUE ) -> &mut Self
pub fn stroke_miter_limit<VALUE: Into<CornerRadiusUnion>>( &mut self, value: VALUE ) -> &mut Self
pub fn stroke_opacity<VALUE: Into<Opacity>>( &mut self, value: VALUE ) -> &mut Self
pub fn stroke_width<VALUE: Into<FontSize>>(&mut self, value: VALUE) -> &mut Self
sourcepub fn style<VALUE: Into<LegendText>>(&mut self, value: VALUE) -> &mut Self
pub fn style<VALUE: Into<LegendText>>(&mut self, value: VALUE) -> &mut Self
A string or array of strings indicating the name of custom styles to apply to the view background. A style is a named collection of mark property defaults defined within the style configuration. If style is an array, later styles will override earlier styles.
Default value: "cell"
Note: Any specified view background properties will
augment the default style.
sourcepub fn build(&self) -> Result<ViewBackground, ViewBackgroundBuilderError>
pub fn build(&self) -> Result<ViewBackground, ViewBackgroundBuilderError>
Trait Implementations§
source§impl Clone for ViewBackgroundBuilder
impl Clone for ViewBackgroundBuilder
source§fn clone(&self) -> ViewBackgroundBuilder
fn clone(&self) -> ViewBackgroundBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ViewBackgroundBuilder
impl Send for ViewBackgroundBuilder
impl Sync for ViewBackgroundBuilder
impl Unpin for ViewBackgroundBuilder
impl UnwindSafe for ViewBackgroundBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more