If an application is able to specify a clip path in world space, a viewing limit in model space, a graphics field in page space, and a clip region in device space, it might be necessary for your application to determine the size of the clipping area formed by the intersection of the four. GpiQueryClipBox returns the dimensions (in world coordinates) of the smallest rectangle that completely surrounds the intersection of all the defined clipping areas, including the visible region.
The following figure shows how to use GpiQueryClipBox to fill a RECTL structure with the desired coordinates.
#include <os2.h> void fncCLIP06(void){ HPS hps; RECTL rclClip; GpiQueryClipBox(hps, &rclClip); } /* fncCLIP06 */