18namespace hi {
inline namespace v1 {
43 [[nodiscard]] generator<widget *> children()
const noexcept override
45 co_yield _icon_widget.get();
50 void draw(draw_context
const& context)
noexcept override;
51 [[nodiscard]] hitbox hitbox_test(point3 position)
const noexcept override;
54 aarectangle _icon_rectangle;
57 aarectangle _system_menu_rectangle;
#define hi_forward(x)
Forward a value, based on the decltype of the value.
Definition utility.hpp:29
Functionality for labels, text and icons.
DOXYGEN BUG.
Definition algorithm.hpp:15
The HikoGUI namespace.
Definition ascii.hpp:19
The system menu widget.
Definition system_menu_widget.hpp:26
An interactive graphical object as part of the user-interface.
Definition widget.hpp:44
widget_layout const & layout() const noexcept
Get the current layout for this widget.
Definition widget.hpp:198
widget *const parent
Pointer to the parent widget.
Definition widget.hpp:53
widget(gui_window &window, widget *parent) noexcept
gui_window & window
Convenient reference to the Window.
Definition widget.hpp:48
The constraints of a widget.
Definition widget_constraints.hpp:26
The layout of a widget.
Definition widget_layout.hpp:37