Utility class that helps in converting various types of co-ordinate between absolute screen positions and positions offset from the top-left corner of a given Window object.
More...
|
static float | alignToPixels (float x) |
| Static method used to return a float value rounded to the nearest integer. More...
|
|
static float | asAbsolute (const UDim &u, float base, bool pixelAlign=true) |
| converts given UDim to absolute value
|
|
static float | asRelative (const UDim &u, float base) |
| converts given UDim to relative value
|
|
static Vector2f | asAbsolute (const Vector2< UDim > &v, const Sizef &base, bool pixelAlign=true) |
| converts given Vector2<UDim> to absolute Vector2f
|
|
static Vector2f | asRelative (const Vector2< UDim > &v, const Sizef &base) |
| converts given Vector2<UDim> to relative Vector2f
|
|
static Sizef | asAbsolute (const Size< UDim > &v, const Sizef &base, bool pixelAlign=true) |
| converts given Size<UDim> to absolute Sizef
|
|
static Sizef | asRelative (const Size< UDim > &v, const Sizef &base) |
| converts given Size<UDim> to relative Sizef
|
|
static Rectf | asAbsolute (const URect &r, const Sizef &base, bool pixelAlign=true) |
|
static Rectf | asRelative (const URect &r, const Sizef &base) |
|
static float | screenToWindowX (const Window &window, const UDim &x) |
| Convert a screen relative UDim co-ordinate value to a window co-ordinate value, specified in pixels. More...
|
|
static float | screenToWindowX (const Window &window, const float x) |
| Convert a screen pixel co-ordinate value to a window co-ordinate value, specified in pixels. More...
|
|
static float | screenToWindowY (const Window &window, const UDim &y) |
| Convert a screen relative UDim co-ordinate value to a window co-ordinate value, specified in pixels. More...
|
|
static float | screenToWindowY (const Window &window, const float y) |
| Convert a screen pixel co-ordinate value to a window co-ordinate value, specified in pixels. More...
|
|
static Vector2f | screenToWindow (const Window &window, const UVector2 &vec) |
| Convert a screen relative UVector2 point to a window co-ordinate point, specified in pixels. More...
|
|
static Vector2f | screenToWindow (const Window &window, const Vector2f &vec) |
| Convert a screen Vector2 pixel point to a window co-ordinate point, specified in pixels. More...
|
|
static Rectf | screenToWindow (const Window &window, const URect &rect) |
| Convert a URect screen area to a window area, specified in pixels. More...
|
|
static Rectf | screenToWindow (const Window &window, const Rectf &rect) |
| Convert a Rect screen pixel area to a window area, specified in pixels. More...
|
|
Utility class that helps in converting various types of co-ordinate between absolute screen positions and positions offset from the top-left corner of a given Window object.