Module column

Source
Expand description

Provides a flexible vertical layout component for arranging child widgets in a single column.

This module defines the column component, which stacks its children vertically and offers fine-grained control over alignment, sizing, and flexible space distribution via weights. It is suitable for building user interfaces where elements need to be organized from top to bottom, such as forms, lists, or grouped controls.

Key features include:

  • Main/cross axis alignment options
  • Support for fixed, fill, or wrap sizing
  • Weighted children for proportional space allocation
  • Ergonomic macro for declarative usage

Typical usage involves composing UI elements that should be laid out in a vertical sequence, with customizable alignment and spacing behaviors.

Macros§

column_ui
A declarative macro to simplify the creation of a column component.

Structs§

ColumnArgs
Arguments for the column component.
ColumnArgsBuilder
Builder for ColumnArgs.
ColumnItem
Represents a child item within a column layout.

Enums§

ColumnArgsBuilderError
Error type for ColumnArgsBuilder

Traits§

AsColumnItem
Trait to allow various types to be converted into a ColumnItem.

Functions§

column
A column component that arranges its children vertically. A layout component that arranges its children in a vertical sequence.