Mercurial > projects > doodle
diff tk/events.d @ 13:f0ade1b49fe7
Checkpoint
author | "David Bryant <bagnose@gmail.com>" |
---|---|
date | Sun, 12 Jul 2009 01:04:35 +0930 |
parents | bf7903435f58 |
children | 9e63308b749c |
line wrap: on
line diff
--- a/tk/events.d Sun Jul 12 00:39:35 2009 +0930 +++ b/tk/events.d Sun Jul 12 01:04:35 2009 +0930 @@ -3,29 +3,7 @@ import tk.types; import tk.geometry; -// -// Should we pass the screen and model points into -// the events or pass a transform in separately to the handler -// - abstract class Event { - this() { - } - - private { - } -} - -final class ExposeEvent : Event { - this() { - super(); - } - - private { - } -} - -abstract class InputEvent : Event { this(Mask mask) { mMask = mask; } @@ -37,7 +15,7 @@ } } -final class CrossingEvent : InputEvent { +final class CrossingEvent : Event { this(Mask mask) { super(mask); } @@ -46,7 +24,7 @@ } } -final class KeyEvent : InputEvent { +final class KeyEvent : Event { this(string str, uint value, Mask mask) { super(mask); mStr = str; @@ -65,7 +43,7 @@ } } -abstract class PointerEvent : InputEvent { +abstract class PointerEvent : Event { this(in Point screen_point, in Point model_point, Mask mask) { super(mask); mScreenPoint = screen_point;