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

Chapter 4 - Attributes 7 5 0 typedef struct { unsigned char *ra; unsigned char *ga; unsigned char *ba; Cint n; Ccentry; The minimum and maximum color table entries are treated specially by Pixwins and hence by SunCGI. If they are set to be the same value, the user's values for these two entries are both ignored. They revert to the inverse of the normal values; entry O becomes white, the maximum entry becomes black. The argument istart determines the first entry in the color lookup table to be modified. the argument clist contains the color information for entry istart in terms of triples of values of numbers ranging between O and 255.

The last field of clist reports how many entries are to be modified. An error is generated if either the indices to the color lookup table are out of range. ENOTOPOP [5) CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. Errors ECINDXLZ [35) Color index is less than zero. EBADCOLX [36) Color index is invalid. Q 4.10. Inquiry Functions The attribute inquiry functions permit examination of the current attributes. Attributes are reported in groups corresponding to the class of output primitive which they modify. The argument to each inquiry function has its own structure type which has an element for each of the individual attributes (see Appendix D).

Inquire Line Attributes Clinatt *inquire_line_attributes() /* returns a pointer to line attribute structure*/ inquire_line_attributes reports the current line style, line width, line color , and polyline bundle index in the appropriate elements of the returned value of the function. typedef struct { Clintype style; Cfloat width; Cint color; Cint index; Clinatt; inquire_line_attributes returns a NULL(not an error number) in case of errors. Errors are printed if the error warning mode is not set to NO_ACTION. Errors ENOTOPOP (5) CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC.

Q Inquire Marker Attributes Crnarkatt *inquire_rnarker_attributes() /* returns a pointer to marker attribute structure*/ Version C ofl7 March 1986