#include <UT_Rect.h>
Public Member Functions | |
| UT_Rect () | |
| UT_Rect (int v1, int v2, int v3, int v4) | |
| UT_Rect (const UT_DimRect &r) | |
| UT_Rect (const UT_InclusiveRect &r) | |
| UT_Rect (const UT_ExclusiveRect &r) | |
| UT_Rect & | operator= (const UT_DimRect &r) |
| UT_Rect & | operator= (const UT_InclusiveRect &r) |
| UT_Rect & | operator= (const UT_ExclusiveRect &r) |
| void | clear () |
| void | set (int v1, int v2, int v3, int v4) |
| bool | isEmpty () const |
| bool | isValid () const |
| bool | isInsideX (int px) const |
| bool | isInsideY (int py) const |
| bool | isInside (int px, int py) const |
| bool | contains (const T &r) const |
| void | getRelative (int &px, int &py) const |
| void | getAbsolute (int &px, int &py) const |
| void | flipX (int awidth) |
| void | flipY (int aheight) |
| bool | intersect (const T &r) |
| bool | overlapX (const T &r) const |
| bool | overlapY (const T &r) const |
| void | enlarge (const T &r) |
| void | enlarge (int x, int y) |
| void | enlarge (float x, float y) |
| void | translate (int x, int y) |
| void | inset (int dx, int dy) |
| void | inset (int dx1, int dy1, int dx2, int dy2) |
| void | scale (fpreal factor) |
| void | clamp (int &px, int &py) const |
| int | x () const |
| int | y () const |
| int | w () const |
| int | h () const |
| int | width () const |
| int | height () const |
| int | x1 () const |
| int | y1 () const |
| int | x2 () const |
| int | y2 () const |
| int | x2e () const |
| int | y2e () const |
| void | setWidth (int awidth) |
| void | setHeight (int aheight) |
| void | setX (int x_) |
| void | setY (int y_) |
| void | setX1 (int x_) |
| void | setY1 (int y_) |
| void | setX2 (int x_) |
| void | setY2 (int y_) |
| void | setX2e (int x_) |
| void | setY2e (int y_) |
| void | getDim (int &x_, int &y_, int &w_, int &h_) const |
| void | getIncl (int &x1_, int &y1_, int &x2_, int &y2_) const |
| void | getExcl (int &x1_, int &y1_, int &x2_, int &y2_) const |
| void | setDim (int x_, int y_, int w_, int h_) |
| void | setIncl (int x1_, int y1_, int x2_, int y2_) |
| void | setExcl (int x1_, int y1_, int x2_, int y2_) |
| int & | operator() (int i) |
| int | operator() (int i) const |
| const int * | data () const |
| int * | data () |
Definition at line 58 of file UT_Rect.h.
| UT_Rect< T >::UT_Rect | ( | const UT_DimRect & | r | ) | [inline] |
| UT_Rect< T >::UT_Rect | ( | const UT_InclusiveRect & | r | ) | [inline] |
| UT_Rect< T >::UT_Rect | ( | const UT_ExclusiveRect & | r | ) | [inline] |
| void UT_Rect< T >::clamp | ( | int & | px, | |
| int & | py | |||
| ) | const [inline] |
| void UT_Rect< T >::clear | ( | void | ) | [inline] |
| bool UT_Rect< T >::contains | ( | const T & | r | ) | const [inline] |
| int* UT_Rect< T >::data | ( | void | ) | [inline] |
| const int* UT_Rect< T >::data | ( | void | ) | const [inline] |
| void UT_Rect< T >::enlarge | ( | float | x, | |
| float | y | |||
| ) | [inline] |
| void UT_Rect< T >::enlarge | ( | int | x, | |
| int | y | |||
| ) | [inline] |
| void UT_Rect< T >::enlarge | ( | const T & | r | ) | [inline] |
| void UT_Rect< T >::flipX | ( | int | awidth | ) | [inline] |
| void UT_Rect< T >::flipY | ( | int | aheight | ) | [inline] |
| void UT_Rect< T >::getAbsolute | ( | int & | px, | |
| int & | py | |||
| ) | const [inline] |
| void UT_Rect< T >::getDim | ( | int & | x_, | |
| int & | y_, | |||
| int & | w_, | |||
| int & | h_ | |||
| ) | const [inline] |
| void UT_Rect< T >::getExcl | ( | int & | x1_, | |
| int & | y1_, | |||
| int & | x2_, | |||
| int & | y2_ | |||
| ) | const [inline] |
| void UT_Rect< T >::getIncl | ( | int & | x1_, | |
| int & | y1_, | |||
| int & | x2_, | |||
| int & | y2_ | |||
| ) | const [inline] |
| void UT_Rect< T >::getRelative | ( | int & | px, | |
| int & | py | |||
| ) | const [inline] |
| int UT_Rect< T >::h | ( | ) | const [inline] |
| int UT_Rect< T >::height | ( | void | ) | const [inline] |
| void UT_Rect< T >::inset | ( | int | dx1, | |
| int | dy1, | |||
| int | dx2, | |||
| int | dy2 | |||
| ) | [inline] |
| void UT_Rect< T >::inset | ( | int | dx, | |
| int | dy | |||
| ) | [inline] |
| bool UT_Rect< T >::intersect | ( | const T & | r | ) | [inline] |
| bool UT_Rect< T >::isEmpty | ( | void | ) | const [inline] |
| bool UT_Rect< T >::isInside | ( | int | px, | |
| int | py | |||
| ) | const [inline] |
| bool UT_Rect< T >::isInsideX | ( | int | px | ) | const [inline] |
| bool UT_Rect< T >::isInsideY | ( | int | py | ) | const [inline] |
| bool UT_Rect< T >::isValid | ( | void | ) | const [inline] |
| int UT_Rect< T >::operator() | ( | int | i | ) | const [inline] |
| int& UT_Rect< T >::operator() | ( | int | i | ) | [inline] |
| UT_Rect& UT_Rect< T >::operator= | ( | const UT_ExclusiveRect & | r | ) | [inline] |
| UT_Rect& UT_Rect< T >::operator= | ( | const UT_InclusiveRect & | r | ) | [inline] |
| UT_Rect& UT_Rect< T >::operator= | ( | const UT_DimRect & | r | ) | [inline] |
| bool UT_Rect< T >::overlapX | ( | const T & | r | ) | const [inline] |
| bool UT_Rect< T >::overlapY | ( | const T & | r | ) | const [inline] |
| void UT_Rect< T >::set | ( | int | v1, | |
| int | v2, | |||
| int | v3, | |||
| int | v4 | |||
| ) | [inline] |
| void UT_Rect< T >::setDim | ( | int | x_, | |
| int | y_, | |||
| int | w_, | |||
| int | h_ | |||
| ) | [inline] |
| void UT_Rect< T >::setExcl | ( | int | x1_, | |
| int | y1_, | |||
| int | x2_, | |||
| int | y2_ | |||
| ) | [inline] |
| void UT_Rect< T >::setHeight | ( | int | aheight | ) | [inline] |
| void UT_Rect< T >::setIncl | ( | int | x1_, | |
| int | y1_, | |||
| int | x2_, | |||
| int | y2_ | |||
| ) | [inline] |
| void UT_Rect< T >::setWidth | ( | int | awidth | ) | [inline] |
| void UT_Rect< T >::setX | ( | int | x_ | ) | [inline] |
| void UT_Rect< T >::setX1 | ( | int | x_ | ) | [inline] |
| void UT_Rect< T >::setX2 | ( | int | x_ | ) | [inline] |
| void UT_Rect< T >::setX2e | ( | int | x_ | ) | [inline] |
| void UT_Rect< T >::setY | ( | int | y_ | ) | [inline] |
| void UT_Rect< T >::setY1 | ( | int | y_ | ) | [inline] |
| void UT_Rect< T >::setY2 | ( | int | y_ | ) | [inline] |
| void UT_Rect< T >::setY2e | ( | int | y_ | ) | [inline] |
| void UT_Rect< T >::translate | ( | int | x, | |
| int | y | |||
| ) | [inline] |
| int UT_Rect< T >::w | ( | ) | const [inline] |
| int UT_Rect< T >::width | ( | ) | const [inline] |
| int UT_Rect< T >::x | ( | ) | const [inline] |
| int UT_Rect< T >::x1 | ( | ) | const [inline] |
| int UT_Rect< T >::x2 | ( | ) | const [inline] |
| int UT_Rect< T >::x2e | ( | ) | const [inline] |
| int UT_Rect< T >::y | ( | ) | const [inline] |
| int UT_Rect< T >::y1 | ( | ) | const [inline] |
| int UT_Rect< T >::y2 | ( | ) | const [inline] |
| int UT_Rect< T >::y2e | ( | ) | const [inline] |
1.5.9