Enum egui::Shape [−][src]
pub enum Shape {
Noop,
Vec(Vec<Shape, Global>),
Circle(CircleShape),
LineSegment {
points: [Pos2; 2],
stroke: Stroke,
},
Path(PathShape),
Rect(RectShape),
Text(TextShape),
Mesh(Mesh),
}
Expand description
A paint primitive such as a circle or a piece of text. Coordinates are all screen space points (not physical pixels).
Variants
Paint nothing. This can be useful as a placeholder.
Recursively nest more shapes - sometimes a convenience to be able to do. For performance reasons it is better to avoid it.
Circle(CircleShape)
Tuple Fields of Circle
0: CircleShape
Path(PathShape)
Tuple Fields of Path
0: PathShape
Rect(RectShape)
Tuple Fields of Rect
0: RectShape
Text(TextShape)
Tuple Fields of Text
0: TextShape
Mesh(Mesh)
Tuple Fields of Mesh
0: Mesh
Implementations
A line between two points.
More efficient than calling Self::line
.
A line through many points.
Use Self::line_segment
instead if your line only connects two points.
A line that closes back to the start point again.
Turn a line into equally spaced dots.
Turn a line into dashes.
A convex polygon with a fill and optional stroke.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Shape
impl UnwindSafe for Shape
Blanket Implementations
Mutably borrows from an owned value. Read more