#include <OpenGUI_Types.h>
Public Member Functions | |
| IRect () | |
| constructor | |
| IRect (const IVector2 &min, const IVector2 max) | |
| constructor | |
| IRect (const int &left, const int &top, const int &right, const int &bottom) | |
| constructor | |
| const IVector2 & | getPosition () const |
| returns top,left | |
| IVector2 | getSize () const |
| return size as IVector2 | |
| int | getWidth () const |
| return width | |
| int | getHeight () const |
| return height | |
| int | getArea () const |
| return total area | |
| void | setWidth (const int &newWidth) |
| sets new width | |
| void | setHeight (const int &newHeight) |
| sets new height | |
| void | setSize (const IVector2 &newSize) |
| sets new size | |
| void | setPosition (const IVector2 &newPosition) |
| sets new position | |
| void | offset (const IVector2 &offsetVector) |
| offset position by given IVector2 | |
| bool | inside (IVector2 point) const |
| return true if given point is inside this IRect | |
| String | toStr () const |
| Return a string representation of this value. | |
| bool | operator== (const IRect &right) const |
| comparison operator | |
| bool | operator!= (const IRect &right) const |
| comparison operator | |
Public Attributes | |
| IVector2 | min |
| direct access to upper left point | |
| IVector2 | max |
| direct access to lower right point | |
|
|
constructor
|
|
||||||||||||
|
constructor
|
|
||||||||||||||||||||
|
constructor
|
|
|
return total area
|
|
|
return height
|
|
|
returns top,left
|
|
|
return size as IVector2
|
|
|
return width
|
|
|
return true if given point is inside this IRect
|
|
|
offset position by given IVector2
|
|
|
comparison operator
|
|
|
comparison operator
|
|
|
sets new height
|
|
|
sets new position
|
|
|
sets new size
|
|
|
sets new width
|
|
|
Return a string representation of this value.
|
|
|
direct access to lower right point
|
|
|
direct access to upper left point
|