Mercurial > projects > dwt-mac
diff dwt/internal/cocoa/NSCursor.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/NSCursor.d Sat Aug 09 17:00:02 2008 +0200 +++ b/dwt/internal/cocoa/NSCursor.d Tue Aug 19 17:35:17 2008 +0200 @@ -78,47 +78,47 @@ public NSPoint hotSpot () { NSPoint result; - OS.objc_msgSend_stret(result, this.id, OS.sel_hotSpot); + OS.objc_msgSend_stret(&result, this.id_, OS.sel_hotSpot); return result; } 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 NSCursor initWithImage_foregroundColorHint_backgroundColorHint_hotSpot_ (NSImage newImage, NSColor fg, NSColor bg, NSPoint hotSpot) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithImage_1foregroundColorHint_1backgroundColorHint_1hotSpot_1, - newImage !is null ? newImage.id : null, fg !is null ? fg.id : null, bg !is null ? bg.id : null, hotSpot); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithImage_1foregroundColorHint_1backgroundColorHint_1hotSpot_1, + newImage !is null ? newImage.id_ : null, fg !is null ? fg.id_ : null, bg !is null ? bg.id_ : null, hotSpot); return result !is null ? this : null; } public NSCursor initWithImage_hotSpot_ (NSImage newImage, NSPoint aPoint) { - objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithImage_1hotSpot_1, newImage !is null ? newImage.id : null, aPoint); + objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithImage_1hotSpot_1, newImage !is null ? newImage.id_ : null, aPoint); return result !is null ? this : null; } public bool isSetOnMouseEntered () { - return OS.objc_msgSend(this.id, OS.sel_isSetOnMouseEntered) !is null; + return OS.objc_msgSend(this.id_, OS.sel_isSetOnMouseEntered) !is null; } public bool isSetOnMouseExited () { - return OS.objc_msgSend(this.id, OS.sel_isSetOnMouseExited) !is null; + return OS.objc_msgSend(this.id_, OS.sel_isSetOnMouseExited) !is null; } public void mouseEntered (NSEvent theEvent) { - OS.objc_msgSend(this.id, OS.sel_mouseEntered_1, theEvent !is null ? theEvent.id : null); + OS.objc_msgSend(this.id_, OS.sel_mouseEntered_1, theEvent !is null ? theEvent.id_ : null); } public void mouseExited (NSEvent theEvent) { - OS.objc_msgSend(this.id, OS.sel_mouseExited_1, theEvent !is null ? theEvent.id : null); + OS.objc_msgSend(this.id_, OS.sel_mouseExited_1, theEvent !is null ? theEvent.id_ : null); } public static NSCursor openHandCursor () @@ -135,7 +135,7 @@ public void pop () { - OS.objc_msgSend(this.id, OS.sel_pop); + OS.objc_msgSend(this.id_, OS.sel_pop); } public static void static_pop () @@ -145,7 +145,7 @@ public void push () { - OS.objc_msgSend(this.id, OS.sel_push); + OS.objc_msgSend(this.id_, OS.sel_push); } public static NSCursor resizeDownCursor () @@ -186,7 +186,7 @@ public void set () { - OS.objc_msgSend(this.id, OS.sel_set); + OS.objc_msgSend(this.id_, OS.sel_set); } public static void setHiddenUntilMouseMoves (bool flag) @@ -196,12 +196,12 @@ public void setOnMouseEntered (bool flag) { - OS.objc_msgSend(this.id, OS.sel_setOnMouseEntered_1, flag); + OS.objc_msgSend(this.id_, OS.sel_setOnMouseEntered_1, flag); } public void setOnMouseExited (bool flag) { - OS.objc_msgSend(this.id, OS.sel_setOnMouseExited_1, flag); + OS.objc_msgSend(this.id_, OS.sel_setOnMouseExited_1, flag); } public static void unhide ()