GsGLINE

Straight line handler

struct GsGLINE {
        u_long attribute;
        short x0, y0;
        short x1, y1;
        u_char r0, g0, b0;
        u_char r1, g1, b1;
};

Members

attribute Attribute bits as shown below. (Bits not defined below are reserved by the system)
28-29: Semi-transparency rate
    0: 0.5 x Back + 0.5 x Forward
    1: 1.0 x Back + 1.0 x Forward
    2: 1.0 x Back - 1.0 x Forward
    3: 1.0 x Back + 0.25 x Forward
30: Semi-transparency mode
    0: Semi-transparency OFF
    1: Semi-transparency ON
31: Display mode 
    0: Enable display
    1: Disable display
x0, y0 Drawing starting point position
x1, y1 Drawing ending point position
r0, g0, b0 Drawing colour of the starting point
r1, g1, b1 Drawing colour of the ending point

Explanation

GsGLINE is a structure used to represent straight lines with gradation.
It is the same as GsLINE except that drawing colours for the starting point and ending point may be specified separately.

See Also

GsLINE