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 FindColour(self
, *_args
, **_kwargs
):
386 val
= gdic
.wxColourDatabase_FindColour(self
, *_args
, **_kwargs
)
387 if val
: val
= wxColourPtr(val
)
389 def FindColourNoAdd(self
, *_args
, **_kwargs
):
390 val
= gdic
.wxColourDatabase_FindColourNoAdd(self
, *_args
, **_kwargs
)
391 if val
: val
= wxColourPtr(val
)
393 def FindName(self
, *_args
, **_kwargs
):
394 val
= gdic
.wxColourDatabase_FindName(self
, *_args
, **_kwargs
)
396 def AddColour(self
, *_args
, **_kwargs
):
397 val
= gdic
.wxColourDatabase_AddColour(self
, *_args
, **_kwargs
)
399 def Append(self
, *_args
, **_kwargs
):
400 val
= gdic
.wxColourDatabase_Append(self
, *_args
, **_kwargs
)
403 return "<%s.%s instance; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
404 class wxColourDatabase(wxColourDatabasePtr
):
405 def __init__(self
,this
):
411 class wxPenPtr(wxGDIObjectPtr
):
412 def __init__(self
,this
):
415 def __del__(self
, delfunc
=gdic
.delete_wxPen
):
416 if self
.thisown
== 1:
421 def GetCap(self
, *_args
, **_kwargs
):
422 val
= gdic
.wxPen_GetCap(self
, *_args
, **_kwargs
)
424 def GetColour(self
, *_args
, **_kwargs
):
425 val
= gdic
.wxPen_GetColour(self
, *_args
, **_kwargs
)
426 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
428 def GetJoin(self
, *_args
, **_kwargs
):
429 val
= gdic
.wxPen_GetJoin(self
, *_args
, **_kwargs
)
431 def GetStyle(self
, *_args
, **_kwargs
):
432 val
= gdic
.wxPen_GetStyle(self
, *_args
, **_kwargs
)
434 def GetWidth(self
, *_args
, **_kwargs
):
435 val
= gdic
.wxPen_GetWidth(self
, *_args
, **_kwargs
)
437 def Ok(self
, *_args
, **_kwargs
):
438 val
= gdic
.wxPen_Ok(self
, *_args
, **_kwargs
)
440 def SetCap(self
, *_args
, **_kwargs
):
441 val
= gdic
.wxPen_SetCap(self
, *_args
, **_kwargs
)
443 def SetColour(self
, *_args
, **_kwargs
):
444 val
= gdic
.wxPen_SetColour(self
, *_args
, **_kwargs
)
446 def SetJoin(self
, *_args
, **_kwargs
):
447 val
= gdic
.wxPen_SetJoin(self
, *_args
, **_kwargs
)
449 def SetStyle(self
, *_args
, **_kwargs
):
450 val
= gdic
.wxPen_SetStyle(self
, *_args
, **_kwargs
)
452 def SetWidth(self
, *_args
, **_kwargs
):
453 val
= gdic
.wxPen_SetWidth(self
, *_args
, **_kwargs
)
455 def SetDashes(self
, *_args
, **_kwargs
):
456 val
= gdic
.wxPen_SetDashes(self
, *_args
, **_kwargs
)
458 def GetDashes(self
, *_args
, **_kwargs
):
459 val
= gdic
.wxPen_GetDashes(self
, *_args
, **_kwargs
)
461 def GetStipple(self
, *_args
, **_kwargs
):
462 val
= gdic
.wxPen_GetStipple(self
, *_args
, **_kwargs
)
463 if val
: val
= wxBitmapPtr(val
)
465 def SetStipple(self
, *_args
, **_kwargs
):
466 val
= gdic
.wxPen_SetStipple(self
, *_args
, **_kwargs
)
469 return "<%s.%s instance; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
470 def __nonzero__(self
): return self
.Ok()
471 class wxPen(wxPenPtr
):
472 def __init__(self
,*_args
,**_kwargs
):
473 self
.this
= gdic
.new_wxPen(*_args
,**_kwargs
)
479 class wxPyPenPtr(wxPenPtr
):
480 def __init__(self
,this
):
483 def __del__(self
, delfunc
=gdic
.delete_wxPyPen
):
484 if self
.thisown
== 1:
489 def SetDashes(self
, *_args
, **_kwargs
):
490 val
= gdic
.wxPyPen_SetDashes(self
, *_args
, **_kwargs
)
493 return "<%s.%s instance; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
494 class wxPyPen(wxPyPenPtr
):
495 def __init__(self
,*_args
,**_kwargs
):
496 self
.this
= gdic
.new_wxPyPen(*_args
,**_kwargs
)
502 class wxPenListPtr(wxObjectPtr
):
503 def __init__(self
,this
):
506 def AddPen(self
, *_args
, **_kwargs
):
507 val
= gdic
.wxPenList_AddPen(self
, *_args
, **_kwargs
)
509 def FindOrCreatePen(self
, *_args
, **_kwargs
):
510 val
= gdic
.wxPenList_FindOrCreatePen(self
, *_args
, **_kwargs
)
511 if val
: val
= wxPenPtr(val
)
513 def RemovePen(self
, *_args
, **_kwargs
):
514 val
= gdic
.wxPenList_RemovePen(self
, *_args
, **_kwargs
)
516 def GetCount(self
, *_args
, **_kwargs
):
517 val
= gdic
.wxPenList_GetCount(self
, *_args
, **_kwargs
)
520 return "<%s.%s instance; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
521 class wxPenList(wxPenListPtr
):
522 def __init__(self
,this
):
528 class wxBrushPtr(wxGDIObjectPtr
):
529 def __init__(self
,this
):
532 def __del__(self
, delfunc
=gdic
.delete_wxBrush
):
533 if self
.thisown
== 1:
538 def GetColour(self
, *_args
, **_kwargs
):
539 val
= gdic
.wxBrush_GetColour(self
, *_args
, **_kwargs
)
540 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
542 def GetStipple(self
, *_args
, **_kwargs
):
543 val
= gdic
.wxBrush_GetStipple(self
, *_args
, **_kwargs
)
544 if val
: val
= wxBitmapPtr(val
)
546 def GetStyle(self
, *_args
, **_kwargs
):
547 val
= gdic
.wxBrush_GetStyle(self
, *_args
, **_kwargs
)
549 def Ok(self
, *_args
, **_kwargs
):
550 val
= gdic
.wxBrush_Ok(self
, *_args
, **_kwargs
)
552 def SetColour(self
, *_args
, **_kwargs
):
553 val
= gdic
.wxBrush_SetColour(self
, *_args
, **_kwargs
)
555 def SetStipple(self
, *_args
, **_kwargs
):
556 val
= gdic
.wxBrush_SetStipple(self
, *_args
, **_kwargs
)
558 def SetStyle(self
, *_args
, **_kwargs
):
559 val
= gdic
.wxBrush_SetStyle(self
, *_args
, **_kwargs
)
562 return "<%s.%s instance; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
563 def __nonzero__(self
): return self
.Ok()
564 class wxBrush(wxBrushPtr
):
565 def __init__(self
,*_args
,**_kwargs
):
566 self
.this
= gdic
.new_wxBrush(*_args
,**_kwargs
)
572 class wxBrushListPtr(wxObjectPtr
):
573 def __init__(self
,this
):
576 def AddBrush(self
, *_args
, **_kwargs
):
577 val
= gdic
.wxBrushList_AddBrush(self
, *_args
, **_kwargs
)
579 def FindOrCreateBrush(self
, *_args
, **_kwargs
):
580 val
= gdic
.wxBrushList_FindOrCreateBrush(self
, *_args
, **_kwargs
)
581 if val
: val
= wxBrushPtr(val
)
583 def RemoveBrush(self
, *_args
, **_kwargs
):
584 val
= gdic
.wxBrushList_RemoveBrush(self
, *_args
, **_kwargs
)
586 def GetCount(self
, *_args
, **_kwargs
):
587 val
= gdic
.wxBrushList_GetCount(self
, *_args
, **_kwargs
)
590 return "<%s.%s instance; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
591 class wxBrushList(wxBrushListPtr
):
592 def __init__(self
,this
):
598 class wxDCPtr(wxObjectPtr
):
599 def __init__(self
,this
):
602 def __del__(self
, delfunc
=gdic
.delete_wxDC
):
603 if self
.thisown
== 1:
608 def BeginDrawing(self
, *_args
, **_kwargs
):
609 val
= gdic
.wxDC_BeginDrawing(self
, *_args
, **_kwargs
)
611 def Blit(self
, *_args
, **_kwargs
):
612 val
= gdic
.wxDC_Blit(self
, *_args
, **_kwargs
)
614 def Clear(self
, *_args
, **_kwargs
):
615 val
= gdic
.wxDC_Clear(self
, *_args
, **_kwargs
)
617 def CrossHair(self
, *_args
, **_kwargs
):
618 val
= gdic
.wxDC_CrossHair(self
, *_args
, **_kwargs
)
620 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
621 val
= gdic
.wxDC_DestroyClippingRegion(self
, *_args
, **_kwargs
)
623 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
624 val
= gdic
.wxDC_DeviceToLogicalX(self
, *_args
, **_kwargs
)
626 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
627 val
= gdic
.wxDC_DeviceToLogicalXRel(self
, *_args
, **_kwargs
)
629 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
630 val
= gdic
.wxDC_DeviceToLogicalY(self
, *_args
, **_kwargs
)
632 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
633 val
= gdic
.wxDC_DeviceToLogicalYRel(self
, *_args
, **_kwargs
)
635 def DrawArc(self
, *_args
, **_kwargs
):
636 val
= gdic
.wxDC_DrawArc(self
, *_args
, **_kwargs
)
638 def DrawCircle(self
, *_args
, **_kwargs
):
639 val
= gdic
.wxDC_DrawCircle(self
, *_args
, **_kwargs
)
641 def DrawEllipse(self
, *_args
, **_kwargs
):
642 val
= gdic
.wxDC_DrawEllipse(self
, *_args
, **_kwargs
)
644 def DrawEllipticArc(self
, *_args
, **_kwargs
):
645 val
= gdic
.wxDC_DrawEllipticArc(self
, *_args
, **_kwargs
)
647 def DrawIcon(self
, *_args
, **_kwargs
):
648 val
= gdic
.wxDC_DrawIcon(self
, *_args
, **_kwargs
)
650 def DrawLabel(self
, *_args
, **_kwargs
):
651 val
= gdic
.wxDC_DrawLabel(self
, *_args
, **_kwargs
)
653 def DrawImageLabel(self
, *_args
, **_kwargs
):
654 val
= gdic
.wxDC_DrawImageLabel(self
, *_args
, **_kwargs
)
655 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
657 def DrawLine(self
, *_args
, **_kwargs
):
658 val
= gdic
.wxDC_DrawLine(self
, *_args
, **_kwargs
)
660 def DrawLines(self
, *_args
, **_kwargs
):
661 val
= gdic
.wxDC_DrawLines(self
, *_args
, **_kwargs
)
663 def DrawPolygon(self
, *_args
, **_kwargs
):
664 val
= gdic
.wxDC_DrawPolygon(self
, *_args
, **_kwargs
)
666 def DrawPoint(self
, *_args
, **_kwargs
):
667 val
= gdic
.wxDC_DrawPoint(self
, *_args
, **_kwargs
)
669 def DrawRectangle(self
, *_args
, **_kwargs
):
670 val
= gdic
.wxDC_DrawRectangle(self
, *_args
, **_kwargs
)
672 def DrawRectangleRect(self
, *_args
, **_kwargs
):
673 val
= gdic
.wxDC_DrawRectangleRect(self
, *_args
, **_kwargs
)
675 def DrawRotatedText(self
, *_args
, **_kwargs
):
676 val
= gdic
.wxDC_DrawRotatedText(self
, *_args
, **_kwargs
)
678 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
679 val
= gdic
.wxDC_DrawRoundedRectangle(self
, *_args
, **_kwargs
)
681 def DrawSpline(self
, *_args
, **_kwargs
):
682 val
= gdic
.wxDC_DrawSpline(self
, *_args
, **_kwargs
)
684 def DrawText(self
, *_args
, **_kwargs
):
685 val
= gdic
.wxDC_DrawText(self
, *_args
, **_kwargs
)
687 def EndDoc(self
, *_args
, **_kwargs
):
688 val
= gdic
.wxDC_EndDoc(self
, *_args
, **_kwargs
)
690 def EndDrawing(self
, *_args
, **_kwargs
):
691 val
= gdic
.wxDC_EndDrawing(self
, *_args
, **_kwargs
)
693 def EndPage(self
, *_args
, **_kwargs
):
694 val
= gdic
.wxDC_EndPage(self
, *_args
, **_kwargs
)
696 def FloodFill(self
, *_args
, **_kwargs
):
697 val
= gdic
.wxDC_FloodFill(self
, *_args
, **_kwargs
)
699 def GetBackground(self
, *_args
, **_kwargs
):
700 val
= gdic
.wxDC_GetBackground(self
, *_args
, **_kwargs
)
701 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
703 def GetBrush(self
, *_args
, **_kwargs
):
704 val
= gdic
.wxDC_GetBrush(self
, *_args
, **_kwargs
)
705 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
707 def GetCharHeight(self
, *_args
, **_kwargs
):
708 val
= gdic
.wxDC_GetCharHeight(self
, *_args
, **_kwargs
)
710 def GetCharWidth(self
, *_args
, **_kwargs
):
711 val
= gdic
.wxDC_GetCharWidth(self
, *_args
, **_kwargs
)
713 def GetClippingBox(self
, *_args
, **_kwargs
):
714 val
= gdic
.wxDC_GetClippingBox(self
, *_args
, **_kwargs
)
716 def GetFont(self
, *_args
, **_kwargs
):
717 val
= gdic
.wxDC_GetFont(self
, *_args
, **_kwargs
)
718 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
720 def GetLogicalFunction(self
, *_args
, **_kwargs
):
721 val
= gdic
.wxDC_GetLogicalFunction(self
, *_args
, **_kwargs
)
723 def GetLogicalScale(self
, *_args
, **_kwargs
):
724 val
= gdic
.wxDC_GetLogicalScale(self
, *_args
, **_kwargs
)
726 def GetMapMode(self
, *_args
, **_kwargs
):
727 val
= gdic
.wxDC_GetMapMode(self
, *_args
, **_kwargs
)
729 def GetOptimization(self
, *_args
, **_kwargs
):
730 val
= gdic
.wxDC_GetOptimization(self
, *_args
, **_kwargs
)
732 def GetPen(self
, *_args
, **_kwargs
):
733 val
= gdic
.wxDC_GetPen(self
, *_args
, **_kwargs
)
734 if val
: val
= wxPenPtr(val
) ; val
.thisown
= 1
736 def GetPixel(self
, *_args
, **_kwargs
):
737 val
= gdic
.wxDC_GetPixel(self
, *_args
, **_kwargs
)
738 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
740 def GetSizeTuple(self
, *_args
, **_kwargs
):
741 val
= gdic
.wxDC_GetSizeTuple(self
, *_args
, **_kwargs
)
743 def GetSize(self
, *_args
, **_kwargs
):
744 val
= gdic
.wxDC_GetSize(self
, *_args
, **_kwargs
)
745 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
747 def GetSizeMM(self
, *_args
, **_kwargs
):
748 val
= gdic
.wxDC_GetSizeMM(self
, *_args
, **_kwargs
)
749 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
751 def GetTextBackground(self
, *_args
, **_kwargs
):
752 val
= gdic
.wxDC_GetTextBackground(self
, *_args
, **_kwargs
)
753 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
755 def GetTextExtent(self
, *_args
, **_kwargs
):
756 val
= gdic
.wxDC_GetTextExtent(self
, *_args
, **_kwargs
)
758 def GetFullTextExtent(self
, *_args
, **_kwargs
):
759 val
= gdic
.wxDC_GetFullTextExtent(self
, *_args
, **_kwargs
)
761 def GetMultiLineTextExtent(self
, *_args
, **_kwargs
):
762 val
= gdic
.wxDC_GetMultiLineTextExtent(self
, *_args
, **_kwargs
)
764 def GetTextForeground(self
, *_args
, **_kwargs
):
765 val
= gdic
.wxDC_GetTextForeground(self
, *_args
, **_kwargs
)
766 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
768 def GetUserScale(self
, *_args
, **_kwargs
):
769 val
= gdic
.wxDC_GetUserScale(self
, *_args
, **_kwargs
)
771 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
772 val
= gdic
.wxDC_LogicalToDeviceX(self
, *_args
, **_kwargs
)
774 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
775 val
= gdic
.wxDC_LogicalToDeviceXRel(self
, *_args
, **_kwargs
)
777 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
778 val
= gdic
.wxDC_LogicalToDeviceY(self
, *_args
, **_kwargs
)
780 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
781 val
= gdic
.wxDC_LogicalToDeviceYRel(self
, *_args
, **_kwargs
)
783 def MaxX(self
, *_args
, **_kwargs
):
784 val
= gdic
.wxDC_MaxX(self
, *_args
, **_kwargs
)
786 def MaxY(self
, *_args
, **_kwargs
):
787 val
= gdic
.wxDC_MaxY(self
, *_args
, **_kwargs
)
789 def MinX(self
, *_args
, **_kwargs
):
790 val
= gdic
.wxDC_MinX(self
, *_args
, **_kwargs
)
792 def MinY(self
, *_args
, **_kwargs
):
793 val
= gdic
.wxDC_MinY(self
, *_args
, **_kwargs
)
795 def Ok(self
, *_args
, **_kwargs
):
796 val
= gdic
.wxDC_Ok(self
, *_args
, **_kwargs
)
798 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
799 val
= gdic
.wxDC_SetDeviceOrigin(self
, *_args
, **_kwargs
)
801 def SetBackground(self
, *_args
, **_kwargs
):
802 val
= gdic
.wxDC_SetBackground(self
, *_args
, **_kwargs
)
804 def SetBackgroundMode(self
, *_args
, **_kwargs
):
805 val
= gdic
.wxDC_SetBackgroundMode(self
, *_args
, **_kwargs
)
807 def SetClippingRegion(self
, *_args
, **_kwargs
):
808 val
= gdic
.wxDC_SetClippingRegion(self
, *_args
, **_kwargs
)
810 def SetClippingRegionAsRegion(self
, *_args
, **_kwargs
):
811 val
= gdic
.wxDC_SetClippingRegionAsRegion(self
, *_args
, **_kwargs
)
813 def SetClippingRect(self
, *_args
, **_kwargs
):
814 val
= gdic
.wxDC_SetClippingRect(self
, *_args
, **_kwargs
)
816 def SetPalette(self
, *_args
, **_kwargs
):
817 val
= gdic
.wxDC_SetPalette(self
, *_args
, **_kwargs
)
819 def SetBrush(self
, *_args
, **_kwargs
):
820 val
= gdic
.wxDC_SetBrush(self
, *_args
, **_kwargs
)
822 def SetFont(self
, *_args
, **_kwargs
):
823 val
= gdic
.wxDC_SetFont(self
, *_args
, **_kwargs
)
825 def SetLogicalFunction(self
, *_args
, **_kwargs
):
826 val
= gdic
.wxDC_SetLogicalFunction(self
, *_args
, **_kwargs
)
828 def SetLogicalScale(self
, *_args
, **_kwargs
):
829 val
= gdic
.wxDC_SetLogicalScale(self
, *_args
, **_kwargs
)
831 def SetMapMode(self
, *_args
, **_kwargs
):
832 val
= gdic
.wxDC_SetMapMode(self
, *_args
, **_kwargs
)
834 def SetOptimization(self
, *_args
, **_kwargs
):
835 val
= gdic
.wxDC_SetOptimization(self
, *_args
, **_kwargs
)
837 def SetPen(self
, *_args
, **_kwargs
):
838 val
= gdic
.wxDC_SetPen(self
, *_args
, **_kwargs
)
840 def SetTextBackground(self
, *_args
, **_kwargs
):
841 val
= gdic
.wxDC_SetTextBackground(self
, *_args
, **_kwargs
)
843 def SetTextForeground(self
, *_args
, **_kwargs
):
844 val
= gdic
.wxDC_SetTextForeground(self
, *_args
, **_kwargs
)
846 def SetUserScale(self
, *_args
, **_kwargs
):
847 val
= gdic
.wxDC_SetUserScale(self
, *_args
, **_kwargs
)
849 def StartDoc(self
, *_args
, **_kwargs
):
850 val
= gdic
.wxDC_StartDoc(self
, *_args
, **_kwargs
)
852 def StartPage(self
, *_args
, **_kwargs
):
853 val
= gdic
.wxDC_StartPage(self
, *_args
, **_kwargs
)
855 def DrawBitmap(self
, *_args
, **_kwargs
):
856 val
= gdic
.wxDC_DrawBitmap(self
, *_args
, **_kwargs
)
858 def CanDrawBitmap(self
, *_args
, **_kwargs
):
859 val
= gdic
.wxDC_CanDrawBitmap(self
, *_args
, **_kwargs
)
861 def CanGetTextExtent(self
, *_args
, **_kwargs
):
862 val
= gdic
.wxDC_CanGetTextExtent(self
, *_args
, **_kwargs
)
864 def GetDepth(self
, *_args
, **_kwargs
):
865 val
= gdic
.wxDC_GetDepth(self
, *_args
, **_kwargs
)
867 def GetPPI(self
, *_args
, **_kwargs
):
868 val
= gdic
.wxDC_GetPPI(self
, *_args
, **_kwargs
)
869 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
871 def GetLogicalOrigin(self
, *_args
, **_kwargs
):
872 val
= gdic
.wxDC_GetLogicalOrigin(self
, *_args
, **_kwargs
)
874 def SetLogicalOrigin(self
, *_args
, **_kwargs
):
875 val
= gdic
.wxDC_SetLogicalOrigin(self
, *_args
, **_kwargs
)
877 def GetDeviceOrigin(self
, *_args
, **_kwargs
):
878 val
= gdic
.wxDC_GetDeviceOrigin(self
, *_args
, **_kwargs
)
880 def SetAxisOrientation(self
, *_args
, **_kwargs
):
881 val
= gdic
.wxDC_SetAxisOrientation(self
, *_args
, **_kwargs
)
883 def CalcBoundingBox(self
, *_args
, **_kwargs
):
884 val
= gdic
.wxDC_CalcBoundingBox(self
, *_args
, **_kwargs
)
886 def ResetBoundingBox(self
, *_args
, **_kwargs
):
887 val
= gdic
.wxDC_ResetBoundingBox(self
, *_args
, **_kwargs
)
889 def GetBoundingBox(self
, *_args
, **_kwargs
):
890 val
= gdic
.wxDC_GetBoundingBox(self
, *_args
, **_kwargs
)
892 def GetHDC(self
, *_args
, **_kwargs
):
893 val
= gdic
.wxDC_GetHDC(self
, *_args
, **_kwargs
)
895 def _DrawPointList(self
, *_args
, **_kwargs
):
896 val
= gdic
.wxDC__DrawPointList(self
, *_args
, **_kwargs
)
898 def _DrawLineList(self
, *_args
, **_kwargs
):
899 val
= gdic
.wxDC__DrawLineList(self
, *_args
, **_kwargs
)
901 def _DrawRectangleList(self
, *_args
, **_kwargs
):
902 val
= gdic
.wxDC__DrawRectangleList(self
, *_args
, **_kwargs
)
904 def _DrawEllipseList(self
, *_args
, **_kwargs
):
905 val
= gdic
.wxDC__DrawEllipseList(self
, *_args
, **_kwargs
)
907 def _DrawPolygonList(self
, *_args
, **_kwargs
):
908 val
= gdic
.wxDC__DrawPolygonList(self
, *_args
, **_kwargs
)
910 def _DrawTextList(self
, *_args
, **_kwargs
):
911 val
= gdic
.wxDC__DrawTextList(self
, *_args
, **_kwargs
)
914 return "<%s.%s instance; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
915 def __nonzero__(self
): return self
.Ok()
917 def DrawPointList(self
, points
, pens
=None):
920 elif isinstance(pens
, wxPenPtr
):
922 elif len(pens
) != len(points
):
923 raise ValueError('points and pens must have same length')
924 return self
._DrawPointList
(points
, pens
, [])
927 def DrawLineList(self
, lines
, pens
=None):
930 elif isinstance(pens
, wxPenPtr
):
932 elif len(pens
) != len(lines
):
933 raise ValueError('lines and pens must have same length')
934 return self
._DrawLineList
(lines
, pens
, [])
937 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
940 elif isinstance(pens
, wxPenPtr
):
942 elif len(pens
) != len(rectangles
):
943 raise ValueError('rectangles and pens must have same length')
946 elif isinstance(brushes
, wxBrushPtr
):
948 elif len(brushes
) != len(rectangles
):
949 raise ValueError('rectangles and brushes must have same length')
950 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
953 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
956 elif isinstance(pens
, wxPenPtr
):
958 elif len(pens
) != len(ellipses
):
959 raise ValueError('ellipses and pens must have same length')
962 elif isinstance(brushes
, wxBrushPtr
):
964 elif len(brushes
) != len(ellipses
):
965 raise ValueError('ellipses and brushes must have same length')
966 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
969 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
970 ## Note: This does not currently support fill style or offset
971 ## you can always use the non-List version if need be.
972 ## I really would like to support fill-style, however,
973 ## but wxODDEVEN_RULE does not appear to be defined at the Python level
974 ## [It's in wx.py... --Robin]
977 elif isinstance(pens
, wxPenPtr
):
979 elif len(pens
) != len(polygons
):
980 raise ValueError('polygons and pens must have same length')
983 elif isinstance(brushes
, wxBrushPtr
):
985 elif len(brushes
) != len(polygons
):
986 raise ValueError('polygons and brushes must have same length')
987 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
990 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
991 ## NOTE: this does not currently support changing the font
992 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
993 ## If you want backgounds to do anything.
994 if type(textList
) == type(''):
995 textList
= [textList
]
996 elif len(textList
) != len(coords
):
997 raise ValueError('textlist and coords must have same length')
998 if foregrounds
is None:
1000 elif isinstance(foregrounds
, wxColourPtr
):
1001 foregrounds
= [foregrounds
]
1002 elif len(foregrounds
) != len(coords
):
1003 raise ValueError('foregrounds and coords must have same length')
1004 if backgrounds
is None:
1006 elif isinstance(backgrounds
, wxColourPtr
):
1007 backgrounds
= [backgrounds
]
1008 elif len(backgrounds
) != len(coords
):
1009 raise ValueError('backgrounds and coords must have same length')
1010 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
1012 class wxDC(wxDCPtr
):
1013 def __init__(self
,this
):
1019 class wxMemoryDCPtr(wxDCPtr
):
1020 def __init__(self
,this
):
1023 def SelectObject(self
, *_args
, **_kwargs
):
1024 val
= gdic
.wxMemoryDC_SelectObject(self
, *_args
, **_kwargs
)
1027 return "<%s.%s instance; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1028 class wxMemoryDC(wxMemoryDCPtr
):
1029 def __init__(self
,*_args
,**_kwargs
):
1030 self
.this
= gdic
.new_wxMemoryDC(*_args
,**_kwargs
)
1036 class wxBufferedDCPtr(wxMemoryDCPtr
):
1037 def __init__(self
,this
):
1040 def UnMask(self
, *_args
, **_kwargs
):
1041 val
= gdic
.wxBufferedDC_UnMask(self
, *_args
, **_kwargs
)
1044 return "<%s.%s instance; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1045 class wxBufferedDC(wxBufferedDCPtr
):
1046 def __init__(self
,*_args
,**_kwargs
):
1047 self
.this
= gdic
.new_wxBufferedDC(*_args
,**_kwargs
)
1049 self
._dc
= _args
[0] # save a ref so the other dc won't be deleted before self
1053 def wxBufferedDCInternalBuffer(*_args
,**_kwargs
):
1054 val
= wxBufferedDCPtr(gdic
.new_wxBufferedDCInternalBuffer(*_args
,**_kwargs
))
1056 val
._dc
= _args
[0] # save a ref so the other dc won't be deleted before self
1060 class wxBufferedPaintDCPtr(wxBufferedDCPtr
):
1061 def __init__(self
,this
):
1065 return "<%s.%s instance; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1066 class wxBufferedPaintDC(wxBufferedPaintDCPtr
):
1067 def __init__(self
,*_args
,**_kwargs
):
1068 self
.this
= gdic
.new_wxBufferedPaintDC(*_args
,**_kwargs
)
1074 class wxScreenDCPtr(wxDCPtr
):
1075 def __init__(self
,this
):
1078 def StartDrawingOnTopWin(self
, *_args
, **_kwargs
):
1079 val
= gdic
.wxScreenDC_StartDrawingOnTopWin(self
, *_args
, **_kwargs
)
1081 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
1082 val
= gdic
.wxScreenDC_StartDrawingOnTop(self
, *_args
, **_kwargs
)
1084 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
1085 val
= gdic
.wxScreenDC_EndDrawingOnTop(self
, *_args
, **_kwargs
)
1088 return "<%s.%s instance; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1089 class wxScreenDC(wxScreenDCPtr
):
1090 def __init__(self
,*_args
,**_kwargs
):
1091 self
.this
= gdic
.new_wxScreenDC(*_args
,**_kwargs
)
1097 class wxClientDCPtr(wxDCPtr
):
1098 def __init__(self
,this
):
1102 return "<%s.%s instance; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1103 class wxClientDC(wxClientDCPtr
):
1104 def __init__(self
,*_args
,**_kwargs
):
1105 self
.this
= gdic
.new_wxClientDC(*_args
,**_kwargs
)
1111 class wxPaintDCPtr(wxDCPtr
):
1112 def __init__(self
,this
):
1116 return "<%s.%s instance; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1117 class wxPaintDC(wxPaintDCPtr
):
1118 def __init__(self
,*_args
,**_kwargs
):
1119 self
.this
= gdic
.new_wxPaintDC(*_args
,**_kwargs
)
1125 class wxWindowDCPtr(wxDCPtr
):
1126 def __init__(self
,this
):
1130 return "<%s.%s instance; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1131 class wxWindowDC(wxWindowDCPtr
):
1132 def __init__(self
,*_args
,**_kwargs
):
1133 self
.this
= gdic
.new_wxWindowDC(*_args
,**_kwargs
)
1139 class wxMirrorDCPtr(wxDCPtr
):
1140 def __init__(self
,this
):
1144 return "<%s.%s instance; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1145 class wxMirrorDC(wxMirrorDCPtr
):
1146 def __init__(self
,*_args
,**_kwargs
):
1147 self
.this
= gdic
.new_wxMirrorDC(*_args
,**_kwargs
)
1153 class wxMetaFilePtr(wxObjectPtr
):
1154 def __init__(self
,this
):
1157 def __del__(self
, delfunc
=gdic
.delete_wxMetaFile
):
1158 if self
.thisown
== 1:
1163 def Ok(self
, *_args
, **_kwargs
):
1164 val
= gdic
.wxMetaFile_Ok(self
, *_args
, **_kwargs
)
1166 def SetClipboard(self
, *_args
, **_kwargs
):
1167 val
= gdic
.wxMetaFile_SetClipboard(self
, *_args
, **_kwargs
)
1169 def GetSize(self
, *_args
, **_kwargs
):
1170 val
= gdic
.wxMetaFile_GetSize(self
, *_args
, **_kwargs
)
1171 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
1173 def GetWidth(self
, *_args
, **_kwargs
):
1174 val
= gdic
.wxMetaFile_GetWidth(self
, *_args
, **_kwargs
)
1176 def GetHeight(self
, *_args
, **_kwargs
):
1177 val
= gdic
.wxMetaFile_GetHeight(self
, *_args
, **_kwargs
)
1179 def GetFileName(self
, *_args
, **_kwargs
):
1180 val
= gdic
.wxMetaFile_GetFileName(self
, *_args
, **_kwargs
)
1183 return "<%s.%s instance; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1184 def __nonzero__(self
): return self
.Ok()
1185 class wxMetaFile(wxMetaFilePtr
):
1186 def __init__(self
,*_args
,**_kwargs
):
1187 self
.this
= gdic
.new_wxMetaFile(*_args
,**_kwargs
)
1193 class wxMetaFileDCPtr(wxDCPtr
):
1194 def __init__(self
,this
):
1197 def Close(self
, *_args
, **_kwargs
):
1198 val
= gdic
.wxMetaFileDC_Close(self
, *_args
, **_kwargs
)
1199 if val
: val
= wxMetaFilePtr(val
)
1202 return "<%s.%s instance; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1203 class wxMetaFileDC(wxMetaFileDCPtr
):
1204 def __init__(self
,*_args
,**_kwargs
):
1205 self
.this
= gdic
.new_wxMetaFileDC(*_args
,**_kwargs
)
1211 class wxPalettePtr(wxGDIObjectPtr
):
1212 def __init__(self
,this
):
1215 def __del__(self
, delfunc
=gdic
.delete_wxPalette
):
1216 if self
.thisown
== 1:
1221 def GetPixel(self
, *_args
, **_kwargs
):
1222 val
= gdic
.wxPalette_GetPixel(self
, *_args
, **_kwargs
)
1224 def GetRGB(self
, *_args
, **_kwargs
):
1225 val
= gdic
.wxPalette_GetRGB(self
, *_args
, **_kwargs
)
1227 def Ok(self
, *_args
, **_kwargs
):
1228 val
= gdic
.wxPalette_Ok(self
, *_args
, **_kwargs
)
1231 return "<%s.%s instance; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1232 def __nonzero__(self
): return self
.Ok()
1233 class wxPalette(wxPalettePtr
):
1234 def __init__(self
,*_args
,**_kwargs
):
1235 self
.this
= gdic
.new_wxPalette(*_args
,**_kwargs
)
1241 class wxImageListPtr(wxObjectPtr
):
1242 def __init__(self
,this
):
1245 def __del__(self
, delfunc
=gdic
.delete_wxImageList
):
1246 if self
.thisown
== 1:
1251 def Add(self
, *_args
, **_kwargs
):
1252 val
= gdic
.wxImageList_Add(self
, *_args
, **_kwargs
)
1254 def AddWithColourMask(self
, *_args
, **_kwargs
):
1255 val
= gdic
.wxImageList_AddWithColourMask(self
, *_args
, **_kwargs
)
1257 def AddIcon(self
, *_args
, **_kwargs
):
1258 val
= gdic
.wxImageList_AddIcon(self
, *_args
, **_kwargs
)
1260 def Replace(self
, *_args
, **_kwargs
):
1261 val
= gdic
.wxImageList_Replace(self
, *_args
, **_kwargs
)
1263 def Draw(self
, *_args
, **_kwargs
):
1264 val
= gdic
.wxImageList_Draw(self
, *_args
, **_kwargs
)
1266 def GetImageCount(self
, *_args
, **_kwargs
):
1267 val
= gdic
.wxImageList_GetImageCount(self
, *_args
, **_kwargs
)
1269 def Remove(self
, *_args
, **_kwargs
):
1270 val
= gdic
.wxImageList_Remove(self
, *_args
, **_kwargs
)
1272 def RemoveAll(self
, *_args
, **_kwargs
):
1273 val
= gdic
.wxImageList_RemoveAll(self
, *_args
, **_kwargs
)
1275 def GetSize(self
, *_args
, **_kwargs
):
1276 val
= gdic
.wxImageList_GetSize(self
, *_args
, **_kwargs
)
1279 return "<%s.%s instance; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1280 class wxImageList(wxImageListPtr
):
1281 def __init__(self
,*_args
,**_kwargs
):
1282 self
.this
= gdic
.new_wxImageList(*_args
,**_kwargs
)
1288 class wxRegionPtr(wxGDIObjectPtr
):
1289 def __init__(self
,this
):
1292 def __del__(self
, delfunc
=gdic
.delete_wxRegion
):
1293 if self
.thisown
== 1:
1298 def Clear(self
, *_args
, **_kwargs
):
1299 val
= gdic
.wxRegion_Clear(self
, *_args
, **_kwargs
)
1301 def Offset(self
, *_args
, **_kwargs
):
1302 val
= gdic
.wxRegion_Offset(self
, *_args
, **_kwargs
)
1304 def Contains(self
, *_args
, **_kwargs
):
1305 val
= gdic
.wxRegion_Contains(self
, *_args
, **_kwargs
)
1307 def ContainsPoint(self
, *_args
, **_kwargs
):
1308 val
= gdic
.wxRegion_ContainsPoint(self
, *_args
, **_kwargs
)
1310 def ContainsRect(self
, *_args
, **_kwargs
):
1311 val
= gdic
.wxRegion_ContainsRect(self
, *_args
, **_kwargs
)
1313 def ContainsRectDim(self
, *_args
, **_kwargs
):
1314 val
= gdic
.wxRegion_ContainsRectDim(self
, *_args
, **_kwargs
)
1316 def GetBox(self
, *_args
, **_kwargs
):
1317 val
= gdic
.wxRegion_GetBox(self
, *_args
, **_kwargs
)
1318 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1320 def Intersect(self
, *_args
, **_kwargs
):
1321 val
= gdic
.wxRegion_Intersect(self
, *_args
, **_kwargs
)
1323 def IntersectRect(self
, *_args
, **_kwargs
):
1324 val
= gdic
.wxRegion_IntersectRect(self
, *_args
, **_kwargs
)
1326 def IntersectRegion(self
, *_args
, **_kwargs
):
1327 val
= gdic
.wxRegion_IntersectRegion(self
, *_args
, **_kwargs
)
1329 def IsEmpty(self
, *_args
, **_kwargs
):
1330 val
= gdic
.wxRegion_IsEmpty(self
, *_args
, **_kwargs
)
1332 def Union(self
, *_args
, **_kwargs
):
1333 val
= gdic
.wxRegion_Union(self
, *_args
, **_kwargs
)
1335 def UnionRect(self
, *_args
, **_kwargs
):
1336 val
= gdic
.wxRegion_UnionRect(self
, *_args
, **_kwargs
)
1338 def UnionRegion(self
, *_args
, **_kwargs
):
1339 val
= gdic
.wxRegion_UnionRegion(self
, *_args
, **_kwargs
)
1341 def Subtract(self
, *_args
, **_kwargs
):
1342 val
= gdic
.wxRegion_Subtract(self
, *_args
, **_kwargs
)
1344 def SubtractRect(self
, *_args
, **_kwargs
):
1345 val
= gdic
.wxRegion_SubtractRect(self
, *_args
, **_kwargs
)
1347 def SubtractRegion(self
, *_args
, **_kwargs
):
1348 val
= gdic
.wxRegion_SubtractRegion(self
, *_args
, **_kwargs
)
1350 def Xor(self
, *_args
, **_kwargs
):
1351 val
= gdic
.wxRegion_Xor(self
, *_args
, **_kwargs
)
1353 def XorRect(self
, *_args
, **_kwargs
):
1354 val
= gdic
.wxRegion_XorRect(self
, *_args
, **_kwargs
)
1356 def XorRegion(self
, *_args
, **_kwargs
):
1357 val
= gdic
.wxRegion_XorRegion(self
, *_args
, **_kwargs
)
1359 def ConvertToBitmap(self
, *_args
, **_kwargs
):
1360 val
= gdic
.wxRegion_ConvertToBitmap(self
, *_args
, **_kwargs
)
1361 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
1363 def UnionBitmap(self
, *_args
, **_kwargs
):
1364 val
= gdic
.wxRegion_UnionBitmap(self
, *_args
, **_kwargs
)
1367 return "<%s.%s instance; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1368 class wxRegion(wxRegionPtr
):
1369 def __init__(self
,*_args
,**_kwargs
):
1370 self
.this
= gdic
.new_wxRegion(*_args
,**_kwargs
)
1375 def wxRegionFromPoints(*_args
,**_kwargs
):
1376 val
= wxRegionPtr(gdic
.new_wxRegionFromPoints(*_args
,**_kwargs
))
1380 def wxRegionFromBitmap(*_args
,**_kwargs
):
1381 val
= wxRegionPtr(gdic
.new_wxRegionFromBitmap(*_args
,**_kwargs
))
1386 class wxRegionIteratorPtr(wxObjectPtr
):
1387 def __init__(self
,this
):
1390 def __del__(self
, delfunc
=gdic
.delete_wxRegionIterator
):
1391 if self
.thisown
== 1:
1396 def GetX(self
, *_args
, **_kwargs
):
1397 val
= gdic
.wxRegionIterator_GetX(self
, *_args
, **_kwargs
)
1399 def GetY(self
, *_args
, **_kwargs
):
1400 val
= gdic
.wxRegionIterator_GetY(self
, *_args
, **_kwargs
)
1402 def GetW(self
, *_args
, **_kwargs
):
1403 val
= gdic
.wxRegionIterator_GetW(self
, *_args
, **_kwargs
)
1405 def GetWidth(self
, *_args
, **_kwargs
):
1406 val
= gdic
.wxRegionIterator_GetWidth(self
, *_args
, **_kwargs
)
1408 def GetH(self
, *_args
, **_kwargs
):
1409 val
= gdic
.wxRegionIterator_GetH(self
, *_args
, **_kwargs
)
1411 def GetHeight(self
, *_args
, **_kwargs
):
1412 val
= gdic
.wxRegionIterator_GetHeight(self
, *_args
, **_kwargs
)
1414 def GetRect(self
, *_args
, **_kwargs
):
1415 val
= gdic
.wxRegionIterator_GetRect(self
, *_args
, **_kwargs
)
1416 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1418 def HaveRects(self
, *_args
, **_kwargs
):
1419 val
= gdic
.wxRegionIterator_HaveRects(self
, *_args
, **_kwargs
)
1421 def Reset(self
, *_args
, **_kwargs
):
1422 val
= gdic
.wxRegionIterator_Reset(self
, *_args
, **_kwargs
)
1424 def Next(self
, *_args
, **_kwargs
):
1425 val
= gdic
.wxRegionIterator_Next(self
, *_args
, **_kwargs
)
1427 def __nonzero__(self
, *_args
, **_kwargs
):
1428 val
= gdic
.wxRegionIterator___nonzero__(self
, *_args
, **_kwargs
)
1431 return "<%s.%s instance; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1432 class wxRegionIterator(wxRegionIteratorPtr
):
1433 def __init__(self
,*_args
,**_kwargs
):
1434 self
.this
= gdic
.new_wxRegionIterator(*_args
,**_kwargs
)
1442 #-------------- FUNCTION WRAPPERS ------------------
1444 def wxEmptyBitmap(*_args
, **_kwargs
):
1445 val
= gdic
.wxEmptyBitmap(*_args
,**_kwargs
)
1446 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1449 def wxBitmapFromXPMData(*_args
, **_kwargs
):
1450 val
= gdic
.wxBitmapFromXPMData(*_args
,**_kwargs
)
1451 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1454 def wxBitmapFromIcon(*_args
, **_kwargs
):
1455 val
= gdic
.wxBitmapFromIcon(*_args
,**_kwargs
)
1456 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1459 def wxBitmapFromBits(*_args
, **_kwargs
):
1460 val
= gdic
.wxBitmapFromBits(*_args
,**_kwargs
)
1461 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1464 def wxMaskColour(*_args
, **_kwargs
):
1465 val
= gdic
.wxMaskColour(*_args
,**_kwargs
)
1466 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
1469 def wxEmptyIcon(*_args
, **_kwargs
):
1470 val
= gdic
.wxEmptyIcon(*_args
,**_kwargs
)
1471 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1474 def wxIconFromXPMData(*_args
, **_kwargs
):
1475 val
= gdic
.wxIconFromXPMData(*_args
,**_kwargs
)
1476 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1479 def wxIconFromBitmap(*_args
, **_kwargs
):
1480 val
= gdic
.wxIconFromBitmap(*_args
,**_kwargs
)
1481 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1484 def wxIconFromLocation(*_args
, **_kwargs
):
1485 val
= gdic
.wxIconFromLocation(*_args
,**_kwargs
)
1486 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1489 def wxStockCursor(*_args
, **_kwargs
):
1490 val
= gdic
.wxStockCursor(*_args
,**_kwargs
)
1491 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1494 def wxCursorFromImage(*_args
, **_kwargs
):
1495 val
= gdic
.wxCursorFromImage(*_args
,**_kwargs
)
1496 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1499 def wxCursorFromBits(*_args
, **_kwargs
):
1500 val
= gdic
.wxCursorFromBits(*_args
,**_kwargs
)
1501 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1504 def wxNamedColour(*_args
, **_kwargs
):
1505 val
= gdic
.wxNamedColour(*_args
,**_kwargs
)
1506 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
1509 def wxMemoryDCFromDC(*_args
, **_kwargs
):
1510 val
= gdic
.wxMemoryDCFromDC(*_args
,**_kwargs
)
1511 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
1516 #-------------- VARIABLE WRAPPERS ------------------
1518 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
1519 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
1520 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
1521 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
1522 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
1523 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
1524 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE
1525 wxOutRegion
= gdic
.wxOutRegion
1526 wxPartRegion
= gdic
.wxPartRegion
1527 wxInRegion
= gdic
.wxInRegion
1529 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
1530 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
1531 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
1532 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
1533 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
1534 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
1535 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
1536 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
1537 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
1538 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
1539 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
1540 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
1541 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
1542 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
1543 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
1544 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
1545 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
1546 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
1547 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
1548 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
1549 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
1550 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
1551 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
1552 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
1553 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
1554 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
1555 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
1556 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
1557 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
1558 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
1559 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
1560 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
1561 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
1562 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
1563 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
1564 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
1565 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
1566 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
1567 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
1568 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
1569 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
1570 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
1571 wxTheFontList
= wxFontListPtr(gdic
.cvar
.wxTheFontList
)
1572 wxThePenList
= wxPenListPtr(gdic
.cvar
.wxThePenList
)
1573 wxTheBrushList
= wxBrushListPtr(gdic
.cvar
.wxTheBrushList
)
1574 wxTheColourDatabase
= wxColourDatabasePtr(gdic
.cvar
.wxTheColourDatabase
)