pub enum ShapeKind {
Rect,
Circle,
Layout,
Text,
Code,
}Expand description
Shape kind.
Variants§
Rect
Rectangle (with rounding by radius).
Circle
An ellipse inscribed in the shape’s bounding box. With equal width and
height it is a perfect circle. The radius property does
not affect it.
Layout
A layout container with no fill of its own: behaves like
Rect (sizes, padding, gap, child layout) but draws
nothing itself — it only positions children. Its background is not drawn,
even if set via background.
Text
Text: draws lines with CSS-like properties (font, font size, color,
alignment, line height, letter spacing). The natural size is taken from
the content, and the background is transparent by default. See
Shape::text.
Code
Code: the same as Text in everything (font, layout,
edits, animations), but instead of a single color glyphs are colored
per-character by syntax highlighting — Palette and Language. See
Shape::code.