NRE_WindowAttributes.hpp
Go to the documentation of this file.
1 
10  #pragma once
11 
12  #include <Header/NRE_Math.hpp>
13  #include <Utility/String/NRE_String.hpp>
14 
19  namespace NRE {
24  namespace Graphics {
25 
31  private : // Fields
32  Utility::String title;
33  Math::Point2D<unsigned int> position;
34  Math::Vector2D<unsigned int> size;
36  public : // Methods
37  //## Constructor ##//
41  WindowAttributes() = delete;
48  WindowAttributes(Utility::String const& t, Math::Point2D<unsigned int> const& pos, Math::Vector2D<unsigned int> const& s);
54  WindowAttributes(Utility::String const& t, Math::Vector2D<unsigned int> const& s);
55 
56  //## Copy Constructor ##//
61  WindowAttributes(WindowAttributes const& attr) = default;
62 
63  //## Move Constructor ##//
68  WindowAttributes(WindowAttributes && attr) = default;
69 
70  //## Deconstructor ##//
74  ~WindowAttributes() = default;
75 
76  //## Setter ##//
81  void setPosition(Math::Point2D<unsigned int> const& pos);
82 
83  //## Assignment Operator ##//
89  WindowAttributes& operator =(WindowAttributes const& attr) = default;
95  WindowAttributes& operator =(WindowAttributes && attr) = default;
96 
97  //## Stream Operator ##//
102  Utility::String toString() const;
103 
104  };
105 
112  std::ostream& operator <<(std::ostream& stream, WindowAttributes const& o);
113 
114  }
115  }
116 
117  #include "NRE_WindowAttributes.tpp"
void setPosition(Math::Point2D< unsigned int > const &pos)
WindowAttributes & operator=(WindowAttributes const &attr)=default
Manage a window attributes.
Definition: NRE_WindowAttributes.hpp:30
Utility::String toString() const
Definition: NRE_WindowAttributes.cpp:18
The NearlyRealEngine&#39;s global namespace.
Graphics&#39; API.