Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
datatypes.h
1#ifndef OE_GUI_DATATYPES_H
2#define OE_GUI_DATATYPES_H
3
4#include "../common.h"
5
6namespace oe
7{
8 namespace gui
9 {
10 typedef uint64_t gui_id_t;
11 typedef std::function<void()> callback_t;
12
13 enum window_flags
14 {
15 WINDOW_BORDER = (1 << 0),
16 WINDOW_MOVABLE = (1 << 1),
17 WINDOW_SCALABLE = (1 << 2),
18 WINDOW_CLOSABLE = (1 << 3),
19 WINDOW_MINIMIZABLE = (1 << 4),
20 WINDOW_NO_SCROLLBAR = (1 << 5),
21 WINDOW_TITLE = (1 << 6),
22 WINDOW_SCROLL_AUTO_HIDE = (1 << 7),
23 WINDOW_BACKGROUND = (1 << 8),
24 WINDOW_SCALE_LEFT = (1 << 9),
25 WINDOW_NO_INPUT = (1 << 10)
26 };
27
28 constexpr int DEFAULT_WINDOW_FLAGS =
29 window_flags::WINDOW_MOVABLE | window_flags::WINDOW_SCALABLE
30 | window_flags::WINDOW_BACKGROUND
31 | window_flags::WINDOW_TITLE
32 | window_flags::WINDOW_BORDER
33 ;
34
35 constexpr int NO_WINDOW_FLAGS = 0;
36 }
37}
38#endif
Oxygen Engine common namespace.
Definition cursor.h:8