pub struct DrawingStyle {
pub line: Rgba,
pub line_width: Css,
pub line_dash: LineDash,
pub fill: Rgba,
pub text: Rgba,
pub font_size: Css,
}Expand description
Colors and line settings of a drawing.
Fields§
§line: RgbaLine color.
line_width: CssLine width.
line_dash: LineDashLine dash pattern.
fill: RgbaFill color of areas; alpha 0 draws no fill.
text: RgbaText color.
font_size: CssFont size of texts and labels.
Trait Implementations§
Source§impl Clone for DrawingStyle
impl Clone for DrawingStyle
impl Copy for DrawingStyle
Source§impl Debug for DrawingStyle
impl Debug for DrawingStyle
Source§impl Default for DrawingStyle
impl Default for DrawingStyle
Source§impl PartialEq for DrawingStyle
impl PartialEq for DrawingStyle
impl StructuralPartialEq for DrawingStyle
Auto Trait Implementations§
impl Forget for DrawingStyle
impl Freeze for DrawingStyle
impl Move for DrawingStyle
impl RefUnwindSafe for DrawingStyle
impl Send for DrawingStyle
impl Sync for DrawingStyle
impl Unpin for DrawingStyle
impl UnsafeUnpin for DrawingStyle
impl UnwindSafe for DrawingStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more