get_viewport_extent


bool get_viewport_extent(handle device,
                         idimensions* extent)

This function obtains the extents of the viewport.

Parameters

handle device

The handle of the device context whose viewport is being queried.

idimensions* extent

A pointer to a structure that is updated to contain the viewport extent.

Return

bool

true The function succeeded.
false The function failed.

Notes

The viewport extents are returned in device units.