1 # This file was created automatically by SWIG.
8 class wxGDIObjectPtr(wxObjectPtr
):
9 def __init__(self
,this
):
12 def __del__(self
, delfunc
=gdic
.delete_wxGDIObject
):
18 def GetVisible(self
, *_args
, **_kwargs
):
19 val
= gdic
.wxGDIObject_GetVisible(self
, *_args
, **_kwargs
)
21 def SetVisible(self
, *_args
, **_kwargs
):
22 val
= gdic
.wxGDIObject_SetVisible(self
, *_args
, **_kwargs
)
24 def IsNull(self
, *_args
, **_kwargs
):
25 val
= gdic
.wxGDIObject_IsNull(self
, *_args
, **_kwargs
)
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
)
37 class wxBitmapPtr(wxGDIObjectPtr
):
38 def __init__(self
,this
):
41 def __del__(self
, delfunc
=gdic
.delete_wxBitmap
):
47 def GetPalette(self
, *_args
, **_kwargs
):
48 val
= gdic
.wxBitmap_GetPalette(self
, *_args
, **_kwargs
)
49 if val
: val
= wxPalettePtr(val
)
51 def GetMask(self
, *_args
, **_kwargs
):
52 val
= gdic
.wxBitmap_GetMask(self
, *_args
, **_kwargs
)
53 if val
: val
= wxMaskPtr(val
)
55 def LoadFile(self
, *_args
, **_kwargs
):
56 val
= gdic
.wxBitmap_LoadFile(self
, *_args
, **_kwargs
)
58 def SaveFile(self
, *_args
, **_kwargs
):
59 val
= gdic
.wxBitmap_SaveFile(self
, *_args
, **_kwargs
)
61 def SetMask(self
, *_args
, **_kwargs
):
62 val
= gdic
.wxBitmap_SetMask(self
, *_args
, **_kwargs
)
64 def SetPalette(self
, *_args
, **_kwargs
):
65 val
= gdic
.wxBitmap_SetPalette(self
, *_args
, **_kwargs
)
67 def GetHandle(self
, *_args
, **_kwargs
):
68 val
= gdic
.wxBitmap_GetHandle(self
, *_args
, **_kwargs
)
70 def SetHandle(self
, *_args
, **_kwargs
):
71 val
= gdic
.wxBitmap_SetHandle(self
, *_args
, **_kwargs
)
73 def Ok(self
, *_args
, **_kwargs
):
74 val
= gdic
.wxBitmap_Ok(self
, *_args
, **_kwargs
)
76 def GetWidth(self
, *_args
, **_kwargs
):
77 val
= gdic
.wxBitmap_GetWidth(self
, *_args
, **_kwargs
)
79 def GetHeight(self
, *_args
, **_kwargs
):
80 val
= gdic
.wxBitmap_GetHeight(self
, *_args
, **_kwargs
)
82 def GetDepth(self
, *_args
, **_kwargs
):
83 val
= gdic
.wxBitmap_GetDepth(self
, *_args
, **_kwargs
)
85 def SetWidth(self
, *_args
, **_kwargs
):
86 val
= gdic
.wxBitmap_SetWidth(self
, *_args
, **_kwargs
)
88 def SetHeight(self
, *_args
, **_kwargs
):
89 val
= gdic
.wxBitmap_SetHeight(self
, *_args
, **_kwargs
)
91 def SetDepth(self
, *_args
, **_kwargs
):
92 val
= gdic
.wxBitmap_SetDepth(self
, *_args
, **_kwargs
)
94 def SetSize(self
, *_args
, **_kwargs
):
95 val
= gdic
.wxBitmap_SetSize(self
, *_args
, **_kwargs
)
97 def GetSubBitmap(self
, *_args
, **_kwargs
):
98 val
= gdic
.wxBitmap_GetSubBitmap(self
, *_args
, **_kwargs
)
99 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
101 def CopyFromIcon(self
, *_args
, **_kwargs
):
102 val
= gdic
.wxBitmap_CopyFromIcon(self
, *_args
, **_kwargs
)
104 def CopyFromCursor(self
, *_args
, **_kwargs
):
105 val
= gdic
.wxBitmap_CopyFromCursor(self
, *_args
, **_kwargs
)
107 def GetQuality(self
, *_args
, **_kwargs
):
108 val
= gdic
.wxBitmap_GetQuality(self
, *_args
, **_kwargs
)
110 def SetQuality(self
, *_args
, **_kwargs
):
111 val
= gdic
.wxBitmap_SetQuality(self
, *_args
, **_kwargs
)
114 return "<%s.%s instance; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
116 def SetMaskColour(self
, colour
):
117 mask
= wxMaskColour(self
, colour
)
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
)
129 class wxMaskPtr(wxObjectPtr
):
130 def __init__(self
,this
):
133 def Destroy(self
, *_args
, **_kwargs
):
134 val
= gdic
.wxMask_Destroy(self
, *_args
, **_kwargs
)
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
)
146 class wxIconPtr(wxGDIObjectPtr
):
147 def __init__(self
,this
):
150 def __del__(self
, delfunc
=gdic
.delete_wxIcon
):
151 if self
.thisown
== 1:
156 def LoadFile(self
, *_args
, **_kwargs
):
157 val
= gdic
.wxIcon_LoadFile(self
, *_args
, **_kwargs
)
159 def GetHandle(self
, *_args
, **_kwargs
):
160 val
= gdic
.wxIcon_GetHandle(self
, *_args
, **_kwargs
)
162 def SetHandle(self
, *_args
, **_kwargs
):
163 val
= gdic
.wxIcon_SetHandle(self
, *_args
, **_kwargs
)
165 def Ok(self
, *_args
, **_kwargs
):
166 val
= gdic
.wxIcon_Ok(self
, *_args
, **_kwargs
)
168 def GetWidth(self
, *_args
, **_kwargs
):
169 val
= gdic
.wxIcon_GetWidth(self
, *_args
, **_kwargs
)
171 def GetHeight(self
, *_args
, **_kwargs
):
172 val
= gdic
.wxIcon_GetHeight(self
, *_args
, **_kwargs
)
174 def GetDepth(self
, *_args
, **_kwargs
):
175 val
= gdic
.wxIcon_GetDepth(self
, *_args
, **_kwargs
)
177 def SetWidth(self
, *_args
, **_kwargs
):
178 val
= gdic
.wxIcon_SetWidth(self
, *_args
, **_kwargs
)
180 def SetHeight(self
, *_args
, **_kwargs
):
181 val
= gdic
.wxIcon_SetHeight(self
, *_args
, **_kwargs
)
183 def SetDepth(self
, *_args
, **_kwargs
):
184 val
= gdic
.wxIcon_SetDepth(self
, *_args
, **_kwargs
)
186 def SetSize(self
, *_args
, **_kwargs
):
187 val
= gdic
.wxIcon_SetSize(self
, *_args
, **_kwargs
)
189 def CopyFromBitmap(self
, *_args
, **_kwargs
):
190 val
= gdic
.wxIcon_CopyFromBitmap(self
, *_args
, **_kwargs
)
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
)
203 class wxIconLocationPtr
:
204 def __init__(self
,this
):
207 def __del__(self
, delfunc
=gdic
.delete_wxIconLocation
):
208 if self
.thisown
== 1:
213 def IsOk(self
, *_args
, **_kwargs
):
214 val
= gdic
.wxIconLocation_IsOk(self
, *_args
, **_kwargs
)
216 def SetFileName(self
, *_args
, **_kwargs
):
217 val
= gdic
.wxIconLocation_SetFileName(self
, *_args
, **_kwargs
)
219 def GetFileName(self
, *_args
, **_kwargs
):
220 val
= gdic
.wxIconLocation_GetFileName(self
, *_args
, **_kwargs
)
222 def SetIndex(self
, *_args
, **_kwargs
):
223 val
= gdic
.wxIconLocation_SetIndex(self
, *_args
, **_kwargs
)
225 def GetIndex(self
, *_args
, **_kwargs
):
226 val
= gdic
.wxIconLocation_GetIndex(self
, *_args
, **_kwargs
)
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
)
238 class wxIconBundlePtr
:
239 def __init__(self
,this
):
242 def __del__(self
, delfunc
=gdic
.delete_wxIconBundle
):
243 if self
.thisown
== 1:
248 def AddIcon(self
, *_args
, **_kwargs
):
249 val
= gdic
.wxIconBundle_AddIcon(self
, *_args
, **_kwargs
)
251 def AddIconFromFile(self
, *_args
, **_kwargs
):
252 val
= gdic
.wxIconBundle_AddIconFromFile(self
, *_args
, **_kwargs
)
254 def GetIcon(self
, *_args
, **_kwargs
):
255 val
= gdic
.wxIconBundle_GetIcon(self
, *_args
, **_kwargs
)
256 if val
: val
= wxIconPtr(val
)
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
)
267 def wxIconBundleFromFile(*_args
,**_kwargs
):
268 val
= wxIconBundlePtr(gdic
.new_wxIconBundleFromFile(*_args
,**_kwargs
))
272 def wxIconBundleFromIcon(*_args
,**_kwargs
):
273 val
= wxIconBundlePtr(gdic
.new_wxIconBundleFromIcon(*_args
,**_kwargs
))
278 class wxCursorPtr(wxGDIObjectPtr
):
279 def __init__(self
,this
):
282 def __del__(self
, delfunc
=gdic
.delete_wxCursor
):
283 if self
.thisown
== 1:
288 def GetHandle(self
, *_args
, **_kwargs
):
289 val
= gdic
.wxCursor_GetHandle(self
, *_args
, **_kwargs
)
291 def SetHandle(self
, *_args
, **_kwargs
):
292 val
= gdic
.wxCursor_SetHandle(self
, *_args
, **_kwargs
)
294 def Ok(self
, *_args
, **_kwargs
):
295 val
= gdic
.wxCursor_Ok(self
, *_args
, **_kwargs
)
297 def GetWidth(self
, *_args
, **_kwargs
):
298 val
= gdic
.wxCursor_GetWidth(self
, *_args
, **_kwargs
)
300 def GetHeight(self
, *_args
, **_kwargs
):
301 val
= gdic
.wxCursor_GetHeight(self
, *_args
, **_kwargs
)
303 def GetDepth(self
, *_args
, **_kwargs
):
304 val
= gdic
.wxCursor_GetDepth(self
, *_args
, **_kwargs
)
306 def SetWidth(self
, *_args
, **_kwargs
):
307 val
= gdic
.wxCursor_SetWidth(self
, *_args
, **_kwargs
)
309 def SetHeight(self
, *_args
, **_kwargs
):
310 val
= gdic
.wxCursor_SetHeight(self
, *_args
, **_kwargs
)
312 def SetDepth(self
, *_args
, **_kwargs
):
313 val
= gdic
.wxCursor_SetDepth(self
, *_args
, **_kwargs
)
315 def SetSize(self
, *_args
, **_kwargs
):
316 val
= gdic
.wxCursor_SetSize(self
, *_args
, **_kwargs
)
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
)
329 class wxColourPtr(wxObjectPtr
):
330 def __init__(self
,this
):
333 def __del__(self
, delfunc
=gdic
.delete_wxColour
):
334 if self
.thisown
== 1:
339 def Red(self
, *_args
, **_kwargs
):
340 val
= gdic
.wxColour_Red(self
, *_args
, **_kwargs
)
342 def Green(self
, *_args
, **_kwargs
):
343 val
= gdic
.wxColour_Green(self
, *_args
, **_kwargs
)
345 def Blue(self
, *_args
, **_kwargs
):
346 val
= gdic
.wxColour_Blue(self
, *_args
, **_kwargs
)
348 def Ok(self
, *_args
, **_kwargs
):
349 val
= gdic
.wxColour_Ok(self
, *_args
, **_kwargs
)
351 def Set(self
, *_args
, **_kwargs
):
352 val
= gdic
.wxColour_Set(self
, *_args
, **_kwargs
)
354 def Get(self
, *_args
, **_kwargs
):
355 val
= gdic
.wxColour_Get(self
, *_args
, **_kwargs
)
357 def __eq__(self
, *_args
, **_kwargs
):
358 val
= gdic
.wxColour___eq__(self
, *_args
, **_kwargs
)
360 def __ne__(self
, *_args
, **_kwargs
):
361 val
= gdic
.wxColour___ne__(self
, *_args
, **_kwargs
)
364 return "<%s.%s instance; proxy of C++ wxColour instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
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
)
373 class wxColour(wxColourPtr
):
374 def __init__(self
,*_args
,**_kwargs
):
375 self
.this
= gdic
.new_wxColour(*_args
,**_kwargs
)
381 class wxColourDatabasePtr(wxObjectPtr
):
382 def __init__(self
,this
):
385 def __del__(self
, delfunc
=gdic
.delete_wxColourDatabase
):
386 if self
.thisown
== 1:
391 def Find(self
, *_args
, **_kwargs
):
392 val
= gdic
.wxColourDatabase_Find(self
, *_args
, **_kwargs
)
393 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
395 def FindName(self
, *_args
, **_kwargs
):
396 val
= gdic
.wxColourDatabase_FindName(self
, *_args
, **_kwargs
)
398 def AddColour(self
, *_args
, **_kwargs
):
399 val
= gdic
.wxColourDatabase_AddColour(self
, *_args
, **_kwargs
)
401 def Append(self
, *_args
, **_kwargs
):
402 val
= gdic
.wxColourDatabase_Append(self
, *_args
, **_kwargs
)
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
)
414 class wxPenPtr(wxGDIObjectPtr
):
415 def __init__(self
,this
):
418 def __del__(self
, delfunc
=gdic
.delete_wxPen
):
419 if self
.thisown
== 1:
424 def GetCap(self
, *_args
, **_kwargs
):
425 val
= gdic
.wxPen_GetCap(self
, *_args
, **_kwargs
)
427 def GetColour(self
, *_args
, **_kwargs
):
428 val
= gdic
.wxPen_GetColour(self
, *_args
, **_kwargs
)
429 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
431 def GetJoin(self
, *_args
, **_kwargs
):
432 val
= gdic
.wxPen_GetJoin(self
, *_args
, **_kwargs
)
434 def GetStyle(self
, *_args
, **_kwargs
):
435 val
= gdic
.wxPen_GetStyle(self
, *_args
, **_kwargs
)
437 def GetWidth(self
, *_args
, **_kwargs
):
438 val
= gdic
.wxPen_GetWidth(self
, *_args
, **_kwargs
)
440 def Ok(self
, *_args
, **_kwargs
):
441 val
= gdic
.wxPen_Ok(self
, *_args
, **_kwargs
)
443 def SetCap(self
, *_args
, **_kwargs
):
444 val
= gdic
.wxPen_SetCap(self
, *_args
, **_kwargs
)
446 def SetColour(self
, *_args
, **_kwargs
):
447 val
= gdic
.wxPen_SetColour(self
, *_args
, **_kwargs
)
449 def SetJoin(self
, *_args
, **_kwargs
):
450 val
= gdic
.wxPen_SetJoin(self
, *_args
, **_kwargs
)
452 def SetStyle(self
, *_args
, **_kwargs
):
453 val
= gdic
.wxPen_SetStyle(self
, *_args
, **_kwargs
)
455 def SetWidth(self
, *_args
, **_kwargs
):
456 val
= gdic
.wxPen_SetWidth(self
, *_args
, **_kwargs
)
458 def SetDashes(self
, *_args
, **_kwargs
):
459 val
= gdic
.wxPen_SetDashes(self
, *_args
, **_kwargs
)
461 def GetDashes(self
, *_args
, **_kwargs
):
462 val
= gdic
.wxPen_GetDashes(self
, *_args
, **_kwargs
)
464 def GetStipple(self
, *_args
, **_kwargs
):
465 val
= gdic
.wxPen_GetStipple(self
, *_args
, **_kwargs
)
466 if val
: val
= wxBitmapPtr(val
)
468 def SetStipple(self
, *_args
, **_kwargs
):
469 val
= gdic
.wxPen_SetStipple(self
, *_args
, **_kwargs
)
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
)
482 class wxPyPenPtr(wxPenPtr
):
483 def __init__(self
,this
):
486 def __del__(self
, delfunc
=gdic
.delete_wxPyPen
):
487 if self
.thisown
== 1:
492 def SetDashes(self
, *_args
, **_kwargs
):
493 val
= gdic
.wxPyPen_SetDashes(self
, *_args
, **_kwargs
)
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
)
505 class wxPenListPtr(wxObjectPtr
):
506 def __init__(self
,this
):
509 def AddPen(self
, *_args
, **_kwargs
):
510 val
= gdic
.wxPenList_AddPen(self
, *_args
, **_kwargs
)
512 def FindOrCreatePen(self
, *_args
, **_kwargs
):
513 val
= gdic
.wxPenList_FindOrCreatePen(self
, *_args
, **_kwargs
)
514 if val
: val
= wxPenPtr(val
)
516 def RemovePen(self
, *_args
, **_kwargs
):
517 val
= gdic
.wxPenList_RemovePen(self
, *_args
, **_kwargs
)
519 def GetCount(self
, *_args
, **_kwargs
):
520 val
= gdic
.wxPenList_GetCount(self
, *_args
, **_kwargs
)
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
):
531 class wxBrushPtr(wxGDIObjectPtr
):
532 def __init__(self
,this
):
535 def __del__(self
, delfunc
=gdic
.delete_wxBrush
):
536 if self
.thisown
== 1:
541 def GetColour(self
, *_args
, **_kwargs
):
542 val
= gdic
.wxBrush_GetColour(self
, *_args
, **_kwargs
)
543 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
545 def GetStipple(self
, *_args
, **_kwargs
):
546 val
= gdic
.wxBrush_GetStipple(self
, *_args
, **_kwargs
)
547 if val
: val
= wxBitmapPtr(val
)
549 def GetStyle(self
, *_args
, **_kwargs
):
550 val
= gdic
.wxBrush_GetStyle(self
, *_args
, **_kwargs
)
552 def Ok(self
, *_args
, **_kwargs
):
553 val
= gdic
.wxBrush_Ok(self
, *_args
, **_kwargs
)
555 def SetColour(self
, *_args
, **_kwargs
):
556 val
= gdic
.wxBrush_SetColour(self
, *_args
, **_kwargs
)
558 def SetStipple(self
, *_args
, **_kwargs
):
559 val
= gdic
.wxBrush_SetStipple(self
, *_args
, **_kwargs
)
561 def SetStyle(self
, *_args
, **_kwargs
):
562 val
= gdic
.wxBrush_SetStyle(self
, *_args
, **_kwargs
)
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
)
575 class wxBrushListPtr(wxObjectPtr
):
576 def __init__(self
,this
):
579 def AddBrush(self
, *_args
, **_kwargs
):
580 val
= gdic
.wxBrushList_AddBrush(self
, *_args
, **_kwargs
)
582 def FindOrCreateBrush(self
, *_args
, **_kwargs
):
583 val
= gdic
.wxBrushList_FindOrCreateBrush(self
, *_args
, **_kwargs
)
584 if val
: val
= wxBrushPtr(val
)
586 def RemoveBrush(self
, *_args
, **_kwargs
):
587 val
= gdic
.wxBrushList_RemoveBrush(self
, *_args
, **_kwargs
)
589 def GetCount(self
, *_args
, **_kwargs
):
590 val
= gdic
.wxBrushList_GetCount(self
, *_args
, **_kwargs
)
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
):
601 class wxDCPtr(wxObjectPtr
):
602 def __init__(self
,this
):
605 def __del__(self
, delfunc
=gdic
.delete_wxDC
):
606 if self
.thisown
== 1:
611 def BeginDrawing(self
, *_args
, **_kwargs
):
612 val
= gdic
.wxDC_BeginDrawing(self
, *_args
, **_kwargs
)
614 def Blit(self
, *_args
, **_kwargs
):
615 val
= gdic
.wxDC_Blit(self
, *_args
, **_kwargs
)
617 def Clear(self
, *_args
, **_kwargs
):
618 val
= gdic
.wxDC_Clear(self
, *_args
, **_kwargs
)
620 def CrossHair(self
, *_args
, **_kwargs
):
621 val
= gdic
.wxDC_CrossHair(self
, *_args
, **_kwargs
)
623 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
624 val
= gdic
.wxDC_DestroyClippingRegion(self
, *_args
, **_kwargs
)
626 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
627 val
= gdic
.wxDC_DeviceToLogicalX(self
, *_args
, **_kwargs
)
629 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
630 val
= gdic
.wxDC_DeviceToLogicalXRel(self
, *_args
, **_kwargs
)
632 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
633 val
= gdic
.wxDC_DeviceToLogicalY(self
, *_args
, **_kwargs
)
635 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
636 val
= gdic
.wxDC_DeviceToLogicalYRel(self
, *_args
, **_kwargs
)
638 def DrawArc(self
, *_args
, **_kwargs
):
639 val
= gdic
.wxDC_DrawArc(self
, *_args
, **_kwargs
)
641 def DrawCircle(self
, *_args
, **_kwargs
):
642 val
= gdic
.wxDC_DrawCircle(self
, *_args
, **_kwargs
)
644 def DrawEllipse(self
, *_args
, **_kwargs
):
645 val
= gdic
.wxDC_DrawEllipse(self
, *_args
, **_kwargs
)
647 def DrawEllipticArc(self
, *_args
, **_kwargs
):
648 val
= gdic
.wxDC_DrawEllipticArc(self
, *_args
, **_kwargs
)
650 def DrawIcon(self
, *_args
, **_kwargs
):
651 val
= gdic
.wxDC_DrawIcon(self
, *_args
, **_kwargs
)
653 def DrawLabel(self
, *_args
, **_kwargs
):
654 val
= gdic
.wxDC_DrawLabel(self
, *_args
, **_kwargs
)
656 def DrawImageLabel(self
, *_args
, **_kwargs
):
657 val
= gdic
.wxDC_DrawImageLabel(self
, *_args
, **_kwargs
)
658 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
660 def DrawLine(self
, *_args
, **_kwargs
):
661 val
= gdic
.wxDC_DrawLine(self
, *_args
, **_kwargs
)
663 def DrawLines(self
, *_args
, **_kwargs
):
664 val
= gdic
.wxDC_DrawLines(self
, *_args
, **_kwargs
)
666 def DrawPolygon(self
, *_args
, **_kwargs
):
667 val
= gdic
.wxDC_DrawPolygon(self
, *_args
, **_kwargs
)
669 def DrawPoint(self
, *_args
, **_kwargs
):
670 val
= gdic
.wxDC_DrawPoint(self
, *_args
, **_kwargs
)
672 def DrawRectangle(self
, *_args
, **_kwargs
):
673 val
= gdic
.wxDC_DrawRectangle(self
, *_args
, **_kwargs
)
675 def DrawRectangleRect(self
, *_args
, **_kwargs
):
676 val
= gdic
.wxDC_DrawRectangleRect(self
, *_args
, **_kwargs
)
678 def DrawRotatedText(self
, *_args
, **_kwargs
):
679 val
= gdic
.wxDC_DrawRotatedText(self
, *_args
, **_kwargs
)
681 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
682 val
= gdic
.wxDC_DrawRoundedRectangle(self
, *_args
, **_kwargs
)
684 def DrawSpline(self
, *_args
, **_kwargs
):
685 val
= gdic
.wxDC_DrawSpline(self
, *_args
, **_kwargs
)
687 def DrawText(self
, *_args
, **_kwargs
):
688 val
= gdic
.wxDC_DrawText(self
, *_args
, **_kwargs
)
690 def EndDoc(self
, *_args
, **_kwargs
):
691 val
= gdic
.wxDC_EndDoc(self
, *_args
, **_kwargs
)
693 def EndDrawing(self
, *_args
, **_kwargs
):
694 val
= gdic
.wxDC_EndDrawing(self
, *_args
, **_kwargs
)
696 def EndPage(self
, *_args
, **_kwargs
):
697 val
= gdic
.wxDC_EndPage(self
, *_args
, **_kwargs
)
699 def FloodFill(self
, *_args
, **_kwargs
):
700 val
= gdic
.wxDC_FloodFill(self
, *_args
, **_kwargs
)
702 def GetBackground(self
, *_args
, **_kwargs
):
703 val
= gdic
.wxDC_GetBackground(self
, *_args
, **_kwargs
)
704 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
706 def GetBrush(self
, *_args
, **_kwargs
):
707 val
= gdic
.wxDC_GetBrush(self
, *_args
, **_kwargs
)
708 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
710 def GetCharHeight(self
, *_args
, **_kwargs
):
711 val
= gdic
.wxDC_GetCharHeight(self
, *_args
, **_kwargs
)
713 def GetCharWidth(self
, *_args
, **_kwargs
):
714 val
= gdic
.wxDC_GetCharWidth(self
, *_args
, **_kwargs
)
716 def GetClippingBox(self
, *_args
, **_kwargs
):
717 val
= gdic
.wxDC_GetClippingBox(self
, *_args
, **_kwargs
)
719 def GetFont(self
, *_args
, **_kwargs
):
720 val
= gdic
.wxDC_GetFont(self
, *_args
, **_kwargs
)
721 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
723 def GetLogicalFunction(self
, *_args
, **_kwargs
):
724 val
= gdic
.wxDC_GetLogicalFunction(self
, *_args
, **_kwargs
)
726 def GetLogicalScale(self
, *_args
, **_kwargs
):
727 val
= gdic
.wxDC_GetLogicalScale(self
, *_args
, **_kwargs
)
729 def GetMapMode(self
, *_args
, **_kwargs
):
730 val
= gdic
.wxDC_GetMapMode(self
, *_args
, **_kwargs
)
732 def GetOptimization(self
, *_args
, **_kwargs
):
733 val
= gdic
.wxDC_GetOptimization(self
, *_args
, **_kwargs
)
735 def GetPen(self
, *_args
, **_kwargs
):
736 val
= gdic
.wxDC_GetPen(self
, *_args
, **_kwargs
)
737 if val
: val
= wxPenPtr(val
) ; val
.thisown
= 1
739 def GetPixel(self
, *_args
, **_kwargs
):
740 val
= gdic
.wxDC_GetPixel(self
, *_args
, **_kwargs
)
741 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
743 def GetSizeTuple(self
, *_args
, **_kwargs
):
744 val
= gdic
.wxDC_GetSizeTuple(self
, *_args
, **_kwargs
)
746 def GetSize(self
, *_args
, **_kwargs
):
747 val
= gdic
.wxDC_GetSize(self
, *_args
, **_kwargs
)
748 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
750 def GetSizeMM(self
, *_args
, **_kwargs
):
751 val
= gdic
.wxDC_GetSizeMM(self
, *_args
, **_kwargs
)
752 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
754 def GetTextBackground(self
, *_args
, **_kwargs
):
755 val
= gdic
.wxDC_GetTextBackground(self
, *_args
, **_kwargs
)
756 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
758 def GetTextExtent(self
, *_args
, **_kwargs
):
759 val
= gdic
.wxDC_GetTextExtent(self
, *_args
, **_kwargs
)
761 def GetFullTextExtent(self
, *_args
, **_kwargs
):
762 val
= gdic
.wxDC_GetFullTextExtent(self
, *_args
, **_kwargs
)
764 def GetMultiLineTextExtent(self
, *_args
, **_kwargs
):
765 val
= gdic
.wxDC_GetMultiLineTextExtent(self
, *_args
, **_kwargs
)
767 def GetTextForeground(self
, *_args
, **_kwargs
):
768 val
= gdic
.wxDC_GetTextForeground(self
, *_args
, **_kwargs
)
769 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
771 def GetUserScale(self
, *_args
, **_kwargs
):
772 val
= gdic
.wxDC_GetUserScale(self
, *_args
, **_kwargs
)
774 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
775 val
= gdic
.wxDC_LogicalToDeviceX(self
, *_args
, **_kwargs
)
777 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
778 val
= gdic
.wxDC_LogicalToDeviceXRel(self
, *_args
, **_kwargs
)
780 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
781 val
= gdic
.wxDC_LogicalToDeviceY(self
, *_args
, **_kwargs
)
783 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
784 val
= gdic
.wxDC_LogicalToDeviceYRel(self
, *_args
, **_kwargs
)
786 def MaxX(self
, *_args
, **_kwargs
):
787 val
= gdic
.wxDC_MaxX(self
, *_args
, **_kwargs
)
789 def MaxY(self
, *_args
, **_kwargs
):
790 val
= gdic
.wxDC_MaxY(self
, *_args
, **_kwargs
)
792 def MinX(self
, *_args
, **_kwargs
):
793 val
= gdic
.wxDC_MinX(self
, *_args
, **_kwargs
)
795 def MinY(self
, *_args
, **_kwargs
):
796 val
= gdic
.wxDC_MinY(self
, *_args
, **_kwargs
)
798 def Ok(self
, *_args
, **_kwargs
):
799 val
= gdic
.wxDC_Ok(self
, *_args
, **_kwargs
)
801 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
802 val
= gdic
.wxDC_SetDeviceOrigin(self
, *_args
, **_kwargs
)
804 def SetBackground(self
, *_args
, **_kwargs
):
805 val
= gdic
.wxDC_SetBackground(self
, *_args
, **_kwargs
)
807 def SetBackgroundMode(self
, *_args
, **_kwargs
):
808 val
= gdic
.wxDC_SetBackgroundMode(self
, *_args
, **_kwargs
)
810 def SetClippingRegion(self
, *_args
, **_kwargs
):
811 val
= gdic
.wxDC_SetClippingRegion(self
, *_args
, **_kwargs
)
813 def SetClippingRegionAsRegion(self
, *_args
, **_kwargs
):
814 val
= gdic
.wxDC_SetClippingRegionAsRegion(self
, *_args
, **_kwargs
)
816 def SetClippingRect(self
, *_args
, **_kwargs
):
817 val
= gdic
.wxDC_SetClippingRect(self
, *_args
, **_kwargs
)
819 def SetPalette(self
, *_args
, **_kwargs
):
820 val
= gdic
.wxDC_SetPalette(self
, *_args
, **_kwargs
)
822 def SetBrush(self
, *_args
, **_kwargs
):
823 val
= gdic
.wxDC_SetBrush(self
, *_args
, **_kwargs
)
825 def SetFont(self
, *_args
, **_kwargs
):
826 val
= gdic
.wxDC_SetFont(self
, *_args
, **_kwargs
)
828 def SetLogicalFunction(self
, *_args
, **_kwargs
):
829 val
= gdic
.wxDC_SetLogicalFunction(self
, *_args
, **_kwargs
)
831 def SetLogicalScale(self
, *_args
, **_kwargs
):
832 val
= gdic
.wxDC_SetLogicalScale(self
, *_args
, **_kwargs
)
834 def SetMapMode(self
, *_args
, **_kwargs
):
835 val
= gdic
.wxDC_SetMapMode(self
, *_args
, **_kwargs
)
837 def SetOptimization(self
, *_args
, **_kwargs
):
838 val
= gdic
.wxDC_SetOptimization(self
, *_args
, **_kwargs
)
840 def SetPen(self
, *_args
, **_kwargs
):
841 val
= gdic
.wxDC_SetPen(self
, *_args
, **_kwargs
)
843 def SetTextBackground(self
, *_args
, **_kwargs
):
844 val
= gdic
.wxDC_SetTextBackground(self
, *_args
, **_kwargs
)
846 def SetTextForeground(self
, *_args
, **_kwargs
):
847 val
= gdic
.wxDC_SetTextForeground(self
, *_args
, **_kwargs
)
849 def SetUserScale(self
, *_args
, **_kwargs
):
850 val
= gdic
.wxDC_SetUserScale(self
, *_args
, **_kwargs
)
852 def StartDoc(self
, *_args
, **_kwargs
):
853 val
= gdic
.wxDC_StartDoc(self
, *_args
, **_kwargs
)
855 def StartPage(self
, *_args
, **_kwargs
):
856 val
= gdic
.wxDC_StartPage(self
, *_args
, **_kwargs
)
858 def DrawBitmap(self
, *_args
, **_kwargs
):
859 val
= gdic
.wxDC_DrawBitmap(self
, *_args
, **_kwargs
)
861 def CanDrawBitmap(self
, *_args
, **_kwargs
):
862 val
= gdic
.wxDC_CanDrawBitmap(self
, *_args
, **_kwargs
)
864 def CanGetTextExtent(self
, *_args
, **_kwargs
):
865 val
= gdic
.wxDC_CanGetTextExtent(self
, *_args
, **_kwargs
)
867 def GetDepth(self
, *_args
, **_kwargs
):
868 val
= gdic
.wxDC_GetDepth(self
, *_args
, **_kwargs
)
870 def GetPPI(self
, *_args
, **_kwargs
):
871 val
= gdic
.wxDC_GetPPI(self
, *_args
, **_kwargs
)
872 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
874 def GetLogicalOrigin(self
, *_args
, **_kwargs
):
875 val
= gdic
.wxDC_GetLogicalOrigin(self
, *_args
, **_kwargs
)
877 def SetLogicalOrigin(self
, *_args
, **_kwargs
):
878 val
= gdic
.wxDC_SetLogicalOrigin(self
, *_args
, **_kwargs
)
880 def GetDeviceOrigin(self
, *_args
, **_kwargs
):
881 val
= gdic
.wxDC_GetDeviceOrigin(self
, *_args
, **_kwargs
)
883 def SetAxisOrientation(self
, *_args
, **_kwargs
):
884 val
= gdic
.wxDC_SetAxisOrientation(self
, *_args
, **_kwargs
)
886 def CalcBoundingBox(self
, *_args
, **_kwargs
):
887 val
= gdic
.wxDC_CalcBoundingBox(self
, *_args
, **_kwargs
)
889 def ResetBoundingBox(self
, *_args
, **_kwargs
):
890 val
= gdic
.wxDC_ResetBoundingBox(self
, *_args
, **_kwargs
)
892 def GetBoundingBox(self
, *_args
, **_kwargs
):
893 val
= gdic
.wxDC_GetBoundingBox(self
, *_args
, **_kwargs
)
895 def GetHDC(self
, *_args
, **_kwargs
):
896 val
= gdic
.wxDC_GetHDC(self
, *_args
, **_kwargs
)
898 def _DrawPointList(self
, *_args
, **_kwargs
):
899 val
= gdic
.wxDC__DrawPointList(self
, *_args
, **_kwargs
)
901 def _DrawLineList(self
, *_args
, **_kwargs
):
902 val
= gdic
.wxDC__DrawLineList(self
, *_args
, **_kwargs
)
904 def _DrawRectangleList(self
, *_args
, **_kwargs
):
905 val
= gdic
.wxDC__DrawRectangleList(self
, *_args
, **_kwargs
)
907 def _DrawEllipseList(self
, *_args
, **_kwargs
):
908 val
= gdic
.wxDC__DrawEllipseList(self
, *_args
, **_kwargs
)
910 def _DrawPolygonList(self
, *_args
, **_kwargs
):
911 val
= gdic
.wxDC__DrawPolygonList(self
, *_args
, **_kwargs
)
913 def _DrawTextList(self
, *_args
, **_kwargs
):
914 val
= gdic
.wxDC__DrawTextList(self
, *_args
, **_kwargs
)
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()
920 def DrawPointList(self
, points
, pens
=None):
923 elif isinstance(pens
, wxPenPtr
):
925 elif len(pens
) != len(points
):
926 raise ValueError('points and pens must have same length')
927 return self
._DrawPointList
(points
, pens
, [])
930 def DrawLineList(self
, lines
, pens
=None):
933 elif isinstance(pens
, wxPenPtr
):
935 elif len(pens
) != len(lines
):
936 raise ValueError('lines and pens must have same length')
937 return self
._DrawLineList
(lines
, pens
, [])
940 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
943 elif isinstance(pens
, wxPenPtr
):
945 elif len(pens
) != len(rectangles
):
946 raise ValueError('rectangles and pens must have same length')
949 elif isinstance(brushes
, wxBrushPtr
):
951 elif len(brushes
) != len(rectangles
):
952 raise ValueError('rectangles and brushes must have same length')
953 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
956 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
959 elif isinstance(pens
, wxPenPtr
):
961 elif len(pens
) != len(ellipses
):
962 raise ValueError('ellipses and pens must have same length')
965 elif isinstance(brushes
, wxBrushPtr
):
967 elif len(brushes
) != len(ellipses
):
968 raise ValueError('ellipses and brushes must have same length')
969 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
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]
980 elif isinstance(pens
, wxPenPtr
):
982 elif len(pens
) != len(polygons
):
983 raise ValueError('polygons and pens must have same length')
986 elif isinstance(brushes
, wxBrushPtr
):
988 elif len(brushes
) != len(polygons
):
989 raise ValueError('polygons and brushes must have same length')
990 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
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:
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:
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
)
1015 class wxDC(wxDCPtr
):
1016 def __init__(self
,this
):
1022 class wxMemoryDCPtr(wxDCPtr
):
1023 def __init__(self
,this
):
1026 def SelectObject(self
, *_args
, **_kwargs
):
1027 val
= gdic
.wxMemoryDC_SelectObject(self
, *_args
, **_kwargs
)
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
)
1039 class wxBufferedDCPtr(wxMemoryDCPtr
):
1040 def __init__(self
,this
):
1043 def UnMask(self
, *_args
, **_kwargs
):
1044 val
= gdic
.wxBufferedDC_UnMask(self
, *_args
, **_kwargs
)
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
)
1052 self
._dc
= _args
[0] # save a ref so the other dc won't be deleted before self
1056 def wxBufferedDCInternalBuffer(*_args
,**_kwargs
):
1057 val
= wxBufferedDCPtr(gdic
.new_wxBufferedDCInternalBuffer(*_args
,**_kwargs
))
1059 val
._dc
= _args
[0] # save a ref so the other dc won't be deleted before self
1063 class wxBufferedPaintDCPtr(wxBufferedDCPtr
):
1064 def __init__(self
,this
):
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
)
1077 class wxScreenDCPtr(wxDCPtr
):
1078 def __init__(self
,this
):
1081 def StartDrawingOnTopWin(self
, *_args
, **_kwargs
):
1082 val
= gdic
.wxScreenDC_StartDrawingOnTopWin(self
, *_args
, **_kwargs
)
1084 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
1085 val
= gdic
.wxScreenDC_StartDrawingOnTop(self
, *_args
, **_kwargs
)
1087 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
1088 val
= gdic
.wxScreenDC_EndDrawingOnTop(self
, *_args
, **_kwargs
)
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
)
1100 class wxClientDCPtr(wxDCPtr
):
1101 def __init__(self
,this
):
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
)
1114 class wxPaintDCPtr(wxDCPtr
):
1115 def __init__(self
,this
):
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
)
1128 class wxWindowDCPtr(wxDCPtr
):
1129 def __init__(self
,this
):
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
)
1142 class wxMirrorDCPtr(wxDCPtr
):
1143 def __init__(self
,this
):
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
)
1156 class wxMetaFilePtr(wxObjectPtr
):
1157 def __init__(self
,this
):
1160 def __del__(self
, delfunc
=gdic
.delete_wxMetaFile
):
1161 if self
.thisown
== 1:
1166 def Ok(self
, *_args
, **_kwargs
):
1167 val
= gdic
.wxMetaFile_Ok(self
, *_args
, **_kwargs
)
1169 def SetClipboard(self
, *_args
, **_kwargs
):
1170 val
= gdic
.wxMetaFile_SetClipboard(self
, *_args
, **_kwargs
)
1172 def GetSize(self
, *_args
, **_kwargs
):
1173 val
= gdic
.wxMetaFile_GetSize(self
, *_args
, **_kwargs
)
1174 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
1176 def GetWidth(self
, *_args
, **_kwargs
):
1177 val
= gdic
.wxMetaFile_GetWidth(self
, *_args
, **_kwargs
)
1179 def GetHeight(self
, *_args
, **_kwargs
):
1180 val
= gdic
.wxMetaFile_GetHeight(self
, *_args
, **_kwargs
)
1182 def GetFileName(self
, *_args
, **_kwargs
):
1183 val
= gdic
.wxMetaFile_GetFileName(self
, *_args
, **_kwargs
)
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
)
1196 class wxMetaFileDCPtr(wxDCPtr
):
1197 def __init__(self
,this
):
1200 def Close(self
, *_args
, **_kwargs
):
1201 val
= gdic
.wxMetaFileDC_Close(self
, *_args
, **_kwargs
)
1202 if val
: val
= wxMetaFilePtr(val
)
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
)
1214 class wxPalettePtr(wxGDIObjectPtr
):
1215 def __init__(self
,this
):
1218 def __del__(self
, delfunc
=gdic
.delete_wxPalette
):
1219 if self
.thisown
== 1:
1224 def GetPixel(self
, *_args
, **_kwargs
):
1225 val
= gdic
.wxPalette_GetPixel(self
, *_args
, **_kwargs
)
1227 def GetRGB(self
, *_args
, **_kwargs
):
1228 val
= gdic
.wxPalette_GetRGB(self
, *_args
, **_kwargs
)
1230 def Ok(self
, *_args
, **_kwargs
):
1231 val
= gdic
.wxPalette_Ok(self
, *_args
, **_kwargs
)
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
)
1244 class wxImageListPtr(wxObjectPtr
):
1245 def __init__(self
,this
):
1248 def __del__(self
, delfunc
=gdic
.delete_wxImageList
):
1249 if self
.thisown
== 1:
1254 def Add(self
, *_args
, **_kwargs
):
1255 val
= gdic
.wxImageList_Add(self
, *_args
, **_kwargs
)
1257 def AddWithColourMask(self
, *_args
, **_kwargs
):
1258 val
= gdic
.wxImageList_AddWithColourMask(self
, *_args
, **_kwargs
)
1260 def AddIcon(self
, *_args
, **_kwargs
):
1261 val
= gdic
.wxImageList_AddIcon(self
, *_args
, **_kwargs
)
1263 def Replace(self
, *_args
, **_kwargs
):
1264 val
= gdic
.wxImageList_Replace(self
, *_args
, **_kwargs
)
1266 def Draw(self
, *_args
, **_kwargs
):
1267 val
= gdic
.wxImageList_Draw(self
, *_args
, **_kwargs
)
1269 def GetImageCount(self
, *_args
, **_kwargs
):
1270 val
= gdic
.wxImageList_GetImageCount(self
, *_args
, **_kwargs
)
1272 def Remove(self
, *_args
, **_kwargs
):
1273 val
= gdic
.wxImageList_Remove(self
, *_args
, **_kwargs
)
1275 def RemoveAll(self
, *_args
, **_kwargs
):
1276 val
= gdic
.wxImageList_RemoveAll(self
, *_args
, **_kwargs
)
1278 def GetSize(self
, *_args
, **_kwargs
):
1279 val
= gdic
.wxImageList_GetSize(self
, *_args
, **_kwargs
)
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
)
1291 class wxRegionPtr(wxGDIObjectPtr
):
1292 def __init__(self
,this
):
1295 def __del__(self
, delfunc
=gdic
.delete_wxRegion
):
1296 if self
.thisown
== 1:
1301 def Clear(self
, *_args
, **_kwargs
):
1302 val
= gdic
.wxRegion_Clear(self
, *_args
, **_kwargs
)
1304 def Offset(self
, *_args
, **_kwargs
):
1305 val
= gdic
.wxRegion_Offset(self
, *_args
, **_kwargs
)
1307 def Contains(self
, *_args
, **_kwargs
):
1308 val
= gdic
.wxRegion_Contains(self
, *_args
, **_kwargs
)
1310 def ContainsPoint(self
, *_args
, **_kwargs
):
1311 val
= gdic
.wxRegion_ContainsPoint(self
, *_args
, **_kwargs
)
1313 def ContainsRect(self
, *_args
, **_kwargs
):
1314 val
= gdic
.wxRegion_ContainsRect(self
, *_args
, **_kwargs
)
1316 def ContainsRectDim(self
, *_args
, **_kwargs
):
1317 val
= gdic
.wxRegion_ContainsRectDim(self
, *_args
, **_kwargs
)
1319 def GetBox(self
, *_args
, **_kwargs
):
1320 val
= gdic
.wxRegion_GetBox(self
, *_args
, **_kwargs
)
1321 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1323 def Intersect(self
, *_args
, **_kwargs
):
1324 val
= gdic
.wxRegion_Intersect(self
, *_args
, **_kwargs
)
1326 def IntersectRect(self
, *_args
, **_kwargs
):
1327 val
= gdic
.wxRegion_IntersectRect(self
, *_args
, **_kwargs
)
1329 def IntersectRegion(self
, *_args
, **_kwargs
):
1330 val
= gdic
.wxRegion_IntersectRegion(self
, *_args
, **_kwargs
)
1332 def IsEmpty(self
, *_args
, **_kwargs
):
1333 val
= gdic
.wxRegion_IsEmpty(self
, *_args
, **_kwargs
)
1335 def Union(self
, *_args
, **_kwargs
):
1336 val
= gdic
.wxRegion_Union(self
, *_args
, **_kwargs
)
1338 def UnionRect(self
, *_args
, **_kwargs
):
1339 val
= gdic
.wxRegion_UnionRect(self
, *_args
, **_kwargs
)
1341 def UnionRegion(self
, *_args
, **_kwargs
):
1342 val
= gdic
.wxRegion_UnionRegion(self
, *_args
, **_kwargs
)
1344 def Subtract(self
, *_args
, **_kwargs
):
1345 val
= gdic
.wxRegion_Subtract(self
, *_args
, **_kwargs
)
1347 def SubtractRect(self
, *_args
, **_kwargs
):
1348 val
= gdic
.wxRegion_SubtractRect(self
, *_args
, **_kwargs
)
1350 def SubtractRegion(self
, *_args
, **_kwargs
):
1351 val
= gdic
.wxRegion_SubtractRegion(self
, *_args
, **_kwargs
)
1353 def Xor(self
, *_args
, **_kwargs
):
1354 val
= gdic
.wxRegion_Xor(self
, *_args
, **_kwargs
)
1356 def XorRect(self
, *_args
, **_kwargs
):
1357 val
= gdic
.wxRegion_XorRect(self
, *_args
, **_kwargs
)
1359 def XorRegion(self
, *_args
, **_kwargs
):
1360 val
= gdic
.wxRegion_XorRegion(self
, *_args
, **_kwargs
)
1362 def ConvertToBitmap(self
, *_args
, **_kwargs
):
1363 val
= gdic
.wxRegion_ConvertToBitmap(self
, *_args
, **_kwargs
)
1364 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
1366 def UnionBitmap(self
, *_args
, **_kwargs
):
1367 val
= gdic
.wxRegion_UnionBitmap(self
, *_args
, **_kwargs
)
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
)
1378 def wxRegionFromPoints(*_args
,**_kwargs
):
1379 val
= wxRegionPtr(gdic
.new_wxRegionFromPoints(*_args
,**_kwargs
))
1383 def wxRegionFromBitmap(*_args
,**_kwargs
):
1384 val
= wxRegionPtr(gdic
.new_wxRegionFromBitmap(*_args
,**_kwargs
))
1389 class wxRegionIteratorPtr(wxObjectPtr
):
1390 def __init__(self
,this
):
1393 def __del__(self
, delfunc
=gdic
.delete_wxRegionIterator
):
1394 if self
.thisown
== 1:
1399 def GetX(self
, *_args
, **_kwargs
):
1400 val
= gdic
.wxRegionIterator_GetX(self
, *_args
, **_kwargs
)
1402 def GetY(self
, *_args
, **_kwargs
):
1403 val
= gdic
.wxRegionIterator_GetY(self
, *_args
, **_kwargs
)
1405 def GetW(self
, *_args
, **_kwargs
):
1406 val
= gdic
.wxRegionIterator_GetW(self
, *_args
, **_kwargs
)
1408 def GetWidth(self
, *_args
, **_kwargs
):
1409 val
= gdic
.wxRegionIterator_GetWidth(self
, *_args
, **_kwargs
)
1411 def GetH(self
, *_args
, **_kwargs
):
1412 val
= gdic
.wxRegionIterator_GetH(self
, *_args
, **_kwargs
)
1414 def GetHeight(self
, *_args
, **_kwargs
):
1415 val
= gdic
.wxRegionIterator_GetHeight(self
, *_args
, **_kwargs
)
1417 def GetRect(self
, *_args
, **_kwargs
):
1418 val
= gdic
.wxRegionIterator_GetRect(self
, *_args
, **_kwargs
)
1419 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1421 def HaveRects(self
, *_args
, **_kwargs
):
1422 val
= gdic
.wxRegionIterator_HaveRects(self
, *_args
, **_kwargs
)
1424 def Reset(self
, *_args
, **_kwargs
):
1425 val
= gdic
.wxRegionIterator_Reset(self
, *_args
, **_kwargs
)
1427 def Next(self
, *_args
, **_kwargs
):
1428 val
= gdic
.wxRegionIterator_Next(self
, *_args
, **_kwargs
)
1430 def __nonzero__(self
, *_args
, **_kwargs
):
1431 val
= gdic
.wxRegionIterator___nonzero__(self
, *_args
, **_kwargs
)
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
)
1445 #-------------- FUNCTION WRAPPERS ------------------
1447 def wxEmptyBitmap(*_args
, **_kwargs
):
1448 val
= gdic
.wxEmptyBitmap(*_args
,**_kwargs
)
1449 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1452 def wxBitmapFromXPMData(*_args
, **_kwargs
):
1453 val
= gdic
.wxBitmapFromXPMData(*_args
,**_kwargs
)
1454 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1457 def wxBitmapFromIcon(*_args
, **_kwargs
):
1458 val
= gdic
.wxBitmapFromIcon(*_args
,**_kwargs
)
1459 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1462 def wxBitmapFromBits(*_args
, **_kwargs
):
1463 val
= gdic
.wxBitmapFromBits(*_args
,**_kwargs
)
1464 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1467 def wxMaskColour(*_args
, **_kwargs
):
1468 val
= gdic
.wxMaskColour(*_args
,**_kwargs
)
1469 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
1472 def wxEmptyIcon(*_args
, **_kwargs
):
1473 val
= gdic
.wxEmptyIcon(*_args
,**_kwargs
)
1474 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1477 def wxIconFromXPMData(*_args
, **_kwargs
):
1478 val
= gdic
.wxIconFromXPMData(*_args
,**_kwargs
)
1479 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1482 def wxIconFromBitmap(*_args
, **_kwargs
):
1483 val
= gdic
.wxIconFromBitmap(*_args
,**_kwargs
)
1484 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1487 def wxIconFromLocation(*_args
, **_kwargs
):
1488 val
= gdic
.wxIconFromLocation(*_args
,**_kwargs
)
1489 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1492 def wxStockCursor(*_args
, **_kwargs
):
1493 val
= gdic
.wxStockCursor(*_args
,**_kwargs
)
1494 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1497 def wxCursorFromImage(*_args
, **_kwargs
):
1498 val
= gdic
.wxCursorFromImage(*_args
,**_kwargs
)
1499 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1502 def wxCursorFromBits(*_args
, **_kwargs
):
1503 val
= gdic
.wxCursorFromBits(*_args
,**_kwargs
)
1504 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1507 def wxNamedColour(*_args
, **_kwargs
):
1508 val
= gdic
.wxNamedColour(*_args
,**_kwargs
)
1509 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
1512 def wxMemoryDCFromDC(*_args
, **_kwargs
):
1513 val
= gdic
.wxMemoryDCFromDC(*_args
,**_kwargs
)
1514 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
1519 #-------------- VARIABLE WRAPPERS ------------------
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
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
)