Mercurial > projects > dwt-win
diff dwt/graphics/TextLayout.d @ 48:9a64a7781bab
Added override and alias, first chunk. Thanks torhu for doing this patch.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 03 Feb 2008 01:14:54 +0100 |
parents | 92c102dd64a3 |
children | 0405e18fec7f |
line wrap: on
line diff
--- a/dwt/graphics/TextLayout.d Sun Feb 03 00:59:28 2008 +0100 +++ b/dwt/graphics/TextLayout.d Sun Feb 03 01:14:54 2008 +0100 @@ -160,7 +160,7 @@ x = 0; lineBreak = softBreak = false; } - public char[] toString () { + override public char[] toString () { return Format( "StyleItem {{{}, {}}", start, style ); } } @@ -463,7 +463,7 @@ * Disposes of the operating system resources associated with * the text layout. Applications must dispose of all allocated text layouts. */ -public void dispose () { +override public void dispose () { if (device is null) return; freeRuns(); font = null; @@ -1870,7 +1870,7 @@ * * @return <code>true</code> when the text layout is disposed and <code>false</code> otherwise */ -public bool isDisposed () { +override public bool isDisposed () { return device is null; } @@ -2496,7 +2496,7 @@ * * @return a string representation of the receiver */ -public char[] toString () { +override public char[] toString () { if (isDisposed()) return "TextLayout {*DISPOSED*}"; return "TextLayout {}"; }