1
|
1 |
"{ Package: 'stx:goodies/libcairo' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Cairo }"
|
|
4 |
|
|
5 |
ExternalStructure subclass:#RectangleList
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Cairo - C Types'
|
|
10 |
!
|
|
11 |
|
|
12 |
!RectangleList class methodsFor:'accessing'!
|
|
13 |
|
|
14 |
libraryName
|
|
15 |
|
|
16 |
OperatingSystem isUNIXlike ifTrue:[^'libcairo.so'].
|
|
17 |
|
|
18 |
OperatingSystem isMSWINDOWSlike ifTrue:[^'cairo.dll'].
|
|
19 |
|
|
20 |
self error:'Library name for host OS is not known'
|
|
21 |
|
3
|
22 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
23 |
! !
|
|
24 |
|
|
25 |
!RectangleList class methodsFor:'primitives'!
|
|
26 |
|
|
27 |
primDestroy: rectangle_list
|
|
28 |
|
|
29 |
<cdecl: void "cairo_rectangle_list_destroy" ( Cairo::RectangleList ) >
|
|
30 |
self primitiveFailed
|
|
31 |
|
3
|
32 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
33 |
! !
|
|
34 |
|
|
35 |
!RectangleList methodsFor:'accessing - primitives'!
|
|
36 |
|
|
37 |
primNumRectangles
|
|
38 |
|
|
39 |
self doubleWordAt:1 + 8
|
|
40 |
|
3
|
41 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
42 |
!
|
|
43 |
|
|
44 |
primNumRectangles: value
|
|
45 |
|
|
46 |
self doubleWordAt:1 + 8 put:value
|
|
47 |
|
3
|
48 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
49 |
!
|
|
50 |
|
|
51 |
primRectangles
|
|
52 |
|
|
53 |
self doubleWordAt:1 + 4
|
|
54 |
|
3
|
55 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
56 |
!
|
|
57 |
|
|
58 |
primRectangles: value
|
|
59 |
|
|
60 |
self doubleWordAt:1 + 4 put:value
|
|
61 |
|
3
|
62 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
63 |
!
|
|
64 |
|
|
65 |
primStatus
|
|
66 |
|
|
67 |
self doubleWordAt:1 + 0
|
|
68 |
|
3
|
69 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
70 |
!
|
|
71 |
|
|
72 |
primStatus: value
|
|
73 |
|
|
74 |
self doubleWordAt:1 + 0 put:value
|
|
75 |
|
3
|
76 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
77 |
! !
|
|
78 |
|