UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
window.h
Go to the documentation of this file.
1 
2 #ifndef UGDK_DESKTOP_WINDOW_H_
3 #define UGDK_DESKTOP_WINDOW_H_
4 
5 #include <ugdk/math/integer2D.h>
6 #include <ugdk/desktop.h>
7 #include <ugdk/structure/types.h>
8 
9 namespace ugdk {
10 namespace desktop {
11 
12 class Window {
13  public:
14  virtual ~Window() {}
15 
17  virtual void Present() = 0;
18 
20 
22  virtual void ChangeSettings(const math::Integer2D& size, bool fullscreen, bool vsync) = 0;
23 
24  virtual uint32 id() const = 0;
25  virtual const char* title() const = 0;
26  virtual math::Integer2D size() const = 0;
27  virtual bool fullscreen() const = 0;
28  virtual bool vsync() const = 0;
29 
30  protected:
31  Window() {}
32 };
33 
34 } // namespace desktop
35 } // namespace ugdk
36 
37 #endif // UGDK_DESKTOP_WINDOW_H_
Definition: window.h:12
uint32_t uint32
Definition: types.h:14
virtual ~Window()
Definition: window.h:14
Definition: integer2D.h:20
Window()
Definition: window.h:31
Definition: animation.h:11
virtual bool vsync() const =0
virtual void Present()=0
Presents the current canvas in the screen.
virtual bool fullscreen() const =0
virtual const char * title() const =0
virtual math::Integer2D size() const =0
virtual uint32 id() const =0
virtual void ChangeSettings(const math::Integer2D &size, bool fullscreen, bool vsync)=0
Updates the settings and applies the changes.