gpui_material_extras/arrangement.rs
1/// Logical main-axis arrangement for items inside a horizontal container such as
2/// `ButtonGroup` or docked `Toolbar`.
3#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
4pub enum ContentArrangement {
5 /// Packs items toward the leading edge (respects RTL).
6 #[default]
7 Start,
8 /// Centers items within the available horizontal space.
9 Center,
10 /// Packs items toward the trailing edge (respects RTL).
11 End,
12 /// Distributes remaining space evenly between items.
13 SpaceBetween,
14 /// Distributes remaining space around each item, with half-size outer margins.
15 SpaceAround,
16 /// Distributes remaining space equally between items and both outer edges.
17 SpaceEvenly,
18}