8#include "../graphic_path.hpp"
9#include "../text/font_glyph_ids.hpp"
27 [[nodiscard]]
float margin()
const noexcept override;
31 bool handle_event(
mouse_event const &event)
noexcept override;
32 [[nodiscard]]
hitbox hitbox_test(
point2 position)
const noexcept override;
35 static constexpr float GLYPH_SIZE = 5.0f;
36 static constexpr float RADIUS = 5.5f;
37 static constexpr float DIAMETER = RADIUS * 2.0f;
38 static constexpr float MARGIN = 10.0f;
39 static constexpr float SPACING = 8.0f;
55 bool hoverClose =
false;
56 bool hoverMinimize =
false;
57 bool hoverMaximize =
false;
59 bool pressedClose =
false;
60 bool pressedMinimize =
false;
61 bool pressedMaximize =
false;
Class which represents an axis-aligned rectangle.
Definition axis_aligned_rectangle.hpp:20
Draw context for drawing using the TTauri shaders.
Definition draw_context.hpp:29
Definition gui_window.hpp:36
Definition mouse_event.hpp:15
Definition font_glyph_ids.hpp:78
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
Definition window_traffic_lights_widget.hpp:20