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

GSDrawSpline()

#define GSDrawSpline(count_w) \
        GR_DRAW_SPLINE,GOC_WORD(count_w)

This GString creation macro draws a spline. It takes one argument, the number of points in the spline. Follow this macro with the list of points for the spline; each point should be defined by means of a GOC_POINT macro.

Include: gstring.h

GSDrawSplineTo()

#define GSDrawSplineTo(count_w) \
                GR_DRAW_SPLINE_TO,GOC_WORD(count_w)

This GString creation macro draws a spline using the current postion as one endpoint. It takes one argument, the number of points in the spline. Follow this macro with the list of points for the spline; each point should be defined by means of a GOC_POINT macro.

Include: gstring.h

GSDrawText()

#define GSDrawText(x1_w,y1_w) \
        GR_DRAW_TEXT,GOC_SW(x1_w),GOC_SW(y1_w)

This GString creation macro draws a string of text. Follow the macro with the string of text like so:

GSDrawText(10,10),"foo", 

Include: gstring.h

GSDrawTextAtCP()

#define GSDrawTextAtCP() GR_DRAW_TEXT_CP

This GString creation macro draws a string of text at the current position. Follow the macro with the text to draw like so:

GSDrawTextAtCP(),"bar",

Include: gstring.h

GSDrawTextOptr()

#define GSDrawTextOptr(x_w,y_w,o_ptr) \
        GR_DRAW_TEXT_OPTR, GOC_SW(x_w), \
GOC_SW(y_w),GOC_OPTR(o_ptr)

This GString creation macro draws a string of text. It takes three arguments: the x and y coordinates at which to start drawing the text and an optr to the chunk in which the text is stored.

Include: gstring.h

GSDrawVLine()

#define GSDrawVLine(x1_w,y1_w,y2_w) \
        GR_DRAW_VLINE,GOC_SW(x1_w), \
GOC_SW(y1_w),GOC_SW(y2_w)

This GString creation macro draws a vertical line. It takes three arguments: the coordinates of the first endpoint and the y coordinate of the second endpoint.

Include: gstring.h

GSDrawVLineTo()

#define GSDrawVLineTo(y2_w) \
        GR_DRAW_VLINE_TO,GOC_SW(y2_w)

This GString creation macro draws a vertical line from the current position to the passed y coordinate.

Include: gstring.h

GSEndPath()

#define GSEndPath()                             GR_END_PATH

This GString creation macro signals the end of path-defining commands; from here on, drawing commands will draw instead of specifying path strokes.

Include: gstring.h

GSEndString()

#define GSEndString() \
        GR_END_GSTRING

This GString definition macro marks the end of a graphics string.

Include: gstring.h

GSEscape()

#define GSEscape(esc_w,size_w) \
        GR_ESCAPE,GOC_WORD(esc_w),GOC_WORD(size_w)

This GString creation macro inserts an escape code into the GString. The macro's first argument is a word-length escape code. The second argument is the size of any additional escape code data which follows, in bytes. Following this macro, you may place any amount of additional data to associate with the escape code.

Include: gstring.h

GSFillArc()

#define GSFillArc(close_enum,x1_w,y1_w,x2_w,y2_w,ang1_w,ang2_w) \
        GR_FILL_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 a filled arc. It takes several arguments: an ArcCloseType value, the bounding coordinates of the arc's base ellipse, and the arc's starting and ending angles.

Include: gstring.h

GSFillArc3Point()

#define GSFillArc3Point(close, x1, y1, x2, y2, x3, y3) \
        GR_FILL_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 fills a three-point arc. It takes several arguments: an ArcCloseType and the coordinates of the points defining the arc.

Include: gstring.h

GSFillArc3PointTo()

#define GSFillArc3PointTo(close, x2, y2, x3, y3) \
        GR_FILL_ARC_3POINT_TO,GOC_WORD(close), \
GOC_WWF(x2), GOC_WWF(y2), GOC_WWF(x3), GOC_WWF(y3)

This GString creation macro fills a three-point arc. The current position acts as one of the arc's endpoints, with the macro's arguments specifying the coordinates of the other points. The macro has one other argument: an ArcCloseType .

Include: gstring.h


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