diff dwt/widgets/Event.d @ 15:2952d5604c0a

Ported some widgets, added some stuff to the runtime bindings
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Fri, 29 Aug 2008 21:46:05 +0200
parents 380af2bdd8e5
children d8635bb48c7c
line wrap: on
line diff
--- a/dwt/widgets/Event.d	Sat Aug 23 13:49:00 2008 +0200
+++ b/dwt/widgets/Event.d	Fri Aug 29 21:46:05 2008 +0200
@@ -7,15 +7,23 @@
  *
  * Contributors:
  *     IBM Corporation - initial API and implementation
+ *     
+ * Port to the D programming language:
+ *     Jacob Carlborg <jacob.carlborg@gmail.com>
  *******************************************************************************/
 module dwt.widgets.Event;
 
-import dwt.dwthelper.utils;
-
 
 import dwt.graphics.GC;
 import dwt.graphics.Rectangle;
 
+import tango.text.convert.Format;
+
+import dwt.dwthelper.utils;
+
+import dwt.widgets.Widget;
+import dwt.widgets.Display;
+
 /**
  * Instances of this class provide a description of a particular
  * event which occurred within DWT. The DWT <em>untyped listener</em>
@@ -217,6 +225,7 @@
  * @return a string representation of the event
  */
 public String toString () {
-    return "Event {type=" + type + " " + widget + " time=" + time + " data=" + data + " x=" + x + " y=" + y + " width=" + width + " height=" + height + " detail=" + detail + "}";  //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$
+    return Format( "Event {{type={} {} time={} data={} x={} y={} width={} height={} detail={}}",
+        type, widget, time, data, x, y, width, height, detail );  //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$
 }
 }