Struct elmesque::text::Style [−] [src]

pub struct Style {
    pub typeface: Option<PathBuf>,
    pub height: Option<f64>,
    pub color: Color,
    pub bold: bool,
    pub italic: bool,
    pub line: Option<Line>,
    pub monospace: bool,
}

Represents all the ways you can style Text. If the type_face list is empty or the height is None, the users will fall back on their default settings. The following Style is black, 16 pixel tall, underlined, and Times New Roman (assuming that typeface is available on the user's computer):

Style { type_face: Some("Times New Roman"), height: Some(16), color: black(), bold: false, italic: false, line: Some(Line::Under), }

Fields

typeface
height
color
bold
italic
line
monospace

Methods

impl Style

fn default() -> Style

Trait Implementations

Derived Implementations

impl Debug for Style

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Style

fn clone(&self) -> Style

fn clone_from(&mut self, source: &Self)