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

GSDrawEllipse()

#define GSDrawEllipse(x1_w,y1_w,x2_w,y2_w) \
        GR_DRAW_ELLIPSE,GOC_SW(x1_w),GOC_SW(y1_w), \
GOC_SW(x2_w),GOC_SW(y2_w)

This GString creation macro draws an ellipse with bounds defined by the passed coordinates.

Include: gstring.h

GSDrawHLine()

#define GSDrawHLine(x1_w,y1_w,x2_w) \
        GR_DRAW_HLINE,GOC_SW(x1_w), \
GOC_SW(y1_w),GOC_SW(x2_w)

This GString creation macro draws a horizontal line. It takes three word-length arguments: the coordinates of the first endpoint and the x coordinate of the second endpoint.

Include: gstring.h

GSDrawHLineTo()

#define GSDrawHLineTo(x2_w) \
        GR_DRAW_HLINE_TO,GOC_SW(x2_w)

This GString creation macro draws a horizontal line from the current position to the passed x coordinate.

Include: gstring.h

GSDrawLine()

#define GSDrawLine(x1_w,y1_w,x2_w,y2_w) \
        GR_DRAW_LINE,GOC_SW(x1_w),GOC_SW(y1_w), \
GOC_SW(x2_w),GOC_SW(y2_w)

This GString creation macro draws a line between the two passed points. The points are defined in terms of their x and y coordinates, passed as word values.

Include: gstring.h

GSDrawLineTo()

#define GSDrawLineTo(x2_w,y2_w) \
        GR_DRAW_LINE_TO,GOC_SW(x2_w),GOC_SW(y2_w)

This GString creation macro draws a line from the current postion to the passed point. The endpoint of the line is passed via two words describing its x and y coordinates.

Include: gstring.h

GSDrawPath()

#define GSDrawPath() GR_DRAW_PATH
         

This GString creation macro draws the current path.

Include: gstring.h

GSDrawPoint()

#define GSDrawPoint(x1_w,y1_w) \
        GR_DRAW_POINT,GOC_SW(x1_w),GOC_SW(y1_w)

This GString creation macro draws a dot at the passed coordinates.

Include: gstring.h

GSDrawPointAtCP()

#define GSDrawPointAtCP() \
                GR_DRAW_POINT_CP

This GString creation macro draws a dot at the current drawing position.

Include: gstring.h

GSDrawPolygon()

#define GSDrawPolygon(count_w) \
        GR_DRAW_POLYGON,GOC_WORD(count_w)

This GString creation macro draws the outline of a polygon. It takes one argument, the number of points in the polygon. Follow the macro with the points of the polygon, each passed via a GOC_POINT macro.

Include: gstring.h

GSDrawPolyline()

#define GSDrawPolyline(count_w) \
        GR_DRAW_POLYLINE,GOC_WORD(count_w)

This GString creation macro draws a polyline--a spline with corners. The macro takes one argument: the number of points in the polyline. The point data should follow the macro, each point passed via a GOC_POINT macro.

Include: gstring.h

GSDrawRect()

#define GSDrawRect(x1_w,y1_w,x2_w,y2_w) \
        GR_DRAW_RECT,GOC_SW(x1_w),GOC_SW(y1_w), \
        GOC_SW(x2_w),GOC_SW(y2_w)

This GString creation macro draws a rectangle with bounds defined by the passed coordinates, each coordinate a word-length value.

Include: gstring.h

GSDrawRectTo()

#define GSDrawRectTo(x2_w,y2_w) \
        GR_DRAW_RECT_TO,GOC_SW(x2_w),GOC_SW(y2_w)

This GString creation macro draws a rectangle with one corner at the current position and the other corner at the point defined by the passed coordinates.

Include: gstring.h

GSDrawRelArc3PointTo()

#define GSDrawRelArc3PointTo(close, x2, y2, x3, y3) \
        GR_DRAW_REL_ARC_3POINT_TO,GOC_WORD(close), \
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 endpoint and the other points coordinates specified as offsets from the coordinates of the current position. In addition to these offsets, this macro has one more argument: an ArcCloseType .

Include: gstring.h

GSDrawRelCurveTo()

#define GSDrawRelCurveTo(x2_sw,y2_sw,x3_sw,y3_sw,x4_sw,y4_sw) \
        GR_DRAW_REL_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. It uses the current position as one endpoint of the curve; it takes six arguments: the coordinates of the other points of the curve expressed as offsets from the coordinates of the current position.

Include: gstring.h

GSDrawRoundRect()

#define GSDrawRoundRect(x1_w,y1_w,x2_w,y2_w,r_w) \
        GR_DRAW_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 rounded rectangle with bounds specified by its first four arguments and corner radius specified by its final argument. All arguments are word-length values except the radius, which is a word.

Include: gstring.h

GSDrawRoundRectTo()

#define GSDrawRoundRectTo(x2_w,y2_w,r_w) \
        GR_DRAW_ROUND_RECT_TO,GOC_WORD(r_w), \
GOC_SW(x2_w),GOC_SW(y2_w)

This GString creation macro draws a rounded rect with bounds defined by the coordinates of the current position and the coordinates of the passed point; the corner radius is specified by the macro's last argument.

Include: gstring.h


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