NasNas
An intuitive and beginner friendly 2D game framework for C++
Public Member Functions | List of all members
ns::Rect< T > Class Template Reference

Extending sf::Rect with customized properties. More...

#include <Rect.hpp>

Inheritance diagram for ns::Rect< T >:

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 > &
 

Detailed Description

template<typename T>
class ns::Rect< T >

Extending sf::Rect with customized properties.

Template Parameters
T: Type of the Rect (int or float)

Definition at line 17 of file Rect.hpp.


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