32 void draw()
const override;
33 void update(time_t time_ms)
override;
35 DERIVE_EVENT_HANDLERS(
Box)
Display a single widget within arbitrary bounds.
Definition box.hpp:13
void draw() const override
Render the widget to the screen.
void update(time_t time_ms) override
Update any internal state of the widget, and check if it needs to be re-rendered.
Bounds bounds() const override
Get the rendering bounds of this widget.
void setBounds(const Bounds &bounds)
Set the bounds for the child widget.
Box(Widget *child, const Bounds &bounds)
Construct a Box from a child and Bounds to restrict the child to.
A struct that holds the pixel space that a widget would take up on the screen.
Definition bounds.hpp:11