Struct plt_draw::ShapeDescriptor
source · [−]pub struct ShapeDescriptor<'a> {
pub point: Point,
pub shape: Shape,
pub fill_color: Color,
pub line_width: u32,
pub line_color: Color,
pub line_dashes: &'a [f64],
pub clip_area: Option<Area>,
}
Expand description
Describes a shape to be drawn.
Fields
point: Point
The point at which the shape is drawn.
shape: Shape
The shape to be drawn.
fill_color: Color
The fill color of the shape.
line_width: u32
The width of the outline line.
line_color: Color
The color of the outline.
line_dashes: &'a [f64]
How the outline will be dashed.
clip_area: Option<Area>
Optionally clip drawing to some area.
Trait Implementations
sourceimpl<'a> Clone for ShapeDescriptor<'a>
impl<'a> Clone for ShapeDescriptor<'a>
sourcefn clone(&self) -> ShapeDescriptor<'a>
fn clone(&self) -> ShapeDescriptor<'a>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a> Debug for ShapeDescriptor<'a>
impl<'a> Debug for ShapeDescriptor<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ShapeDescriptor<'a>
impl<'a> Send for ShapeDescriptor<'a>
impl<'a> Sync for ShapeDescriptor<'a>
impl<'a> Unpin for ShapeDescriptor<'a>
impl<'a> UnwindSafe for ShapeDescriptor<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more