GetClientSize
This function gets the client size of a widget. The client size is the padded area inside a widget in which child widgets can be created.
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 GetClientSize(const bool scaledCoords=false)
Parameters
- scaledCoords: if set to false logical coordinates will be returned, otherwise scaled coordinates will be returned.
Returns
Returns the client size.