NRE::Graphics::InternalWindow Class Reference

Manage the internal os-dependant graphics window. More...

#include <NRE_InternalWindow.hpp>

Public Member Functions

 InternalWindow ()=delete
 
 InternalWindow (Id i, Utility::String const &title, Math::Point2D< unsigned int > const &position, Math::Vector2D< unsigned int > const &size, WindowStyle const &style)
 
 InternalWindow (Id i, Utility::String const &title, Math::Vector2D< unsigned int > const &size, WindowStyle const &style)
 
 InternalWindow (InternalWindow const &inl)=delete
 
 InternalWindow (InternalWindow &&inl)=delete
 
 ~InternalWindow ()=default
 
Math::Point2D< unsigned int > getPosition () const
 
void close ()
 
void toggleFullscreen (bool inFullscreen)
 
void refresh ()
 
InternalWindowoperator= (InternalWindow const &inl)=delete
 
InternalWindowoperator= (InternalWindow &&inl)=delete
 

Detailed Description

Manage the internal os-dependant graphics window.

Constructor & Destructor Documentation

NRE::Graphics::InternalWindow::InternalWindow ( )
delete

No default constructor

NRE::Graphics::InternalWindow::InternalWindow ( Id  i,
Utility::String const &  title,
Math::Point2D< unsigned int > const &  position,
Math::Vector2D< unsigned int > const &  size,
WindowStyle const &  style 
)

Construct the internal window

Parameters
ithe window id
titlethe window title
positionthe window top-left corner position
sizethe window size
stylethe window style
NRE::Graphics::InternalWindow::InternalWindow ( Id  i,
Utility::String const &  title,
Math::Vector2D< unsigned int > const &  size,
WindowStyle const &  style 
)

Construct the internal window with centered position

Parameters
ithe window id
titlethe window title
sizethe window size
stylethe window style
NRE::Graphics::InternalWindow::InternalWindow ( InternalWindow const &  inl)
delete

Copy forbidden

Parameters
inlthe internal window to copy
NRE::Graphics::InternalWindow::InternalWindow ( InternalWindow &&  inl)
delete

Move forbidden

Parameters
inlthe internal window to move
NRE::Graphics::InternalWindow::~InternalWindow ( )
default

InternalWindow Deconstructor

Member Function Documentation

void NRE::Graphics::InternalWindow::close ( )

Close the internal window

Math::Point2D<unsigned int> NRE::Graphics::InternalWindow::getPosition ( ) const
Returns
the window top-left corner position
InternalWindow& NRE::Graphics::InternalWindow::operator= ( InternalWindow const &  inl)
delete

Copy forbidden

Parameters
inlthe object to copy into this
Returns
the reference of himself
InternalWindow& NRE::Graphics::InternalWindow::operator= ( InternalWindow &&  inl)
delete

Move forbidden

Parameters
inlthe object to move into this
Returns
the reference of himself
void NRE::Graphics::InternalWindow::refresh ( )

Refresh the window

void NRE::Graphics::InternalWindow::toggleFullscreen ( bool  inFullscreen)

Toggle between fullscreen and windowed mode


The documentation for this class was generated from the following files: