author | alkurz |
Tue, 02 Jul 2019 14:10:25 +0200 | |
changeset 4287 | 9e5dc8a88380 |
parent 4139 | 6dffe5499f3b |
permissions | -rw-r--r-- |
3138 | 1 |
"{ Package: 'stx:libview2' }"! |
2728 | 2 |
|
3 |
!CharacterArray methodsFor:'converting'! |
|
4 |
||
5 |
asMimeType |
|
4089 | 6 |
"return myself as a mimeType instance" |
7 |
||
2728 | 8 |
^ MIMETypes mimeTypeFromString:self string |
9 |
||
10 |
" |
|
11 |
'text/html' asMimeType isTextType |
|
12 |
'text/html' asMimeType isImage |
|
2759 | 13 |
'image/gif' asMimeType isImage |
4089 | 14 |
'image/gif' asMimeType asMimeType |
2728 | 15 |
" |
16 |
! ! |
|
17 |
||
4139
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
18 |
!Point methodsFor:'converting'! |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
19 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
20 |
asFractionalLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
21 |
"return a LayoutOrigin from the receiver, |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
22 |
treating the receiver coordinates as fractional parts |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
23 |
(i.e. relative to superview). |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
24 |
Notice: in 10.5.x LayoutOrigin is not yet officially released." |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
25 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
26 |
^ LayoutOrigin fractionalFromPoint:self |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
27 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
28 |
" |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
29 |
(0@0.5) asFractionalLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
30 |
(0@0.5) asLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
31 |
(0@10) asLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
32 |
(0@10) asOffsetLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
33 |
" |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
34 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
35 |
! ! |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
36 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
37 |
!Point methodsFor:'converting'! |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
38 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
39 |
asLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
40 |
"return a LayoutOrigin from the receiver. |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
41 |
If the receiver coordinates are between 0 and 1, take |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
42 |
them as fractional parts (relative to superview). |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
43 |
Otherwise, treat them as absolute offsets. |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
44 |
Notice: in 10.5.x LayoutOrigin is not yet released." |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
45 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
46 |
^ LayoutOrigin fromPoint:self |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
47 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
48 |
" |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
49 |
(0@0.5) asFractionalLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
50 |
(0@0.5) asLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
51 |
(0@10) asLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
52 |
(0@10) asOffsetLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
53 |
" |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
54 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
55 |
! ! |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
56 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
57 |
!Point methodsFor:'converting'! |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
58 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
59 |
asOffsetLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
60 |
"return a LayoutOrigin from the receiver, |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
61 |
treating the receiver coordinates as absolute offsets. |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
62 |
Notice: in 10.5.x LayoutOrigin is not yet released." |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
63 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
64 |
^ LayoutOrigin offsetFromPoint:self |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
65 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
66 |
" |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
67 |
(0@0.5) asFractionalLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
68 |
(0@0.5) asLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
69 |
(0@10) asLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
70 |
(0@10) asOffsetLayout |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
71 |
" |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
72 |
|
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
73 |
! ! |
6dffe5499f3b
move methods accessing LayoutFrame to libview2
Stefan Vogel <sv@exept.de>
parents:
4089
diff
changeset
|
74 |
|
2759 | 75 |
!stx_libview2 class methodsFor:'documentation'! |
76 |
||
77 |
extensionsVersion_CVS |
|
4089 | 78 |
^ '$Header$' |
2759 | 79 |
! ! |
3144 | 80 |
|
81 |
!stx_libview2 class methodsFor:'documentation'! |
|
82 |
||
83 |
extensionsVersion_SVN |
|
84 |
^ 'Id:' |
|
85 |
! ! |
|
86 |