Expand description
Provides the Boxed
component for overlaying multiple child components in a single container.
The Boxed
module enables stacking and aligning several UI elements on top of each other,
making it ideal for building layered interfaces, overlays, decorations, or custom backgrounds.
Children are positioned according to the specified Alignment
,
and the container size adapts to the largest child or can be customized via DimensionValue
.
Typical use cases include tooltips, badges, composite controls, or any scenario where multiple widgets need to share the same space with flexible alignment.
This module also provides supporting types and a macro for ergonomic usage.
Macros§
- boxed_
ui - A macro for simplifying
Boxed
component declarations.
Structs§
- Boxed
Args - Arguments for the
Boxed
component. - Boxed
Args Builder - Builder for
BoxedArgs
. - Boxed
Item BoxedItem
represents a stackable child component.
Enums§
- Boxed
Args Builder Error - Error type for BoxedArgsBuilder
Traits§
- AsBoxed
Item - A trait for converting various types into a
BoxedItem
.
Functions§
- boxed
- A component that overlays its children on top of each other.