1
|
1 |
"{ Package: 'stx:goodies/libcairo' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Cairo }"
|
|
4 |
|
|
5 |
ExternalStructure subclass:#PathData
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Cairo - C Types'
|
|
10 |
!
|
|
11 |
|
5
|
12 |
|
1
|
13 |
!PathData class methodsFor:'accessing'!
|
|
14 |
|
|
15 |
libraryName
|
|
16 |
|
|
17 |
OperatingSystem isUNIXlike ifTrue:[^'libcairo.so'].
|
|
18 |
|
|
19 |
OperatingSystem isMSWINDOWSlike ifTrue:[^'cairo.dll'].
|
|
20 |
|
|
21 |
self error:'Library name for host OS is not known'
|
|
22 |
|
3
|
23 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
24 |
! !
|
|
25 |
|
|
26 |
!PathData methodsFor:'accessing - primitives'!
|
|
27 |
|
|
28 |
primHeader
|
|
29 |
|
|
30 |
self at:1 + 0
|
|
31 |
|
3
|
32 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
33 |
!
|
|
34 |
|
|
35 |
primHeader: value
|
|
36 |
|
|
37 |
self at:1 + 0 put:value
|
|
38 |
|
3
|
39 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
40 |
!
|
|
41 |
|
|
42 |
primPoint
|
|
43 |
|
|
44 |
self at:1 + 0
|
|
45 |
|
3
|
46 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
47 |
!
|
|
48 |
|
|
49 |
primPoint: value
|
|
50 |
|
|
51 |
self at:1 + 0 put:value
|
|
52 |
|
3
|
53 |
"Modified: / 10-07-2008 / 23:05:54 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
1
|
54 |
! !
|
|
55 |
|
5
|
56 |
!PathData class methodsFor:'documentation'!
|
|
57 |
|
|
58 |
version
|
|
59 |
^'$Id$'
|
|
60 |
! !
|