Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/TextStyle.d @ 9:950d84783eac
Removing direct tango deps.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 09 Mar 2009 14:26:40 +0100 |
parents | 6dd524f61e62 |
children | d46287db17ed |
comparison
equal
deleted
inserted
replaced
8:2847134a5fc0 | 9:950d84783eac |
---|---|
15 import org.eclipse.swt.SWT; | 15 import org.eclipse.swt.SWT; |
16 import org.eclipse.swt.graphics.Font; | 16 import org.eclipse.swt.graphics.Font; |
17 import org.eclipse.swt.graphics.Color; | 17 import org.eclipse.swt.graphics.Color; |
18 import org.eclipse.swt.graphics.GlyphMetrics; | 18 import org.eclipse.swt.graphics.GlyphMetrics; |
19 | 19 |
20 import tango.util.Convert; | |
21 import java.lang.all; | 20 import java.lang.all; |
22 | 21 |
23 /** | 22 /** |
24 * <code>TextStyle</code> defines a set of styles that can be applied | 23 * <code>TextStyle</code> defines a set of styles that can be applied |
25 * to a range of text. | 24 * to a range of text. |
328 buffer ~= "striked out"; | 327 buffer ~= "striked out"; |
329 } | 328 } |
330 if (rise !is 0) { | 329 if (rise !is 0) { |
331 if (buffer.length > startLength) buffer ~= ", "; | 330 if (buffer.length > startLength) buffer ~= ", "; |
332 buffer ~= "rise="; | 331 buffer ~= "rise="; |
333 buffer ~= to!(String)(rise); | 332 buffer ~= String_valueOf(rise); |
334 } | 333 } |
335 if (metrics !is null) { | 334 if (metrics !is null) { |
336 if (buffer.length > startLength) buffer ~= ", "; | 335 if (buffer.length > startLength) buffer ~= ", "; |
337 buffer ~= "metrics="; | 336 buffer ~= "metrics="; |
338 buffer ~= metrics.toString; | 337 buffer ~= metrics.toString; |