comparison 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
comparison
equal deleted inserted replaced
32:705817d8514a 33:157b4ad5615d
15 private { 15 private {
16 Mask mMask; 16 Mask mMask;
17 } 17 }
18 } 18 }
19 19
20 final class CrossingEvent : Event { 20 /+
21 this(in Mask mask) { 21 final class FocusEvent : Event {
22 super(mask);
23 }
24
25 private {
26 }
27 } 22 }
23 +/
28 24
29 final class KeyEvent : Event { 25 final class KeyEvent : Event {
30 this(in string str, in uint value, in Mask mask) { 26 this(in string str, in uint value, in Mask mask) {
31 super(mask); 27 super(mask);
32 mStr = str; 28 mStr = str;
58 private { 54 private {
59 Point mPixelPoint; 55 Point mPixelPoint;
60 Point mModelPoint; 56 Point mModelPoint;
61 } 57 }
62 } 58 }
59
60 /*
61 final class CrossingEvent : PointerEvent {
62 this(in Mask mask) {
63 super(mask);
64 }
65
66 private {
67 }
68 }
69 */
63 70
64 final class ButtonEvent : PointerEvent { 71 final class ButtonEvent : PointerEvent {
65 this(in ButtonAction button_action, 72 this(in ButtonAction button_action,
66 in ButtonName button_name, 73 in ButtonName button_name,
67 in Point pixel_point, 74 in Point pixel_point,