]>
Commit | Line | Data |
---|---|---|
8ab979d7 RD |
1 | # This file was created automatically by SWIG. |
2 | import gdic | |
3 | ||
4 | from misc import * | |
9b3d3bc4 | 5 | class wxBitmapPtr : |
6999b0d8 RD |
6 | def __init__(self,this): |
7 | self.this = this | |
8 | self.thisown = 0 | |
9 | def __del__(self,gdic=gdic): | |
10 | if self.thisown == 1 : | |
11 | gdic.delete_wxBitmap(self) | |
1d99702e RD |
12 | def GetPalette(self, *_args, **_kwargs): |
13 | val = apply(gdic.wxBitmap_GetPalette,(self,) + _args, _kwargs) | |
14 | if val: val = wxPalettePtr(val) | |
8ab979d7 | 15 | return val |
1d99702e RD |
16 | def GetMask(self, *_args, **_kwargs): |
17 | val = apply(gdic.wxBitmap_GetMask,(self,) + _args, _kwargs) | |
18 | if val: val = wxMaskPtr(val) | |
8ab979d7 | 19 | return val |
1d99702e RD |
20 | def LoadFile(self, *_args, **_kwargs): |
21 | val = apply(gdic.wxBitmap_LoadFile,(self,) + _args, _kwargs) | |
8ab979d7 | 22 | return val |
1d99702e RD |
23 | def SaveFile(self, *_args, **_kwargs): |
24 | val = apply(gdic.wxBitmap_SaveFile,(self,) + _args, _kwargs) | |
8ab979d7 | 25 | return val |
1d99702e RD |
26 | def SetMask(self, *_args, **_kwargs): |
27 | val = apply(gdic.wxBitmap_SetMask,(self,) + _args, _kwargs) | |
8ab979d7 | 28 | return val |
1d99702e RD |
29 | def SetPalette(self, *_args, **_kwargs): |
30 | val = apply(gdic.wxBitmap_SetPalette,(self,) + _args, _kwargs) | |
8ab979d7 | 31 | return val |
9b3d3bc4 RD |
32 | def GetHandle(self, *_args, **_kwargs): |
33 | val = apply(gdic.wxBitmap_GetHandle,(self,) + _args, _kwargs) | |
34 | return val | |
35 | def SetHandle(self, *_args, **_kwargs): | |
36 | val = apply(gdic.wxBitmap_SetHandle,(self,) + _args, _kwargs) | |
37 | return val | |
38 | def Ok(self, *_args, **_kwargs): | |
39 | val = apply(gdic.wxBitmap_Ok,(self,) + _args, _kwargs) | |
40 | return val | |
41 | def GetWidth(self, *_args, **_kwargs): | |
42 | val = apply(gdic.wxBitmap_GetWidth,(self,) + _args, _kwargs) | |
43 | return val | |
44 | def GetHeight(self, *_args, **_kwargs): | |
45 | val = apply(gdic.wxBitmap_GetHeight,(self,) + _args, _kwargs) | |
46 | return val | |
47 | def GetDepth(self, *_args, **_kwargs): | |
48 | val = apply(gdic.wxBitmap_GetDepth,(self,) + _args, _kwargs) | |
49 | return val | |
50 | def SetWidth(self, *_args, **_kwargs): | |
51 | val = apply(gdic.wxBitmap_SetWidth,(self,) + _args, _kwargs) | |
52 | return val | |
53 | def SetHeight(self, *_args, **_kwargs): | |
54 | val = apply(gdic.wxBitmap_SetHeight,(self,) + _args, _kwargs) | |
55 | return val | |
56 | def SetDepth(self, *_args, **_kwargs): | |
57 | val = apply(gdic.wxBitmap_SetDepth,(self,) + _args, _kwargs) | |
58 | return val | |
59 | def SetSize(self, *_args, **_kwargs): | |
60 | val = apply(gdic.wxBitmap_SetSize,(self,) + _args, _kwargs) | |
61 | return val | |
8ab979d7 | 62 | def __repr__(self): |
1d99702e | 63 | return "<C wxBitmap instance at %s>" % (self.this,) |
8ab979d7 | 64 | class wxBitmap(wxBitmapPtr): |
1d99702e RD |
65 | def __init__(self,*_args,**_kwargs): |
66 | self.this = apply(gdic.new_wxBitmap,_args,_kwargs) | |
8ab979d7 RD |
67 | self.thisown = 1 |
68 | ||
69 | ||
70 | ||
71 | ||
72 | class wxMaskPtr : | |
73 | def __init__(self,this): | |
74 | self.this = this | |
75 | self.thisown = 0 | |
8ab979d7 | 76 | def __repr__(self): |
1d99702e | 77 | return "<C wxMask instance at %s>" % (self.this,) |
8ab979d7 | 78 | class wxMask(wxMaskPtr): |
1d99702e RD |
79 | def __init__(self,*_args,**_kwargs): |
80 | self.this = apply(gdic.new_wxMask,_args,_kwargs) | |
8ab979d7 RD |
81 | self.thisown = 1 |
82 | ||
83 | ||
84 | ||
85 | ||
9b3d3bc4 | 86 | class wxIconPtr : |
8ab979d7 RD |
87 | def __init__(self,this): |
88 | self.this = this | |
89 | self.thisown = 0 | |
1d99702e | 90 | def __del__(self,gdic=gdic): |
8ab979d7 | 91 | if self.thisown == 1 : |
1d99702e | 92 | gdic.delete_wxIcon(self) |
1d99702e RD |
93 | def LoadFile(self, *_args, **_kwargs): |
94 | val = apply(gdic.wxIcon_LoadFile,(self,) + _args, _kwargs) | |
8ab979d7 | 95 | return val |
9b3d3bc4 RD |
96 | def GetHandle(self, *_args, **_kwargs): |
97 | val = apply(gdic.wxIcon_GetHandle,(self,) + _args, _kwargs) | |
98 | return val | |
99 | def SetHandle(self, *_args, **_kwargs): | |
100 | val = apply(gdic.wxIcon_SetHandle,(self,) + _args, _kwargs) | |
101 | return val | |
102 | def Ok(self, *_args, **_kwargs): | |
103 | val = apply(gdic.wxIcon_Ok,(self,) + _args, _kwargs) | |
104 | return val | |
105 | def GetWidth(self, *_args, **_kwargs): | |
106 | val = apply(gdic.wxIcon_GetWidth,(self,) + _args, _kwargs) | |
107 | return val | |
108 | def GetHeight(self, *_args, **_kwargs): | |
109 | val = apply(gdic.wxIcon_GetHeight,(self,) + _args, _kwargs) | |
110 | return val | |
111 | def GetDepth(self, *_args, **_kwargs): | |
112 | val = apply(gdic.wxIcon_GetDepth,(self,) + _args, _kwargs) | |
113 | return val | |
114 | def SetWidth(self, *_args, **_kwargs): | |
115 | val = apply(gdic.wxIcon_SetWidth,(self,) + _args, _kwargs) | |
116 | return val | |
117 | def SetHeight(self, *_args, **_kwargs): | |
118 | val = apply(gdic.wxIcon_SetHeight,(self,) + _args, _kwargs) | |
119 | return val | |
120 | def SetDepth(self, *_args, **_kwargs): | |
121 | val = apply(gdic.wxIcon_SetDepth,(self,) + _args, _kwargs) | |
122 | return val | |
123 | def SetSize(self, *_args, **_kwargs): | |
124 | val = apply(gdic.wxIcon_SetSize,(self,) + _args, _kwargs) | |
125 | return val | |
8ab979d7 | 126 | def __repr__(self): |
1d99702e | 127 | return "<C wxIcon instance at %s>" % (self.this,) |
8ab979d7 | 128 | class wxIcon(wxIconPtr): |
1d99702e RD |
129 | def __init__(self,*_args,**_kwargs): |
130 | self.this = apply(gdic.new_wxIcon,_args,_kwargs) | |
8ab979d7 RD |
131 | self.thisown = 1 |
132 | ||
133 | ||
134 | ||
135 | ||
9b3d3bc4 | 136 | class wxCursorPtr : |
8ab979d7 RD |
137 | def __init__(self,this): |
138 | self.this = this | |
139 | self.thisown = 0 | |
1d99702e | 140 | def __del__(self,gdic=gdic): |
8ab979d7 | 141 | if self.thisown == 1 : |
1d99702e | 142 | gdic.delete_wxCursor(self) |
9b3d3bc4 RD |
143 | def GetHandle(self, *_args, **_kwargs): |
144 | val = apply(gdic.wxCursor_GetHandle,(self,) + _args, _kwargs) | |
145 | return val | |
146 | def SetHandle(self, *_args, **_kwargs): | |
147 | val = apply(gdic.wxCursor_SetHandle,(self,) + _args, _kwargs) | |
148 | return val | |
149 | def Ok(self, *_args, **_kwargs): | |
150 | val = apply(gdic.wxCursor_Ok,(self,) + _args, _kwargs) | |
151 | return val | |
152 | def GetWidth(self, *_args, **_kwargs): | |
153 | val = apply(gdic.wxCursor_GetWidth,(self,) + _args, _kwargs) | |
154 | return val | |
155 | def GetHeight(self, *_args, **_kwargs): | |
156 | val = apply(gdic.wxCursor_GetHeight,(self,) + _args, _kwargs) | |
157 | return val | |
158 | def GetDepth(self, *_args, **_kwargs): | |
159 | val = apply(gdic.wxCursor_GetDepth,(self,) + _args, _kwargs) | |
160 | return val | |
161 | def SetWidth(self, *_args, **_kwargs): | |
162 | val = apply(gdic.wxCursor_SetWidth,(self,) + _args, _kwargs) | |
163 | return val | |
164 | def SetHeight(self, *_args, **_kwargs): | |
165 | val = apply(gdic.wxCursor_SetHeight,(self,) + _args, _kwargs) | |
166 | return val | |
167 | def SetDepth(self, *_args, **_kwargs): | |
168 | val = apply(gdic.wxCursor_SetDepth,(self,) + _args, _kwargs) | |
169 | return val | |
170 | def SetSize(self, *_args, **_kwargs): | |
171 | val = apply(gdic.wxCursor_SetSize,(self,) + _args, _kwargs) | |
172 | return val | |
8ab979d7 | 173 | def __repr__(self): |
1d99702e | 174 | return "<C wxCursor instance at %s>" % (self.this,) |
8ab979d7 | 175 | class wxCursor(wxCursorPtr): |
1d99702e RD |
176 | def __init__(self,*_args,**_kwargs): |
177 | self.this = apply(gdic.new_wxCursor,_args,_kwargs) | |
1dc2f865 | 178 | self.thisown = 1 |
8ab979d7 RD |
179 | |
180 | ||
8ab979d7 RD |
181 | |
182 | ||
1dc2f865 RD |
183 | class wxFontPtr : |
184 | def __init__(self,this): | |
185 | self.this = this | |
186 | self.thisown = 0 | |
694759cf RD |
187 | def Ok(self, *_args, **_kwargs): |
188 | val = apply(gdic.wxFont_Ok,(self,) + _args, _kwargs) | |
189 | return val | |
1d99702e RD |
190 | def GetFaceName(self, *_args, **_kwargs): |
191 | val = apply(gdic.wxFont_GetFaceName,(self,) + _args, _kwargs) | |
1dc2f865 | 192 | return val |
1d99702e RD |
193 | def GetFamily(self, *_args, **_kwargs): |
194 | val = apply(gdic.wxFont_GetFamily,(self,) + _args, _kwargs) | |
1dc2f865 | 195 | return val |
1d99702e RD |
196 | def GetFontId(self, *_args, **_kwargs): |
197 | val = apply(gdic.wxFont_GetFontId,(self,) + _args, _kwargs) | |
1dc2f865 | 198 | return val |
1d99702e RD |
199 | def GetPointSize(self, *_args, **_kwargs): |
200 | val = apply(gdic.wxFont_GetPointSize,(self,) + _args, _kwargs) | |
1dc2f865 | 201 | return val |
1d99702e RD |
202 | def GetStyle(self, *_args, **_kwargs): |
203 | val = apply(gdic.wxFont_GetStyle,(self,) + _args, _kwargs) | |
1dc2f865 | 204 | return val |
1d99702e RD |
205 | def GetUnderlined(self, *_args, **_kwargs): |
206 | val = apply(gdic.wxFont_GetUnderlined,(self,) + _args, _kwargs) | |
1dc2f865 | 207 | return val |
1d99702e RD |
208 | def GetWeight(self, *_args, **_kwargs): |
209 | val = apply(gdic.wxFont_GetWeight,(self,) + _args, _kwargs) | |
1dc2f865 | 210 | return val |
f0261a72 RD |
211 | def GetEncoding(self, *_args, **_kwargs): |
212 | val = apply(gdic.wxFont_GetEncoding,(self,) + _args, _kwargs) | |
213 | return val | |
1d99702e RD |
214 | def SetFaceName(self, *_args, **_kwargs): |
215 | val = apply(gdic.wxFont_SetFaceName,(self,) + _args, _kwargs) | |
1dc2f865 | 216 | return val |
1d99702e RD |
217 | def SetFamily(self, *_args, **_kwargs): |
218 | val = apply(gdic.wxFont_SetFamily,(self,) + _args, _kwargs) | |
1dc2f865 | 219 | return val |
1d99702e RD |
220 | def SetPointSize(self, *_args, **_kwargs): |
221 | val = apply(gdic.wxFont_SetPointSize,(self,) + _args, _kwargs) | |
1dc2f865 | 222 | return val |
1d99702e RD |
223 | def SetStyle(self, *_args, **_kwargs): |
224 | val = apply(gdic.wxFont_SetStyle,(self,) + _args, _kwargs) | |
1dc2f865 | 225 | return val |
1d99702e RD |
226 | def SetUnderlined(self, *_args, **_kwargs): |
227 | val = apply(gdic.wxFont_SetUnderlined,(self,) + _args, _kwargs) | |
1dc2f865 | 228 | return val |
1d99702e RD |
229 | def SetWeight(self, *_args, **_kwargs): |
230 | val = apply(gdic.wxFont_SetWeight,(self,) + _args, _kwargs) | |
1dc2f865 | 231 | return val |
f0261a72 RD |
232 | def SetEncoding(self, *_args, **_kwargs): |
233 | val = apply(gdic.wxFont_SetEncoding,(self,) + _args, _kwargs) | |
234 | return val | |
235 | def GetFamilyString(self, *_args, **_kwargs): | |
236 | val = apply(gdic.wxFont_GetFamilyString,(self,) + _args, _kwargs) | |
237 | return val | |
238 | def GetStyleString(self, *_args, **_kwargs): | |
239 | val = apply(gdic.wxFont_GetStyleString,(self,) + _args, _kwargs) | |
240 | return val | |
241 | def GetWeightString(self, *_args, **_kwargs): | |
242 | val = apply(gdic.wxFont_GetWeightString,(self,) + _args, _kwargs) | |
243 | return val | |
1dc2f865 | 244 | def __repr__(self): |
1d99702e | 245 | return "<C wxFont instance at %s>" % (self.this,) |
1dc2f865 | 246 | class wxFont(wxFontPtr): |
1d99702e RD |
247 | def __init__(self,*_args,**_kwargs): |
248 | self.this = apply(gdic.new_wxFont,_args,_kwargs) | |
1dc2f865 | 249 | self.thisown = 1 |
8ab979d7 RD |
250 | |
251 | ||
8ab979d7 RD |
252 | |
253 | ||
1dc2f865 RD |
254 | class wxColourPtr : |
255 | def __init__(self,this): | |
256 | self.this = this | |
257 | self.thisown = 0 | |
1d99702e | 258 | def __del__(self,gdic=gdic): |
1dc2f865 | 259 | if self.thisown == 1 : |
1d99702e RD |
260 | gdic.delete_wxColour(self) |
261 | def Red(self, *_args, **_kwargs): | |
262 | val = apply(gdic.wxColour_Red,(self,) + _args, _kwargs) | |
1dc2f865 | 263 | return val |
1d99702e RD |
264 | def Green(self, *_args, **_kwargs): |
265 | val = apply(gdic.wxColour_Green,(self,) + _args, _kwargs) | |
1dc2f865 | 266 | return val |
1d99702e RD |
267 | def Blue(self, *_args, **_kwargs): |
268 | val = apply(gdic.wxColour_Blue,(self,) + _args, _kwargs) | |
1dc2f865 | 269 | return val |
1d99702e RD |
270 | def Ok(self, *_args, **_kwargs): |
271 | val = apply(gdic.wxColour_Ok,(self,) + _args, _kwargs) | |
1dc2f865 | 272 | return val |
1d99702e RD |
273 | def Set(self, *_args, **_kwargs): |
274 | val = apply(gdic.wxColour_Set,(self,) + _args, _kwargs) | |
1dc2f865 | 275 | return val |
1d99702e RD |
276 | def Get(self, *_args, **_kwargs): |
277 | val = apply(gdic.wxColour_Get,(self,) + _args, _kwargs) | |
1dc2f865 RD |
278 | return val |
279 | def __repr__(self): | |
1d99702e | 280 | return "<C wxColour instance at %s>" % (self.this,) |
9b3d3bc4 RD |
281 | asTuple = Get |
282 | def __str__(self): return str(self.asTuple()) | |
283 | def __repr__(self): return str(self.asTuple()) | |
1dc2f865 | 284 | class wxColour(wxColourPtr): |
1d99702e RD |
285 | def __init__(self,*_args,**_kwargs): |
286 | self.this = apply(gdic.new_wxColour,_args,_kwargs) | |
1dc2f865 | 287 | self.thisown = 1 |
8ab979d7 RD |
288 | |
289 | ||
8ab979d7 RD |
290 | |
291 | ||
1dc2f865 RD |
292 | class wxPenPtr : |
293 | def __init__(self,this): | |
294 | self.this = this | |
295 | self.thisown = 0 | |
1d99702e RD |
296 | def GetCap(self, *_args, **_kwargs): |
297 | val = apply(gdic.wxPen_GetCap,(self,) + _args, _kwargs) | |
1dc2f865 | 298 | return val |
1d99702e RD |
299 | def GetColour(self, *_args, **_kwargs): |
300 | val = apply(gdic.wxPen_GetColour,(self,) + _args, _kwargs) | |
301 | if val: val = wxColourPtr(val) | |
1dc2f865 | 302 | return val |
1d99702e RD |
303 | def GetJoin(self, *_args, **_kwargs): |
304 | val = apply(gdic.wxPen_GetJoin,(self,) + _args, _kwargs) | |
1dc2f865 | 305 | return val |
1d99702e RD |
306 | def GetStyle(self, *_args, **_kwargs): |
307 | val = apply(gdic.wxPen_GetStyle,(self,) + _args, _kwargs) | |
1dc2f865 | 308 | return val |
1d99702e RD |
309 | def GetWidth(self, *_args, **_kwargs): |
310 | val = apply(gdic.wxPen_GetWidth,(self,) + _args, _kwargs) | |
1dc2f865 | 311 | return val |
1d99702e RD |
312 | def Ok(self, *_args, **_kwargs): |
313 | val = apply(gdic.wxPen_Ok,(self,) + _args, _kwargs) | |
1dc2f865 | 314 | return val |
1d99702e RD |
315 | def SetCap(self, *_args, **_kwargs): |
316 | val = apply(gdic.wxPen_SetCap,(self,) + _args, _kwargs) | |
1dc2f865 | 317 | return val |
1d99702e RD |
318 | def SetColour(self, *_args, **_kwargs): |
319 | val = apply(gdic.wxPen_SetColour,(self,) + _args, _kwargs) | |
1dc2f865 | 320 | return val |
1d99702e RD |
321 | def SetJoin(self, *_args, **_kwargs): |
322 | val = apply(gdic.wxPen_SetJoin,(self,) + _args, _kwargs) | |
1dc2f865 | 323 | return val |
1d99702e RD |
324 | def SetStyle(self, *_args, **_kwargs): |
325 | val = apply(gdic.wxPen_SetStyle,(self,) + _args, _kwargs) | |
1dc2f865 | 326 | return val |
1d99702e RD |
327 | def SetWidth(self, *_args, **_kwargs): |
328 | val = apply(gdic.wxPen_SetWidth,(self,) + _args, _kwargs) | |
1dc2f865 | 329 | return val |
1d99702e RD |
330 | def GetDashes(self, *_args, **_kwargs): |
331 | val = apply(gdic.wxPen_GetDashes,(self,) + _args, _kwargs) | |
1dc2f865 | 332 | return val |
6999b0d8 RD |
333 | def SetDashes(self, *_args, **_kwargs): |
334 | val = apply(gdic.wxPen_SetDashes,(self,) + _args, _kwargs) | |
335 | return val | |
1d99702e RD |
336 | def GetStipple(self, *_args, **_kwargs): |
337 | val = apply(gdic.wxPen_GetStipple,(self,) + _args, _kwargs) | |
338 | if val: val = wxBitmapPtr(val) | |
1dc2f865 | 339 | return val |
1d99702e RD |
340 | def SetStipple(self, *_args, **_kwargs): |
341 | val = apply(gdic.wxPen_SetStipple,(self,) + _args, _kwargs) | |
1dc2f865 RD |
342 | return val |
343 | def __repr__(self): | |
1d99702e | 344 | return "<C wxPen instance at %s>" % (self.this,) |
1dc2f865 | 345 | class wxPen(wxPenPtr): |
1d99702e RD |
346 | def __init__(self,*_args,**_kwargs): |
347 | self.this = apply(gdic.new_wxPen,_args,_kwargs) | |
1dc2f865 | 348 | self.thisown = 1 |
8ab979d7 RD |
349 | |
350 | ||
8ab979d7 RD |
351 | |
352 | ||
1dc2f865 RD |
353 | class wxBrushPtr : |
354 | def __init__(self,this): | |
355 | self.this = this | |
356 | self.thisown = 0 | |
1d99702e RD |
357 | def GetColour(self, *_args, **_kwargs): |
358 | val = apply(gdic.wxBrush_GetColour,(self,) + _args, _kwargs) | |
359 | if val: val = wxColourPtr(val) | |
1dc2f865 | 360 | return val |
1d99702e RD |
361 | def GetStipple(self, *_args, **_kwargs): |
362 | val = apply(gdic.wxBrush_GetStipple,(self,) + _args, _kwargs) | |
363 | if val: val = wxBitmapPtr(val) | |
1dc2f865 | 364 | return val |
1d99702e RD |
365 | def GetStyle(self, *_args, **_kwargs): |
366 | val = apply(gdic.wxBrush_GetStyle,(self,) + _args, _kwargs) | |
1dc2f865 | 367 | return val |
1d99702e RD |
368 | def Ok(self, *_args, **_kwargs): |
369 | val = apply(gdic.wxBrush_Ok,(self,) + _args, _kwargs) | |
1dc2f865 | 370 | return val |
1d99702e RD |
371 | def SetColour(self, *_args, **_kwargs): |
372 | val = apply(gdic.wxBrush_SetColour,(self,) + _args, _kwargs) | |
1dc2f865 | 373 | return val |
1d99702e RD |
374 | def SetStipple(self, *_args, **_kwargs): |
375 | val = apply(gdic.wxBrush_SetStipple,(self,) + _args, _kwargs) | |
1dc2f865 | 376 | return val |
1d99702e RD |
377 | def SetStyle(self, *_args, **_kwargs): |
378 | val = apply(gdic.wxBrush_SetStyle,(self,) + _args, _kwargs) | |
1dc2f865 RD |
379 | return val |
380 | def __repr__(self): | |
1d99702e | 381 | return "<C wxBrush instance at %s>" % (self.this,) |
1dc2f865 | 382 | class wxBrush(wxBrushPtr): |
1d99702e RD |
383 | def __init__(self,*_args,**_kwargs): |
384 | self.this = apply(gdic.new_wxBrush,_args,_kwargs) | |
1dc2f865 | 385 | self.thisown = 1 |
8ab979d7 RD |
386 | |
387 | ||
8ab979d7 RD |
388 | |
389 | ||
1dc2f865 RD |
390 | class wxDCPtr : |
391 | def __init__(self,this): | |
392 | self.this = this | |
393 | self.thisown = 0 | |
1d99702e | 394 | def __del__(self,gdic=gdic): |
1dc2f865 | 395 | if self.thisown == 1 : |
1d99702e RD |
396 | gdic.delete_wxDC(self) |
397 | def BeginDrawing(self, *_args, **_kwargs): | |
398 | val = apply(gdic.wxDC_BeginDrawing,(self,) + _args, _kwargs) | |
1dc2f865 | 399 | return val |
1d99702e RD |
400 | def Blit(self, *_args, **_kwargs): |
401 | val = apply(gdic.wxDC_Blit,(self,) + _args, _kwargs) | |
1dc2f865 | 402 | return val |
1d99702e RD |
403 | def Clear(self, *_args, **_kwargs): |
404 | val = apply(gdic.wxDC_Clear,(self,) + _args, _kwargs) | |
1dc2f865 | 405 | return val |
1d99702e RD |
406 | def CrossHair(self, *_args, **_kwargs): |
407 | val = apply(gdic.wxDC_CrossHair,(self,) + _args, _kwargs) | |
1dc2f865 | 408 | return val |
1d99702e RD |
409 | def DestroyClippingRegion(self, *_args, **_kwargs): |
410 | val = apply(gdic.wxDC_DestroyClippingRegion,(self,) + _args, _kwargs) | |
1dc2f865 | 411 | return val |
1d99702e RD |
412 | def DeviceToLogicalX(self, *_args, **_kwargs): |
413 | val = apply(gdic.wxDC_DeviceToLogicalX,(self,) + _args, _kwargs) | |
1dc2f865 | 414 | return val |
1d99702e RD |
415 | def DeviceToLogicalXRel(self, *_args, **_kwargs): |
416 | val = apply(gdic.wxDC_DeviceToLogicalXRel,(self,) + _args, _kwargs) | |
1dc2f865 | 417 | return val |
1d99702e RD |
418 | def DeviceToLogicalY(self, *_args, **_kwargs): |
419 | val = apply(gdic.wxDC_DeviceToLogicalY,(self,) + _args, _kwargs) | |
1dc2f865 | 420 | return val |
1d99702e RD |
421 | def DeviceToLogicalYRel(self, *_args, **_kwargs): |
422 | val = apply(gdic.wxDC_DeviceToLogicalYRel,(self,) + _args, _kwargs) | |
1dc2f865 | 423 | return val |
1d99702e RD |
424 | def DrawArc(self, *_args, **_kwargs): |
425 | val = apply(gdic.wxDC_DrawArc,(self,) + _args, _kwargs) | |
1dc2f865 | 426 | return val |
1d99702e RD |
427 | def DrawCircle(self, *_args, **_kwargs): |
428 | val = apply(gdic.wxDC_DrawCircle,(self,) + _args, _kwargs) | |
1dc2f865 | 429 | return val |
1d99702e RD |
430 | def DrawEllipse(self, *_args, **_kwargs): |
431 | val = apply(gdic.wxDC_DrawEllipse,(self,) + _args, _kwargs) | |
1dc2f865 | 432 | return val |
1d99702e RD |
433 | def DrawEllipticArc(self, *_args, **_kwargs): |
434 | val = apply(gdic.wxDC_DrawEllipticArc,(self,) + _args, _kwargs) | |
1dc2f865 | 435 | return val |
1d99702e RD |
436 | def DrawIcon(self, *_args, **_kwargs): |
437 | val = apply(gdic.wxDC_DrawIcon,(self,) + _args, _kwargs) | |
1dc2f865 | 438 | return val |
1d99702e RD |
439 | def DrawLine(self, *_args, **_kwargs): |
440 | val = apply(gdic.wxDC_DrawLine,(self,) + _args, _kwargs) | |
1dc2f865 | 441 | return val |
1d99702e RD |
442 | def DrawLines(self, *_args, **_kwargs): |
443 | val = apply(gdic.wxDC_DrawLines,(self,) + _args, _kwargs) | |
1dc2f865 | 444 | return val |
1d99702e RD |
445 | def DrawPolygon(self, *_args, **_kwargs): |
446 | val = apply(gdic.wxDC_DrawPolygon,(self,) + _args, _kwargs) | |
1dc2f865 | 447 | return val |
1d99702e RD |
448 | def DrawPoint(self, *_args, **_kwargs): |
449 | val = apply(gdic.wxDC_DrawPoint,(self,) + _args, _kwargs) | |
1dc2f865 | 450 | return val |
1d99702e RD |
451 | def DrawRectangle(self, *_args, **_kwargs): |
452 | val = apply(gdic.wxDC_DrawRectangle,(self,) + _args, _kwargs) | |
1dc2f865 | 453 | return val |
6999b0d8 RD |
454 | def DrawRotatedText(self, *_args, **_kwargs): |
455 | val = apply(gdic.wxDC_DrawRotatedText,(self,) + _args, _kwargs) | |
456 | return val | |
1d99702e RD |
457 | def DrawRoundedRectangle(self, *_args, **_kwargs): |
458 | val = apply(gdic.wxDC_DrawRoundedRectangle,(self,) + _args, _kwargs) | |
1dc2f865 | 459 | return val |
1d99702e RD |
460 | def DrawSpline(self, *_args, **_kwargs): |
461 | val = apply(gdic.wxDC_DrawSpline,(self,) + _args, _kwargs) | |
1dc2f865 | 462 | return val |
1d99702e RD |
463 | def DrawText(self, *_args, **_kwargs): |
464 | val = apply(gdic.wxDC_DrawText,(self,) + _args, _kwargs) | |
1dc2f865 | 465 | return val |
1d99702e RD |
466 | def EndDoc(self, *_args, **_kwargs): |
467 | val = apply(gdic.wxDC_EndDoc,(self,) + _args, _kwargs) | |
1dc2f865 | 468 | return val |
1d99702e RD |
469 | def EndDrawing(self, *_args, **_kwargs): |
470 | val = apply(gdic.wxDC_EndDrawing,(self,) + _args, _kwargs) | |
1dc2f865 | 471 | return val |
1d99702e RD |
472 | def EndPage(self, *_args, **_kwargs): |
473 | val = apply(gdic.wxDC_EndPage,(self,) + _args, _kwargs) | |
1dc2f865 | 474 | return val |
1d99702e RD |
475 | def FloodFill(self, *_args, **_kwargs): |
476 | val = apply(gdic.wxDC_FloodFill,(self,) + _args, _kwargs) | |
1dc2f865 | 477 | return val |
1d99702e RD |
478 | def GetBackground(self, *_args, **_kwargs): |
479 | val = apply(gdic.wxDC_GetBackground,(self,) + _args, _kwargs) | |
480 | if val: val = wxBrushPtr(val) | |
1dc2f865 | 481 | return val |
1d99702e RD |
482 | def GetBrush(self, *_args, **_kwargs): |
483 | val = apply(gdic.wxDC_GetBrush,(self,) + _args, _kwargs) | |
484 | if val: val = wxBrushPtr(val) | |
1dc2f865 | 485 | return val |
1d99702e RD |
486 | def GetCharHeight(self, *_args, **_kwargs): |
487 | val = apply(gdic.wxDC_GetCharHeight,(self,) + _args, _kwargs) | |
1dc2f865 | 488 | return val |
1d99702e RD |
489 | def GetCharWidth(self, *_args, **_kwargs): |
490 | val = apply(gdic.wxDC_GetCharWidth,(self,) + _args, _kwargs) | |
1dc2f865 | 491 | return val |
1d99702e RD |
492 | def GetClippingBox(self, *_args, **_kwargs): |
493 | val = apply(gdic.wxDC_GetClippingBox,(self,) + _args, _kwargs) | |
1dc2f865 | 494 | return val |
1d99702e RD |
495 | def GetFont(self, *_args, **_kwargs): |
496 | val = apply(gdic.wxDC_GetFont,(self,) + _args, _kwargs) | |
497 | if val: val = wxFontPtr(val) | |
1dc2f865 | 498 | return val |
1d99702e RD |
499 | def GetLogicalFunction(self, *_args, **_kwargs): |
500 | val = apply(gdic.wxDC_GetLogicalFunction,(self,) + _args, _kwargs) | |
1dc2f865 | 501 | return val |
eec92d76 RD |
502 | def GetLogicalScale(self, *_args, **_kwargs): |
503 | val = apply(gdic.wxDC_GetLogicalScale,(self,) + _args, _kwargs) | |
504 | return val | |
1d99702e RD |
505 | def GetMapMode(self, *_args, **_kwargs): |
506 | val = apply(gdic.wxDC_GetMapMode,(self,) + _args, _kwargs) | |
1dc2f865 | 507 | return val |
1d99702e RD |
508 | def GetOptimization(self, *_args, **_kwargs): |
509 | val = apply(gdic.wxDC_GetOptimization,(self,) + _args, _kwargs) | |
1dc2f865 | 510 | return val |
1d99702e RD |
511 | def GetPen(self, *_args, **_kwargs): |
512 | val = apply(gdic.wxDC_GetPen,(self,) + _args, _kwargs) | |
513 | if val: val = wxPenPtr(val) | |
1dc2f865 | 514 | return val |
1d99702e RD |
515 | def GetPixel(self, *_args, **_kwargs): |
516 | val = apply(gdic.wxDC_GetPixel,(self,) + _args, _kwargs) | |
517 | if val: val = wxColourPtr(val) ; val.thisown = 1 | |
1dc2f865 | 518 | return val |
1d99702e RD |
519 | def GetSizeTuple(self, *_args, **_kwargs): |
520 | val = apply(gdic.wxDC_GetSizeTuple,(self,) + _args, _kwargs) | |
1dc2f865 | 521 | return val |
1d99702e RD |
522 | def GetSize(self, *_args, **_kwargs): |
523 | val = apply(gdic.wxDC_GetSize,(self,) + _args, _kwargs) | |
524 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
1dc2f865 | 525 | return val |
eec92d76 RD |
526 | def GetSizeMM(self, *_args, **_kwargs): |
527 | val = apply(gdic.wxDC_GetSizeMM,(self,) + _args, _kwargs) | |
528 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
529 | return val | |
1d99702e RD |
530 | def GetTextBackground(self, *_args, **_kwargs): |
531 | val = apply(gdic.wxDC_GetTextBackground,(self,) + _args, _kwargs) | |
532 | if val: val = wxColourPtr(val) | |
1dc2f865 | 533 | return val |
1d99702e RD |
534 | def GetTextExtent(self, *_args, **_kwargs): |
535 | val = apply(gdic.wxDC_GetTextExtent,(self,) + _args, _kwargs) | |
1dc2f865 | 536 | return val |
1d99702e RD |
537 | def GetFullTextExtent(self, *_args, **_kwargs): |
538 | val = apply(gdic.wxDC_GetFullTextExtent,(self,) + _args, _kwargs) | |
1dc2f865 | 539 | return val |
1d99702e RD |
540 | def GetTextForeground(self, *_args, **_kwargs): |
541 | val = apply(gdic.wxDC_GetTextForeground,(self,) + _args, _kwargs) | |
542 | if val: val = wxColourPtr(val) | |
1dc2f865 | 543 | return val |
eec92d76 RD |
544 | def GetUserScale(self, *_args, **_kwargs): |
545 | val = apply(gdic.wxDC_GetUserScale,(self,) + _args, _kwargs) | |
546 | return val | |
1d99702e RD |
547 | def LogicalToDeviceX(self, *_args, **_kwargs): |
548 | val = apply(gdic.wxDC_LogicalToDeviceX,(self,) + _args, _kwargs) | |
1dc2f865 | 549 | return val |
1d99702e RD |
550 | def LogicalToDeviceXRel(self, *_args, **_kwargs): |
551 | val = apply(gdic.wxDC_LogicalToDeviceXRel,(self,) + _args, _kwargs) | |
1dc2f865 | 552 | return val |
1d99702e RD |
553 | def LogicalToDeviceY(self, *_args, **_kwargs): |
554 | val = apply(gdic.wxDC_LogicalToDeviceY,(self,) + _args, _kwargs) | |
1dc2f865 | 555 | return val |
1d99702e RD |
556 | def LogicalToDeviceYRel(self, *_args, **_kwargs): |
557 | val = apply(gdic.wxDC_LogicalToDeviceYRel,(self,) + _args, _kwargs) | |
1dc2f865 | 558 | return val |
1d99702e RD |
559 | def MaxX(self, *_args, **_kwargs): |
560 | val = apply(gdic.wxDC_MaxX,(self,) + _args, _kwargs) | |
1dc2f865 | 561 | return val |
1d99702e RD |
562 | def MaxY(self, *_args, **_kwargs): |
563 | val = apply(gdic.wxDC_MaxY,(self,) + _args, _kwargs) | |
1dc2f865 | 564 | return val |
1d99702e RD |
565 | def MinX(self, *_args, **_kwargs): |
566 | val = apply(gdic.wxDC_MinX,(self,) + _args, _kwargs) | |
1dc2f865 | 567 | return val |
1d99702e RD |
568 | def MinY(self, *_args, **_kwargs): |
569 | val = apply(gdic.wxDC_MinY,(self,) + _args, _kwargs) | |
1dc2f865 | 570 | return val |
1d99702e RD |
571 | def Ok(self, *_args, **_kwargs): |
572 | val = apply(gdic.wxDC_Ok,(self,) + _args, _kwargs) | |
1dc2f865 | 573 | return val |
1d99702e RD |
574 | def SetDeviceOrigin(self, *_args, **_kwargs): |
575 | val = apply(gdic.wxDC_SetDeviceOrigin,(self,) + _args, _kwargs) | |
1dc2f865 | 576 | return val |
1d99702e RD |
577 | def SetBackground(self, *_args, **_kwargs): |
578 | val = apply(gdic.wxDC_SetBackground,(self,) + _args, _kwargs) | |
1dc2f865 | 579 | return val |
1d99702e RD |
580 | def SetBackgroundMode(self, *_args, **_kwargs): |
581 | val = apply(gdic.wxDC_SetBackgroundMode,(self,) + _args, _kwargs) | |
1dc2f865 | 582 | return val |
1d99702e RD |
583 | def SetClippingRegion(self, *_args, **_kwargs): |
584 | val = apply(gdic.wxDC_SetClippingRegion,(self,) + _args, _kwargs) | |
1dc2f865 | 585 | return val |
1d99702e RD |
586 | def SetPalette(self, *_args, **_kwargs): |
587 | val = apply(gdic.wxDC_SetPalette,(self,) + _args, _kwargs) | |
1dc2f865 | 588 | return val |
1d99702e RD |
589 | def SetBrush(self, *_args, **_kwargs): |
590 | val = apply(gdic.wxDC_SetBrush,(self,) + _args, _kwargs) | |
1dc2f865 | 591 | return val |
1d99702e RD |
592 | def SetFont(self, *_args, **_kwargs): |
593 | val = apply(gdic.wxDC_SetFont,(self,) + _args, _kwargs) | |
1dc2f865 | 594 | return val |
1d99702e RD |
595 | def SetLogicalFunction(self, *_args, **_kwargs): |
596 | val = apply(gdic.wxDC_SetLogicalFunction,(self,) + _args, _kwargs) | |
1dc2f865 | 597 | return val |
eec92d76 RD |
598 | def SetLogicalScale(self, *_args, **_kwargs): |
599 | val = apply(gdic.wxDC_SetLogicalScale,(self,) + _args, _kwargs) | |
600 | return val | |
1d99702e RD |
601 | def SetMapMode(self, *_args, **_kwargs): |
602 | val = apply(gdic.wxDC_SetMapMode,(self,) + _args, _kwargs) | |
1dc2f865 | 603 | return val |
1d99702e RD |
604 | def SetOptimization(self, *_args, **_kwargs): |
605 | val = apply(gdic.wxDC_SetOptimization,(self,) + _args, _kwargs) | |
1dc2f865 | 606 | return val |
1d99702e RD |
607 | def SetPen(self, *_args, **_kwargs): |
608 | val = apply(gdic.wxDC_SetPen,(self,) + _args, _kwargs) | |
1dc2f865 | 609 | return val |
1d99702e RD |
610 | def SetTextBackground(self, *_args, **_kwargs): |
611 | val = apply(gdic.wxDC_SetTextBackground,(self,) + _args, _kwargs) | |
1dc2f865 | 612 | return val |
1d99702e RD |
613 | def SetTextForeground(self, *_args, **_kwargs): |
614 | val = apply(gdic.wxDC_SetTextForeground,(self,) + _args, _kwargs) | |
1dc2f865 | 615 | return val |
1d99702e RD |
616 | def SetUserScale(self, *_args, **_kwargs): |
617 | val = apply(gdic.wxDC_SetUserScale,(self,) + _args, _kwargs) | |
1dc2f865 | 618 | return val |
1d99702e RD |
619 | def StartDoc(self, *_args, **_kwargs): |
620 | val = apply(gdic.wxDC_StartDoc,(self,) + _args, _kwargs) | |
1dc2f865 | 621 | return val |
1d99702e RD |
622 | def StartPage(self, *_args, **_kwargs): |
623 | val = apply(gdic.wxDC_StartPage,(self,) + _args, _kwargs) | |
1dc2f865 | 624 | return val |
1d99702e RD |
625 | def DrawBitmap(self, *_args, **_kwargs): |
626 | val = apply(gdic.wxDC_DrawBitmap,(self,) + _args, _kwargs) | |
1dc2f865 | 627 | return val |
eec92d76 RD |
628 | def CanDrawBitmap(self, *_args, **_kwargs): |
629 | val = apply(gdic.wxDC_CanDrawBitmap,(self,) + _args, _kwargs) | |
630 | return val | |
631 | def CanGetTextExtent(self, *_args, **_kwargs): | |
632 | val = apply(gdic.wxDC_CanGetTextExtent,(self,) + _args, _kwargs) | |
633 | return val | |
634 | def GetDepth(self, *_args, **_kwargs): | |
635 | val = apply(gdic.wxDC_GetDepth,(self,) + _args, _kwargs) | |
636 | return val | |
637 | def GetPPI(self, *_args, **_kwargs): | |
638 | val = apply(gdic.wxDC_GetPPI,(self,) + _args, _kwargs) | |
639 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
640 | return val | |
641 | def GetLogicalOrigin(self, *_args, **_kwargs): | |
642 | val = apply(gdic.wxDC_GetLogicalOrigin,(self,) + _args, _kwargs) | |
643 | return val | |
644 | def SetLogicalOrigin(self, *_args, **_kwargs): | |
645 | val = apply(gdic.wxDC_SetLogicalOrigin,(self,) + _args, _kwargs) | |
646 | return val | |
647 | def GetDeviceOrigin(self, *_args, **_kwargs): | |
648 | val = apply(gdic.wxDC_GetDeviceOrigin,(self,) + _args, _kwargs) | |
649 | return val | |
650 | def SetAxisOrientation(self, *_args, **_kwargs): | |
651 | val = apply(gdic.wxDC_SetAxisOrientation,(self,) + _args, _kwargs) | |
652 | return val | |
1dc2f865 | 653 | def __repr__(self): |
1d99702e | 654 | return "<C wxDC instance at %s>" % (self.this,) |
1dc2f865 RD |
655 | class wxDC(wxDCPtr): |
656 | def __init__(self,this): | |
657 | self.this = this | |
8ab979d7 RD |
658 | |
659 | ||
8ab979d7 RD |
660 | |
661 | ||
1dc2f865 RD |
662 | class wxMemoryDCPtr(wxDCPtr): |
663 | def __init__(self,this): | |
664 | self.this = this | |
665 | self.thisown = 0 | |
1d99702e RD |
666 | def SelectObject(self, *_args, **_kwargs): |
667 | val = apply(gdic.wxMemoryDC_SelectObject,(self,) + _args, _kwargs) | |
1dc2f865 RD |
668 | return val |
669 | def __repr__(self): | |
1d99702e | 670 | return "<C wxMemoryDC instance at %s>" % (self.this,) |
1dc2f865 | 671 | class wxMemoryDC(wxMemoryDCPtr): |
1d99702e RD |
672 | def __init__(self,*_args,**_kwargs): |
673 | self.this = apply(gdic.new_wxMemoryDC,_args,_kwargs) | |
1dc2f865 | 674 | self.thisown = 1 |
8ab979d7 RD |
675 | |
676 | ||
b639c3c5 RD |
677 | |
678 | ||
1dc2f865 RD |
679 | class wxScreenDCPtr(wxDCPtr): |
680 | def __init__(self,this): | |
681 | self.this = this | |
682 | self.thisown = 0 | |
26b9cf27 RD |
683 | def StartDrawingOnTopWin(self, *_args, **_kwargs): |
684 | val = apply(gdic.wxScreenDC_StartDrawingOnTopWin,(self,) + _args, _kwargs) | |
685 | return val | |
1d99702e RD |
686 | def StartDrawingOnTop(self, *_args, **_kwargs): |
687 | val = apply(gdic.wxScreenDC_StartDrawingOnTop,(self,) + _args, _kwargs) | |
1dc2f865 | 688 | return val |
1d99702e RD |
689 | def EndDrawingOnTop(self, *_args, **_kwargs): |
690 | val = apply(gdic.wxScreenDC_EndDrawingOnTop,(self,) + _args, _kwargs) | |
1dc2f865 RD |
691 | return val |
692 | def __repr__(self): | |
1d99702e | 693 | return "<C wxScreenDC instance at %s>" % (self.this,) |
1dc2f865 | 694 | class wxScreenDC(wxScreenDCPtr): |
1d99702e RD |
695 | def __init__(self,*_args,**_kwargs): |
696 | self.this = apply(gdic.new_wxScreenDC,_args,_kwargs) | |
1dc2f865 | 697 | self.thisown = 1 |
b639c3c5 RD |
698 | |
699 | ||
8ab979d7 RD |
700 | |
701 | ||
1dc2f865 RD |
702 | class wxClientDCPtr(wxDCPtr): |
703 | def __init__(self,this): | |
704 | self.this = this | |
705 | self.thisown = 0 | |
706 | def __repr__(self): | |
1d99702e | 707 | return "<C wxClientDC instance at %s>" % (self.this,) |
1dc2f865 | 708 | class wxClientDC(wxClientDCPtr): |
1d99702e RD |
709 | def __init__(self,*_args,**_kwargs): |
710 | self.this = apply(gdic.new_wxClientDC,_args,_kwargs) | |
1dc2f865 | 711 | self.thisown = 1 |
8ab979d7 RD |
712 | |
713 | ||
8ab979d7 RD |
714 | |
715 | ||
1dc2f865 RD |
716 | class wxPaintDCPtr(wxDCPtr): |
717 | def __init__(self,this): | |
718 | self.this = this | |
719 | self.thisown = 0 | |
720 | def __repr__(self): | |
1d99702e | 721 | return "<C wxPaintDC instance at %s>" % (self.this,) |
1dc2f865 | 722 | class wxPaintDC(wxPaintDCPtr): |
1d99702e RD |
723 | def __init__(self,*_args,**_kwargs): |
724 | self.this = apply(gdic.new_wxPaintDC,_args,_kwargs) | |
1dc2f865 | 725 | self.thisown = 1 |
8ab979d7 RD |
726 | |
727 | ||
b639c3c5 RD |
728 | |
729 | ||
1dc2f865 RD |
730 | class wxWindowDCPtr(wxDCPtr): |
731 | def __init__(self,this): | |
732 | self.this = this | |
733 | self.thisown = 0 | |
734 | def __repr__(self): | |
1d99702e | 735 | return "<C wxWindowDC instance at %s>" % (self.this,) |
1dc2f865 | 736 | class wxWindowDC(wxWindowDCPtr): |
1d99702e RD |
737 | def __init__(self,*_args,**_kwargs): |
738 | self.this = apply(gdic.new_wxWindowDC,_args,_kwargs) | |
1dc2f865 | 739 | self.thisown = 1 |
b639c3c5 RD |
740 | |
741 | ||
8bf5d46e | 742 | |
8bf5d46e | 743 | |
1dc2f865 RD |
744 | class wxPrinterDCPtr(wxDCPtr): |
745 | def __init__(self,this): | |
746 | self.this = this | |
747 | self.thisown = 0 | |
748 | def __repr__(self): | |
1d99702e | 749 | return "<C wxPrinterDC instance at %s>" % (self.this,) |
1dc2f865 | 750 | class wxPrinterDC(wxPrinterDCPtr): |
1d99702e RD |
751 | def __init__(self,*_args,**_kwargs): |
752 | self.this = apply(gdic.new_wxPrinterDC,_args,_kwargs) | |
1dc2f865 | 753 | self.thisown = 1 |
8bf5d46e | 754 | |
8bf5d46e | 755 | |
8bf5d46e | 756 | |
8bf5d46e | 757 | |
1dc2f865 RD |
758 | class wxMetaFileDCPtr(wxDCPtr): |
759 | def __init__(self,this): | |
760 | self.this = this | |
761 | self.thisown = 0 | |
1d99702e RD |
762 | def Close(self, *_args, **_kwargs): |
763 | val = apply(gdic.wxMetaFileDC_Close,(self,) + _args, _kwargs) | |
1dc2f865 RD |
764 | return val |
765 | def __repr__(self): | |
1d99702e | 766 | return "<C wxMetaFileDC instance at %s>" % (self.this,) |
1dc2f865 | 767 | class wxMetaFileDC(wxMetaFileDCPtr): |
1d99702e RD |
768 | def __init__(self,*_args,**_kwargs): |
769 | self.this = apply(gdic.new_wxMetaFileDC,_args,_kwargs) | |
1dc2f865 | 770 | self.thisown = 1 |
8bf5d46e | 771 | |
8bf5d46e | 772 | |
8bf5d46e | 773 | |
8bf5d46e | 774 | |
1dc2f865 RD |
775 | class wxPalettePtr : |
776 | def __init__(self,this): | |
777 | self.this = this | |
778 | self.thisown = 0 | |
1d99702e | 779 | def __del__(self,gdic=gdic): |
1dc2f865 | 780 | if self.thisown == 1 : |
1d99702e RD |
781 | gdic.delete_wxPalette(self) |
782 | def GetPixel(self, *_args, **_kwargs): | |
783 | val = apply(gdic.wxPalette_GetPixel,(self,) + _args, _kwargs) | |
1dc2f865 | 784 | return val |
1d99702e RD |
785 | def GetRGB(self, *_args, **_kwargs): |
786 | val = apply(gdic.wxPalette_GetRGB,(self,) + _args, _kwargs) | |
1dc2f865 | 787 | return val |
1d99702e RD |
788 | def Ok(self, *_args, **_kwargs): |
789 | val = apply(gdic.wxPalette_Ok,(self,) + _args, _kwargs) | |
1dc2f865 RD |
790 | return val |
791 | def __repr__(self): | |
1d99702e | 792 | return "<C wxPalette instance at %s>" % (self.this,) |
1dc2f865 | 793 | class wxPalette(wxPalettePtr): |
1d99702e RD |
794 | def __init__(self,*_args,**_kwargs): |
795 | self.this = apply(gdic.new_wxPalette,_args,_kwargs) | |
1dc2f865 | 796 | self.thisown = 1 |
8bf5d46e | 797 | |
8bf5d46e | 798 | |
8bf5d46e | 799 | |
8bf5d46e | 800 | |
1dc2f865 RD |
801 | class wxImageListPtr : |
802 | def __init__(self,this): | |
803 | self.this = this | |
804 | self.thisown = 0 | |
1d99702e | 805 | def __del__(self,gdic=gdic): |
1dc2f865 | 806 | if self.thisown == 1 : |
1d99702e RD |
807 | gdic.delete_wxImageList(self) |
808 | def Add(self, *_args, **_kwargs): | |
809 | val = apply(gdic.wxImageList_Add,(self,) + _args, _kwargs) | |
1dc2f865 | 810 | return val |
1d99702e RD |
811 | def AddWithColourMask(self, *_args, **_kwargs): |
812 | val = apply(gdic.wxImageList_AddWithColourMask,(self,) + _args, _kwargs) | |
1dc2f865 | 813 | return val |
1d99702e RD |
814 | def AddIcon(self, *_args, **_kwargs): |
815 | val = apply(gdic.wxImageList_AddIcon,(self,) + _args, _kwargs) | |
1dc2f865 | 816 | return val |
1d99702e RD |
817 | def Replace(self, *_args, **_kwargs): |
818 | val = apply(gdic.wxImageList_Replace,(self,) + _args, _kwargs) | |
1dc2f865 | 819 | return val |
1d99702e RD |
820 | def ReplaceIcon(self, *_args, **_kwargs): |
821 | val = apply(gdic.wxImageList_ReplaceIcon,(self,) + _args, _kwargs) | |
1dc2f865 | 822 | return val |
1d99702e RD |
823 | def Draw(self, *_args, **_kwargs): |
824 | val = apply(gdic.wxImageList_Draw,(self,) + _args, _kwargs) | |
1dc2f865 | 825 | return val |
1d99702e RD |
826 | def GetImageCount(self, *_args, **_kwargs): |
827 | val = apply(gdic.wxImageList_GetImageCount,(self,) + _args, _kwargs) | |
1dc2f865 | 828 | return val |
1d99702e RD |
829 | def Remove(self, *_args, **_kwargs): |
830 | val = apply(gdic.wxImageList_Remove,(self,) + _args, _kwargs) | |
1dc2f865 | 831 | return val |
1d99702e RD |
832 | def RemoveAll(self, *_args, **_kwargs): |
833 | val = apply(gdic.wxImageList_RemoveAll,(self,) + _args, _kwargs) | |
1dc2f865 RD |
834 | return val |
835 | def __repr__(self): | |
1d99702e | 836 | return "<C wxImageList instance at %s>" % (self.this,) |
1dc2f865 | 837 | class wxImageList(wxImageListPtr): |
1d99702e RD |
838 | def __init__(self,*_args,**_kwargs): |
839 | self.this = apply(gdic.new_wxImageList,_args,_kwargs) | |
1dc2f865 | 840 | self.thisown = 1 |
af309447 RD |
841 | |
842 | ||
843 | ||
844 | ||
8ab979d7 RD |
845 | |
846 | ||
1dc2f865 RD |
847 | #-------------- FUNCTION WRAPPERS ------------------ |
848 | ||
1d99702e RD |
849 | def wxEmptyBitmap(*_args, **_kwargs): |
850 | val = apply(gdic.wxEmptyBitmap,_args,_kwargs) | |
851 | if val: val = wxBitmapPtr(val); val.thisown = 1 | |
1dc2f865 RD |
852 | return val |
853 | ||
1d99702e RD |
854 | def wxBitmapFromData(*_args, **_kwargs): |
855 | val = apply(gdic.wxBitmapFromData,_args,_kwargs) | |
856 | if val: val = wxBitmapPtr(val); val.thisown = 1 | |
1dc2f865 RD |
857 | return val |
858 | ||
1d99702e RD |
859 | def wxMaskColour(*_args, **_kwargs): |
860 | val = apply(gdic.wxMaskColour,_args,_kwargs) | |
861 | if val: val = wxMaskPtr(val); val.thisown = 1 | |
1dc2f865 RD |
862 | return val |
863 | ||
1d99702e RD |
864 | def wxStockCursor(*_args, **_kwargs): |
865 | val = apply(gdic.wxStockCursor,_args,_kwargs) | |
866 | if val: val = wxCursorPtr(val); val.thisown = 1 | |
1dc2f865 RD |
867 | return val |
868 | ||
f0261a72 RD |
869 | wxFont_GetDefaultEncoding = gdic.wxFont_GetDefaultEncoding |
870 | ||
871 | wxFont_SetDefaultEncoding = gdic.wxFont_SetDefaultEncoding | |
872 | ||
1d99702e RD |
873 | def wxNamedColour(*_args, **_kwargs): |
874 | val = apply(gdic.wxNamedColour,_args,_kwargs) | |
875 | if val: val = wxColourPtr(val); val.thisown = 1 | |
1dc2f865 RD |
876 | return val |
877 | ||
1d99702e RD |
878 | def wxMemoryDCFromDC(*_args, **_kwargs): |
879 | val = apply(gdic.wxMemoryDCFromDC,_args,_kwargs) | |
880 | if val: val = wxMemoryDCPtr(val); val.thisown = 1 | |
1dc2f865 RD |
881 | return val |
882 | ||
883 | ||
884 | ||
885 | #-------------- VARIABLE WRAPPERS ------------------ | |
886 | ||
f0261a72 RD |
887 | wxFONTENCODING_SYSTEM = gdic.wxFONTENCODING_SYSTEM |
888 | wxFONTENCODING_DEFAULT = gdic.wxFONTENCODING_DEFAULT | |
889 | wxFONTENCODING_ISO8859_1 = gdic.wxFONTENCODING_ISO8859_1 | |
890 | wxFONTENCODING_ISO8859_2 = gdic.wxFONTENCODING_ISO8859_2 | |
891 | wxFONTENCODING_ISO8859_3 = gdic.wxFONTENCODING_ISO8859_3 | |
892 | wxFONTENCODING_ISO8859_4 = gdic.wxFONTENCODING_ISO8859_4 | |
893 | wxFONTENCODING_ISO8859_5 = gdic.wxFONTENCODING_ISO8859_5 | |
894 | wxFONTENCODING_ISO8859_6 = gdic.wxFONTENCODING_ISO8859_6 | |
895 | wxFONTENCODING_ISO8859_7 = gdic.wxFONTENCODING_ISO8859_7 | |
896 | wxFONTENCODING_ISO8859_8 = gdic.wxFONTENCODING_ISO8859_8 | |
897 | wxFONTENCODING_ISO8859_9 = gdic.wxFONTENCODING_ISO8859_9 | |
898 | wxFONTENCODING_ISO8859_10 = gdic.wxFONTENCODING_ISO8859_10 | |
899 | wxFONTENCODING_ISO8859_11 = gdic.wxFONTENCODING_ISO8859_11 | |
900 | wxFONTENCODING_ISO8859_12 = gdic.wxFONTENCODING_ISO8859_12 | |
901 | wxFONTENCODING_ISO8859_13 = gdic.wxFONTENCODING_ISO8859_13 | |
902 | wxFONTENCODING_ISO8859_14 = gdic.wxFONTENCODING_ISO8859_14 | |
903 | wxFONTENCODING_ISO8859_15 = gdic.wxFONTENCODING_ISO8859_15 | |
904 | wxFONTENCODING_KOI8 = gdic.wxFONTENCODING_KOI8 | |
905 | wxFONTENCODING_ALTERNATIVE = gdic.wxFONTENCODING_ALTERNATIVE | |
906 | wxFONTENCODING_BULGARIAN = gdic.wxFONTENCODING_BULGARIAN | |
907 | wxFONTENCODING_CP437 = gdic.wxFONTENCODING_CP437 | |
908 | wxFONTENCODING_CP850 = gdic.wxFONTENCODING_CP850 | |
909 | wxFONTENCODING_CP852 = gdic.wxFONTENCODING_CP852 | |
910 | wxFONTENCODING_CP855 = gdic.wxFONTENCODING_CP855 | |
911 | wxFONTENCODING_CP866 = gdic.wxFONTENCODING_CP866 | |
912 | wxFONTENCODING_CP1250 = gdic.wxFONTENCODING_CP1250 | |
913 | wxFONTENCODING_CP1251 = gdic.wxFONTENCODING_CP1251 | |
914 | wxFONTENCODING_CP1252 = gdic.wxFONTENCODING_CP1252 | |
915 | wxFONTENCODING_MAX = gdic.wxFONTENCODING_MAX | |
1dc2f865 RD |
916 | cvar = gdic.cvar |
917 | wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT) | |
918 | wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT) | |
919 | wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT) | |
920 | wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT) | |
921 | wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN) | |
922 | wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN) | |
923 | wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN) | |
924 | wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN) | |
925 | wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN) | |
926 | wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN) | |
927 | wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN) | |
928 | wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN) | |
929 | wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN) | |
930 | wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN) | |
931 | wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH) | |
932 | wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH) | |
933 | wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH) | |
934 | wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH) | |
935 | wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH) | |
936 | wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH) | |
937 | wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH) | |
938 | wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH) | |
939 | wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH) | |
940 | wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH) | |
941 | wxBLACK = wxColourPtr(gdic.cvar.wxBLACK) | |
942 | wxWHITE = wxColourPtr(gdic.cvar.wxWHITE) | |
943 | wxRED = wxColourPtr(gdic.cvar.wxRED) | |
944 | wxBLUE = wxColourPtr(gdic.cvar.wxBLUE) | |
945 | wxGREEN = wxColourPtr(gdic.cvar.wxGREEN) | |
946 | wxCYAN = wxColourPtr(gdic.cvar.wxCYAN) | |
947 | wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY) | |
948 | wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR) | |
949 | wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR) | |
950 | wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR) | |
951 | wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap) | |
952 | wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon) | |
953 | wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor) | |
954 | wxNullPen = wxPenPtr(gdic.cvar.wxNullPen) | |
955 | wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush) | |
956 | wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette) | |
957 | wxNullFont = wxFontPtr(gdic.cvar.wxNullFont) | |
958 | wxNullColour = wxColourPtr(gdic.cvar.wxNullColour) | |
959 | wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL | |
960 | wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT | |
961 | wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED | |
962 | wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED | |
963 | wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL | |
964 | wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL | |
965 | wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE |