comparison dwtx/novocode/CustomSeparator.d @ 191:1ef729510ed6

Fix compile error
author Frank Benoit <benoit@tionex.de>
date Tue, 28 Oct 2008 23:59:57 +0100
parents df4e66472aff
children
comparison
equal deleted inserted replaced
190:df4e66472aff 191:1ef729510ed6
14 *******************************************************************************/ 14 *******************************************************************************/
15 15
16 module dwtx.novocode.CustomSeparator; 16 module dwtx.novocode.CustomSeparator;
17 17
18 import dwt.DWT; 18 import dwt.DWT;
19 /**import dwt.events.PaintEvent;**/ 19 //import dwt.events.PaintEvent;
20 /**import dwt.events.PaintListener;**/ 20 //import dwt.events.PaintListener;
21 import dwt.graphics.Color; 21 import dwt.graphics.Color;
22 import dwt.graphics.Point; 22 import dwt.graphics.Point;
23 import dwt.graphics.Rectangle; 23 import dwt.graphics.Rectangle;
24 import dwt.widgets.Canvas; 24 import dwt.widgets.Canvas;
25 import dwt.widgets.Composite; 25 import dwt.widgets.Composite;
95 checkWidget(); 95 checkWidget();
96 return false; 96 return false;
97 } 97 }
98 98
99 99
100 private void onPaint(PaintEvent event) 100 private void onPaint(Event event)
101 { 101 {
102 Rectangle r = getClientArea(); 102 Rectangle r = getClientArea();
103 if(r.width is 0 || r.height is 0) return; 103 if(r.width is 0 || r.height is 0) return;
104 bool horiz = ((style & DWT.HORIZONTAL) !is 0); 104 bool horiz = ((style & DWT.HORIZONTAL) !is 0);
105 int mid = horiz ? r.y + (r.height/2) : r.x + (r.width/2); 105 int mid = horiz ? r.y + (r.height/2) : r.x + (r.width/2);