Mercurial > projects > dwt-win
diff dwt/graphics/GC.d @ 197:184ab53b7785
Changes and fixes for jface
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 10 Apr 2008 11:19:49 +0200 |
parents | 3afcd4ddcf90 |
children | ab60f3309436 |
line wrap: on
line diff
--- a/dwt/graphics/GC.d Mon Apr 07 13:08:57 2008 +0200 +++ b/dwt/graphics/GC.d Thu Apr 10 11:19:49 2008 +0200 @@ -12,22 +12,6 @@ *******************************************************************************/ module dwt.graphics.GC; - - -/+ -//PORTING_TYPE -class GC{ - void dispose(); - bool isDisposed(); - void flush (); - GCData data; - HDC handle; -public void drawImage(Image image, int x, int y) ; -public void drawImage(Image image, int srcX, int srcY, int srcWidth, int srcHeight, int destX, int destY, int destWidth, int destHeight) ; -void drawImage(Image srcImage, int srcX, int srcY, int srcWidth, int srcHeight, int destX, int destY, int destWidth, int destHeight, bool simple) ; -} -+/ - import dwt.DWT; import dwt.DWTError; import dwt.DWTException; @@ -196,7 +180,7 @@ if (device is null) device = Device.getDevice(); if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); this.device = data.device = device; - init (drawable, data, hDC); + init_ (drawable, data, hDC); if (device.tracking) device.new_Object(this); } @@ -3699,7 +3683,7 @@ return Gdip.Matrix_new(1, 0, 0, 1, 0, 0); } -void init(Drawable drawable, GCData data, HDC hDC) { +void init_(Drawable drawable, GCData data, HDC hDC) { auto foreground = data.foreground; if (foreground !is -1) { data.state &= ~(FOREGROUND | FOREGROUND_TEXT | PEN); @@ -4870,7 +4854,7 @@ GC gc = new GC(); auto hDC = drawable.internal_new_GC(data); gc.device = data.device; - gc.init(drawable, data, hDC); + gc.init_(drawable, data, hDC); return gc; } @@ -4892,7 +4876,7 @@ public static GC win32_new(HDC hDC, GCData data) { GC gc = new GC(); gc.device = data.device; - gc.init(null, data, hDC); + gc.init_(null, data, hDC); return gc; }