DdInqViewport(3D)

NAME
DdInqViewport - Return the size of the device viewport

SYNOPSIS
C:
void DdInqViewport(device, viewport)
DtObject device;
DtVolume *viewport;

FORTRAN:
CALL DDQV(DEVICE, VWPORT)
INTEGER*4 DEVICE
REAL*8 VWPORT(6)

DESCRIPTION
DdInqViewport returns in the supplied parameter viewport the extent of the device viewport for the device, device.

The device viewport is the subportion of the device's extent upon which the application displays the device's frame. You can query the device's display volume by using DdInqExtent <DDQE>; refer to the DdInqExtent manual page for more information.

The default viewport uses all of the current device volume. If the device extent changes (for example, if an X-window is resized), then by default, the viewport automatically changes to fit the new device extent. The auto-resize feature can be disabled for a device when it is created.

ERRORS
DdInqViewport will fail if the device handle is invalid.

[WARNING - invalid device handle]

SEE ALSO
DdSetViewport(3D), DdInqExtent(3D), DoDevice(3D)