Mercurial > projects > dwt-win
diff dwt/graphics/Font.d @ 197:184ab53b7785
Changes and fixes for jface
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 10 Apr 2008 11:19:49 +0200 |
parents | 9a64a7781bab |
children | 8313535d74fa |
line wrap: on
line diff
--- a/dwt/graphics/Font.d Mon Apr 07 13:08:57 2008 +0200 +++ b/dwt/graphics/Font.d Thu Apr 10 11:19:49 2008 +0200 @@ -80,7 +80,7 @@ public this(Device device, FontData fd) { if (device is null) device = Device.getDevice(); if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); - init(device, fd); + init_(device, fd); if (device.tracking) device.new_Object(this); } @@ -115,7 +115,7 @@ for (int i=0; i<fds.length; i++) { if (fds[i] is null) DWT.error(DWT.ERROR_INVALID_ARGUMENT); } - init(device, fds[0]); + init_(device, fds[0]); if (device.tracking) device.new_Object(this); } @@ -145,7 +145,7 @@ if (device is null) device = Device.getDevice(); if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (name is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); - init(device, new FontData (name, height, style)); + init_(device, new FontData (name, height, style)); if (device.tracking) device.new_Object(this); } @@ -153,7 +153,7 @@ if (device is null) device = Device.getDevice(); if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); if (name is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); - init(device, new FontData (name, height, style)); + init_(device, new FontData (name, height, style)); if (device.tracking) device.new_Object(this); } @@ -222,7 +222,7 @@ return cast(hash_t)handle; } -void init (Device device, FontData fd) { +void init_ (Device device, FontData fd) { if (fd is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); this.device = device; LOGFONT* logFont = &fd.data;