gigawidgets 0.3.55
A wxWidgets-style UI library for the Arduino Giga Display Shield.
 
Loading...
Searching...
No Matches
collection.hpp
Go to the documentation of this file.
1
2#pragma once
3
5
6namespace ui {
7
13 Size widgetSize;
14
15public:
23 Collection(const Size &size, const Position &pos = {0, 0}, const Alignment &align = {ALIGN_LEFT, ALIGN_TOP}, const Padding &padding = {0});
24
25 Size size() const override;
26
27 DERIVE_EVENT_HANDLERS(Collection)
28};
29
30} // namespace ui
A container widget for displaying a list of arbitrarily-positioned child widgets.
Definition collection.hpp:11
Size size() const override
Get the size of the widget.
Collection(const Size &size, const Position &pos={0, 0}, const Alignment &align={ALIGN_LEFT, ALIGN_TOP}, const Padding &padding={0})
Construct a collection.
The common interface for a widget that contains multiple children.
Definition multi_child_widget.hpp:13
Padding padding
The padding that will be applied to any child widgets.
Definition widget.hpp:51
A struct that holds a widget's vertical and horizontal alignment.
Definition alignment.hpp:22
A struct that holds the normalized position of a widget.
Definition position.hpp:15
A struct that holds the number of pixels that a widget would take up on the screen.
Definition size.hpp:17