12 #ifdef _WIN32 // Windows 14 #elif __linux__ // Linux 17 #error "Not Supported Yet or Unknown compiler" 71 #ifdef _WIN32 // Windows 76 DWORD toNativeStyle()
const;
77 #elif __linux__ // Linux 78 struct NativeWindowHints {
80 unsigned long functions;
81 unsigned long decorations;
86 static constexpr
unsigned long HINTS_FUNCTIONS = 1 << 0;
87 static constexpr
unsigned long HINTS_DECORATIONS = 1 << 1;
88 static constexpr
unsigned long DECOR_BORDER = 1 << 1;
89 static constexpr
unsigned long DECOR_RESIZEH = 1 << 2;
90 static constexpr
unsigned long DECOR_TITLE = 1 << 3;
91 static constexpr
unsigned long DECOR_MENU = 1 << 4;
92 static constexpr
unsigned long DECOR_MINIMIZE = 1 << 5;
93 static constexpr
unsigned long DECOR_MAXIMIZE = 1 << 6;
94 static constexpr
unsigned long FUNC_RESIZE = 1 << 1;
95 static constexpr
unsigned long FUNC_MOVE = 1 << 2;
96 static constexpr
unsigned long FUNC_MINIMIZE = 1 << 3;
97 static constexpr
unsigned long FUNC_MAXIMIZE = 1 << 4;
98 static constexpr
unsigned long FUNC_CLOSE = 1 << 5;
104 NativeWindowHints toNativeStyle()
const;
141 unsigned int operator &(
unsigned int ws)
const;
144 static constexpr
unsigned int BASIC = 0b000;
Manage a window style.
Definition: NRE_WindowStyle.hpp:37
unsigned int operator&(unsigned int ws) const
Definition: NRE_WindowStyle.cpp:24
WindowStyle operator|(WindowStyle const &ws) const
Definition: NRE_WindowStyle.cpp:20
static constexpr unsigned int CLOSEABLE
Definition: NRE_WindowStyle.hpp:145
WindowStyle & operator=(WindowStyle const &ws)=default
static constexpr unsigned int RESIZEABLE
Definition: NRE_WindowStyle.hpp:146
WindowStyle(unsigned int s=BASIC)
Definition: NRE_WindowStyle.hpp:47
WindowStyle & operator|=(WindowStyle const &ws)
Definition: NRE_WindowStyle.cpp:15
The NearlyRealEngine's global namespace.
static constexpr unsigned int BASIC
Definition: NRE_WindowStyle.hpp:144
static constexpr unsigned int FULLSCREEN
Definition: NRE_WindowStyle.hpp:147