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 <cstdint>
5#include <functional>
6
7namespace oe
8{
9 namespace gui
10 {
11 typedef uint64_t gui_id_t;
12 typedef std::function<void()> callback_t;
13
14 enum window_flags
15 {
16 WINDOW_BORDER = (1 << 0),
17 WINDOW_MOVABLE = (1 << 1),
18 WINDOW_SCALABLE = (1 << 2),
19 WINDOW_CLOSABLE = (1 << 3),
20 WINDOW_MINIMIZABLE = (1 << 4),
21 WINDOW_NO_SCROLLBAR = (1 << 5),
22 WINDOW_TITLE = (1 << 6),
23 WINDOW_SCROLL_AUTO_HIDE = (1 << 7),
24 WINDOW_BACKGROUND = (1 << 8),
25 WINDOW_SCALE_LEFT = (1 << 9),
26 WINDOW_NO_INPUT = (1 << 10)
27 };
28
29 constexpr int32_t DEFAULT_WINDOW_FLAGS =
30 window_flags::WINDOW_MOVABLE | window_flags::WINDOW_SCALABLE
31 | window_flags::WINDOW_BACKGROUND
32 | window_flags::WINDOW_TITLE
33 | window_flags::WINDOW_BORDER
34 ;
35
36 constexpr int32_t NO_WINDOW_FLAGS = 0;
37 }
38}
39#endif
Graphical user interface (panels, buttons, text input, ...).
Definition component.h:11
Oxygen Engine common namespace.
Definition debug.h:17