author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 10 Sep 2008 17:20:21 +0000 | |
changeset 7 | 392289f92fab |
parent 6 | c1f387b40e3a |
child 8 | ccb6c1e6201e |
permissions | -rw-r--r-- |
1 | 1 |
"{ Package: 'stx:goodies/libcairo' }" |
2 |
||
3 |
"{ NameSpace: Cairo }" |
|
4 |
||
6
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
5 |
RefCountedStructure subclass:#GraphicsContext |
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
6 |
instanceVariableNames:'surface' |
1 | 7 |
classVariableNames:'' |
8 |
poolDictionaries:'' |
|
6
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
9 |
category:'Cairo - Objects' |
1 | 10 |
! |
11 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
12 |
|
1 | 13 |
!GraphicsContext class methodsFor:'instance creation'! |
14 |
||
15 |
on: surface |
|
16 |
||
6
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
17 |
| cr | |
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
18 |
|
1 | 19 |
self |
20 |
assert: (surface isKindOf: Surface) |
|
21 |
message: 'surface is not valid Cairo surface'. |
|
22 |
||
6
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
23 |
cr := self primCreate: surface. |
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
24 |
cr setSurface: surface. |
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
25 |
^cr |
1 | 26 |
|
27 |
"Created: / 10-07-2008 / 09:37:57 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
28 |
"Modified: / 10-09-2008 / 19:03:15 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 29 |
! ! |
30 |
||
31 |
!GraphicsContext class methodsFor:'accessing'! |
|
32 |
||
33 |
libraryName |
|
34 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
35 |
OperatingSystem isUNIXlike ifTrue:[^'libcairo.so.2']. |
1 | 36 |
|
37 |
OperatingSystem isMSWINDOWSlike ifTrue:[^'cairo.dll']. |
|
38 |
||
39 |
self error:'Library name for host OS is not known' |
|
40 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
41 |
"Modified: / 10-09-2008 / 18:19:53 / Jan Vrany <vranyj1@fel.cvut.cz>" |
6
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
42 |
! |
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
43 |
|
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
44 |
structSize |
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
45 |
|
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
46 |
^0 |
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
47 |
|
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
48 |
"Modified: / 10-09-2008 / 18:19:53 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 49 |
! ! |
50 |
||
51 |
!GraphicsContext class methodsFor:'primitives'! |
|
52 |
||
53 |
primAppendPath: cr path: path |
|
54 |
||
55 |
<cdecl: void "cairo_append_path" ( Cairo::GraphicsContext Cairo::Path ) > |
|
56 |
self primitiveFailed |
|
57 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
58 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 59 |
! |
60 |
||
61 |
primArc: cr xc: xc yc: yc radius: radius angle1: angle1 angle2: angle2 |
|
62 |
||
63 |
<cdecl: void "cairo_arc" ( Cairo::GraphicsContext double double double double double ) > |
|
64 |
self primitiveFailed |
|
65 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
66 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 67 |
! |
68 |
||
69 |
primArcNegative: cr xc: xc yc: yc radius: radius angle1: angle1 angle2: angle2 |
|
70 |
||
71 |
<cdecl: void "cairo_arc_negative" ( Cairo::GraphicsContext double double double double double ) > |
|
72 |
self primitiveFailed |
|
73 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
74 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 75 |
! |
76 |
||
77 |
primClip: cr |
|
78 |
||
79 |
<cdecl: void "cairo_clip" ( Cairo::GraphicsContext ) > |
|
80 |
self primitiveFailed |
|
81 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
82 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 83 |
! |
84 |
||
85 |
primClipExtents: cr x1: x1 y1: y1 x2: x2 y2: y2 |
|
86 |
||
87 |
<cdecl: void "cairo_clip_extents" ( Cairo::GraphicsContext pointer pointer pointer pointer ) > |
|
88 |
self primitiveFailed |
|
89 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
90 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 91 |
! |
92 |
||
93 |
primClipPreserve: cr |
|
94 |
||
95 |
<cdecl: void "cairo_clip_preserve" ( Cairo::GraphicsContext ) > |
|
96 |
self primitiveFailed |
|
97 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
98 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 99 |
! |
100 |
||
101 |
primClosePath: cr |
|
102 |
||
103 |
<cdecl: void "cairo_close_path" ( Cairo::GraphicsContext ) > |
|
104 |
self primitiveFailed |
|
105 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
106 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 107 |
! |
108 |
||
109 |
primCopyClipRectangleList: cr |
|
110 |
||
111 |
<cdecl: Cairo::RectangleList "cairo_copy_clip_rectangle_list" ( Cairo::GraphicsContext ) > |
|
112 |
self primitiveFailed |
|
113 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
114 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 115 |
! |
116 |
||
117 |
primCopyPage: cr |
|
118 |
||
119 |
<cdecl: void "cairo_copy_page" ( Cairo::GraphicsContext ) > |
|
120 |
self primitiveFailed |
|
121 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
122 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 123 |
! |
124 |
||
125 |
primCopyPath: cr |
|
126 |
||
127 |
<cdecl: Cairo::Path "cairo_copy_path" ( Cairo::GraphicsContext ) > |
|
128 |
self primitiveFailed |
|
129 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
130 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 131 |
! |
132 |
||
133 |
primCopyPathFlat: cr |
|
134 |
||
135 |
<cdecl: Cairo::Path "cairo_copy_path_flat" ( Cairo::GraphicsContext ) > |
|
136 |
self primitiveFailed |
|
137 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
138 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 139 |
! |
140 |
||
141 |
primCreate: target |
|
142 |
||
143 |
<cdecl: Cairo::GraphicsContext "cairo_create" ( Cairo::Surface ) > |
|
144 |
self primitiveFailed |
|
145 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
146 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 147 |
! |
148 |
||
149 |
primCurveTo: cr x1: x1 y1: y1 x2: x2 y2: y2 x3: x3 y3: y3 |
|
150 |
||
151 |
<cdecl: void "cairo_curve_to" ( Cairo::GraphicsContext double double double double double double ) > |
|
152 |
self primitiveFailed |
|
153 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
154 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 155 |
! |
156 |
||
157 |
primDestroy: cr |
|
158 |
||
159 |
<cdecl: void "cairo_destroy" ( Cairo::GraphicsContext ) > |
|
160 |
self primitiveFailed |
|
161 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
162 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 163 |
! |
164 |
||
165 |
primDeviceToUser: cr x: x y: y |
|
166 |
||
167 |
<cdecl: void "cairo_device_to_user" ( Cairo::GraphicsContext pointer pointer ) > |
|
168 |
self primitiveFailed |
|
169 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
170 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 171 |
! |
172 |
||
173 |
primDeviceToUserDistance: cr dx: dx dy: dy |
|
174 |
||
175 |
<cdecl: void "cairo_device_to_user_distance" ( Cairo::GraphicsContext pointer pointer ) > |
|
176 |
self primitiveFailed |
|
177 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
178 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 179 |
! |
180 |
||
181 |
primFill: cr |
|
182 |
||
183 |
<cdecl: void "cairo_fill" ( Cairo::GraphicsContext ) > |
|
184 |
self primitiveFailed |
|
185 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
186 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 187 |
! |
188 |
||
189 |
primFillExtents: cr x1: x1 y1: y1 x2: x2 y2: y2 |
|
190 |
||
191 |
<cdecl: void "cairo_fill_extents" ( Cairo::GraphicsContext pointer pointer pointer pointer ) > |
|
192 |
self primitiveFailed |
|
193 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
194 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 195 |
! |
196 |
||
197 |
primFillPreserve: cr |
|
198 |
||
199 |
<cdecl: void "cairo_fill_preserve" ( Cairo::GraphicsContext ) > |
|
200 |
self primitiveFailed |
|
201 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
202 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 203 |
! |
204 |
||
205 |
primFontExtents: cr extents: extents |
|
206 |
||
207 |
<cdecl: void "cairo_font_extents" ( Cairo::GraphicsContext Cairo::FontExtents ) > |
|
208 |
self primitiveFailed |
|
209 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
210 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 211 |
! |
212 |
||
213 |
primGetAntialias: cr |
|
214 |
||
215 |
<cdecl: int32 "cairo_get_antialias" ( Cairo::GraphicsContext ) > |
|
216 |
self primitiveFailed |
|
217 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
218 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 219 |
! |
220 |
||
221 |
primGetCurrentPoint: cr x: x y: y |
|
222 |
||
223 |
<cdecl: void "cairo_get_current_point" ( Cairo::GraphicsContext pointer pointer ) > |
|
224 |
self primitiveFailed |
|
225 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
226 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 227 |
! |
228 |
||
229 |
primGetDash: cr dashes: dashes offset: offset |
|
230 |
||
231 |
<cdecl: void "cairo_get_dash" ( Cairo::GraphicsContext pointer pointer ) > |
|
232 |
self primitiveFailed |
|
233 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
234 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 235 |
! |
236 |
||
237 |
primGetDashCount: cr |
|
238 |
||
239 |
<cdecl: int32 "cairo_get_dash_count" ( Cairo::GraphicsContext ) > |
|
240 |
self primitiveFailed |
|
241 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
242 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 243 |
! |
244 |
||
245 |
primGetFillRule: cr |
|
246 |
||
247 |
<cdecl: int32 "cairo_get_fill_rule" ( Cairo::GraphicsContext ) > |
|
248 |
self primitiveFailed |
|
249 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
250 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 251 |
! |
252 |
||
253 |
primGetFontFace: cr |
|
254 |
||
255 |
<cdecl: Cairo::FontFace "cairo_get_font_face" ( Cairo::GraphicsContext ) > |
|
256 |
self primitiveFailed |
|
257 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
258 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 259 |
! |
260 |
||
261 |
primGetFontMatrix: cr matrix: matrix |
|
262 |
||
263 |
<cdecl: void "cairo_get_font_matrix" ( Cairo::GraphicsContext Cairo::Matrix ) > |
|
264 |
self primitiveFailed |
|
265 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
266 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 267 |
! |
268 |
||
269 |
primGetFontOptions: cr options: options |
|
270 |
||
271 |
<cdecl: void "cairo_get_font_options" ( Cairo::GraphicsContext Cairo::FontOptions ) > |
|
272 |
self primitiveFailed |
|
273 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
274 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 275 |
! |
276 |
||
277 |
primGetGroupTarget: cr |
|
278 |
||
279 |
<cdecl: Cairo::Surface "cairo_get_group_target" ( Cairo::GraphicsContext ) > |
|
280 |
self primitiveFailed |
|
281 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
282 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 283 |
! |
284 |
||
285 |
primGetLineCap: cr |
|
286 |
||
287 |
<cdecl: int32 "cairo_get_line_cap" ( Cairo::GraphicsContext ) > |
|
288 |
self primitiveFailed |
|
289 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
290 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 291 |
! |
292 |
||
293 |
primGetLineJoin: cr |
|
294 |
||
295 |
<cdecl: int32 "cairo_get_line_join" ( Cairo::GraphicsContext ) > |
|
296 |
self primitiveFailed |
|
297 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
298 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 299 |
! |
300 |
||
301 |
primGetLineWidth: cr |
|
302 |
||
303 |
<cdecl: double "cairo_get_line_width" ( Cairo::GraphicsContext ) > |
|
304 |
self primitiveFailed |
|
305 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
306 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 307 |
! |
308 |
||
309 |
primGetMatrix: cr matrix: matrix |
|
310 |
||
311 |
<cdecl: void "cairo_get_matrix" ( Cairo::GraphicsContext Cairo::Matrix ) > |
|
312 |
self primitiveFailed |
|
313 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
314 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 315 |
! |
316 |
||
317 |
primGetMiterLimit: cr |
|
318 |
||
319 |
<cdecl: double "cairo_get_miter_limit" ( Cairo::GraphicsContext ) > |
|
320 |
self primitiveFailed |
|
321 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
322 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 323 |
! |
324 |
||
325 |
primGetOperator: cr |
|
326 |
||
327 |
<cdecl: int32 "cairo_get_operator" ( Cairo::GraphicsContext ) > |
|
328 |
self primitiveFailed |
|
329 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
330 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 331 |
! |
332 |
||
333 |
primGetReferenceCount: cr |
|
334 |
||
335 |
<cdecl: uint32 "cairo_get_reference_count" ( Cairo::GraphicsContext ) > |
|
336 |
self primitiveFailed |
|
337 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
338 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 339 |
! |
340 |
||
341 |
primGetScaledFont: cr |
|
342 |
||
343 |
<cdecl: Cairo::ScaledFont "cairo_get_scaled_font" ( Cairo::GraphicsContext ) > |
|
344 |
self primitiveFailed |
|
345 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
346 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 347 |
! |
348 |
||
349 |
primGetSource: cr |
|
350 |
||
351 |
<cdecl: Cairo::Pattern "cairo_get_source" ( Cairo::GraphicsContext ) > |
|
352 |
self primitiveFailed |
|
353 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
354 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 355 |
! |
356 |
||
357 |
primGetTarget: cr |
|
358 |
||
359 |
<cdecl: Cairo::Surface "cairo_get_target" ( Cairo::GraphicsContext ) > |
|
360 |
self primitiveFailed |
|
361 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
362 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 363 |
! |
364 |
||
365 |
primGetTolerance: cr |
|
366 |
||
367 |
<cdecl: double "cairo_get_tolerance" ( Cairo::GraphicsContext ) > |
|
368 |
self primitiveFailed |
|
369 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
370 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 371 |
! |
372 |
||
373 |
primGetUserData: cr key: key |
|
374 |
||
375 |
<cdecl: pointer "cairo_get_user_data" ( Cairo::GraphicsContext Cairo::UserDataKey ) > |
|
376 |
self primitiveFailed |
|
377 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
378 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 379 |
! |
380 |
||
381 |
primGlyphExtents: cr glyphs: glyphs numGlyphs: num_glyphs extents: extents |
|
382 |
||
383 |
<cdecl: void "cairo_glyph_extents" ( Cairo::GraphicsContext Cairo::Glyph int32 Cairo::TextExtents ) > |
|
384 |
self primitiveFailed |
|
385 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
386 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 387 |
! |
388 |
||
389 |
primGlyphPath: cr glyphs: glyphs numGlyphs: num_glyphs |
|
390 |
||
391 |
<cdecl: void "cairo_glyph_path" ( Cairo::GraphicsContext Cairo::Glyph int32 ) > |
|
392 |
self primitiveFailed |
|
393 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
394 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 395 |
! |
396 |
||
397 |
primHasCurrentPoint: cr |
|
398 |
||
399 |
<cdecl: int32 "cairo_has_current_point" ( Cairo::GraphicsContext ) > |
|
400 |
self primitiveFailed |
|
401 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
402 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 403 |
! |
404 |
||
405 |
primIdentityMatrix: cr |
|
406 |
||
407 |
<cdecl: void "cairo_identity_matrix" ( Cairo::GraphicsContext ) > |
|
408 |
self primitiveFailed |
|
409 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
410 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 411 |
! |
412 |
||
413 |
primInFill: cr x: x y: y |
|
414 |
||
415 |
<cdecl: int32 "cairo_in_fill" ( Cairo::GraphicsContext double double ) > |
|
416 |
self primitiveFailed |
|
417 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
418 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 419 |
! |
420 |
||
421 |
primInStroke: cr x: x y: y |
|
422 |
||
423 |
<cdecl: int32 "cairo_in_stroke" ( Cairo::GraphicsContext double double ) > |
|
424 |
self primitiveFailed |
|
425 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
426 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 427 |
! |
428 |
||
429 |
primLineTo: cr x: x y: y |
|
430 |
||
431 |
<cdecl: void "cairo_line_to" ( Cairo::GraphicsContext double double ) > |
|
432 |
self primitiveFailed |
|
433 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
434 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 435 |
! |
436 |
||
437 |
primMask: cr pattern: pattern |
|
438 |
||
439 |
<cdecl: void "cairo_mask" ( Cairo::GraphicsContext Cairo::Pattern ) > |
|
440 |
self primitiveFailed |
|
441 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
442 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 443 |
! |
444 |
||
445 |
primMaskSurface: cr surface: surface surfaceX: surface_x surfaceY: surface_y |
|
446 |
||
447 |
<cdecl: void "cairo_mask_surface" ( Cairo::GraphicsContext Cairo::Surface double double ) > |
|
448 |
self primitiveFailed |
|
449 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
450 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 451 |
! |
452 |
||
453 |
primMoveTo: cr x: x y: y |
|
454 |
||
455 |
<cdecl: void "cairo_move_to" ( Cairo::GraphicsContext double double ) > |
|
456 |
self primitiveFailed |
|
457 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
458 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 459 |
! |
460 |
||
461 |
primNewPath: cr |
|
462 |
||
463 |
<cdecl: void "cairo_new_path" ( Cairo::GraphicsContext ) > |
|
464 |
self primitiveFailed |
|
465 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
466 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 467 |
! |
468 |
||
469 |
primNewSubPath: cr |
|
470 |
||
471 |
<cdecl: void "cairo_new_sub_path" ( Cairo::GraphicsContext ) > |
|
472 |
self primitiveFailed |
|
473 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
474 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 475 |
! |
476 |
||
477 |
primPaint: cr |
|
478 |
||
479 |
<cdecl: void "cairo_paint" ( Cairo::GraphicsContext ) > |
|
480 |
self primitiveFailed |
|
481 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
482 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 483 |
! |
484 |
||
485 |
primPaintWithAlpha: cr alpha: alpha |
|
486 |
||
487 |
<cdecl: void "cairo_paint_with_alpha" ( Cairo::GraphicsContext double ) > |
|
488 |
self primitiveFailed |
|
489 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
490 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 491 |
! |
492 |
||
493 |
primPathExtents: cr x1: x1 y1: y1 x2: x2 y2: y2 |
|
494 |
||
495 |
<cdecl: void "cairo_path_extents" ( Cairo::GraphicsContext pointer pointer pointer pointer ) > |
|
496 |
self primitiveFailed |
|
497 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
498 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 499 |
! |
500 |
||
501 |
primPopGroup: cr |
|
502 |
||
503 |
<cdecl: Cairo::Pattern "cairo_pop_group" ( Cairo::GraphicsContext ) > |
|
504 |
self primitiveFailed |
|
505 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
506 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 507 |
! |
508 |
||
509 |
primPopGroupToSource: cr |
|
510 |
||
511 |
<cdecl: void "cairo_pop_group_to_source" ( Cairo::GraphicsContext ) > |
|
512 |
self primitiveFailed |
|
513 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
514 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 515 |
! |
516 |
||
517 |
primPushGroup: cr |
|
518 |
||
519 |
<cdecl: void "cairo_push_group" ( Cairo::GraphicsContext ) > |
|
520 |
self primitiveFailed |
|
521 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
522 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 523 |
! |
524 |
||
525 |
primPushGroupWithContent: cr content: content |
|
526 |
||
527 |
<cdecl: void "cairo_push_group_with_content" ( Cairo::GraphicsContext int32 ) > |
|
528 |
self primitiveFailed |
|
529 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
530 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 531 |
! |
532 |
||
533 |
primRectangle: cr x: x y: y width: width height: height |
|
534 |
||
535 |
<cdecl: void "cairo_rectangle" ( Cairo::GraphicsContext double double double double ) > |
|
536 |
self primitiveFailed |
|
537 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
538 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 539 |
! |
540 |
||
541 |
primReference: cr |
|
542 |
||
543 |
<cdecl: Cairo::GraphicsContext "cairo_reference" ( Cairo::GraphicsContext ) > |
|
544 |
self primitiveFailed |
|
545 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
546 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 547 |
! |
548 |
||
549 |
primRelCurveTo: cr dx1: dx1 dy1: dy1 dx2: dx2 dy2: dy2 dx3: dx3 dy3: dy3 |
|
550 |
||
551 |
<cdecl: void "cairo_rel_curve_to" ( Cairo::GraphicsContext double double double double double double ) > |
|
552 |
self primitiveFailed |
|
553 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
554 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 555 |
! |
556 |
||
557 |
primRelLineTo: cr dx: dx dy: dy |
|
558 |
||
559 |
<cdecl: void "cairo_rel_line_to" ( Cairo::GraphicsContext double double ) > |
|
560 |
self primitiveFailed |
|
561 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
562 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 563 |
! |
564 |
||
565 |
primRelMoveTo: cr dx: dx dy: dy |
|
566 |
||
567 |
<cdecl: void "cairo_rel_move_to" ( Cairo::GraphicsContext double double ) > |
|
568 |
self primitiveFailed |
|
569 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
570 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 571 |
! |
572 |
||
573 |
primResetClip: cr |
|
574 |
||
575 |
<cdecl: void "cairo_reset_clip" ( Cairo::GraphicsContext ) > |
|
576 |
self primitiveFailed |
|
577 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
578 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 579 |
! |
580 |
||
581 |
primRestore: cr |
|
582 |
||
583 |
<cdecl: void "cairo_restore" ( Cairo::GraphicsContext ) > |
|
584 |
self primitiveFailed |
|
585 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
586 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 587 |
! |
588 |
||
589 |
primRotate: cr angle: angle |
|
590 |
||
591 |
<cdecl: void "cairo_rotate" ( Cairo::GraphicsContext double ) > |
|
592 |
self primitiveFailed |
|
593 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
594 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 595 |
! |
596 |
||
597 |
primSave: cr |
|
598 |
||
599 |
<cdecl: void "cairo_save" ( Cairo::GraphicsContext ) > |
|
600 |
self primitiveFailed |
|
601 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
602 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 603 |
! |
604 |
||
605 |
primScale: cr sx: sx sy: sy |
|
606 |
||
607 |
<cdecl: void "cairo_scale" ( Cairo::GraphicsContext double double ) > |
|
608 |
self primitiveFailed |
|
609 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
610 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 611 |
! |
612 |
||
613 |
primSelectFontFace: cr family: family slant: slant weight: weight |
|
614 |
||
615 |
<cdecl: void "cairo_select_font_face" ( Cairo::GraphicsContext charPointer int32 int32 ) > |
|
616 |
self primitiveFailed |
|
617 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
618 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 619 |
! |
620 |
||
621 |
primSetAntialias: cr antialias: antialias |
|
622 |
||
623 |
<cdecl: void "cairo_set_antialias" ( Cairo::GraphicsContext int32 ) > |
|
624 |
self primitiveFailed |
|
625 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
626 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 627 |
! |
628 |
||
629 |
primSetDash: cr dashes: dashes numDashes: num_dashes offset: offset |
|
630 |
||
631 |
<cdecl: void "cairo_set_dash" ( Cairo::GraphicsContext pointer int32 double ) > |
|
632 |
self primitiveFailed |
|
633 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
634 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 635 |
! |
636 |
||
637 |
primSetFillRule: cr fillRule: fill_rule |
|
638 |
||
639 |
<cdecl: void "cairo_set_fill_rule" ( Cairo::GraphicsContext int32 ) > |
|
640 |
self primitiveFailed |
|
641 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
642 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 643 |
! |
644 |
||
645 |
primSetFontFace: cr fontFace: font_face |
|
646 |
||
647 |
<cdecl: void "cairo_set_font_face" ( Cairo::GraphicsContext Cairo::FontFace ) > |
|
648 |
self primitiveFailed |
|
649 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
650 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 651 |
! |
652 |
||
653 |
primSetFontMatrix: cr matrix: matrix |
|
654 |
||
655 |
<cdecl: void "cairo_set_font_matrix" ( Cairo::GraphicsContext Cairo::Matrix ) > |
|
656 |
self primitiveFailed |
|
657 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
658 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 659 |
! |
660 |
||
661 |
primSetFontOptions: cr options: options |
|
662 |
||
663 |
<cdecl: void "cairo_set_font_options" ( Cairo::GraphicsContext Cairo::FontOptions ) > |
|
664 |
self primitiveFailed |
|
665 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
666 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 667 |
! |
668 |
||
669 |
primSetFontSize: cr size: size |
|
670 |
||
671 |
<cdecl: void "cairo_set_font_size" ( Cairo::GraphicsContext double ) > |
|
672 |
self primitiveFailed |
|
673 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
674 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 675 |
! |
676 |
||
677 |
primSetLineCap: cr lineCap: line_cap |
|
678 |
||
679 |
<cdecl: void "cairo_set_line_cap" ( Cairo::GraphicsContext int32 ) > |
|
680 |
self primitiveFailed |
|
681 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
682 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 683 |
! |
684 |
||
685 |
primSetLineJoin: cr lineJoin: line_join |
|
686 |
||
687 |
<cdecl: void "cairo_set_line_join" ( Cairo::GraphicsContext int32 ) > |
|
688 |
self primitiveFailed |
|
689 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
690 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 691 |
! |
692 |
||
693 |
primSetLineWidth: cr width: width |
|
694 |
||
695 |
<cdecl: void "cairo_set_line_width" ( Cairo::GraphicsContext double ) > |
|
696 |
self primitiveFailed |
|
697 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
698 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 699 |
! |
700 |
||
701 |
primSetMatrix: cr matrix: matrix |
|
702 |
||
703 |
<cdecl: void "cairo_set_matrix" ( Cairo::GraphicsContext Cairo::Matrix ) > |
|
704 |
self primitiveFailed |
|
705 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
706 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 707 |
! |
708 |
||
709 |
primSetMiterLimit: cr limit: limit |
|
710 |
||
711 |
<cdecl: void "cairo_set_miter_limit" ( Cairo::GraphicsContext double ) > |
|
712 |
self primitiveFailed |
|
713 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
714 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 715 |
! |
716 |
||
717 |
primSetOperator: cr op: op |
|
718 |
||
719 |
<cdecl: void "cairo_set_operator" ( Cairo::GraphicsContext int32 ) > |
|
720 |
self primitiveFailed |
|
721 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
722 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 723 |
! |
724 |
||
725 |
primSetScaledFont: cr scaledFont: scaled_font |
|
726 |
||
727 |
<cdecl: void "cairo_set_scaled_font" ( Cairo::GraphicsContext Cairo::ScaledFont ) > |
|
728 |
self primitiveFailed |
|
729 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
730 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 731 |
! |
732 |
||
733 |
primSetSource: cr source: source |
|
734 |
||
735 |
<cdecl: void "cairo_set_source" ( Cairo::GraphicsContext Cairo::Pattern ) > |
|
736 |
self primitiveFailed |
|
737 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
738 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 739 |
! |
740 |
||
741 |
primSetSourceRgb: cr red: red green: green blue: blue |
|
742 |
||
743 |
<cdecl: void "cairo_set_source_rgb" ( Cairo::GraphicsContext double double double ) > |
|
744 |
self primitiveFailed |
|
745 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
746 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 747 |
! |
748 |
||
749 |
primSetSourceRgba: cr red: red green: green blue: blue alpha: alpha |
|
750 |
||
751 |
<cdecl: void "cairo_set_source_rgba" ( Cairo::GraphicsContext double double double double ) > |
|
752 |
self primitiveFailed |
|
753 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
754 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 755 |
! |
756 |
||
757 |
primSetSourceSurface: cr surface: surface x: x y: y |
|
758 |
||
759 |
<cdecl: void "cairo_set_source_surface" ( Cairo::GraphicsContext Cairo::Surface double double ) > |
|
760 |
self primitiveFailed |
|
761 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
762 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 763 |
! |
764 |
||
765 |
primSetTolerance: cr tolerance: tolerance |
|
766 |
||
767 |
<cdecl: void "cairo_set_tolerance" ( Cairo::GraphicsContext double ) > |
|
768 |
self primitiveFailed |
|
769 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
770 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 771 |
! |
772 |
||
773 |
primSetUserData: cr key: key userData: user_data destroy: destroy |
|
774 |
||
775 |
<cdecl: int32 "cairo_set_user_data" ( Cairo::GraphicsContext Cairo::UserDataKey pointer pointer ) > |
|
776 |
self primitiveFailed |
|
777 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
778 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 779 |
! |
780 |
||
781 |
primShowGlyphs: cr glyphs: glyphs numGlyphs: num_glyphs |
|
782 |
||
783 |
<cdecl: void "cairo_show_glyphs" ( Cairo::GraphicsContext Cairo::Glyph int32 ) > |
|
784 |
self primitiveFailed |
|
785 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
786 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 787 |
! |
788 |
||
789 |
primShowPage: cr |
|
790 |
||
791 |
<cdecl: void "cairo_show_page" ( Cairo::GraphicsContext ) > |
|
792 |
self primitiveFailed |
|
793 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
794 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 795 |
! |
796 |
||
797 |
primShowText: cr utf8: utf8 |
|
798 |
||
799 |
<cdecl: void "cairo_show_text" ( Cairo::GraphicsContext charPointer ) > |
|
800 |
self primitiveFailed |
|
801 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
802 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 803 |
! |
804 |
||
805 |
primStatus: cr |
|
806 |
||
807 |
<cdecl: int32 "cairo_status" ( Cairo::GraphicsContext ) > |
|
808 |
self primitiveFailed |
|
809 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
810 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 811 |
! |
812 |
||
813 |
primStroke: cr |
|
814 |
||
815 |
<cdecl: void "cairo_stroke" ( Cairo::GraphicsContext ) > |
|
816 |
self primitiveFailed |
|
817 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
818 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 819 |
! |
820 |
||
821 |
primStrokeExtents: cr x1: x1 y1: y1 x2: x2 y2: y2 |
|
822 |
||
823 |
<cdecl: void "cairo_stroke_extents" ( Cairo::GraphicsContext pointer pointer pointer pointer ) > |
|
824 |
self primitiveFailed |
|
825 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
826 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 827 |
! |
828 |
||
829 |
primStrokePreserve: cr |
|
830 |
||
831 |
<cdecl: void "cairo_stroke_preserve" ( Cairo::GraphicsContext ) > |
|
832 |
self primitiveFailed |
|
833 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
834 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 835 |
! |
836 |
||
837 |
primTextExtents: cr utf8: utf8 extents: extents |
|
838 |
||
839 |
<cdecl: void "cairo_text_extents" ( Cairo::GraphicsContext charPointer Cairo::TextExtents ) > |
|
840 |
self primitiveFailed |
|
841 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
842 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 843 |
! |
844 |
||
845 |
primTextPath: cr utf8: utf8 |
|
846 |
||
847 |
<cdecl: void "cairo_text_path" ( Cairo::GraphicsContext charPointer ) > |
|
848 |
self primitiveFailed |
|
849 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
850 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 851 |
! |
852 |
||
853 |
primTransform: cr matrix: matrix |
|
854 |
||
855 |
<cdecl: void "cairo_transform" ( Cairo::GraphicsContext Cairo::Matrix ) > |
|
856 |
self primitiveFailed |
|
857 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
858 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 859 |
! |
860 |
||
861 |
primTranslate: cr tx: tx ty: ty |
|
862 |
||
863 |
<cdecl: void "cairo_translate" ( Cairo::GraphicsContext double double ) > |
|
864 |
self primitiveFailed |
|
865 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
866 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 867 |
! |
868 |
||
869 |
primUserToDevice: cr x: x y: y |
|
870 |
||
871 |
<cdecl: void "cairo_user_to_device" ( Cairo::GraphicsContext pointer pointer ) > |
|
872 |
self primitiveFailed |
|
873 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
874 |
"Modified: / 10-09-2008 / 18:19:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 875 |
! |
876 |
||
877 |
primUserToDeviceDistance: cr dx: dx dy: dy |
|
878 |
||
879 |
<cdecl: void "cairo_user_to_device_distance" ( Cairo::GraphicsContext pointer pointer ) > |
|
880 |
self primitiveFailed |
|
881 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
882 |
"Modified: / 10-09-2008 / 18:19:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 883 |
! ! |
884 |
||
885 |
!GraphicsContext methodsFor:'accessing'! |
|
886 |
||
887 |
paint: aColor |
|
888 |
||
889 |
^self |
|
890 |
paintRed: (aColor red / 100) asDouble |
|
891 |
green: (aColor green / 100) asDouble |
|
892 |
blue: (aColor blue / 100) asDouble |
|
893 |
alpha: aColor alpha |
|
894 |
||
895 |
"Created: / 10-07-2008 / 11:18:13 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
896 |
! |
|
897 |
||
898 |
surface |
|
899 |
||
6
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
900 |
surface ifNil: |
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
901 |
[surface := self class primGetTarget: self]. |
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
902 |
^surface |
1 | 903 |
|
904 |
"Created: / 10-07-2008 / 10:33:59 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
6
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
905 |
"Modified: / 09-09-2008 / 22:12:19 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 906 |
! ! |
907 |
||
908 |
!GraphicsContext methodsFor:'cairo - paints'! |
|
909 |
||
910 |
paintRed: red green: green blue: blue alpha: alpha |
|
911 |
||
912 |
^self class |
|
913 |
primSetSourceRgba: self red: red green: green blue: blue alpha: alpha |
|
914 |
||
915 |
"Created: / 10-07-2008 / 11:10:45 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
916 |
! ! |
|
917 |
||
918 |
!GraphicsContext methodsFor:'cairo - paths'! |
|
919 |
||
920 |
rectangleX: x y: y width: width height: height |
|
921 |
||
922 |
^self class |
|
923 |
primRectangle: self |
|
924 |
x: x asDouble |
|
925 |
y: y asDouble |
|
926 |
width: width asDouble |
|
927 |
height: height asDouble |
|
928 |
||
929 |
"Created: / 10-07-2008 / 09:41:50 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
930 |
! ! |
|
931 |
||
932 |
!GraphicsContext methodsFor:'cairo - stroke & fill'! |
|
933 |
||
934 |
fill |
|
935 |
||
936 |
^self class primFill: self |
|
937 |
||
938 |
"Created: / 10-07-2008 / 09:42:50 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
939 |
! |
|
940 |
||
941 |
stroke |
|
942 |
||
943 |
^self class primStroke: self |
|
944 |
||
945 |
"Created: / 10-07-2008 / 09:42:43 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
946 |
! ! |
|
947 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
948 |
!GraphicsContext methodsFor:'private accessing'! |
1 | 949 |
|
6
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
950 |
setSurface: aSurface |
1 | 951 |
|
6
c1f387b40e3a
regenerated using newer version of CFace
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
952 |
surface := aSurface |
1 | 953 |
|
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
954 |
"Created: / 10-09-2008 / 19:02:05 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 955 |
! ! |
956 |
||
7
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
957 |
!GraphicsContext class methodsFor:'documentation'! |
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
958 |
|
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
959 |
version |
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
960 |
^'$Id$' |
392289f92fab
- DLL path is set automatically.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
6
diff
changeset
|
961 |
! ! |