comparison dwt/widgets/Canvas.d @ 46:cfa563df4fdd

Updated Widget and Display to 3.514
author Jacob Carlborg <doob@me.com>
date Fri, 05 Dec 2008 16:00:41 +0100
parents d8635bb48c7c
children e6f04eb518ae
comparison
equal deleted inserted replaced
45:d8635bb48c7c 46:cfa563df4fdd
145 checkWidget (); 145 checkWidget ();
146 if (gc is null) error (DWT.ERROR_NULL_ARGUMENT); 146 if (gc is null) error (DWT.ERROR_NULL_ARGUMENT);
147 if (gc.isDisposed ()) error (DWT.ERROR_INVALID_ARGUMENT); 147 if (gc.isDisposed ()) error (DWT.ERROR_INVALID_ARGUMENT);
148 Control control = findBackgroundControl (); 148 Control control = findBackgroundControl ();
149 if (control !is null) { 149 if (control !is null) {
150 NSRect rect = new NSRect(); 150 NSRect rect = NSRect();
151 rect.x = x; 151 rect.x = x;
152 rect.y = y; 152 rect.y = y;
153 rect.width = width; 153 rect.width = width;
154 rect.height = height; 154 rect.height = height;
155 control.fillBackground (view, gc.handle, rect); 155 control.fillBackground (view, gc.handle, rect);