comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/layout/RowData.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
comparison
equal deleted inserted replaced
8:2847134a5fc0 9:950d84783eac
14 14
15 import org.eclipse.swt.SWT; 15 import org.eclipse.swt.SWT;
16 import org.eclipse.swt.graphics.Point; 16 import org.eclipse.swt.graphics.Point;
17 import org.eclipse.swt.widgets.Control; 17 import org.eclipse.swt.widgets.Control;
18 18
19 import tango.util.Convert;
20 import java.lang.all; 19 import java.lang.all;
21 20
22 /** 21 /**
23 * Each control controlled by a <code>RowLayout</code> can have its initial 22 * Each control controlled by a <code>RowLayout</code> can have its initial
24 * width and height specified by setting a <code>RowData</code> object 23 * width and height specified by setting a <code>RowData</code> object
119 * 118 *
120 * @return a string representation of the RowData object 119 * @return a string representation of the RowData object
121 */ 120 */
122 override public String toString () { 121 override public String toString () {
123 String string = getName ()~" {"; 122 String string = getName ()~" {";
124 if (width !is SWT.DEFAULT) string ~= "width="~to!(String)(width)~" "; 123 if (width !is SWT.DEFAULT) string ~= "width="~String_valueOf(width)~" ";
125 if (height !is SWT.DEFAULT) string ~= "height="~to!(String)(height)~" "; 124 if (height !is SWT.DEFAULT) string ~= "height="~String_valueOf(height)~" ";
126 if (exclude) string ~= "exclude="~to!(String)(exclude)~" "; 125 if (exclude) string ~= "exclude="~String_valueOf(exclude)~" ";
127 string = string.trim(); 126 string = string.trim();
128 string ~= "}"; 127 string ~= "}";
129 return string; 128 return string;
130 } 129 }
131 } 130 }