Mercurial > projects > dwt-mac
diff dwt/graphics/LineAttributes.d @ 155:e91dcbf77cc7
Fixes runtime problems with dmd and ldc. Changed a couple of floats to CGFloat
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 06 Jul 2009 21:17:03 +0200 |
parents | d8635bb48c7c |
children |
line wrap: on
line diff
--- a/dwt/graphics/LineAttributes.d Sat Jun 13 00:25:05 2009 +0200 +++ b/dwt/graphics/LineAttributes.d Mon Jul 06 21:17:03 2009 +0200 @@ -16,6 +16,7 @@ import dwt.DWT; import dwt.dwthelper.utils; +import dwt.internal.c.Carbon; /** * <code>LineAttributes</code> defines a set of line attributes that @@ -37,7 +38,7 @@ /** * The line width. */ - public float width; + public CGFloat width; /** * The line style. @@ -72,24 +73,24 @@ /** * The line dash style for DWT.LINE_CUSTOM. */ - public float[] dash; + public CGFloat[] dash; /** * The line dash style offset for DWT.LINE_CUSTOM. */ - public float dashOffset; + public CGFloat dashOffset; /** * The line miter limit. */ - public float miterLimit; + public CGFloat miterLimit; /** * Create a new line attributes with the specified line width. * * @param width the line width */ -public this(float width) { +public this(CGFloat width) { this(width, DWT.CAP_FLAT, DWT.JOIN_MITER, DWT.LINE_SOLID, null, 0, 10); } @@ -100,7 +101,7 @@ * @param cap the line cap style * @param join the line join style */ -public this(float width, int cap, int join) { +public this(CGFloat width, int cap, int join) { this(width, cap, join, DWT.LINE_SOLID, null, 0, 10); } @@ -115,7 +116,7 @@ * @param dashOffset the line dash style offset * @param miterLimit the line miter limit */ -public this(float width, int cap, int join, int style, float[] dash, float dashOffset, float miterLimit) { +public this(CGFloat width, int cap, int join, int style, CGFloat[] dash, CGFloat dashOffset, CGFloat miterLimit) { this.width = width; this.cap = cap; this.join = join;