|
NasNas
An intuitive and beginner friendly 2D game framework for C++
|
Extending sf::Rect with customized properties. More...
#include <Rect.hpp>
Public Member Functions | |
| Rect (const ns::Rect< T > &rect) | |
| template<typename S > | |
| Rect (const sf::Rect< S > &rect) | |
| auto | size () const -> sf::Vector2< T > |
| auto | right () const -> T |
| auto | bottom () const -> T |
| auto | topleft () const -> sf::Vector2< T > |
| auto | topright () const -> sf::Vector2< T > |
| auto | bottomleft () const -> sf::Vector2< T > |
| auto | bottomright () const -> sf::Vector2< T > |
| auto | center () const -> sf::Vector2f |
| auto | operator= (const ns::Rect< T > &other) -> ns::Rect< T > & |
| template<typename S > | |
| auto | operator= (const sf::Rect< S > &other) -> ns::Rect< T > & |
Extending sf::Rect with customized properties.
| T | : Type of the Rect (int or float) |
1.8.13