9#include "../weak_or_unique_ptr.hpp"
11namespace hi::inline v1 {
13class system_menu_widget;
24 template<
typename Title>
26 super(window,
nullptr), title(std::forward<Title>(title)), _content_delegate(
std::move(delegate))
28 constructor_implementation();
51 void set_resize_border_priority(
bool left,
bool right,
bool bottom,
bool top) noexcept;
57 void draw(
draw_context const& context) noexcept override;
58 [[nodiscard]]
hitbox hitbox_test(
point3 position) const noexcept override;
59 bool handle_event(
gui_event const& event) noexcept override;
62 decltype(title)::token_type _title_cbt;
73#if HI_OPERATING_SYSTEM == HI_OS_WINDOWS
77 bool _left_resize_border_has_priority =
true;
78 bool _right_resize_border_has_priority =
true;
79 bool _bottom_resize_border_has_priority =
true;
80 bool _top_resize_border_has_priority =
true;
82 void constructor_implementation() noexcept;
This is a RGBA floating point color.
Definition color.hpp:39
A return value for a generator-function.
Definition generator.hpp:28
Class which represents an axis-aligned rectangle.
Definition axis_aligned_rectangle.hpp:20
Draw context for drawing using the HikoGUI shaders.
Definition draw_context.hpp:52
A user interface event.
Definition gui_event.hpp:58
Definition gui_window.hpp:39
An observable value.
Definition observable.hpp:359
Definition grid_delegate.hpp:13
A GUI widget that lays out child-widgets in a grid with variable sized cells.
Definition grid_widget.hpp:37
Definition system_menu_widget.hpp:16
A toolbar widget is located at the top of a window and lays out its children horizontally.
Definition toolbar_widget.hpp:28
An interactive graphical object as part of the user-interface.
Definition widget.hpp:39
Definition widget_constraints.hpp:13
Definition widget_layout.hpp:18
Definition window_widget.hpp:17
color background_color() noexcept
The background color of the window.