TurtleBrains  0.3.5
High quality, portable, C++ framework for rapid 2D game development.
tb_application_window.hpp
1 
9 #ifndef TurtleBrains_ApplicationWindow_hpp
10 #define TurtleBrains_ApplicationWindow_hpp
11 
12 #include <turtle_brains/core/tb_types.hpp>
13 
14 namespace TurtleBrains
15 {
16  namespace Application
17  {
18 
19  enum class WindowMode
20  {
21  Windowed,
22  FullScreen,
23  ExclusiveFullScreen,
24  };
25 
30  {
35  WindowMode mWindowMode;
37 
41  WindowProperties(void);
42 
43  WindowProperties(const WindowMode& windowMode);
44 
45  };
46 
47  //The following is not actually for public use and is subject to change without warning.
48  //This was added initially for detecting when to set the window to center of primary monitor.
49  //constexpr tbCore::int16 InvalidWindowPosition(void) { return tbCore::int16(~0); }
50 
51  }; /* namespace Application */
52 }; /* namespace TurtleBrains */
53 
55 
56 #endif /* TurtleBrains_ApplicationWindow_hpp */
tbCore::int16 mWindowPositionY
The position of the top edge of the window in pixels.
Definition: tb_application_window.hpp:34
tbCore::int16 mWindowWidth
The width of the window rectangle in pixels. The actual width may be larger to account for the window...
Definition: tb_application_window.hpp:31
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
Contains classes, functions and constants to create Applications, Menus, Dialogs with native controls...
Definition: tb_application_dialog.hpp:23
bool mVerticalSync
True if the rendering should be synchronized with the monitors refresh rate.
Definition: tb_application_window.hpp:36
tbCore::int16 mWindowHeight
The height of the window rectangle in pixels. The actual height may be larger to account for the wind...
Definition: tb_application_window.hpp:32
int16_t int16
Signed integer with a size of 16 bits. Supports values from -32768 to 32767.
Definition: tb_types.hpp:25
Definition: tb_application_window.hpp:29
tbCore::int16 mWindowPositionX
The position of the left edge of the window in pixels.
Definition: tb_application_window.hpp:33
WindowMode mWindowMode
True if the game/application should take over the entire screen. (Not fully supported yet) ...
Definition: tb_application_window.hpp:35