Intermec ck1 Reference Guide
Chapter 5 — Nano-X APIs
CK1 SDK Programmer’s Reference Manual
257
Syntax:
void GrPoints (GR_DRAW_ID id,
GR_GC_ID gc,
GR_COUNT count,
GR_POINT *pointtable);
GR_COUNT count,
GR_POINT *pointtable);
Parameters: id
Identification of the drawable to draw a point on
gc
Identification of the graphics context to use when drawing
the point
the point
count
Number of points in the point table
pointtable
Pointer to a GR_POINT array that lists the points to draw
GrRect ()
Purpose: Draw the boundary of a rectangle of the specified dimensions and position
on the specified drawable using the specified graphics context.
Syntax:
void GrRect (GR_DRAW_ID id,
GR_GC_ID gc,
GR_COORD x,
GR_COORD y,
GR_SIZE width,
GR_SIZE height);
GR_COORD x,
GR_COORD y,
GR_SIZE width,
GR_SIZE height);
Parameters: id
Identification of the drawable to draw the rectangle on
gc
Identification of the graphics context to use when drawing the
rectangle
rectangle
x
X coordinate of the rectangle relative to the drawable
y
Y coordinate of the rectangle relative to the drawable
width
Width of the rectangle
height
Height of the rectangle
GrFillRect ()
Purpose: Draw a filled rectangle of the specified dimensions and position on the
specified drawable using the specified graphics context.
Syntax:
void GrFillRect (GR_DRAW_ID id,
GR_GC_ID gc,
GR_COORD x,
GR_COORD y,
GR_SIZE width,
GR_SIZE height);
GR_COORD x,
GR_COORD y,
GR_SIZE width,
GR_SIZE height);
Parameters: id
Identification of the drawable to draw the rectangle on
gc
Identification of the graphics context to use when drawing the
rectangle
rectangle
x
X coordinate of the rectangle relative to the drawable