pub enum MarkerShape {
Show 16 variants
Circle,
Ellipse {
aspect_ratio: f64,
},
Square,
Rectangle {
aspect_ratio: f64,
},
RoundedSquare {
corner_ratio: f64,
},
Diamond,
Triangle,
TriangleUp,
TriangleDown,
TriangleLeft,
TriangleRight,
RegularPolygon {
sides: u8,
rotation_deg: f64,
},
Star {
points: u8,
inner_ratio: f64,
rotation_deg: f64,
},
Plus,
Cross,
Asterisk {
arms: u8,
},
}Expand description
A built-in scientific marker outline.
Plus is the orthogonal + symbol; Cross is the diagonal x symbol.
Triangle is retained as the legacy spelling for MarkerShape::TriangleUp.
Variants§
Circle
A circle, approximated by 32 shared logical vertices.
Ellipse
An ellipse with positive horizontal-to-vertical aspect ratio.
Square
An axis-aligned square.
Rectangle
A rectangle with positive horizontal-to-vertical aspect ratio.
RoundedSquare
A square with a finite corner ratio in 0.0..=0.5.
Diamond
A 45-degree square.
Triangle
Historical alias for MarkerShape::TriangleUp.
TriangleUp
An upward-pointing triangle.
TriangleDown
A downward-pointing triangle.
TriangleLeft
A left-pointing triangle.
TriangleRight
A right-pointing triangle.
RegularPolygon
A regular polygon with intrinsic rotation.
Star
A star with alternating outer and inner vertices.
Plus
Stroke-only orthogonal +.
Cross
Stroke-only diagonal x.
Asterisk
Stroke-only multi-arm symbol.
Implementations§
Source§impl MarkerShape
impl MarkerShape
Sourcepub const fn is_fillable(self) -> bool
pub const fn is_fillable(self) -> bool
Whether the shape can carry a fill or partition.