author | Claus Gittinger <cg@exept.de> |
Wed, 22 Jan 2020 16:46:53 +0100 | |
changeset 8974 | f00c923a5748 |
parent 8910 | 0b21999f36fe |
permissions | -rw-r--r-- |
0 | 1 |
" |
6 | 2 |
COPYRIGHT (c) 1992 by Claus Gittinger |
80 | 3 |
All Rights Reserved |
0 | 4 |
|
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
3201 | 12 |
"{ Package: 'stx:libview' }" |
13 |
||
7205 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
0 | 16 |
Object subclass:#Cursor |
577 | 17 |
instanceVariableNames:'shape sourceForm maskForm hotX hotY device cursorId' |
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
18 |
classVariableNames:'DefaultFgColor DefaultBgColor NormalCursor HandCursor ArrowCursor |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
19 |
WaitCursor CrossHairCursor OriginCursor CornerCursor SquareCursor |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
20 |
FourWayCursor UpDownArrowCursor LeftRightArrowCursor |
577 | 21 |
ThumbsUpCursor ThumbsDownCursor ReadCursor WriteCursor XeqCursor |
22 |
StopCursor EyeCursor BlankCursor MarkerCursor UpCursor DownCursor |
|
2121
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
23 |
LeftCursor RightCursor XMarkerCursor CaretCursor |
2616
9e03b6a1e2d0
questionMarkCursor; fixed CrossCursor.
Claus Gittinger <cg@exept.de>
parents:
2615
diff
changeset
|
24 |
UpRightHandCursor DocumentCursor FolderCursor CrossCursor |
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
25 |
QuestionMarkCursor LeftHandCursor BottomLeftCornerCursor |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
26 |
TopRightCornerCursor DownLimitCursor UpLimitCursor |
8092 | 27 |
LeftLimitCursor RightLimitCursor ClosedEyeCursor BulletCursor' |
577 | 28 |
poolDictionaries:'' |
29 |
category:'Graphics-Support' |
|
0 | 30 |
! |
31 |
||
1140 | 32 |
!Cursor class methodsFor:'documentation'! |
0 | 33 |
|
46 | 34 |
copyright |
35 |
" |
|
36 |
COPYRIGHT (c) 1992 by Claus Gittinger |
|
80 | 37 |
All Rights Reserved |
46 | 38 |
|
39 |
This software is furnished under a license and may be used |
|
40 |
only in accordance with the terms of that license and with the |
|
41 |
inclusion of the above copyright notice. This software may not |
|
42 |
be provided or otherwise made available to, or used by, any |
|
43 |
other person. No title to or ownership of the software is |
|
44 |
hereby transferred. |
|
45 |
" |
|
46 |
! |
|
47 |
||
0 | 48 |
documentation |
38 | 49 |
" |
50 |
I represents cursors in a device independent manner. |
|
144 | 51 |
Normally, cursors are defined at view creation time, |
601 | 52 |
via |
7669 | 53 |
'aView cursor:aCursor'. |
601 | 54 |
|
55 |
[Instance variables:] |
|
0 | 56 |
|
7669 | 57 |
shape <Symbol> a shape (i.e. #arrow, #hand, ...) or nil |
58 |
sourceForm <Form> if shape is nil, the source bits |
|
59 |
maskForm <Form> if shape is nil, the mask bits |
|
60 |
hotX <SmallInteger> if shape is nil, the hotSpot x of the cursor |
|
61 |
hotY <SmallInteger> if shape is nil, the hotSpot y of the cursor |
|
62 |
device <aDevice> the device, if associated to one |
|
63 |
cursorId <anObject> the device-specific id if device is nonNil |
|
0 | 64 |
|
601 | 65 |
[class variables:] |
66 |
||
7669 | 67 |
Lobby <Registry> keeps track of known device cursors |
68 |
(don't use it: this will be moved to the device) |
|
69 |
||
70 |
DefaultFgColor <Color> default foreground color for cursors (usually black) |
|
71 |
DefaultBgColor <Color> default background color for cursors (usually white) |
|
72 |
||
73 |
NormalCursor <Cursor> cached instance of normal (arrow) cursor |
|
74 |
... |
|
0 | 75 |
|
601 | 76 |
[see also:] |
7669 | 77 |
DeviceWorkstation |
78 |
DisplaySurface |
|
79 |
Font Color Image Form |
|
80 |
( introduction to view programming :html: programming/viewintro.html#CURSOR ) |
|
611 | 81 |
|
82 |
[author:] |
|
7669 | 83 |
Claus Gittinger |
38 | 84 |
" |
144 | 85 |
! |
86 |
||
87 |
examples |
|
88 |
" |
|
5356 | 89 |
get a standard cursors: |
90 |
[exBegin] |
|
91 |
Cursor wait. |
|
92 |
Cursor stop. |
|
93 |
Cursor normal. |
|
94 |
[exEnd] |
|
144 | 95 |
|
96 |
create a custom cursor: |
|
5356 | 97 |
[exBegin] |
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
98 |
Cursor extent:16@16 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
99 |
fromArray:#[ 2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
100 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
101 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
102 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
103 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
104 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
105 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
106 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
107 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
108 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
109 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
110 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
111 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
112 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
113 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
114 |
2r00000000 2r00000000] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
115 |
offset:-8 @ -8 |
5356 | 116 |
[exEnd] |
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
117 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
118 |
some common cursors ... |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
119 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
120 |
|v b cursors nextCursorAction| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
121 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
122 |
cursors := OrderedCollection new. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
123 |
cursors add:#arrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
124 |
cursors add:#blank. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
125 |
cursors add:#bottomLeft. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
126 |
cursors add:#bottomRight. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
127 |
cursors add:#caret. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
128 |
cursors add:#corner. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
129 |
cursors add:#cross. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
130 |
cursors add:#crossHair. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
131 |
cursors add:#document. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
132 |
cursors add:#down. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
133 |
cursors add:#downLimitArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
134 |
cursors add:#execute. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
135 |
cursors add:#eye. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
136 |
cursors add:#folder. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
137 |
cursors add:#fourWay. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
138 |
cursors add:#hand. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
139 |
cursors add:#left. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
140 |
cursors add:#leftHand. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
141 |
cursors add:#leftLimitArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
142 |
cursors add:#leftRightArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
143 |
cursors add:#marker. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
144 |
cursors add:#normal. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
145 |
cursors add:#origin. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
146 |
cursors add:#questionMark. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
147 |
cursors add:#read. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
148 |
cursors add:#right. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
149 |
cursors add:#rightLimitArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
150 |
cursors add:#stop. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
151 |
cursors add:#text. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
152 |
cursors add:#thumbsDown. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
153 |
cursors add:#thumbsUp. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
154 |
cursors add:#topLeft. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
155 |
cursors add:#topRight. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
156 |
cursors add:#up. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
157 |
cursors add:#upDownArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
158 |
cursors add:#upLeftArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
159 |
cursors add:#upLimitArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
160 |
cursors add:#upRightArrow. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
161 |
cursors add:#upRightHand. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
162 |
cursors add:#wait. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
163 |
cursors add:#write. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
164 |
cursors add:#xMarker. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
165 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
166 |
nextCursorAction := [ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
167 |
|sel c| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
168 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
169 |
cursors isEmpty ifTrue:[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
170 |
v close. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
171 |
] ifFalse:[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
172 |
sel := cursors removeFirst. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
173 |
c := Cursor perform:sel. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
174 |
b label:sel. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
175 |
b cursor:c. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
176 |
] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
177 |
]. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
178 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
179 |
v := StandardSystemView extent:100@100. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
180 |
b := Button origin:0.0@0.0 corner:1.0@1.0 in:v. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
181 |
b label:'default'. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
182 |
b action:nextCursorAction. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
183 |
v openAndWait. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
184 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
185 |
[exEnd] |
144 | 186 |
|
187 |
define a cursor for a view: |
|
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
188 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
189 |
|v| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
190 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
191 |
v := StandardSystemView extent:100@100. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
192 |
v cursor:Cursor stop. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
193 |
v open. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
194 |
[exEnd] |
619 | 195 |
|
144 | 196 |
|
197 |
with above custom cursor: |
|
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
198 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
199 |
|v| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
200 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
201 |
v := StandardSystemView extent:100@100. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
202 |
v cursor:( |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
203 |
Cursor extent:16@16 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
204 |
fromArray:#[ 2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
205 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
206 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
207 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
208 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
209 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
210 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
211 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
212 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
213 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
214 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
215 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
216 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
217 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
218 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
219 |
2r00000000 2r00000000] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
220 |
offset:-8 @ -8). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
221 |
v open. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
222 |
[exEnd] |
1929 | 223 |
|
224 |
||
225 |
a custom cursor with mask: |
|
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
226 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
227 |
|v| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
228 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
229 |
v := StandardSystemView extent:100@100. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
230 |
v cursor:( |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
231 |
Cursor |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
232 |
extent:16@16 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
233 |
sourceArray:#[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
234 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
235 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
236 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
237 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
238 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
239 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
240 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
241 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
242 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
243 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
244 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
245 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
246 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
247 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
248 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
249 |
2r00000000 2r00000000] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
250 |
maskArray:#[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
251 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
252 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
253 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
254 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
255 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
256 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
257 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
258 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
259 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
260 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
261 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
262 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
263 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
264 |
2r11111111 2r11111111 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
265 |
2r00000000 2r00000000 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
266 |
2r00000000 2r00000000] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
267 |
offset:-8 @ -8). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
268 |
v open. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
269 |
[exEnd] |
1929 | 270 |
|
271 |
||
272 |
a cursor from an image read from a file: |
|
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
273 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
274 |
|v img| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
275 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
276 |
v := StandardSystemView extent:100@100. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
277 |
img := Image fromFile:'bitmaps/xpmBitmaps/cursors/mouse.xpm'. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
278 |
v cursor:(Cursor fromImage:img). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
279 |
v open. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
280 |
[exEnd] |
619 | 281 |
|
144 | 282 |
|
283 |
with multiple views: |
|
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
284 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
285 |
|v1 v2 top| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
286 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
287 |
top := StandardSystemView new. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
288 |
top extent:300@300. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
289 |
v1 := View origin:0.0@0.0 corner:1.0@0.5 in:top. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
290 |
v1 viewBackground:(Color grey:75). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
291 |
v1 cursor:Cursor thumbsUp. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
292 |
v2 := View origin:0.0@0.5 corner:1.0@1.0 in:top. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
293 |
v2 viewBackground:(Color white). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
294 |
v2 cursor:Cursor wait. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
295 |
top open. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
296 |
[exEnd] |
144 | 297 |
|
298 |
||
702 | 299 |
show a cursor (in the active ST/X view) for a while: |
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
300 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
301 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
302 |
Cursor wait |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
303 |
showWhile:[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
304 |
Delay waitForSeconds:5 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
305 |
] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
306 |
[exEnd] |
144 | 307 |
|
308 |
||
151 | 309 |
show a cursor in all views belonging to a windowGroup: |
310 |
(have to wait until top is visible to access windowGroup) |
|
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
311 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
312 |
|v1 v2 top| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
313 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
314 |
top := StandardSystemView new. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
315 |
top extent:300@300. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
316 |
v1 := View origin:0.0@0.0 corner:1.0@0.5 in:top. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
317 |
v1 viewBackground:(Color grey:75). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
318 |
v1 cursor:(Cursor normal). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
319 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
320 |
v2 := View origin:0.0@0.5 corner:1.0@1.0 in:top. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
321 |
v2 viewBackground:(Color white). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
322 |
v2 cursor:(Cursor crossHair). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
323 |
top openAndWait. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
324 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
325 |
Delay waitForSeconds:3. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
326 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
327 |
top windowGroup |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
328 |
withCursor:Cursor wait |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
329 |
do:[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
330 |
Delay waitForSeconds:5 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
331 |
] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
332 |
[exEnd] |
151 | 333 |
|
334 |
||
144 | 335 |
show a cursor in a single view for a while: |
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
336 |
[exBegin] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
337 |
|v1 v2 top| |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
338 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
339 |
top := StandardSystemView new. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
340 |
top extent:300@300. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
341 |
v1 := View origin:0.0@0.0 corner:1.0@0.5 in:top. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
342 |
v1 viewBackground:(Color grey:75). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
343 |
v1 cursor:(Cursor normal). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
344 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
345 |
v2 := View origin:0.0@0.5 corner:1.0@1.0 in:top. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
346 |
v2 viewBackground:(Color white). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
347 |
v2 cursor:(Cursor crossHair). |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
348 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
349 |
top openAndWait. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
350 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
351 |
Delay waitForSeconds:3. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
352 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
353 |
v1 withCursor:Cursor wait |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
354 |
do:[ |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
355 |
Delay waitForSeconds:5 |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
356 |
] |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
357 |
[exEnd] |
144 | 358 |
" |
0 | 359 |
! ! |
360 |
||
1140 | 361 |
!Cursor class methodsFor:'initialization'! |
0 | 362 |
|
2845 | 363 |
flushDeviceCursorsFor:aDevice |
0 | 364 |
"unassign all cursors from their device" |
365 |
||
2845 | 366 |
aDevice deviceCursors do:[:aCursor | |
367 |
aCursor setDevice:nil id:nil |
|
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
368 |
]. |
2845 | 369 |
aDevice releaseDeviceCursors |
370 |
||
7205 | 371 |
" |
372 |
self flushDeviceCursorsFor:Display |
|
373 |
" |
|
577 | 374 |
! |
375 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
376 |
initialize |
3218
dd321bee52a3
ensure Color-class is initialized
Claus Gittinger <cg@exept.de>
parents:
3213
diff
changeset
|
377 |
Color initialize. |
3221 | 378 |
Form initialize. |
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
379 |
self initializeNewCursors |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
380 |
|
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
381 |
" |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
382 |
Cursor initialize |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
383 |
" |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
384 |
! |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
385 |
|
1495 | 386 |
initializeNewCursors |
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
387 |
"Create additional cursors as bitmap cursors, |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
388 |
if not available as native cursors on the device. |
2844 | 389 |
This is invoked via the startup script (display.rc) |
390 |
(This is rubbish - we should keep that info on a per-device basis ...) |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
391 |
Cursor blank |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
392 |
Cursor down |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
393 |
Cursor execute |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
394 |
Cursor left |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
395 |
Cursor marker |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
396 |
Cursor normal |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
397 |
Cursor read |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
398 |
Cursor right |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
399 |
Cursor square |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
400 |
Cursor up |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
401 |
Cursor wait |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
402 |
Cursor write |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
403 |
Cursor thumbsUp |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
404 |
Cursor thumbsDown |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
405 |
Cursor xMarker |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
406 |
Cursor caret |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
407 |
Cursor stop |
3201 | 408 |
Cursor eye |
409 |
Cursor eyeClosed" |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
410 |
|
7205 | 411 |
|bits mask isWindows| |
412 |
||
413 |
"/ HandCursor := nil. |
|
3213 | 414 |
HandCursor notNil ifTrue:[^ self]. |
415 |
||
6207
265c0bb79b00
Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents:
5356
diff
changeset
|
416 |
Screen isNil ifTrue:[ |
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
417 |
isWindows := OperatingSystem isMSWINDOWSlike. |
2999
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
418 |
] ifFalse:[ |
6577 | 419 |
isWindows := Screen isWindowsPlatform. |
2999
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
420 |
]. |
1495 | 421 |
|
3066 | 422 |
HandCursor := |
7763 | 423 |
(self |
3066 | 424 |
extent: 16@16 |
425 |
sourceArray: #( |
|
426 |
2r0000000000000011 |
|
427 |
2r0000000000001111 |
|
428 |
2r0000000000111100 |
|
429 |
2r0000000001111000 |
|
430 |
2r0000000011110000 |
|
431 |
2r0000000111111000 |
|
432 |
2r0000001111111100 |
|
433 |
2r0000001111111000 |
|
434 |
2r0001111111111100 |
|
435 |
2r0011011111111100 |
|
436 |
2r0110000111111000 |
|
437 |
2r0110000111110000 |
|
438 |
2r0011001010000000 |
|
439 |
2r0001100010000000 |
|
440 |
2r0000110100000000 |
|
441 |
2r0000011000000000) |
|
442 |
maskArray: #( |
|
443 |
2r0000000000000011 |
|
444 |
2r0000000000001111 |
|
445 |
2r0000000000111100 |
|
446 |
2r0000000001111000 |
|
447 |
2r0000000011110000 |
|
448 |
2r0000000111111000 |
|
449 |
2r0000001111111100 |
|
450 |
2r0000001111111000 |
|
451 |
2r0001111111111100 |
|
452 |
2r0011011111111100 |
|
453 |
2r0110000111111000 |
|
454 |
2r0110000111110000 |
|
455 |
2r0011001010000000 |
|
456 |
2r0001100010000000 |
|
457 |
2r0000110100000000 |
|
458 |
2r0000011000000000) |
|
459 |
offset: 0@ -15). |
|
460 |
HandCursor setShape:#upRightHand. |
|
461 |
||
462 |
FolderCursor := |
|
7763 | 463 |
(self |
3066 | 464 |
extent: 16@16 |
465 |
sourceArray: #( |
|
466 |
2r0000000000000000 |
|
467 |
2r0011111000000000 |
|
468 |
2r0100000100000000 |
|
469 |
2r1111111111111110 |
|
470 |
2r1000000000000001 |
|
471 |
2r1000000000000001 |
|
472 |
2r1000000000000001 |
|
473 |
2r1000000000000001 |
|
474 |
2r1000000000000001 |
|
475 |
2r1000000000000001 |
|
476 |
2r1000000000000001 |
|
477 |
2r1000000000000001 |
|
478 |
2r1000000000000001 |
|
479 |
2r1010101010101011 |
|
480 |
2r0111111111111111 |
|
481 |
2r0000000000000000) |
|
482 |
maskArray: #( |
|
483 |
2r0000000000000000 |
|
484 |
2r0011111000000000 |
|
485 |
2r0111111100000000 |
|
486 |
2r1111111111111110 |
|
487 |
2r1111111111111111 |
|
488 |
2r1111111111111111 |
|
489 |
2r1111111111111111 |
|
490 |
2r1111111111111111 |
|
491 |
2r1111111111111111 |
|
492 |
2r1111111111111111 |
|
493 |
2r1111111111111111 |
|
494 |
2r1111111111111111 |
|
495 |
2r1111111111111111 |
|
496 |
2r1111111111111111 |
|
497 |
2r0111111111111111 |
|
498 |
2r0000000000000000) |
|
499 |
offset: 0@ -3). |
|
500 |
||
501 |
DocumentCursor := |
|
7763 | 502 |
(self |
3066 | 503 |
extent: 16@16 |
504 |
sourceArray: #( |
|
505 |
2r0000000000000000 |
|
506 |
2r0011111111100000 |
|
507 |
2r0010000000110000 |
|
508 |
2r0010000000101000 |
|
509 |
2r0010000000111100 |
|
510 |
2r0010000000000100 |
|
511 |
2r0010000000000100 |
|
512 |
2r0010000000000100 |
|
513 |
2r0010000000000100 |
|
514 |
2r0010000000000100 |
|
515 |
2r0010000000000100 |
|
516 |
2r0010000000000100 |
|
517 |
2r0010000000000100 |
|
518 |
2r0010000000000100 |
|
519 |
2r0011111111111100 |
|
520 |
2r0000000000000000) |
|
521 |
maskArray: #( |
|
522 |
2r0000000000000000 |
|
523 |
2r0011111111100000 |
|
524 |
2r0011111111110000 |
|
525 |
2r0011111111111000 |
|
526 |
2r0011111111111100 |
|
527 |
2r0011111111111100 |
|
528 |
2r0011111111111100 |
|
529 |
2r0011111111111100 |
|
530 |
2r0011111111111100 |
|
531 |
2r0011111111111100 |
|
532 |
2r0011111111111100 |
|
533 |
2r0011111111111100 |
|
534 |
2r0011111111111100 |
|
535 |
2r0011111111111100 |
|
536 |
2r0011111111111100 |
|
537 |
2r0000000000000000) |
|
538 |
offset: -2@ -1). |
|
539 |
||
5264 | 540 |
"/ OriginCursor := |
541 |
"/ (Cursor |
|
542 |
"/ extent: 16@16 |
|
543 |
"/ sourceArray: #( |
|
544 |
"/ 2r0000000000000000 |
|
545 |
"/ 2r0111111111111111 |
|
546 |
"/ 2r0111111111111111 |
|
547 |
"/ 2r0110000000000000 |
|
548 |
"/ 2r0110000000000000 |
|
549 |
"/ 2r0110000000000000 |
|
550 |
"/ 2r0110000000000000 |
|
551 |
"/ 2r0110000000000000 |
|
552 |
"/ 2r0110000000000000 |
|
553 |
"/ 2r0110000000000000 |
|
554 |
"/ 2r0110000000000000 |
|
555 |
"/ 2r0110000000000000 |
|
556 |
"/ 2r0110000000000000 |
|
557 |
"/ 2r0110000000000000 |
|
558 |
"/ 2r0110000000000000 |
|
559 |
"/ 2r0110000000000000) |
|
560 |
"/ maskArray: #( |
|
561 |
"/ 2r1111111111111111 |
|
562 |
"/ 2r1111111111111111 |
|
563 |
"/ 2r1111111111111111 |
|
564 |
"/ 2r1111111111111111 |
|
565 |
"/ 2r1111000000000000 |
|
566 |
"/ 2r1111000000000000 |
|
567 |
"/ 2r1111000000000000 |
|
568 |
"/ 2r1111000000000000 |
|
569 |
"/ 2r1111000000000000 |
|
570 |
"/ 2r1111000000000000 |
|
571 |
"/ 2r1111000000000000 |
|
572 |
"/ 2r1111000000000000 |
|
573 |
"/ 2r1111000000000000 |
|
574 |
"/ 2r1111000000000000 |
|
575 |
"/ 2r1111000000000000 |
|
576 |
"/ 2r1111000000000000) |
|
577 |
"/ offset: -1@ -1). |
|
578 |
"/ OriginCursor setShape:#origin. |
|
579 |
||
3066 | 580 |
OriginCursor := |
7763 | 581 |
(self |
3066 | 582 |
extent: 16@16 |
583 |
sourceArray: #( |
|
5264 | 584 |
2r1111111111111110 |
585 |
2r1000000000000010 |
|
586 |
2r1000000000000010 |
|
587 |
2r1001111111111110 |
|
588 |
2r1001000000000000 |
|
589 |
2r1001000000000000 |
|
590 |
2r1001000000000000 |
|
591 |
2r1001000000000000 |
|
592 |
2r1001000000000000 |
|
593 |
2r1001000000000000 |
|
594 |
2r1001000000000000 |
|
595 |
2r1001000000000000 |
|
596 |
2r1001000000000000 |
|
597 |
2r1001000000000000 |
|
598 |
2r1111000000000000 |
|
599 |
2r0000000000000000) |
|
3066 | 600 |
maskArray: #( |
5264 | 601 |
2r1111111111111110 |
602 |
2r1111111111111110 |
|
603 |
2r1111111111111110 |
|
604 |
2r1111111111111110 |
|
3066 | 605 |
2r1111000000000000 |
606 |
2r1111000000000000 |
|
607 |
2r1111000000000000 |
|
608 |
2r1111000000000000 |
|
609 |
2r1111000000000000 |
|
610 |
2r1111000000000000 |
|
611 |
2r1111000000000000 |
|
612 |
2r1111000000000000 |
|
613 |
2r1111000000000000 |
|
614 |
2r1111000000000000 |
|
615 |
2r1111000000000000 |
|
5264 | 616 |
2r0000000000000000) |
3066 | 617 |
offset: -1@ -1). |
618 |
OriginCursor setShape:#origin. |
|
619 |
||
5264 | 620 |
"/ TopRightCornerCursor := |
7763 | 621 |
"/ (self |
5264 | 622 |
"/ extent: 16@16 |
623 |
"/ sourceArray: #( |
|
624 |
"/ 2r0000000000000000 |
|
625 |
"/ 2r0111111111111111 |
|
626 |
"/ 2r0111111111111111 |
|
627 |
"/ 2r0000000000000110 |
|
628 |
"/ 2r0000000000000110 |
|
629 |
"/ 2r0000000000000110 |
|
630 |
"/ 2r0000000000000110 |
|
631 |
"/ 2r0000000000000110 |
|
632 |
"/ 2r0000000000000110 |
|
633 |
"/ 2r0000000000000110 |
|
634 |
"/ 2r0000000000000110 |
|
635 |
"/ 2r0000000000000110 |
|
636 |
"/ 2r0000000000000110 |
|
637 |
"/ 2r0000000000000110 |
|
638 |
"/ 2r0000000000000110 |
|
639 |
"/ 2r0000000000000110) |
|
640 |
"/ maskArray: #( |
|
641 |
"/ 2r1111111111111111 |
|
642 |
"/ 2r1111111111111111 |
|
643 |
"/ 2r1111111111111111 |
|
644 |
"/ 2r1111111111111111 |
|
645 |
"/ 2r0000000000001111 |
|
646 |
"/ 2r0000000000001111 |
|
647 |
"/ 2r0000000000001111 |
|
648 |
"/ 2r0000000000001111 |
|
649 |
"/ 2r0000000000001111 |
|
650 |
"/ 2r0000000000001111 |
|
651 |
"/ 2r0000000000001111 |
|
652 |
"/ 2r0000000000001111 |
|
653 |
"/ 2r0000000000001111 |
|
654 |
"/ 2r0000000000001111 |
|
655 |
"/ 2r0000000000001111 |
|
656 |
"/ 2r0000000000001111) |
|
657 |
"/ offset: -14@ -1). |
|
658 |
"/ TopRightCornerCursor setShape:#topRightCorner. |
|
659 |
||
3066 | 660 |
TopRightCornerCursor := |
7763 | 661 |
(self |
3066 | 662 |
extent: 16@16 |
663 |
sourceArray: #( |
|
5264 | 664 |
2r0111111111111111 |
665 |
2r0100000000000001 |
|
666 |
2r0100000000000001 |
|
667 |
2r0111111111111001 |
|
668 |
2r0000000000001001 |
|
669 |
2r0000000000001001 |
|
670 |
2r0000000000001001 |
|
671 |
2r0000000000001001 |
|
672 |
2r0000000000001001 |
|
673 |
2r0000000000001001 |
|
674 |
2r0000000000001001 |
|
675 |
2r0000000000001001 |
|
676 |
2r0000000000001001 |
|
677 |
2r0000000000001001 |
|
678 |
2r0000000000001111 |
|
679 |
2r0000000000000000) |
|
680 |
maskArray: #( |
|
3066 | 681 |
2r0111111111111111 |
682 |
2r0111111111111111 |
|
5264 | 683 |
2r0111111111111111 |
684 |
2r0111111111111111 |
|
3066 | 685 |
2r0000000000001111 |
686 |
2r0000000000001111 |
|
687 |
2r0000000000001111 |
|
688 |
2r0000000000001111 |
|
689 |
2r0000000000001111 |
|
690 |
2r0000000000001111 |
|
691 |
2r0000000000001111 |
|
692 |
2r0000000000001111 |
|
693 |
2r0000000000001111 |
|
694 |
2r0000000000001111 |
|
695 |
2r0000000000001111 |
|
5264 | 696 |
2r0000000000000000) |
3071 | 697 |
offset: -14@ -1). |
3066 | 698 |
TopRightCornerCursor setShape:#topRightCorner. |
699 |
||
5264 | 700 |
"/ CornerCursor := |
7763 | 701 |
"/ (self |
5264 | 702 |
"/ extent: 16@16 |
703 |
"/ sourceArray: #( |
|
704 |
"/ 2r0000000000000110 |
|
705 |
"/ 2r0000000000000110 |
|
706 |
"/ 2r0000000000000110 |
|
707 |
"/ 2r0000000000000110 |
|
708 |
"/ 2r0000000000000110 |
|
709 |
"/ 2r0000000000000110 |
|
710 |
"/ 2r0000000000000110 |
|
711 |
"/ 2r0000000000000110 |
|
712 |
"/ 2r0000000000000110 |
|
713 |
"/ 2r0000000000000110 |
|
714 |
"/ 2r0000000000000110 |
|
715 |
"/ 2r0000000000000110 |
|
716 |
"/ 2r0000000000000110 |
|
717 |
"/ 2r1111111111111110 |
|
718 |
"/ 2r1111111111111110 |
|
719 |
"/ 2r0000000000000000) |
|
720 |
"/ maskArray: #( |
|
721 |
"/ 2r0000000000001111 |
|
722 |
"/ 2r0000000000001111 |
|
723 |
"/ 2r0000000000001111 |
|
724 |
"/ 2r0000000000001111 |
|
725 |
"/ 2r0000000000001111 |
|
726 |
"/ 2r0000000000001111 |
|
727 |
"/ 2r0000000000001111 |
|
728 |
"/ 2r0000000000001111 |
|
729 |
"/ 2r0000000000001111 |
|
730 |
"/ 2r0000000000001111 |
|
731 |
"/ 2r0000000000001111 |
|
732 |
"/ 2r0000000000001111 |
|
733 |
"/ 2r1111111111111111 |
|
734 |
"/ 2r1111111111111111 |
|
735 |
"/ 2r1111111111111111 |
|
736 |
"/ 2r1111111111111111) |
|
737 |
"/ offset: -14@ -14). |
|
738 |
"/ CornerCursor setShape:#corner. |
|
739 |
||
3066 | 740 |
CornerCursor := |
7763 | 741 |
(self |
3066 | 742 |
extent: 16@16 |
743 |
sourceArray: #( |
|
5264 | 744 |
2r0000000000000000 |
745 |
2r0000000000001111 |
|
746 |
2r0000000000001001 |
|
747 |
2r0000000000001001 |
|
748 |
2r0000000000001001 |
|
749 |
2r0000000000001001 |
|
750 |
2r0000000000001001 |
|
751 |
2r0000000000001001 |
|
752 |
2r0000000000001001 |
|
753 |
2r0000000000001001 |
|
754 |
2r0000000000001001 |
|
755 |
2r0000000000001001 |
|
756 |
2r0111111111111001 |
|
757 |
2r0100000000000001 |
|
758 |
2r0100000000000001 |
|
759 |
2r0111111111111111) |
|
3066 | 760 |
maskArray: #( |
5264 | 761 |
2r0000000000000000 |
3066 | 762 |
2r0000000000001111 |
763 |
2r0000000000001111 |
|
764 |
2r0000000000001111 |
|
765 |
2r0000000000001111 |
|
766 |
2r0000000000001111 |
|
767 |
2r0000000000001111 |
|
768 |
2r0000000000001111 |
|
769 |
2r0000000000001111 |
|
770 |
2r0000000000001111 |
|
771 |
2r0000000000001111 |
|
772 |
2r0000000000001111 |
|
5264 | 773 |
2r0111111111111111 |
774 |
2r0111111111111111 |
|
775 |
2r0111111111111111 |
|
776 |
2r0111111111111111) |
|
3066 | 777 |
offset: -14@ -14). |
778 |
CornerCursor setShape:#corner. |
|
779 |
||
5264 | 780 |
"/ BottomLeftCornerCursor := |
781 |
"/ (Cursor |
|
782 |
"/ extent: 16@16 |
|
783 |
"/ sourceArray: #( |
|
784 |
"/ 2r0110000000000000 |
|
785 |
"/ 2r0110000000000000 |
|
786 |
"/ 2r0110000000000000 |
|
787 |
"/ 2r0110000000000000 |
|
788 |
"/ 2r0110000000000000 |
|
789 |
"/ 2r0110000000000000 |
|
790 |
"/ 2r0110000000000000 |
|
791 |
"/ 2r0110000000000000 |
|
792 |
"/ 2r0110000000000000 |
|
793 |
"/ 2r0110000000000000 |
|
794 |
"/ 2r0110000000000000 |
|
795 |
"/ 2r0110000000000000 |
|
796 |
"/ 2r0110000000000000 |
|
797 |
"/ 2r0111111111111111 |
|
798 |
"/ 2r0111111111111111 |
|
799 |
"/ 2r0000000000000000) |
|
800 |
"/ maskArray: #( |
|
801 |
"/ 2r1111000000000000 |
|
802 |
"/ 2r1111000000000000 |
|
803 |
"/ 2r1111000000000000 |
|
804 |
"/ 2r1111000000000000 |
|
805 |
"/ 2r1111000000000000 |
|
806 |
"/ 2r1111000000000000 |
|
807 |
"/ 2r1111000000000000 |
|
808 |
"/ 2r1111000000000000 |
|
809 |
"/ 2r1111000000000000 |
|
810 |
"/ 2r1111000000000000 |
|
811 |
"/ 2r1111000000000000 |
|
812 |
"/ 2r1111000000000000 |
|
813 |
"/ 2r1111111111111111 |
|
814 |
"/ 2r1111111111111111 |
|
815 |
"/ 2r1111111111111111 |
|
816 |
"/ 2r1111111111111111) |
|
817 |
"/ offset: -1@ -14). |
|
818 |
"/ BottomLeftCornerCursor setShape:#bottomLeftCorner. |
|
819 |
||
3066 | 820 |
BottomLeftCornerCursor := |
7763 | 821 |
(self |
3066 | 822 |
extent: 16@16 |
823 |
sourceArray: #( |
|
5264 | 824 |
2r0000000000000000 |
825 |
2r1111000000000000 |
|
826 |
2r1001000000000000 |
|
827 |
2r1001000000000000 |
|
828 |
2r1001000000000000 |
|
829 |
2r1001000000000000 |
|
830 |
2r1001000000000000 |
|
831 |
2r1001000000000000 |
|
832 |
2r1001000000000000 |
|
833 |
2r1001000000000000 |
|
834 |
2r1001000000000000 |
|
835 |
2r1001000000000000 |
|
836 |
2r1001111111111110 |
|
837 |
2r1000000000000010 |
|
838 |
2r1000000000000010 |
|
839 |
2r1111111111111110) |
|
3066 | 840 |
maskArray: #( |
5264 | 841 |
2r0000000000000000 |
3066 | 842 |
2r1111000000000000 |
843 |
2r1111000000000000 |
|
844 |
2r1111000000000000 |
|
845 |
2r1111000000000000 |
|
846 |
2r1111000000000000 |
|
847 |
2r1111000000000000 |
|
848 |
2r1111000000000000 |
|
849 |
2r1111000000000000 |
|
850 |
2r1111000000000000 |
|
851 |
2r1111000000000000 |
|
852 |
2r1111000000000000 |
|
5264 | 853 |
2r1111111111111110 |
854 |
2r1111111111111110 |
|
855 |
2r1111111111111110 |
|
856 |
2r1111111111111110) |
|
3071 | 857 |
offset: -1@ -14). |
3066 | 858 |
BottomLeftCornerCursor setShape:#bottomLeftCorner. |
859 |
||
860 |
ReadCursor := (Cursor |
|
861 |
extent: 16@16 |
|
862 |
sourceArray: #( |
|
863 |
2r0 |
|
864 |
2r0000110000000110 |
|
865 |
2r0001001000001001 |
|
866 |
2r0001001000001001 |
|
867 |
2r0010000000010000 |
|
868 |
2r0100000000100000 |
|
869 |
2r1111101111100000 |
|
870 |
2r1000010000100000 |
|
871 |
2r1000010000100000 |
|
872 |
2r1011010110100000 |
|
873 |
2r0111101111000000 |
|
874 |
2r0000000000000000 |
|
875 |
2r0000000000000000 |
|
876 |
2r0000000000000000 |
|
877 |
2r0000000000000000 |
|
878 |
2r0000000000000000) |
|
879 |
maskArray: #( |
|
880 |
2r0001111000001111 |
|
881 |
2r0001111000011111 |
|
882 |
2r0011111000011111 |
|
883 |
2r0011100000111100 |
|
884 |
2r0111000000111000 |
|
885 |
2r1111111111110000 |
|
886 |
2r1111111111110000 |
|
887 |
2r1111111111110000 |
|
888 |
2r1111111111110000 |
|
889 |
2r1111111111110000 |
|
890 |
2r1111111111100000 |
|
891 |
2r0111111111000000 |
|
892 |
2r0000000000000000 |
|
893 |
2r0000000000000000 |
|
894 |
2r0000000000000000 |
|
895 |
2r0000000000000000) |
|
896 |
offset: -5 @ -7). |
|
897 |
ReadCursor setShape:#read. |
|
898 |
||
899 |
WriteCursor := (Cursor |
|
900 |
extent: 16@16 |
|
901 |
sourceArray: #( |
|
902 |
2r0000000000000110 |
|
903 |
2r0000000000001111 |
|
904 |
2r0000000000010110 |
|
905 |
2r0000000000100100 |
|
906 |
2r0000000001001000 |
|
907 |
2r0000000010010000 |
|
908 |
2r0000000100100000 |
|
909 |
2r0000001001000011 |
|
910 |
2r0000010010000010 |
|
911 |
2r0000100100000110 |
|
912 |
2r0001001000001000 |
|
913 |
2r0010010000001000 |
|
914 |
2r0111100001001000 |
|
915 |
2r0101000010111000 |
|
916 |
2r0110000110000000 |
|
917 |
2r1111111100000000) |
|
918 |
maskArray: #( |
|
919 |
2r0000000000000111 |
|
920 |
2r0000000000001111 |
|
921 |
2r0000000000011110 |
|
922 |
2r0000000000111100 |
|
923 |
2r0000000001111000 |
|
924 |
2r0000000011110000 |
|
925 |
2r0000000111100001 |
|
926 |
2r0000001111000110 |
|
927 |
2r0000011110000110 |
|
928 |
2r0000111100001110 |
|
929 |
2r0001111000001100 |
|
930 |
2r0011110001001100 |
|
931 |
2r0111100011111000 |
|
932 |
2r0111000110111000 |
|
933 |
2r0111111110000000 |
|
934 |
2r1111111100000000) |
|
935 |
offset: 0@ -15). |
|
936 |
WriteCursor setShape:#write. |
|
937 |
||
938 |
WaitCursor := |
|
7763 | 939 |
(self |
3066 | 940 |
extent: 16@16 |
941 |
sourceArray: #( |
|
942 |
2r1111111111111111 |
|
943 |
2r1000000000000001 |
|
944 |
2r0100000000000010 |
|
945 |
2r0010000000000100 |
|
946 |
2r0001110000111000 |
|
947 |
2r0000111101110000 |
|
948 |
2r0000011011100000 |
|
949 |
2r0000001111000000 |
|
950 |
2r0000001111000000 |
|
951 |
2r0000010110100000 |
|
952 |
2r0000100010010000 |
|
953 |
2r0001000110001000 |
|
954 |
2r0010001101000100 |
|
955 |
2r0100111111110010 |
|
956 |
2r1011111111111101 |
|
957 |
2r1111111111111111) |
|
958 |
maskArray: #( |
|
959 |
2r1111111111111111 |
|
960 |
2r1111111111111111 |
|
961 |
2r1111111111111111 |
|
962 |
2r0111111111111110 |
|
963 |
2r0011111111111100 |
|
964 |
2r0001111111111000 |
|
965 |
2r0000111111110000 |
|
966 |
2r0000011111100000 |
|
967 |
2r0000011111100000 |
|
968 |
2r0000111111110000 |
|
969 |
2r0001111111111000 |
|
970 |
2r0011111111111100 |
|
971 |
2r0111111111111110 |
|
972 |
2r1111111111111111 |
|
973 |
2r1111111111111111 |
|
974 |
2r1111111111111111) |
|
975 |
offset: -8@ -8). |
|
976 |
WaitCursor setShape:#wait. |
|
977 |
||
978 |
BlankCursor := |
|
7763 | 979 |
(self |
3066 | 980 |
extent: 16@16 |
981 |
fromArray: #( |
|
982 |
2r0000000000000000 |
|
983 |
2r0000000000000000 |
|
984 |
2r0000000000000000 |
|
985 |
2r0000000000000000 |
|
986 |
2r0000000000000000 |
|
987 |
2r0000000000000000 |
|
988 |
2r0000000000000000 |
|
989 |
2r0000000000000000 |
|
990 |
2r0000000000000000 |
|
991 |
2r0000000000000000 |
|
992 |
2r0000000000000000 |
|
993 |
2r0000000000000000 |
|
994 |
2r0000000000000000 |
|
995 |
2r0000000000000000 |
|
996 |
2r0000000000000000 |
|
997 |
2r0000000000000000) |
|
998 |
offset: 0@0). |
|
999 |
BlankCursor setShape:#blank. |
|
1000 |
||
1001 |
XeqCursor := |
|
7763 | 1002 |
(self |
3066 | 1003 |
extent: 16@16 |
1004 |
sourceArray: #( |
|
1005 |
2r1000000000010000 |
|
1006 |
2r1100000000010000 |
|
1007 |
2r1110000000111000 |
|
1008 |
2r1111000111111111 |
|
1009 |
2r1111100011000110 |
|
1010 |
2r1111110001000100 |
|
1011 |
2r1111111001111100 |
|
1012 |
2r1111000001101100 |
|
1013 |
2r1101100011000110 |
|
1014 |
2r1001100010000010 |
|
1015 |
2r0000110000000000 |
|
1016 |
2r0000110000000000 |
|
1017 |
2r0000011000000000 |
|
1018 |
2r0000011000000000 |
|
1019 |
2r0000001100000000 |
|
1020 |
2r0000001100000000) |
|
1021 |
maskArray: #( |
|
1022 |
2r1100000000111000 |
|
1023 |
2r1110000000111000 |
|
1024 |
2r1111000111111111 |
|
1025 |
2r1111100111111111 |
|
1026 |
2r1111110011111111 |
|
1027 |
2r1111111001111110 |
|
1028 |
2r1111111101111100 |
|
1029 |
2r1111100001111110 |
|
1030 |
2r1101110011100111 |
|
1031 |
2r1001110011000010 |
|
1032 |
2r0000111000000000 |
|
1033 |
2r0000111000000000 |
|
1034 |
2r0000011100000000 |
|
1035 |
2r0000011100000000 |
|
1036 |
2r0000001110000000 |
|
1037 |
2r0000001110000000) |
|
1038 |
offset: 0@0). |
|
1039 |
XeqCursor setShape:#execute. |
|
1040 |
||
1041 |
SquareCursor := |
|
7763 | 1042 |
(self |
3066 | 1043 |
extent: 16@16 |
1044 |
fromArray: #( |
|
1045 |
2r0000000000000000 |
|
1046 |
2r0000000000000000 |
|
1047 |
2r0000000000000000 |
|
1048 |
2r0000000000000000 |
|
1049 |
2r0000000000000000 |
|
1050 |
2r0000001111000000 |
|
1051 |
2r0000001111000000 |
|
1052 |
2r0000001111000000 |
|
1053 |
2r0000001111000000 |
|
1054 |
2r0000000000000000 |
|
1055 |
2r0000000000000000 |
|
1056 |
2r0000000000000000 |
|
1057 |
2r0000000000000000 |
|
1058 |
2r0000000000000000 |
|
1059 |
2r0000000000000000 |
|
1060 |
2r0000000000000000) |
|
1061 |
offset: -8@ -8). |
|
1062 |
SquareCursor setShape:#square. |
|
1063 |
||
1064 |
NormalCursor := |
|
7763 | 1065 |
(self |
3066 | 1066 |
extent: 16@16 |
1067 |
sourceArray: #( |
|
1068 |
2r1000000000000000 |
|
1069 |
2r1100000000000000 |
|
1070 |
2r1110000000000000 |
|
1071 |
2r1111000000000000 |
|
1072 |
2r1111100000000000 |
|
1073 |
2r1111110000000000 |
|
1074 |
2r1111111000000000 |
|
1075 |
2r1111100000000000 |
|
1076 |
2r1111100000000000 |
|
1077 |
2r1001100000000000 |
|
1078 |
2r0000110000000000 |
|
1079 |
2r0000110000000000 |
|
1080 |
2r0000011000000000 |
|
1081 |
2r0000011000000000 |
|
1082 |
2r0000001100000000 |
|
1083 |
2r0000001100000000) |
|
1084 |
maskArray: #( |
|
1085 |
2r1100000000000000 |
|
1086 |
2r1110000000000000 |
|
1087 |
2r1111000000000000 |
|
1088 |
2r1111100000000000 |
|
1089 |
2r1111110000000000 |
|
1090 |
2r1111111000000000 |
|
1091 |
2r1111111100000000 |
|
1092 |
2r1111110000000000 |
|
1093 |
2r1111110000000000 |
|
1094 |
2r1001110000000000 |
|
1095 |
2r0000111000000000 |
|
1096 |
2r0000111000000000 |
|
1097 |
2r0000011100000000 |
|
1098 |
2r0000011100000000 |
|
1099 |
2r0000001110000000 |
|
1100 |
2r0000001110000000) |
|
1101 |
offset: 0@0). |
|
1102 |
NormalCursor setShape:#upLeftArrow. |
|
1103 |
||
3111 | 1104 |
UpDownArrowCursor := |
7763 | 1105 |
(self |
3111 | 1106 |
extent: 16@16 |
1107 |
sourceArray: #( |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1108 |
2r0000000110000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1109 |
2r0000001111000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1110 |
2r0000011111100000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1111 |
2r0000111111110000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1112 |
2r0000000110000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1113 |
2r0000000110000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1114 |
2r0000000000000000 |
3111 | 1115 |
2r0111111111111110 |
1116 |
2r0111111111111110 |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1117 |
2r0000000000000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1118 |
2r0000000110000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1119 |
2r0000000110000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1120 |
2r0000111111110000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1121 |
2r0000011111100000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1122 |
2r0000001111000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1123 |
2r0000000110000000) |
3111 | 1124 |
maskArray: #( |
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1125 |
2r0000001111000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1126 |
2r0000011111100000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1127 |
2r0000111111110000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1128 |
2r0001111111111000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1129 |
2r0001111111111000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1130 |
2r0000001111000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1131 |
2r1111111111111111 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1132 |
2r1111111111111111 |
3111 | 1133 |
2r1111111111111111 |
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1134 |
2r1111111111111111 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1135 |
2r0000001111000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1136 |
2r0001111111111000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1137 |
2r0001111111111000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1138 |
2r0000111111110000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1139 |
2r0000011111100000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1140 |
2r0000001111000000 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1141 |
|
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1142 |
) |
3111 | 1143 |
offset: -7@ -7). |
1144 |
UpDownArrowCursor setShape:#upDownArrow. |
|
1145 |
||
1146 |
LeftRightArrowCursor := |
|
7763 | 1147 |
(self |
3111 | 1148 |
extent: 16@16 |
1149 |
sourceArray: #( |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1150 |
2r0000000000000000 |
3111 | 1151 |
2r0000000110000000 |
1152 |
2r0000000110000000 |
|
1153 |
2r0000000110000000 |
|
1154 |
2r0001000110001000 |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1155 |
2r0011000110001100 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1156 |
2r0111000110001110 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1157 |
2r1111110110111111 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1158 |
2r1111110110111111 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1159 |
2r0111000110001110 |
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1160 |
2r0011000110001100 |
3111 | 1161 |
2r0001000110001000 |
1162 |
2r0000000110000000 |
|
1163 |
2r0000000110000000 |
|
1164 |
2r0000000110000000 |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1165 |
2r0000000000000000) |
3111 | 1166 |
maskArray: #( |
1167 |
2r0000001111000000 |
|
1168 |
2r0000001111000000 |
|
1169 |
2r0000001111000000 |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1170 |
2r0001101111011000 |
3111 | 1171 |
2r0011101111011100 |
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1172 |
2r0111111111111110 |
3111 | 1173 |
2r1111111111111111 |
1174 |
2r1111111111111111 |
|
1175 |
2r1111111111111111 |
|
1176 |
2r1111111111111111 |
|
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1177 |
2r0111111111111110 |
3111 | 1178 |
2r0011101111011100 |
3115
ad3466d7b61f
better upDown / leftRight cursors
Claus Gittinger <cg@exept.de>
parents:
3114
diff
changeset
|
1179 |
2r0011101111011100 |
3111 | 1180 |
2r0000001111000000 |
1181 |
2r0000001111000000 |
|
1182 |
2r0000001111000000) |
|
1183 |
offset: -7@ -7). |
|
1184 |
LeftRightArrowCursor setShape:#leftRightArrow. |
|
1185 |
||
1186 |
||
3066 | 1187 |
CrossHairCursor := |
7763 | 1188 |
(self |
3066 | 1189 |
extent: 16@16 |
1190 |
sourceArray: #( |
|
1191 |
2r0000000100000000 |
|
1192 |
2r0000000100000000 |
|
1193 |
2r0000000100000000 |
|
1194 |
2r0000000100000000 |
|
1195 |
2r0000000100000000 |
|
1196 |
2r0000000100000000 |
|
1197 |
2r0000000100000000 |
|
1198 |
2r1111111111111110 |
|
1199 |
2r0000000100000000 |
|
1200 |
2r0000000100000000 |
|
1201 |
2r0000000100000000 |
|
1202 |
2r0000000100000000 |
|
1203 |
2r0000000100000000 |
|
1204 |
2r0000000100000000 |
|
1205 |
2r0000000100000000 |
|
1206 |
2r0) |
|
1207 |
maskArray: #( |
|
1208 |
2r0000000110000000 |
|
1209 |
2r0000000110000000 |
|
1210 |
2r0000000110000000 |
|
1211 |
2r0000000110000000 |
|
1212 |
2r0000000110000000 |
|
1213 |
2r0000000110000000 |
|
1214 |
2r0000000110000000 |
|
1215 |
2r1111111111111110 |
|
1216 |
2r1111111111111110 |
|
1217 |
2r0000000110000000 |
|
1218 |
2r0000000110000000 |
|
1219 |
2r0000000110000000 |
|
1220 |
2r0000000110000000 |
|
1221 |
2r0000000110000000 |
|
1222 |
2r0000000110000000 |
|
1223 |
2r0) |
|
1224 |
offset: -7@ -7). |
|
3085
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
1225 |
CrossHairCursor setShape:#crossHair. |
3066 | 1226 |
|
1227 |
CrossCursor := |
|
7763 | 1228 |
(self |
3066 | 1229 |
extent: 16@16 |
1230 |
sourceArray: #( |
|
1231 |
2r0000000000000000 |
|
1232 |
2r0110000000001100 |
|
1233 |
2r0111000000011100 |
|
1234 |
2r0011100000111000 |
|
1235 |
2r0001110001110000 |
|
1236 |
2r0000111011100000 |
|
1237 |
2r0000011111000000 |
|
1238 |
2r0000001110000000 |
|
1239 |
2r0000011111000000 |
|
1240 |
2r0000111011100000 |
|
1241 |
2r0001110001110000 |
|
1242 |
2r0011100000111000 |
|
1243 |
2r0111000000011100 |
|
1244 |
2r0110000000001100 |
|
1245 |
2r0000000000000000 |
|
1246 |
2r0) |
|
1247 |
maskArray: #( |
|
1248 |
2r1110000000001110 |
|
1249 |
2r1111000000011110 |
|
1250 |
2r1111100000111110 |
|
1251 |
2r0111110001111100 |
|
1252 |
2r0011111011111000 |
|
1253 |
2r0001111111110000 |
|
1254 |
2r0000111111100000 |
|
1255 |
2r0000011111000000 |
|
1256 |
2r0000111111100000 |
|
1257 |
2r0001111111110000 |
|
1258 |
2r0011111011111000 |
|
1259 |
2r0111110001111100 |
|
1260 |
2r1111100000111110 |
|
1261 |
2r1111000000011110 |
|
1262 |
2r1110000000001110 |
|
1263 |
2r0) |
|
1264 |
offset: -7@ -7). |
|
1265 |
CrossCursor setShape:#cross. |
|
1266 |
||
1267 |
RightLimitCursor := |
|
7763 | 1268 |
self |
3066 | 1269 |
extent: 16@16 |
1270 |
sourceArray: #( |
|
1271 |
2r0000000000000110 |
|
1272 |
2r0000000000000110 |
|
1273 |
2r0000000000000110 |
|
1274 |
2r0000001000000110 |
|
1275 |
2r0000001110000110 |
|
1276 |
2r0000001111100110 |
|
1277 |
2r0111111111111110 |
|
1278 |
2r0111111111111110 |
|
1279 |
2r0111111111111110 |
|
1280 |
2r0000001111100110 |
|
1281 |
2r0000001110000110 |
|
1282 |
2r0000001000000110 |
|
1283 |
2r0000000000000110 |
|
1284 |
2r0000000000000110 |
|
1285 |
2r0000000000000110 |
|
1286 |
2r0000000000000110) |
|
1287 |
maskArray: #( |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1288 |
2r0000000000001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1289 |
2r0000000000001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1290 |
2r0000000000001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1291 |
2r0000011100001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1292 |
2r0000011111001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1293 |
2r1111111111111111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1294 |
2r1111111111111111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1295 |
2r1111111111111111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1296 |
2r1111111111111111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1297 |
2r1111111111111111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1298 |
2r0000011111001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1299 |
2r0000011100001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1300 |
2r0000011000001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1301 |
2r0000000000001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1302 |
2r0000000000001111 |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
1303 |
2r0000000000001111) |
3066 | 1304 |
offset: -14@ -7. |
3071 | 1305 |
RightLimitCursor setShape:#rightLimitArrow. |
3066 | 1306 |
|
1307 |
LeftLimitCursor := |
|
7763 | 1308 |
self |
3066 | 1309 |
extent: 16@16 |
1310 |
sourceArray: #( |
|
3071 | 1311 |
2r0110000000000000 |
1312 |
2r0110000000000000 |
|
1313 |
2r0110000000000000 |
|
1314 |
2r0110000001000000 |
|
1315 |
2r0110000111000000 |
|
1316 |
2r0110011111000000 |
|
1317 |
2r0111111111111110 |
|
1318 |
2r0111111111111110 |
|
1319 |
2r0111111111111110 |
|
1320 |
2r0110011111000000 |
|
1321 |
2r0110000111000000 |
|
1322 |
2r0110000001000000 |
|
1323 |
2r0110000000000000 |
|
1324 |
2r0110000000000000 |
|
1325 |
2r0110000000000000 |
|
1326 |
2r0110000000000000 |
|
1327 |
) |
|
3066 | 1328 |
maskArray: #( |
3071 | 1329 |
2r1111000000000000 |
1330 |
2r1111000000000000 |
|
1331 |
2r1111000000000000 |
|
1332 |
2r1111000011100000 |
|
1333 |
2r1111001111100000 |
|
1334 |
2r1111111111111111 |
|
1335 |
2r0111111111111111 |
|
1336 |
2r0111111111111111 |
|
1337 |
2r0111111111111111 |
|
1338 |
2r1111111111111111 |
|
1339 |
2r1111001111100000 |
|
1340 |
2r1111000011100000 |
|
1341 |
2r1111000000000000 |
|
1342 |
2r1111000000000000 |
|
1343 |
2r1111000000000000 |
|
1344 |
2r1111000000000000 |
|
1345 |
) |
|
1346 |
offset: -1@ -7. |
|
1347 |
LeftLimitCursor setShape:#leftLimitArrow. |
|
3066 | 1348 |
|
1349 |
UpLimitCursor := |
|
7763 | 1350 |
self |
3066 | 1351 |
extent: 16@16 |
1352 |
sourceArray: #( |
|
3071 | 1353 |
2r0000000000000000 |
1354 |
2r1111111111111110 |
|
1355 |
2r1111111111111110 |
|
1356 |
2r0000000100000000 |
|
1357 |
2r0000001110000000 |
|
1358 |
2r0000011111000000 |
|
1359 |
2r0000111111100000 |
|
1360 |
2r0001111111110000 |
|
1361 |
2r0000001110000000 |
|
1362 |
2r0000001110000000 |
|
1363 |
2r0000001110000000 |
|
1364 |
2r0000001110000000 |
|
1365 |
2r0000001110000000 |
|
1366 |
2r0000001110000000 |
|
1367 |
2r0000000000000000 |
|
1368 |
2r0000000000000000 |
|
1369 |
) |
|
3066 | 1370 |
maskArray: #( |
3071 | 1371 |
2r1111111111111110 |
1372 |
2r1111111111111110 |
|
1373 |
2r1111111111111110 |
|
1374 |
2r1111111111111110 |
|
1375 |
2r0000011111000000 |
|
1376 |
2r0000111111100000 |
|
1377 |
2r0001111111110000 |
|
1378 |
2r0011111111111000 |
|
1379 |
2r0011111111111000 |
|
1380 |
2r0000011111000000 |
|
1381 |
2r0000011111000000 |
|
1382 |
2r0000011111000000 |
|
1383 |
2r0000011111000000 |
|
1384 |
2r0000011111000000 |
|
1385 |
2r0000011111000000 |
|
1386 |
2r0000000000000000 |
|
1387 |
) |
|
1388 |
offset: -7@ -1. |
|
1389 |
UpLimitCursor setShape:#upLimitArrow. |
|
3066 | 1390 |
|
1391 |
DownLimitCursor := |
|
7763 | 1392 |
self |
3066 | 1393 |
extent: 16@16 |
1394 |
sourceArray: #( |
|
3071 | 1395 |
2r0000000000000000 |
1396 |
2r0000000000000000 |
|
1397 |
2r0000001110000000 |
|
1398 |
2r0000001110000000 |
|
1399 |
2r0000001110000000 |
|
1400 |
2r0000001110000000 |
|
1401 |
2r0000001110000000 |
|
1402 |
2r0000001110000000 |
|
1403 |
2r0001111111110000 |
|
1404 |
2r0000111111100000 |
|
1405 |
2r0000011111000000 |
|
1406 |
2r0000001110000000 |
|
1407 |
2r0000000100000000 |
|
1408 |
2r1111111111111110 |
|
1409 |
2r1111111111111110 |
|
1410 |
2r0000000000000000) |
|
3066 | 1411 |
maskArray: #( |
3071 | 1412 |
2r0000000000000000 |
1413 |
2r0000011111000000 |
|
1414 |
2r0000011111000000 |
|
1415 |
2r0000011111000000 |
|
1416 |
2r0000011111000000 |
|
1417 |
2r0000011111000000 |
|
1418 |
2r0000011111000000 |
|
1419 |
2r0011111111111000 |
|
1420 |
2r0011111111111000 |
|
1421 |
2r0001111111110000 |
|
1422 |
2r0000111111100000 |
|
1423 |
2r0000011111000000 |
|
1424 |
2r1111111111111110 |
|
1425 |
2r1111111111111110 |
|
1426 |
2r1111111111111110 |
|
1427 |
2r1111111111111110) |
|
1428 |
offset: -7@ -15. |
|
1429 |
DownLimitCursor setShape:#downLimitArrow. |
|
3066 | 1430 |
|
1431 |
LeftRightArrowCursor := |
|
7763 | 1432 |
self |
3066 | 1433 |
extent: 16@16 |
1434 |
sourceArray: #( |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1435 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1436 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1437 |
2r0000000000000000 |
3066 | 1438 |
2r0000100000010000 |
1439 |
2r0001100000011000 |
|
1440 |
2r0011100000011100 |
|
1441 |
2r0111111111111110 |
|
1442 |
2r1111100000011111 |
|
1443 |
2r0111111111111110 |
|
1444 |
2r0011100000011100 |
|
1445 |
2r0001100000011000 |
|
1446 |
2r0000100000010000 |
|
1447 |
2r0000000000000000 |
|
1448 |
2r0000000000000000 |
|
1449 |
2r0000000000000000 |
|
1450 |
2r0000000000000000) |
|
1451 |
maskArray: #( |
|
1452 |
2r0000000000000000 |
|
1453 |
2r0000000000000000 |
|
1454 |
2r0000000000000000 |
|
1455 |
2r0000100000010000 |
|
1456 |
2r0001100000011000 |
|
1457 |
2r0011100000011100 |
|
1458 |
2r0111111111111110 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1459 |
2r1111111111111111 |
3066 | 1460 |
2r0111111111111110 |
1461 |
2r0011100000011100 |
|
1462 |
2r0001100000011000 |
|
1463 |
2r0000100000010000 |
|
1464 |
2r0000000000000000 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1465 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1466 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1467 |
2r0000000000000000) |
3071 | 1468 |
offset: -7@ -7. |
3066 | 1469 |
LeftRightArrowCursor setShape:#leftRightArrow. |
1470 |
||
1471 |
isWindows ifTrue:[ |
|
1472 |
"/ want it white-with black boundary |
|
1473 |
bits := #( |
|
1474 |
2r1111111111111111 |
|
1475 |
2r1111111111111111 |
|
1476 |
2r1111111111111111 |
|
1477 |
2r1111110111111111 |
|
1478 |
2r1111110001111111 |
|
1479 |
2r1111110000011111 |
|
1480 |
2r1000000000000111 |
|
1481 |
2r1000000000000001 |
|
1482 |
2r1000000000000111 |
|
1483 |
2r1111110000011111 |
|
1484 |
2r1111110001111111 |
|
1485 |
2r1111110111111111 |
|
1486 |
2r1111111111111111 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1487 |
2r1111111111111111 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1488 |
2r1111111111111111 |
3066 | 1489 |
2r1111111111111111). |
1490 |
] ifFalse:[ |
|
1491 |
"/ want it black-with white boundary |
|
1492 |
bits := #( |
|
1493 |
2r0000000000000000 |
|
1494 |
2r0000000000000000 |
|
1495 |
2r0000000000000000 |
|
1496 |
2r0000001000000000 |
|
1497 |
2r0000001110000000 |
|
1498 |
2r0000001111100000 |
|
1499 |
2r0111111111111000 |
|
1500 |
2r0111111111111110 |
|
1501 |
2r0111111111111000 |
|
1502 |
2r0000001111100000 |
|
1503 |
2r0000001110000000 |
|
1504 |
2r0000001000000000 |
|
1505 |
2r0000000000000000 |
|
1506 |
2r0000000000000000 |
|
1507 |
2r0000000000000000 |
|
1508 |
2r0000000000000000). |
|
1509 |
]. |
|
1510 |
||
1511 |
MarkerCursor := |
|
7763 | 1512 |
self |
3066 | 1513 |
extent: 16@16 |
1514 |
sourceArray:bits |
|
1515 |
maskArray: #( |
|
1516 |
2r0000000000000000 |
|
1517 |
2r0000000000000000 |
|
1518 |
2r0000000000000000 |
|
1519 |
2r0000011100000000 |
|
1520 |
2r0000011111000000 |
|
1521 |
2r1111111111110000 |
|
1522 |
2r1111111111111100 |
|
1523 |
2r1111111111111111 |
|
1524 |
2r1111111111111100 |
|
1525 |
2r1111111111110000 |
|
1526 |
2r0000011111000000 |
|
1527 |
2r0000011100000000 |
|
1528 |
2r0000011000000000 |
|
1529 |
2r0000000000000000 |
|
1530 |
2r0000000000000000 |
|
1531 |
2r0000000000000000) |
|
1532 |
offset: -14@ -7. |
|
1533 |
MarkerCursor setShape:#marker. |
|
1534 |
||
1535 |
isWindows ifTrue:[ |
|
1536 |
"/ want it white-with black boundary |
|
1537 |
bits := #( |
|
1538 |
2r1111111111111111 |
|
1539 |
2r1011111111111111 |
|
1540 |
2r1001111111111111 |
|
1541 |
2r1000111111111111 |
|
1542 |
2r1000011111111111 |
|
1543 |
2r1000001111111111 |
|
1544 |
2r1000000111111111 |
|
1545 |
2r1001111111111111 |
|
1546 |
2r1001111111111111 |
|
1547 |
2r1001111111111111 |
|
1548 |
2r1001111111111111 |
|
1549 |
2r1001111111111111 |
|
1550 |
2r1001111111111111 |
|
1551 |
2r1001111111111111 |
|
1552 |
2r1001111111111111 |
|
1553 |
2r1111111111111111). |
|
1554 |
] ifFalse:[ |
|
1555 |
"/ want it black-with white boundary |
|
1556 |
bits := #( |
|
1557 |
2r0000000000000000 |
|
1558 |
2r0100000000000000 |
|
1559 |
2r0110000000000000 |
|
1560 |
2r0111000000000000 |
|
1561 |
2r0111100000000000 |
|
1562 |
2r0111110000000000 |
|
1563 |
2r0111111000000000 |
|
1564 |
2r0110000000000000 |
|
1565 |
2r0110000000000000 |
|
1566 |
2r0110000000000000 |
|
1567 |
2r0110000000000000 |
|
1568 |
2r0110000000000000 |
|
1569 |
2r0110000000000000 |
|
1570 |
2r0110000000000000 |
|
1571 |
2r0110000000000000 |
|
1572 |
2r0000000000000000). |
|
1573 |
]. |
|
1574 |
||
1575 |
UpCursor := |
|
7763 | 1576 |
self |
3066 | 1577 |
extent: 16@16 |
1578 |
sourceArray:bits |
|
1579 |
maskArray: #( |
|
1580 |
2r1100000000000000 |
|
1581 |
2r1110000000000000 |
|
1582 |
2r1111000000000000 |
|
1583 |
2r1111100000000000 |
|
1584 |
2r1111110000000000 |
|
1585 |
2r1111111000000000 |
|
1586 |
2r1111111100000000 |
|
1587 |
2r1111111100000000 |
|
1588 |
2r1111000000000000 |
|
1589 |
2r1111000000000000 |
|
1590 |
2r1111000000000000 |
|
1591 |
2r1111000000000000 |
|
1592 |
2r1111000000000000 |
|
1593 |
2r1111000000000000 |
|
1594 |
2r1111000000000000 |
|
1595 |
2r1111000000000000) |
|
1596 |
offset: -1@ -1. |
|
1597 |
UpCursor setShape:#upArrow. |
|
1598 |
||
1599 |
isWindows ifTrue:[ |
|
1600 |
"/ want it white-with black boundary |
|
1601 |
bits := #( |
|
1602 |
2r1111111111111111 |
|
1603 |
2r1111100111111111 |
|
1604 |
2r1111100111111111 |
|
1605 |
2r1111100111111111 |
|
1606 |
2r1111100111111111 |
|
1607 |
2r1111100111111111 |
|
1608 |
2r1111100111111111 |
|
1609 |
2r1111100111111111 |
|
1610 |
2r1111100111111111 |
|
1611 |
2r1000000111111111 |
|
1612 |
2r1100000111111111 |
|
1613 |
2r1110000111111111 |
|
1614 |
2r1111000111111111 |
|
1615 |
2r1111100111111111 |
|
1616 |
2r1111110111111111 |
|
1617 |
2r1111111111111111). |
|
1618 |
] ifFalse:[ |
|
1619 |
"/ want it black-with white boundary |
|
1620 |
bits := #( |
|
1621 |
2r0000000000000000 |
|
1622 |
2r0000011000000000 |
|
1623 |
2r0000011000000000 |
|
1624 |
2r0000011000000000 |
|
1625 |
2r0000011000000000 |
|
1626 |
2r0000011000000000 |
|
1627 |
2r0000011000000000 |
|
1628 |
2r0000011000000000 |
|
1629 |
2r0000011000000000 |
|
1630 |
2r0111111000000000 |
|
1631 |
2r0011111000000000 |
|
1632 |
2r0001111000000000 |
|
1633 |
2r0000111000000000 |
|
1634 |
2r0000011000000000 |
|
1635 |
2r0000001000000000 |
|
1636 |
2r0000000000000000). |
|
1637 |
]. |
|
1638 |
||
1639 |
DownCursor := |
|
7763 | 1640 |
self |
3066 | 1641 |
extent: 16@16 |
1642 |
sourceArray:bits |
|
1643 |
maskArray: #( |
|
1644 |
2r0000111100000000 |
|
1645 |
2r0000111100000000 |
|
1646 |
2r0000111100000000 |
|
1647 |
2r0000111100000000 |
|
1648 |
2r0000111100000000 |
|
1649 |
2r0000111100000000 |
|
1650 |
2r0000111100000000 |
|
1651 |
2r0000111100000000 |
|
1652 |
2r1111111100000000 |
|
1653 |
2r1111111100000000 |
|
1654 |
2r0111111100000000 |
|
1655 |
2r0011111100000000 |
|
1656 |
2r0001111100000000 |
|
1657 |
2r0000111100000000 |
|
1658 |
2r0000011100000000 |
|
1659 |
2r0000001100000000) |
|
1660 |
offset: -7@ -15. |
|
1661 |
DownCursor setShape:#downArrow. |
|
1662 |
||
1663 |
isWindows ifTrue:[ |
|
1664 |
"/ want it white-with black boundary |
|
1665 |
bits := #( |
|
1666 |
2r1111111111111111 |
|
1667 |
2r1000000000000001 |
|
1668 |
2r1100000000000001 |
|
1669 |
2r1110000111111111 |
|
1670 |
2r1111000111111111 |
|
1671 |
2r1111100111111111 |
|
1672 |
2r1111110111111111 |
|
1673 |
2r1111111111111111 |
|
1674 |
2r1111111111111111 |
|
1675 |
2r1111111111111111 |
|
1676 |
2r1111111111111111 |
|
1677 |
2r1111111111111111 |
|
1678 |
2r1111111111111111 |
|
1679 |
2r1111111111111111 |
|
1680 |
2r1111111111111111 |
|
1681 |
2r1111111111111111). |
|
1682 |
] ifFalse:[ |
|
1683 |
"/ want it black-with white boundary |
|
1684 |
bits := #( |
|
1685 |
2r0000000000000000 |
|
1686 |
2r0111111111111110 |
|
1687 |
2r0011111111111110 |
|
1688 |
2r0001111000000000 |
|
1689 |
2r0000111000000000 |
|
1690 |
2r0000011000000000 |
|
1691 |
2r0000001000000000 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1692 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1693 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1694 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1695 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1696 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1697 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1698 |
2r0000000000000000 |
3066 | 1699 |
2r0000000000000000 |
1700 |
2r0000000000000000). |
|
1701 |
]. |
|
1702 |
||
1703 |
LeftCursor := |
|
7763 | 1704 |
self |
3066 | 1705 |
extent: 16@16 |
1706 |
sourceArray:bits |
|
1707 |
maskArray: #( |
|
1708 |
2r1111111111111111 |
|
1709 |
2r1111111111111111 |
|
1710 |
2r0111111111111111 |
|
1711 |
2r0011111111111111 |
|
1712 |
2r0001111100000000 |
|
1713 |
2r0000111100000000 |
|
1714 |
2r0000011100000000 |
|
1715 |
2r0000001100000000 |
|
1716 |
2r0000000000000000 |
|
1717 |
2r0000000000000000 |
|
1718 |
2r0000000000000000 |
|
1719 |
2r0000000000000000 |
|
1720 |
2r0000000000000000 |
|
1721 |
2r0000000000000000 |
|
1722 |
2r0000000000000000 |
|
1723 |
2r0000000000000000) |
|
1724 |
offset: -1 @ -1. |
|
1725 |
LeftCursor setShape:#leftArrow. |
|
1726 |
||
1727 |
isWindows ifTrue:[ |
|
1728 |
"/ want it white-with black boundary |
|
1729 |
bits := #( |
|
1730 |
2r1111111111111111 |
|
1731 |
2r1111111110111111 |
|
1732 |
2r1111111110011111 |
|
1733 |
2r1111111110001111 |
|
1734 |
2r1111111110000111 |
|
1735 |
2r1000000000000011 |
|
1736 |
2r1000000000000001 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1737 |
2r1111111111111111 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1738 |
2r1111111111111111 |
3066 | 1739 |
2r1111111111111111 |
1740 |
2r1111111111111111 |
|
1741 |
2r1111111111111111 |
|
1742 |
2r1111111111111111 |
|
1743 |
2r1111111111111111 |
|
1744 |
2r1111111111111111 |
|
1745 |
2r1111111111111111). |
|
1746 |
] ifFalse:[ |
|
1747 |
"/ want it black-with white boundary |
|
1748 |
bits := #( |
|
1749 |
2r0000000000000000 |
|
1750 |
2r0000000001000000 |
|
1751 |
2r0000000001100000 |
|
1752 |
2r0000000001110000 |
|
1753 |
2r0000000001111000 |
|
1754 |
2r0111111111111100 |
|
1755 |
2r0111111111111110 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1756 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1757 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1758 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1759 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1760 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1761 |
2r0000000000000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1762 |
2r0000000000000000 |
3066 | 1763 |
2r0000000000000000 |
1764 |
2r0000000000000000). |
|
1765 |
]. |
|
1766 |
||
1767 |
RightCursor := |
|
7763 | 1768 |
self |
3066 | 1769 |
extent: 16@16 |
1770 |
sourceArray: bits |
|
1771 |
maskArray: #( |
|
1772 |
2r0000000011000000 |
|
1773 |
2r0000000011100000 |
|
1774 |
2r0000000011110000 |
|
1775 |
2r0000000011111000 |
|
1776 |
2r1111111111111100 |
|
1777 |
2r1111111111111110 |
|
1778 |
2r1111111111111111 |
|
1779 |
2r1111111111111111 |
|
1780 |
2r0000000000000000 |
|
1781 |
2r0000000000000000 |
|
1782 |
2r0000000000000000 |
|
1783 |
2r0000000000000000 |
|
1784 |
2r0000000000000000 |
|
1785 |
2r0000000000000000 |
|
1786 |
2r0000000000000000 |
|
1787 |
2r0000000000000000) |
|
1788 |
offset: -15@ -6. |
|
1789 |
RightCursor setShape:#rightArrow. |
|
1790 |
||
1791 |
isWindows ifTrue:[ |
|
1792 |
"/ want it white-with black boundary |
|
1793 |
bits := #( |
|
1794 |
2r1111111111111111 |
|
1795 |
2r1111111011111111 |
|
1796 |
2r1111111011111111 |
|
1797 |
2r1111110001111111 |
|
1798 |
2r1111110001111111 |
|
1799 |
2r1111100000111111 |
|
1800 |
2r1111100000111111 |
|
1801 |
2r1111000000011111 |
|
1802 |
2r1111000000011111 |
|
1803 |
2r1110000000001111 |
|
1804 |
2r1111110001111111 |
|
1805 |
2r1111110001111111 |
|
1806 |
2r1111110001111111 |
|
1807 |
2r1111110001111111 |
|
1808 |
2r1111110001111111 |
|
1809 |
2r1111111111111111). |
|
1810 |
] ifFalse:[ |
|
1811 |
"/ want it black-with white boundary |
|
1812 |
bits := #( |
|
1813 |
2r0000000000000000 |
|
1814 |
2r0000000100000000 |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1815 |
2r0000000100000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1816 |
2r0000001110000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1817 |
2r0000001110000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1818 |
2r0000011111000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1819 |
2r0000011111000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1820 |
2r0000111111100000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1821 |
2r0000111111100000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1822 |
2r0001111111110000 |
3066 | 1823 |
2r0000001110000000 |
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1824 |
2r0000001110000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1825 |
2r0000001110000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1826 |
2r0000001110000000 |
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
1827 |
2r0000001110000000 |
3066 | 1828 |
2r0000000000000000). |
1829 |
]. |
|
1830 |
||
1831 |
XMarkerCursor := |
|
7763 | 1832 |
self |
3066 | 1833 |
extent: 16@16 |
1834 |
sourceArray: bits |
|
1835 |
maskArray: #( |
|
1836 |
2r0000000100000000 |
|
1837 |
2r0000001110000000 |
|
1838 |
2r0000001110000000 |
|
1839 |
2r0000011111000000 |
|
1840 |
2r0000011111000000 |
|
1841 |
2r0000111111100000 |
|
1842 |
2r0000111111100000 |
|
1843 |
2r0001111111110000 |
|
1844 |
2r0001111111110000 |
|
1845 |
2r0011111111111000 |
|
1846 |
2r0011111111111000 |
|
1847 |
2r0000011111000000 |
|
1848 |
2r0000011111000000 |
|
1849 |
2r0000011111000000 |
|
1850 |
2r0000011111000000 |
|
1851 |
2r0000011111000000) |
|
1852 |
offset: -7@ -1. |
|
1853 |
RightCursor setShape:#xMarker. |
|
1854 |
||
1855 |
FourWayCursor := |
|
7763 | 1856 |
self |
3066 | 1857 |
extent: 16@16 |
1858 |
sourceArray: #( |
|
1859 |
2r0000000100000000 |
|
1860 |
2r0000001110000000 |
|
1861 |
2r0000011111000000 |
|
1862 |
2r0000111111100000 |
|
1863 |
2r0001001110010000 |
|
1864 |
2r0011001110011000 |
|
1865 |
2r0111111111111100 |
|
1866 |
2r1111111111111110 |
|
1867 |
2r0111111111111100 |
|
1868 |
2r0011001110011000 |
|
1869 |
2r0001001110010000 |
|
1870 |
2r0000111111100000 |
|
1871 |
2r0000011111000000 |
|
1872 |
2r0000001110000000 |
|
1873 |
2r0000000100000000 |
|
1874 |
2r0000000000000000) |
|
1875 |
maskArray: #( |
|
1876 |
2r0000001110000000 |
|
1877 |
2r0000011111000000 |
|
1878 |
2r0000111111100000 |
|
1879 |
2r0001111111110000 |
|
1880 |
2r0010111111101000 |
|
1881 |
2r0111111111111100 |
|
1882 |
2r1111111111111110 |
|
1883 |
2r1111111111111110 |
|
1884 |
2r1111111111111110 |
|
1885 |
2r0111111111111100 |
|
1886 |
2r0010111111101000 |
|
1887 |
2r0001111111110000 |
|
1888 |
2r0000111111100000 |
|
1889 |
2r0000011111000000 |
|
1890 |
2r0000001110000000 |
|
1891 |
2r0000000000000000) |
|
1892 |
offset: -7@ -7. |
|
1893 |
FourWayCursor setShape:#fourWay. |
|
1894 |
||
7763 | 1895 |
ThumbsUpCursor := (self |
3066 | 1896 |
extent: 16@16 |
1897 |
sourceArray: #( |
|
1898 |
2r0000000000100000 |
|
1899 |
2r0000000001010000 |
|
1900 |
2r0000000010010000 |
|
1901 |
2r0000000011110000 |
|
1902 |
2r0000000100010000 |
|
1903 |
2r0000000100010000 |
|
1904 |
2r0001111100011000 |
|
1905 |
2r0010000100000110 |
|
1906 |
2r0100000000000000 |
|
1907 |
2r0111111000000000 |
|
1908 |
2r0100000000000000 |
|
1909 |
2r0111111000000000 |
|
1910 |
2r0100000000000000 |
|
1911 |
2r0011111000001110 |
|
1912 |
2r0001000000010000 |
|
1913 |
2r0001111111100000) |
|
1914 |
maskArray: #( |
|
1915 |
2r0000000000100000 |
|
1916 |
2r0000000001110000 |
|
1917 |
2r0000000011110000 |
|
1918 |
2r0000000011110000 |
|
1919 |
2r0000000111110000 |
|
1920 |
2r0000000111110000 |
|
1921 |
2r0001111111111000 |
|
1922 |
2r0011111111111110 |
|
1923 |
2r0111111111111110 |
|
1924 |
2r0111111111111110 |
|
1925 |
2r0111111111111110 |
|
1926 |
2r0111111111111110 |
|
1927 |
2r0111111111111110 |
|
1928 |
2r0011111111111110 |
|
1929 |
2r0001111111110000 |
|
1930 |
2r0001111111100000) |
|
1931 |
offset: -8@ 0). |
|
1932 |
ThumbsUpCursor setShape:#thumbsUp. |
|
1933 |
||
7763 | 1934 |
CaretCursor := (self |
3066 | 1935 |
extent: 16@16 |
1936 |
sourceArray: #( |
|
1937 |
2r0000000000000000 |
|
1938 |
2r0000000110000000 |
|
1939 |
2r0000000110000000 |
|
1940 |
2r0000001111000000 |
|
1941 |
2r0000011111100000 |
|
1942 |
2r0000011001100000 |
|
1943 |
2r0000000000000000 |
|
1944 |
2r0000000000000000 |
|
1945 |
2r0000000000000000 |
|
1946 |
2r0000000000000000 |
|
1947 |
2r0000000000000000 |
|
1948 |
2r0000000000000000 |
|
1949 |
2r0000000000000000 |
|
1950 |
2r0000000000000000 |
|
1951 |
2r0000000000000000 |
|
1952 |
2r0000000000000000) |
|
1953 |
maskArray: #( |
|
1954 |
2r0000000110000000 |
|
1955 |
2r0000001111000000 |
|
1956 |
2r0000001111100000 |
|
1957 |
2r0000011111100000 |
|
1958 |
2r0000111111110000 |
|
1959 |
2r0000111111110000 |
|
1960 |
2r0000011001100000 |
|
1961 |
2r0000000000000000 |
|
1962 |
2r0000000000000000 |
|
1963 |
2r0000000000000000 |
|
1964 |
2r0000000000000000 |
|
1965 |
2r0000000000000000 |
|
1966 |
2r0000000000000000 |
|
1967 |
2r0000000000000000 |
|
1968 |
2r0000000000000000 |
|
1969 |
2r0000000000000000) |
|
1970 |
offset: -8@0). |
|
1971 |
CaretCursor setShape:#caret. |
|
1972 |
||
7763 | 1973 |
ThumbsDownCursor := (self |
3066 | 1974 |
extent: 16@16 |
1975 |
sourceArray: #( |
|
1976 |
2r0001111111100000 |
|
1977 |
2r0001000000010000 |
|
1978 |
2r0011111000001110 |
|
1979 |
2r0100000000000000 |
|
1980 |
2r0111111000000000 |
|
1981 |
2r0100000000000000 |
|
1982 |
2r0111111000000000 |
|
1983 |
2r0100000000000000 |
|
1984 |
2r0010000100000110 |
|
1985 |
2r0001111100011000 |
|
1986 |
2r0000000100010000 |
|
1987 |
2r0000000100010000 |
|
1988 |
2r0000000011110000 |
|
1989 |
2r0000000010010000 |
|
1990 |
2r0000000001010000 |
|
1991 |
2r0000000000100000) |
|
1992 |
||
1993 |
maskArray: #( |
|
1994 |
2r0001111111100000 |
|
1995 |
2r0001111111110000 |
|
1996 |
2r0011111111111110 |
|
1997 |
2r0111111111111110 |
|
1998 |
2r0111111111111110 |
|
1999 |
2r0111111111111110 |
|
2000 |
2r0111111111111110 |
|
2001 |
2r0111111111111110 |
|
2002 |
2r0011111111111110 |
|
2003 |
2r0001111111111000 |
|
2004 |
2r0000000111110000 |
|
2005 |
2r0000000111110000 |
|
2006 |
2r0000000011110000 |
|
2007 |
2r0000000011110000 |
|
2008 |
2r0000000001110000 |
|
2009 |
2r0000000000100000) |
|
3462 | 2010 |
offset: -8@ -15 "-16"). |
3066 | 2011 |
ThumbsDownCursor setShape:#thumbsDown. |
2012 |
||
7763 | 2013 |
StopCursor := (self |
3066 | 2014 |
extent: 16@16 |
2015 |
sourceArray: #( |
|
2016 |
2r0000000000000000 |
|
2017 |
2r0000011111000000 |
|
2018 |
2r0001111111110000 |
|
2019 |
2r0011111111111000 |
|
2020 |
2r0011111111111000 |
|
2021 |
2r0111111111111100 |
|
2022 |
2r0111111111111100 |
|
2023 |
2r0100000000000100 |
|
2024 |
2r0100000000000100 |
|
2025 |
2r0111111111111100 |
|
2026 |
2r0111111111111100 |
|
2027 |
2r0011111111111000 |
|
2028 |
2r0011111111111000 |
|
2029 |
2r0001111111110000 |
|
2030 |
2r0000011111000000 |
|
2031 |
2r0000000000000000 |
|
2032 |
) |
|
2033 |
maskArray: #( |
|
2034 |
2r0000011111000000 |
|
2035 |
2r0001111111110000 |
|
2036 |
2r0011111111111000 |
|
2037 |
2r0111111111111100 |
|
2038 |
2r0111111111111100 |
|
2039 |
2r1111111111111110 |
|
2040 |
2r1111111111111110 |
|
2041 |
2r1111111111111110 |
|
2042 |
2r1111111111111110 |
|
2043 |
2r1111111111111110 |
|
2044 |
2r1111111111111110 |
|
2045 |
2r0111111111111100 |
|
2046 |
2r0111111111111100 |
|
2047 |
2r0011111111111000 |
|
2048 |
2r0001111111110000 |
|
2049 |
2r0000011111000000 |
|
2050 |
) |
|
2051 |
offset: -8 @ -8). |
|
2052 |
StopCursor setShape:#stop. |
|
2053 |
||
7763 | 2054 |
EyeCursor := (self |
3066 | 2055 |
extent: 16@16 |
2056 |
sourceArray: #( |
|
2057 |
2r0000000000000000 |
|
2058 |
2r0000000000000000 |
|
2059 |
2r0000000000000000 |
|
2060 |
2r0000011111000000 |
|
2061 |
2r0001111111110000 |
|
2062 |
2r0011000000011000 |
|
2063 |
2r0110001110001100 |
|
2064 |
2r1100011111000110 |
|
2065 |
2r1100011111000110 |
|
2066 |
2r0110001110001100 |
|
2067 |
2r0011000000011000 |
|
2068 |
2r0001111111110000 |
|
2069 |
2r0000011111000000 |
|
2070 |
2r0000000000000000 |
|
2071 |
2r0000000000000000 |
|
2072 |
2r0000000000000000 |
|
2073 |
) |
|
2074 |
maskArray: #( |
|
2075 |
2r0000000000000000 |
|
2076 |
2r0000000000000000 |
|
2077 |
2r0000000000000000 |
|
2078 |
2r0000011111000000 |
|
2079 |
2r0001111111110000 |
|
2080 |
2r0011111111111000 |
|
2081 |
2r0111111111111100 |
|
2082 |
2r1111111111111110 |
|
2083 |
2r1111111111111110 |
|
2084 |
2r0111111111111100 |
|
2085 |
2r0011111111111000 |
|
2086 |
2r0001111111110000 |
|
2087 |
2r0000011111000000 |
|
2088 |
2r0000000000000000 |
|
2089 |
2r0000000000000000 |
|
2090 |
2r0000000000000000 |
|
2091 |
) |
|
2092 |
offset: -8 @ -8). |
|
2093 |
EyeCursor setShape:#eye. |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2094 |
|
7763 | 2095 |
ClosedEyeCursor := (self |
3201 | 2096 |
extent: 16@16 |
2097 |
sourceArray: #( |
|
2098 |
2r0000000000000000 |
|
2099 |
2r0000000000000000 |
|
2100 |
2r0000000000000000 |
|
2101 |
2r0000011111000000 |
|
2102 |
2r0001111111110000 |
|
2103 |
2r0011111111111000 |
|
2104 |
2r0111111111111100 |
|
2105 |
2r1111111111111110 |
|
2106 |
2r1111111111111110 |
|
2107 |
2r0111111111111100 |
|
2108 |
2r0011111111111000 |
|
2109 |
2r0001111111110000 |
|
2110 |
2r0000011111000000 |
|
2111 |
2r0000000000000000 |
|
2112 |
2r0000000000000000 |
|
2113 |
2r0000000000000000 |
|
2114 |
) |
|
2115 |
maskArray: #( |
|
2116 |
2r0000000000000000 |
|
2117 |
2r0000000000000000 |
|
2118 |
2r0000000000000000 |
|
2119 |
2r0000011111000000 |
|
2120 |
2r0001111111110000 |
|
2121 |
2r0011111111111000 |
|
2122 |
2r0111111111111100 |
|
2123 |
2r1111111111111110 |
|
2124 |
2r1111111111111110 |
|
2125 |
2r0111111111111100 |
|
2126 |
2r0011111111111000 |
|
2127 |
2r0001111111110000 |
|
2128 |
2r0000011111000000 |
|
2129 |
2r0000000000000000 |
|
2130 |
2r0000000000000000 |
|
2131 |
2r0000000000000000 |
|
2132 |
) |
|
2133 |
offset: -8 @ -8). |
|
2134 |
ClosedEyeCursor setShape:#eyeClosed. |
|
2135 |
||
8092 | 2136 |
BulletCursor := (self |
2137 |
extent: 16@16 |
|
2138 |
sourceArray: #( |
|
2139 |
2r0000000000000000 |
|
2140 |
2r0000000000000000 |
|
2141 |
2r0000000000000000 |
|
2142 |
2r0000000000000000 |
|
2143 |
2r0000000000000000 |
|
2144 |
2r0000000000000000 |
|
2145 |
2r0000001110000000 |
|
2146 |
2r0000011111000000 |
|
2147 |
2r0000011111000000 |
|
2148 |
2r0000001110000000 |
|
2149 |
2r0000000000000000 |
|
2150 |
2r0000000000000000 |
|
2151 |
2r0000000000000000 |
|
2152 |
2r0000000000000000 |
|
2153 |
2r0000000000000000 |
|
2154 |
2r0000000000000000 |
|
2155 |
) |
|
2156 |
maskArray: #( |
|
2157 |
2r0000000000000000 |
|
2158 |
2r0000000000000000 |
|
2159 |
2r0000000000000000 |
|
2160 |
2r0000000000000000 |
|
2161 |
2r0000000000000000 |
|
2162 |
2r0000000000000000 |
|
2163 |
2r0000001110000000 |
|
2164 |
2r0000011111000000 |
|
2165 |
2r0000011111000000 |
|
2166 |
2r0000001110000000 |
|
2167 |
2r0000000000000000 |
|
2168 |
2r0000000000000000 |
|
2169 |
2r0000000000000000 |
|
2170 |
2r0000000000000000 |
|
2171 |
2r0000000000000000 |
|
2172 |
2r0000000000000000 |
|
2173 |
) |
|
2174 |
offset: -8 @ -8). |
|
2175 |
BulletCursor setShape:#bullet. |
|
2176 |
||
7205 | 2177 |
isWindows ifTrue:[ |
2178 |
"/ want it white-with black boundary |
|
2179 |
bits := #[7 128 24 96 32 16 39 136 24 72 0 72 0 72 0 144 1 32 2 64 2 64 2 64 1 128 2 64 2 64 1 128]. |
|
2180 |
mask := #[7 128 31 224 63 240 63 248 24 120 0 120 0 120 0 240 1 224 3 192 3 192 3 192 1 128 3 192 3 192 1 128]. |
|
2181 |
] ifFalse:[ |
|
2182 |
bits := #( |
|
2183 |
2r0000000000000000 |
|
2184 |
2r0000000000000000 |
|
2185 |
2r0000001111000000 |
|
2186 |
2r0000111111110000 |
|
2187 |
2r0000110000111000 |
|
2188 |
2r0000000000011000 |
|
2189 |
2r0000000000011000 |
|
2190 |
2r0000000000011000 |
|
2191 |
2r0000000000110000 |
|
2192 |
2r0000000001100000 |
|
2193 |
2r0000000110000000 |
|
2194 |
2r0000000110000000 |
|
2195 |
2r0000000000000000 |
|
2196 |
2r0000000110000000 |
|
2197 |
2r0000000110000000 |
|
2198 |
2r0000000000000000). |
|
2199 |
mask := #( |
|
2200 |
2r0000000000000000 |
|
2201 |
2r0000011111000000 |
|
2202 |
2r0000111111100000 |
|
2203 |
2r0001111111111000 |
|
2204 |
2r0001111111111100 |
|
2205 |
2r0001111000111100 |
|
2206 |
2r0000000000111100 |
|
2207 |
2r0000000000111100 |
|
2208 |
2r0000000001111000 |
|
2209 |
2r0000000011110000 |
|
2210 |
2r0000001111000000 |
|
2211 |
2r0000001111000000 |
|
2212 |
2r0000001111000000 |
|
2213 |
2r0000001111000000 |
|
2214 |
2r0000001111000000 |
|
2215 |
2r0000001111000000). |
|
2216 |
]. |
|
2217 |
||
7763 | 2218 |
QuestionMarkCursor := (self |
3085
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
2219 |
extent: 16@16 |
7205 | 2220 |
sourceArray:bits |
2221 |
maskArray:mask |
|
3085
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
2222 |
offset: -8 @ -8). |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
2223 |
QuestionMarkCursor setShape:#questionMark. |
83ceb5bf4f10
missing cursors: questionMark & crossHair
Claus Gittinger <cg@exept.de>
parents:
3071
diff
changeset
|
2224 |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2225 |
"/ if possible, preallocate them on the default display |
3086
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2226 |
|
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2227 |
"/ cg: no, do not do this here; |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2228 |
"/ defaultFG / defaultBG is not yet initialized. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2229 |
|
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2230 |
"/ device notNil ifTrue:[ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2231 |
"/ FourWayCursor notNil ifTrue:[FourWayCursor := FourWayCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2232 |
"/ LeftCursor notNil ifTrue:[LeftCursor := LeftCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2233 |
"/ RightCursor notNil ifTrue:[RightCursor := RightCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2234 |
"/ XMarkerCursor notNil ifTrue:[XMarkerCursor := XMarkerCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2235 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2236 |
"/ OriginCursor notNil ifTrue:[OriginCursor := OriginCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2237 |
"/ CornerCursor notNil ifTrue:[CornerCursor := CornerCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2238 |
"/ TopRightCornerCursor notNil ifTrue:[TopRightCornerCursor := TopRightCornerCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2239 |
"/ BottomLeftCornerCursor notNil ifTrue:[BottomLeftCornerCursor := BottomLeftCornerCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2240 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2241 |
"/ LeftLimitCursor notNil ifTrue:[LeftLimitCursor := LeftLimitCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2242 |
"/ RightLimitCursor notNil ifTrue:[RightLimitCursor := RightLimitCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2243 |
"/ DownLimitCursor notNil ifTrue:[DownLimitCursor := DownLimitCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2244 |
"/ UpLimitCursor notNil ifTrue:[UpLimitCursor := UpLimitCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2245 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2246 |
"/ ReadCursor notNil ifTrue:[ReadCursor := ReadCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2247 |
"/ WriteCursor notNil ifTrue:[WriteCursor := WriteCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2248 |
"/ WaitCursor notNil ifTrue:[WaitCursor := WaitCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2249 |
"/ XeqCursor notNil ifTrue:[XeqCursor := XeqCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2250 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2251 |
"/ SquareCursor notNil ifTrue:[SquareCursor := SquareCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2252 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2253 |
"/ NormalCursor notNil ifTrue:[NormalCursor := NormalCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2254 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2255 |
"/ CrossHairCursor notNil ifTrue:[CrossHairCursor := CrossHairCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2256 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2257 |
"/ MarkerCursor notNil ifTrue:[MarkerCursor := MarkerCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2258 |
"/ UpCursor notNil ifTrue:[UpCursor := UpCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2259 |
"/ DownCursor notNil ifTrue:[DownCursor := DownCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2260 |
"/ LeftCursor notNil ifTrue:[LeftCursor := LeftCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2261 |
"/ RightCursor notNil ifTrue:[RightCursor := RightCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2262 |
"/ XMarkerCursor notNil ifTrue:[XMarkerCursor := XMarkerCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2263 |
"/ CaretCursor notNil ifTrue:[CaretCursor := CaretCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2264 |
"/ |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2265 |
"/ ThumbsUpCursor notNil ifTrue:[ThumbsUpCursor := ThumbsUpCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2266 |
"/ ThumbsDownCursor notNil ifTrue:[ThumbsDownCursor := ThumbsDownCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2267 |
"/ StopCursor notNil ifTrue:[StopCursor := StopCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2268 |
"/ EyeCursor notNil ifTrue:[EyeCursor := EyeCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2269 |
"/ QuestionMarkCursor notNil ifTrue:[QuestionMarkCursor := QuestionMarkCursor onDevice:device]. |
b1b3bfd40359
dont allocate device cursors in initNewCursors;
Claus Gittinger <cg@exept.de>
parents:
3085
diff
changeset
|
2270 |
"/ ]. |
1495 | 2271 |
|
1564 | 2272 |
" |
3462 | 2273 |
HandCursor := nil. |
7763 | 2274 |
self initializeNewCursors. |
8092 | 2275 |
|
2276 |
View new cursor:(Cursor eyeClosed); open |
|
2277 |
View new cursor:(Cursor eye); open |
|
2278 |
View new cursor:(Cursor bullet); open |
|
1564 | 2279 |
" |
1495 | 2280 |
|
8092 | 2281 |
"Modified: / 22-08-2017 / 22:53:51 / cg" |
0 | 2282 |
! ! |
2283 |
||
1140 | 2284 |
!Cursor class methodsFor:'instance creation'! |
0 | 2285 |
|
2286 |
extent:extent fromArray:array offset:offset |
|
1934 | 2287 |
"ST-80 compatibility |
2288 |
create a new bitmap cursor from bits in the array argument. |
|
2289 |
Here, the offset argument defines the hotSpot, but is given |
|
2290 |
as the negative of the hotSpot coordinate within the cursor (sigh - ST80 compatibility)." |
|
2291 |
||
2292 |
^ self |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2293 |
extent:extent sourceArray:array maskArray:array offset:offset |
1934 | 2294 |
|
2295 |
"Modified: 22.10.1997 / 23:59:41 / cg" |
|
0 | 2296 |
! |
2297 |
||
2298 |
extent:extent sourceArray:sourceArray maskArray:maskArray offset:offset |
|
2299 |
"create a new bitmap cursor with mask from bits in sourceArray and |
|
1934 | 2300 |
maskArray. |
2301 |
The offset argument defines the hotSpot, but is given as the negative |
|
2302 |
of the hotSpots coordinate within the cursor (sigh - ST80 compatibility)" |
|
0 | 2303 |
|
2304 |
|sourceForm maskForm| |
|
2305 |
||
2306 |
sourceForm := Form extent:extent fromArray:sourceArray offset:offset. |
|
1934 | 2307 |
sourceArray ~~ maskArray ifTrue:[ |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2308 |
maskForm := Form extent:extent fromArray:maskArray offset:offset. |
1934 | 2309 |
] ifFalse:[ |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2310 |
maskForm := sourceForm |
1934 | 2311 |
]. |
0 | 2312 |
^ self sourceForm:sourceForm maskForm:maskForm hotSpot:(offset negated) |
1934 | 2313 |
|
2314 |
"Modified: 22.10.1997 / 23:58:36 / cg" |
|
0 | 2315 |
! |
2316 |
||
577 | 2317 |
fileCursorNamed:cursorName |
5212 | 2318 |
<resource: #obsolete> |
6506 | 2319 |
"return a cursor read from the file's 'cursorName_bits.bit' and |
1934 | 2320 |
'cursorName_mask.bit' - return nil if either file does not exist. |
2321 |
This method is going to be obsoleted in the future." |
|
2322 |
||
3054
4268251e77a2
try bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
2323 |
|cursorBits maskBits| |
1934 | 2324 |
|
2325 |
self obsoleteMethodWarning. |
|
2326 |
||
3099 | 2327 |
cursorBits := Smalltalk imageFromFileNamed:(cursorName , '_bits.bit') forClass:self. |
577 | 2328 |
cursorBits notNil ifTrue:[ |
3099 | 2329 |
maskBits := Smalltalk imageFromFileNamed:(cursorName , '_mask.bit') forClass:self. |
3054
4268251e77a2
try bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
2330 |
maskBits notNil ifTrue:[ |
4268251e77a2
try bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
2331 |
^ self sourceForm:cursorBits maskForm:maskBits |
4268251e77a2
try bitmaps in package directory
Claus Gittinger <cg@exept.de>
parents:
2999
diff
changeset
|
2332 |
] |
577 | 2333 |
]. |
2334 |
^ nil |
|
1140 | 2335 |
|
1934 | 2336 |
"Modified: 23.10.1997 / 00:02:07 / cg" |
577 | 2337 |
! |
2338 |
||
1414 | 2339 |
fromImage:anImage |
2340 |
"return a new cursor. |
|
2341 |
Source- and (optional) mask-Bits are taken from anImage; |
|
1934 | 2342 |
The cursors hotSpot is the center of the image." |
2343 |
||
2344 |
^ self |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2345 |
fromImage:anImage hotSpot:(anImage center) |
1414 | 2346 |
|
2347 |
" |
|
2348 |
|i c| |
|
2349 |
||
2350 |
i := Image fromFile:'bitmaps/xpmBitmaps/cursors/ul_br_arrow.xpm'. |
|
2351 |
c := Cursor fromImage:i. |
|
2352 |
WindowGroup activeGroup |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2353 |
withCursor:c |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2354 |
do:[(Delay forSeconds:5)wait] |
1414 | 2355 |
" |
2356 |
||
1934 | 2357 |
"Modified: 22.10.1997 / 23:55:01 / cg" |
2358 |
! |
|
2359 |
||
2360 |
fromImage:anImage hotSpot:aPoint |
|
2361 |
"return a new cursor. |
|
2362 |
Source- and (optional) mask-Bits are taken from anImage; |
|
2363 |
The cursors hotSpot is given as an offset from the top-left." |
|
2364 |
||
2365 |
|mask sourceForm maskForm| |
|
2366 |
||
2367 |
sourceForm := anImage asMonochromeFormOn:Screen current. |
|
2368 |
||
2369 |
mask := anImage mask. |
|
2370 |
mask isNil ifTrue:[ |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2371 |
maskForm := sourceForm |
1934 | 2372 |
] ifFalse:[ |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2373 |
maskForm := mask asMonochromeFormOn:Screen current. |
1934 | 2374 |
]. |
2375 |
^ self sourceForm:sourceForm |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2376 |
maskForm:maskForm |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2377 |
hotX:(aPoint x) |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2378 |
hotY:(aPoint y) |
1934 | 2379 |
|
2380 |
" |
|
2381 |
|i c| |
|
2382 |
||
2383 |
i := Image fromFile:'bitmaps/xpmBitmaps/cursors/ul_br_arrow.xpm'. |
|
2384 |
c := Cursor fromImage:i hotSpot:(i center). |
|
2385 |
WindowGroup activeGroup |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2386 |
withCursor:c |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2387 |
do:[(Delay forSeconds:5)wait] |
1934 | 2388 |
" |
2389 |
||
2390 |
"Modified: 22.10.1997 / 23:49:00 / cg" |
|
2391 |
"Created: 22.10.1997 / 23:51:32 / cg" |
|
1414 | 2392 |
! |
2393 |
||
577 | 2394 |
imageArray:imageBits maskArray:maskBits |
2395 |
"ST-80 compatible cursor creation - the extent is fixed to 16@16" |
|
2396 |
||
1934 | 2397 |
^ self |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2398 |
imageArray:imageBits |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2399 |
maskArray:maskBits |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2400 |
hotSpot:8@8 |
1934 | 2401 |
|
2402 |
" |
|
2403 |
|cursor| |
|
2404 |
||
2405 |
cursor := Cursor |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2406 |
imageArray: #( |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2407 |
2r0000000000000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2408 |
2r0000000100001110 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2409 |
2r0000000100001110 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2410 |
2r0000000100001110 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2411 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2412 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2413 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2414 |
2r0111111111111110 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2415 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2416 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2417 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2418 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2419 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2420 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2421 |
2r0000000100000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2422 |
2r0000000000000000) |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2423 |
maskArray: #( |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2424 |
2r0000001110011111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2425 |
2r0000001110011111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2426 |
2r0000001110011111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2427 |
2r0000001110011111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2428 |
2r0000001110011111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2429 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2430 |
2r1111111111111111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2431 |
2r1111111111111111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2432 |
2r1111111111111111 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2433 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2434 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2435 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2436 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2437 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2438 |
2r0000001110000000 |
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2439 |
2r0000001110000000). |
1934 | 2440 |
|
2441 |
cursor showWhile:[ |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2442 |
(Delay forSeconds:10) wait |
1934 | 2443 |
] |
2444 |
" |
|
2445 |
||
2446 |
"Modified: 23.10.1997 / 00:06:09 / cg" |
|
577 | 2447 |
! |
2448 |
||
2449 |
imageArray:imageBits maskArray:maskBits hotSpot:hot |
|
2450 |
"ST-80 compatible cursor creation - the extent is fixed to 16@16" |
|
2451 |
||
2452 |
^ self |
|
2453 |
extent:16@16 |
|
2454 |
sourceArray:imageBits |
|
2455 |
maskArray:maskBits |
|
2456 |
offset:hot negated |
|
2457 |
||
2458 |
" |
|
2459 |
|cursor| |
|
2460 |
||
2461 |
cursor := Cursor |
|
2462 |
imageArray: #( |
|
2463 |
2r0000000000000000 |
|
2464 |
2r0000000100001110 |
|
2465 |
2r0000000100001110 |
|
2466 |
2r0000000100001110 |
|
2467 |
2r0000000100000000 |
|
2468 |
2r0000000100000000 |
|
2469 |
2r0000000100000000 |
|
2470 |
2r0111111111111110 |
|
2471 |
2r0000000100000000 |
|
2472 |
2r0000000100000000 |
|
2473 |
2r0000000100000000 |
|
2474 |
2r0000000100000000 |
|
2475 |
2r0000000100000000 |
|
2476 |
2r0000000100000000 |
|
2477 |
2r0000000100000000 |
|
2478 |
2r0000000000000000) |
|
2479 |
maskArray: #( |
|
2480 |
2r0000001110011111 |
|
2481 |
2r0000001110011111 |
|
2482 |
2r0000001110011111 |
|
2483 |
2r0000001110011111 |
|
2484 |
2r0000001110011111 |
|
2485 |
2r0000001110000000 |
|
2486 |
2r1111111111111111 |
|
2487 |
2r1111111111111111 |
|
2488 |
2r1111111111111111 |
|
2489 |
2r0000001110000000 |
|
2490 |
2r0000001110000000 |
|
2491 |
2r0000001110000000 |
|
2492 |
2r0000001110000000 |
|
2493 |
2r0000001110000000 |
|
2494 |
2r0000001110000000 |
|
2495 |
2r0000001110000000) |
|
2496 |
hotSpot: 8@8. |
|
2497 |
||
2498 |
WindowGroup activeGroup |
|
2499 |
withCursor:cursor |
|
2500 |
do:[(Delay forSeconds:10)wait] |
|
2501 |
" |
|
2502 |
! |
|
2503 |
||
2504 |
imageArray:imageBits maskArray:maskBits hotSpot:hot name:aString |
|
2505 |
"ST-80 compatible cursor creation - the extent is fixed to 16@16" |
|
2506 |
||
2507 |
"name is ignored ..." |
|
2508 |
||
2509 |
^ self imageArray:imageBits maskArray:maskBits hotSpot:hot |
|
2510 |
! |
|
2511 |
||
2512 |
shape:aShape |
|
2513 |
"return one of the standard cursors. |
|
2514 |
Each display may offer different shapes - see for example XWorkstation |
|
2515 |
for details (however a basic minimum set should be supported by all)" |
|
2516 |
||
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2517 |
^ self basicNew setShape:aShape. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2518 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2519 |
"/ |newCursor| |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2520 |
"/ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2521 |
"/ "first look if not already known" |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2522 |
"/ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2523 |
"/ Lobby isNil ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2524 |
"/ self initialize |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2525 |
"/ ]. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2526 |
"/ Lobby do:[:aCursor | |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2527 |
"/ (aCursor shape == aShape) ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2528 |
"/ ^ aCursor |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2529 |
"/ ] |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2530 |
"/ ]. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2531 |
"/ newCursor := self basicNew setShape:aShape. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2532 |
"/ Lobby register:newCursor. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2533 |
"/ ^ newCursor |
577 | 2534 |
! |
2535 |
||
2536 |
shape:aShape on:aDevice |
|
2537 |
"return one of the standard cursors already associated to aDevice. |
|
2538 |
This is the same as '(Cursor shape:aShape) on:aDevice' but somwehat faster." |
|
2539 |
||
4508 | 2540 |
|oldCursor| |
2541 |
||
2999
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
2542 |
aDevice isNil ifTrue:[ |
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
2543 |
^ self basicNew setShape:aShape |
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
2544 |
]. |
5e9272beef1b
eliminated refs to Display - must use Screen current
Stefan Vogel <sv@exept.de>
parents:
2980
diff
changeset
|
2545 |
|
577 | 2546 |
"first look if not already known" |
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2547 |
|
4508 | 2548 |
oldCursor := aDevice deviceCursors detect:[:aCursor | aCursor shape == aShape] ifNone:nil. |
2549 |
oldCursor notNil ifTrue:[ ^ oldCursor ]. |
|
577 | 2550 |
|
2844 | 2551 |
^ (self basicNew setShape:aShape) allocateOnDevice:aDevice |
577 | 2552 |
! |
2553 |
||
0 | 2554 |
sourceForm:aForm |
2555 |
"return a new cursor. |
|
2556 |
Source- and mask-Bits are taken from aForm; hotSpot is center" |
|
2557 |
||
1934 | 2558 |
^ self sourceForm:aForm maskForm:aForm |
2559 |
||
2560 |
"Modified: 23.10.1997 / 00:08:37 / cg" |
|
0 | 2561 |
! |
2562 |
||
2563 |
sourceForm:sourceForm maskForm:maskForm |
|
2564 |
"return a new cursor. hotSpot is center" |
|
2565 |
||
2566 |
^ self sourceForm:sourceForm |
|
80 | 2567 |
maskForm:maskForm |
2568 |
hotX:(sourceForm width // 2) |
|
2569 |
hotY:(sourceForm height // 2) |
|
0 | 2570 |
! |
2571 |
||
2572 |
sourceForm:sourceForm maskForm:maskForm hotSpot:aPoint |
|
2573 |
"return a new cursor" |
|
2574 |
||
2575 |
^ self sourceForm:sourceForm |
|
80 | 2576 |
maskForm:maskForm |
2577 |
hotX:(aPoint x) |
|
2578 |
hotY:(aPoint y) |
|
0 | 2579 |
! |
2580 |
||
2581 |
sourceForm:sourceForm maskForm:maskForm hotX:hotX hotY:hotY |
|
2582 |
"return a new cursor" |
|
2583 |
||
35 | 2584 |
(sourceForm isNil or:[maskForm isNil]) ifTrue:[^ nil]. |
2585 |
||
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2586 |
^ self basicNew |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2587 |
setSourceForm:sourceForm |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2588 |
maskForm:maskForm |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2589 |
hotX:hotX |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
2590 |
hotY:hotY. |
1224
2a2270ec4236
added #releaseResourcesOnDevice:, to allow cleanup when
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2591 |
! ! |
2a2270ec4236
added #releaseResourcesOnDevice:, to allow cleanup when
Claus Gittinger <cg@exept.de>
parents:
1188
diff
changeset
|
2592 |
|
1140 | 2593 |
!Cursor class methodsFor:'default access'! |
577 | 2594 |
|
3282 | 2595 |
defaultBgColor |
2596 |
"return the default bg color used for cursors" |
|
2597 |
||
2598 |
^ DefaultBgColor |
|
2599 |
||
2600 |
! |
|
2601 |
||
2602 |
defaultFgColor |
|
2603 |
"return the default fg color used for cursors" |
|
2604 |
||
2605 |
^ DefaultFgColor |
|
2606 |
||
2607 |
! |
|
2608 |
||
577 | 2609 |
defaultFgColor:fgColor defaultBgColor:bgColor |
3284 | 2610 |
"set the default colors used for new cursors" |
577 | 2611 |
|
2612 |
DefaultFgColor := fgColor. |
|
3284 | 2613 |
DefaultBgColor := bgColor. |
2614 |
||
2615 |
" |
|
2616 |
Cursor defaultFgColor:(Color red) defaultBgColor:(Color white) |
|
2617 |
" |
|
0 | 2618 |
! ! |
2619 |
||
1140 | 2620 |
!Cursor class methodsFor:'standard cursors'! |
0 | 2621 |
|
2622 |
arrow |
|
2623 |
"return an arrow (up-left-arrow) cursor" |
|
2624 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2625 |
^ self upLeftArrow |
1934 | 2626 |
|
2627 |
" |
|
2628 |
Cursor arrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2629 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2630 |
" |
2631 |
||
2632 |
"Modified: 23.10.1997 / 00:28:28 / cg" |
|
0 | 2633 |
! |
2634 |
||
577 | 2635 |
blank |
1934 | 2636 |
"Answer the instance of me that is an invisible cursor." |
2637 |
||
2638 |
^ BlankCursor |
|
2639 |
||
2640 |
" |
|
2641 |
Cursor blank |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2642 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2643 |
" |
2644 |
||
2645 |
"Modified: 23.10.1997 / 00:27:39 / cg" |
|
2646 |
! |
|
80 | 2647 |
|
2648 |
bottomLeft |
|
2649 |
"return a bottom-left corner cursor" |
|
2650 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2651 |
^ BottomLeftCornerCursor |
1934 | 2652 |
|
2653 |
" |
|
2654 |
Cursor bottomLeft |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2655 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2656 |
" |
2657 |
||
2658 |
"Modified: 23.10.1997 / 00:27:12 / cg" |
|
80 | 2659 |
! |
2660 |
||
2661 |
bottomRight |
|
2662 |
"return a bottom-right corner cursor" |
|
2663 |
||
2664 |
^ self corner |
|
1934 | 2665 |
|
2666 |
" |
|
2667 |
Cursor bottomRight |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2668 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2669 |
" |
2670 |
||
2671 |
"Modified: 23.10.1997 / 00:27:02 / cg" |
|
80 | 2672 |
! |
2673 |
||
8092 | 2674 |
bullet |
2675 |
"return a bullet cursor" |
|
2676 |
||
2677 |
^ BulletCursor |
|
2678 |
||
2679 |
" |
|
2680 |
Cursor bullet showWhile:[ Delay waitForSeconds:3 ] |
|
2681 |
||
2682 |
View new cursor:(Cursor bullet); open |
|
2683 |
" |
|
2684 |
||
2685 |
"Created: / 22-08-2017 / 22:51:36 / cg" |
|
2686 |
! |
|
2687 |
||
577 | 2688 |
caret |
1934 | 2689 |
"return a caret cursor" |
2690 |
||
2691 |
^ CaretCursor |
|
2692 |
||
2693 |
" |
|
2694 |
Cursor caret |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2695 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2696 |
" |
2697 |
||
2698 |
"Modified: 23.10.1997 / 00:27:08 / cg" |
|
2699 |
! |
|
577 | 2700 |
|
2701 |
corner |
|
1934 | 2702 |
"return a corner (bottom-right) cursor" |
80 | 2703 |
|
577 | 2704 |
^ CornerCursor |
1934 | 2705 |
|
2706 |
" |
|
2707 |
Cursor corner |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2708 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2709 |
" |
2710 |
||
2711 |
"Modified: 23.10.1997 / 00:26:53 / cg" |
|
577 | 2712 |
! |
2713 |
||
2714 |
cross |
|
2715 |
"return a cross cursor" |
|
2716 |
||
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
2717 |
^ CrossCursor |
1934 | 2718 |
|
2719 |
" |
|
2720 |
Cursor cross |
|
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
2721 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2722 |
" |
2723 |
||
2615
bb4e7db46a6f
additional cursor: #cross (for win32)
Claus Gittinger <cg@exept.de>
parents:
2606
diff
changeset
|
2724 |
"Modified: / 29.4.1999 / 21:28:42 / cg" |
80 | 2725 |
! |
2726 |
||
0 | 2727 |
crossHair |
2728 |
"return a crossHair cursor" |
|
2729 |
||
2730 |
^ CrossHairCursor |
|
1934 | 2731 |
|
2732 |
" |
|
2733 |
Cursor crossHair |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2734 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2735 |
" |
2736 |
||
2737 |
"Modified: 23.10.1997 / 00:26:42 / cg" |
|
0 | 2738 |
! |
2739 |
||
2121
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2740 |
document |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2741 |
"return a document cursor (dragging a document)" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2742 |
|
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2743 |
^ DocumentCursor |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2744 |
|
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2745 |
" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2746 |
Cursor document |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2747 |
showWhile:[ Delay waitForSeconds:3 ] |
2121
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2748 |
" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2749 |
|
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2750 |
"Modified: / 23.10.1997 / 00:27:08 / cg" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2751 |
"Created: / 19.5.1998 / 17:17:53 / cg" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2752 |
! |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2753 |
|
577 | 2754 |
down |
1934 | 2755 |
"Answer the instance of me that is the shape of a down-arrow." |
2756 |
||
2757 |
^ DownCursor |
|
2758 |
||
2759 |
" |
|
2760 |
Cursor down |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2761 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2762 |
" |
2763 |
||
2764 |
"Modified: 23.10.1997 / 00:26:34 / cg" |
|
2765 |
! |
|
0 | 2766 |
|
577 | 2767 |
downLimitArrow |
2768 |
"return a down-arrow-to-limit cursor" |
|
0 | 2769 |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2770 |
^ DownLimitCursor |
1934 | 2771 |
|
2772 |
" |
|
2773 |
Cursor downLimitArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2774 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2775 |
" |
2776 |
||
2777 |
"Modified: 23.10.1997 / 00:26:29 / cg" |
|
0 | 2778 |
! |
2779 |
||
2780 |
execute |
|
157 | 2781 |
"return a execute cursor - (the default here is a wait-cursor)" |
0 | 2782 |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2783 |
^ XeqCursor |
1934 | 2784 |
|
2785 |
" |
|
2786 |
Cursor execute |
|
2482
7e1e4eaa5ce6
fallback for non-existing execute cursorShape is the wait cursorShape.
Claus Gittinger <cg@exept.de>
parents:
2474
diff
changeset
|
2787 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2788 |
" |
2789 |
||
2790 |
"Modified: 23.10.1997 / 00:26:19 / cg" |
|
56 | 2791 |
! |
2792 |
||
577 | 2793 |
eye |
1934 | 2794 |
"return an eye cursor" |
2795 |
||
2796 |
^ EyeCursor |
|
2797 |
||
2798 |
" |
|
2799 |
Cursor eye |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2800 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2801 |
" |
2802 |
||
2803 |
"Modified: 23.10.1997 / 00:26:06 / cg" |
|
577 | 2804 |
! |
2805 |
||
3201 | 2806 |
eyeClosed |
2807 |
"return an eye cursor" |
|
2808 |
||
2809 |
^ ClosedEyeCursor |
|
2810 |
||
2811 |
" |
|
2812 |
Cursor eyeClosed |
|
2813 |
showWhile:[ Delay waitForSeconds:3 ] |
|
2814 |
" |
|
2815 |
||
2816 |
"Modified: 23.10.1997 / 00:26:06 / cg" |
|
2817 |
! |
|
2818 |
||
2121
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2819 |
folder |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2820 |
"return a folder cursor (dragging a folder)" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2821 |
|
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2822 |
^ FolderCursor |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2823 |
|
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2824 |
" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2825 |
Cursor folder |
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2826 |
showWhile:[ Delay waitForSeconds:3 ] |
2121
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2827 |
" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2828 |
|
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2829 |
"Modified: / 23.10.1997 / 00:27:08 / cg" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2830 |
"Created: / 19.5.1998 / 17:18:17 / cg" |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2831 |
! |
376a0d47257a
two new standardCursors: #document & #folder
Claus Gittinger <cg@exept.de>
parents:
2096
diff
changeset
|
2832 |
|
577 | 2833 |
fourWay |
2834 |
"return a four-way arrow cursor" |
|
2835 |
||
2836 |
^ FourWayCursor |
|
1934 | 2837 |
|
2838 |
" |
|
2839 |
Cursor fourWay |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2840 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2841 |
" |
2842 |
||
2843 |
"Modified: 23.10.1997 / 00:25:34 / cg" |
|
577 | 2844 |
! |
2845 |
||
2846 |
hand |
|
2847 |
"return a hand cursor" |
|
2848 |
||
2849 |
^ HandCursor |
|
1934 | 2850 |
|
2851 |
" |
|
2852 |
Cursor hand |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2853 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2854 |
" |
2855 |
||
2856 |
"Modified: 23.10.1997 / 00:25:07 / cg" |
|
577 | 2857 |
! |
2858 |
||
2859 |
left |
|
1934 | 2860 |
"Answer the instance of me that is the shape of an arrow facing to the left." |
2861 |
||
2862 |
^ LeftCursor |
|
2863 |
||
2864 |
" |
|
2865 |
Cursor left |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2866 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2867 |
" |
2868 |
||
2869 |
"Modified: 23.10.1997 / 00:24:51 / cg" |
|
2870 |
! |
|
577 | 2871 |
|
2872 |
leftHand |
|
2873 |
"return a left-hand cursor" |
|
2874 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2875 |
^ LeftHandCursor ? HandCursor |
1934 | 2876 |
|
2877 |
" |
|
2878 |
Cursor leftHand |
|
2626 | 2879 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2880 |
" |
2881 |
||
2626 | 2882 |
"Modified: / 3.5.1999 / 18:54:52 / cg" |
577 | 2883 |
! |
2884 |
||
2885 |
leftLimitArrow |
|
2886 |
"return a left-arrow-to-limit cursor" |
|
2887 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2888 |
^ LeftLimitCursor |
1934 | 2889 |
|
2890 |
" |
|
2891 |
Cursor leftLimitArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2892 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2893 |
" |
2894 |
||
2895 |
"Modified: 23.10.1997 / 00:24:14 / cg" |
|
577 | 2896 |
! |
2897 |
||
2898 |
leftRightArrow |
|
2899 |
"return a left-right-arrow cursor" |
|
2900 |
||
2901 |
^ LeftRightArrowCursor |
|
1934 | 2902 |
|
2903 |
" |
|
2904 |
Cursor leftRightArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2905 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2906 |
" |
2907 |
||
2908 |
"Modified: 23.10.1997 / 00:23:59 / cg" |
|
577 | 2909 |
! |
2910 |
||
2911 |
marker |
|
1934 | 2912 |
"Answer the instance of me that is the shape of a horizontal arrow." |
2913 |
||
2914 |
^ MarkerCursor |
|
2915 |
||
2916 |
" |
|
2917 |
Cursor marker |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2918 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2919 |
" |
2920 |
||
2921 |
"Modified: 23.10.1997 / 00:23:33 / cg" |
|
2922 |
! |
|
56 | 2923 |
|
577 | 2924 |
normal |
2925 |
"return the normal cursor; an arrow. |
|
2926 |
for ST-80 compatibility" |
|
2927 |
||
2928 |
^ NormalCursor |
|
1568 | 2929 |
|
1934 | 2930 |
|
2931 |
" |
|
2932 |
Cursor normal |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2933 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2934 |
" |
2935 |
||
2936 |
"Modified: 23.10.1997 / 00:23:12 / cg" |
|
577 | 2937 |
! |
2938 |
||
2939 |
origin |
|
2940 |
"return an origin cursor" |
|
2941 |
||
2942 |
^ OriginCursor |
|
1934 | 2943 |
|
2944 |
" |
|
2945 |
Cursor origin |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2946 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2947 |
" |
2948 |
||
2949 |
"Modified: 23.10.1997 / 00:22:58 / cg" |
|
577 | 2950 |
! |
2951 |
||
2952 |
questionMark |
|
2953 |
"return a question-mark cursor" |
|
2954 |
||
2616
9e03b6a1e2d0
questionMarkCursor; fixed CrossCursor.
Claus Gittinger <cg@exept.de>
parents:
2615
diff
changeset
|
2955 |
^ QuestionMarkCursor |
1934 | 2956 |
|
2957 |
" |
|
2958 |
Cursor questionMark |
|
2616
9e03b6a1e2d0
questionMarkCursor; fixed CrossCursor.
Claus Gittinger <cg@exept.de>
parents:
2615
diff
changeset
|
2959 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2960 |
" |
2961 |
||
2618
a03aee8c0b4b
use eye as replacement for questionmark
Claus Gittinger <cg@exept.de>
parents:
2616
diff
changeset
|
2962 |
"Modified: / 30.4.1999 / 10:14:52 / cg" |
577 | 2963 |
! |
2964 |
||
2965 |
read |
|
2966 |
"return a reading-file cursor (the default here is a wait-cursor)" |
|
2967 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2968 |
^ ReadCursor |
1934 | 2969 |
|
2970 |
" |
|
2971 |
Cursor read |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2972 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2973 |
" |
2974 |
||
2975 |
"Modified: 23.10.1997 / 00:22:23 / cg" |
|
577 | 2976 |
! |
2977 |
||
2978 |
right |
|
1934 | 2979 |
"Answer the instance of me that is the shape of an arrow facing to the right." |
2980 |
||
2981 |
^ RightCursor |
|
2982 |
||
2983 |
" |
|
2984 |
Cursor right |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
2985 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 2986 |
" |
2987 |
||
2988 |
"Modified: 23.10.1997 / 00:22:05 / cg" |
|
2989 |
! |
|
2990 |
||
2991 |
rightLimitArrow |
|
577 | 2992 |
"return a right-arrow-to-limit cursor" |
2993 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2994 |
^ RightLimitCursor |
1934 | 2995 |
|
2996 |
||
2997 |
" |
|
2998 |
Cursor rightLimitArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
2999 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3000 |
" |
3001 |
||
3002 |
"Modified: 23.10.1997 / 00:15:12 / cg" |
|
3003 |
"Created: 23.10.1997 / 00:21:21 / cg" |
|
577 | 3004 |
! |
3005 |
||
3006 |
stop |
|
3007 |
"return a stop cursor (the default here is a wait-cursor)" |
|
3008 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3009 |
^ StopCursor |
1934 | 3010 |
|
3011 |
" |
|
3012 |
Cursor stop |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3013 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3014 |
" |
3015 |
||
3016 |
"Modified: 23.10.1997 / 00:20:52 / cg" |
|
577 | 3017 |
! |
3018 |
||
3019 |
text |
|
3020 |
"return a text-cursor" |
|
3021 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3022 |
^ NormalCursor |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3023 |
"/ ^ TextCursor |
1934 | 3024 |
|
3025 |
" |
|
3026 |
Cursor text |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3027 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3028 |
" |
3029 |
||
3030 |
"Modified: 23.10.1997 / 00:20:37 / cg" |
|
56 | 3031 |
! |
3032 |
||
3033 |
thumbsDown |
|
3034 |
"return a hand cursor - ST-80 compatibility" |
|
3035 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3036 |
^ ThumbsDownCursor |
1934 | 3037 |
|
3038 |
" |
|
3039 |
Cursor thumbsDown |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3040 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3041 |
" |
3042 |
||
3043 |
"Modified: 23.10.1997 / 00:20:20 / cg" |
|
577 | 3044 |
! |
3045 |
||
3046 |
thumbsUp |
|
3047 |
"return a hand cursor - ST-80 compatibility" |
|
3048 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3049 |
^ ThumbsUpCursor |
1934 | 3050 |
|
3051 |
" |
|
3052 |
Cursor thumbsUp |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3053 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3054 |
" |
3055 |
||
3056 |
"Modified: 23.10.1997 / 00:20:04 / cg" |
|
577 | 3057 |
! |
3058 |
||
3059 |
topLeft |
|
3060 |
"return a top-left corner cursor" |
|
0 | 3061 |
|
577 | 3062 |
^ self origin |
1934 | 3063 |
|
3064 |
" |
|
3065 |
Cursor topLeft |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
3066 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3067 |
" |
3068 |
||
3069 |
"Modified: 23.10.1997 / 00:19:50 / cg" |
|
577 | 3070 |
! |
3071 |
||
3072 |
topRight |
|
3073 |
"return a top-right corner cursor" |
|
3074 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3075 |
^ TopRightCornerCursor |
1934 | 3076 |
|
3077 |
" |
|
3078 |
Cursor topRight |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3079 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3080 |
" |
3081 |
||
3082 |
"Modified: 23.10.1997 / 00:19:33 / cg" |
|
577 | 3083 |
! |
3084 |
||
3085 |
up |
|
1934 | 3086 |
"Answer the instance of me that is the shape of an up-arrow." |
3087 |
||
3088 |
^ UpCursor |
|
3089 |
||
3090 |
" |
|
3091 |
Cursor up |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
3092 |
showWhile:[ Delay waitForSeconds:5 ] |
1934 | 3093 |
" |
3094 |
||
3095 |
"Modified: 23.10.1997 / 00:19:14 / cg" |
|
3096 |
! |
|
71 | 3097 |
|
577 | 3098 |
upDownArrow |
3099 |
"return an up-down-arrow cursor" |
|
3100 |
||
3101 |
^ UpDownArrowCursor |
|
1934 | 3102 |
|
3103 |
" |
|
3104 |
Cursor upDownArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3105 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3106 |
" |
3107 |
||
3108 |
"Modified: 23.10.1997 / 00:18:53 / cg" |
|
577 | 3109 |
! |
3110 |
||
3111 |
upLeftArrow |
|
3112 |
"return an up-right-arrow cursor" |
|
3113 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3114 |
^ NormalCursor |
1934 | 3115 |
|
3116 |
" |
|
3117 |
Cursor upLeftArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3118 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3119 |
" |
3120 |
||
3121 |
"Modified: 23.10.1997 / 00:18:37 / cg" |
|
577 | 3122 |
! |
71 | 3123 |
|
577 | 3124 |
upLimitArrow |
3125 |
"return an up-arrow-to-limit cursor" |
|
3126 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3127 |
^ UpLimitCursor |
1934 | 3128 |
|
3129 |
" |
|
3130 |
Cursor upLimitArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3131 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3132 |
" |
3133 |
||
3134 |
"Modified: 23.10.1997 / 00:18:19 / cg" |
|
577 | 3135 |
! |
0 | 3136 |
|
577 | 3137 |
upRightArrow |
3138 |
"return an up-right-arrow cursor" |
|
3139 |
||
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3140 |
^ NormalCursor |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3141 |
"/ ^ UpRightArrowCursor |
1934 | 3142 |
|
3143 |
" |
|
3144 |
Cursor upRightArrow |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3145 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3146 |
" |
3147 |
||
3148 |
"Modified: 23.10.1997 / 00:18:03 / cg" |
|
577 | 3149 |
! |
3150 |
||
3151 |
upRightHand |
|
3152 |
"return an up-right-hand cursor" |
|
3153 |
||
2063 | 3154 |
^ UpRightHandCursor |
1934 | 3155 |
|
3156 |
" |
|
3157 |
Cursor upRightHand |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3158 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3159 |
" |
3160 |
||
3161 |
"Modified: 23.10.1997 / 00:17:46 / cg" |
|
71 | 3162 |
! |
3163 |
||
577 | 3164 |
wait |
3165 |
"return a wait cursor" |
|
3166 |
||
3167 |
^ WaitCursor |
|
1934 | 3168 |
|
3169 |
" |
|
3170 |
Cursor wait |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3171 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3172 |
" |
3173 |
||
3174 |
"Modified: 23.10.1997 / 00:17:32 / cg" |
|
577 | 3175 |
! |
3176 |
||
3177 |
write |
|
3178 |
"return a writing-file cursor (the default here is a wait-cursor)" |
|
0 | 3179 |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3180 |
^ WriteCursor |
1934 | 3181 |
|
3182 |
" |
|
3183 |
Cursor write |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3184 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3185 |
" |
3186 |
||
3187 |
"Modified: 23.10.1997 / 00:17:22 / cg" |
|
577 | 3188 |
! |
3189 |
||
3190 |
xMarker |
|
1934 | 3191 |
"Answer the instance of me that is displayed when thumb-scrolling on the x-axis." |
3192 |
||
3193 |
^ XMarkerCursor |
|
3194 |
||
3195 |
" |
|
3196 |
Cursor xMarker |
|
2362
e391d80efdb5
execute cursor under windows
Claus Gittinger <cg@exept.de>
parents:
2194
diff
changeset
|
3197 |
showWhile:[ Delay waitForSeconds:3 ] |
1934 | 3198 |
" |
3199 |
||
3200 |
"Modified: 23.10.1997 / 00:16:44 / cg" |
|
3201 |
! ! |
|
577 | 3202 |
|
5085 | 3203 |
!Cursor class methodsFor:'styles'! |
3204 |
||
3205 |
disableThumbsCursors |
|
3206 |
||
3207 |
ThumbsUpCursor := NormalCursor. |
|
3208 |
ThumbsDownCursor := NormalCursor. |
|
3209 |
||
3210 |
" |
|
3211 |
self initializeNewCursors. |
|
3212 |
self disableThumbsCursors. |
|
3213 |
" |
|
3214 |
! ! |
|
3215 |
||
577 | 3216 |
!Cursor methodsFor:'ST-80 displaying'! |
3217 |
||
3218 |
displayOn:aGC at:origin clippingBox:aRectangle rule:aRule mask:aMask |
|
3219 |
"ST-80 compatibility; |
|
3220 |
limited functionality: can only display bitmap cursors (yet)" |
|
3221 |
||
3222 |
sourceForm notNil ifTrue:[ |
|
3223 |
sourceForm displayOn:aGC at:origin clippingBox:aRectangle |
|
3224 |
rule:aRule mask:aMask |
|
0 | 3225 |
] |
2 | 3226 |
! |
3227 |
||
577 | 3228 |
show |
3229 |
"ST-80 mimicri: change cursors in active groups views to the receiver." |
|
2 | 3230 |
|
1188
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
3231 |
|wg| |
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
3232 |
|
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
3233 |
(wg := WindowGroup activeGroup) notNil ifTrue:[ |
1698 | 3234 |
wg showCursor:self |
1188
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
3235 |
] |
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
3236 |
|
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
3237 |
"Modified: 13.1.1997 / 20:10:01 / cg" |
577 | 3238 |
! |
3239 |
||
3240 |
showIn:aView |
|
3241 |
"ST-80 mimicri: install the receiver as aViews cursor" |
|
3242 |
||
3243 |
aView cursor:self |
|
2 | 3244 |
! |
3245 |
||
577 | 3246 |
showIn:aView while:aBlock |
7353 | 3247 |
"ST-80 mimicri: change aView's cursors to the receiver, while evaluationg aBlock. |
577 | 3248 |
Return the value as returned by aBlock." |
3249 |
||
3250 |
|savedCursor| |
|
3251 |
||
3252 |
savedCursor := aView cursor. |
|
3253 |
aView cursor:self. |
|
3607
62e5a818d378
#valueNowOrOnUnwindDo: -> #ensure:
Claus Gittinger <cg@exept.de>
parents:
3462
diff
changeset
|
3254 |
^ aBlock ensure:[aView cursor:savedCursor] |
577 | 3255 |
! |
2 | 3256 |
|
577 | 3257 |
showWhile:aBlock |
3258 |
"ST-80 mimicri: change all views cursors to the receiver. |
|
3259 |
Return the value as returned by aBlock." |
|
3260 |
||
1188
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
3261 |
|wg| |
577 | 3262 |
|
1188
2a4d644e8828
care for nil-windowGroup in #show and #showWhile:
Claus Gittinger <cg@exept.de>
parents:
1181
diff
changeset
|
3263 |
(wg := WindowGroup activeGroup) notNil ifTrue:[ |
2372
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
3264 |
^ wg withCursor:self do:aBlock |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
3265 |
]. |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
3266 |
^ aBlock value |
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
3267 |
|
e84fd06f8d2d
added example showing all standard cursors
Claus Gittinger <cg@exept.de>
parents:
2370
diff
changeset
|
3268 |
"Modified: / 28.9.1998 / 12:56:59 / cg" |
2 | 3269 |
! ! |
3270 |
||
0 | 3271 |
!Cursor methodsFor:'accessing'! |
3272 |
||
577 | 3273 |
device |
8910 | 3274 |
<resource: #obsolete> |
8811 | 3275 |
"return the device I am associated with. |
3276 |
Please use graphicsDevice for ST80 compatibility." |
|
577 | 3277 |
|
3278 |
^ device |
|
3279 |
! |
|
3280 |
||
3462 | 3281 |
extent |
3282 |
sourceForm notNil ifTrue:[^ sourceForm extent]. |
|
3283 |
^ 16@16 |
|
3284 |
! |
|
3285 |
||
577 | 3286 |
foreground:fgColor background:bgColor |
3287 |
"set the cursor colors" |
|
3288 |
||
3289 |
device colorCursor:cursorId foreground:fgColor background:bgColor |
|
3290 |
! |
|
3291 |
||
733 | 3292 |
graphicsDevice |
3293 |
"same as #device, for ST-80 compatibility naming. |
|
3294 |
Return the device I am associated with." |
|
3295 |
||
3296 |
^ device |
|
3297 |
||
3298 |
"Created: 28.5.1996 / 18:39:01 / cg" |
|
3299 |
! |
|
3300 |
||
577 | 3301 |
hotX |
3302 |
"return the hotspots x-coordinate of the receiver" |
|
3303 |
||
3304 |
^ hotX |
|
3305 |
! |
|
3306 |
||
3307 |
hotY |
|
3308 |
"return the hotspots y-coordinate of the receiver" |
|
3309 |
||
3310 |
^ hotY |
|
3311 |
! |
|
3312 |
||
0 | 3313 |
id |
3314 |
"return the cursors deviceId" |
|
3315 |
||
3316 |
^ cursorId |
|
3317 |
! |
|
3318 |
||
577 | 3319 |
maskForm |
3320 |
"return the mask-form of the receiver" |
|
0 | 3321 |
|
577 | 3322 |
^ maskForm |
3323 |
! |
|
3324 |
||
3325 |
maskForm:aForm |
|
3326 |
"set the mask-form of the receiver" |
|
3327 |
||
3328 |
maskForm := aForm |
|
0 | 3329 |
! |
3330 |
||
3331 |
shape |
|
3332 |
"return the shape" |
|
3333 |
||
3334 |
^ shape |
|
3335 |
! |
|
3336 |
||
3337 |
sourceForm |
|
3338 |
"return the source-form of the receiver" |
|
3339 |
||
3340 |
^ sourceForm |
|
3341 |
! |
|
3342 |
||
3343 |
sourceForm:aForm |
|
3344 |
"set the source-form of the receiver" |
|
3345 |
||
3346 |
sourceForm := aForm |
|
577 | 3347 |
! ! |
0 | 3348 |
|
8689 | 3349 |
!Cursor methodsFor:'copying-private'! |
0 | 3350 |
|
577 | 3351 |
postCopy |
3352 |
sourceForm := sourceForm copy. |
|
3353 |
maskForm := maskForm copy. |
|
3354 |
device := cursorId := nil |
|
4403 | 3355 |
! |
3356 |
||
3357 |
postDeepCopy |
|
3358 |
device := cursorId := nil |
|
0 | 3359 |
! ! |
3360 |
||
3361 |
!Cursor methodsFor:'creating a device cursor'! |
|
3362 |
||
3363 |
on:aDevice |
|
3364 |
"create a new Cursor representing the same cursor as |
|
3365 |
myself on aDevice; if one already exists, return the one" |
|
3366 |
||
3623 | 3367 |
"/ send out a warning: #on: is typically used to create views |
1741 | 3368 |
"/ operating on a model. |
3369 |
"/ Please use #onDevice: to avoid confusion. |
|
3370 |
||
3428 | 3371 |
<resource:#obsolete> |
3372 |
||
1494
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3373 |
self obsoleteMethodWarning:'use #onDevice:'. |
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3374 |
^ self onDevice:aDevice |
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3375 |
|
1741 | 3376 |
"Modified: 5.6.1997 / 21:04:35 / cg" |
1494
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3377 |
! |
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3378 |
|
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3379 |
onDevice:aDevice |
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3380 |
"create a new Cursor representing the same cursor as |
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3381 |
myself on aDevice; if one already exists, return the one" |
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3382 |
|
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3383 |
|newCursor| |
0 | 3384 |
|
71 | 3385 |
"if I am already assigned to that device ..." |
0 | 3386 |
(device == aDevice) ifTrue:[^ self]. |
2844 | 3387 |
|
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3388 |
aDevice isNil ifTrue:[ |
2980
409e9547a45c
ignore nil device in #onDevice:
Claus Gittinger <cg@exept.de>
parents:
2845
diff
changeset
|
3389 |
^ self |
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3390 |
]. |
0 | 3391 |
|
3392 |
"first look if not already there" |
|
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3393 |
aDevice deviceCursors do:[:aCursor | |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3394 |
shape notNil ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3395 |
(aCursor shape == shape) ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3396 |
^ aCursor |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3397 |
] |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3398 |
] ifFalse:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3399 |
(aCursor sourceForm == sourceForm) ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3400 |
(aCursor maskForm == maskForm) ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3401 |
(aCursor hotX == hotX) ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3402 |
(aCursor hotY == hotY) ifTrue:[ |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3403 |
^ aCursor |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3404 |
] |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3405 |
] |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3406 |
] |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3407 |
] |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3408 |
] |
0 | 3409 |
]. |
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3410 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3411 |
device isNil ifTrue:[ |
2844 | 3412 |
newCursor := self |
3413 |
] ifFalse:[ |
|
3414 |
newCursor := self shallowCopy. |
|
3415 |
newCursor setDevice:nil id:nil. |
|
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3416 |
]. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3417 |
^ newCursor allocateOnDevice:aDevice |
927
c4bc2a7ff733
use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents:
864
diff
changeset
|
3418 |
|
c4bc2a7ff733
use #graphicsDevice instead of #device.
Claus Gittinger <cg@exept.de>
parents:
864
diff
changeset
|
3419 |
"Modified: 5.7.1996 / 17:58:00 / cg" |
1494
4faf11deec70
cursor #on: is obsoleted by #onDevice:.
Claus Gittinger <cg@exept.de>
parents:
1414
diff
changeset
|
3420 |
"Created: 28.3.1997 / 13:46:38 / cg" |
71 | 3421 |
! ! |
3422 |
||
577 | 3423 |
!Cursor methodsFor:'instance release'! |
3424 |
||
3611
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3425 |
executor |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3426 |
"redefined to return a lightweight copy |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3427 |
- all we need is the device handle" |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3428 |
|
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3429 |
^ self class basicNew setDevice:device id:cursorId |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3430 |
|
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3431 |
"Modified: 20.4.1996 / 23:23:19 / cg" |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3432 |
! |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3433 |
|
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
3607
diff
changeset
|
3434 |
finalize |
1698 | 3435 |
"some Cursor has been collected - tell it to the display" |
577 | 3436 |
|
2844 | 3437 |
|id dev| |
2096 | 3438 |
|
3439 |
(id := cursorId) notNil ifTrue:[ |
|
2844 | 3440 |
(dev := device) notNil ifTrue:[ |
3441 |
cursorId := device := nil. |
|
3442 |
dev destroyCursor:id. |
|
3443 |
] |
|
577 | 3444 |
] |
3445 |
! |
|
3446 |
||
2845 | 3447 |
releaseFromDevice |
3448 |
"I am no longer available on the device" |
|
3449 |
||
4216
0a6a150d2c03
Release also the cursors forms when releasing a cursor.
Stefan Vogel <sv@exept.de>
parents:
3877
diff
changeset
|
3450 |
sourceForm notNil ifTrue:[sourceForm releaseFromDevice]. |
0a6a150d2c03
Release also the cursors forms when releasing a cursor.
Stefan Vogel <sv@exept.de>
parents:
3877
diff
changeset
|
3451 |
maskForm notNil ifTrue:[maskForm releaseFromDevice]. |
2845 | 3452 |
cursorId := device := nil. |
577 | 3453 |
! ! |
3454 |
||
4518 | 3455 |
!Cursor methodsFor:'printing'! |
3456 |
||
3457 |
printOn:aStream |
|
5265 | 3458 |
"append a printed representation to aStream" |
3459 |
||
4518 | 3460 |
self className printOn:aStream. |
3461 |
aStream nextPut:$(. |
|
3462 |
shape printOn:aStream. |
|
3463 |
aStream nextPut:$). |
|
3464 |
! ! |
|
3465 |
||
71 | 3466 |
!Cursor methodsFor:'private'! |
3467 |
||
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3468 |
allocateOnDevice:aDevice |
2844 | 3469 |
"allocate a device-cursor-resource for me on aDevice" |
71 | 3470 |
|
3743 | 3471 |
|id sF mF w h deviceSf deviceMf| |
0 | 3472 |
|
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3473 |
device notNil ifTrue:[ |
4216
0a6a150d2c03
Release also the cursors forms when releasing a cursor.
Stefan Vogel <sv@exept.de>
parents:
3877
diff
changeset
|
3474 |
self error:'cursor is already assigned to a device' mayProceed:true. |
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3475 |
device unregisterCursor:self. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3476 |
device := cursorId := nil. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3477 |
]. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3478 |
|
0 | 3479 |
"ask that device for the cursor" |
3480 |
shape notNil ifTrue:[ |
|
2473 | 3481 |
id := aDevice createCursorShape:shape. |
3482 |
id isNil ifTrue:[ |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3483 |
sourceForm isNil ifTrue:[ |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3484 |
"/ no fallBack form provided ... |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3485 |
'Cursor [warning]: no cursor with shape:' errorPrint. |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3486 |
shape errorPrint. ' on device ' errorPrint. aDevice errorPrintCR. |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3487 |
^ self |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3488 |
] |
2473 | 3489 |
]. |
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3490 |
]. |
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3491 |
id isNil ifTrue:[ |
2473 | 3492 |
aDevice needDeviceFormsForCursor ifTrue:[ |
3493 |
sourceForm notNil ifTrue:[ |
|
2474
bddae0850c56
dont mix deviceBitmaps with my deviceId
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
3494 |
sF := deviceSf := sourceForm asFormOn:aDevice. |
2473 | 3495 |
]. |
3496 |
maskForm notNil ifTrue:[ |
|
2474
bddae0850c56
dont mix deviceBitmaps with my deviceId
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
3497 |
mF := deviceMf := maskForm asFormOn:aDevice. |
2473 | 3498 |
] ifFalse:[ |
3499 |
mF := sF |
|
3500 |
]. |
|
3501 |
] ifFalse:[ |
|
3502 |
sourceForm notNil ifTrue:[ |
|
2474
bddae0850c56
dont mix deviceBitmaps with my deviceId
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
3503 |
sF := sourceForm bits. |
bddae0850c56
dont mix deviceBitmaps with my deviceId
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
3504 |
deviceSf := sourceForm. |
2473 | 3505 |
]. |
3506 |
maskForm notNil ifTrue:[ |
|
3507 |
mF := maskForm bits. |
|
2474
bddae0850c56
dont mix deviceBitmaps with my deviceId
Claus Gittinger <cg@exept.de>
parents:
2473
diff
changeset
|
3508 |
deviceMf := maskForm. |
2473 | 3509 |
] ifFalse:[ |
3510 |
mF := sF |
|
3511 |
]. |
|
3512 |
]. |
|
3513 |
(sF isNil or:[mF isNil]) ifTrue:[ |
|
3514 |
'Cursor [warning]: cursor has no form' errorPrintCR. |
|
3515 |
^ self |
|
3516 |
]. |
|
3517 |
w := sourceForm width. |
|
3518 |
h := sourceForm height. |
|
3519 |
id := aDevice |
|
3520 |
createCursorSourceForm:sF |
|
3521 |
maskForm:mF |
|
3522 |
hotX:hotX hotY:hotY |
|
3523 |
width:w height:h. |
|
3524 |
||
3525 |
id isNil ifTrue:[ |
|
3526 |
'Cursor [warning]: cannot create pixmap cursor' errorPrintCR. |
|
3527 |
^ self |
|
3528 |
]. |
|
0 | 3529 |
]. |
3530 |
||
3531 |
"goody for IRIXs red cursor" |
|
3532 |
DefaultFgColor notNil ifTrue:[ |
|
2473 | 3533 |
aDevice colorCursor:id foreground:DefaultFgColor |
3534 |
background:DefaultBgColor |
|
0 | 3535 |
]. |
3536 |
||
2841
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3537 |
device := aDevice. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3538 |
cursorId := id. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3539 |
sourceForm := deviceSf. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3540 |
maskForm := deviceMf. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3541 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3542 |
"must register" |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3543 |
device registerCursor:self. |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3544 |
^ self |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3545 |
! |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3546 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3547 |
device:aDevice |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3548 |
"set the cursors device" |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3549 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3550 |
device := aDevice |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3551 |
! |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3552 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3553 |
id:anId |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3554 |
"set the cursors id" |
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3555 |
|
d6894d63291f
register device cursors in the device.
Claus Gittinger <cg@exept.de>
parents:
2626
diff
changeset
|
3556 |
cursorId := anId |
71 | 3557 |
! |
0 | 3558 |
|
2 | 3559 |
restored |
0 | 3560 |
"set both device and id" |
3561 |
||
3562 |
device := nil. |
|
3563 |
cursorId := nil |
|
3564 |
! ! |
|
3565 |
||
3877 | 3566 |
!Cursor methodsFor:'private-accessing'! |
0 | 3567 |
|
577 | 3568 |
setDevice:aDevice id:anId |
3569 |
"set the device and deviceId of the receiver" |
|
160 | 3570 |
|
577 | 3571 |
device := aDevice. |
3572 |
cursorId := anId |
|
0 | 3573 |
! |
3574 |
||
5351 | 3575 |
setHotX:hx hotY:hy |
3576 |
"set the hotspot" |
|
3577 |
||
3578 |
hotX := hx. |
|
3579 |
hotY := hy. |
|
3580 |
! |
|
3581 |
||
577 | 3582 |
setShape:aShapeSymbol |
3583 |
"set the shape" |
|
160 | 3584 |
|
577 | 3585 |
shape := aShapeSymbol. |
0 | 3586 |
! |
3587 |
||
577 | 3588 |
setSourceForm:sForm maskForm:mForm hotX:hx hotY:hy |
3589 |
"set the forms and hotspot" |
|
0 | 3590 |
|
577 | 3591 |
sourceForm := sForm. |
3592 |
maskForm := mForm. |
|
3593 |
hotX := hx. |
|
3594 |
hotY := hy. |
|
3595 |
! ! |
|
157 | 3596 |
|
1811 | 3597 |
!Cursor methodsFor:'queries'! |
3598 |
||
3599 |
isAnimatedCursor |
|
3600 |
^ false |
|
3601 |
||
3602 |
"Created: 26.6.1997 / 11:12:48 / cg" |
|
3603 |
! ! |
|
3604 |
||
1140 | 3605 |
!Cursor class methodsFor:'documentation'! |
0 | 3606 |
|
577 | 3607 |
version |
7205 | 3608 |
^ '$Header$' |
5356 | 3609 |
! |
3610 |
||
3611 |
version_CVS |
|
7205 | 3612 |
^ '$Header$' |
0 | 3613 |
! ! |
3743 | 3614 |
|
6207
265c0bb79b00
Replace references to Diplay with "Screen current" - where appropriate
Stefan Vogel <sv@exept.de>
parents:
5356
diff
changeset
|
3615 |
|
3065
1faf4c6717d8
shape cursor handling fixed (I hope)
Claus Gittinger <cg@exept.de>
parents:
3064
diff
changeset
|
3616 |
Cursor initialize! |