Vizard 7 » Command Index » Vizard objects » window » <window>.getSize
7.7

<window>.getSize

Returns size

<window>.getSize(  
mode = viz.WINDOW_NORMALIZED  
)  
mode = viz.WINDOW_NORMALIZED
One of the following modes:

Unit mode

viz.WINDOW_NORMALIZED

The coordinates returned by the function will be in normalized units, [0,1].

viz.WINDOW_PIXELS

The coordinates returned by the function will be in pixel units.

viz.WINDOW_ORTHO

The coordinates returned by the function will be the pixel size of the windows ortho display.

Remarks

This command will return the current width/height of the window.

Return Value

[width,height]