Mercurial > projects > dwt-win
diff dwt/events/PaintEvent.d @ 86:bef1ed4ebc50
again copied events from dwt-linux
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 06 Feb 2008 21:33:24 +0100 |
parents | 9a64a7781bab |
children | ab60f3309436 |
line wrap: on
line diff
--- a/dwt/events/PaintEvent.d Wed Feb 06 19:33:24 2008 +0100 +++ b/dwt/events/PaintEvent.d Wed Feb 06 21:33:24 2008 +0100 @@ -92,10 +92,15 @@ * * @return a string representation of the event */ -override public char[] toString() { +public override char[] toString() { return Format( "{} gc={} x={} y={} width={} height={} count={}}", - super.toString[ 0 .. $-2 ], - gc, x, y, width, height, count ); + super.toString[ 0 .. $-1 ], + gc is null ? "null" : gc.toString, + x, + y, + width, + height, + count ); } }