3651
|
1 |
"{ Package: 'stx:libwidg2' }"
|
|
2 |
|
|
3 |
ButtonController subclass:#LinkButtonController
|
|
4 |
instanceVariableNames:'lastX lastY'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Interface-Support-Controllers'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
3661
|
11 |
!LinkButtonController methodsFor:'accessing'!
|
|
12 |
|
|
13 |
lastMousePoint
|
|
14 |
^ lastX @ lastY
|
|
15 |
! !
|
|
16 |
|
3651
|
17 |
!LinkButtonController methodsFor:'event handling'!
|
|
18 |
|
|
19 |
buttonMotion:buttonState x:x y:y
|
3661
|
20 |
lastX := x.
|
|
21 |
lastY := y.
|
|
22 |
super buttonMotion:buttonState x:x y:y.
|
3651
|
23 |
!
|
|
24 |
|
|
25 |
buttonPress:button x:x y:y
|
|
26 |
lastX := x.
|
|
27 |
lastY := y.
|
|
28 |
super buttonPress:button x:x y:y.
|
|
29 |
!
|
|
30 |
|
|
31 |
buttonRelease:button x:x y:y
|
|
32 |
lastX := x.
|
|
33 |
lastY := y.
|
|
34 |
super buttonRelease:button x:x y:y.
|
|
35 |
! !
|
|
36 |
|
|
37 |
!LinkButtonController class methodsFor:'documentation'!
|
|
38 |
|
|
39 |
version
|
3661
|
40 |
^ '$Header: /cvs/stx/stx/libwidg2/LinkButtonController.st,v 1.2 2009-03-09 13:34:48 cg Exp $'
|
3651
|
41 |
! !
|