8#include "icon_widget.hpp"
26 template<
typename Icon>
29 this->icon = std::forward<Icon>(
icon);
33 void init()
noexcept override;
34 [[nodiscard]]
float margin()
const noexcept override;
37 [[nodiscard]]
hitbox hitbox_test(
point2 position)
const noexcept override;
Class which represents an axis-aligned rectangle.
Definition axis_aligned_rectangle.hpp:20
Definition gui_window.hpp:36
An image, in different formats.
Definition icon.hpp:19
An observable value.
Definition observable.hpp:280
An simple GUI widget that displays an icon.
Definition icon_widget.hpp:26
Definition system_menu_widget.hpp:16
An interactive graphical object as part of the user-interface.
Definition widget.hpp:39
widget *const parent
Pointer to the parent widget.
Definition widget.hpp:48
gui_window & window
Convenient reference to the Window.
Definition widget.hpp:43
widget(gui_window &window, widget *parent) noexcept