Jazz2::UI::Windows::Panel class

A stack with a background.

Base classes

class Stack
Places its children in a row or a column.

Derived classes

class Dialog
Window shown over the interface with a title, content and buttons.
class MenuBar
Menu bar at the top of the window.
class OnScreenKeyboard
Keyboard on the screen, for a gamepad or a touch screen where the system has none.
class PopupMenu
Menu shown over the interface.

Constructors, destructors, conversion operators

Panel(PanelStyle style = PanelStyle::Panel, Windows::Orientation orientation = Windows::Orientation::Vertical, float spacing = Theme::Spacing, Thickness padding = Thickness(Theme::Padding)) explicit
Creates a new instance.

Public functions

void Draw(Painter& painter) override
Draws the element and its children.
auto AcceptsPointer() const -> bool override
Returns true if the element takes the pointer itself.

Public variables

PanelStyle Style
How the panel is drawn.
bool ClipContent
Whether children that don't fit are cut off at the bounds of the panel.