NRE::Graphics::Window Class Reference

Manage a graphics window. More...

#include <NRE_Window.hpp>

Public Member Functions

 Window ()=delete
 
 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)
 
 Window (Id const &i, Utility::String const &t, Math::Vector2D< unsigned int > const &s, WindowStyle const &ws, ContextAttributes const &attr)
 
 Window (Window const &w)=delete
 
 Window (Window &&w)=delete
 
 ~Window ()
 
bool isRunning () const
 
Id getId () const
 
void close (bool removeFromSystem=true)
 
void refresh ()
 
Windowoperator= (Window const &w)=delete
 
Windowoperator= (Window &&w)=delete
 
Utility::String toString () const
 

Detailed Description

Manage a graphics window.

Constructor & Destructor Documentation

NRE::Graphics::Window::Window ( )
delete

No default constructor

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
ithe window id
tthe window title
posthe window top-left corner position
sthe window size
wsthe window style value
attrthe 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
ithe window id
tthe window title
sthe window size
wsthe window style value
attrthe window context attributes
NRE::Graphics::Window::Window ( Window const &  w)
delete

Copy forbidden

Parameters
wthe window to copy
NRE::Graphics::Window::Window ( Window &&  w)
delete

Move forbidden

Parameters
wthe window to move
NRE::Graphics::Window::~Window ( )

Window Deconstructor

Member Function Documentation

void NRE::Graphics::Window::close ( bool  removeFromSystem = true)

Close the window and free all resources, don't use it after this operation

Parameters
removeFromSystemtell if the window has to be removed from the graphics system
Id NRE::Graphics::Window::getId ( ) const
Returns
the window id
bool NRE::Graphics::Window::isRunning ( ) const
Returns
if the window is running
Window& NRE::Graphics::Window::operator= ( Window const &  w)
delete

Copy forbidden

Parameters
wthe object to copy into this
Returns
the reference of himself
Window& NRE::Graphics::Window::operator= ( Window &&  w)
delete

Move forbidden

Parameters
wthe 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