Updating built in Io code to use += instead of x = x + y
[io/quag.git] / addons / Cairo / source / IoCairoContext.h
blob616ce6069607fded7744d2382c6de1c2f8fa5670
1 /*
2 docCopyright("Trevor Fancher", 2007)
3 docCopyright("Daniel Rosengren", 2007)
4 */
6 #ifndef IOCAIROCONTEXT_DEFINED
7 #define IOCAIROCONTEXT_DEFINED 1
9 #include "IoObject.h"
10 #include "IoCairoImageSurface.h"
11 #include <cairo.h>
13 #define ISCAIROCONTEXT(self) IoObject_hasCloneFunc_(self, (IoTagCloneFunc *)IoCairoContext_rawClone)
15 typedef IoObject IoCairoContext;
17 IoCairoContext *IoCairoContext_proto(void *state);
18 IoCairoContext *IoCairoContext_rawClone(IoCairoContext *self);
19 IoCairoContext *IoCairoContext_newWithSurface_(void *state, IoCairoImageSurface *surface);
20 void IoCairoContext_free(IoCairoContext *self);
22 cairo_t *IoCairoContext_rawContext(IoCairoContext *self);
24 /* ------------------------------------------------------------------------------------------------*/
26 IoObject *IoCairoContext_create(IoCairoContext *self, IoObject *locals, IoMessage *m);
28 IoObject *IoCairoContext_save(IoCairoContext *self, IoObject *locals, IoMessage *m);
29 IoObject *IoCairoContext_restore(IoCairoContext *self, IoObject *locals, IoMessage *m);
31 IoObject *IoCairoContext_getTarget(IoCairoContext *self, IoObject *locals, IoMessage *m);
33 /* ------------------------------------------------------------------------------------------------*/
34 /* Source */
36 IoObject *IoCairoContext_setSource(IoCairoContext *self, IoObject *locals, IoMessage *m);
37 IoObject *IoCairoContext_setSourceRGB(IoCairoContext *self, IoObject *locals, IoMessage *m);
38 IoObject *IoCairoContext_setSourceRGBA(IoCairoContext *self, IoObject *locals, IoMessage *m);
39 IoObject *IoCairoContext_setSourceSurface(IoCairoContext *self, IoObject *locals, IoMessage *m);
40 IoObject *IoCairoContext_getSource(IoCairoContext *self, IoObject *locals, IoMessage *m);
42 /* ------------------------------------------------------------------------------------------------*/
43 /* Groups */
45 IoObject *IoCairoContext_pushGroup(IoCairoContext *self, IoObject *locals, IoMessage *m);
46 IoObject *IoCairoContext_pushGroupWithContent(IoCairoContext *self, IoObject *locals, IoMessage *m);
47 IoObject *IoCairoContext_popGroup(IoCairoContext *self, IoObject *locals, IoMessage *m);
48 IoObject *IoCairoContext_popGroupToSource(IoCairoContext *self, IoObject *locals, IoMessage *m);
49 IoObject *IoCairoContext_getGroupTarget(IoCairoContext *self, IoObject *locals, IoMessage *m);
51 /* ------------------------------------------------------------------------------------------------*/
52 /* Options/Properties */
54 IoObject *IoCairoContext_setAntialias(IoCairoContext *self, IoObject *locals, IoMessage *m);
55 IoObject *IoCairoContext_getAntialias(IoCairoContext *self, IoObject *locals, IoMessage *m);
57 IoObject *IoCairoContext_setDash(IoCairoContext *self, IoObject *locals, IoMessage *m);
58 IoObject *IoCairoContext_getDash(IoCairoContext *self, IoObject *locals, IoMessage *m);
59 IoObject *IoCairoContext_getDashCount(IoCairoContext *self, IoObject *locals, IoMessage *m);
61 IoObject *IoCairoContext_setFillRule(IoCairoContext *self, IoObject *locals, IoMessage *m);
62 IoObject *IoCairoContext_getFillRule(IoCairoContext *self, IoObject *locals, IoMessage *m);
64 IoObject *IoCairoContext_setLineCap(IoCairoContext *self, IoObject *locals, IoMessage *m);
65 IoObject *IoCairoContext_getLineCap(IoCairoContext *self, IoObject *locals, IoMessage *m);
67 IoObject *IoCairoContext_setLineJoin(IoCairoContext *self, IoObject *locals, IoMessage *m);
68 IoObject *IoCairoContext_getLineJoin(IoCairoContext *self, IoObject *locals, IoMessage *m);
70 IoObject *IoCairoContext_setMiterLimit(IoCairoContext *self, IoObject *locals, IoMessage *m);
71 IoObject *IoCairoContext_getMiterLimit(IoCairoContext *self, IoObject *locals, IoMessage *m);
73 IoObject *IoCairoContext_setOperator(IoCairoContext *self, IoObject *locals, IoMessage *m);
74 IoObject *IoCairoContext_getOperator(IoCairoContext *self, IoObject *locals, IoMessage *m);
76 IoObject *IoCairoContext_setTolerance(IoCairoContext *self, IoObject *locals, IoMessage *m);
77 IoObject *IoCairoContext_getTolerance(IoCairoContext *self, IoObject *locals, IoMessage *m);
79 IoObject *IoCairoContext_setLineWidth(IoCairoContext *self, IoObject *locals, IoMessage *m);
80 IoObject *IoCairoContext_getLineWidth(IoCairoContext *self, IoObject *locals, IoMessage *m);
82 /* ------------------------------------------------------------------------------------------------*/
83 /* Paths */
85 IoObject *IoCairoContext_newPath(IoCairoContext *self, IoObject *locals, IoMessage *m);
86 IoObject *IoCairoContext_newSubPath(IoCairoContext *self, IoObject *locals, IoMessage *m);
87 IoObject *IoCairoContext_closePath(IoCairoContext *self, IoObject *locals, IoMessage *m);
89 IoObject *IoCairoContext_appendPath(IoCairoContext *self, IoObject *locals, IoMessage *m);
90 IoObject *IoCairoContext_copyPath(IoCairoContext *self, IoObject *locals, IoMessage *m);
91 IoObject *IoCairoContext_copyPathFlat(IoCairoContext *self, IoObject *locals, IoMessage *m);
92 IoObject *IoCairoContext_getCurrentPoint(IoCairoContext *self, IoObject *locals, IoMessage *m);
94 IoObject *IoCairoContext_moveTo(IoCairoContext *self, IoObject *locals, IoMessage *m);
95 IoObject *IoCairoContext_lineTo(IoCairoContext *self, IoObject *locals, IoMessage *m);
96 IoObject *IoCairoContext_curveTo(IoCairoContext *self, IoObject *locals, IoMessage *m);
97 IoObject *IoCairoContext_relMoveTo(IoCairoContext *self, IoObject *locals, IoMessage *m);
98 IoObject *IoCairoContext_relLineTo(IoCairoContext *self, IoObject *locals, IoMessage *m);
99 IoObject *IoCairoContext_relCurveTo(IoCairoContext *self, IoObject *locals, IoMessage *m);
101 IoObject *IoCairoContext_arc(IoCairoContext *self, IoObject *locals, IoMessage *m);
102 IoObject *IoCairoContext_arcNegative(IoCairoContext *self, IoObject *locals, IoMessage *m);
103 IoObject *IoCairoContext_rectangle(IoCairoContext *self, IoObject *locals, IoMessage *m);
104 IoObject *IoCairoContext_textPath(IoCairoContext *self, IoObject *locals, IoMessage *m);
105 IoObject *IoCairoContext_glyphPath(IoCairoContext *self, IoObject *locals, IoMessage *m);
107 /* ------------------------------------------------------------------------------------------------*/
108 /* Clipping */
110 IoObject *IoCairoContext_clip(IoCairoContext *self, IoObject *locals, IoMessage *m);
111 IoObject *IoCairoContext_clipPreserve(IoCairoContext *self, IoObject *locals, IoMessage *m);
112 IoObject *IoCairoContext_clipExtents(IoCairoContext *self, IoObject *locals, IoMessage *m);
113 IoObject *IoCairoContext_resetClip(IoCairoContext *self, IoObject *locals, IoMessage *m);
114 IoObject *IoCairoContext_copyClipRectangleList(IoCairoContext *self, IoObject *locals, IoMessage *m);
116 /* ------------------------------------------------------------------------------------------------*/
117 /* Drawing */
119 IoObject *IoCairoContext_fill(IoCairoContext *self, IoObject *locals, IoMessage *m);
120 IoObject *IoCairoContext_fillPreserve(IoCairoContext *self, IoObject *locals, IoMessage *m);
121 IoObject *IoCairoContext_fillExtents(IoCairoContext *self, IoObject *locals, IoMessage *m);
122 IoObject *IoCairoContext_inFill(IoCairoContext *self, IoObject *locals, IoMessage *m);
125 IoObject *IoCairoContext_stroke(IoCairoContext *self, IoObject *locals, IoMessage *m);
126 IoObject *IoCairoContext_strokePreserve(IoCairoContext *self, IoObject *locals, IoMessage *m);
127 IoObject *IoCairoContext_strokeExtents(IoCairoContext *self, IoObject *locals, IoMessage *m);
128 IoObject *IoCairoContext_inStroke(IoCairoContext *self, IoObject *locals, IoMessage *m);
130 IoObject *IoCairoContext_mask(IoCairoContext *self, IoObject *locals, IoMessage *m);
131 IoObject *IoCairoContext_maskSurface(IoCairoContext *self, IoObject *locals, IoMessage *m);
133 IoObject *IoCairoContext_paint(IoCairoContext *self, IoObject *locals, IoMessage *m);
134 IoObject *IoCairoContext_paintWithAlpha(IoCairoContext *self, IoObject *locals, IoMessage *m);
136 /* ------------------------------------------------------------------------------------------------*/
137 /* Transformations */
139 IoObject *IoCairoContext_translate(IoCairoContext *self, IoObject *locals, IoMessage *m);
140 IoObject *IoCairoContext_scale(IoCairoContext *self, IoObject *locals, IoMessage *m);
141 IoObject *IoCairoContext_rotate(IoCairoContext *self, IoObject *locals, IoMessage *m);
142 IoObject *IoCairoContext_transform(IoCairoContext *self, IoObject *locals, IoMessage *m);
143 IoObject *IoCairoContext_setMatrix(IoCairoContext *self, IoObject *locals, IoMessage *m);
144 IoObject *IoCairoContext_getMatrix(IoCairoContext *self, IoObject *locals, IoMessage *m);
145 IoObject *IoCairoContext_identityMatrix(IoCairoContext *self, IoObject *locals, IoMessage *m);
147 IoObject *IoCairoContext_userToDevice(IoCairoContext *self, IoObject *locals, IoMessage *m);
148 IoObject *IoCairoContext_userToDeviceDistance(IoCairoContext *self, IoObject *locals, IoMessage *m);
149 IoObject *IoCairoContext_deviceToUser(IoCairoContext *self, IoObject *locals, IoMessage *m);
150 IoObject *IoCairoContext_deviceToUserDistance(IoCairoContext *self, IoObject *locals, IoMessage *m);
152 /* ------------------------------------------------------------------------------------------------*/
153 /* Text */
155 IoObject *IoCairoContext_selectFontFace(IoCairoContext *self, IoObject *locals, IoMessage *m);
156 IoObject *IoCairoContext_setFontSize(IoCairoContext *self, IoObject *locals, IoMessage *m);
157 IoObject *IoCairoContext_fontExtents(IoCairoContext *self, IoObject *locals, IoMessage *m);
158 IoObject *IoCairoContext_textExtents(IoCairoContext *self, IoObject *locals, IoMessage *m);
159 IoObject *IoCairoContext_glyphExtents(IoCairoContext *self, IoObject *locals, IoMessage *m);
160 IoObject *IoCairoContext_showText(IoCairoContext *self, IoObject *locals, IoMessage *m);
161 IoObject *IoCairoContext_showGlyphs(IoCairoContext *self, IoObject *locals, IoMessage *m);
163 IoObject *IoCairoContext_setFontOptions(IoCairoContext *self, IoObject *locals, IoMessage *m);
164 IoObject *IoCairoContext_getFontOptions(IoCairoContext *self, IoObject *locals, IoMessage *m);
166 IoObject *IoCairoContext_setFontFace(IoCairoContext *self, IoObject *locals, IoMessage *m);
167 IoObject *IoCairoContext_getFontFace(IoCairoContext *self, IoObject *locals, IoMessage *m);
169 IoObject *IoCairoContext_setScaledFont(IoCairoContext *self, IoObject *locals, IoMessage *m);
170 IoObject *IoCairoContext_getScaledFont(IoCairoContext *self, IoObject *locals, IoMessage *m);
172 /* ------------------------------------------------------------------------------------------------*/
173 /* Pages */
175 IoObject *IoCairoContext_copyPage(IoCairoContext *self, IoObject *locals, IoMessage *m);
176 IoObject *IoCairoContext_showPage(IoCairoContext *self, IoObject *locals, IoMessage *m);
178 #endif