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 Ok(self
, *_args
, **_kwargs
):
65 val
= gdic
.wxBitmap_Ok(self
, *_args
, **_kwargs
)
67 def GetWidth(self
, *_args
, **_kwargs
):
68 val
= gdic
.wxBitmap_GetWidth(self
, *_args
, **_kwargs
)
70 def GetHeight(self
, *_args
, **_kwargs
):
71 val
= gdic
.wxBitmap_GetHeight(self
, *_args
, **_kwargs
)
73 def GetDepth(self
, *_args
, **_kwargs
):
74 val
= gdic
.wxBitmap_GetDepth(self
, *_args
, **_kwargs
)
76 def SetWidth(self
, *_args
, **_kwargs
):
77 val
= gdic
.wxBitmap_SetWidth(self
, *_args
, **_kwargs
)
79 def SetHeight(self
, *_args
, **_kwargs
):
80 val
= gdic
.wxBitmap_SetHeight(self
, *_args
, **_kwargs
)
82 def SetDepth(self
, *_args
, **_kwargs
):
83 val
= gdic
.wxBitmap_SetDepth(self
, *_args
, **_kwargs
)
85 def GetSubBitmap(self
, *_args
, **_kwargs
):
86 val
= gdic
.wxBitmap_GetSubBitmap(self
, *_args
, **_kwargs
)
87 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
89 def CopyFromIcon(self
, *_args
, **_kwargs
):
90 val
= gdic
.wxBitmap_CopyFromIcon(self
, *_args
, **_kwargs
)
93 return "<%s.%s instance; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
95 def SetMaskColour(self
, colour
):
96 mask
= wxMaskColour(self
, colour
)
99 def __nonzero__(self
): return self
.Ok()
100 class wxBitmap(wxBitmapPtr
):
101 def __init__(self
,*_args
,**_kwargs
):
102 self
.this
= gdic
.new_wxBitmap(*_args
,**_kwargs
)
108 class wxMaskPtr(wxObjectPtr
):
109 def __init__(self
,this
):
112 def Destroy(self
, *_args
, **_kwargs
):
113 val
= gdic
.wxMask_Destroy(self
, *_args
, **_kwargs
)
116 return "<%s.%s instance; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
117 class wxMask(wxMaskPtr
):
118 def __init__(self
,*_args
,**_kwargs
):
119 self
.this
= gdic
.new_wxMask(*_args
,**_kwargs
)
125 class wxIconPtr(wxGDIObjectPtr
):
126 def __init__(self
,this
):
129 def __del__(self
, delfunc
=gdic
.delete_wxIcon
):
130 if self
.thisown
== 1:
135 def LoadFile(self
, *_args
, **_kwargs
):
136 val
= gdic
.wxIcon_LoadFile(self
, *_args
, **_kwargs
)
138 def Ok(self
, *_args
, **_kwargs
):
139 val
= gdic
.wxIcon_Ok(self
, *_args
, **_kwargs
)
141 def GetWidth(self
, *_args
, **_kwargs
):
142 val
= gdic
.wxIcon_GetWidth(self
, *_args
, **_kwargs
)
144 def GetHeight(self
, *_args
, **_kwargs
):
145 val
= gdic
.wxIcon_GetHeight(self
, *_args
, **_kwargs
)
147 def GetDepth(self
, *_args
, **_kwargs
):
148 val
= gdic
.wxIcon_GetDepth(self
, *_args
, **_kwargs
)
150 def SetWidth(self
, *_args
, **_kwargs
):
151 val
= gdic
.wxIcon_SetWidth(self
, *_args
, **_kwargs
)
153 def SetHeight(self
, *_args
, **_kwargs
):
154 val
= gdic
.wxIcon_SetHeight(self
, *_args
, **_kwargs
)
156 def SetDepth(self
, *_args
, **_kwargs
):
157 val
= gdic
.wxIcon_SetDepth(self
, *_args
, **_kwargs
)
159 def CopyFromBitmap(self
, *_args
, **_kwargs
):
160 val
= gdic
.wxIcon_CopyFromBitmap(self
, *_args
, **_kwargs
)
163 return "<%s.%s instance; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
164 def __nonzero__(self
): return self
.Ok()
165 class wxIcon(wxIconPtr
):
166 def __init__(self
,*_args
,**_kwargs
):
167 self
.this
= gdic
.new_wxIcon(*_args
,**_kwargs
)
173 class wxIconBundlePtr
:
174 def __init__(self
,this
):
177 def __del__(self
, delfunc
=gdic
.delete_wxIconBundle
):
178 if self
.thisown
== 1:
183 def AddIcon(self
, *_args
, **_kwargs
):
184 val
= gdic
.wxIconBundle_AddIcon(self
, *_args
, **_kwargs
)
186 def AddIconFromFile(self
, *_args
, **_kwargs
):
187 val
= gdic
.wxIconBundle_AddIconFromFile(self
, *_args
, **_kwargs
)
189 def GetIcon(self
, *_args
, **_kwargs
):
190 val
= gdic
.wxIconBundle_GetIcon(self
, *_args
, **_kwargs
)
191 if val
: val
= wxIconPtr(val
)
194 return "<%s.%s instance; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
195 class wxIconBundle(wxIconBundlePtr
):
196 def __init__(self
,*_args
,**_kwargs
):
197 self
.this
= gdic
.new_wxIconBundle(*_args
,**_kwargs
)
202 def wxIconBundleFromFile(*_args
,**_kwargs
):
203 val
= wxIconBundlePtr(gdic
.new_wxIconBundleFromFile(*_args
,**_kwargs
))
207 def wxIconBundleFromIcon(*_args
,**_kwargs
):
208 val
= wxIconBundlePtr(gdic
.new_wxIconBundleFromIcon(*_args
,**_kwargs
))
213 class wxCursorPtr(wxGDIObjectPtr
):
214 def __init__(self
,this
):
217 def __del__(self
, delfunc
=gdic
.delete_wxCursor
):
218 if self
.thisown
== 1:
223 def Ok(self
, *_args
, **_kwargs
):
224 val
= gdic
.wxCursor_Ok(self
, *_args
, **_kwargs
)
227 return "<%s.%s instance; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
228 def __nonzero__(self
): return self
.Ok()
229 class wxCursor(wxCursorPtr
):
230 def __init__(self
,*_args
,**_kwargs
):
231 self
.this
= gdic
.new_wxCursor(*_args
,**_kwargs
)
237 class wxColourPtr(wxObjectPtr
):
238 def __init__(self
,this
):
241 def __del__(self
, delfunc
=gdic
.delete_wxColour
):
242 if self
.thisown
== 1:
247 def Red(self
, *_args
, **_kwargs
):
248 val
= gdic
.wxColour_Red(self
, *_args
, **_kwargs
)
250 def Green(self
, *_args
, **_kwargs
):
251 val
= gdic
.wxColour_Green(self
, *_args
, **_kwargs
)
253 def Blue(self
, *_args
, **_kwargs
):
254 val
= gdic
.wxColour_Blue(self
, *_args
, **_kwargs
)
256 def Ok(self
, *_args
, **_kwargs
):
257 val
= gdic
.wxColour_Ok(self
, *_args
, **_kwargs
)
259 def Set(self
, *_args
, **_kwargs
):
260 val
= gdic
.wxColour_Set(self
, *_args
, **_kwargs
)
262 def Get(self
, *_args
, **_kwargs
):
263 val
= gdic
.wxColour_Get(self
, *_args
, **_kwargs
)
265 def __eq__(self
, *_args
, **_kwargs
):
266 val
= gdic
.wxColour___eq__(self
, *_args
, **_kwargs
)
268 def __ne__(self
, *_args
, **_kwargs
):
269 val
= gdic
.wxColour___ne__(self
, *_args
, **_kwargs
)
272 return "<%s.%s instance; proxy of C++ wxColour instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
274 def __str__(self
): return str(self
.asTuple())
275 def __repr__(self
): return 'wxColour:' + str(self
.asTuple())
276 def __nonzero__(self
): return self
.Ok()
277 def __getinitargs__(self
): return ()
278 def __getstate__(self
): return self
.asTuple()
279 def __setstate__(self
, state
): self
.Set(*state
)
281 class wxColour(wxColourPtr
):
282 def __init__(self
,*_args
,**_kwargs
):
283 self
.this
= gdic
.new_wxColour(*_args
,**_kwargs
)
289 class wxColourDatabasePtr(wxObjectPtr
):
290 def __init__(self
,this
):
293 def FindColour(self
, *_args
, **_kwargs
):
294 val
= gdic
.wxColourDatabase_FindColour(self
, *_args
, **_kwargs
)
295 if val
: val
= wxColourPtr(val
)
297 def FindColourNoAdd(self
, *_args
, **_kwargs
):
298 val
= gdic
.wxColourDatabase_FindColourNoAdd(self
, *_args
, **_kwargs
)
299 if val
: val
= wxColourPtr(val
)
301 def FindName(self
, *_args
, **_kwargs
):
302 val
= gdic
.wxColourDatabase_FindName(self
, *_args
, **_kwargs
)
304 def AddColour(self
, *_args
, **_kwargs
):
305 val
= gdic
.wxColourDatabase_AddColour(self
, *_args
, **_kwargs
)
307 def Append(self
, *_args
, **_kwargs
):
308 val
= gdic
.wxColourDatabase_Append(self
, *_args
, **_kwargs
)
311 return "<%s.%s instance; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
312 class wxColourDatabase(wxColourDatabasePtr
):
313 def __init__(self
,this
):
319 class wxPenPtr(wxGDIObjectPtr
):
320 def __init__(self
,this
):
323 def __del__(self
, delfunc
=gdic
.delete_wxPen
):
324 if self
.thisown
== 1:
329 def GetCap(self
, *_args
, **_kwargs
):
330 val
= gdic
.wxPen_GetCap(self
, *_args
, **_kwargs
)
332 def GetColour(self
, *_args
, **_kwargs
):
333 val
= gdic
.wxPen_GetColour(self
, *_args
, **_kwargs
)
334 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
336 def GetJoin(self
, *_args
, **_kwargs
):
337 val
= gdic
.wxPen_GetJoin(self
, *_args
, **_kwargs
)
339 def GetStyle(self
, *_args
, **_kwargs
):
340 val
= gdic
.wxPen_GetStyle(self
, *_args
, **_kwargs
)
342 def GetWidth(self
, *_args
, **_kwargs
):
343 val
= gdic
.wxPen_GetWidth(self
, *_args
, **_kwargs
)
345 def Ok(self
, *_args
, **_kwargs
):
346 val
= gdic
.wxPen_Ok(self
, *_args
, **_kwargs
)
348 def SetCap(self
, *_args
, **_kwargs
):
349 val
= gdic
.wxPen_SetCap(self
, *_args
, **_kwargs
)
351 def SetColour(self
, *_args
, **_kwargs
):
352 val
= gdic
.wxPen_SetColour(self
, *_args
, **_kwargs
)
354 def SetJoin(self
, *_args
, **_kwargs
):
355 val
= gdic
.wxPen_SetJoin(self
, *_args
, **_kwargs
)
357 def SetStyle(self
, *_args
, **_kwargs
):
358 val
= gdic
.wxPen_SetStyle(self
, *_args
, **_kwargs
)
360 def SetWidth(self
, *_args
, **_kwargs
):
361 val
= gdic
.wxPen_SetWidth(self
, *_args
, **_kwargs
)
363 def SetDashes(self
, *_args
, **_kwargs
):
364 val
= gdic
.wxPen_SetDashes(self
, *_args
, **_kwargs
)
366 def GetDashes(self
, *_args
, **_kwargs
):
367 val
= gdic
.wxPen_GetDashes(self
, *_args
, **_kwargs
)
370 return "<%s.%s instance; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
371 def __nonzero__(self
): return self
.Ok()
372 class wxPen(wxPenPtr
):
373 def __init__(self
,*_args
,**_kwargs
):
374 self
.this
= gdic
.new_wxPen(*_args
,**_kwargs
)
380 class wxPyPenPtr(wxPenPtr
):
381 def __init__(self
,this
):
384 def __del__(self
, delfunc
=gdic
.delete_wxPyPen
):
385 if self
.thisown
== 1:
390 def SetDashes(self
, *_args
, **_kwargs
):
391 val
= gdic
.wxPyPen_SetDashes(self
, *_args
, **_kwargs
)
394 return "<%s.%s instance; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
395 class wxPyPen(wxPyPenPtr
):
396 def __init__(self
,*_args
,**_kwargs
):
397 self
.this
= gdic
.new_wxPyPen(*_args
,**_kwargs
)
403 class wxPenListPtr(wxObjectPtr
):
404 def __init__(self
,this
):
407 def AddPen(self
, *_args
, **_kwargs
):
408 val
= gdic
.wxPenList_AddPen(self
, *_args
, **_kwargs
)
410 def FindOrCreatePen(self
, *_args
, **_kwargs
):
411 val
= gdic
.wxPenList_FindOrCreatePen(self
, *_args
, **_kwargs
)
412 if val
: val
= wxPenPtr(val
)
414 def RemovePen(self
, *_args
, **_kwargs
):
415 val
= gdic
.wxPenList_RemovePen(self
, *_args
, **_kwargs
)
417 def GetCount(self
, *_args
, **_kwargs
):
418 val
= gdic
.wxPenList_GetCount(self
, *_args
, **_kwargs
)
421 return "<%s.%s instance; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
422 class wxPenList(wxPenListPtr
):
423 def __init__(self
,this
):
429 class wxBrushPtr(wxGDIObjectPtr
):
430 def __init__(self
,this
):
433 def __del__(self
, delfunc
=gdic
.delete_wxBrush
):
434 if self
.thisown
== 1:
439 def GetColour(self
, *_args
, **_kwargs
):
440 val
= gdic
.wxBrush_GetColour(self
, *_args
, **_kwargs
)
441 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
443 def GetStipple(self
, *_args
, **_kwargs
):
444 val
= gdic
.wxBrush_GetStipple(self
, *_args
, **_kwargs
)
445 if val
: val
= wxBitmapPtr(val
)
447 def GetStyle(self
, *_args
, **_kwargs
):
448 val
= gdic
.wxBrush_GetStyle(self
, *_args
, **_kwargs
)
450 def Ok(self
, *_args
, **_kwargs
):
451 val
= gdic
.wxBrush_Ok(self
, *_args
, **_kwargs
)
453 def SetColour(self
, *_args
, **_kwargs
):
454 val
= gdic
.wxBrush_SetColour(self
, *_args
, **_kwargs
)
456 def SetStipple(self
, *_args
, **_kwargs
):
457 val
= gdic
.wxBrush_SetStipple(self
, *_args
, **_kwargs
)
459 def SetStyle(self
, *_args
, **_kwargs
):
460 val
= gdic
.wxBrush_SetStyle(self
, *_args
, **_kwargs
)
463 return "<%s.%s instance; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
464 def __nonzero__(self
): return self
.Ok()
465 class wxBrush(wxBrushPtr
):
466 def __init__(self
,*_args
,**_kwargs
):
467 self
.this
= gdic
.new_wxBrush(*_args
,**_kwargs
)
473 class wxBrushListPtr(wxObjectPtr
):
474 def __init__(self
,this
):
477 def AddBrush(self
, *_args
, **_kwargs
):
478 val
= gdic
.wxBrushList_AddBrush(self
, *_args
, **_kwargs
)
480 def FindOrCreateBrush(self
, *_args
, **_kwargs
):
481 val
= gdic
.wxBrushList_FindOrCreateBrush(self
, *_args
, **_kwargs
)
482 if val
: val
= wxBrushPtr(val
)
484 def RemoveBrush(self
, *_args
, **_kwargs
):
485 val
= gdic
.wxBrushList_RemoveBrush(self
, *_args
, **_kwargs
)
487 def GetCount(self
, *_args
, **_kwargs
):
488 val
= gdic
.wxBrushList_GetCount(self
, *_args
, **_kwargs
)
491 return "<%s.%s instance; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
492 class wxBrushList(wxBrushListPtr
):
493 def __init__(self
,this
):
499 class wxDCPtr(wxObjectPtr
):
500 def __init__(self
,this
):
503 def __del__(self
, delfunc
=gdic
.delete_wxDC
):
504 if self
.thisown
== 1:
509 def BeginDrawing(self
, *_args
, **_kwargs
):
510 val
= gdic
.wxDC_BeginDrawing(self
, *_args
, **_kwargs
)
512 def Blit(self
, *_args
, **_kwargs
):
513 val
= gdic
.wxDC_Blit(self
, *_args
, **_kwargs
)
515 def Clear(self
, *_args
, **_kwargs
):
516 val
= gdic
.wxDC_Clear(self
, *_args
, **_kwargs
)
518 def CrossHair(self
, *_args
, **_kwargs
):
519 val
= gdic
.wxDC_CrossHair(self
, *_args
, **_kwargs
)
521 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
522 val
= gdic
.wxDC_DestroyClippingRegion(self
, *_args
, **_kwargs
)
524 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
525 val
= gdic
.wxDC_DeviceToLogicalX(self
, *_args
, **_kwargs
)
527 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
528 val
= gdic
.wxDC_DeviceToLogicalXRel(self
, *_args
, **_kwargs
)
530 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
531 val
= gdic
.wxDC_DeviceToLogicalY(self
, *_args
, **_kwargs
)
533 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
534 val
= gdic
.wxDC_DeviceToLogicalYRel(self
, *_args
, **_kwargs
)
536 def DrawArc(self
, *_args
, **_kwargs
):
537 val
= gdic
.wxDC_DrawArc(self
, *_args
, **_kwargs
)
539 def DrawCircle(self
, *_args
, **_kwargs
):
540 val
= gdic
.wxDC_DrawCircle(self
, *_args
, **_kwargs
)
542 def DrawEllipse(self
, *_args
, **_kwargs
):
543 val
= gdic
.wxDC_DrawEllipse(self
, *_args
, **_kwargs
)
545 def DrawEllipticArc(self
, *_args
, **_kwargs
):
546 val
= gdic
.wxDC_DrawEllipticArc(self
, *_args
, **_kwargs
)
548 def DrawIcon(self
, *_args
, **_kwargs
):
549 val
= gdic
.wxDC_DrawIcon(self
, *_args
, **_kwargs
)
551 def DrawLabel(self
, *_args
, **_kwargs
):
552 val
= gdic
.wxDC_DrawLabel(self
, *_args
, **_kwargs
)
554 def DrawImageLabel(self
, *_args
, **_kwargs
):
555 val
= gdic
.wxDC_DrawImageLabel(self
, *_args
, **_kwargs
)
556 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
558 def DrawLine(self
, *_args
, **_kwargs
):
559 val
= gdic
.wxDC_DrawLine(self
, *_args
, **_kwargs
)
561 def DrawLines(self
, *_args
, **_kwargs
):
562 val
= gdic
.wxDC_DrawLines(self
, *_args
, **_kwargs
)
564 def DrawPolygon(self
, *_args
, **_kwargs
):
565 val
= gdic
.wxDC_DrawPolygon(self
, *_args
, **_kwargs
)
567 def DrawPoint(self
, *_args
, **_kwargs
):
568 val
= gdic
.wxDC_DrawPoint(self
, *_args
, **_kwargs
)
570 def DrawRectangle(self
, *_args
, **_kwargs
):
571 val
= gdic
.wxDC_DrawRectangle(self
, *_args
, **_kwargs
)
573 def DrawRectangleRect(self
, *_args
, **_kwargs
):
574 val
= gdic
.wxDC_DrawRectangleRect(self
, *_args
, **_kwargs
)
576 def DrawRotatedText(self
, *_args
, **_kwargs
):
577 val
= gdic
.wxDC_DrawRotatedText(self
, *_args
, **_kwargs
)
579 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
580 val
= gdic
.wxDC_DrawRoundedRectangle(self
, *_args
, **_kwargs
)
582 def DrawSpline(self
, *_args
, **_kwargs
):
583 val
= gdic
.wxDC_DrawSpline(self
, *_args
, **_kwargs
)
585 def DrawText(self
, *_args
, **_kwargs
):
586 val
= gdic
.wxDC_DrawText(self
, *_args
, **_kwargs
)
588 def EndDoc(self
, *_args
, **_kwargs
):
589 val
= gdic
.wxDC_EndDoc(self
, *_args
, **_kwargs
)
591 def EndDrawing(self
, *_args
, **_kwargs
):
592 val
= gdic
.wxDC_EndDrawing(self
, *_args
, **_kwargs
)
594 def EndPage(self
, *_args
, **_kwargs
):
595 val
= gdic
.wxDC_EndPage(self
, *_args
, **_kwargs
)
597 def FloodFill(self
, *_args
, **_kwargs
):
598 val
= gdic
.wxDC_FloodFill(self
, *_args
, **_kwargs
)
600 def GetBackground(self
, *_args
, **_kwargs
):
601 val
= gdic
.wxDC_GetBackground(self
, *_args
, **_kwargs
)
602 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
604 def GetBrush(self
, *_args
, **_kwargs
):
605 val
= gdic
.wxDC_GetBrush(self
, *_args
, **_kwargs
)
606 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
608 def GetCharHeight(self
, *_args
, **_kwargs
):
609 val
= gdic
.wxDC_GetCharHeight(self
, *_args
, **_kwargs
)
611 def GetCharWidth(self
, *_args
, **_kwargs
):
612 val
= gdic
.wxDC_GetCharWidth(self
, *_args
, **_kwargs
)
614 def GetClippingBox(self
, *_args
, **_kwargs
):
615 val
= gdic
.wxDC_GetClippingBox(self
, *_args
, **_kwargs
)
617 def GetFont(self
, *_args
, **_kwargs
):
618 val
= gdic
.wxDC_GetFont(self
, *_args
, **_kwargs
)
619 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
621 def GetLogicalFunction(self
, *_args
, **_kwargs
):
622 val
= gdic
.wxDC_GetLogicalFunction(self
, *_args
, **_kwargs
)
624 def GetLogicalScale(self
, *_args
, **_kwargs
):
625 val
= gdic
.wxDC_GetLogicalScale(self
, *_args
, **_kwargs
)
627 def GetMapMode(self
, *_args
, **_kwargs
):
628 val
= gdic
.wxDC_GetMapMode(self
, *_args
, **_kwargs
)
630 def GetOptimization(self
, *_args
, **_kwargs
):
631 val
= gdic
.wxDC_GetOptimization(self
, *_args
, **_kwargs
)
633 def GetPen(self
, *_args
, **_kwargs
):
634 val
= gdic
.wxDC_GetPen(self
, *_args
, **_kwargs
)
635 if val
: val
= wxPenPtr(val
) ; val
.thisown
= 1
637 def GetPixel(self
, *_args
, **_kwargs
):
638 val
= gdic
.wxDC_GetPixel(self
, *_args
, **_kwargs
)
639 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
641 def GetSizeTuple(self
, *_args
, **_kwargs
):
642 val
= gdic
.wxDC_GetSizeTuple(self
, *_args
, **_kwargs
)
644 def GetSize(self
, *_args
, **_kwargs
):
645 val
= gdic
.wxDC_GetSize(self
, *_args
, **_kwargs
)
646 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
648 def GetSizeMM(self
, *_args
, **_kwargs
):
649 val
= gdic
.wxDC_GetSizeMM(self
, *_args
, **_kwargs
)
650 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
652 def GetTextBackground(self
, *_args
, **_kwargs
):
653 val
= gdic
.wxDC_GetTextBackground(self
, *_args
, **_kwargs
)
654 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
656 def GetTextExtent(self
, *_args
, **_kwargs
):
657 val
= gdic
.wxDC_GetTextExtent(self
, *_args
, **_kwargs
)
659 def GetFullTextExtent(self
, *_args
, **_kwargs
):
660 val
= gdic
.wxDC_GetFullTextExtent(self
, *_args
, **_kwargs
)
662 def GetMultiLineTextExtent(self
, *_args
, **_kwargs
):
663 val
= gdic
.wxDC_GetMultiLineTextExtent(self
, *_args
, **_kwargs
)
665 def GetTextForeground(self
, *_args
, **_kwargs
):
666 val
= gdic
.wxDC_GetTextForeground(self
, *_args
, **_kwargs
)
667 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
669 def GetUserScale(self
, *_args
, **_kwargs
):
670 val
= gdic
.wxDC_GetUserScale(self
, *_args
, **_kwargs
)
672 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
673 val
= gdic
.wxDC_LogicalToDeviceX(self
, *_args
, **_kwargs
)
675 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
676 val
= gdic
.wxDC_LogicalToDeviceXRel(self
, *_args
, **_kwargs
)
678 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
679 val
= gdic
.wxDC_LogicalToDeviceY(self
, *_args
, **_kwargs
)
681 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
682 val
= gdic
.wxDC_LogicalToDeviceYRel(self
, *_args
, **_kwargs
)
684 def MaxX(self
, *_args
, **_kwargs
):
685 val
= gdic
.wxDC_MaxX(self
, *_args
, **_kwargs
)
687 def MaxY(self
, *_args
, **_kwargs
):
688 val
= gdic
.wxDC_MaxY(self
, *_args
, **_kwargs
)
690 def MinX(self
, *_args
, **_kwargs
):
691 val
= gdic
.wxDC_MinX(self
, *_args
, **_kwargs
)
693 def MinY(self
, *_args
, **_kwargs
):
694 val
= gdic
.wxDC_MinY(self
, *_args
, **_kwargs
)
696 def Ok(self
, *_args
, **_kwargs
):
697 val
= gdic
.wxDC_Ok(self
, *_args
, **_kwargs
)
699 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
700 val
= gdic
.wxDC_SetDeviceOrigin(self
, *_args
, **_kwargs
)
702 def SetBackground(self
, *_args
, **_kwargs
):
703 val
= gdic
.wxDC_SetBackground(self
, *_args
, **_kwargs
)
705 def SetBackgroundMode(self
, *_args
, **_kwargs
):
706 val
= gdic
.wxDC_SetBackgroundMode(self
, *_args
, **_kwargs
)
708 def SetClippingRegion(self
, *_args
, **_kwargs
):
709 val
= gdic
.wxDC_SetClippingRegion(self
, *_args
, **_kwargs
)
711 def SetClippingRegionAsRegion(self
, *_args
, **_kwargs
):
712 val
= gdic
.wxDC_SetClippingRegionAsRegion(self
, *_args
, **_kwargs
)
714 def SetClippingRect(self
, *_args
, **_kwargs
):
715 val
= gdic
.wxDC_SetClippingRect(self
, *_args
, **_kwargs
)
717 def SetPalette(self
, *_args
, **_kwargs
):
718 val
= gdic
.wxDC_SetPalette(self
, *_args
, **_kwargs
)
720 def SetBrush(self
, *_args
, **_kwargs
):
721 val
= gdic
.wxDC_SetBrush(self
, *_args
, **_kwargs
)
723 def SetFont(self
, *_args
, **_kwargs
):
724 val
= gdic
.wxDC_SetFont(self
, *_args
, **_kwargs
)
726 def SetLogicalFunction(self
, *_args
, **_kwargs
):
727 val
= gdic
.wxDC_SetLogicalFunction(self
, *_args
, **_kwargs
)
729 def SetLogicalScale(self
, *_args
, **_kwargs
):
730 val
= gdic
.wxDC_SetLogicalScale(self
, *_args
, **_kwargs
)
732 def SetMapMode(self
, *_args
, **_kwargs
):
733 val
= gdic
.wxDC_SetMapMode(self
, *_args
, **_kwargs
)
735 def SetOptimization(self
, *_args
, **_kwargs
):
736 val
= gdic
.wxDC_SetOptimization(self
, *_args
, **_kwargs
)
738 def SetPen(self
, *_args
, **_kwargs
):
739 val
= gdic
.wxDC_SetPen(self
, *_args
, **_kwargs
)
741 def SetTextBackground(self
, *_args
, **_kwargs
):
742 val
= gdic
.wxDC_SetTextBackground(self
, *_args
, **_kwargs
)
744 def SetTextForeground(self
, *_args
, **_kwargs
):
745 val
= gdic
.wxDC_SetTextForeground(self
, *_args
, **_kwargs
)
747 def SetUserScale(self
, *_args
, **_kwargs
):
748 val
= gdic
.wxDC_SetUserScale(self
, *_args
, **_kwargs
)
750 def StartDoc(self
, *_args
, **_kwargs
):
751 val
= gdic
.wxDC_StartDoc(self
, *_args
, **_kwargs
)
753 def StartPage(self
, *_args
, **_kwargs
):
754 val
= gdic
.wxDC_StartPage(self
, *_args
, **_kwargs
)
756 def DrawBitmap(self
, *_args
, **_kwargs
):
757 val
= gdic
.wxDC_DrawBitmap(self
, *_args
, **_kwargs
)
759 def CanDrawBitmap(self
, *_args
, **_kwargs
):
760 val
= gdic
.wxDC_CanDrawBitmap(self
, *_args
, **_kwargs
)
762 def CanGetTextExtent(self
, *_args
, **_kwargs
):
763 val
= gdic
.wxDC_CanGetTextExtent(self
, *_args
, **_kwargs
)
765 def GetDepth(self
, *_args
, **_kwargs
):
766 val
= gdic
.wxDC_GetDepth(self
, *_args
, **_kwargs
)
768 def GetPPI(self
, *_args
, **_kwargs
):
769 val
= gdic
.wxDC_GetPPI(self
, *_args
, **_kwargs
)
770 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
772 def GetLogicalOrigin(self
, *_args
, **_kwargs
):
773 val
= gdic
.wxDC_GetLogicalOrigin(self
, *_args
, **_kwargs
)
775 def SetLogicalOrigin(self
, *_args
, **_kwargs
):
776 val
= gdic
.wxDC_SetLogicalOrigin(self
, *_args
, **_kwargs
)
778 def GetDeviceOrigin(self
, *_args
, **_kwargs
):
779 val
= gdic
.wxDC_GetDeviceOrigin(self
, *_args
, **_kwargs
)
781 def SetAxisOrientation(self
, *_args
, **_kwargs
):
782 val
= gdic
.wxDC_SetAxisOrientation(self
, *_args
, **_kwargs
)
784 def CalcBoundingBox(self
, *_args
, **_kwargs
):
785 val
= gdic
.wxDC_CalcBoundingBox(self
, *_args
, **_kwargs
)
787 def ResetBoundingBox(self
, *_args
, **_kwargs
):
788 val
= gdic
.wxDC_ResetBoundingBox(self
, *_args
, **_kwargs
)
790 def GetBoundingBox(self
, *_args
, **_kwargs
):
791 val
= gdic
.wxDC_GetBoundingBox(self
, *_args
, **_kwargs
)
793 def _DrawPointList(self
, *_args
, **_kwargs
):
794 val
= gdic
.wxDC__DrawPointList(self
, *_args
, **_kwargs
)
796 def _DrawLineList(self
, *_args
, **_kwargs
):
797 val
= gdic
.wxDC__DrawLineList(self
, *_args
, **_kwargs
)
799 def _DrawRectangleList(self
, *_args
, **_kwargs
):
800 val
= gdic
.wxDC__DrawRectangleList(self
, *_args
, **_kwargs
)
802 def _DrawEllipseList(self
, *_args
, **_kwargs
):
803 val
= gdic
.wxDC__DrawEllipseList(self
, *_args
, **_kwargs
)
805 def _DrawPolygonList(self
, *_args
, **_kwargs
):
806 val
= gdic
.wxDC__DrawPolygonList(self
, *_args
, **_kwargs
)
808 def _DrawTextList(self
, *_args
, **_kwargs
):
809 val
= gdic
.wxDC__DrawTextList(self
, *_args
, **_kwargs
)
812 return "<%s.%s instance; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
813 def __nonzero__(self
): return self
.Ok()
815 def DrawPointList(self
, points
, pens
=None):
818 elif isinstance(pens
, wxPenPtr
):
820 elif len(pens
) != len(points
):
821 raise ValueError('points and pens must have same length')
822 return self
._DrawPointList
(points
, pens
, [])
825 def DrawLineList(self
, lines
, pens
=None):
828 elif isinstance(pens
, wxPenPtr
):
830 elif len(pens
) != len(lines
):
831 raise ValueError('lines and pens must have same length')
832 return self
._DrawLineList
(lines
, pens
, [])
835 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
838 elif isinstance(pens
, wxPenPtr
):
840 elif len(pens
) != len(rectangles
):
841 raise ValueError('rectangles and pens must have same length')
844 elif isinstance(brushes
, wxBrushPtr
):
846 elif len(brushes
) != len(rectangles
):
847 raise ValueError('rectangles and brushes must have same length')
848 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
851 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
854 elif isinstance(pens
, wxPenPtr
):
856 elif len(pens
) != len(ellipses
):
857 raise ValueError('ellipses and pens must have same length')
860 elif isinstance(brushes
, wxBrushPtr
):
862 elif len(brushes
) != len(ellipses
):
863 raise ValueError('ellipses and brushes must have same length')
864 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
867 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
868 ## Note: This does not currently support fill style or offset
869 ## you can always use the non-List version if need be.
870 ## I really would like to support fill-style, however,
871 ## but wxODDEVEN_RULE does not appear to be defined at the Python level
872 ## [It's in wx.py... --Robin]
875 elif isinstance(pens
, wxPenPtr
):
877 elif len(pens
) != len(polygons
):
878 raise ValueError('polygons and pens must have same length')
881 elif isinstance(brushes
, wxBrushPtr
):
883 elif len(brushes
) != len(polygons
):
884 raise ValueError('polygons and brushes must have same length')
885 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
888 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
889 ## NOTE: this does not currently support changing the font
890 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
891 ## If you want backgounds to do anything.
892 if type(textList
) == type(''):
893 textList
= [textList
]
894 elif len(textList
) != len(coords
):
895 raise ValueError('textlist and coords must have same length')
896 if foregrounds
is None:
898 elif isinstance(foregrounds
, wxColourPtr
):
899 foregrounds
= [foregrounds
]
900 elif len(foregrounds
) != len(coords
):
901 raise ValueError('foregrounds and coords must have same length')
902 if backgrounds
is None:
904 elif isinstance(backgrounds
, wxColourPtr
):
905 backgrounds
= [backgrounds
]
906 elif len(backgrounds
) != len(coords
):
907 raise ValueError('backgrounds and coords must have same length')
908 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
911 def __init__(self
,this
):
917 class wxMemoryDCPtr(wxDCPtr
):
918 def __init__(self
,this
):
921 def SelectObject(self
, *_args
, **_kwargs
):
922 val
= gdic
.wxMemoryDC_SelectObject(self
, *_args
, **_kwargs
)
925 return "<%s.%s instance; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
926 class wxMemoryDC(wxMemoryDCPtr
):
927 def __init__(self
,*_args
,**_kwargs
):
928 self
.this
= gdic
.new_wxMemoryDC(*_args
,**_kwargs
)
934 class wxBufferedDCPtr(wxMemoryDCPtr
):
935 def __init__(self
,this
):
938 def UnMask(self
, *_args
, **_kwargs
):
939 val
= gdic
.wxBufferedDC_UnMask(self
, *_args
, **_kwargs
)
942 return "<%s.%s instance; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
943 class wxBufferedDC(wxBufferedDCPtr
):
944 def __init__(self
,*_args
,**_kwargs
):
945 self
.this
= gdic
.new_wxBufferedDC(*_args
,**_kwargs
)
947 self
._dc
= _args
[0] # save a ref so the other dc won't be deleted before self
951 def wxBufferedDCInternalBuffer(*_args
,**_kwargs
):
952 val
= wxBufferedDCPtr(gdic
.new_wxBufferedDCInternalBuffer(*_args
,**_kwargs
))
954 val
._dc
= _args
[0] # save a ref so the other dc won't be deleted before self
958 class wxBufferedPaintDCPtr(wxBufferedDCPtr
):
959 def __init__(self
,this
):
963 return "<%s.%s instance; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
964 class wxBufferedPaintDC(wxBufferedPaintDCPtr
):
965 def __init__(self
,*_args
,**_kwargs
):
966 self
.this
= gdic
.new_wxBufferedPaintDC(*_args
,**_kwargs
)
972 class wxScreenDCPtr(wxDCPtr
):
973 def __init__(self
,this
):
976 def StartDrawingOnTopWin(self
, *_args
, **_kwargs
):
977 val
= gdic
.wxScreenDC_StartDrawingOnTopWin(self
, *_args
, **_kwargs
)
979 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
980 val
= gdic
.wxScreenDC_StartDrawingOnTop(self
, *_args
, **_kwargs
)
982 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
983 val
= gdic
.wxScreenDC_EndDrawingOnTop(self
, *_args
, **_kwargs
)
986 return "<%s.%s instance; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
987 class wxScreenDC(wxScreenDCPtr
):
988 def __init__(self
,*_args
,**_kwargs
):
989 self
.this
= gdic
.new_wxScreenDC(*_args
,**_kwargs
)
995 class wxClientDCPtr(wxDCPtr
):
996 def __init__(self
,this
):
1000 return "<%s.%s instance; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1001 class wxClientDC(wxClientDCPtr
):
1002 def __init__(self
,*_args
,**_kwargs
):
1003 self
.this
= gdic
.new_wxClientDC(*_args
,**_kwargs
)
1009 class wxPaintDCPtr(wxDCPtr
):
1010 def __init__(self
,this
):
1014 return "<%s.%s instance; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1015 class wxPaintDC(wxPaintDCPtr
):
1016 def __init__(self
,*_args
,**_kwargs
):
1017 self
.this
= gdic
.new_wxPaintDC(*_args
,**_kwargs
)
1023 class wxWindowDCPtr(wxDCPtr
):
1024 def __init__(self
,this
):
1028 return "<%s.%s instance; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1029 class wxWindowDC(wxWindowDCPtr
):
1030 def __init__(self
,*_args
,**_kwargs
):
1031 self
.this
= gdic
.new_wxWindowDC(*_args
,**_kwargs
)
1037 class wxPalettePtr(wxGDIObjectPtr
):
1038 def __init__(self
,this
):
1041 def __del__(self
, delfunc
=gdic
.delete_wxPalette
):
1042 if self
.thisown
== 1:
1047 def GetPixel(self
, *_args
, **_kwargs
):
1048 val
= gdic
.wxPalette_GetPixel(self
, *_args
, **_kwargs
)
1050 def GetRGB(self
, *_args
, **_kwargs
):
1051 val
= gdic
.wxPalette_GetRGB(self
, *_args
, **_kwargs
)
1053 def Ok(self
, *_args
, **_kwargs
):
1054 val
= gdic
.wxPalette_Ok(self
, *_args
, **_kwargs
)
1057 return "<%s.%s instance; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1058 def __nonzero__(self
): return self
.Ok()
1059 class wxPalette(wxPalettePtr
):
1060 def __init__(self
,*_args
,**_kwargs
):
1061 self
.this
= gdic
.new_wxPalette(*_args
,**_kwargs
)
1067 class wxImageListPtr(wxObjectPtr
):
1068 def __init__(self
,this
):
1071 def __del__(self
, delfunc
=gdic
.delete_wxImageList
):
1072 if self
.thisown
== 1:
1077 def Add(self
, *_args
, **_kwargs
):
1078 val
= gdic
.wxImageList_Add(self
, *_args
, **_kwargs
)
1080 def AddWithColourMask(self
, *_args
, **_kwargs
):
1081 val
= gdic
.wxImageList_AddWithColourMask(self
, *_args
, **_kwargs
)
1083 def AddIcon(self
, *_args
, **_kwargs
):
1084 val
= gdic
.wxImageList_AddIcon(self
, *_args
, **_kwargs
)
1086 def Replace(self
, *_args
, **_kwargs
):
1087 val
= gdic
.wxImageList_Replace(self
, *_args
, **_kwargs
)
1089 def Draw(self
, *_args
, **_kwargs
):
1090 val
= gdic
.wxImageList_Draw(self
, *_args
, **_kwargs
)
1092 def GetImageCount(self
, *_args
, **_kwargs
):
1093 val
= gdic
.wxImageList_GetImageCount(self
, *_args
, **_kwargs
)
1095 def Remove(self
, *_args
, **_kwargs
):
1096 val
= gdic
.wxImageList_Remove(self
, *_args
, **_kwargs
)
1098 def RemoveAll(self
, *_args
, **_kwargs
):
1099 val
= gdic
.wxImageList_RemoveAll(self
, *_args
, **_kwargs
)
1101 def GetSize(self
, *_args
, **_kwargs
):
1102 val
= gdic
.wxImageList_GetSize(self
, *_args
, **_kwargs
)
1105 return "<%s.%s instance; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1106 class wxImageList(wxImageListPtr
):
1107 def __init__(self
,*_args
,**_kwargs
):
1108 self
.this
= gdic
.new_wxImageList(*_args
,**_kwargs
)
1114 class wxRegionPtr(wxGDIObjectPtr
):
1115 def __init__(self
,this
):
1118 def __del__(self
, delfunc
=gdic
.delete_wxRegion
):
1119 if self
.thisown
== 1:
1124 def Clear(self
, *_args
, **_kwargs
):
1125 val
= gdic
.wxRegion_Clear(self
, *_args
, **_kwargs
)
1127 def Offset(self
, *_args
, **_kwargs
):
1128 val
= gdic
.wxRegion_Offset(self
, *_args
, **_kwargs
)
1130 def Contains(self
, *_args
, **_kwargs
):
1131 val
= gdic
.wxRegion_Contains(self
, *_args
, **_kwargs
)
1133 def ContainsPoint(self
, *_args
, **_kwargs
):
1134 val
= gdic
.wxRegion_ContainsPoint(self
, *_args
, **_kwargs
)
1136 def ContainsRect(self
, *_args
, **_kwargs
):
1137 val
= gdic
.wxRegion_ContainsRect(self
, *_args
, **_kwargs
)
1139 def ContainsRectDim(self
, *_args
, **_kwargs
):
1140 val
= gdic
.wxRegion_ContainsRectDim(self
, *_args
, **_kwargs
)
1142 def GetBox(self
, *_args
, **_kwargs
):
1143 val
= gdic
.wxRegion_GetBox(self
, *_args
, **_kwargs
)
1144 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1146 def Intersect(self
, *_args
, **_kwargs
):
1147 val
= gdic
.wxRegion_Intersect(self
, *_args
, **_kwargs
)
1149 def IntersectRect(self
, *_args
, **_kwargs
):
1150 val
= gdic
.wxRegion_IntersectRect(self
, *_args
, **_kwargs
)
1152 def IntersectRegion(self
, *_args
, **_kwargs
):
1153 val
= gdic
.wxRegion_IntersectRegion(self
, *_args
, **_kwargs
)
1155 def IsEmpty(self
, *_args
, **_kwargs
):
1156 val
= gdic
.wxRegion_IsEmpty(self
, *_args
, **_kwargs
)
1158 def Union(self
, *_args
, **_kwargs
):
1159 val
= gdic
.wxRegion_Union(self
, *_args
, **_kwargs
)
1161 def UnionRect(self
, *_args
, **_kwargs
):
1162 val
= gdic
.wxRegion_UnionRect(self
, *_args
, **_kwargs
)
1164 def UnionRegion(self
, *_args
, **_kwargs
):
1165 val
= gdic
.wxRegion_UnionRegion(self
, *_args
, **_kwargs
)
1167 def Subtract(self
, *_args
, **_kwargs
):
1168 val
= gdic
.wxRegion_Subtract(self
, *_args
, **_kwargs
)
1170 def SubtractRect(self
, *_args
, **_kwargs
):
1171 val
= gdic
.wxRegion_SubtractRect(self
, *_args
, **_kwargs
)
1173 def SubtractRegion(self
, *_args
, **_kwargs
):
1174 val
= gdic
.wxRegion_SubtractRegion(self
, *_args
, **_kwargs
)
1176 def Xor(self
, *_args
, **_kwargs
):
1177 val
= gdic
.wxRegion_Xor(self
, *_args
, **_kwargs
)
1179 def XorRect(self
, *_args
, **_kwargs
):
1180 val
= gdic
.wxRegion_XorRect(self
, *_args
, **_kwargs
)
1182 def XorRegion(self
, *_args
, **_kwargs
):
1183 val
= gdic
.wxRegion_XorRegion(self
, *_args
, **_kwargs
)
1185 def ConvertToBitmap(self
, *_args
, **_kwargs
):
1186 val
= gdic
.wxRegion_ConvertToBitmap(self
, *_args
, **_kwargs
)
1187 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
1189 def UnionBitmap(self
, *_args
, **_kwargs
):
1190 val
= gdic
.wxRegion_UnionBitmap(self
, *_args
, **_kwargs
)
1193 return "<%s.%s instance; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1194 class wxRegion(wxRegionPtr
):
1195 def __init__(self
,*_args
,**_kwargs
):
1196 self
.this
= gdic
.new_wxRegion(*_args
,**_kwargs
)
1201 def wxRegionFromPoints(*_args
,**_kwargs
):
1202 val
= wxRegionPtr(gdic
.new_wxRegionFromPoints(*_args
,**_kwargs
))
1206 def wxRegionFromBitmap(*_args
,**_kwargs
):
1207 val
= wxRegionPtr(gdic
.new_wxRegionFromBitmap(*_args
,**_kwargs
))
1212 class wxRegionIteratorPtr(wxObjectPtr
):
1213 def __init__(self
,this
):
1216 def __del__(self
, delfunc
=gdic
.delete_wxRegionIterator
):
1217 if self
.thisown
== 1:
1222 def GetX(self
, *_args
, **_kwargs
):
1223 val
= gdic
.wxRegionIterator_GetX(self
, *_args
, **_kwargs
)
1225 def GetY(self
, *_args
, **_kwargs
):
1226 val
= gdic
.wxRegionIterator_GetY(self
, *_args
, **_kwargs
)
1228 def GetW(self
, *_args
, **_kwargs
):
1229 val
= gdic
.wxRegionIterator_GetW(self
, *_args
, **_kwargs
)
1231 def GetWidth(self
, *_args
, **_kwargs
):
1232 val
= gdic
.wxRegionIterator_GetWidth(self
, *_args
, **_kwargs
)
1234 def GetH(self
, *_args
, **_kwargs
):
1235 val
= gdic
.wxRegionIterator_GetH(self
, *_args
, **_kwargs
)
1237 def GetHeight(self
, *_args
, **_kwargs
):
1238 val
= gdic
.wxRegionIterator_GetHeight(self
, *_args
, **_kwargs
)
1240 def GetRect(self
, *_args
, **_kwargs
):
1241 val
= gdic
.wxRegionIterator_GetRect(self
, *_args
, **_kwargs
)
1242 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1244 def HaveRects(self
, *_args
, **_kwargs
):
1245 val
= gdic
.wxRegionIterator_HaveRects(self
, *_args
, **_kwargs
)
1247 def Reset(self
, *_args
, **_kwargs
):
1248 val
= gdic
.wxRegionIterator_Reset(self
, *_args
, **_kwargs
)
1250 def Next(self
, *_args
, **_kwargs
):
1251 val
= gdic
.wxRegionIterator_Next(self
, *_args
, **_kwargs
)
1254 return "<%s.%s instance; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1255 class wxRegionIterator(wxRegionIteratorPtr
):
1256 def __init__(self
,*_args
,**_kwargs
):
1257 self
.this
= gdic
.new_wxRegionIterator(*_args
,**_kwargs
)
1265 #-------------- FUNCTION WRAPPERS ------------------
1267 def wxEmptyBitmap(*_args
, **_kwargs
):
1268 val
= gdic
.wxEmptyBitmap(*_args
,**_kwargs
)
1269 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1272 def wxBitmapFromXPMData(*_args
, **_kwargs
):
1273 val
= gdic
.wxBitmapFromXPMData(*_args
,**_kwargs
)
1274 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1277 def wxBitmapFromIcon(*_args
, **_kwargs
):
1278 val
= gdic
.wxBitmapFromIcon(*_args
,**_kwargs
)
1279 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1282 def wxBitmapFromBits(*_args
, **_kwargs
):
1283 val
= gdic
.wxBitmapFromBits(*_args
,**_kwargs
)
1284 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1287 def wxMaskColour(*_args
, **_kwargs
):
1288 val
= gdic
.wxMaskColour(*_args
,**_kwargs
)
1289 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
1292 def wxEmptyIcon(*_args
, **_kwargs
):
1293 val
= gdic
.wxEmptyIcon(*_args
,**_kwargs
)
1294 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1297 def wxIconFromXPMData(*_args
, **_kwargs
):
1298 val
= gdic
.wxIconFromXPMData(*_args
,**_kwargs
)
1299 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1302 def wxIconFromBitmap(*_args
, **_kwargs
):
1303 val
= gdic
.wxIconFromBitmap(*_args
,**_kwargs
)
1304 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1307 def wxStockCursor(*_args
, **_kwargs
):
1308 val
= gdic
.wxStockCursor(*_args
,**_kwargs
)
1309 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1312 def wxCursorFromImage(*_args
, **_kwargs
):
1313 val
= gdic
.wxCursorFromImage(*_args
,**_kwargs
)
1314 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1317 def wxCursorFromBits(*_args
, **_kwargs
):
1318 val
= gdic
.wxCursorFromBits(*_args
,**_kwargs
)
1319 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1322 def wxNamedColour(*_args
, **_kwargs
):
1323 val
= gdic
.wxNamedColour(*_args
,**_kwargs
)
1324 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
1327 def wxMemoryDCFromDC(*_args
, **_kwargs
):
1328 val
= gdic
.wxMemoryDCFromDC(*_args
,**_kwargs
)
1329 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
1334 #-------------- VARIABLE WRAPPERS ------------------
1336 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
1337 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
1338 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
1339 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
1340 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
1341 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
1342 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE
1343 wxOutRegion
= gdic
.wxOutRegion
1344 wxPartRegion
= gdic
.wxPartRegion
1345 wxInRegion
= gdic
.wxInRegion
1347 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
1348 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
1349 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
1350 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
1351 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
1352 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
1353 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
1354 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
1355 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
1356 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
1357 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
1358 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
1359 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
1360 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
1361 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
1362 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
1363 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
1364 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
1365 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
1366 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
1367 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
1368 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
1369 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
1370 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
1371 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
1372 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
1373 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
1374 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
1375 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
1376 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
1377 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
1378 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
1379 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
1380 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
1381 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
1382 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
1383 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
1384 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
1385 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
1386 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
1387 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
1388 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
1389 wxTheFontList
= wxFontListPtr(gdic
.cvar
.wxTheFontList
)
1390 wxThePenList
= wxPenListPtr(gdic
.cvar
.wxThePenList
)
1391 wxTheBrushList
= wxBrushListPtr(gdic
.cvar
.wxTheBrushList
)
1392 wxTheColourDatabase
= wxColourDatabasePtr(gdic
.cvar
.wxTheColourDatabase
)