ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
vbox.h
Go to the documentation of this file.
1
8
9#ifndef ASW_MODULES_UI_VBOX_H
10#define ASW_MODULES_UI_VBOX_H
11
12#include "context.h"
13#include "widget.h"
14
15namespace asw::ui {
16
19class VBox : public Widget {
20public:
22 float gap = 8.0F;
23
25 float padding = 10.0F;
26
31 void layout(Context& ctx) override;
32};
33
34} // namespace asw::ui
35
36#endif // ASW_MODULES_UI_VBOX_H
Shared state for the UI system.
Definition context.h:75
A vertical box layout container.
Definition vbox.h:19
void layout(Context &ctx) override
Lay out children vertically.
Definition vbox.cpp:3
float gap
Gap between child elements.
Definition vbox.h:22
float padding
Padding around the content.
Definition vbox.h:25
Base class for all UI widgets.
Definition widget.h:28
UI context and focus management for the ASW UI module.
Base widget class for the ASW UI module.