#include <OpenGUI_Types.h>
Public Member Functions | |
| FRect () | |
| constructor | |
| FRect (const FVector2 &min, const FVector2 max) | |
| constructor | |
| FRect (const float &left, const float &top, const float &right, const float &bottom) | |
| constructor | |
| const FVector2 & | getPosition () const |
| return position | |
| FVector2 | getSize () const |
| return size | |
| float | getWidth () const |
| return width | |
| float | getHeight () const |
| return height | |
| void | setWidth (const float &newWidth) |
| set new width | |
| void | setHeight (const float &newHeight) |
| set new height | |
| void | setSize (const FVector2 &newSize) |
| set new size | |
| void | setPosition (const FVector2 &newPosition) |
| set new position | |
| void | offset (const FVector2 &offsetVector) |
offset position by offsetVector | |
| FRect & | normalize () |
| Normalizes the rect, ensuring that min really is the min and max really is the max. | |
| bool | isInside (const FVector2 &point) const |
| return true if given point is within bounds of this rect | |
| FVector2 | getInnerCoord (const FVector2 &outerFVector2) |
| Return the given outer coord as an inner coord. | |
| FVector2 | getOuterCoord (const FVector2 &innerFVector2) |
| Return the given inner coord as an outer coord. | |
| FRect | pixelAligned (const IVector2 &resolution) const |
| Returns a pixel aligned copy of this FRect. | |
| String | toStr () const |
| Return a string representation of this value. | |
| bool | operator== (const FRect &right) const |
| comparison operator | |
| bool | operator!= (const FRect &right) const |
| comparison operator | |
Public Attributes | |
| FVector2 | min |
| direct access to upper left point | |
| FVector2 | max |
| direct access to lower right point | |
|
|
constructor
|
|
||||||||||||
|
constructor
|
|
||||||||||||||||||||
|
constructor
|
|
|
return height
|
|
|
Return the given outer coord as an inner coord. inner coord is defined as upper left = 0,0, lower right = 1.0f,1.0f |
|
|
Return the given inner coord as an outer coord. inner coord is defined as upper left = 0,0, lower right = 1.0f,1.0f |
|
|
return position
|
|
|
return size
|
|
|
return width
|
|
|
return true if given point is within bounds of this rect
|
|
|
Normalizes the rect, ensuring that min really is the min and max really is the max.
|
|
|
offset position by
|
|
|
comparison operator
|
|
|
comparison operator
|
|
|
Returns a pixel aligned copy of this FRect.
|
|
|
set new height
|
|
|
set new position
|
|
|
set new size
|
|
|
set new width
|
|
|
Return a string representation of this value.
|
|
|
direct access to lower right point
|
|
|
direct access to upper left point
|