Intermec ck1 Reference Guide
Chapter 5 — Nano-X APIs
256
CK1 SDK Programmer’s Reference Manual
GrDestroyGC ()
Purpose: Destroy the graphics context structure with the specified identification.
Syntax:
void GrDestroyGC (GR_GC_ID gc);
Parameter: gc Identification of the graphics context structure to destroy
GrLine ()
Purpose: Draw a line using the specified graphics context on the specified drawable
from (x1, y1) to (x2, y2) with coordinates given relative to the drawable.
Syntax:
void GrLine (GR_DRAW_ID id,
GR_GC_ID gc,
GR_COORD x1,
GR_COORD y1,
GR_COORD x2,
GR_COORD y2);
GR_COORD x1,
GR_COORD y1,
GR_COORD x2,
GR_COORD y2);
Parameters: id
Identification of the drawable to draw the line on
gc
Identification of the graphics context to use when drawing the line
x1
X coordinate of the start of the line relative to the drawable
y1
Y coordinate of the start of the line relative to the drawable
x2
X coordinate of the end of the line relative to the drawable
y2
Y coordinate of the end of the line relative to the drawable
GrPoint ()
Purpose: Draw a point using the specified graphics context at the specified position
on the specified drawable.
Syntax:
void GrPoint (GR_DRAW_ID id,
GR_GC_ID gc,
GR_COORD x,
GR_COORD y);
GR_COORD x,
GR_COORD y);
Parameters: id
Identification of the drawable to draw a point on
gc
Identification of the graphics context to use when drawing the
point
point
x
X coordinate to draw the point at relative to the drawable
y
Y coordinate to draw the point at relative to the drawable
GrPoints ()
Purpose: Draw a set of points using the specified graphics context at the positions
specified by the point table on the specified drawable.