Turbo Engine 0.3
A C++ game engine using Allegro 5
turbo::Rectangle< T > Class Template Reference

Class used to define a generic rectangle. More...

#include <Rectangle.hpp>

Public Member Functions

 Rectangle (T width, T height, T x, T y)
 Rectangle ()
 Rectangle (const Rectangle< T > &rect)
Rectangleoperator= (const Rectangle &rect)

Public Attributes

width
height
x
y

Detailed Description

template<typename T = unsigned short>
class turbo::Rectangle< T >

Class used to define a generic rectangle.

Template Parameters
unit

Constructor & Destructor Documentation

◆ Rectangle() [1/3]

template<typename T = unsigned short>
turbo::Rectangle< T >::Rectangle ( T width,
T height,
T x,
T y )
inline

◆ Rectangle() [2/3]

template<typename T = unsigned short>
turbo::Rectangle< T >::Rectangle ( )
inline

◆ Rectangle() [3/3]

template<typename T = unsigned short>
turbo::Rectangle< T >::Rectangle ( const Rectangle< T > & rect)
inline

Member Function Documentation

◆ operator=()

template<typename T = unsigned short>
Rectangle & turbo::Rectangle< T >::operator= ( const Rectangle< T > & rect)
inline

Member Data Documentation

◆ height

template<typename T = unsigned short>
T turbo::Rectangle< T >::height

◆ width

template<typename T = unsigned short>
T turbo::Rectangle< T >::width

◆ x

template<typename T = unsigned short>
T turbo::Rectangle< T >::x

◆ y

template<typename T = unsigned short>
T turbo::Rectangle< T >::y

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