Enum dessin::ShapeType [−][src]
pub enum ShapeType {
Drawing(Vec<Shape>),
Text {
text: String,
align: TextAlign,
font_size: f32,
font_weight: FontWeight,
},
Line {
from: Vec2,
to: Vec2,
},
Circle {
radius: f32,
},
Image {
data: ImageFormat,
},
Path {
keypoints: Vec<Keypoint>,
closed: bool,
},
}
Variants
Fields of Text
Fields of Circle
radius: f32
Fields of Image
data: ImageFormat
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ShapeType
impl UnwindSafe for ShapeType
Blanket Implementations
Mutably borrows from an owned value. Read more