comparison dwt/widgets/TabItem.d @ 7:e831403a80a9

Add 'cast' to casts
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:30:35 +0200
parents 1a8b3cb347e0
children d8635bb48c7c
comparison
equal deleted inserted replaced
6:b903c16b6f48 7:e831403a80a9
150 NSPoint pt = val.pointValue (); 150 NSPoint pt = val.pointValue ();
151 NSWindow window = parent.view.window (); 151 NSWindow window = parent.view.window ();
152 pt.y = window.screen ().frame ().height - pt.y; 152 pt.y = window.screen ().frame ().height - pt.y;
153 pt = parent.view.convertPoint_fromView_ (pt, null); 153 pt = parent.view.convertPoint_fromView_ (pt, null);
154 pt = window.convertScreenToBase (pt); 154 pt = window.convertScreenToBase (pt);
155 result.x = (int) pt.x; 155 result.x = cast(int) pt.x;
156 result.y = (int) pt.y; 156 result.y = cast(int) pt.y;
157 val = new NSValue (sizeValue); 157 val = new NSValue (sizeValue);
158 NSSize size = val.sizeValue (); 158 NSSize size = val.sizeValue ();
159 result.width = (int) size.width; 159 result.width = cast(int) size.width;
160 result.height = (int) size.height; 160 result.height = cast(int) size.height;
161 } 161 }
162 return result; 162 return result;
163 } 163 }
164 164
165 /** 165 /**