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
);

Parameters

id

The ID of the window or other drawable area.

gc

The graphics context to use when drawing the line.

x1, y1

The first point of the line segment.

x2, y2

The last point of the line segment.

Description

The GrLine function draws a line from the first point to the second point using the settings in the gc grapics context.