Mercurial > projects > dwt-mac
comparison dwt/graphics/TextStyle.d @ 37:642f460a0908
Fixed a lot of compile errors, a "hello world" app compiles now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Fri, 10 Oct 2008 12:29:48 +0200 |
parents | db5a898b2119 |
children | d8635bb48c7c |
comparison
equal
deleted
inserted
replaced
36:db5a898b2119 | 37:642f460a0908 |
---|---|
307 StringBuffer buffer = new StringBuffer("TextStyle {"); | 307 StringBuffer buffer = new StringBuffer("TextStyle {"); |
308 int startLength = buffer.length(); | 308 int startLength = buffer.length(); |
309 if (font !is null) { | 309 if (font !is null) { |
310 if (buffer.length() > startLength) buffer.append(", "); | 310 if (buffer.length() > startLength) buffer.append(", "); |
311 buffer.append("font="); | 311 buffer.append("font="); |
312 buffer.append(font); | 312 buffer.append(font.toString); |
313 } | 313 } |
314 if (foreground !is null) { | 314 if (foreground !is null) { |
315 if (buffer.length() > startLength) buffer.append(", "); | 315 if (buffer.length() > startLength) buffer.append(", "); |
316 buffer.append("foreground="); | 316 buffer.append("foreground="); |
317 buffer.append(foreground); | 317 buffer.append(foreground.toString); |
318 } | 318 } |
319 if (background !is null) { | 319 if (background !is null) { |
320 if (buffer.length() > startLength) buffer.append(", "); | 320 if (buffer.length() > startLength) buffer.append(", "); |
321 buffer.append("background="); | 321 buffer.append("background="); |
322 buffer.append(background); | 322 buffer.append(background.toString); |
323 } | 323 } |
324 if (underline) { | 324 if (underline) { |
325 if (buffer.length() > startLength) buffer.append(", "); | 325 if (buffer.length() > startLength) buffer.append(", "); |
326 buffer.append("underlined"); | 326 buffer.append("underlined"); |
327 } | 327 } |
335 buffer.append(rise); | 335 buffer.append(rise); |
336 } | 336 } |
337 if (metrics !is null) { | 337 if (metrics !is null) { |
338 if (buffer.length() > startLength) buffer.append(", "); | 338 if (buffer.length() > startLength) buffer.append(", "); |
339 buffer.append("metrics="); | 339 buffer.append("metrics="); |
340 buffer.append(metrics); | 340 buffer.append(metrics.toString); |
341 } | 341 } |
342 buffer.append("}"); | 342 buffer.append("}"); |
343 return buffer.toString(); | 343 return buffer.toString(); |
344 } | 344 } |
345 | 345 |