TouchVG framework
|
输出SVG文件的画布适配器类 更多...
#include <svgcanvas.h>
类 | |
struct | Impl |
Public 成员函数 | |
GiSvgCanvas () | |
virtual | ~GiSvgCanvas () |
bool | open (const char *filename, int width, int height) |
bool | close () |
Public 成员函数 继承自 GiCanvas | |
virtual | ~GiCanvas () |
virtual float | drawTextAt (GiTextWidthCallback *c, const char *text, float x, float y, float h, int align, float angle) |
virtual void | clearCachedBitmap (bool clearAll=false) |
Clear the cached bitmap for re-drawing on desktop PC. 更多... | |
Private 成员函数 | |
virtual void | setPen (int argb, float width, int style, float phase, float orgw) |
Set attributes of the current pen to stroke edges. 更多... | |
virtual void | setBrush (int argb, int style) |
Set attributes of the current brush to fill shapes. 更多... | |
virtual void | clearRect (float x, float y, float w, float h) |
Clear `rect' (that is, set the region within the rect to transparent). 更多... | |
virtual void | drawRect (float x, float y, float w, float h, bool stroke, bool fill) |
Fill or stroke `rect' (w>0, h>0) with the current color. 更多... | |
virtual void | drawLine (float x1, float y1, float x2, float y2) |
Stroke a line with the current color. 更多... | |
virtual void | drawEllipse (float x, float y, float w, float h, bool stroke, bool fill) |
Fill or stroke a ellipse with a corner and size (w>0, h>0). 更多... | |
virtual void | beginPath () |
Start a new path. 更多... | |
virtual void | moveTo (float x, float y) |
Ready to add a subpath to the current path at the start point. 更多... | |
virtual void | lineTo (float x, float y) |
Add a line segment to the current subpath. 更多... | |
virtual void | bezierTo (float c1x, float c1y, float c2x, float c2y, float x, float y) |
Add a cubic bezier segment to the current subpath. 更多... | |
virtual void | quadTo (float cpx, float cpy, float x, float y) |
Add a quadratic bezier segment to the current subpath. 更多... | |
virtual void | closePath () |
Close the current subpath of the path added by beginPath(). 更多... | |
virtual void | drawPath (bool stroke, bool fill) |
Draw and clear the current path added by beginPath(). 更多... | |
virtual void | saveClip () |
Save the current clipping path. 更多... | |
virtual void | restoreClip () |
Restore the current clipping path. 更多... | |
virtual bool | clipRect (float x, float y, float w, float h) |
Intersect the current clipping path with `rect'. 更多... | |
virtual bool | clipPath () |
Intersect the current clipping path with the path added by beginPath(). 更多... | |
virtual bool | drawHandle (float x, float y, int type, float angle) |
Draw a symbol (GiHandleTypes) whose center will at (x, y). 更多... | |
virtual bool | drawBitmap (const char *name, float xc, float yc, float w, float h, float angle) |
Draw a image whose center will at (xc, yc). 更多... | |
virtual float | drawTextAt (const char *text, float x, float y, float h, int align, float angle) |
Draw text in one line. 更多... | |
virtual bool | beginShape (int type, int sid, int version, float x, float y, float w, float h) |
Ready to draw a shape. 更多... | |
virtual void | endShape (int type, int sid, float x, float y) |
Complete to draw a shape. 更多... | |
Private 属性 | |
Impl * | im |
额外继承的成员函数 | |
Public 类型 继承自 GiCanvas | |
enum | { kLineDashMask = 0xFFF, kLineCapDefault = 0, kLineCapMask = 0x70000, kLineCapButt = 0x10000, kLineCapRound = 0x20000, kLineCapSquare = 0x40000, kAlignLeft = 0, kAlignCenter = 1, kAlignRight = 2, kAlignHorz = 0xF, kAlignTop = 0, kAlignBottom = 0x10, kAlignVCenter = 0x20, kAlignVert = 0xF0 } |
输出SVG文件的画布适配器类