diff dwt/internal/cocoa/NSSlider.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/NSSlider.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/cocoa/NSSlider.d	Tue Aug 19 17:35:17 2008 +0200
@@ -44,158 +44,158 @@
 
     public bool acceptsFirstMouse (NSEvent theEvent)
     {
-        return OS.objc_msgSend(this.id, OS.sel_acceptsFirstMouse_1, theEvent !is null ? theEvent.id : null) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_acceptsFirstMouse_1, theEvent !is null ? theEvent.id_ : null) !is null;
     }
 
     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 cast(double) OS.objc_msgSend_fpret(this.id, OS.sel_altIncrementValue);
+        return cast(double) OS.objc_msgSend_fpret(this.id_, OS.sel_altIncrementValue);
     }
 
     public double closestTickMarkValueToValue (double value)
     {
-        return cast(double) OS.objc_msgSend_fpret(this.id, OS.sel_closestTickMarkValueToValue_1, value);
+        return cast(double) OS.objc_msgSend_fpret(this.id_, OS.sel_closestTickMarkValueToValue_1, value);
     }
 
     public NSImage image ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_image);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_image);
         return result !is null ? new NSImage(result) : null;
     }
 
     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 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 cast(double) OS.objc_msgSend_fpret(this.id, OS.sel_maxValue);
+        return cast(double) OS.objc_msgSend_fpret(this.id_, OS.sel_maxValue);
     }
 
     public double minValue ()
     {
-        return cast(double) OS.objc_msgSend_fpret(this.id, OS.sel_minValue);
+        return cast(double) 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 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 setImage (NSImage backgroundImage)
     {
-        OS.objc_msgSend(this.id, OS.sel_setImage_1, backgroundImage !is null ? backgroundImage.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setImage_1, backgroundImage !is null ? backgroundImage.id_ : null);
     }
 
     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 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 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 cast(double) OS.objc_msgSend_fpret(this.id, OS.sel_tickMarkValueAtIndex_1, index);
+        return cast(double) 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;
     }