pub struct SvgRenderContextBuilder(/* private fields */);Expand description
Fluent builder for constructing an SvgRenderContextA1.
Implementations§
Source§impl SvgRenderContextBuilder
impl SvgRenderContextBuilder
pub fn new() -> Self
pub fn profile(self, profile: SvgProfile) -> Self
pub fn background(self, background: SvgBackground) -> Self
pub fn fallback_style(self, style: SvgStyleOverride) -> Self
pub fn semantic_style( self, role: SvgSemanticRole, style: SvgStyleOverride, ) -> Self
pub fn layer_style(self, pattern: LayerPattern, style: SvgStyleOverride) -> Self
pub fn operation_style( self, kind: PlotterOperationKind, style: SvgStyleOverride, ) -> Self
pub fn primitive_style( self, class: SvgPrimitiveClass, style: SvgStyleOverride, ) -> Self
pub fn raw_color_remap(self, source: SvgColor, target: SvgColor) -> Self
pub fn layer_selection(self, selection: LayerSelection) -> Self
pub fn visibility(self, visibility: SvgVisibility) -> Self
pub fn identity_mode(self, mode: SvgIdentityMode) -> Self
pub fn font_face_override(self, font_face: impl Into<String>) -> Self
pub fn build(self) -> SvgRenderContextA1
Trait Implementations§
Source§impl Clone for SvgRenderContextBuilder
impl Clone for SvgRenderContextBuilder
Source§fn clone(&self) -> SvgRenderContextBuilder
fn clone(&self) -> SvgRenderContextBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SvgRenderContextBuilder
impl Debug for SvgRenderContextBuilder
Auto Trait Implementations§
impl Freeze for SvgRenderContextBuilder
impl RefUnwindSafe for SvgRenderContextBuilder
impl Send for SvgRenderContextBuilder
impl Sync for SvgRenderContextBuilder
impl Unpin for SvgRenderContextBuilder
impl UnsafeUnpin for SvgRenderContextBuilder
impl UnwindSafe for SvgRenderContextBuilder
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