]>
Commit | Line | Data |
---|---|---|
1 | # This file was created automatically by SWIG. | |
2 | import gdic | |
3 | ||
4 | from misc import * | |
5 | ||
6 | from fonts import * | |
7 | import wx | |
8 | class wxGDIObjectPtr(wxObjectPtr): | |
9 | def __init__(self,this): | |
10 | self.this = this | |
11 | self.thisown = 0 | |
12 | def __del__(self, delfunc=gdic.delete_wxGDIObject): | |
13 | if self.thisown == 1: | |
14 | try: | |
15 | delfunc(self) | |
16 | except: | |
17 | pass | |
18 | def GetVisible(self, *_args, **_kwargs): | |
19 | val = gdic.wxGDIObject_GetVisible(self, *_args, **_kwargs) | |
20 | return val | |
21 | def SetVisible(self, *_args, **_kwargs): | |
22 | val = gdic.wxGDIObject_SetVisible(self, *_args, **_kwargs) | |
23 | return val | |
24 | def IsNull(self, *_args, **_kwargs): | |
25 | val = gdic.wxGDIObject_IsNull(self, *_args, **_kwargs) | |
26 | return val | |
27 | def __repr__(self): | |
28 | return "<%s.%s instance; proxy of C++ wxGDIObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
29 | class wxGDIObject(wxGDIObjectPtr): | |
30 | def __init__(self,*_args,**_kwargs): | |
31 | self.this = gdic.new_wxGDIObject(*_args,**_kwargs) | |
32 | self.thisown = 1 | |
33 | ||
34 | ||
35 | ||
36 | ||
37 | class wxBitmapPtr(wxGDIObjectPtr): | |
38 | def __init__(self,this): | |
39 | self.this = this | |
40 | self.thisown = 0 | |
41 | def __del__(self, delfunc=gdic.delete_wxBitmap): | |
42 | if self.thisown == 1: | |
43 | try: | |
44 | delfunc(self) | |
45 | except: | |
46 | pass | |
47 | def GetPalette(self, *_args, **_kwargs): | |
48 | val = gdic.wxBitmap_GetPalette(self, *_args, **_kwargs) | |
49 | if val: val = wxPalettePtr(val) | |
50 | return val | |
51 | def GetMask(self, *_args, **_kwargs): | |
52 | val = gdic.wxBitmap_GetMask(self, *_args, **_kwargs) | |
53 | if val: val = wxMaskPtr(val) | |
54 | return val | |
55 | def LoadFile(self, *_args, **_kwargs): | |
56 | val = gdic.wxBitmap_LoadFile(self, *_args, **_kwargs) | |
57 | return val | |
58 | def SaveFile(self, *_args, **_kwargs): | |
59 | val = gdic.wxBitmap_SaveFile(self, *_args, **_kwargs) | |
60 | return val | |
61 | def SetMask(self, *_args, **_kwargs): | |
62 | val = gdic.wxBitmap_SetMask(self, *_args, **_kwargs) | |
63 | return val | |
64 | def Ok(self, *_args, **_kwargs): | |
65 | val = gdic.wxBitmap_Ok(self, *_args, **_kwargs) | |
66 | return val | |
67 | def GetWidth(self, *_args, **_kwargs): | |
68 | val = gdic.wxBitmap_GetWidth(self, *_args, **_kwargs) | |
69 | return val | |
70 | def GetHeight(self, *_args, **_kwargs): | |
71 | val = gdic.wxBitmap_GetHeight(self, *_args, **_kwargs) | |
72 | return val | |
73 | def GetDepth(self, *_args, **_kwargs): | |
74 | val = gdic.wxBitmap_GetDepth(self, *_args, **_kwargs) | |
75 | return val | |
76 | def SetWidth(self, *_args, **_kwargs): | |
77 | val = gdic.wxBitmap_SetWidth(self, *_args, **_kwargs) | |
78 | return val | |
79 | def SetHeight(self, *_args, **_kwargs): | |
80 | val = gdic.wxBitmap_SetHeight(self, *_args, **_kwargs) | |
81 | return val | |
82 | def SetDepth(self, *_args, **_kwargs): | |
83 | val = gdic.wxBitmap_SetDepth(self, *_args, **_kwargs) | |
84 | return val | |
85 | def GetSubBitmap(self, *_args, **_kwargs): | |
86 | val = gdic.wxBitmap_GetSubBitmap(self, *_args, **_kwargs) | |
87 | if val: val = wxBitmapPtr(val) ; val.thisown = 1 | |
88 | return val | |
89 | def CopyFromIcon(self, *_args, **_kwargs): | |
90 | val = gdic.wxBitmap_CopyFromIcon(self, *_args, **_kwargs) | |
91 | return val | |
92 | def __repr__(self): | |
93 | return "<%s.%s instance; proxy of C++ wxBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
94 | ||
95 | def SetMaskColour(self, colour): | |
96 | mask = wxMaskColour(self, colour) | |
97 | self.SetMask(mask) | |
98 | ||
99 | def __nonzero__(self): return self.Ok() | |
100 | class wxBitmap(wxBitmapPtr): | |
101 | def __init__(self,*_args,**_kwargs): | |
102 | self.this = gdic.new_wxBitmap(*_args,**_kwargs) | |
103 | self.thisown = 1 | |
104 | ||
105 | ||
106 | ||
107 | ||
108 | class wxMaskPtr(wxObjectPtr): | |
109 | def __init__(self,this): | |
110 | self.this = this | |
111 | self.thisown = 0 | |
112 | def Destroy(self, *_args, **_kwargs): | |
113 | val = gdic.wxMask_Destroy(self, *_args, **_kwargs) | |
114 | return val | |
115 | def __repr__(self): | |
116 | return "<%s.%s instance; proxy of C++ wxMask instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
117 | class wxMask(wxMaskPtr): | |
118 | def __init__(self,*_args,**_kwargs): | |
119 | self.this = gdic.new_wxMask(*_args,**_kwargs) | |
120 | self.thisown = 1 | |
121 | ||
122 | ||
123 | ||
124 | ||
125 | class wxIconPtr(wxGDIObjectPtr): | |
126 | def __init__(self,this): | |
127 | self.this = this | |
128 | self.thisown = 0 | |
129 | def __del__(self, delfunc=gdic.delete_wxIcon): | |
130 | if self.thisown == 1: | |
131 | try: | |
132 | delfunc(self) | |
133 | except: | |
134 | pass | |
135 | def LoadFile(self, *_args, **_kwargs): | |
136 | val = gdic.wxIcon_LoadFile(self, *_args, **_kwargs) | |
137 | return val | |
138 | def Ok(self, *_args, **_kwargs): | |
139 | val = gdic.wxIcon_Ok(self, *_args, **_kwargs) | |
140 | return val | |
141 | def GetWidth(self, *_args, **_kwargs): | |
142 | val = gdic.wxIcon_GetWidth(self, *_args, **_kwargs) | |
143 | return val | |
144 | def GetHeight(self, *_args, **_kwargs): | |
145 | val = gdic.wxIcon_GetHeight(self, *_args, **_kwargs) | |
146 | return val | |
147 | def GetDepth(self, *_args, **_kwargs): | |
148 | val = gdic.wxIcon_GetDepth(self, *_args, **_kwargs) | |
149 | return val | |
150 | def SetWidth(self, *_args, **_kwargs): | |
151 | val = gdic.wxIcon_SetWidth(self, *_args, **_kwargs) | |
152 | return val | |
153 | def SetHeight(self, *_args, **_kwargs): | |
154 | val = gdic.wxIcon_SetHeight(self, *_args, **_kwargs) | |
155 | return val | |
156 | def SetDepth(self, *_args, **_kwargs): | |
157 | val = gdic.wxIcon_SetDepth(self, *_args, **_kwargs) | |
158 | return val | |
159 | def CopyFromBitmap(self, *_args, **_kwargs): | |
160 | val = gdic.wxIcon_CopyFromBitmap(self, *_args, **_kwargs) | |
161 | return val | |
162 | def __repr__(self): | |
163 | return "<%s.%s instance; proxy of C++ wxIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
164 | def __nonzero__(self): return self.Ok() | |
165 | class wxIcon(wxIconPtr): | |
166 | def __init__(self,*_args,**_kwargs): | |
167 | self.this = gdic.new_wxIcon(*_args,**_kwargs) | |
168 | self.thisown = 1 | |
169 | ||
170 | ||
171 | ||
172 | ||
173 | class wxIconBundlePtr : | |
174 | def __init__(self,this): | |
175 | self.this = this | |
176 | self.thisown = 0 | |
177 | def __del__(self, delfunc=gdic.delete_wxIconBundle): | |
178 | if self.thisown == 1: | |
179 | try: | |
180 | delfunc(self) | |
181 | except: | |
182 | pass | |
183 | def AddIcon(self, *_args, **_kwargs): | |
184 | val = gdic.wxIconBundle_AddIcon(self, *_args, **_kwargs) | |
185 | return val | |
186 | def AddIconFromFile(self, *_args, **_kwargs): | |
187 | val = gdic.wxIconBundle_AddIconFromFile(self, *_args, **_kwargs) | |
188 | return val | |
189 | def GetIcon(self, *_args, **_kwargs): | |
190 | val = gdic.wxIconBundle_GetIcon(self, *_args, **_kwargs) | |
191 | if val: val = wxIconPtr(val) | |
192 | return val | |
193 | def __repr__(self): | |
194 | return "<%s.%s instance; proxy of C++ wxIconBundle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
195 | class wxIconBundle(wxIconBundlePtr): | |
196 | def __init__(self,*_args,**_kwargs): | |
197 | self.this = gdic.new_wxIconBundle(*_args,**_kwargs) | |
198 | self.thisown = 1 | |
199 | ||
200 | ||
201 | ||
202 | def wxIconBundleFromFile(*_args,**_kwargs): | |
203 | val = wxIconBundlePtr(gdic.new_wxIconBundleFromFile(*_args,**_kwargs)) | |
204 | val.thisown = 1 | |
205 | return val | |
206 | ||
207 | def wxIconBundleFromIcon(*_args,**_kwargs): | |
208 | val = wxIconBundlePtr(gdic.new_wxIconBundleFromIcon(*_args,**_kwargs)) | |
209 | val.thisown = 1 | |
210 | return val | |
211 | ||
212 | ||
213 | class wxCursorPtr(wxGDIObjectPtr): | |
214 | def __init__(self,this): | |
215 | self.this = this | |
216 | self.thisown = 0 | |
217 | def __del__(self, delfunc=gdic.delete_wxCursor): | |
218 | if self.thisown == 1: | |
219 | try: | |
220 | delfunc(self) | |
221 | except: | |
222 | pass | |
223 | def Ok(self, *_args, **_kwargs): | |
224 | val = gdic.wxCursor_Ok(self, *_args, **_kwargs) | |
225 | return val | |
226 | def __repr__(self): | |
227 | return "<%s.%s instance; proxy of C++ wxCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
228 | def __nonzero__(self): return self.Ok() | |
229 | class wxCursor(wxCursorPtr): | |
230 | def __init__(self,*_args,**_kwargs): | |
231 | self.this = gdic.new_wxCursor(*_args,**_kwargs) | |
232 | self.thisown = 1 | |
233 | ||
234 | ||
235 | ||
236 | ||
237 | class wxColourPtr(wxObjectPtr): | |
238 | def __init__(self,this): | |
239 | self.this = this | |
240 | self.thisown = 0 | |
241 | def __del__(self, delfunc=gdic.delete_wxColour): | |
242 | if self.thisown == 1: | |
243 | try: | |
244 | delfunc(self) | |
245 | except: | |
246 | pass | |
247 | def Red(self, *_args, **_kwargs): | |
248 | val = gdic.wxColour_Red(self, *_args, **_kwargs) | |
249 | return val | |
250 | def Green(self, *_args, **_kwargs): | |
251 | val = gdic.wxColour_Green(self, *_args, **_kwargs) | |
252 | return val | |
253 | def Blue(self, *_args, **_kwargs): | |
254 | val = gdic.wxColour_Blue(self, *_args, **_kwargs) | |
255 | return val | |
256 | def Ok(self, *_args, **_kwargs): | |
257 | val = gdic.wxColour_Ok(self, *_args, **_kwargs) | |
258 | return val | |
259 | def Set(self, *_args, **_kwargs): | |
260 | val = gdic.wxColour_Set(self, *_args, **_kwargs) | |
261 | return val | |
262 | def Get(self, *_args, **_kwargs): | |
263 | val = gdic.wxColour_Get(self, *_args, **_kwargs) | |
264 | return val | |
265 | def __eq__(self, *_args, **_kwargs): | |
266 | val = gdic.wxColour___eq__(self, *_args, **_kwargs) | |
267 | return val | |
268 | def __ne__(self, *_args, **_kwargs): | |
269 | val = gdic.wxColour___ne__(self, *_args, **_kwargs) | |
270 | return val | |
271 | def __repr__(self): | |
272 | return "<%s.%s instance; proxy of C++ wxColour instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
273 | asTuple = Get | |
274 | def __str__(self): return str(self.asTuple()) | |
275 | def __repr__(self): return 'wxColour:' + str(self.asTuple()) | |
276 | def __nonzero__(self): return self.Ok() | |
277 | def __getinitargs__(self): return () | |
278 | def __getstate__(self): return self.asTuple() | |
279 | def __setstate__(self, state): self.Set(*state) | |
280 | ||
281 | class wxColour(wxColourPtr): | |
282 | def __init__(self,*_args,**_kwargs): | |
283 | self.this = gdic.new_wxColour(*_args,**_kwargs) | |
284 | self.thisown = 1 | |
285 | ||
286 | ||
287 | ||
288 | ||
289 | class wxColourDatabasePtr(wxObjectPtr): | |
290 | def __init__(self,this): | |
291 | self.this = this | |
292 | self.thisown = 0 | |
293 | def FindColour(self, *_args, **_kwargs): | |
294 | val = gdic.wxColourDatabase_FindColour(self, *_args, **_kwargs) | |
295 | if val: val = wxColourPtr(val) | |
296 | return val | |
297 | def FindName(self, *_args, **_kwargs): | |
298 | val = gdic.wxColourDatabase_FindName(self, *_args, **_kwargs) | |
299 | return val | |
300 | def Append(self, *_args, **_kwargs): | |
301 | val = gdic.wxColourDatabase_Append(self, *_args, **_kwargs) | |
302 | return val | |
303 | def __repr__(self): | |
304 | return "<%s.%s instance; proxy of C++ wxColourDatabase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
305 | class wxColourDatabase(wxColourDatabasePtr): | |
306 | def __init__(self,this): | |
307 | self.this = this | |
308 | ||
309 | ||
310 | ||
311 | ||
312 | class wxPenPtr(wxGDIObjectPtr): | |
313 | def __init__(self,this): | |
314 | self.this = this | |
315 | self.thisown = 0 | |
316 | def __del__(self, delfunc=gdic.delete_wxPen): | |
317 | if self.thisown == 1: | |
318 | try: | |
319 | delfunc(self) | |
320 | except: | |
321 | pass | |
322 | def GetCap(self, *_args, **_kwargs): | |
323 | val = gdic.wxPen_GetCap(self, *_args, **_kwargs) | |
324 | return val | |
325 | def GetColour(self, *_args, **_kwargs): | |
326 | val = gdic.wxPen_GetColour(self, *_args, **_kwargs) | |
327 | if val: val = wxColourPtr(val) ; val.thisown = 1 | |
328 | return val | |
329 | def GetJoin(self, *_args, **_kwargs): | |
330 | val = gdic.wxPen_GetJoin(self, *_args, **_kwargs) | |
331 | return val | |
332 | def GetStyle(self, *_args, **_kwargs): | |
333 | val = gdic.wxPen_GetStyle(self, *_args, **_kwargs) | |
334 | return val | |
335 | def GetWidth(self, *_args, **_kwargs): | |
336 | val = gdic.wxPen_GetWidth(self, *_args, **_kwargs) | |
337 | return val | |
338 | def Ok(self, *_args, **_kwargs): | |
339 | val = gdic.wxPen_Ok(self, *_args, **_kwargs) | |
340 | return val | |
341 | def SetCap(self, *_args, **_kwargs): | |
342 | val = gdic.wxPen_SetCap(self, *_args, **_kwargs) | |
343 | return val | |
344 | def SetColour(self, *_args, **_kwargs): | |
345 | val = gdic.wxPen_SetColour(self, *_args, **_kwargs) | |
346 | return val | |
347 | def SetJoin(self, *_args, **_kwargs): | |
348 | val = gdic.wxPen_SetJoin(self, *_args, **_kwargs) | |
349 | return val | |
350 | def SetStyle(self, *_args, **_kwargs): | |
351 | val = gdic.wxPen_SetStyle(self, *_args, **_kwargs) | |
352 | return val | |
353 | def SetWidth(self, *_args, **_kwargs): | |
354 | val = gdic.wxPen_SetWidth(self, *_args, **_kwargs) | |
355 | return val | |
356 | def SetDashes(self, *_args, **_kwargs): | |
357 | val = gdic.wxPen_SetDashes(self, *_args, **_kwargs) | |
358 | return val | |
359 | def GetDashes(self, *_args, **_kwargs): | |
360 | val = gdic.wxPen_GetDashes(self, *_args, **_kwargs) | |
361 | return val | |
362 | def __repr__(self): | |
363 | return "<%s.%s instance; proxy of C++ wxPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
364 | def __nonzero__(self): return self.Ok() | |
365 | class wxPen(wxPenPtr): | |
366 | def __init__(self,*_args,**_kwargs): | |
367 | self.this = gdic.new_wxPen(*_args,**_kwargs) | |
368 | self.thisown = 1 | |
369 | ||
370 | ||
371 | ||
372 | ||
373 | class wxPyPenPtr(wxPenPtr): | |
374 | def __init__(self,this): | |
375 | self.this = this | |
376 | self.thisown = 0 | |
377 | def __del__(self, delfunc=gdic.delete_wxPyPen): | |
378 | if self.thisown == 1: | |
379 | try: | |
380 | delfunc(self) | |
381 | except: | |
382 | pass | |
383 | def SetDashes(self, *_args, **_kwargs): | |
384 | val = gdic.wxPyPen_SetDashes(self, *_args, **_kwargs) | |
385 | return val | |
386 | def __repr__(self): | |
387 | return "<%s.%s instance; proxy of C++ wxPyPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
388 | class wxPyPen(wxPyPenPtr): | |
389 | def __init__(self,*_args,**_kwargs): | |
390 | self.this = gdic.new_wxPyPen(*_args,**_kwargs) | |
391 | self.thisown = 1 | |
392 | ||
393 | ||
394 | ||
395 | ||
396 | class wxPenListPtr(wxObjectPtr): | |
397 | def __init__(self,this): | |
398 | self.this = this | |
399 | self.thisown = 0 | |
400 | def AddPen(self, *_args, **_kwargs): | |
401 | val = gdic.wxPenList_AddPen(self, *_args, **_kwargs) | |
402 | return val | |
403 | def FindOrCreatePen(self, *_args, **_kwargs): | |
404 | val = gdic.wxPenList_FindOrCreatePen(self, *_args, **_kwargs) | |
405 | if val: val = wxPenPtr(val) | |
406 | return val | |
407 | def RemovePen(self, *_args, **_kwargs): | |
408 | val = gdic.wxPenList_RemovePen(self, *_args, **_kwargs) | |
409 | return val | |
410 | def GetCount(self, *_args, **_kwargs): | |
411 | val = gdic.wxPenList_GetCount(self, *_args, **_kwargs) | |
412 | return val | |
413 | def __repr__(self): | |
414 | return "<%s.%s instance; proxy of C++ wxPenList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
415 | class wxPenList(wxPenListPtr): | |
416 | def __init__(self,this): | |
417 | self.this = this | |
418 | ||
419 | ||
420 | ||
421 | ||
422 | class wxBrushPtr(wxGDIObjectPtr): | |
423 | def __init__(self,this): | |
424 | self.this = this | |
425 | self.thisown = 0 | |
426 | def __del__(self, delfunc=gdic.delete_wxBrush): | |
427 | if self.thisown == 1: | |
428 | try: | |
429 | delfunc(self) | |
430 | except: | |
431 | pass | |
432 | def GetColour(self, *_args, **_kwargs): | |
433 | val = gdic.wxBrush_GetColour(self, *_args, **_kwargs) | |
434 | if val: val = wxColourPtr(val) ; val.thisown = 1 | |
435 | return val | |
436 | def GetStipple(self, *_args, **_kwargs): | |
437 | val = gdic.wxBrush_GetStipple(self, *_args, **_kwargs) | |
438 | if val: val = wxBitmapPtr(val) | |
439 | return val | |
440 | def GetStyle(self, *_args, **_kwargs): | |
441 | val = gdic.wxBrush_GetStyle(self, *_args, **_kwargs) | |
442 | return val | |
443 | def Ok(self, *_args, **_kwargs): | |
444 | val = gdic.wxBrush_Ok(self, *_args, **_kwargs) | |
445 | return val | |
446 | def SetColour(self, *_args, **_kwargs): | |
447 | val = gdic.wxBrush_SetColour(self, *_args, **_kwargs) | |
448 | return val | |
449 | def SetStipple(self, *_args, **_kwargs): | |
450 | val = gdic.wxBrush_SetStipple(self, *_args, **_kwargs) | |
451 | return val | |
452 | def SetStyle(self, *_args, **_kwargs): | |
453 | val = gdic.wxBrush_SetStyle(self, *_args, **_kwargs) | |
454 | return val | |
455 | def __repr__(self): | |
456 | return "<%s.%s instance; proxy of C++ wxBrush instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
457 | def __nonzero__(self): return self.Ok() | |
458 | class wxBrush(wxBrushPtr): | |
459 | def __init__(self,*_args,**_kwargs): | |
460 | self.this = gdic.new_wxBrush(*_args,**_kwargs) | |
461 | self.thisown = 1 | |
462 | ||
463 | ||
464 | ||
465 | ||
466 | class wxBrushListPtr(wxObjectPtr): | |
467 | def __init__(self,this): | |
468 | self.this = this | |
469 | self.thisown = 0 | |
470 | def AddBrush(self, *_args, **_kwargs): | |
471 | val = gdic.wxBrushList_AddBrush(self, *_args, **_kwargs) | |
472 | return val | |
473 | def FindOrCreateBrush(self, *_args, **_kwargs): | |
474 | val = gdic.wxBrushList_FindOrCreateBrush(self, *_args, **_kwargs) | |
475 | if val: val = wxBrushPtr(val) | |
476 | return val | |
477 | def RemoveBrush(self, *_args, **_kwargs): | |
478 | val = gdic.wxBrushList_RemoveBrush(self, *_args, **_kwargs) | |
479 | return val | |
480 | def GetCount(self, *_args, **_kwargs): | |
481 | val = gdic.wxBrushList_GetCount(self, *_args, **_kwargs) | |
482 | return val | |
483 | def __repr__(self): | |
484 | return "<%s.%s instance; proxy of C++ wxBrushList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
485 | class wxBrushList(wxBrushListPtr): | |
486 | def __init__(self,this): | |
487 | self.this = this | |
488 | ||
489 | ||
490 | ||
491 | ||
492 | class wxDCPtr(wxObjectPtr): | |
493 | def __init__(self,this): | |
494 | self.this = this | |
495 | self.thisown = 0 | |
496 | def __del__(self, delfunc=gdic.delete_wxDC): | |
497 | if self.thisown == 1: | |
498 | try: | |
499 | delfunc(self) | |
500 | except: | |
501 | pass | |
502 | def BeginDrawing(self, *_args, **_kwargs): | |
503 | val = gdic.wxDC_BeginDrawing(self, *_args, **_kwargs) | |
504 | return val | |
505 | def Blit(self, *_args, **_kwargs): | |
506 | val = gdic.wxDC_Blit(self, *_args, **_kwargs) | |
507 | return val | |
508 | def Clear(self, *_args, **_kwargs): | |
509 | val = gdic.wxDC_Clear(self, *_args, **_kwargs) | |
510 | return val | |
511 | def CrossHair(self, *_args, **_kwargs): | |
512 | val = gdic.wxDC_CrossHair(self, *_args, **_kwargs) | |
513 | return val | |
514 | def DestroyClippingRegion(self, *_args, **_kwargs): | |
515 | val = gdic.wxDC_DestroyClippingRegion(self, *_args, **_kwargs) | |
516 | return val | |
517 | def DeviceToLogicalX(self, *_args, **_kwargs): | |
518 | val = gdic.wxDC_DeviceToLogicalX(self, *_args, **_kwargs) | |
519 | return val | |
520 | def DeviceToLogicalXRel(self, *_args, **_kwargs): | |
521 | val = gdic.wxDC_DeviceToLogicalXRel(self, *_args, **_kwargs) | |
522 | return val | |
523 | def DeviceToLogicalY(self, *_args, **_kwargs): | |
524 | val = gdic.wxDC_DeviceToLogicalY(self, *_args, **_kwargs) | |
525 | return val | |
526 | def DeviceToLogicalYRel(self, *_args, **_kwargs): | |
527 | val = gdic.wxDC_DeviceToLogicalYRel(self, *_args, **_kwargs) | |
528 | return val | |
529 | def DrawArc(self, *_args, **_kwargs): | |
530 | val = gdic.wxDC_DrawArc(self, *_args, **_kwargs) | |
531 | return val | |
532 | def DrawCircle(self, *_args, **_kwargs): | |
533 | val = gdic.wxDC_DrawCircle(self, *_args, **_kwargs) | |
534 | return val | |
535 | def DrawEllipse(self, *_args, **_kwargs): | |
536 | val = gdic.wxDC_DrawEllipse(self, *_args, **_kwargs) | |
537 | return val | |
538 | def DrawEllipticArc(self, *_args, **_kwargs): | |
539 | val = gdic.wxDC_DrawEllipticArc(self, *_args, **_kwargs) | |
540 | return val | |
541 | def DrawIcon(self, *_args, **_kwargs): | |
542 | val = gdic.wxDC_DrawIcon(self, *_args, **_kwargs) | |
543 | return val | |
544 | def DrawLabel(self, *_args, **_kwargs): | |
545 | val = gdic.wxDC_DrawLabel(self, *_args, **_kwargs) | |
546 | return val | |
547 | def DrawImageLabel(self, *_args, **_kwargs): | |
548 | val = gdic.wxDC_DrawImageLabel(self, *_args, **_kwargs) | |
549 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
550 | return val | |
551 | def DrawLine(self, *_args, **_kwargs): | |
552 | val = gdic.wxDC_DrawLine(self, *_args, **_kwargs) | |
553 | return val | |
554 | def DrawLines(self, *_args, **_kwargs): | |
555 | val = gdic.wxDC_DrawLines(self, *_args, **_kwargs) | |
556 | return val | |
557 | def DrawPolygon(self, *_args, **_kwargs): | |
558 | val = gdic.wxDC_DrawPolygon(self, *_args, **_kwargs) | |
559 | return val | |
560 | def DrawPoint(self, *_args, **_kwargs): | |
561 | val = gdic.wxDC_DrawPoint(self, *_args, **_kwargs) | |
562 | return val | |
563 | def DrawRectangle(self, *_args, **_kwargs): | |
564 | val = gdic.wxDC_DrawRectangle(self, *_args, **_kwargs) | |
565 | return val | |
566 | def DrawRectangleRect(self, *_args, **_kwargs): | |
567 | val = gdic.wxDC_DrawRectangleRect(self, *_args, **_kwargs) | |
568 | return val | |
569 | def DrawRotatedText(self, *_args, **_kwargs): | |
570 | val = gdic.wxDC_DrawRotatedText(self, *_args, **_kwargs) | |
571 | return val | |
572 | def DrawRoundedRectangle(self, *_args, **_kwargs): | |
573 | val = gdic.wxDC_DrawRoundedRectangle(self, *_args, **_kwargs) | |
574 | return val | |
575 | def DrawSpline(self, *_args, **_kwargs): | |
576 | val = gdic.wxDC_DrawSpline(self, *_args, **_kwargs) | |
577 | return val | |
578 | def DrawText(self, *_args, **_kwargs): | |
579 | val = gdic.wxDC_DrawText(self, *_args, **_kwargs) | |
580 | return val | |
581 | def EndDoc(self, *_args, **_kwargs): | |
582 | val = gdic.wxDC_EndDoc(self, *_args, **_kwargs) | |
583 | return val | |
584 | def EndDrawing(self, *_args, **_kwargs): | |
585 | val = gdic.wxDC_EndDrawing(self, *_args, **_kwargs) | |
586 | return val | |
587 | def EndPage(self, *_args, **_kwargs): | |
588 | val = gdic.wxDC_EndPage(self, *_args, **_kwargs) | |
589 | return val | |
590 | def FloodFill(self, *_args, **_kwargs): | |
591 | val = gdic.wxDC_FloodFill(self, *_args, **_kwargs) | |
592 | return val | |
593 | def GetBackground(self, *_args, **_kwargs): | |
594 | val = gdic.wxDC_GetBackground(self, *_args, **_kwargs) | |
595 | if val: val = wxBrushPtr(val) ; val.thisown = 1 | |
596 | return val | |
597 | def GetBrush(self, *_args, **_kwargs): | |
598 | val = gdic.wxDC_GetBrush(self, *_args, **_kwargs) | |
599 | if val: val = wxBrushPtr(val) ; val.thisown = 1 | |
600 | return val | |
601 | def GetCharHeight(self, *_args, **_kwargs): | |
602 | val = gdic.wxDC_GetCharHeight(self, *_args, **_kwargs) | |
603 | return val | |
604 | def GetCharWidth(self, *_args, **_kwargs): | |
605 | val = gdic.wxDC_GetCharWidth(self, *_args, **_kwargs) | |
606 | return val | |
607 | def GetClippingBox(self, *_args, **_kwargs): | |
608 | val = gdic.wxDC_GetClippingBox(self, *_args, **_kwargs) | |
609 | return val | |
610 | def GetFont(self, *_args, **_kwargs): | |
611 | val = gdic.wxDC_GetFont(self, *_args, **_kwargs) | |
612 | if val: val = wxFontPtr(val) ; val.thisown = 1 | |
613 | return val | |
614 | def GetLogicalFunction(self, *_args, **_kwargs): | |
615 | val = gdic.wxDC_GetLogicalFunction(self, *_args, **_kwargs) | |
616 | return val | |
617 | def GetLogicalScale(self, *_args, **_kwargs): | |
618 | val = gdic.wxDC_GetLogicalScale(self, *_args, **_kwargs) | |
619 | return val | |
620 | def GetMapMode(self, *_args, **_kwargs): | |
621 | val = gdic.wxDC_GetMapMode(self, *_args, **_kwargs) | |
622 | return val | |
623 | def GetOptimization(self, *_args, **_kwargs): | |
624 | val = gdic.wxDC_GetOptimization(self, *_args, **_kwargs) | |
625 | return val | |
626 | def GetPen(self, *_args, **_kwargs): | |
627 | val = gdic.wxDC_GetPen(self, *_args, **_kwargs) | |
628 | if val: val = wxPenPtr(val) ; val.thisown = 1 | |
629 | return val | |
630 | def GetPixel(self, *_args, **_kwargs): | |
631 | val = gdic.wxDC_GetPixel(self, *_args, **_kwargs) | |
632 | if val: val = wxColourPtr(val) ; val.thisown = 1 | |
633 | return val | |
634 | def GetSizeTuple(self, *_args, **_kwargs): | |
635 | val = gdic.wxDC_GetSizeTuple(self, *_args, **_kwargs) | |
636 | return val | |
637 | def GetSize(self, *_args, **_kwargs): | |
638 | val = gdic.wxDC_GetSize(self, *_args, **_kwargs) | |
639 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
640 | return val | |
641 | def GetSizeMM(self, *_args, **_kwargs): | |
642 | val = gdic.wxDC_GetSizeMM(self, *_args, **_kwargs) | |
643 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
644 | return val | |
645 | def GetTextBackground(self, *_args, **_kwargs): | |
646 | val = gdic.wxDC_GetTextBackground(self, *_args, **_kwargs) | |
647 | if val: val = wxColourPtr(val) ; val.thisown = 1 | |
648 | return val | |
649 | def GetTextExtent(self, *_args, **_kwargs): | |
650 | val = gdic.wxDC_GetTextExtent(self, *_args, **_kwargs) | |
651 | return val | |
652 | def GetFullTextExtent(self, *_args, **_kwargs): | |
653 | val = gdic.wxDC_GetFullTextExtent(self, *_args, **_kwargs) | |
654 | return val | |
655 | def GetMultiLineTextExtent(self, *_args, **_kwargs): | |
656 | val = gdic.wxDC_GetMultiLineTextExtent(self, *_args, **_kwargs) | |
657 | return val | |
658 | def GetTextForeground(self, *_args, **_kwargs): | |
659 | val = gdic.wxDC_GetTextForeground(self, *_args, **_kwargs) | |
660 | if val: val = wxColourPtr(val) ; val.thisown = 1 | |
661 | return val | |
662 | def GetUserScale(self, *_args, **_kwargs): | |
663 | val = gdic.wxDC_GetUserScale(self, *_args, **_kwargs) | |
664 | return val | |
665 | def LogicalToDeviceX(self, *_args, **_kwargs): | |
666 | val = gdic.wxDC_LogicalToDeviceX(self, *_args, **_kwargs) | |
667 | return val | |
668 | def LogicalToDeviceXRel(self, *_args, **_kwargs): | |
669 | val = gdic.wxDC_LogicalToDeviceXRel(self, *_args, **_kwargs) | |
670 | return val | |
671 | def LogicalToDeviceY(self, *_args, **_kwargs): | |
672 | val = gdic.wxDC_LogicalToDeviceY(self, *_args, **_kwargs) | |
673 | return val | |
674 | def LogicalToDeviceYRel(self, *_args, **_kwargs): | |
675 | val = gdic.wxDC_LogicalToDeviceYRel(self, *_args, **_kwargs) | |
676 | return val | |
677 | def MaxX(self, *_args, **_kwargs): | |
678 | val = gdic.wxDC_MaxX(self, *_args, **_kwargs) | |
679 | return val | |
680 | def MaxY(self, *_args, **_kwargs): | |
681 | val = gdic.wxDC_MaxY(self, *_args, **_kwargs) | |
682 | return val | |
683 | def MinX(self, *_args, **_kwargs): | |
684 | val = gdic.wxDC_MinX(self, *_args, **_kwargs) | |
685 | return val | |
686 | def MinY(self, *_args, **_kwargs): | |
687 | val = gdic.wxDC_MinY(self, *_args, **_kwargs) | |
688 | return val | |
689 | def Ok(self, *_args, **_kwargs): | |
690 | val = gdic.wxDC_Ok(self, *_args, **_kwargs) | |
691 | return val | |
692 | def SetDeviceOrigin(self, *_args, **_kwargs): | |
693 | val = gdic.wxDC_SetDeviceOrigin(self, *_args, **_kwargs) | |
694 | return val | |
695 | def SetBackground(self, *_args, **_kwargs): | |
696 | val = gdic.wxDC_SetBackground(self, *_args, **_kwargs) | |
697 | return val | |
698 | def SetBackgroundMode(self, *_args, **_kwargs): | |
699 | val = gdic.wxDC_SetBackgroundMode(self, *_args, **_kwargs) | |
700 | return val | |
701 | def SetClippingRegion(self, *_args, **_kwargs): | |
702 | val = gdic.wxDC_SetClippingRegion(self, *_args, **_kwargs) | |
703 | return val | |
704 | def SetClippingRegionAsRegion(self, *_args, **_kwargs): | |
705 | val = gdic.wxDC_SetClippingRegionAsRegion(self, *_args, **_kwargs) | |
706 | return val | |
707 | def SetClippingRect(self, *_args, **_kwargs): | |
708 | val = gdic.wxDC_SetClippingRect(self, *_args, **_kwargs) | |
709 | return val | |
710 | def SetPalette(self, *_args, **_kwargs): | |
711 | val = gdic.wxDC_SetPalette(self, *_args, **_kwargs) | |
712 | return val | |
713 | def SetBrush(self, *_args, **_kwargs): | |
714 | val = gdic.wxDC_SetBrush(self, *_args, **_kwargs) | |
715 | return val | |
716 | def SetFont(self, *_args, **_kwargs): | |
717 | val = gdic.wxDC_SetFont(self, *_args, **_kwargs) | |
718 | return val | |
719 | def SetLogicalFunction(self, *_args, **_kwargs): | |
720 | val = gdic.wxDC_SetLogicalFunction(self, *_args, **_kwargs) | |
721 | return val | |
722 | def SetLogicalScale(self, *_args, **_kwargs): | |
723 | val = gdic.wxDC_SetLogicalScale(self, *_args, **_kwargs) | |
724 | return val | |
725 | def SetMapMode(self, *_args, **_kwargs): | |
726 | val = gdic.wxDC_SetMapMode(self, *_args, **_kwargs) | |
727 | return val | |
728 | def SetOptimization(self, *_args, **_kwargs): | |
729 | val = gdic.wxDC_SetOptimization(self, *_args, **_kwargs) | |
730 | return val | |
731 | def SetPen(self, *_args, **_kwargs): | |
732 | val = gdic.wxDC_SetPen(self, *_args, **_kwargs) | |
733 | return val | |
734 | def SetTextBackground(self, *_args, **_kwargs): | |
735 | val = gdic.wxDC_SetTextBackground(self, *_args, **_kwargs) | |
736 | return val | |
737 | def SetTextForeground(self, *_args, **_kwargs): | |
738 | val = gdic.wxDC_SetTextForeground(self, *_args, **_kwargs) | |
739 | return val | |
740 | def SetUserScale(self, *_args, **_kwargs): | |
741 | val = gdic.wxDC_SetUserScale(self, *_args, **_kwargs) | |
742 | return val | |
743 | def StartDoc(self, *_args, **_kwargs): | |
744 | val = gdic.wxDC_StartDoc(self, *_args, **_kwargs) | |
745 | return val | |
746 | def StartPage(self, *_args, **_kwargs): | |
747 | val = gdic.wxDC_StartPage(self, *_args, **_kwargs) | |
748 | return val | |
749 | def DrawBitmap(self, *_args, **_kwargs): | |
750 | val = gdic.wxDC_DrawBitmap(self, *_args, **_kwargs) | |
751 | return val | |
752 | def CanDrawBitmap(self, *_args, **_kwargs): | |
753 | val = gdic.wxDC_CanDrawBitmap(self, *_args, **_kwargs) | |
754 | return val | |
755 | def CanGetTextExtent(self, *_args, **_kwargs): | |
756 | val = gdic.wxDC_CanGetTextExtent(self, *_args, **_kwargs) | |
757 | return val | |
758 | def GetDepth(self, *_args, **_kwargs): | |
759 | val = gdic.wxDC_GetDepth(self, *_args, **_kwargs) | |
760 | return val | |
761 | def GetPPI(self, *_args, **_kwargs): | |
762 | val = gdic.wxDC_GetPPI(self, *_args, **_kwargs) | |
763 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
764 | return val | |
765 | def GetLogicalOrigin(self, *_args, **_kwargs): | |
766 | val = gdic.wxDC_GetLogicalOrigin(self, *_args, **_kwargs) | |
767 | return val | |
768 | def SetLogicalOrigin(self, *_args, **_kwargs): | |
769 | val = gdic.wxDC_SetLogicalOrigin(self, *_args, **_kwargs) | |
770 | return val | |
771 | def GetDeviceOrigin(self, *_args, **_kwargs): | |
772 | val = gdic.wxDC_GetDeviceOrigin(self, *_args, **_kwargs) | |
773 | return val | |
774 | def SetAxisOrientation(self, *_args, **_kwargs): | |
775 | val = gdic.wxDC_SetAxisOrientation(self, *_args, **_kwargs) | |
776 | return val | |
777 | def CalcBoundingBox(self, *_args, **_kwargs): | |
778 | val = gdic.wxDC_CalcBoundingBox(self, *_args, **_kwargs) | |
779 | return val | |
780 | def ResetBoundingBox(self, *_args, **_kwargs): | |
781 | val = gdic.wxDC_ResetBoundingBox(self, *_args, **_kwargs) | |
782 | return val | |
783 | def GetBoundingBox(self, *_args, **_kwargs): | |
784 | val = gdic.wxDC_GetBoundingBox(self, *_args, **_kwargs) | |
785 | return val | |
786 | def _DrawPointList(self, *_args, **_kwargs): | |
787 | val = gdic.wxDC__DrawPointList(self, *_args, **_kwargs) | |
788 | return val | |
789 | def _DrawLineList(self, *_args, **_kwargs): | |
790 | val = gdic.wxDC__DrawLineList(self, *_args, **_kwargs) | |
791 | return val | |
792 | def _DrawRectangleList(self, *_args, **_kwargs): | |
793 | val = gdic.wxDC__DrawRectangleList(self, *_args, **_kwargs) | |
794 | return val | |
795 | def _DrawEllipseList(self, *_args, **_kwargs): | |
796 | val = gdic.wxDC__DrawEllipseList(self, *_args, **_kwargs) | |
797 | return val | |
798 | def _DrawPolygonList(self, *_args, **_kwargs): | |
799 | val = gdic.wxDC__DrawPolygonList(self, *_args, **_kwargs) | |
800 | return val | |
801 | def _DrawTextList(self, *_args, **_kwargs): | |
802 | val = gdic.wxDC__DrawTextList(self, *_args, **_kwargs) | |
803 | return val | |
804 | def __repr__(self): | |
805 | return "<%s.%s instance; proxy of C++ wxDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
806 | def __nonzero__(self): return self.Ok() | |
807 | ||
808 | def DrawPointList(self, points, pens=None): | |
809 | if pens is None: | |
810 | pens = [] | |
811 | elif isinstance(pens, wxPenPtr): | |
812 | pens = [pens] | |
813 | elif len(pens) != len(points): | |
814 | raise ValueError('points and pens must have same length') | |
815 | return self._DrawPointList(points, pens, []) | |
816 | ||
817 | ||
818 | def DrawLineList(self, lines, pens=None): | |
819 | if pens is None: | |
820 | pens = [] | |
821 | elif isinstance(pens, wxPenPtr): | |
822 | pens = [pens] | |
823 | elif len(pens) != len(lines): | |
824 | raise ValueError('lines and pens must have same length') | |
825 | return self._DrawLineList(lines, pens, []) | |
826 | ||
827 | ||
828 | def DrawRectangleList(self, rectangles, pens=None, brushes=None): | |
829 | if pens is None: | |
830 | pens = [] | |
831 | elif isinstance(pens, wxPenPtr): | |
832 | pens = [pens] | |
833 | elif len(pens) != len(rectangles): | |
834 | raise ValueError('rectangles and pens must have same length') | |
835 | if brushes is None: | |
836 | brushes = [] | |
837 | elif isinstance(brushes, wxBrushPtr): | |
838 | brushes = [brushes] | |
839 | elif len(brushes) != len(rectangles): | |
840 | raise ValueError('rectangles and brushes must have same length') | |
841 | return self._DrawRectangleList(rectangles, pens, brushes) | |
842 | ||
843 | ||
844 | def DrawEllipseList(self, ellipses, pens=None, brushes=None): | |
845 | if pens is None: | |
846 | pens = [] | |
847 | elif isinstance(pens, wxPenPtr): | |
848 | pens = [pens] | |
849 | elif len(pens) != len(ellipses): | |
850 | raise ValueError('ellipses and pens must have same length') | |
851 | if brushes is None: | |
852 | brushes = [] | |
853 | elif isinstance(brushes, wxBrushPtr): | |
854 | brushes = [brushes] | |
855 | elif len(brushes) != len(ellipses): | |
856 | raise ValueError('ellipses and brushes must have same length') | |
857 | return self._DrawEllipseList(ellipses, pens, brushes) | |
858 | ||
859 | ||
860 | def DrawPolygonList(self, polygons, pens=None, brushes=None): | |
861 | ## Note: This does not currently support fill style or offset | |
862 | ## you can always use the non-List version if need be. | |
863 | ## I really would like to support fill-style, however, | |
864 | ## but wxODDEVEN_RULE does not appear to be defined at the Python level | |
865 | ## [It's in wx.py... --Robin] | |
866 | if pens is None: | |
867 | pens = [] | |
868 | elif isinstance(pens, wxPenPtr): | |
869 | pens = [pens] | |
870 | elif len(pens) != len(polygons): | |
871 | raise ValueError('polygons and pens must have same length') | |
872 | if brushes is None: | |
873 | brushes = [] | |
874 | elif isinstance(brushes, wxBrushPtr): | |
875 | brushes = [brushes] | |
876 | elif len(brushes) != len(polygons): | |
877 | raise ValueError('polygons and brushes must have same length') | |
878 | return self._DrawPolygonList(polygons, pens, brushes) | |
879 | ||
880 | ||
881 | def DrawTextList(self, textList, coords, foregrounds = None, backgrounds = None, fonts = None): | |
882 | ## NOTE: this does not currently support changing the font | |
883 | ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode) | |
884 | ## If you want backgounds to do anything. | |
885 | if type(textList) == type(''): | |
886 | textList = [textList] | |
887 | elif len(textList) != len(coords): | |
888 | raise ValueError('textlist and coords must have same length') | |
889 | if foregrounds is None: | |
890 | foregrounds = [] | |
891 | elif isinstance(foregrounds, wxColourPtr): | |
892 | foregrounds = [foregrounds] | |
893 | elif len(foregrounds) != len(coords): | |
894 | raise ValueError('foregrounds and coords must have same length') | |
895 | if backgrounds is None: | |
896 | backgrounds = [] | |
897 | elif isinstance(backgrounds, wxColourPtr): | |
898 | backgrounds = [backgrounds] | |
899 | elif len(backgrounds) != len(coords): | |
900 | raise ValueError('backgrounds and coords must have same length') | |
901 | return self._DrawTextList(textList, coords, foregrounds, backgrounds) | |
902 | ||
903 | class wxDC(wxDCPtr): | |
904 | def __init__(self,this): | |
905 | self.this = this | |
906 | ||
907 | ||
908 | ||
909 | ||
910 | class wxMemoryDCPtr(wxDCPtr): | |
911 | def __init__(self,this): | |
912 | self.this = this | |
913 | self.thisown = 0 | |
914 | def SelectObject(self, *_args, **_kwargs): | |
915 | val = gdic.wxMemoryDC_SelectObject(self, *_args, **_kwargs) | |
916 | return val | |
917 | def __repr__(self): | |
918 | return "<%s.%s instance; proxy of C++ wxMemoryDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
919 | class wxMemoryDC(wxMemoryDCPtr): | |
920 | def __init__(self,*_args,**_kwargs): | |
921 | self.this = gdic.new_wxMemoryDC(*_args,**_kwargs) | |
922 | self.thisown = 1 | |
923 | ||
924 | ||
925 | ||
926 | ||
927 | class wxBufferedDCPtr(wxMemoryDCPtr): | |
928 | def __init__(self,this): | |
929 | self.this = this | |
930 | self.thisown = 0 | |
931 | def UnMask(self, *_args, **_kwargs): | |
932 | val = gdic.wxBufferedDC_UnMask(self, *_args, **_kwargs) | |
933 | return val | |
934 | def __repr__(self): | |
935 | return "<%s.%s instance; proxy of C++ wxBufferedDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
936 | class wxBufferedDC(wxBufferedDCPtr): | |
937 | def __init__(self,*_args,**_kwargs): | |
938 | self.this = gdic.new_wxBufferedDC(*_args,**_kwargs) | |
939 | self.thisown = 1 | |
940 | self._dc = _args[0] # save a ref so the other dc won't be deleted before self | |
941 | ||
942 | ||
943 | ||
944 | def wxBufferedDCInternalBuffer(*_args,**_kwargs): | |
945 | val = wxBufferedDCPtr(gdic.new_wxBufferedDCInternalBuffer(*_args,**_kwargs)) | |
946 | val.thisown = 1 | |
947 | val._dc = _args[0] # save a ref so the other dc won't be deleted before self | |
948 | return val | |
949 | ||
950 | ||
951 | class wxBufferedPaintDCPtr(wxBufferedDCPtr): | |
952 | def __init__(self,this): | |
953 | self.this = this | |
954 | self.thisown = 0 | |
955 | def __repr__(self): | |
956 | return "<%s.%s instance; proxy of C++ wxBufferedPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
957 | class wxBufferedPaintDC(wxBufferedPaintDCPtr): | |
958 | def __init__(self,*_args,**_kwargs): | |
959 | self.this = gdic.new_wxBufferedPaintDC(*_args,**_kwargs) | |
960 | self.thisown = 1 | |
961 | ||
962 | ||
963 | ||
964 | ||
965 | class wxScreenDCPtr(wxDCPtr): | |
966 | def __init__(self,this): | |
967 | self.this = this | |
968 | self.thisown = 0 | |
969 | def StartDrawingOnTopWin(self, *_args, **_kwargs): | |
970 | val = gdic.wxScreenDC_StartDrawingOnTopWin(self, *_args, **_kwargs) | |
971 | return val | |
972 | def StartDrawingOnTop(self, *_args, **_kwargs): | |
973 | val = gdic.wxScreenDC_StartDrawingOnTop(self, *_args, **_kwargs) | |
974 | return val | |
975 | def EndDrawingOnTop(self, *_args, **_kwargs): | |
976 | val = gdic.wxScreenDC_EndDrawingOnTop(self, *_args, **_kwargs) | |
977 | return val | |
978 | def __repr__(self): | |
979 | return "<%s.%s instance; proxy of C++ wxScreenDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
980 | class wxScreenDC(wxScreenDCPtr): | |
981 | def __init__(self,*_args,**_kwargs): | |
982 | self.this = gdic.new_wxScreenDC(*_args,**_kwargs) | |
983 | self.thisown = 1 | |
984 | ||
985 | ||
986 | ||
987 | ||
988 | class wxClientDCPtr(wxDCPtr): | |
989 | def __init__(self,this): | |
990 | self.this = this | |
991 | self.thisown = 0 | |
992 | def __repr__(self): | |
993 | return "<%s.%s instance; proxy of C++ wxClientDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
994 | class wxClientDC(wxClientDCPtr): | |
995 | def __init__(self,*_args,**_kwargs): | |
996 | self.this = gdic.new_wxClientDC(*_args,**_kwargs) | |
997 | self.thisown = 1 | |
998 | ||
999 | ||
1000 | ||
1001 | ||
1002 | class wxPaintDCPtr(wxDCPtr): | |
1003 | def __init__(self,this): | |
1004 | self.this = this | |
1005 | self.thisown = 0 | |
1006 | def __repr__(self): | |
1007 | return "<%s.%s instance; proxy of C++ wxPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
1008 | class wxPaintDC(wxPaintDCPtr): | |
1009 | def __init__(self,*_args,**_kwargs): | |
1010 | self.this = gdic.new_wxPaintDC(*_args,**_kwargs) | |
1011 | self.thisown = 1 | |
1012 | ||
1013 | ||
1014 | ||
1015 | ||
1016 | class wxWindowDCPtr(wxDCPtr): | |
1017 | def __init__(self,this): | |
1018 | self.this = this | |
1019 | self.thisown = 0 | |
1020 | def __repr__(self): | |
1021 | return "<%s.%s instance; proxy of C++ wxWindowDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
1022 | class wxWindowDC(wxWindowDCPtr): | |
1023 | def __init__(self,*_args,**_kwargs): | |
1024 | self.this = gdic.new_wxWindowDC(*_args,**_kwargs) | |
1025 | self.thisown = 1 | |
1026 | ||
1027 | ||
1028 | ||
1029 | ||
1030 | class wxPalettePtr(wxGDIObjectPtr): | |
1031 | def __init__(self,this): | |
1032 | self.this = this | |
1033 | self.thisown = 0 | |
1034 | def __del__(self, delfunc=gdic.delete_wxPalette): | |
1035 | if self.thisown == 1: | |
1036 | try: | |
1037 | delfunc(self) | |
1038 | except: | |
1039 | pass | |
1040 | def GetPixel(self, *_args, **_kwargs): | |
1041 | val = gdic.wxPalette_GetPixel(self, *_args, **_kwargs) | |
1042 | return val | |
1043 | def GetRGB(self, *_args, **_kwargs): | |
1044 | val = gdic.wxPalette_GetRGB(self, *_args, **_kwargs) | |
1045 | return val | |
1046 | def Ok(self, *_args, **_kwargs): | |
1047 | val = gdic.wxPalette_Ok(self, *_args, **_kwargs) | |
1048 | return val | |
1049 | def __repr__(self): | |
1050 | return "<%s.%s instance; proxy of C++ wxPalette instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
1051 | def __nonzero__(self): return self.Ok() | |
1052 | class wxPalette(wxPalettePtr): | |
1053 | def __init__(self,*_args,**_kwargs): | |
1054 | self.this = gdic.new_wxPalette(*_args,**_kwargs) | |
1055 | self.thisown = 1 | |
1056 | ||
1057 | ||
1058 | ||
1059 | ||
1060 | class wxImageListPtr(wxObjectPtr): | |
1061 | def __init__(self,this): | |
1062 | self.this = this | |
1063 | self.thisown = 0 | |
1064 | def __del__(self, delfunc=gdic.delete_wxImageList): | |
1065 | if self.thisown == 1: | |
1066 | try: | |
1067 | delfunc(self) | |
1068 | except: | |
1069 | pass | |
1070 | def Add(self, *_args, **_kwargs): | |
1071 | val = gdic.wxImageList_Add(self, *_args, **_kwargs) | |
1072 | return val | |
1073 | def AddWithColourMask(self, *_args, **_kwargs): | |
1074 | val = gdic.wxImageList_AddWithColourMask(self, *_args, **_kwargs) | |
1075 | return val | |
1076 | def AddIcon(self, *_args, **_kwargs): | |
1077 | val = gdic.wxImageList_AddIcon(self, *_args, **_kwargs) | |
1078 | return val | |
1079 | def Replace(self, *_args, **_kwargs): | |
1080 | val = gdic.wxImageList_Replace(self, *_args, **_kwargs) | |
1081 | return val | |
1082 | def Draw(self, *_args, **_kwargs): | |
1083 | val = gdic.wxImageList_Draw(self, *_args, **_kwargs) | |
1084 | return val | |
1085 | def GetImageCount(self, *_args, **_kwargs): | |
1086 | val = gdic.wxImageList_GetImageCount(self, *_args, **_kwargs) | |
1087 | return val | |
1088 | def Remove(self, *_args, **_kwargs): | |
1089 | val = gdic.wxImageList_Remove(self, *_args, **_kwargs) | |
1090 | return val | |
1091 | def RemoveAll(self, *_args, **_kwargs): | |
1092 | val = gdic.wxImageList_RemoveAll(self, *_args, **_kwargs) | |
1093 | return val | |
1094 | def GetSize(self, *_args, **_kwargs): | |
1095 | val = gdic.wxImageList_GetSize(self, *_args, **_kwargs) | |
1096 | return val | |
1097 | def __repr__(self): | |
1098 | return "<%s.%s instance; proxy of C++ wxImageList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
1099 | class wxImageList(wxImageListPtr): | |
1100 | def __init__(self,*_args,**_kwargs): | |
1101 | self.this = gdic.new_wxImageList(*_args,**_kwargs) | |
1102 | self.thisown = 1 | |
1103 | ||
1104 | ||
1105 | ||
1106 | ||
1107 | class wxRegionPtr(wxGDIObjectPtr): | |
1108 | def __init__(self,this): | |
1109 | self.this = this | |
1110 | self.thisown = 0 | |
1111 | def __del__(self, delfunc=gdic.delete_wxRegion): | |
1112 | if self.thisown == 1: | |
1113 | try: | |
1114 | delfunc(self) | |
1115 | except: | |
1116 | pass | |
1117 | def Clear(self, *_args, **_kwargs): | |
1118 | val = gdic.wxRegion_Clear(self, *_args, **_kwargs) | |
1119 | return val | |
1120 | def Offset(self, *_args, **_kwargs): | |
1121 | val = gdic.wxRegion_Offset(self, *_args, **_kwargs) | |
1122 | return val | |
1123 | def Contains(self, *_args, **_kwargs): | |
1124 | val = gdic.wxRegion_Contains(self, *_args, **_kwargs) | |
1125 | return val | |
1126 | def ContainsPoint(self, *_args, **_kwargs): | |
1127 | val = gdic.wxRegion_ContainsPoint(self, *_args, **_kwargs) | |
1128 | return val | |
1129 | def ContainsRect(self, *_args, **_kwargs): | |
1130 | val = gdic.wxRegion_ContainsRect(self, *_args, **_kwargs) | |
1131 | return val | |
1132 | def ContainsRectDim(self, *_args, **_kwargs): | |
1133 | val = gdic.wxRegion_ContainsRectDim(self, *_args, **_kwargs) | |
1134 | return val | |
1135 | def GetBox(self, *_args, **_kwargs): | |
1136 | val = gdic.wxRegion_GetBox(self, *_args, **_kwargs) | |
1137 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
1138 | return val | |
1139 | def Intersect(self, *_args, **_kwargs): | |
1140 | val = gdic.wxRegion_Intersect(self, *_args, **_kwargs) | |
1141 | return val | |
1142 | def IntersectRect(self, *_args, **_kwargs): | |
1143 | val = gdic.wxRegion_IntersectRect(self, *_args, **_kwargs) | |
1144 | return val | |
1145 | def IntersectRegion(self, *_args, **_kwargs): | |
1146 | val = gdic.wxRegion_IntersectRegion(self, *_args, **_kwargs) | |
1147 | return val | |
1148 | def IsEmpty(self, *_args, **_kwargs): | |
1149 | val = gdic.wxRegion_IsEmpty(self, *_args, **_kwargs) | |
1150 | return val | |
1151 | def Union(self, *_args, **_kwargs): | |
1152 | val = gdic.wxRegion_Union(self, *_args, **_kwargs) | |
1153 | return val | |
1154 | def UnionRect(self, *_args, **_kwargs): | |
1155 | val = gdic.wxRegion_UnionRect(self, *_args, **_kwargs) | |
1156 | return val | |
1157 | def UnionRegion(self, *_args, **_kwargs): | |
1158 | val = gdic.wxRegion_UnionRegion(self, *_args, **_kwargs) | |
1159 | return val | |
1160 | def Subtract(self, *_args, **_kwargs): | |
1161 | val = gdic.wxRegion_Subtract(self, *_args, **_kwargs) | |
1162 | return val | |
1163 | def SubtractRect(self, *_args, **_kwargs): | |
1164 | val = gdic.wxRegion_SubtractRect(self, *_args, **_kwargs) | |
1165 | return val | |
1166 | def SubtractRegion(self, *_args, **_kwargs): | |
1167 | val = gdic.wxRegion_SubtractRegion(self, *_args, **_kwargs) | |
1168 | return val | |
1169 | def Xor(self, *_args, **_kwargs): | |
1170 | val = gdic.wxRegion_Xor(self, *_args, **_kwargs) | |
1171 | return val | |
1172 | def XorRect(self, *_args, **_kwargs): | |
1173 | val = gdic.wxRegion_XorRect(self, *_args, **_kwargs) | |
1174 | return val | |
1175 | def XorRegion(self, *_args, **_kwargs): | |
1176 | val = gdic.wxRegion_XorRegion(self, *_args, **_kwargs) | |
1177 | return val | |
1178 | def ConvertToBitmap(self, *_args, **_kwargs): | |
1179 | val = gdic.wxRegion_ConvertToBitmap(self, *_args, **_kwargs) | |
1180 | if val: val = wxBitmapPtr(val) ; val.thisown = 1 | |
1181 | return val | |
1182 | def UnionBitmap(self, *_args, **_kwargs): | |
1183 | val = gdic.wxRegion_UnionBitmap(self, *_args, **_kwargs) | |
1184 | return val | |
1185 | def __repr__(self): | |
1186 | return "<%s.%s instance; proxy of C++ wxRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
1187 | class wxRegion(wxRegionPtr): | |
1188 | def __init__(self,*_args,**_kwargs): | |
1189 | self.this = gdic.new_wxRegion(*_args,**_kwargs) | |
1190 | self.thisown = 1 | |
1191 | ||
1192 | ||
1193 | ||
1194 | def wxRegionFromPoints(*_args,**_kwargs): | |
1195 | val = wxRegionPtr(gdic.new_wxRegionFromPoints(*_args,**_kwargs)) | |
1196 | val.thisown = 1 | |
1197 | return val | |
1198 | ||
1199 | def wxRegionFromBitmap(*_args,**_kwargs): | |
1200 | val = wxRegionPtr(gdic.new_wxRegionFromBitmap(*_args,**_kwargs)) | |
1201 | val.thisown = 1 | |
1202 | return val | |
1203 | ||
1204 | ||
1205 | class wxRegionIteratorPtr(wxObjectPtr): | |
1206 | def __init__(self,this): | |
1207 | self.this = this | |
1208 | self.thisown = 0 | |
1209 | def __del__(self, delfunc=gdic.delete_wxRegionIterator): | |
1210 | if self.thisown == 1: | |
1211 | try: | |
1212 | delfunc(self) | |
1213 | except: | |
1214 | pass | |
1215 | def GetX(self, *_args, **_kwargs): | |
1216 | val = gdic.wxRegionIterator_GetX(self, *_args, **_kwargs) | |
1217 | return val | |
1218 | def GetY(self, *_args, **_kwargs): | |
1219 | val = gdic.wxRegionIterator_GetY(self, *_args, **_kwargs) | |
1220 | return val | |
1221 | def GetW(self, *_args, **_kwargs): | |
1222 | val = gdic.wxRegionIterator_GetW(self, *_args, **_kwargs) | |
1223 | return val | |
1224 | def GetWidth(self, *_args, **_kwargs): | |
1225 | val = gdic.wxRegionIterator_GetWidth(self, *_args, **_kwargs) | |
1226 | return val | |
1227 | def GetH(self, *_args, **_kwargs): | |
1228 | val = gdic.wxRegionIterator_GetH(self, *_args, **_kwargs) | |
1229 | return val | |
1230 | def GetHeight(self, *_args, **_kwargs): | |
1231 | val = gdic.wxRegionIterator_GetHeight(self, *_args, **_kwargs) | |
1232 | return val | |
1233 | def GetRect(self, *_args, **_kwargs): | |
1234 | val = gdic.wxRegionIterator_GetRect(self, *_args, **_kwargs) | |
1235 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
1236 | return val | |
1237 | def HaveRects(self, *_args, **_kwargs): | |
1238 | val = gdic.wxRegionIterator_HaveRects(self, *_args, **_kwargs) | |
1239 | return val | |
1240 | def Reset(self, *_args, **_kwargs): | |
1241 | val = gdic.wxRegionIterator_Reset(self, *_args, **_kwargs) | |
1242 | return val | |
1243 | def Next(self, *_args, **_kwargs): | |
1244 | val = gdic.wxRegionIterator_Next(self, *_args, **_kwargs) | |
1245 | return val | |
1246 | def __repr__(self): | |
1247 | return "<%s.%s instance; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) | |
1248 | class wxRegionIterator(wxRegionIteratorPtr): | |
1249 | def __init__(self,*_args,**_kwargs): | |
1250 | self.this = gdic.new_wxRegionIterator(*_args,**_kwargs) | |
1251 | self.thisown = 1 | |
1252 | ||
1253 | ||
1254 | ||
1255 | ||
1256 | ||
1257 | ||
1258 | #-------------- FUNCTION WRAPPERS ------------------ | |
1259 | ||
1260 | def wxEmptyBitmap(*_args, **_kwargs): | |
1261 | val = gdic.wxEmptyBitmap(*_args,**_kwargs) | |
1262 | if val: val = wxBitmapPtr(val); val.thisown = 1 | |
1263 | return val | |
1264 | ||
1265 | def wxBitmapFromXPMData(*_args, **_kwargs): | |
1266 | val = gdic.wxBitmapFromXPMData(*_args,**_kwargs) | |
1267 | if val: val = wxBitmapPtr(val); val.thisown = 1 | |
1268 | return val | |
1269 | ||
1270 | def wxBitmapFromIcon(*_args, **_kwargs): | |
1271 | val = gdic.wxBitmapFromIcon(*_args,**_kwargs) | |
1272 | if val: val = wxBitmapPtr(val); val.thisown = 1 | |
1273 | return val | |
1274 | ||
1275 | def wxBitmapFromBits(*_args, **_kwargs): | |
1276 | val = gdic.wxBitmapFromBits(*_args,**_kwargs) | |
1277 | if val: val = wxBitmapPtr(val); val.thisown = 1 | |
1278 | return val | |
1279 | ||
1280 | def wxMaskColour(*_args, **_kwargs): | |
1281 | val = gdic.wxMaskColour(*_args,**_kwargs) | |
1282 | if val: val = wxMaskPtr(val); val.thisown = 1 | |
1283 | return val | |
1284 | ||
1285 | def wxEmptyIcon(*_args, **_kwargs): | |
1286 | val = gdic.wxEmptyIcon(*_args,**_kwargs) | |
1287 | if val: val = wxIconPtr(val); val.thisown = 1 | |
1288 | return val | |
1289 | ||
1290 | def wxIconFromXPMData(*_args, **_kwargs): | |
1291 | val = gdic.wxIconFromXPMData(*_args,**_kwargs) | |
1292 | if val: val = wxIconPtr(val); val.thisown = 1 | |
1293 | return val | |
1294 | ||
1295 | def wxIconFromBitmap(*_args, **_kwargs): | |
1296 | val = gdic.wxIconFromBitmap(*_args,**_kwargs) | |
1297 | if val: val = wxIconPtr(val); val.thisown = 1 | |
1298 | return val | |
1299 | ||
1300 | def wxStockCursor(*_args, **_kwargs): | |
1301 | val = gdic.wxStockCursor(*_args,**_kwargs) | |
1302 | if val: val = wxCursorPtr(val); val.thisown = 1 | |
1303 | return val | |
1304 | ||
1305 | def wxCursorFromImage(*_args, **_kwargs): | |
1306 | val = gdic.wxCursorFromImage(*_args,**_kwargs) | |
1307 | if val: val = wxCursorPtr(val); val.thisown = 1 | |
1308 | return val | |
1309 | ||
1310 | def wxCursorFromBits(*_args, **_kwargs): | |
1311 | val = gdic.wxCursorFromBits(*_args,**_kwargs) | |
1312 | if val: val = wxCursorPtr(val); val.thisown = 1 | |
1313 | return val | |
1314 | ||
1315 | def wxNamedColour(*_args, **_kwargs): | |
1316 | val = gdic.wxNamedColour(*_args,**_kwargs) | |
1317 | if val: val = wxColourPtr(val); val.thisown = 1 | |
1318 | return val | |
1319 | ||
1320 | def wxMemoryDCFromDC(*_args, **_kwargs): | |
1321 | val = gdic.wxMemoryDCFromDC(*_args,**_kwargs) | |
1322 | if val: val = wxMemoryDCPtr(val); val.thisown = 1 | |
1323 | return val | |
1324 | ||
1325 | ||
1326 | ||
1327 | #-------------- VARIABLE WRAPPERS ------------------ | |
1328 | ||
1329 | wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL | |
1330 | wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT | |
1331 | wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED | |
1332 | wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED | |
1333 | wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL | |
1334 | wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL | |
1335 | wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE | |
1336 | wxOutRegion = gdic.wxOutRegion | |
1337 | wxPartRegion = gdic.wxPartRegion | |
1338 | wxInRegion = gdic.wxInRegion | |
1339 | cvar = gdic.cvar | |
1340 | wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT) | |
1341 | wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT) | |
1342 | wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT) | |
1343 | wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT) | |
1344 | wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN) | |
1345 | wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN) | |
1346 | wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN) | |
1347 | wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN) | |
1348 | wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN) | |
1349 | wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN) | |
1350 | wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN) | |
1351 | wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN) | |
1352 | wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN) | |
1353 | wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN) | |
1354 | wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH) | |
1355 | wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH) | |
1356 | wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH) | |
1357 | wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH) | |
1358 | wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH) | |
1359 | wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH) | |
1360 | wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH) | |
1361 | wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH) | |
1362 | wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH) | |
1363 | wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH) | |
1364 | wxBLACK = wxColourPtr(gdic.cvar.wxBLACK) | |
1365 | wxWHITE = wxColourPtr(gdic.cvar.wxWHITE) | |
1366 | wxRED = wxColourPtr(gdic.cvar.wxRED) | |
1367 | wxBLUE = wxColourPtr(gdic.cvar.wxBLUE) | |
1368 | wxGREEN = wxColourPtr(gdic.cvar.wxGREEN) | |
1369 | wxCYAN = wxColourPtr(gdic.cvar.wxCYAN) | |
1370 | wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY) | |
1371 | wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR) | |
1372 | wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR) | |
1373 | wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR) | |
1374 | wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap) | |
1375 | wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon) | |
1376 | wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor) | |
1377 | wxNullPen = wxPenPtr(gdic.cvar.wxNullPen) | |
1378 | wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush) | |
1379 | wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette) | |
1380 | wxNullFont = wxFontPtr(gdic.cvar.wxNullFont) | |
1381 | wxNullColour = wxColourPtr(gdic.cvar.wxNullColour) | |
1382 | wxTheFontList = wxFontListPtr(gdic.cvar.wxTheFontList) | |
1383 | wxThePenList = wxPenListPtr(gdic.cvar.wxThePenList) | |
1384 | wxTheBrushList = wxBrushListPtr(gdic.cvar.wxTheBrushList) | |
1385 | wxTheColourDatabase = wxColourDatabasePtr(gdic.cvar.wxTheColourDatabase) |