Mercurial > projects > dwt-mac
comparison dwt/widgets/Control.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 | 52d360200ae4 |
children |
comparison
equal
deleted
inserted
replaced
154:535243e6d16a | 155:e91dcbf77cc7 |
---|---|
2835 this.foreground = color; | 2835 this.foreground = color; |
2836 setForeground (color !is null ? color.handle : null); | 2836 setForeground (color !is null ? color.handle : null); |
2837 view.setNeedsDisplay(true); | 2837 view.setNeedsDisplay(true); |
2838 } | 2838 } |
2839 | 2839 |
2840 void setForeground (float [] color) { | 2840 void setForeground (Carbon.CGFloat [] color) { |
2841 } | 2841 } |
2842 | 2842 |
2843 void setForeground (int control, float [] color) { | 2843 void setForeground (int control, Carbon.CGFloat [] color) { |
2844 // ControlFontStyleRec fontStyle = new ControlFontStyleRec (); | 2844 // ControlFontStyleRec fontStyle = new ControlFontStyleRec (); |
2845 // OS.GetControlData (control, cast(short) OS.kControlEntireControl, OS.kControlFontStyleTag, ControlFontStyleRec.sizeof, fontStyle, null); | 2845 // OS.GetControlData (control, cast(short) OS.kControlEntireControl, OS.kControlFontStyleTag, ControlFontStyleRec.sizeof, fontStyle, null); |
2846 // if (color !is null) { | 2846 // if (color !is null) { |
2847 // fontStyle.foreColor_red = cast(short) (color [0] * 0xffff); | 2847 // fontStyle.foreColor_red = cast(short) (color [0] * 0xffff); |
2848 // fontStyle.foreColor_green = cast(short) (color [1] * 0xffff); | 2848 // fontStyle.foreColor_green = cast(short) (color [1] * 0xffff); |