pub struct Style {
pub fill_color: Color,
pub stroke_color: Color,
pub stroke_width: i32,
}
Expand description
Style of a shape.
Fields§
§fill_color: Color
The color to use to fill the shape.
stroke_color: Color
The color to use for the shape stroke.
stroke_width: i32
The width of the shape stroke.
If zero, a solid shape without a stroke will be drawn.
Implementations§
Trait Implementations§
Source§impl Ord for Style
impl Ord for Style
Source§impl PartialOrd for Style
impl PartialOrd for Style
impl Copy for Style
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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