Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSSearchFieldCell.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 |
---|---|
36 super(id); | 36 super(id); |
37 } | 37 } |
38 | 38 |
39 public NSButtonCell cancelButtonCell () | 39 public NSButtonCell cancelButtonCell () |
40 { | 40 { |
41 objc.id result = OS.objc_msgSend(this.id, OS.sel_cancelButtonCell); | 41 objc.id result = OS.objc_msgSend(this.id_, OS.sel_cancelButtonCell); |
42 return result !is null ? new NSButtonCell(result) : null; | 42 return result !is null ? new NSButtonCell(result) : null; |
43 } | 43 } |
44 | 44 |
45 public NSRect cancelButtonRectForBounds (NSRect rect) | 45 public NSRect cancelButtonRectForBounds (NSRect rect) |
46 { | 46 { |
47 NSRect result; | 47 NSRect result; |
48 OS.objc_msgSend_stret(result, this.id, OS.sel_cancelButtonRectForBounds_1, rect); | 48 OS.objc_msgSend_stret(&result, this.id_, OS.sel_cancelButtonRectForBounds_1, rect); |
49 return result; | 49 return result; |
50 } | 50 } |
51 | 51 |
52 public NSInteger maximumRecents () | 52 public NSInteger maximumRecents () |
53 { | 53 { |
54 return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_maximumRecents); | 54 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_maximumRecents); |
55 } | 55 } |
56 | 56 |
57 public NSArray recentSearches () | 57 public NSArray recentSearches () |
58 { | 58 { |
59 objc.id result = OS.objc_msgSend(this.id, OS.sel_recentSearches); | 59 objc.id result = OS.objc_msgSend(this.id_, OS.sel_recentSearches); |
60 return result !is null ? new NSArray(result) : null; | 60 return result !is null ? new NSArray(result) : null; |
61 } | 61 } |
62 | 62 |
63 public NSString recentsAutosaveName () | 63 public NSString recentsAutosaveName () |
64 { | 64 { |
65 objc.id result = OS.objc_msgSend(this.id, OS.sel_recentsAutosaveName); | 65 objc.id result = OS.objc_msgSend(this.id_, OS.sel_recentsAutosaveName); |
66 return result !is null ? new NSString(result) : null; | 66 return result !is null ? new NSString(result) : null; |
67 } | 67 } |
68 | 68 |
69 public void resetCancelButtonCell () | 69 public void resetCancelButtonCell () |
70 { | 70 { |
71 OS.objc_msgSend(this.id, OS.sel_resetCancelButtonCell); | 71 OS.objc_msgSend(this.id_, OS.sel_resetCancelButtonCell); |
72 } | 72 } |
73 | 73 |
74 public void resetSearchButtonCell () | 74 public void resetSearchButtonCell () |
75 { | 75 { |
76 OS.objc_msgSend(this.id, OS.sel_resetSearchButtonCell); | 76 OS.objc_msgSend(this.id_, OS.sel_resetSearchButtonCell); |
77 } | 77 } |
78 | 78 |
79 public NSButtonCell searchButtonCell () | 79 public NSButtonCell searchButtonCell () |
80 { | 80 { |
81 objc.id result = OS.objc_msgSend(this.id, OS.sel_searchButtonCell); | 81 objc.id result = OS.objc_msgSend(this.id_, OS.sel_searchButtonCell); |
82 return result !is null ? new NSButtonCell(result) : null; | 82 return result !is null ? new NSButtonCell(result) : null; |
83 } | 83 } |
84 | 84 |
85 public NSRect searchButtonRectForBounds (NSRect rect) | 85 public NSRect searchButtonRectForBounds (NSRect rect) |
86 { | 86 { |
87 NSRect result; | 87 NSRect result; |
88 OS.objc_msgSend_stret(result, this.id, OS.sel_searchButtonRectForBounds_1, rect); | 88 OS.objc_msgSend_stret(&result, this.id_, OS.sel_searchButtonRectForBounds_1, rect); |
89 return result; | 89 return result; |
90 } | 90 } |
91 | 91 |
92 public NSMenu searchMenuTemplate () | 92 public NSMenu searchMenuTemplate () |
93 { | 93 { |
94 objc.id result = OS.objc_msgSend(this.id, OS.sel_searchMenuTemplate); | 94 objc.id result = OS.objc_msgSend(this.id_, OS.sel_searchMenuTemplate); |
95 return result !is null ? new NSMenu(result) : null; | 95 return result !is null ? new NSMenu(result) : null; |
96 } | 96 } |
97 | 97 |
98 public NSRect searchTextRectForBounds (NSRect rect) | 98 public NSRect searchTextRectForBounds (NSRect rect) |
99 { | 99 { |
100 NSRect result; | 100 NSRect result; |
101 OS.objc_msgSend_stret(result, this.id, OS.sel_searchTextRectForBounds_1, rect); | 101 OS.objc_msgSend_stret(&result, this.id_, OS.sel_searchTextRectForBounds_1, rect); |
102 return result; | 102 return result; |
103 } | 103 } |
104 | 104 |
105 public bool sendsSearchStringImmediately () | 105 public bool sendsSearchStringImmediately () |
106 { | 106 { |
107 return OS.objc_msgSend(this.id, OS.sel_sendsSearchStringImmediately) !is null; | 107 return OS.objc_msgSend(this.id_, OS.sel_sendsSearchStringImmediately) !is null; |
108 } | 108 } |
109 | 109 |
110 public bool sendsWholeSearchString () | 110 public bool sendsWholeSearchString () |
111 { | 111 { |
112 return OS.objc_msgSend(this.id, OS.sel_sendsWholeSearchString) !is null; | 112 return OS.objc_msgSend(this.id_, OS.sel_sendsWholeSearchString) !is null; |
113 } | 113 } |
114 | 114 |
115 public void setCancelButtonCell (NSButtonCell cell) | 115 public void setCancelButtonCell (NSButtonCell cell) |
116 { | 116 { |
117 OS.objc_msgSend(this.id, OS.sel_setCancelButtonCell_1, cell !is null ? cell.id : null); | 117 OS.objc_msgSend(this.id_, OS.sel_setCancelButtonCell_1, cell !is null ? cell.id_ : null); |
118 } | 118 } |
119 | 119 |
120 public void setMaximumRecents (NSInteger maxRecents) | 120 public void setMaximumRecents (NSInteger maxRecents) |
121 { | 121 { |
122 OS.objc_msgSend(this.id, OS.sel_setMaximumRecents_1, maxRecents); | 122 OS.objc_msgSend(this.id_, OS.sel_setMaximumRecents_1, maxRecents); |
123 } | 123 } |
124 | 124 |
125 public void setRecentSearches (NSArray searches) | 125 public void setRecentSearches (NSArray searches) |
126 { | 126 { |
127 OS.objc_msgSend(this.id, OS.sel_setRecentSearches_1, searches !is null ? searches.id : null); | 127 OS.objc_msgSend(this.id_, OS.sel_setRecentSearches_1, searches !is null ? searches.id_ : null); |
128 } | 128 } |
129 | 129 |
130 public void setRecentsAutosaveName (NSString string) | 130 public void setRecentsAutosaveName (NSString string) |
131 { | 131 { |
132 OS.objc_msgSend(this.id, OS.sel_setRecentsAutosaveName_1, string !is null ? string.id : null); | 132 OS.objc_msgSend(this.id_, OS.sel_setRecentsAutosaveName_1, string !is null ? string.id_ : null); |
133 } | 133 } |
134 | 134 |
135 public void setSearchButtonCell (NSButtonCell cell) | 135 public void setSearchButtonCell (NSButtonCell cell) |
136 { | 136 { |
137 OS.objc_msgSend(this.id, OS.sel_setSearchButtonCell_1, cell !is null ? cell.id : null); | 137 OS.objc_msgSend(this.id_, OS.sel_setSearchButtonCell_1, cell !is null ? cell.id_ : null); |
138 } | 138 } |
139 | 139 |
140 public void setSearchMenuTemplate (NSMenu menu) | 140 public void setSearchMenuTemplate (NSMenu menu) |
141 { | 141 { |
142 OS.objc_msgSend(this.id, OS.sel_setSearchMenuTemplate_1, menu !is null ? menu.id : null); | 142 OS.objc_msgSend(this.id_, OS.sel_setSearchMenuTemplate_1, menu !is null ? menu.id_ : null); |
143 } | 143 } |
144 | 144 |
145 public void setSendsSearchStringImmediately (bool flag) | 145 public void setSendsSearchStringImmediately (bool flag) |
146 { | 146 { |
147 OS.objc_msgSend(this.id, OS.sel_setSendsSearchStringImmediately_1, flag); | 147 OS.objc_msgSend(this.id_, OS.sel_setSendsSearchStringImmediately_1, flag); |
148 } | 148 } |
149 | 149 |
150 public void setSendsWholeSearchString (bool flag) | 150 public void setSendsWholeSearchString (bool flag) |
151 { | 151 { |
152 OS.objc_msgSend(this.id, OS.sel_setSendsWholeSearchString_1, flag); | 152 OS.objc_msgSend(this.id_, OS.sel_setSendsWholeSearchString_1, flag); |
153 } | 153 } |
154 | 154 |
155 } | 155 } |