Struct svgbob::Settings
[−]
[src]
pub struct Settings { pub text_width: f32, pub text_height: f32, pub class: Option<String>, pub id: Option<String>, // some fields omitted }
optimization options: 1. None -> Fastest, but not correct looking (paths and text are not reduced) 2. Fast -> Fast and correct looking (text are reduced) 3. All -> Correct looking but slow (paths and text are reduced)
Fields
text_width: f32
text_height: f32
class: Option<String>
the svg class of the generated svg
id: Option<String>
the id of the generated svg
Methods
impl Settings
[src]
fn set_size(&mut self, text_width: f32, text_height: f32)
fn no_optimization() -> Settings
fn separate_lines() -> Settings
fn compact() -> Settings
fn set_selector(&mut self, id: Option<String>, class: Option<String>)
Trait Implementations
impl Debug for Settings
[src]
impl Clone for Settings
[src]
fn clone(&self) -> Settings
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more