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

GSMoveTo()

#define GSMoveTo(x1_w,y1_w) \
        GR_MOVE_TO, GOC_SW(x1_w), GOC_SW(y1_w)

This GString creation macro updates the current position to the passed coordinates.

Include: gstring.h

GSNewPage()

#define GSNewPage(pageEndCommand) \
        GR_NEW_PAGE,(pageEndCommand)

This GString creation macro signals the end of a page. The pageEndCommand argument should be a PageEndCommand value.

Include: gstring.h

GSNullOp()

#define GSNullOp() 
        GR_NULL_OP

This GString creation macro inserts a null-operation element into the GString.

Include: gstring.h

GSRelMoveTo()

#define GSRelMoveTo(x1_wwf,y1_wwf) \
        GR_REL_MOVE_TO, GOC_WWF(x1_wwf),GOC_WWF(y1_wwf)

This GString creation macro updates the current position to a set of coordinates specified as offsets from those of the old current position.

Include: gstring.h

GSRestoreState()

#define GSRestoreState() \
        GR_RESTORE_STATE

This GString creation macro causes a GState saved by GSSaveState() to be restored.

Include: gstring.h

GSRestoreTransform()

#define GSRestoreTransform() \
        GR_RESTORE_TRANSFORM

This GString creation macro restores a transformation matrix previously saved via GSSaveTransform() .

Include: gstring.h

GSSaveState()

#define GSSaveState()\
        GR_SAVE_STATE

This GString creation macro causes the GState to be saved so that it may be restored by a subsequent GSRestoreState() .

Include: gstring.h

GSSaveTransform()

#define GSSaveTransform() \
        GR_SAVE_TRANSFORM

This GString creation macro saves the current tranformation matrix which may be retrieved by means of a GSRestoreTransform() .

Include: gstring.h

GSSetAreaAttr()

#define GSSetAreaAttr(r,g,b,mode,mask) \
                GR_SET_AREA_ATTR,(CF_RGB),(r),(g),(b),(mask),(mode)

This GString creation macro sets the AreaAttr value to use when filling areas. It takes several arguments: the red, green, and blue components of the color; the ColorMapMode to use when trying to draw in an unavailable color, and the mask to use.

Include: gstring.h

GSSetAreaColor()

#define GSSetAreaColor(r,g,b) GR_SET_AREA_COLOR,(r),(g),(b)

This GString creation macro specifies a new area-filling color in terms of its red, green, and blue components.

Include: gstring.h

GSSetAreaColorIndex()

#define GSSetAreaColorIndex(index) GR_SET_AREA_COLOR_INDEX,(index)

This GString creation macro specifies the new area-filling color by means of its index in the palette.

Include: gstring.h

GSSetAreaColorMap()

#define GSSetAreaColorMap(mode) GR_SET_AREA_COLOR_MAP,(mode)

This GString creation macro sets the ColorMapMode to use when trying to fill an area using an unavailable color.

Include: gstring.h

GSSetAreaMask()

#define GSSetAreaMask(index) GR_SET_AREA_MASK, (index)

This GString creation macro sets the mask to use when filling areas.

Include: gstring.h

GSSetAreaPattern()

#define GSSetAreaPattern(pattern) \
        GR_SET_AREA_PATTERN,GOC_PATTERN(pattern)

This GString creation macro sets the GraphicPattern to use when filling areas.

Include: gstring.h

GSSetClipPath()

#define GSSetClipPath(flags) GR_SET_CLIP_PATH,(flags)

This GString creation macro combines the current path with the clipping path using the passed PathCombineType .

Include: gstring.h

GSSetClipRect()

#define GSSetClipRect(path,rl_sw,rt_sw,rr_sw,rb_sw) \
        GR_SET_CLIP_RECT,GOC_SW(rl_sw), \
GOC_SW(rt_sw),GOC_SW(rr_sw),GOC_SW(rb_sw)

This GString creation macro sets a clipping rectangle. It takes five arguments: a PathCombineType and the bounding coordinates of the rectangle.

Include: gstring.h

GSSetCustomAreaMask()

#define GSSetCustomAreaMask(m1,m2,m3,m4,m5,m6,m7,m8) \
        GR_SET_CUSTOM_AREA_MASK, (m1), (m2), (m3), (m4), (m5), (m6), (m7),
(m8)

This GString creation macro specifies a custom bitmask to use when filling areas. It takes eight arguments, each a byte representing the pixels of one row.

Include: gstring.h

GSSetCustomAreaPattern()

#define GSSetCustomAreaPattern(pattern,size) \
        GR_SET_CUSTOM_AREA_PATTERN, GOC_PATTERN(pattern),GOC_WORD(size)

This GString creation macro sets up a custom pattern to use when filling areas. It takes two arguments: a GraphicPattern value and the size of the pattern's data. Following this macro should appear the pattern's data.

Include: gstring.h


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