Tizen Native API
4.0
|
Template class to create and operate on rectangles. More...
Public Member Functions | |
Rect () | |
Constructor. | |
Rect (T x, T y, T width, T height) | |
Constructor. | |
Rect (const Rect< T > &rhs) | |
Copy constructor. | |
Rect< T > & | operator= (const Rect< T > &rhs) |
Assignment operator. | |
void | Set (T newX, T newY, T newWidth, T newHeight) |
Assignment from individual values. | |
bool | IsEmpty () const |
Determines whether or not this Rectangle is empty. | |
T | Left () const |
Gets the left of the rectangle. | |
T | Right () const |
Gets the right of the rectangle. | |
T | Top () const |
Gets the top of the rectangle. | |
T | Bottom () const |
Gets the bottom of the rectangle. | |
T | Area () const |
Gets the area of the rectangle. | |
bool | Intersects (const Rect< T > &other) const |
Determines whether or not this rectangle and the specified rectangle intersect. | |
bool | Contains (const Rect< T > &other) const |
Determines whether or not this Rectangle contains the specified rectangle. | |
template<> | |
bool | IsEmpty () const |
Template class to create and operate on rectangles.
Dali::Rect< T >::Rect | ( | ) |
Constructor.
Dali::Rect< T >::Rect | ( | T | x, |
T | y, | ||
T | width, | ||
T | height | ||
) |
Constructor.
[in] | x | X coordinate (or left) |
[in] | y | Y coordinate (or right) |
[in] | width | Width (or bottom) |
[in] | height | Height (or top) |
Dali::Rect< T >::Rect | ( | const Rect< T > & | rhs | ) |
Copy constructor.
[in] | rhs | The original object |
T Dali::Rect< T >::Area | ( | ) | const |
Gets the area of the rectangle.
T Dali::Rect< T >::Bottom | ( | ) | const |
Gets the bottom of the rectangle.
bool Dali::Rect< T >::Contains | ( | const Rect< T > & | other | ) | const |
Determines whether or not this Rectangle contains the specified rectangle.
[in] | other | The other rectangle to test against this rectangle |
bool Dali::Rect< T >::Intersects | ( | const Rect< T > & | other | ) | const |
Determines whether or not this rectangle and the specified rectangle intersect.
[in] | other | The other rectangle to test against this rectangle |
bool Dali::Rect< T >::IsEmpty | ( | ) | const |
Determines whether or not this Rectangle is empty.
bool Dali::Rect< float >::IsEmpty | ( | ) | const |
T Dali::Rect< T >::Left | ( | ) | const |
Gets the left of the rectangle.
Rect<T>& Dali::Rect< T >::operator= | ( | const Rect< T > & | rhs | ) |
Assignment operator.
[in] | rhs | The original object |
T Dali::Rect< T >::Right | ( | ) | const |
Gets the right of the rectangle.
void Dali::Rect< T >::Set | ( | T | newX, |
T | newY, | ||
T | newWidth, | ||
T | newHeight | ||
) |
Assignment from individual values.
[in] | newX | X coordinate |
[in] | newY | Y coordinate |
[in] | newWidth | Width |
[in] | newHeight | Height |
T Dali::Rect< T >::Top | ( | ) | const |
Gets the top of the rectangle.