author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 11 Jul 2008 08:49:27 +0000 | |
changeset 5 | 65635e9ef3e8 |
parent 3 | f4f599f2a1b5 |
child 6 | c1f387b40e3a |
permissions | -rw-r--r-- |
1 | 1 |
"{ Package: 'stx:goodies/libcairo' }" |
2 |
||
3 |
"{ NameSpace: Cairo }" |
|
4 |
||
5 |
ExternalStructure subclass:#Surface |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'Cairo - C Types' |
|
10 |
! |
|
11 |
||
5 | 12 |
|
1 | 13 |
!Surface class methodsFor:'instance creation'! |
14 |
||
15 |
forPdfFile: aStringOrFilename width: w height: h |
|
16 |
||
17 |
^self |
|
18 |
primPdfSurfaceCreate: aStringOrFilename asFilename asString |
|
19 |
widthInPoints: w asDouble |
|
20 |
heightInPoints: h asDouble |
|
21 |
||
22 |
"Created: / 10-07-2008 / 09:35:34 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
23 |
! |
|
24 |
||
25 |
forView: view |
|
26 |
||
27 |
^view device cairoSurfaceFor: view |
|
28 |
||
29 |
"Created: / 10-07-2008 / 10:15:04 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
30 |
! |
|
31 |
||
32 |
forXlib: dpy drawable: drawable visual: visual width: width height: height |
|
33 |
||
34 |
^self primXlibSurfaceCreate: dpy drawable: drawable visual: visual width: width height: height |
|
35 |
||
36 |
"Created: / 10-07-2008 / 11:06:22 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
37 |
! ! |
|
38 |
||
39 |
!Surface class methodsFor:'accessing'! |
|
40 |
||
41 |
libraryName |
|
42 |
||
43 |
OperatingSystem isUNIXlike ifTrue:[^'libcairo.so']. |
|
44 |
||
45 |
OperatingSystem isMSWINDOWSlike ifTrue:[^'cairo.dll']. |
|
46 |
||
47 |
self error:'Library name for host OS is not known' |
|
48 |
||
3 | 49 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 50 |
! ! |
51 |
||
52 |
!Surface class methodsFor:'primitives'! |
|
53 |
||
54 |
primCopyPage: surface |
|
55 |
||
56 |
<cdecl: void "cairo_surface_copy_page" ( Cairo::Surface ) > |
|
57 |
self primitiveFailed |
|
58 |
||
3 | 59 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 60 |
! |
61 |
||
62 |
primCreateSimilar: other content: content width: width height: height |
|
63 |
||
64 |
<cdecl: Cairo::Surface "cairo_surface_create_similar" ( Cairo::Surface int32 int32 int32 ) > |
|
65 |
self primitiveFailed |
|
66 |
||
3 | 67 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 68 |
! |
69 |
||
70 |
primDestroy: surface |
|
71 |
||
72 |
<cdecl: void "cairo_surface_destroy" ( Cairo::Surface ) > |
|
73 |
self primitiveFailed |
|
74 |
||
3 | 75 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 76 |
! |
77 |
||
78 |
primFinish: surface |
|
79 |
||
80 |
<cdecl: void "cairo_surface_finish" ( Cairo::Surface ) > |
|
81 |
self primitiveFailed |
|
82 |
||
3 | 83 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 84 |
! |
85 |
||
86 |
primFlush: surface |
|
87 |
||
88 |
<cdecl: void "cairo_surface_flush" ( Cairo::Surface ) > |
|
89 |
self primitiveFailed |
|
90 |
||
3 | 91 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 92 |
! |
93 |
||
94 |
primGetContent: surface |
|
95 |
||
96 |
<cdecl: int32 "cairo_surface_get_content" ( Cairo::Surface ) > |
|
97 |
self primitiveFailed |
|
98 |
||
3 | 99 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 100 |
! |
101 |
||
102 |
primGetDeviceOffset: surface xOffset: x_offset yOffset: y_offset |
|
103 |
||
104 |
<cdecl: void "cairo_surface_get_device_offset" ( Cairo::Surface pointer pointer ) > |
|
105 |
self primitiveFailed |
|
106 |
||
3 | 107 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 108 |
! |
109 |
||
110 |
primGetFontOptions: surface options: options |
|
111 |
||
112 |
<cdecl: void "cairo_surface_get_font_options" ( Cairo::Surface Cairo::FontOptions ) > |
|
113 |
self primitiveFailed |
|
114 |
||
3 | 115 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 116 |
! |
117 |
||
118 |
primGetReferenceCount: surface |
|
119 |
||
120 |
<cdecl: uint32 "cairo_surface_get_reference_count" ( Cairo::Surface ) > |
|
121 |
self primitiveFailed |
|
122 |
||
3 | 123 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 124 |
! |
125 |
||
126 |
primGetType: surface |
|
127 |
||
128 |
<cdecl: int32 "cairo_surface_get_type" ( Cairo::Surface ) > |
|
129 |
self primitiveFailed |
|
130 |
||
3 | 131 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 132 |
! |
133 |
||
134 |
primGetUserData: surface key: key |
|
135 |
||
136 |
<cdecl: pointer "cairo_surface_get_user_data" ( Cairo::Surface Cairo::UserDataKey ) > |
|
137 |
self primitiveFailed |
|
138 |
||
3 | 139 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 140 |
! |
141 |
||
142 |
primImageSurfaceCreate: format width: width height: height |
|
143 |
||
144 |
<cdecl: Cairo::Surface "cairo_image_surface_create" ( int32 int32 int32 ) > |
|
145 |
self primitiveFailed |
|
146 |
||
3 | 147 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 148 |
! |
149 |
||
150 |
primImageSurfaceCreateForData: data format: format width: width height: height stride: stride |
|
151 |
||
152 |
<cdecl: Cairo::Surface "cairo_image_surface_create_for_data" ( pointer int32 int32 int32 int32 ) > |
|
153 |
self primitiveFailed |
|
154 |
||
3 | 155 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 156 |
! |
157 |
||
158 |
primImageSurfaceCreateFromPng: filename |
|
159 |
||
160 |
<cdecl: Cairo::Surface "cairo_image_surface_create_from_png" ( charPointer ) > |
|
161 |
self primitiveFailed |
|
162 |
||
3 | 163 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 164 |
! |
165 |
||
166 |
primImageSurfaceCreateFromPngStream: read_func closure: closure |
|
167 |
||
168 |
<cdecl: Cairo::Surface "cairo_image_surface_create_from_png_stream" ( pointer pointer ) > |
|
169 |
self primitiveFailed |
|
170 |
||
3 | 171 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 172 |
! |
173 |
||
174 |
primImageSurfaceGetData: surface |
|
175 |
||
176 |
<cdecl: pointer "cairo_image_surface_get_data" ( Cairo::Surface ) > |
|
177 |
self primitiveFailed |
|
178 |
||
3 | 179 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 180 |
! |
181 |
||
182 |
primImageSurfaceGetFormat: surface |
|
183 |
||
184 |
<cdecl: int32 "cairo_image_surface_get_format" ( Cairo::Surface ) > |
|
185 |
self primitiveFailed |
|
186 |
||
3 | 187 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 188 |
! |
189 |
||
190 |
primImageSurfaceGetHeight: surface |
|
191 |
||
192 |
<cdecl: int32 "cairo_image_surface_get_height" ( Cairo::Surface ) > |
|
193 |
self primitiveFailed |
|
194 |
||
3 | 195 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 196 |
! |
197 |
||
198 |
primImageSurfaceGetStride: surface |
|
199 |
||
200 |
<cdecl: int32 "cairo_image_surface_get_stride" ( Cairo::Surface ) > |
|
201 |
self primitiveFailed |
|
202 |
||
3 | 203 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 204 |
! |
205 |
||
206 |
primImageSurfaceGetWidth: surface |
|
207 |
||
208 |
<cdecl: int32 "cairo_image_surface_get_width" ( Cairo::Surface ) > |
|
209 |
self primitiveFailed |
|
210 |
||
3 | 211 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 212 |
! |
213 |
||
214 |
primMarkDirty: surface |
|
215 |
||
216 |
<cdecl: void "cairo_surface_mark_dirty" ( Cairo::Surface ) > |
|
217 |
self primitiveFailed |
|
218 |
||
3 | 219 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 220 |
! |
221 |
||
222 |
primMarkDirtyRectangle: surface x: x y: y width: width height: height |
|
223 |
||
224 |
<cdecl: void "cairo_surface_mark_dirty_rectangle" ( Cairo::Surface int32 int32 int32 int32 ) > |
|
225 |
self primitiveFailed |
|
226 |
||
3 | 227 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 228 |
! |
229 |
||
230 |
primPdfSurfaceCreate: filename widthInPoints: width_in_points heightInPoints: height_in_points |
|
231 |
||
232 |
<cdecl: Cairo::Surface "cairo_pdf_surface_create" ( charPointer double double ) > |
|
233 |
self primitiveFailed |
|
234 |
||
3 | 235 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 236 |
! |
237 |
||
238 |
primPdfSurfaceCreateForStream: write_func closure: closure widthInPoints: width_in_points heightInPoints: height_in_points |
|
239 |
||
240 |
<cdecl: Cairo::Surface "cairo_pdf_surface_create_for_stream" ( pointer pointer double double ) > |
|
241 |
self primitiveFailed |
|
242 |
||
3 | 243 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 244 |
! |
245 |
||
246 |
primPdfSurfaceSetSize: surface widthInPoints: width_in_points heightInPoints: height_in_points |
|
247 |
||
248 |
<cdecl: void "cairo_pdf_surface_set_size" ( Cairo::Surface double double ) > |
|
249 |
self primitiveFailed |
|
250 |
||
3 | 251 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 252 |
! |
253 |
||
254 |
primReference: surface |
|
255 |
||
256 |
<cdecl: Cairo::Surface "cairo_surface_reference" ( Cairo::Surface ) > |
|
257 |
self primitiveFailed |
|
258 |
||
3 | 259 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 260 |
! |
261 |
||
262 |
primSetDeviceOffset: surface xOffset: x_offset yOffset: y_offset |
|
263 |
||
264 |
<cdecl: void "cairo_surface_set_device_offset" ( Cairo::Surface double double ) > |
|
265 |
self primitiveFailed |
|
266 |
||
3 | 267 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 268 |
! |
269 |
||
270 |
primSetFallbackResolution: surface xPixelsPerInch: x_pixels_per_inch yPixelsPerInch: y_pixels_per_inch |
|
271 |
||
272 |
<cdecl: void "cairo_surface_set_fallback_resolution" ( Cairo::Surface double double ) > |
|
273 |
self primitiveFailed |
|
274 |
||
3 | 275 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 276 |
! |
277 |
||
278 |
primSetUserData: surface key: key userData: user_data destroy: destroy |
|
279 |
||
280 |
<cdecl: int32 "cairo_surface_set_user_data" ( Cairo::Surface Cairo::UserDataKey pointer pointer ) > |
|
281 |
self primitiveFailed |
|
282 |
||
3 | 283 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 284 |
! |
285 |
||
286 |
primShowPage: surface |
|
287 |
||
288 |
<cdecl: void "cairo_surface_show_page" ( Cairo::Surface ) > |
|
289 |
self primitiveFailed |
|
290 |
||
3 | 291 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 292 |
! |
293 |
||
294 |
primStatus: surface |
|
295 |
||
296 |
<cdecl: int32 "cairo_surface_status" ( Cairo::Surface ) > |
|
297 |
self primitiveFailed |
|
298 |
||
3 | 299 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 300 |
! |
301 |
||
302 |
primSvgSurfaceCreate: filename widthInPoints: width_in_points heightInPoints: height_in_points |
|
303 |
||
304 |
<cdecl: Cairo::Surface "cairo_svg_surface_create" ( charPointer double double ) > |
|
305 |
self primitiveFailed |
|
306 |
||
3 | 307 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 308 |
! |
309 |
||
310 |
primSvgSurfaceCreateForStream: write_func closure: closure widthInPoints: width_in_points heightInPoints: height_in_points |
|
311 |
||
312 |
<cdecl: Cairo::Surface "cairo_svg_surface_create_for_stream" ( pointer pointer double double ) > |
|
313 |
self primitiveFailed |
|
314 |
||
3 | 315 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 316 |
! |
317 |
||
318 |
primSvgSurfaceRestrictToVersion: surface version: version |
|
319 |
||
320 |
<cdecl: void "cairo_svg_surface_restrict_to_version" ( Cairo::Surface int32 ) > |
|
321 |
self primitiveFailed |
|
322 |
||
3 | 323 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 324 |
! |
325 |
||
326 |
primWriteToPng: surface filename: filename |
|
327 |
||
328 |
<cdecl: int32 "cairo_surface_write_to_png" ( Cairo::Surface charPointer ) > |
|
329 |
self primitiveFailed |
|
330 |
||
3 | 331 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 332 |
! |
333 |
||
334 |
primWriteToPngStream: surface writeFunc: write_func closure: closure |
|
335 |
||
336 |
<cdecl: int32 "cairo_surface_write_to_png_stream" ( Cairo::Surface pointer pointer ) > |
|
337 |
self primitiveFailed |
|
338 |
||
3 | 339 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 340 |
! |
341 |
||
342 |
primXlibSurfaceCreate: dpy drawable: drawable visual: visual width: width height: height |
|
343 |
||
344 |
<cdecl: Cairo::Surface "cairo_xlib_surface_create" ( pointer int32 pointer int32 int32 ) > |
|
345 |
self primitiveFailed |
|
346 |
||
3 | 347 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 348 |
! |
349 |
||
350 |
primXlibSurfaceCreateForBitmap: dpy bitmap: bitmap screen: screen width: width height: height |
|
351 |
||
352 |
<cdecl: Cairo::Surface "cairo_xlib_surface_create_for_bitmap" ( pointer int32 pointer int32 int32 ) > |
|
353 |
self primitiveFailed |
|
354 |
||
3 | 355 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 356 |
! |
357 |
||
358 |
primXlibSurfaceGetDepth: surface |
|
359 |
||
360 |
<cdecl: int32 "cairo_xlib_surface_get_depth" ( Cairo::Surface ) > |
|
361 |
self primitiveFailed |
|
362 |
||
3 | 363 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 364 |
! |
365 |
||
366 |
primXlibSurfaceGetDisplay: surface |
|
367 |
||
368 |
<cdecl: pointer "cairo_xlib_surface_get_display" ( Cairo::Surface ) > |
|
369 |
self primitiveFailed |
|
370 |
||
3 | 371 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 372 |
! |
373 |
||
374 |
primXlibSurfaceGetDrawable: surface |
|
375 |
||
376 |
<cdecl: int32 "cairo_xlib_surface_get_drawable" ( Cairo::Surface ) > |
|
377 |
self primitiveFailed |
|
378 |
||
3 | 379 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 380 |
! |
381 |
||
382 |
primXlibSurfaceGetHeight: surface |
|
383 |
||
384 |
<cdecl: int32 "cairo_xlib_surface_get_height" ( Cairo::Surface ) > |
|
385 |
self primitiveFailed |
|
386 |
||
3 | 387 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 388 |
! |
389 |
||
390 |
primXlibSurfaceGetScreen: surface |
|
391 |
||
392 |
<cdecl: pointer "cairo_xlib_surface_get_screen" ( Cairo::Surface ) > |
|
393 |
self primitiveFailed |
|
394 |
||
3 | 395 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 396 |
! |
397 |
||
398 |
primXlibSurfaceGetVisual: surface |
|
399 |
||
400 |
<cdecl: pointer "cairo_xlib_surface_get_visual" ( Cairo::Surface ) > |
|
401 |
self primitiveFailed |
|
402 |
||
3 | 403 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 404 |
! |
405 |
||
406 |
primXlibSurfaceGetWidth: surface |
|
407 |
||
408 |
<cdecl: int32 "cairo_xlib_surface_get_width" ( Cairo::Surface ) > |
|
409 |
self primitiveFailed |
|
410 |
||
3 | 411 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 412 |
! |
413 |
||
414 |
primXlibSurfaceSetDrawable: surface drawable: drawable width: width height: height |
|
415 |
||
416 |
<cdecl: void "cairo_xlib_surface_set_drawable" ( Cairo::Surface int32 int32 int32 ) > |
|
417 |
self primitiveFailed |
|
418 |
||
3 | 419 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 420 |
! |
421 |
||
422 |
primXlibSurfaceSetSize: surface width: width height: height |
|
423 |
||
424 |
<cdecl: void "cairo_xlib_surface_set_size" ( Cairo::Surface int32 int32 ) > |
|
425 |
self primitiveFailed |
|
426 |
||
3 | 427 |
"Modified: / 10-07-2008 / 23:05:55 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 428 |
! ! |
429 |
||
430 |
!Surface methodsFor:'accessing'! |
|
431 |
||
432 |
graphicsContext |
|
433 |
||
434 |
^GraphicsContext on: self |
|
435 |
||
436 |
"Created: / 10-07-2008 / 09:38:16 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
437 |
! |
|
438 |
||
439 |
referenceCount |
|
440 |
||
441 |
^self class primGetReferenceCount: self |
|
442 |
||
443 |
"Created: / 10-07-2008 / 10:28:49 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
444 |
! |
|
445 |
||
446 |
type |
|
447 |
||
448 |
^self class primGetType: self |
|
449 |
||
450 |
"Created: / 10-07-2008 / 10:34:36 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
2
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
451 |
! |
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
452 |
|
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
453 |
width: w height: h |
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
454 |
|
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
455 |
self class primXlibSurfaceSetSize: self width: w height: h |
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
456 |
|
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
457 |
"Created: / 10-07-2008 / 19:36:39 / Jan Vrany <vranyj1@fel.cvut.cz>" |
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
458 |
! ! |
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
459 |
|
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
460 |
!Surface methodsFor:'change & update'! |
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
461 |
|
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
462 |
update: aspect with: param from: sender |
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
463 |
|
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
464 |
(aspect = #sizeOfView and:[self type = SurfaceType SURFACE_TYPE_XLIB]) |
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
465 |
ifTrue:[^self width: sender width height: sender height]. |
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
466 |
|
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
467 |
super update: aspect with: param from: sender |
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
468 |
|
c2f163833877
Xlib surfaces are dependents of associated view
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
469 |
"Created: / 10-07-2008 / 19:33:39 / Jan Vrany <vranyj1@fel.cvut.cz>" |
1 | 470 |
! ! |
471 |
||
472 |
!Surface methodsFor:'initialization & release'! |
|
473 |
||
474 |
finalize |
|
475 |
||
476 |
Transcript showCR:'Cairo [INFO]: Finalizing surface ' ,self address hexPrintString, ' ref count: ', self referenceCount printString. |
|
477 |
self class |
|
478 |
primFlush: self; |
|
479 |
primDestroy: self |
|
480 |
||
481 |
"Created: / 10-07-2008 / 09:54:00 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
482 |
! |
|
483 |
||
484 |
flush |
|
485 |
||
486 |
^self class primFlush: self |
|
487 |
||
488 |
"Created: / 10-07-2008 / 10:32:50 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
489 |
! |
|
490 |
||
491 |
reference |
|
492 |
||
493 |
^self class primReference: self |
|
494 |
||
495 |
"Created: / 10-07-2008 / 10:28:03 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
496 |
! ! |
|
497 |
||
5 | 498 |
!Surface class methodsFor:'documentation'! |
499 |
||
500 |
version |
|
501 |
^'$Id$' |
|
502 |
! ! |