Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/NSSliderCell.d @ 1:8b48be5454ce
The internal cocoa classes compile now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Tue, 19 Aug 2008 17:35:17 +0200 |
parents | 380af2bdd8e5 |
children | f565d3a95c0a |
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSSliderCell.d Sat Aug 09 17:00:02 2008 +0200 +++ b/dwt/internal/cocoa/NSSliderCell.d Tue Aug 19 17:35:17 2008 +0200 @@ -67,69 +67,69 @@ public bool allowsTickMarkValuesOnly () { - return OS.objc_msgSend(this.id, OS.sel_allowsTickMarkValuesOnly) !is null; + return OS.objc_msgSend(this.id_, OS.sel_allowsTickMarkValuesOnly) !is null; } public double altIncrementValue () { - return OS.objc_msgSend_fpret(this.id, OS.sel_altIncrementValue); + return OS.objc_msgSend_fpret(this.id_, OS.sel_altIncrementValue); } public double closestTickMarkValueToValue (double value) { - return OS.objc_msgSend_fpret(this.id, OS.sel_closestTickMarkValueToValue_1, value); + return OS.objc_msgSend_fpret(this.id_, OS.sel_closestTickMarkValueToValue_1, value); } public void drawBarInside (NSRect aRect, bool flipped) { - OS.objc_msgSend(this.id, OS.sel_drawBarInside_1flipped_1, aRect, flipped); + OS.objc_msgSend(this.id_, OS.sel_drawBarInside_1flipped_1, aRect, flipped); } public void drawKnob () { - OS.objc_msgSend(this.id, OS.sel_drawKnob); + OS.objc_msgSend(this.id_, OS.sel_drawKnob); } public void drawKnob_ (NSRect knobRect) { - OS.objc_msgSend(this.id, OS.sel_drawKnob_1, knobRect); + OS.objc_msgSend(this.id_, OS.sel_drawKnob_1, knobRect); } public NSInteger indexOfTickMarkAtPoint (NSPoint point) { - return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_indexOfTickMarkAtPoint_1, point); + return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_indexOfTickMarkAtPoint_1, point); } public NSInteger isVertical () { - return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_isVertical); + return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_isVertical); } public NSRect knobRectFlipped (bool flipped) { NSRect result; - OS.objc_msgSend_stret(result, this.id, OS.sel_knobRectFlipped_1, flipped); + OS.objc_msgSend_stret(&result, this.id_, OS.sel_knobRectFlipped_1, flipped); return result; } public CGFloat knobThickness () { - return cast(CGFloat) OS.objc_msgSend_fpret(this.id, OS.sel_knobThickness); + return cast(CGFloat) OS.objc_msgSend_fpret(this.id_, OS.sel_knobThickness); } public double maxValue () { - return OS.objc_msgSend_fpret(this.id, OS.sel_maxValue); + return OS.objc_msgSend_fpret(this.id_, OS.sel_maxValue); } public double minValue () { - return OS.objc_msgSend_fpret(this.id, OS.sel_minValue); + return OS.objc_msgSend_fpret(this.id_, OS.sel_minValue); } public NSInteger numberOfTickMarks () { - return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_numberOfTickMarks); + return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_numberOfTickMarks); } public static bool prefersTrackingUntilMouseUp () @@ -140,113 +140,113 @@ public NSRect rectOfTickMarkAtIndex (NSInteger index) { NSRect result; - OS.objc_msgSend_stret(result, this.id, OS.sel_rectOfTickMarkAtIndex_1, index); + OS.objc_msgSend_stret(&result, this.id_, OS.sel_rectOfTickMarkAtIndex_1, index); return result; } public void setAllowsTickMarkValuesOnly (bool yorn) { - OS.objc_msgSend(this.id, OS.sel_setAllowsTickMarkValuesOnly_1, yorn); + OS.objc_msgSend(this.id_, OS.sel_setAllowsTickMarkValuesOnly_1, yorn); } public void setAltIncrementValue (double incValue) { - OS.objc_msgSend(this.id, OS.sel_setAltIncrementValue_1, incValue); + OS.objc_msgSend(this.id_, OS.sel_setAltIncrementValue_1, incValue); } public void setKnobThickness (CGFloat aFloat) { - OS.objc_msgSend(this.id, OS.sel_setKnobThickness_1, aFloat); + OS.objc_msgSend(this.id_, OS.sel_setKnobThickness_1, aFloat); } public void setMaxValue (double aDouble) { - OS.objc_msgSend(this.id, OS.sel_setMaxValue_1, aDouble); + OS.objc_msgSend(this.id_, OS.sel_setMaxValue_1, aDouble); } public void setMinValue (double aDouble) { - OS.objc_msgSend(this.id, OS.sel_setMinValue_1, aDouble); + OS.objc_msgSend(this.id_, OS.sel_setMinValue_1, aDouble); } public void setNumberOfTickMarks (NSInteger count) { - OS.objc_msgSend(this.id, OS.sel_setNumberOfTickMarks_1, count); + OS.objc_msgSend(this.id_, OS.sel_setNumberOfTickMarks_1, count); } public void setSliderType (NSSliderType sliderType) { - OS.objc_msgSend(this.id, OS.sel_setSliderType_1, sliderType); + OS.objc_msgSend(this.id_, OS.sel_setSliderType_1, sliderType); } public void setTickMarkPosition (NSTickMarkPosition position) { - OS.objc_msgSend(this.id, OS.sel_setTickMarkPosition_1, position); + OS.objc_msgSend(this.id_, OS.sel_setTickMarkPosition_1, position); } public void setTitle (NSString aString) { - OS.objc_msgSend(this.id, OS.sel_setTitle_1, aString !is null ? aString.id : null); + OS.objc_msgSend(this.id_, OS.sel_setTitle_1, aString !is null ? aString.id_ : null); } public void setTitleCell (NSCell aCell) { - OS.objc_msgSend(this.id, OS.sel_setTitleCell_1, aCell !is null ? aCell.id : null); + OS.objc_msgSend(this.id_, OS.sel_setTitleCell_1, aCell !is null ? aCell.id_ : null); } public void setTitleColor (NSColor newColor) { - OS.objc_msgSend(this.id, OS.sel_setTitleColor_1, newColor !is null ? newColor.id : null); + OS.objc_msgSend(this.id_, OS.sel_setTitleColor_1, newColor !is null ? newColor.id_ : null); } public void setTitleFont (NSFont fontObj) { - OS.objc_msgSend(this.id, OS.sel_setTitleFont_1, fontObj !is null ? fontObj.id : null); + OS.objc_msgSend(this.id_, OS.sel_setTitleFont_1, fontObj !is null ? fontObj.id_ : null); } public NSSliderType sliderType () { - return cast(NSSliderType) OS.objc_msgSend(this.id, OS.sel_sliderType); + return cast(NSSliderType) OS.objc_msgSend(this.id_, OS.sel_sliderType); } public NSTickMarkPosition tickMarkPosition () { - return cast(NSTickMarkPosition) OS.objc_msgSend(this.id, OS.sel_tickMarkPosition); + return cast(NSTickMarkPosition) OS.objc_msgSend(this.id_, OS.sel_tickMarkPosition); } public double tickMarkValueAtIndex (NSInteger index) { - return OS.objc_msgSend_fpret(this.id, OS.sel_tickMarkValueAtIndex_1, index); + return OS.objc_msgSend_fpret(this.id_, OS.sel_tickMarkValueAtIndex_1, index); } public NSString title () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_title); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_title); return result !is null ? new NSString(result) : null; } public id titleCell () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_titleCell); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_titleCell); return result !is null ? new id(result) : null; } public NSColor titleColor () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_titleColor); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_titleColor); return result !is null ? new NSColor(result) : null; } public NSFont titleFont () { - objc.id result = OS.objc_msgSend(this.id, OS.sel_titleFont); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_titleFont); return result !is null ? new NSFont(result) : null; } public NSRect trackRect () { NSRect result; - OS.objc_msgSend_stret(result, this.id, OS.sel_trackRect); + OS.objc_msgSend_stret(&result, this.id_, OS.sel_trackRect); return result; }