LinkButtonController.st
changeset 3651 8bcfa0ccdaef
child 3661 010d2b09a8b2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LinkButtonController.st	Thu Mar 05 22:19:29 2009 +0100
@@ -0,0 +1,33 @@
+"{ Package: 'stx:libwidg2' }"
+
+ButtonController subclass:#LinkButtonController
+	instanceVariableNames:'lastX lastY'
+	classVariableNames:''
+	poolDictionaries:''
+	category:'Interface-Support-Controllers'
+!
+
+
+!LinkButtonController methodsFor:'event handling'!
+
+buttonMotion:buttonState x:x y:y
+    super buttonMotion:buttonState x:x y:y
+!
+
+buttonPress:button x:x y:y
+    lastX := x.
+    lastY := y.
+    super buttonPress:button x:x y:y.
+!
+
+buttonRelease:button x:x y:y
+    lastX := x.
+    lastY := y.
+    super buttonRelease:button x:x y:y.
+! !
+
+!LinkButtonController class methodsFor:'documentation'!
+
+version
+    ^ '$Header: /cvs/stx/stx/libwidg2/LinkButtonController.st,v 1.1 2009-03-05 21:19:29 cg Exp $'
+! !