getRect Method

Provides the size and position of the SGWorld window in pixels.

getRect();

Return Value

A rectangle object which has left, top, width and height properties. The top and left properties are relative to the screen 0, 0 pixel. If the method fails, the return value is null.    SGWorld.lastError contains the failure reason.