pub enum Kind {
Show 20 variants
Group,
Card,
Button,
Badge,
Text,
Heading,
Spacer,
Divider,
Overlay,
Scrim,
Modal,
Scroll,
VirtualList,
Inlines,
HardBreak,
Math,
Image,
Surface,
Vector,
Custom(&'static str),
}Expand description
Semantic identity of an element. Roughly an HTML tag.
Variants§
Group
A bare layout container with no inherent visuals.
Card
Button
Badge
Text
Heading
Spacer
Divider
Overlay
Scrim
Modal
Scroll
A vertically scrollable region.
VirtualList
Vertically scrollable region whose children are produced lazily.
Inlines
Block whose direct children flow inline.
HardBreak
Forced line break inside a Kind::Inlines block.
Math
Native mathematical notation. Carries a crate::math::MathExpr
and renders through Aetna’s math box layout.
Image
Raster image element.
Surface
App-owned GPU texture composited into the paint stream. Backed
by crate::surface::AppTexture and the crate::tree::surface
builder; the backend samples the texture during paint instead
of uploading pixels.
The texture stretches across the resolved rect with bilinear
filtering — source pixel dimensions and rendered size are
independent. See crate::tree::surface for the full sizing /
aspect-ratio contract.
Vector
App-supplied vector asset. Backed by
crate::vector::VectorAsset and the crate::tree::vector
builder; callers explicitly choose painted vector rendering or
one-colour mask rendering. Unlike Kind::Image (icon-styled,
square-shaped), this is the general-purpose path for arbitrary-
aspect vector content — commit-graph curves, Gantt connectors,
custom chart marks.
Custom(&'static str)
Escape hatch for app-defined components.
Trait Implementations§
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.