Struct penrose::draw::TextStyle [−][src]
pub struct TextStyle {
pub font: String,
pub point_size: i32,
pub fg: Color,
pub bg: Option<Color>,
pub padding: (f64, f64),
}
Expand description
A set of styling options for a text string
Fields
font: String
Font name to use for rendering
point_size: i32
Point size to render the font at
fg: Color
Foreground color in 0xRRGGBB format
bg: Option<Color>
Optional background color in 0xRRGGBB format (default to current background if None)
padding: (f64, f64)
Pixel padding around this piece of text
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TextStyle
impl UnwindSafe for TextStyle
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more