comparison dwt/internal/cocoa/NSPrinter.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
47 super(id); 47 super(id);
48 } 48 }
49 49
50 public bool acceptsBinary () 50 public bool acceptsBinary ()
51 { 51 {
52 return OS.objc_msgSend(this.id, OS.sel_acceptsBinary) !is null; 52 return OS.objc_msgSend(this.id_, OS.sel_acceptsBinary) !is null;
53 } 53 }
54 54
55 public bool booleanForKey (NSString key, NSString table) 55 public bool booleanForKey (NSString key, NSString table)
56 { 56 {
57 return OS.objc_msgSend(this.id, OS.sel_booleanForKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null) !is null; 57 return OS.objc_msgSend(this.id_, OS.sel_booleanForKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null) !is null;
58 } 58 }
59 59
60 public NSDictionary deviceDescription () 60 public NSDictionary deviceDescription ()
61 { 61 {
62 objc.id result = OS.objc_msgSend(this.id, OS.sel_deviceDescription); 62 objc.id result = OS.objc_msgSend(this.id_, OS.sel_deviceDescription);
63 return result !is null ? new NSDictionary(result) : null; 63 return result !is null ? new NSDictionary(result) : null;
64 } 64 }
65 65
66 public NSString domain () 66 public NSString domain ()
67 { 67 {
68 objc.id result = OS.objc_msgSend(this.id, OS.sel_domain); 68 objc.id result = OS.objc_msgSend(this.id_, OS.sel_domain);
69 return result !is null ? new NSString(result) : null; 69 return result !is null ? new NSString(result) : null;
70 } 70 }
71 71
72 public float floatForKey (NSString key, NSString table) 72 public float floatForKey (NSString key, NSString table)
73 { 73 {
74 return cast(float) OS.objc_msgSend_fpret(this.id, OS.sel_floatForKey_1inTable_1, key !is null ? key.id : null, 74 return cast(float) OS.objc_msgSend_fpret(this.id_, OS.sel_floatForKey_1inTable_1, key !is null ? key.id_ : null,
75 table !is null ? table.id : null); 75 table !is null ? table.id_ : null);
76 } 76 }
77 77
78 public NSString host () 78 public NSString host ()
79 { 79 {
80 objc.id result = OS.objc_msgSend(this.id, OS.sel_host); 80 objc.id result = OS.objc_msgSend(this.id_, OS.sel_host);
81 return result !is null ? new NSString(result) : null; 81 return result !is null ? new NSString(result) : null;
82 } 82 }
83 83
84 public NSRect imageRectForPaper (NSString paperName) 84 public NSRect imageRectForPaper (NSString paperName)
85 { 85 {
86 NSRect result; 86 NSRect result;
87 OS.objc_msgSend_stret(result, this.id, OS.sel_imageRectForPaper_1, paperName !is null ? paperName.id : null); 87 OS.objc_msgSend_stret(&result, this.id_, OS.sel_imageRectForPaper_1, paperName !is null ? paperName.id_ : null);
88 return result; 88 return result;
89 } 89 }
90 90
91 public int intForKey (NSString key, NSString table) 91 public int intForKey (NSString key, NSString table)
92 { 92 {
93 return cast(int) OS.objc_msgSend(this.id, OS.sel_intForKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null); 93 return cast(int) OS.objc_msgSend(this.id_, OS.sel_intForKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null);
94 } 94 }
95 95
96 public bool isColor () 96 public bool isColor ()
97 { 97 {
98 return OS.objc_msgSend(this.id, OS.sel_isColor) !is null; 98 return OS.objc_msgSend(this.id_, OS.sel_isColor) !is null;
99 } 99 }
100 100
101 public bool isFontAvailable (NSString faceName) 101 public bool isFontAvailable (NSString faceName)
102 { 102 {
103 return OS.objc_msgSend(this.id, OS.sel_isFontAvailable_1, faceName !is null ? faceName.id : null) !is null; 103 return OS.objc_msgSend(this.id_, OS.sel_isFontAvailable_1, faceName !is null ? faceName.id_ : null) !is null;
104 } 104 }
105 105
106 public bool isKey (NSString key, NSString table) 106 public bool isKey (NSString key, NSString table)
107 { 107 {
108 return OS.objc_msgSend(this.id, OS.sel_isKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null) !is null; 108 return OS.objc_msgSend(this.id_, OS.sel_isKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null) !is null;
109 } 109 }
110 110
111 public bool isOutputStackInReverseOrder () 111 public bool isOutputStackInReverseOrder ()
112 { 112 {
113 return OS.objc_msgSend(this.id, OS.sel_isOutputStackInReverseOrder) !is null; 113 return OS.objc_msgSend(this.id_, OS.sel_isOutputStackInReverseOrder) !is null;
114 } 114 }
115 115
116 public NSInteger languageLevel () 116 public NSInteger languageLevel ()
117 { 117 {
118 return cast(NSInteger) OS.objc_msgSend(this.id, OS.sel_languageLevel); 118 return cast(NSInteger) OS.objc_msgSend(this.id_, OS.sel_languageLevel);
119 } 119 }
120 120
121 public NSString name () 121 public NSString name ()
122 { 122 {
123 objc.id result = OS.objc_msgSend(this.id, OS.sel_name); 123 objc.id result = OS.objc_msgSend(this.id_, OS.sel_name);
124 return result !is null ? new NSString(result) : null; 124 return result !is null ? new NSString(result) : null;
125 } 125 }
126 126
127 public NSString note () 127 public NSString note ()
128 { 128 {
129 objc.id result = OS.objc_msgSend(this.id, OS.sel_note); 129 objc.id result = OS.objc_msgSend(this.id_, OS.sel_note);
130 return result !is null ? new NSString(result) : null; 130 return result !is null ? new NSString(result) : null;
131 } 131 }
132 132
133 public NSSize pageSizeForPaper (NSString paperName) 133 public NSSize pageSizeForPaper (NSString paperName)
134 { 134 {
135 NSSize result; 135 NSSize result;
136 OS.objc_msgSend_stret(result, this.id, OS.sel_pageSizeForPaper_1, paperName !is null ? paperName.id : null); 136 OS.objc_msgSend_stret(&result, this.id_, OS.sel_pageSizeForPaper_1, paperName !is null ? paperName.id_ : null);
137 return result; 137 return result;
138 } 138 }
139 139
140 public static NSArray printerNames () 140 public static NSArray printerNames ()
141 { 141 {
149 return result !is null ? new NSArray(result) : null; 149 return result !is null ? new NSArray(result) : null;
150 } 150 }
151 151
152 public static NSPrinter static_printerWithName_ (NSString name) 152 public static NSPrinter static_printerWithName_ (NSString name)
153 { 153 {
154 objc.id result = OS.objc_msgSend(OS.class_NSPrinter, OS.sel_printerWithName_1, name !is null ? name.id : null); 154 objc.id result = OS.objc_msgSend(OS.class_NSPrinter, OS.sel_printerWithName_1, name !is null ? name.id_ : null);
155 return result !is null ? new NSPrinter(result) : null; 155 return result !is null ? new NSPrinter(result) : null;
156 } 156 }
157 157
158 public static NSPrinter static_printerWithName_domain_includeUnavailable_ (NSString name, NSString domain, bool flag) 158 public static NSPrinter static_printerWithName_domain_includeUnavailable_ (NSString name, NSString domain, bool flag)
159 { 159 {
160 objc.id result = OS.objc_msgSend(OS.class_NSPrinter, OS.sel_printerWithName_1domain_1includeUnavailable_1, name !is null ? name.id : null, 160 objc.id result = OS.objc_msgSend(OS.class_NSPrinter, OS.sel_printerWithName_1domain_1includeUnavailable_1, name !is null ? name.id_ : null,
161 domain !is null ? domain.id : null, flag); 161 domain !is null ? domain.id_ : null, flag);
162 return result !is null ? new NSPrinter(result) : null; 162 return result !is null ? new NSPrinter(result) : null;
163 } 163 }
164 164
165 public static NSPrinter printerWithType (NSString type) 165 public static NSPrinter printerWithType (NSString type)
166 { 166 {
167 objc.id result = OS.objc_msgSend(OS.class_NSPrinter, OS.sel_printerWithType_1, type !is null ? type.id : null); 167 objc.id result = OS.objc_msgSend(OS.class_NSPrinter, OS.sel_printerWithType_1, type !is null ? type.id_ : null);
168 return result !is null ? new NSPrinter(result) : null; 168 return result !is null ? new NSPrinter(result) : null;
169 } 169 }
170 170
171 public NSRect rectForKey (NSString key, NSString table) 171 public NSRect rectForKey (NSString key, NSString table)
172 { 172 {
173 NSRect result; 173 NSRect result;
174 OS.objc_msgSend_stret(result, this.id, OS.sel_rectForKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null); 174 OS.objc_msgSend_stret(&result, this.id_, OS.sel_rectForKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null);
175 return result; 175 return result;
176 } 176 }
177 177
178 public NSSize sizeForKey (NSString key, NSString table) 178 public NSSize sizeForKey (NSString key, NSString table)
179 { 179 {
180 NSSize result; 180 NSSize result;
181 OS.objc_msgSend_stret(result, this.id, OS.sel_sizeForKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null); 181 OS.objc_msgSend_stret(&result, this.id_, OS.sel_sizeForKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null);
182 return result; 182 return result;
183 } 183 }
184 184
185 public NSPrinterTableStatus statusForTable (NSString tableName) 185 public NSPrinterTableStatus statusForTable (NSString tableName)
186 { 186 {
187 return cast(NSPrinterTableStatus) OS.objc_msgSend(this.id, OS.sel_statusForTable_1, tableName !is null ? tableName.id : null); 187 return cast(NSPrinterTableStatus) OS.objc_msgSend(this.id_, OS.sel_statusForTable_1, tableName !is null ? tableName.id_ : null);
188 } 188 }
189 189
190 public NSString stringForKey (NSString key, NSString table) 190 public NSString stringForKey (NSString key, NSString table)
191 { 191 {
192 objc.id result = OS.objc_msgSend(this.id, OS.sel_stringForKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null); 192 objc.id result = OS.objc_msgSend(this.id_, OS.sel_stringForKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null);
193 return result !is null ? new NSString(result) : null; 193 return result !is null ? new NSString(result) : null;
194 } 194 }
195 195
196 public NSArray stringListForKey (NSString key, NSString table) 196 public NSArray stringListForKey (NSString key, NSString table)
197 { 197 {
198 objc.id result = OS.objc_msgSend(this.id, OS.sel_stringListForKey_1inTable_1, key !is null ? key.id : null, table !is null ? table.id : null); 198 objc.id result = OS.objc_msgSend(this.id_, OS.sel_stringListForKey_1inTable_1, key !is null ? key.id_ : null, table !is null ? table.id_ : null);
199 return result !is null ? new NSArray(result) : null; 199 return result !is null ? new NSArray(result) : null;
200 } 200 }
201 201
202 public NSString type () 202 public NSString type ()
203 { 203 {
204 objc.id result = OS.objc_msgSend(this.id, OS.sel_type); 204 objc.id result = OS.objc_msgSend(this.id_, OS.sel_type);
205 return result !is null ? new NSString(result) : null; 205 return result !is null ? new NSString(result) : null;
206 } 206 }
207 207
208 } 208 }