58 SunCGI Reference Manual Cerror line_type(ttyp) Clintype ttyp; /* style of line*/ 0 Line Type line_type defines the line type forpolylines. The enumerated type Clin- t ype contains values that correspond to valid line types. typedef enum SOLID, DOTTED, DASHED, DASHED_DOTTED, DASH_DOT_DOTTED, LONG DASHED Clintype; The default line style is SOLID. The actual representation of a line on the screen is affected by the line endstyle. DASH_ OOT _ OOTIED actually has three dots between dashes. Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. EBTBUNDL [30] ASF is BUNDLED.
Line Endstyle (SunCGI Extension) Cerror line_endstyle(ttyp) Cendstyle ttyp; /* style of line*/ 0 line_endstyle determines how a textured (non-SOLID) line terminates. The enumerated type Cendstyle contains values that correspond to valid line end styles. typedef enum NATURAL, POINT, BEST FIT Cendstyle; If the endstyle selected is NATURAL, the last component of the line texture (for example, a dash or a dot) which can be completely drawn is drawn. Blank space at the end of the line may cause the line to not appear as long as specified by the starting and ending coordinates. If the endstyle selected is POINT, the last point of the line is drawn whether it is appropriate or not.
In this case, the endpoints of the line always appear on the screen. If the endstyle selected is BEST_AT, the last point is always drawn but is extended as far back as the last space if appropriate. However, the BEST_ AT endstyle may shorten the space between the last element of the line and the element preceding the last element by one in order to guaran- tee that the line ends on a drawn point The default endstyle is BEST _FIT. Errors ENOTOPOP [5] CGI not in proper state CGI shall be in state VDOP, VSOP, or VSAC. Line Width Specification Mode 0 Version C of 17 March 1986