Visualization Library 2.0.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes | List of all members
vl::Rect< T > Class Template Reference

Implements the common functions of RectI and RectF. More...

#include <Rect.hpp>

Public Member Functions

 Rect (const Rect &other)
 
 Rect ()
 
 Rect (T x, T y, T width, T height)
 
x () const
 
y () const
 
width () const
 
height () const
 
bottom () const
 
left () const
 
top () const
 
right () const
 
void setX (T x)
 
void setY (T y)
 
void setWidth (T w)
 
void setHeight (T h)
 
bool isNull () const
 
bool isPoint () const
 
Rect intersected (const Rect &other) const
 
Rect united (const Rect &other) const
 
bool operator< (const Rect &other) const
 Defines a sort of lexicographic sorting that make possible the use of the Rect class with STL containers like std::set, std::map etc. More...
 

Protected Attributes

mX
 
mY
 
mWidth
 
mHeight
 

Detailed Description

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

Implements the common functions of RectI and RectF.

Definition at line 43 of file Rect.hpp.

Constructor & Destructor Documentation

◆ Rect() [1/3]

template<typename T>
vl::Rect< T >::Rect ( const Rect< T > &  other)
inline

Definition at line 46 of file Rect.hpp.

◆ Rect() [2/3]

template<typename T>
vl::Rect< T >::Rect ( )
inline

Definition at line 53 of file Rect.hpp.

Referenced by vl::Rect< int >::intersected(), and vl::Rect< int >::united().

◆ Rect() [3/3]

template<typename T>
vl::Rect< T >::Rect ( x,
y,
width,
height 
)
inline

Definition at line 61 of file Rect.hpp.

Member Function Documentation

◆ bottom()

template<typename T>
T vl::Rect< T >::bottom ( ) const
inline

◆ height()

template<typename T>
T vl::Rect< T >::height ( ) const
inline

◆ intersected()

template<typename T>
Rect vl::Rect< T >::intersected ( const Rect< T > &  other) const
inline

Definition at line 86 of file Rect.hpp.

Referenced by vl::Scissor::enable().

◆ isNull()

template<typename T>
bool vl::Rect< T >::isNull ( ) const
inline

◆ isPoint()

template<typename T>
bool vl::Rect< T >::isPoint ( ) const
inline

Definition at line 84 of file Rect.hpp.

◆ left()

template<typename T>
T vl::Rect< T >::left ( ) const
inline

◆ operator<()

template<typename T>
bool vl::Rect< T >::operator< ( const Rect< T > &  other) const
inline

Defines a sort of lexicographic sorting that make possible the use of the Rect class with STL containers like std::set, std::map etc.

Definition at line 129 of file Rect.hpp.

◆ right()

template<typename T>
T vl::Rect< T >::right ( ) const
inline

◆ setHeight()

template<typename T>
void vl::Rect< T >::setHeight ( h)
inline

Definition at line 81 of file Rect.hpp.

◆ setWidth()

template<typename T>
void vl::Rect< T >::setWidth ( w)
inline

Definition at line 80 of file Rect.hpp.

◆ setX()

template<typename T>
void vl::Rect< T >::setX ( x)
inline

Definition at line 78 of file Rect.hpp.

◆ setY()

template<typename T>
void vl::Rect< T >::setY ( y)
inline

Definition at line 79 of file Rect.hpp.

◆ top()

template<typename T>
T vl::Rect< T >::top ( ) const
inline

◆ united()

template<typename T>
Rect vl::Rect< T >::united ( const Rect< T > &  other) const
inline

Definition at line 105 of file Rect.hpp.

◆ width()

template<typename T>
T vl::Rect< T >::width ( ) const
inline

◆ x()

template<typename T>
T vl::Rect< T >::x ( ) const
inline

◆ y()

template<typename T>
T vl::Rect< T >::y ( ) const
inline

Member Data Documentation

◆ mHeight

template<typename T>
T vl::Rect< T >::mHeight
protected

◆ mWidth

template<typename T>
T vl::Rect< T >::mWidth
protected

◆ mX

template<typename T>
T vl::Rect< T >::mX
protected

◆ mY

template<typename T>
T vl::Rect< T >::mY
protected

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