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