Manage a graphics window.
More...
#include <NRE_Window.hpp>
Manage a graphics window.
NRE::Graphics::Window::Window |
( |
| ) |
|
|
delete |
NRE::Graphics::Window::Window |
( |
Id const & |
i, |
|
|
Utility::String const & |
t, |
|
|
Math::Point2D< unsigned int > const & |
pos, |
|
|
Math::Vector2D< unsigned int > const & |
s, |
|
|
WindowStyle const & |
ws, |
|
|
ContextAttributes const & |
attr |
|
) |
| |
Construct the window
- Parameters
-
i | the window id |
t | the window title |
pos | the window top-left corner position |
s | the window size |
ws | the window style value |
attr | the window context attributes |
NRE::Graphics::Window::Window |
( |
Id const & |
i, |
|
|
Utility::String const & |
t, |
|
|
Math::Vector2D< unsigned int > const & |
s, |
|
|
WindowStyle const & |
ws, |
|
|
ContextAttributes const & |
attr |
|
) |
| |
Construct the window with centered position
- Parameters
-
i | the window id |
t | the window title |
s | the window size |
ws | the window style value |
attr | the window context attributes |
NRE::Graphics::Window::Window |
( |
Window const & |
w | ) |
|
|
delete |
Copy forbidden
- Parameters
-
NRE::Graphics::Window::Window |
( |
Window && |
w | ) |
|
|
delete |
Move forbidden
- Parameters
-
NRE::Graphics::Window::~Window |
( |
| ) |
|
void NRE::Graphics::Window::close |
( |
bool |
removeFromSystem = true | ) |
|
Close the window and free all resources, don't use it after this operation
- Parameters
-
removeFromSystem | tell if the window has to be removed from the graphics system |
Id NRE::Graphics::Window::getId |
( |
| ) |
const |
bool NRE::Graphics::Window::isRunning |
( |
| ) |
const |
- Returns
- if the window is running
Window& NRE::Graphics::Window::operator= |
( |
Window const & |
w | ) |
|
|
delete |
Copy forbidden
- Parameters
-
w | the object to copy into this |
- Returns
- the reference of himself
Move forbidden
- Parameters
-
w | the object to move into this |
- Returns
- the reference of himself
void NRE::Graphics::Window::refresh |
( |
| ) |
|
Refresh the window screen
String NRE::Graphics::Window::toString |
( |
| ) |
const |
Convert the window into a string
- Returns
- the converted window
The documentation for this class was generated from the following files:
- /mnt/c/Users/abell/Documents/GitHub/NRE-System/src/System/Graphics/Window/NRE_Window.hpp
- /mnt/c/Users/abell/Documents/GitHub/NRE-System/src/System/Graphics/Window/NRE_Window.cpp