PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
window_chrome.h
1#pragma once
2
3#include <cstdint>
4#include <vector>
5
6namespace pixelbullet
7{
8enum class WindowFrameMode : uint8_t
9{
10 SystemDecorated,
11 CustomChrome
12};
13
15{
16 int x = 0;
17 int y = 0;
18 int width = 0;
19 int height = 0;
20
21 [[nodiscard]] bool Contains(const int point_x, const int point_y) const noexcept
22 {
23 return width > 0 && height > 0 && point_x >= x && point_x < x + width && point_y >= y && point_y < y + height;
24 }
25};
26
28{
29 int x = 0;
30 int y = 0;
31};
32
34{
35 std::vector<WindowRect> caption_drag_regions;
36 int resize_border_thickness_pixels = 0;
37};
38} // namespace pixelbullet
Definition window_chrome.h:34
Definition window_chrome.h:28
Definition window_chrome.h:15