NRE::Graphics::WindowStyle Class Reference

Manage a window style. More...

#include <NRE_WindowStyle.hpp>

Public Member Functions

 WindowStyle (unsigned int s=BASIC)
 
 WindowStyle (WindowStyle const &ws)=default
 
 WindowStyle (WindowStyle &&ws)=default
 
 ~WindowStyle ()=default
 
WindowStyleoperator= (WindowStyle const &ws)=default
 
WindowStyleoperator= (WindowStyle &&ws)=default
 
WindowStyleoperator|= (WindowStyle const &ws)
 
WindowStyle operator| (WindowStyle const &ws) const
 
unsigned int operator& (unsigned int ws) const
 

Static Public Attributes

static constexpr unsigned int BASIC = 0b000
 
static constexpr unsigned int CLOSEABLE = 0b001
 
static constexpr unsigned int RESIZEABLE = 0b010
 
static constexpr unsigned int FULLSCREEN = 0b100
 

Detailed Description

Manage a window style.

Constructor & Destructor Documentation

NRE::Graphics::WindowStyle::WindowStyle ( unsigned int  s = BASIC)
inline

Construct the window style

Parameters
sthe style value
NRE::Graphics::WindowStyle::WindowStyle ( WindowStyle const &  ws)
default

Copy the window style into this

Parameters
wsthe window style to copy
NRE::Graphics::WindowStyle::WindowStyle ( WindowStyle &&  ws)
default

Move the window style into this

Parameters
wsthe window style to move
NRE::Graphics::WindowStyle::~WindowStyle ( )
default

WindowStyle Deconstructor

Member Function Documentation

unsigned int NRE::Graphics::WindowStyle::operator& ( unsigned int  ws) const

Compute the style value resulting in the bitwize AND with this

Parameters
wsthe other style
Returns
the computed style value
WindowStyle& NRE::Graphics::WindowStyle::operator= ( WindowStyle const &  ws)
default

Copy the window style into this

Parameters
wsthe object to copy into this
Returns
the reference of himself
WindowStyle& NRE::Graphics::WindowStyle::operator= ( WindowStyle &&  ws)
default

Move the window style into this

Parameters
wsthe object to move into this
Returns
the reference of himself
WindowStyle NRE::Graphics::WindowStyle::operator| ( WindowStyle const &  ws) const

Compute the style resulting in the bitwize OR with this

Parameters
wsthe other style
Returns
the computed style
WindowStyle & NRE::Graphics::WindowStyle::operator|= ( WindowStyle const &  ws)

Perform a bitwise OR with this

Parameters
wsthe other style
Returns
the reference of himself

Member Data Documentation

constexpr unsigned int NRE::Graphics::WindowStyle::BASIC = 0b000
static

A basic window with no close button and which can't be resized

constexpr unsigned int NRE::Graphics::WindowStyle::CLOSEABLE = 0b001
static

Add a close button to the window

constexpr unsigned int NRE::Graphics::WindowStyle::FULLSCREEN = 0b100
static

The window start in fullscreen mode

constexpr unsigned int NRE::Graphics::WindowStyle::RESIZEABLE = 0b010
static

The window can be resized


The documentation for this class was generated from the following files:
  • /mnt/c/Users/abell/Documents/GitHub/NRE-System/src/System/Graphics/Window/Style/NRE_WindowStyle.hpp
  • /mnt/c/Users/abell/Documents/GitHub/NRE-System/src/System/Graphics/Window/Style/NRE_WindowStyle.cpp