Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSBrowserCell.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 |
---|---|
32 super(id); | 32 super(id); |
33 } | 33 } |
34 | 34 |
35 public NSImage alternateImage () | 35 public NSImage alternateImage () |
36 { | 36 { |
37 objc.id result = OS.objc_msgSend(this.id, OS.sel_alternateImage); | 37 objc.id result = OS.objc_msgSend(this.id_, OS.sel_alternateImage); |
38 return result !is null ? new NSImage(result) : null; | 38 return result !is null ? new NSImage(result) : null; |
39 } | 39 } |
40 | 40 |
41 public static NSImage branchImage () | 41 public static NSImage branchImage () |
42 { | 42 { |
44 return result !is null ? new NSImage(result) : null; | 44 return result !is null ? new NSImage(result) : null; |
45 } | 45 } |
46 | 46 |
47 public NSColor highlightColorInView (NSView controlView) | 47 public NSColor highlightColorInView (NSView controlView) |
48 { | 48 { |
49 objc.id result = OS.objc_msgSend(this.id, OS.sel_highlightColorInView_1, controlView !is null ? controlView.id : null); | 49 objc.id result = OS.objc_msgSend(this.id_, OS.sel_highlightColorInView_1, controlView !is null ? controlView.id_ : null); |
50 return result !is null ? new NSColor(result) : null; | 50 return result !is null ? new NSColor(result) : null; |
51 } | 51 } |
52 | 52 |
53 public static NSImage highlightedBranchImage () | 53 public static NSImage highlightedBranchImage () |
54 { | 54 { |
56 return result !is null ? new NSImage(result) : null; | 56 return result !is null ? new NSImage(result) : null; |
57 } | 57 } |
58 | 58 |
59 public NSImage image () | 59 public NSImage image () |
60 { | 60 { |
61 objc.id result = OS.objc_msgSend(this.id, OS.sel_image); | 61 objc.id result = OS.objc_msgSend(this.id_, OS.sel_image); |
62 return result !is null ? new NSImage(result) : null; | 62 return result !is null ? new NSImage(result) : null; |
63 } | 63 } |
64 | 64 |
65 public bool isLeaf () | 65 public bool isLeaf () |
66 { | 66 { |
67 return OS.objc_msgSend(this.id, OS.sel_isLeaf) !is null; | 67 return OS.objc_msgSend(this.id_, OS.sel_isLeaf) !is null; |
68 } | 68 } |
69 | 69 |
70 public bool isLoaded () | 70 public bool isLoaded () |
71 { | 71 { |
72 return OS.objc_msgSend(this.id, OS.sel_isLoaded) !is null; | 72 return OS.objc_msgSend(this.id_, OS.sel_isLoaded) !is null; |
73 } | 73 } |
74 | 74 |
75 public void reset () | 75 public void reset () |
76 { | 76 { |
77 OS.objc_msgSend(this.id, OS.sel_reset); | 77 OS.objc_msgSend(this.id_, OS.sel_reset); |
78 } | 78 } |
79 | 79 |
80 public void set () | 80 public void set () |
81 { | 81 { |
82 OS.objc_msgSend(this.id, OS.sel_set); | 82 OS.objc_msgSend(this.id_, OS.sel_set); |
83 } | 83 } |
84 | 84 |
85 public void setAlternateImage (NSImage newAltImage) | 85 public void setAlternateImage (NSImage newAltImage) |
86 { | 86 { |
87 OS.objc_msgSend(this.id, OS.sel_setAlternateImage_1, newAltImage !is null ? newAltImage.id : null); | 87 OS.objc_msgSend(this.id_, OS.sel_setAlternateImage_1, newAltImage !is null ? newAltImage.id_ : null); |
88 } | 88 } |
89 | 89 |
90 public void setImage (NSImage image) | 90 public void setImage (NSImage image) |
91 { | 91 { |
92 OS.objc_msgSend(this.id, OS.sel_setImage_1, image !is null ? image.id : null); | 92 OS.objc_msgSend(this.id_, OS.sel_setImage_1, image !is null ? image.id_ : null); |
93 } | 93 } |
94 | 94 |
95 public void setLeaf (bool flag) | 95 public void setLeaf (bool flag) |
96 { | 96 { |
97 OS.objc_msgSend(this.id, OS.sel_setLeaf_1, flag); | 97 OS.objc_msgSend(this.id_, OS.sel_setLeaf_1, flag); |
98 } | 98 } |
99 | 99 |
100 public void setLoaded (bool flag) | 100 public void setLoaded (bool flag) |
101 { | 101 { |
102 OS.objc_msgSend(this.id, OS.sel_setLoaded_1, flag); | 102 OS.objc_msgSend(this.id_, OS.sel_setLoaded_1, flag); |
103 } | 103 } |
104 } | 104 } |