diff doodle/tk/events.d @ 33:157b4ad5615d

Added intersection code for lines and segments. Wrote my first unit test to for geometry stuff.
author David Bryant <bagnose@gmail.com>
date Sun, 30 Aug 2009 01:34:14 +0930
parents 1754cb773d41
children 1b4c9ba58673
line wrap: on
line diff
--- a/doodle/tk/events.d	Sun Aug 30 01:33:34 2009 +0930
+++ b/doodle/tk/events.d	Sun Aug 30 01:34:14 2009 +0930
@@ -17,14 +17,10 @@
     }
 }
 
-final class CrossingEvent : Event {
-    this(in Mask mask) {
-        super(mask);
-    }
-
-    private {
-    }
+/+
+final class FocusEvent : Event {
 }
++/
 
 final class KeyEvent : Event {
     this(in string str, in uint value, in Mask mask) {
@@ -61,6 +57,17 @@
     }
 }
 
+/*
+final class CrossingEvent : PointerEvent {
+    this(in Mask mask) {
+        super(mask);
+    }
+
+    private {
+    }
+}
+*/
+
 final class ButtonEvent : PointerEvent {
     this(in ButtonAction button_action,
          in ButtonName button_name,