Up: GEOS SDK TechDocs | Up | Prev: GrUDivWWFixed() ... | Next: GSDrawEllipse() ...

GSCloseSubPath()

#define GSCloseSubPath() GR_CLOSE_SUB_PATH

This GString creation macro geometrically closes the currently open path. You must still use GSEndPath() to signal that you are done defining the path.

Include: gstring.h

GSComment()

#define GSComment(size_b) \
        GR_COMMENT, GOC_WORD(size_b

This GString creation macro signals the start of a comment within the GString. It takes one argument, the length of the comment in bytes. Following this macro you should place the comment data.

Include: gstring.h

GSCreatePalette()

#define GSCreatePalette() GR_CREATE_PALETTE

This GString creation macro creates a custom palette.

Include: gstring.h

GSDestroyPalette()

#define GSDestroyPalette() GR_DESTROY_PALETTE

This GString creation macro destroys the custom palette, if any.

Include: gstring.h

GSDrawArc()

#define GSDrawArc(close_enum,x1_w,y1_w,x2_w,y2_w,ang1_w,ang2_w) \
        GR_DRAW_ARC,GOC_WORD(close_enum), \
GOC_SW(x1_w), GOC_SW(y1_w), \
GOC_SW(x2_w), GOC_SW(y2_w), \
GOC_SW(ang1_w),GOC_SW(ang2_w)

This GString creation macro draws an arc. It takes several arguments. First it takes an ArcCloseType value. Next it takes the boundaries of the arc's base ellipse. Finally, it takes starting and ending angles for the arc.

Include: gstring.h

GSDrawArc3Point()

#define GSDrawArc3Point(close, x1, y1, x2, y2, x3, y3) \
        GR_DRAW_ARC_3POINT,GOC_WORD(close),GOC_WWF(x1), \
GOC_WWF(y1), GOC_WWF(x2), GOC_WWF(y2), \
GOC_WWF(x3), GOC_WWF(y3)

This GString creation macro draws a three-point arc. It takes several arguments: an ArcCloseType and the coordinates of the three points defining the arc, each expressed as a WWFixed value.

Include: gstring.h

GSDrawArc3PointTo()

#define GSDrawArc3Point(close, x1, y1, x2, y2, x3, y3) \
        GR_DRAW_ARC_3POINT,GOC_WORD(close),GOC_WWF(x1), \
GOC_WWF(y1), GOC_WWF(x2), GOC_WWF(y2), \
GOC_WWF(x3), GOC_WWF(y3)

This GString creation macro draws a three-point arc with the current position acting as one of the endpoints. It takes several arguments: an ArcCloseType and the coordinates of the remaining defining points of the arc, each expressed as a WWFixed value.

Include: gstring.h

GSDrawBitmap()

#define GSDrawBitmap(x_w,y_w,w_w) \
        GR_DRAW_BITMAP, GOC_SW(x_w), \
GOC_SW(y_w), GOC_WORD(w_w)

This GString creation macro draws a bitmap. It takes three arguments: the coordinates at which to draw the bitmap and the size of the bitmap's data. This macro should be followed by the bitmap's data: a Bitmap structure and the mask and color data for the bitmap.

Include: gstring.h

GSDrawBitmapAtCP()

#define GSDrawBitmapAtCP(bsize_w) \
        GR_DRAW_BITMAP_CP, GOC_WORD(bsize_w)

This GString creation macro draws a bitmap at the current position. It takes one argument, the size of the bitmap data in bytes. This macro should be followed by the bitmap's data: a Bitmap structure and the mask and color data for the bitmap.

Include: gstring.h

GSDrawBitmapOptr()

#define GSDrawBitmapOptr(x_w,y_w,o_ptr) \
        GR_DRAW_BITMAP_OPTR,GOC_SW(x_w), \
GOC_SW(y_w),GOC_OPTR(o_ptr)

This GString creation macro draws a bitmap at the passed coordinates; the data for said bitmap should be stored in a chunk referenced by the passed optr.

Include: gstring.h

GSDrawCBitmap()

#define GSDrawCBitmap(x_w,y_w,slice1size_w,totalSize) \
        GR_DRAW_BITMAP,GOC_SW(x_w), GOC_SW(y_w), \
GOC_WORD(slice1size_w)

This GString creation macro draws a complex bitmap. It takes four arguments: the x and y coordinates at which to draw the bitmap, the size of one slice of the bitmap's mask and color data, and the total size of the bitmap's data. This macro should be followed by the bitmap's data: a CBitmap structure followed by the mask, color, and any other associated data.

Include: gstring.h

GSDrawChar()

#define GSDrawChar(c,x1_w,y1_w) \
        GR_DRAW_CHAR,(c),GOC_SW(x1_w),GOC_SW(y1_w)

This GString creation macro draws a text character. It takes three arguments: the Chars value of the character and the x and y coordinates at which to draw the character.

Include: gstring.h

GSDrawCharAtCP()

#define GSDrawCharAtCP(c) \
        GR_DRAW_CHAR_CP,(c)

This GString creation macro draws a single character at the current position. It takes one argument, the Chars value of the character to draw.

Include: gstring.h

GSDrawCurve()

#define GSDrawCurve(x1_sw,y1_sw,x2_sw,y2_sw,x3_sw,y3_sw,x4_sw,y4_sw) \
        GR_DRAW_CURVE,GOC_SW(x1_sw),GOC_SW(y1_sw), \
GOC_SW(x2_sw),GOC_SW(y2_sw), \
GOC_SW(x3_sw),GOC_SW(y3_sw),GOC_SW(x4_sw),GOC_SW(y4_sw)

This GString creation macro draws a Bezier curve. It takes eight arguments consisting of the coordinates for the curve's anchor and control points.

Include: gstring.h

GSDrawCurveTo()

#define GSDrawCurveTo(x2_sw,y2_sw,x3_sw,y3_sw,x4_sw,y4_sw) \
        GR_DRAW_CURVE_TO,GOC_SW(x2_sw),GOC_SW(y2_sw), \
GOC_SW(x3_sw),GOC_SW(y3_sw), \
GOC_SW(x4_sw),GOC_SW(y4_sw)

This GString creation macro draws a Bezier curve, using the current position as one endpoint. It takes six arugments, the coordinates of the remaining anchor and control points.

Include: gstring.h


Up: GEOS SDK TechDocs | Up | Prev: GrUDivWWFixed() ... | Next: GSDrawEllipse() ...