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 |
|
|
11 |
!LinkButtonController methodsFor:'event handling'!
|
|
12 |
|
|
13 |
buttonMotion:buttonState x:x y:y
|
|
14 |
super buttonMotion:buttonState x:x y:y
|
|
15 |
!
|
|
16 |
|
|
17 |
buttonPress:button x:x y:y
|
|
18 |
lastX := x.
|
|
19 |
lastY := y.
|
|
20 |
super buttonPress:button x:x y:y.
|
|
21 |
!
|
|
22 |
|
|
23 |
buttonRelease:button x:x y:y
|
|
24 |
lastX := x.
|
|
25 |
lastY := y.
|
|
26 |
super buttonRelease:button x:x y:y.
|
|
27 |
! !
|
|
28 |
|
|
29 |
!LinkButtonController class methodsFor:'documentation'!
|
|
30 |
|
|
31 |
version
|
|
32 |
^ '$Header: /cvs/stx/stx/libwidg2/LinkButtonController.st,v 1.1 2009-03-05 21:19:29 cg Exp $'
|
|
33 |
! !
|