diff dwt/graphics/Image.d @ 5:1a8b3cb347e0

Fix Ctors to 'this'
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:02:31 +0200
parents ab8b5765e3d1
children e831403a80a9
line wrap: on
line diff
--- a/dwt/graphics/Image.d	Wed Aug 27 13:51:50 2008 +0200
+++ b/dwt/graphics/Image.d	Wed Aug 27 14:02:31 2008 +0200
@@ -136,7 +136,7 @@
      */
     static final int DEFAULT_SCANLINE_PAD = 4;
 
-Image(Device device) {
+this(Device device) {
     super(device);
 }
 
@@ -170,7 +170,7 @@
  *    <li>ERROR_NO_HANDLES if a handle could not be obtained for image creation</li>
  * </ul>
  */
-public Image(Device device, int width, int height) {
+public this(Device device, int width, int height) {
     super(device);
     init(width, height);
     init();
@@ -207,7 +207,7 @@
  *    <li>ERROR_NO_HANDLES if a handle could not be obtained for image creation</li>
  * </ul>
  */
-public Image(Device device, Image srcImage, int flag) {
+public this(Device device, Image srcImage, int flag) {
     super(device);
     if (srcImage is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
     if (srcImage.isDisposed()) DWT.error(DWT.ERROR_INVALID_ARGUMENT);
@@ -337,7 +337,7 @@
  *    <li>ERROR_NO_HANDLES if a handle could not be obtained for image creation</li>
  * </ul>
  */
-public Image(Device device, Rectangle bounds) {
+public this(Device device, Rectangle bounds) {
     super(device);
     if (bounds is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
     init(bounds.width, bounds.height);
@@ -362,7 +362,7 @@
  *    <li>ERROR_NO_HANDLES if a handle could not be obtained for image creation</li>
  * </ul>
  */
-public Image(Device device, ImageData data) {
+public this(Device device, ImageData data) {
     super(device);
     init(data);
     init();
@@ -393,7 +393,7 @@
  *    <li>ERROR_NO_HANDLES if a handle could not be obtained for image creation</li>
  * </ul>
  */
-public Image(Device device, ImageData source, ImageData mask) {
+public this(Device device, ImageData source, ImageData mask) {
     super(device);
     if (source is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
     if (mask is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
@@ -455,7 +455,7 @@
  *    <li>ERROR_NO_HANDLES if a handle could not be obtained for image creation</li>
  * </ul>
  */
-public Image(Device device, InputStream stream) {
+public this(Device device, InputStream stream) {
     super(device);
     init(new ImageData(stream));
     init();
@@ -488,7 +488,7 @@
  *    <li>ERROR_NO_HANDLES if a handle could not be obtained for image creation</li>
  * </ul>
  */
-public Image(Device device, String filename) {
+public this(Device device, String filename) {
     super(device);
     init(new ImageData(filename));
     init();