7#include "abstract_container_widget.hpp"
13class grid_layout_widget;
22 void init() noexcept override;
29 [[nodiscard]]
color backgroundColor() noexcept {
31 return theme::global->fillColor(_semantic_layer);
39 left_resize_border_has_priority = left;
40 right_resize_border_has_priority = right;
41 bottom_resize_border_has_priority = bottom;
42 top_resize_border_has_priority = top;
59 [[nodiscard]]
bool is_toolbar() const noexcept
override
70 bool left_resize_border_has_priority =
true;
71 bool right_resize_border_has_priority =
true;
72 bool bottom_resize_border_has_priority =
true;
73 bool top_resize_border_has_priority =
true;
This is a RGBA floating point color.
Definition color.hpp:39
Definition gui_window.hpp:37
Definition hit_box.hpp:15
Timestamp.
Definition hires_utc_clock.hpp:16
A localized text + icon label.
Definition label.hpp:76
int recurse_lock_count() const noexcept
This function should be used in tt_axiom() to check if the lock is held by current thread.
Definition unfair_recursive_mutex.hpp:60
Definition abstract_container_widget.hpp:11
gui_window & window
Convenient reference to the Window.
Definition widget.hpp:101
Definition window_widget.hpp:15
void update_layout(hires_utc_clock::time_point display_time_point, bool need_layout) noexcept
Update the internal layout of the widget.
hit_box hitbox_test(point2 position) const noexcept override
Find the widget that is under the mouse cursor.
void init() noexcept override
Should be called right after allocating and constructing a widget.
void set_resize_border_priority(bool left, bool right, bool bottom, bool top) noexcept
Defining on which edges the resize handle has priority over widget at a higher layer.
Definition window_widget.hpp:36
bool update_constraints(hires_utc_clock::time_point display_time_point, bool need_reconstrain) noexcept override
Update the constraints of the widget.