Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSCachedImageRep.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 |
comparison
equal
deleted
inserted
replaced
0:380af2bdd8e5 | 1:8b48be5454ce |
---|---|
33 super(id); | 33 super(id); |
34 } | 34 } |
35 | 35 |
36 public NSCachedImageRep initWithSize (NSSize size, objc.id depth, bool flag, bool alpha) | 36 public NSCachedImageRep initWithSize (NSSize size, objc.id depth, bool flag, bool alpha) |
37 { | 37 { |
38 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithSize_1depth_1separate_1alpha_1, size, depth, flag, alpha); | 38 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithSize_1depth_1separate_1alpha_1, size, depth, flag, alpha); |
39 return result !is null ? this : null; | 39 return result !is null ? this : null; |
40 } | 40 } |
41 | 41 |
42 public NSCachedImageRep initWithWindow (NSWindow win, NSRect rect) | 42 public NSCachedImageRep initWithWindow (NSWindow win, NSRect rect) |
43 { | 43 { |
44 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithWindow_1rect_1, win !is null ? win.id : null, rect); | 44 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithWindow_1rect_1, win !is null ? win.id_ : null, rect); |
45 return result !is null ? this : null; | 45 return result !is null ? this : null; |
46 } | 46 } |
47 | 47 |
48 public NSRect rect () | 48 public NSRect rect () |
49 { | 49 { |
50 NSRect result; | 50 NSRect result; |
51 OS.objc_msgSend_stret(result, this.id, OS.sel_rect); | 51 OS.objc_msgSend_stret(&result, this.id_, OS.sel_rect); |
52 return result; | 52 return result; |
53 } | 53 } |
54 | 54 |
55 public NSWindow window () | 55 public NSWindow window () |
56 { | 56 { |
57 objc.id result = OS.objc_msgSend(this.id, OS.sel_window); | 57 objc.id result = OS.objc_msgSend(this.id_, OS.sel_window); |
58 return result !is null ? new NSWindow(result) : null; | 58 return result !is null ? new NSWindow(result) : null; |
59 } | 59 } |
60 | 60 |
61 } | 61 } |