Struct fretboard_layout::config::Config[][src]

pub struct Config {
    pub units: Units,
    pub border: f64,
    pub line_weight: f64,
    pub fretline_color: Color,
    pub fretboard_color: Color,
    pub centerline_color: Option<Color>,
    pub font: Option<Font>,
}
Expand description

All of the configuration values which can be set in config.toml get stored in this struct

Fields

units: Units

Whether to use Millimeters (mm) or Inches (in) when displaying lengths

border: f64

The border which will appear around the rendering

line_weight: f64

The line weight for all of the elements in mm

fretline_color: Color

The color of the fret lines

fretboard_color: Color

The background color of the fretboard

centerline_color: Option<Color>

The color of the centerline

font: Option<Font>

The font used for the specifications

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.