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

Parameters

Returns

Returns the widget size.