13namespace hi {
inline namespace v1 {
25 [[nodiscard]] generator<widget *> children()
const noexcept override
35 r.maximum = extent2i::large();
44 void draw(draw_context
const& context)
noexcept {}
46 [[nodiscard]] hitbox
hitbox_test(point2i position)
const noexcept
DOXYGEN BUG.
Definition algorithm.hpp:15
geometry/margins.hpp
Definition assert.hpp:18
2D constraints.
Definition box_constraints.hpp:25
This GUI widget is used as a spacer between other widget for layout purposes.
Definition spacer_widget.hpp:19
hitbox hitbox_test(point2i position) const noexcept
Find the widget that is under the mouse cursor.
Definition spacer_widget.hpp:46
void draw(draw_context const &context) noexcept
Draw the widget.
Definition spacer_widget.hpp:44
void set_layout(widget_layout const &context) noexcept override
Update the internal layout of the widget.
Definition spacer_widget.hpp:39
box_constraints update_constraints() noexcept override
Update the constraints of the widget.
Definition spacer_widget.hpp:30
An interactive graphical object as part of the user-interface.
Definition widget.hpp:46
widget(widget *parent) noexcept
widget * parent
Pointer to the parent widget.
Definition widget.hpp:51
The layout of a widget.
Definition widget_layout.hpp:41