Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF (EN)

20 SunCGI Reference Manual ENOTOPOP [5] CGI not in proper state CGI shall be either in state CGOP, O VSOP, or VSAC. Errors ENOTCCPW [112] Function or argument not compatible with standard CGI. Clip Rectangle Cerror clip_rectangle(xrnin, xrnax, ymin, ymax) Cint xrnin, xrnax, ymin, ymax; /* bottom left-hand*/ /* and top right-hand corner of clipping rectangle*/ clip rectangle defines the clipping rectangle in VDC Coordinates. By default, the clipping rectangle is set to the borders of VDC space. The clip_rectangle function defines the clipping rectangle in VDC space, to be used when clipping is set to CLIP_RECTANGLE. The clipping rectangle is automatically reset by vdc_extent.

Errors ENOTOPOP [5] CGI not in proper state CGI shall be either in state CGOP, VSOP, or VSAC. EBADRCTD [20] Rectangle definition is invalid. ECLIPTOL [22] Clipping rectangle is too large. ECLIPTOS [23] Clipping rectangle is too small. ENOTCCPW [112] Function or argument not compatible with standard CG!. 0 Hard Reset Cerror hard_reset() Device control functions restore the view surface and the internal state of SunCGI to a known state. The individual aspects of the device which can be reset are the output attributes, the view surface (screen), and the error reporting.

hard_reset returns the output attributes to their default values; terminates all input devices, and empties the event queue and clears all view surfaces. VDC space is reset to its default values and the clip indicator is set to CLIP. This func- tion should be used sparingly because most control, attribute, and input functions called before this function will not have any effect on functions called after hard reset is called. Errors ENOTOPOP [5] CGI not in proper state CGI shall be either in state CGOP, · VSOP, or VSAC. Reset to Defaults Cerror reset_to_defaults() reset to defaults returns output atoibutes to defaults (see Table 4-1).

reset_to_defaults does not clear the screen, reset the input devices, or reset the character set index. Errors ENOTOPOP [5] CGI not in proper state CGI shall be either in state CGOP, VSOP, or VSAC. EVSIDINV [!OJ Specified view surface name is invalid. 0 Version C of 17 March 1986