Module boxed

Source
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§

BoxedArgs
Arguments for the Boxed component.
BoxedArgsBuilder
Builder for BoxedArgs.
BoxedItem
BoxedItem represents a stackable child component.

Enums§

BoxedArgsBuilderError
Error type for BoxedArgsBuilder

Traits§

AsBoxedItem
A trait for converting various types into a BoxedItem.

Functions§

boxed
A component that overlays its children on top of each other.