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