GSLATT(3g,L) AIX Technical Reference GSLATT(3g,L)
-------------------------------------------------------------------------------
gslatt
PURPOSE
Sets the line attributes.
C SYNTAX
int gslatt_ (color, style)
int *color, *style;
FORTRAN SYNTAX
INTEGER function gslatt (color, style)
INTEGER color, style
PASCAL SYNTAX
FUNCTION gslatt_ (
VAR color, style: INTEGER
): INTEGER [PUBLIC];
DESCRIPTION
The gslatt subroutine defines the attributes for the class of line drawing
functions.
Parameters
color Refers to a line color entry in the color map. If it is -1,
the attribute is unchanged. The default color is 7, white.
style Sets or resets the line attributes. The line value of style
can be one of the following:
Processed November 7, 1990 GSLATT(3g,L) 1
GSLATT(3g,L) AIX Technical Reference GSLATT(3g,L)
Value Display Printer or Plotter
-1 No change No change
0 Solid Solid
1 Dash Dash
2 Dot Dot
3 Dash-dot Dash-dot
4 Dash-dot-dot Dash-dot-dot
50 User-supplied Not available
100 Continuous solid Solid
101 Continuous dash Dash
102 Continuous dot Dot
103 Continuous dash-dot Dash-dot
104 Continuous dash-dot-dot Dash-dot-dot
150 Continuous Not available
user-supplied
The default attribute is solid (0).
The GSL supplied line style patterns are implemented in a device-dependent
fashion. All line style indices not described above are reserved.
For line styles 1-4 and line style 50 the GSL line drawing functions ensure
that a line or line segment starts and ends with a run of the line color. For
these line styles, the GSL does not continue the pattern from one polyline
segment to another.
For line styles 101-104 and line style 150, the GSL continues the pattern
across multiple lines or line segments until the application makes another call
to gslatt to reset the line pattern. In this case, unlike styles 1-4 and 50,
the GSL continues the pattern from one polyline segment to another. Continuous
line styles are not available on printers and plotters.
RETURN VALUE
GS_SUCC Successful.
GS_COLI Invalid color index.
GS_SYLI Invalid style index.
Processed November 7, 1990 GSLATT(3g,L) 2