|
| Rect (const T &left, const T &top, const T &right, const T &bottom) |
|
| Rect (const Vector2< T > &min, const Vector2< T > &max) |
|
| Rect (const Vector2< T > &pos, const Size< T > &size) |
|
| Rect (const Rect &r) |
|
Rect & | operator= (const Rect &rhs) |
|
void | left (const T &v) |
|
const T & | left () const |
|
void | top (const T &v) |
|
const T & | top () const |
|
void | right (const T &v) |
|
const T & | right () const |
|
void | bottom (const T &v) |
|
const T & | bottom () const |
|
void | setPosition (const Vector2< T > &min) |
| set the position of the Rect (leaves size in tact)
|
|
const Vector2< T > & | getPosition () const |
| Return top-left position of Rect as a Vector2<T>
|
|
void | setSize (const Size< T > &size) |
|
Size< T > | getSize () const |
| return the size of the Rect area
|
|
void | setWidth (const T &w) |
|
T | getWidth () const |
| return width of Rect area
|
|
void | setHeight (const T &h) |
|
T | getHeight () const |
| return height of Rect area
|
|
Rect | getIntersection (const Rect &rect) const |
| return a Rect that is the intersection of 'this' Rect with the Rect 'rect' More...
|
|
void | offset (const Vector2< T > &v) |
| Applies an offset the Rect object. More...
|
|
bool | isPointInRect (const Vector2< T > &v) const |
| Return true if the given Vector2 falls within this Rect. More...
|
|
void | constrainSizeMax (const Size< T > &size) |
| check the size of the Rect object and if it is bigger than sz, resize it so it isn't. More...
|
|
void | constrainSizeMin (const Size< T > &size) |
| check the size of the Rect object and if it is smaller than sz, resize it so it isn't. More...
|
|
void | constrainSize (const Size< T > &max_sz, const Size< T > &min_sz) |
| check the size of the Rect object and if it is bigger than max_sz or smaller than min_sz, resize it so it isn't. More...
|
|
bool | operator== (const Rect &rhs) const |
|
bool | operator!= (const Rect &rhs) const |
|
Rect | operator* (T scalar) const |
|
const Rect & | operator*= (T scalar) |
|
Rect | operator+ (const Rect &r) const |
|
template<typename T>
class CEGUI::Rect< T >
Class encapsulating operations on a Rectangle.