NRE::Graphics::WindowAttributes Class Reference

Manage a window attributes. More...

#include <NRE_WindowAttributes.hpp>

Public Member Functions

 WindowAttributes ()=delete
 
 WindowAttributes (Utility::String const &t, Math::Point2D< unsigned int > const &pos, Math::Vector2D< unsigned int > const &s)
 
 WindowAttributes (Utility::String const &t, Math::Vector2D< unsigned int > const &s)
 
 WindowAttributes (WindowAttributes const &attr)=default
 
 WindowAttributes (WindowAttributes &&attr)=default
 
 ~WindowAttributes ()=default
 
void setPosition (Math::Point2D< unsigned int > const &pos)
 
WindowAttributesoperator= (WindowAttributes const &attr)=default
 
WindowAttributesoperator= (WindowAttributes &&attr)=default
 
Utility::String toString () const
 

Detailed Description

Manage a window attributes.

Constructor & Destructor Documentation

NRE::Graphics::WindowAttributes::WindowAttributes ( )
delete

No default constructor

NRE::Graphics::WindowAttributes::WindowAttributes ( Utility::String const &  t,
Math::Point2D< unsigned int > const &  pos,
Math::Vector2D< unsigned int > const &  s 
)

Construct the window attributes

Parameters
tthe window title
posthe window top-left corner position
sthe window size
NRE::Graphics::WindowAttributes::WindowAttributes ( Utility::String const &  t,
Math::Vector2D< unsigned int > const &  s 
)

Construct the window attributes

Parameters
tthe window title
sthe window size
NRE::Graphics::WindowAttributes::WindowAttributes ( WindowAttributes const &  attr)
default

Copy the window attributes into this

Parameters
attrthe window attributes to copy
NRE::Graphics::WindowAttributes::WindowAttributes ( WindowAttributes &&  attr)
default

Move the window attributes into this

Parameters
attrthe window attributes to move
NRE::Graphics::WindowAttributes::~WindowAttributes ( )
default

WindowAttributes Deconstructor

Member Function Documentation

WindowAttributes& NRE::Graphics::WindowAttributes::operator= ( WindowAttributes const &  attr)
default

Copy the window attributes into this

Parameters
attrthe object to copy into this
Returns
the reference of himself
WindowAttributes& NRE::Graphics::WindowAttributes::operator= ( WindowAttributes &&  attr)
default

Move the window attributes into this

Parameters
attrthe object to move into this
Returns
the reference of himself
void NRE::Graphics::WindowAttributes::setPosition ( Math::Point2D< unsigned int > const &  pos)

Set the window position attribute

Parameters
posthe new window position
Utility::String NRE::Graphics::WindowAttributes::toString ( ) const

Convert the window attributes into a string

Returns
the converted window attributes

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