HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
WindowWidget.hpp
1// Copyright 2019 Pokitec
2// All rights reserved.
3
4#pragma once
5
6#include "TTauri/Widgets/Widget.hpp"
7#include "TTauri/Cells/Label.hpp"
8
9namespace tt {
10
11class ToolbarWidget;
12
13class WindowWidget : public Widget {
14 Label title;
15
16public:
17 ToolbarWidget *toolbar = nullptr;
18
19 WindowWidget(Window &window, Label title) noexcept;
20
21 WindowWidget(const WindowWidget&) = delete;
22 WindowWidget &operator=(const WindowWidget&) = delete;
23 WindowWidget(WindowWidget&&) = delete;
24 WindowWidget &operator=(WindowWidget&&) = delete;
25
26 [[nodiscard]] HitBox hitBoxTest(vec position) const noexcept override;
27};
28
29}
Definition Label.hpp:12
A 4D vector.
Definition vec.hpp:37
Definition HitBox.hpp:12
Definition Window_vulkan_win32.hpp:15
Definition ToolbarWidget.hpp:11
Definition Widget.hpp:64
Definition WindowWidget.hpp:13
HitBox hitBoxTest(vec position) const noexcept override
Find the widget that is under the mouse cursor.