Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF

Chapter 2 - Initializing and Terminating SunCGI 15 0 Each element of the array should be filled with an integer. The first two elements specify the x and y coordinates of the upper left-hand corner of the CG! Tool. The third and fourth elements specify the width and height of the CG! Tool. The fifth through eighth elements specify the position and size of the iconic form of the CG! Tool. If the ninth element is nonzero, the tool is displayed in its iconic form. Errors ENOTOPOP [5] CGI not in proper state CGI shall be either in state CGOP, VSOP, or VSAC. ENOWSTYP (11] Specified view surface type does not exist. EMAXVSOP [12] Maximum number of view surfaces already open.

EMEMSPAC (110] Space allocation has failed. ENOTCCPW (112] Function or argument not compatible with standard CG!. Table 2-2 Available View Surfaces Name I Description PIXWINDD Sun View on a monochrome display CGPIXWINDD Sun View on a color display BW1DD Full screen on a Sun-1 mono- chrome display Full screen on a Sun-2 or Sun-3 monochrome display Full screen on a Sun-I color display Full screen on a Sun-2 or Sun-3 color display Full screen on a Sun-2/160 or Sun- 3/160 with optional Graphics Pro- cessor 0 BW2DD CG1DD CG2DD GP1DD Table 2-3 View Surface Default States State I Value View Surface Device Viewport Cleared View Surface Note:

most failures during the opening of a view surface result in error ENOWS- TYP [11]. The most common reason is missetting (or failing to set) the dd ele- ment of the Cvwsurf structure. For example, opening a device surface type PIXWINDD instead of CGPIXWINDD on a color pixwin, or using CG2DD when the ldevlcgtwo* surface is being used by suntools. The NORMAL_VWSURF macro should be used to initialize this structure. 0 Version C of 17 March 1986