Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSToolbar.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 |
---|---|
59 super(id); | 59 super(id); |
60 } | 60 } |
61 | 61 |
62 public bool allowsUserCustomization () | 62 public bool allowsUserCustomization () |
63 { | 63 { |
64 return OS.objc_msgSend(this.id, OS.sel_allowsUserCustomization) !is null; | 64 return OS.objc_msgSend(this.id_, OS.sel_allowsUserCustomization) !is null; |
65 } | 65 } |
66 | 66 |
67 public bool autosavesConfiguration () | 67 public bool autosavesConfiguration () |
68 { | 68 { |
69 return OS.objc_msgSend(this.id, OS.sel_autosavesConfiguration) !is null; | 69 return OS.objc_msgSend(this.id_, OS.sel_autosavesConfiguration) !is null; |
70 } | 70 } |
71 | 71 |
72 public NSDictionary configurationDictionary () | 72 public NSDictionary configurationDictionary () |
73 { | 73 { |
74 objc.id result = OS.objc_msgSend(this.id, OS.sel_configurationDictionary); | 74 objc.id result = OS.objc_msgSend(this.id_, OS.sel_configurationDictionary); |
75 return result !is null ? new NSDictionary(result) : null; | 75 return result !is null ? new NSDictionary(result) : null; |
76 } | 76 } |
77 | 77 |
78 public bool customizationPaletteIsRunning () | 78 public bool customizationPaletteIsRunning () |
79 { | 79 { |
80 return OS.objc_msgSend(this.id, OS.sel_customizationPaletteIsRunning) !is null; | 80 return OS.objc_msgSend(this.id_, OS.sel_customizationPaletteIsRunning) !is null; |
81 } | 81 } |
82 | 82 |
83 public id delegatee () | 83 public id delegatee () |
84 { | 84 { |
85 objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate); | 85 objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate); |
86 return result !is null ? new id(result) : null; | 86 return result !is null ? new id(result) : null; |
87 } | 87 } |
88 | 88 |
89 public NSToolbarDisplayMode displayMode () | 89 public NSToolbarDisplayMode displayMode () |
90 { | 90 { |
91 return cast(NSToolbarDisplayMode) OS.objc_msgSend(this.id, OS.sel_displayMode); | 91 return cast(NSToolbarDisplayMode) OS.objc_msgSend(this.id_, OS.sel_displayMode); |
92 } | 92 } |
93 | 93 |
94 public NSString identifier () | 94 public NSString identifier () |
95 { | 95 { |
96 objc.id result = OS.objc_msgSend(this.id, OS.sel_identifier); | 96 objc.id result = OS.objc_msgSend(this.id_, OS.sel_identifier); |
97 return result !is null ? new NSString(result) : null; | 97 return result !is null ? new NSString(result) : null; |
98 } | 98 } |
99 | 99 |
100 public id initWithIdentifier (NSString identifier) | 100 public id initWithIdentifier (NSString identifier) |
101 { | 101 { |
102 objc.id result = OS.objc_msgSend(this.id, OS.sel_initWithIdentifier_1, identifier !is null ? identifier.id : null); | 102 objc.id result = OS.objc_msgSend(this.id_, OS.sel_initWithIdentifier_1, identifier !is null ? identifier.id_ : null); |
103 return result !is null ? new id(result) : null; | 103 return result !is null ? new id(result) : null; |
104 } | 104 } |
105 | 105 |
106 public void insertItemWithItemIdentifier (NSString itemIdentifier, NSInteger index) | 106 public void insertItemWithItemIdentifier (NSString itemIdentifier, NSInteger index) |
107 { | 107 { |
108 OS.objc_msgSend(this.id, OS.sel_insertItemWithItemIdentifier_1atIndex_1, itemIdentifier !is null ? itemIdentifier.id : null, index); | 108 OS.objc_msgSend(this.id_, OS.sel_insertItemWithItemIdentifier_1atIndex_1, itemIdentifier !is null ? itemIdentifier.id_ : null, index); |
109 } | 109 } |
110 | 110 |
111 public bool isVisible () | 111 public bool isVisible () |
112 { | 112 { |
113 return OS.objc_msgSend(this.id, OS.sel_isVisible) !is null; | 113 return OS.objc_msgSend(this.id_, OS.sel_isVisible) !is null; |
114 } | 114 } |
115 | 115 |
116 public NSArray items () | 116 public NSArray items () |
117 { | 117 { |
118 objc.id result = OS.objc_msgSend(this.id, OS.sel_items); | 118 objc.id result = OS.objc_msgSend(this.id_, OS.sel_items); |
119 return result !is null ? new NSArray(result) : null; | 119 return result !is null ? new NSArray(result) : null; |
120 } | 120 } |
121 | 121 |
122 public void removeItemAtIndex (NSInteger index) | 122 public void removeItemAtIndex (NSInteger index) |
123 { | 123 { |
124 OS.objc_msgSend(this.id, OS.sel_removeItemAtIndex_1, index); | 124 OS.objc_msgSend(this.id_, OS.sel_removeItemAtIndex_1, index); |
125 } | 125 } |
126 | 126 |
127 public void runCustomizationPalette (id sender) | 127 public void runCustomizationPalette (id sender) |
128 { | 128 { |
129 OS.objc_msgSend(this.id, OS.sel_runCustomizationPalette_1, sender !is null ? sender.id : null); | 129 OS.objc_msgSend(this.id_, OS.sel_runCustomizationPalette_1, sender !is null ? sender.id_ : null); |
130 } | 130 } |
131 | 131 |
132 public NSString selectedItemIdentifier () | 132 public NSString selectedItemIdentifier () |
133 { | 133 { |
134 objc.id result = OS.objc_msgSend(this.id, OS.sel_selectedItemIdentifier); | 134 objc.id result = OS.objc_msgSend(this.id_, OS.sel_selectedItemIdentifier); |
135 return result !is null ? new NSString(result) : null; | 135 return result !is null ? new NSString(result) : null; |
136 } | 136 } |
137 | 137 |
138 public void setAllowsUserCustomization (bool allowCustomization) | 138 public void setAllowsUserCustomization (bool allowCustomization) |
139 { | 139 { |
140 OS.objc_msgSend(this.id, OS.sel_setAllowsUserCustomization_1, allowCustomization); | 140 OS.objc_msgSend(this.id_, OS.sel_setAllowsUserCustomization_1, allowCustomization); |
141 } | 141 } |
142 | 142 |
143 public void setAutosavesConfiguration (bool flag) | 143 public void setAutosavesConfiguration (bool flag) |
144 { | 144 { |
145 OS.objc_msgSend(this.id, OS.sel_setAutosavesConfiguration_1, flag); | 145 OS.objc_msgSend(this.id_, OS.sel_setAutosavesConfiguration_1, flag); |
146 } | 146 } |
147 | 147 |
148 public void setConfigurationFromDictionary (NSDictionary configDict) | 148 public void setConfigurationFromDictionary (NSDictionary configDict) |
149 { | 149 { |
150 OS.objc_msgSend(this.id, OS.sel_setConfigurationFromDictionary_1, configDict !is null ? configDict.id : null); | 150 OS.objc_msgSend(this.id_, OS.sel_setConfigurationFromDictionary_1, configDict !is null ? configDict.id_ : null); |
151 } | 151 } |
152 | 152 |
153 public void setDelegate (id delegatee) | 153 public void setDelegate (id delegatee) |
154 { | 154 { |
155 OS.objc_msgSend(this.id, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id : null); | 155 OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id_ : null); |
156 } | 156 } |
157 | 157 |
158 public void setDisplayMode (NSToolbarDisplayMode displayMode) | 158 public void setDisplayMode (NSToolbarDisplayMode displayMode) |
159 { | 159 { |
160 OS.objc_msgSend(this.id, OS.sel_setDisplayMode_1, displayMode); | 160 OS.objc_msgSend(this.id_, OS.sel_setDisplayMode_1, displayMode); |
161 } | 161 } |
162 | 162 |
163 public void setSelectedItemIdentifier (NSString itemIdentifier) | 163 public void setSelectedItemIdentifier (NSString itemIdentifier) |
164 { | 164 { |
165 OS.objc_msgSend(this.id, OS.sel_setSelectedItemIdentifier_1, itemIdentifier !is null ? itemIdentifier.id : null); | 165 OS.objc_msgSend(this.id_, OS.sel_setSelectedItemIdentifier_1, itemIdentifier !is null ? itemIdentifier.id_ : null); |
166 } | 166 } |
167 | 167 |
168 public void setShowsBaselineSeparator (bool flag) | 168 public void setShowsBaselineSeparator (bool flag) |
169 { | 169 { |
170 OS.objc_msgSend(this.id, OS.sel_setShowsBaselineSeparator_1, flag); | 170 OS.objc_msgSend(this.id_, OS.sel_setShowsBaselineSeparator_1, flag); |
171 } | 171 } |
172 | 172 |
173 public void setSizeMode (NSToolbarSizeMode sizeMode) | 173 public void setSizeMode (NSToolbarSizeMode sizeMode) |
174 { | 174 { |
175 OS.objc_msgSend(this.id, OS.sel_setSizeMode_1, sizeMode); | 175 OS.objc_msgSend(this.id_, OS.sel_setSizeMode_1, sizeMode); |
176 } | 176 } |
177 | 177 |
178 public void setVisible (bool shown) | 178 public void setVisible (bool shown) |
179 { | 179 { |
180 OS.objc_msgSend(this.id, OS.sel_setVisible_1, shown); | 180 OS.objc_msgSend(this.id_, OS.sel_setVisible_1, shown); |
181 } | 181 } |
182 | 182 |
183 public bool showsBaselineSeparator () | 183 public bool showsBaselineSeparator () |
184 { | 184 { |
185 return OS.objc_msgSend(this.id, OS.sel_showsBaselineSeparator) !is null; | 185 return OS.objc_msgSend(this.id_, OS.sel_showsBaselineSeparator) !is null; |
186 } | 186 } |
187 | 187 |
188 public NSToolbarSizeMode sizeMode () | 188 public NSToolbarSizeMode sizeMode () |
189 { | 189 { |
190 return cast(NSToolbarSizeMode) OS.objc_msgSend(this.id, OS.sel_sizeMode); | 190 return cast(NSToolbarSizeMode) OS.objc_msgSend(this.id_, OS.sel_sizeMode); |
191 } | 191 } |
192 | 192 |
193 public void validateVisibleItems () | 193 public void validateVisibleItems () |
194 { | 194 { |
195 OS.objc_msgSend(this.id, OS.sel_validateVisibleItems); | 195 OS.objc_msgSend(this.id_, OS.sel_validateVisibleItems); |
196 } | 196 } |
197 | 197 |
198 public NSArray visibleItems () | 198 public NSArray visibleItems () |
199 { | 199 { |
200 objc.id result = OS.objc_msgSend(this.id, OS.sel_visibleItems); | 200 objc.id result = OS.objc_msgSend(this.id_, OS.sel_visibleItems); |
201 return result !is null ? new NSArray(result) : null; | 201 return result !is null ? new NSArray(result) : null; |
202 } | 202 } |
203 | 203 |
204 } | 204 } |