Expand/Shrink

cdCanvasGetSize

Definition: include pGUI.e

integer width, height
atom width_mm, height_mm
{width, height, width_mm, height_mm} = cdCanvasGetSize(cdCanvas canvas)
Description: Returns the canvas size in pixels and in millimeters.

The cdGetScreenSize() function is similar, taking no parameters and returning the same values except relative to the main screen of the window system. It is not necessary to have an active canvas to call this function.
pwa/p2js: Supported, but currently only returns a length-2 sequence.