Struct vega_lite_4::BrushConfigBuilder
source · pub struct BrushConfigBuilder { /* private fields */ }
Expand description
Builder for BrushConfig
.
Implementations§
source§impl BrushConfigBuilder
impl BrushConfigBuilder
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 interval mark. Any valid CSS cursor type can be used.
sourcepub fn fill<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn fill<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The fill color of the interval mark.
Default value: "#333333"
sourcepub fn fill_opacity<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn fill_opacity<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
The fill opacity of the interval mark (a value between 0
and 1
).
Default value: 0.125
sourcepub fn stroke<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn stroke<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The stroke color of the interval mark.
Default value: "#ffffff"
sourcepub fn stroke_dash<VALUE: Into<Vec<f64>>>(&mut self, value: VALUE) -> &mut Self
pub fn stroke_dash<VALUE: Into<Vec<f64>>>(&mut self, value: VALUE) -> &mut Self
An array of alternating stroke and space lengths, for creating dashed or dotted lines.
sourcepub fn stroke_dash_offset<VALUE: Into<f64>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn stroke_dash_offset<VALUE: Into<f64>>( &mut self, value: VALUE ) -> &mut Self
The offset (in pixels) with which to begin drawing the stroke dash array.
sourcepub fn stroke_opacity<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn stroke_opacity<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
The stroke opacity of the interval mark (a value between 0
and 1
).
sourcepub fn stroke_width<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn stroke_width<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
The stroke width of the interval mark.
sourcepub fn build(&self) -> Result<BrushConfig, BrushConfigBuilderError>
pub fn build(&self) -> Result<BrushConfig, BrushConfigBuilderError>
Trait Implementations§
source§impl Clone for BrushConfigBuilder
impl Clone for BrushConfigBuilder
source§fn clone(&self) -> BrushConfigBuilder
fn clone(&self) -> BrushConfigBuilder
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 BrushConfigBuilder
impl Send for BrushConfigBuilder
impl Sync for BrushConfigBuilder
impl Unpin for BrushConfigBuilder
impl UnwindSafe for BrushConfigBuilder
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