Skip to main content

Module layout

Module layout 

Source
Expand description

Layout components Layout helpers

Minimal utilities for specialized layout needs:

  • AspectRatio - Maintain aspect ratio with fit/fill modes
  • Table - Responsive table with shadcn/ui styling
  • BentoGrid - Variable-sized tile grid layout

§For everything else, use egui’s built-ins:

  • Vertical/Horizontal layouts: ui.vertical(), ui.horizontal()
  • Grids: egui::Grid
  • Max width: ui.set_max_width()
  • Spacing: ui.add_space()
  • Separators: Use Separator component

For advanced layout (Flexbox, CSS Grid), consider using egui_taffy.

Re-exports§

pub use resizable::Resizable;
pub use resizable::ResizableDirection;
pub use resizable::ResizablePanel;
pub use resizable::ResizableResponse;

Modules§

resizable
Resizable Panel Component (shadcn/ui style)

Structs§

AspectRatio
Maintain aspect ratio wrapper
BentoGrid
Bento grid layout component
TableCells
Builder for table cells
TableRows
Builder for table rows

Enums§

ContentMode
How content should be sized within the aspect ratio container
GridSpan
Grid item span configuration

Functions§

cell
Add a text cell to the current row
cell_ui
Add a custom cell with custom content
header_row
Add a header row to the table
row
Add a data row to the table
table
A table component following shadcn/ui design