Struct epaint::PathShape [−][src]
pub struct PathShape {
pub points: Vec<Pos2>,
pub closed: bool,
pub fill: Color32,
pub stroke: Stroke,
}
Expand description
A path which can be stroked and/or filled (if closed).
Fields
points: Vec<Pos2>
closed: bool
If true, connect the first and last of the points together.
This is required if fill != TRANSPARENT
.
fill: Color32
Fill is only supported for convex polygons.
stroke: Stroke
Implementations
A line through many points.
Use Shape::line_segment
instead if your line only connects two points.
A line that closes back to the start point again.
A convex polygon with a fill and optional stroke.
Screen-space bounding rectangle.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for PathShape
impl UnwindSafe for PathShape
Blanket Implementations
Mutably borrows from an owned value. Read more