GetPosition
This function gets the position of a widget.
By default the function will return logical coordinates that are unaffected by GUI scaling. You should always use logical coordinates when creating, positioning, and resizing widgets. Logical coordinates are based on typical sizing for a 1080p computer monitor.
If scaled coordinates are specified, the actual pixel size will be returned.
Syntax
- iVec2 GetPosition(const bool scaledCoords=false)
Parameters
- scaledCoords: if set to false logical coordinates will be returned, otherwise scaled coordinates will be returned.
Returns
Returns the widget position.