GrLine()

Name

GrLine() -- Draw a line

Synopsis

void GrLine ( GR_DRAW_ID id , GR_GC_ID gc , GR_COORD x1 , GR_COORD y1 , GR_COORD x2 , GR_COORD y2 );

Description

This function draws a line on the drawable id using the graphics context gc, from point (x1,y1) to point (x2,y2).

Parameters

TypeNameDescription
GR_DRAW_IDidThe ID of the drawable to draw a line on.
GR_GC_IDgcThe ID of the graphics context to use when drawing the line.
GR_COORDx1The X coordinate of the line's starting point relative to the drawable.
GR_COORDy1The Y coordinate of the line's starting point relative to the drawable.
GR_COORDx2The X coordinate of the line's ending point relative to the drawable.
GR_COORDy2The Y coordinate of the line's ending point relative to the drawable.

See Also

GrPoint(), GrRect(), GrPoly().