[][src]Struct svgbob::Settings

pub struct Settings {
    pub font_size: usize,
    pub font_family: String,
    pub fill_color: String,
    pub background: String,
    pub stroke_color: String,
    pub stroke_width: f32,
    pub scale: f32,
    pub enhance_circuitries: bool,
}

Fields

font_size: usize

font-size of the text

font_family: String

the font used for the text

fill_color: String

the color fill used in filled solid shape

background: String

the backdrop background color

stroke_color: String

the stroke color of lines, and shapes

stroke_width: f32

the width of the stroke

scale: f32

the scale multiplier

enhance_circuitries: bool

flag whether to enhace circuitries or not, default true

Methods

impl Settings[src]

pub fn scale_inverse(&self) -> f32[src]

the inverse of the default scale 10

Trait Implementations

impl Clone for Settings[src]

impl Debug for Settings[src]

impl Default for Settings[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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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.