gigawidgets 0.3.55
A wxWidgets-style UI library for the Arduino Giga Display Shield.
 
Loading...
Searching...
No Matches
alignment.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include <cinttypes>
5
6namespace ui {
7
11enum align_t {
12 ALIGN_CENTER,
13 ALIGN_LEFT = 1,
14 ALIGN_RIGHT = 2,
15 ALIGN_TOP = 1,
16 ALIGN_BOTTOM = 2,
17};
18
28
29} // namespace ui
30
31#define CENTERED_IN_PARENT \
32 {0, 0}, { \
33 ui::ALIGN_CENTER, ui::ALIGN_CENTER \
34 }
align_t
The various ways a child widget can be aligned in its parent.
Definition alignment.hpp:11
A struct that holds a widget's vertical and horizontal alignment.
Definition alignment.hpp:22
align_t h
The horizontal alignment of the widget.
Definition alignment.hpp:24
align_t v
The vertical alignment of the widget.
Definition alignment.hpp:26