← API Reference Struct

asge::game::components::UIPanel

A rectangular background container, drawn from a sibling UIRect.

#include <UIPanel.hpp>

Collaboration

classDiagram
    class N1["asge::game::components::UIPanel"]
    class N2["asge::graphics::RGBA_Color"]
    N1 --> N2 : m_Background
    click N1 href "structasge_1_1game_1_1components_1_1UIPanel.html"
    click N2 href "structasge_1_1graphics_1_1RGBA__Color.html"

RenderSystem fills the UIRect inset by m_Margin with m_Background, then, if m_Border is set, outlines the full UIRect in m_BorderColor. systems:: UILayoutSystem then places and resizes its Hierarchy children into m_Layout's slots, inset by m_Margin + m_Padding with m_Spacing between neighbouring slots.

Public Attributes

#math::Float2 m_Padding { 0.0f, 0.0f }
#math::Float2 m_Margin { 0.0f, 0.0f }
#math::Float2 m_Spacing { 0.0f, 0.0f }
#bool m_Border { true }