pub struct ShapeStyle {
pub color: RGBAColor,
pub filled: bool,
pub stroke_width: u32,
}
Expand description
Style for any of shape
Fields§
§color: RGBAColor
§filled: bool
§stroke_width: u32
Implementations§
Source§impl ShapeStyle
impl ShapeStyle
pub fn stroke_width(&self, width: u32) -> Self
Trait Implementations§
Source§impl BackendStyle for ShapeStyle
impl BackendStyle for ShapeStyle
Source§fn color(&self) -> BackendColor
fn color(&self) -> BackendColor
Get the color of current style
Source§fn stroke_width(&self) -> u32
fn stroke_width(&self) -> u32
Get the stroke width of current style
Source§impl Clone for ShapeStyle
impl Clone for ShapeStyle
Source§fn clone(&self) -> ShapeStyle
fn clone(&self) -> ShapeStyle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ShapeStyle
impl RefUnwindSafe for ShapeStyle
impl Send for ShapeStyle
impl Sync for ShapeStyle
impl Unpin for ShapeStyle
impl UnwindSafe for ShapeStyle
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