GetSize
This function gets the size 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 GetSize(boolean scaledCoords=false)
Parameters
- scaledCoords: if set to false logical coordinates will be returned, otherwise scaled coordinates will be returned.
Returns
Returns the widget size.