Up: GEOS SDK TechDocs | Up | Prev: GSDrawSpline() ... | Next: GSMoveTo() ...

GSFillBitmap()

#define GSFillBitmap(x_w,y_w,bsize_w) \
        GR_FILL_BITMAP,GOC_SW(x_w), \
GOC_SW(y_w),GOC_WORD(bsize_w)

This GString creation macro draws a bitmap using the area-filling color. It will draw the bitmap at the passed coordinates; the macro's final argument is the size of the bitmap's data. Following the macro you should place the bitmap's data: first a Bitmap structure, then a number of bytes containing the mask and color values for the bitmap.

Include: gstring.h

GSFillBitmapAtCP()

#define GSFillBitmapAtCP(bsize_w) \
        GR_FILL_BITMAP_CP, GOC_WORD(bsize_w)

This GString creation macro draws a bitmap using the area-filling color at the current position. It takes one argument, the size of the bitmap's data. Following the macro you should place the bitmap's data: first a Bitmap structure, then a number of bytes containing the mask and color values for the bitmap.

Include: gstring.h

GSFillBitmapOptr()

#define GSFillBitmapOptr(x_w,y_w,o_ptr) \
        GR_FILL_BITMAP_OPTR,GOC_SW(x_w),GOC_SW(y_w),GOC_OPTR(o_ptr)

This GString creation macro draws a bitmap using the area-filling color. It does so at the passed coordinates; the bitmap's data should be stored in the chunk referenced by the passed optr.

Include: gstring.h

GSFillEllipse()

#define GSFillEllipse(x1_w,y1_w,x2_w,y2_w) \
        GR_FILL_ELLIPSE,GOC_SW(x1_w),GOC_SW(y1_w), \
GOC_SW(x2_w),GOC_SW(y2_w)

This GString creation macro draws a filled ellipse. It takes four arguments, the bounding coordinates of the ellipse.

Include: gstring.h

GSFillPath()

#define GSFillPath(region_fill_rule) \
        GR_FILL_PATH,(region_fill_rule)

This GString creation macro fills the current path using the passed RegionFillRule value.

Include: gstring.h

GSFillPolygon()

#define GSFillPolygon(count_w,fillrule_enum) \
        GR_FILL_POLYGON,GOC_WORD(count_w),(fillrule_enum)

This GString creation macro draws a filled polygon. It takes two arguments, the number of points in the polygon and a RegionFillRule value. This macro should be followed by the points of the polygon, each passed via a GOC_POINT macro.

Include: gstring.h

GSFillRect()

#define GSFillRect(x1_w,y1_w,x2_w,y2_w) \
        GR_FILL_RECT,GOC_SW(x1_w),GOC_SW(y1_w), \
GOC_SW(x2_w),GOC_SW(y2_w)

This GString creation macro draws a filled rectangle. The macro takes four arguments, the bounds of the rectangle.

Include: gstring.h

GSFillRectTo()

#define GSFillRectTo(x2_w,y2_w) \
        GR_FILL_RECT_TO ,GOC_SW(x2_w),GOC_SW(y2_w)

This GString creation macro draws a filled rectangle with the current position defining one corner and the opposite corner defined by the passed coordinates.

Include: gstring.h

GSFillRoundRect()

#define GSFillRoundRect(x1_w,y1_w,x2_w,y2_w,r_w) \
        GR_FILL_ROUND_RECT,GOC_WORD(r_w),GOC_SW(x1_w), \
GOC_SW(y1_w),GOC_SW(x2_w), \
GOC_SW(y2_w)

This GString creation macro draws a filled rounded rectangle. It takes five arguments; the first four give the bounding coordinates of the rectangle; the final argument is the corner radius.

Include: gstring.h

GSFillRoundRectTo()

#define GSFillRoundRectTo(x2_w,y2_w,r_w) \
        GR_FILL_ROUND_RECT_TO,GOC_WORD(r_w),GOC_SW(x2_w), GOC_SW(y2_w)

This GString creation macro draws a filled rounded rectangle. The rectangle's bounding coordinates are defined by the the current position and the two passed coordinates; its corner radius is defined by the macro's final argument.

Include: gstring.h

GSInitDefaultTransform()

#define GSInitDefaultTransform() \
        GR_INIT_DEFAULT_TRANSFORM

This GString creation macro initializes the GState's default transformation to hold the value of the current coordinate transformation.

Include: gstring.h

GSLabel()

#define GSLabel(w) \
        GR_LABEL, GOC_WORD(w)

This GString definition macro creates a label in the GString. This macro takes one argument, a word which acts as the label's token. By passing GSC_LABEL to GrDrawGString() or another GString-traversing command, you may use this label as something analogous to the label used by a goto command.

Include: gstring.h


Up: GEOS SDK TechDocs | Up | Prev: GSDrawSpline() ... | Next: GSMoveTo() ...