-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
Using the new Atoms layout (AllocatedAtomLayout) is there a way to lay out atoms vertically? I'm thinking for example of buttons with text plus an image.
I see that there is a private Align2.
/// Instructions for painting an [`AtomLayout`].
#[derive(Clone, Debug)]
pub struct AllocatedAtomLayout<'a> {
pub sized_atoms: SmallVec<[SizedAtom<'a>; ATOMS_SMALL_VEC_SIZE]>,
pub frame: Frame,
pub fallback_text_color: Color32,
pub response: Response,
grow_count: usize,
// The size of the inner content, before any growing.
desired_size: Vec2,
align2: Align2,
gap: f32,
}
Metadata
Metadata
Assignees
Labels
No labels