← API Reference Struct

asge::game::components::UILayoutItem

Per-child layout options, read by systems::UILayoutSystem when the entity's parent is a UIPanel.

#include <UILayoutItem.hpp>

Without this component a child stretches to fill its slot on both axes and sits at the slot's start. With it, each axis is independent: m_FillX/m_FillY stretch the child's UIRect to the slot, and an axis that doesn't fill keeps the child's own size and is placed by m_AlignX/m_AlignY.

Public Attributes

#bool m_FillX { true }
#bool m_FillY { true }