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
include
asw
modules
ui
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
15
namespace
asw::ui
{
16
19
class
VBox
:
public
Widget
{
20
public
:
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
asw::ui::Context
Shared state for the UI system.
Definition
context.h:75
asw::ui::VBox
A vertical box layout container.
Definition
vbox.h:19
asw::ui::VBox::layout
void layout(Context &ctx) override
Lay out children vertically.
Definition
vbox.cpp:3
asw::ui::VBox::gap
float gap
Gap between child elements.
Definition
vbox.h:22
asw::ui::VBox::padding
float padding
Padding around the content.
Definition
vbox.h:25
asw::ui::Widget
Base class for all UI widgets.
Definition
widget.h:28
context.h
UI context and focus management for the ASW UI module.
asw::ui
Definition
button.h:19
widget.h
Base widget class for the ASW UI module.
Generated by
1.12.0