gigawidgets 0.3.55
A wxWidgets-style UI library for the Arduino Giga Display Shield.
 
Loading...
Searching...
No Matches
blink.hpp
Go to the documentation of this file.
1
2#pragma once
3
5
6namespace ui {
7
11class Blink : public SingleChildWidget {
12private:
14 time_t lastRender;
16 time_t delay;
18 bool visible;
19
20public:
26 Blink(Widget *child, time_t time = 1000);
27
28 void draw() const override;
29 void render(bool force) const override;
30 void update(time_t time_ms) override;
31
32 Size size() const override;
33 Bounds bounds() const override;
34
35 void drawDone() override;
36
37 DERIVE_EVENT_HANDLERS(Blink)
38};
39
40} // namespace ui
The common interface for a widget that contains a single child.
Definition single_child_widget.hpp:11
Widget * child
The child widget.
Definition single_child_widget.hpp:14
The common interface for all UI objects.
Definition widget.hpp:27
A struct that holds the pixel space that a widget would take up on the screen.
Definition bounds.hpp:11
A struct that holds the number of pixels that a widget would take up on the screen.
Definition size.hpp:17