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 wxIconLocationPtr
:
174 def __init__(self
,this
):
177 def __del__(self
, delfunc
=gdic
.delete_wxIconLocation
):
178 if self
.thisown
== 1:
183 def IsOk(self
, *_args
, **_kwargs
):
184 val
= gdic
.wxIconLocation_IsOk(self
, *_args
, **_kwargs
)
186 def SetFileName(self
, *_args
, **_kwargs
):
187 val
= gdic
.wxIconLocation_SetFileName(self
, *_args
, **_kwargs
)
189 def GetFileName(self
, *_args
, **_kwargs
):
190 val
= gdic
.wxIconLocation_GetFileName(self
, *_args
, **_kwargs
)
192 def SetIndex(self
, *_args
, **_kwargs
):
193 val
= gdic
.wxIconLocation_SetIndex(self
, *_args
, **_kwargs
)
195 def GetIndex(self
, *_args
, **_kwargs
):
196 val
= gdic
.wxIconLocation_GetIndex(self
, *_args
, **_kwargs
)
199 return "<%s.%s instance; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
200 class wxIconLocation(wxIconLocationPtr
):
201 def __init__(self
,*_args
,**_kwargs
):
202 self
.this
= gdic
.new_wxIconLocation(*_args
,**_kwargs
)
208 class wxIconBundlePtr
:
209 def __init__(self
,this
):
212 def __del__(self
, delfunc
=gdic
.delete_wxIconBundle
):
213 if self
.thisown
== 1:
218 def AddIcon(self
, *_args
, **_kwargs
):
219 val
= gdic
.wxIconBundle_AddIcon(self
, *_args
, **_kwargs
)
221 def AddIconFromFile(self
, *_args
, **_kwargs
):
222 val
= gdic
.wxIconBundle_AddIconFromFile(self
, *_args
, **_kwargs
)
224 def GetIcon(self
, *_args
, **_kwargs
):
225 val
= gdic
.wxIconBundle_GetIcon(self
, *_args
, **_kwargs
)
226 if val
: val
= wxIconPtr(val
)
229 return "<%s.%s instance; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
230 class wxIconBundle(wxIconBundlePtr
):
231 def __init__(self
,*_args
,**_kwargs
):
232 self
.this
= gdic
.new_wxIconBundle(*_args
,**_kwargs
)
237 def wxIconBundleFromFile(*_args
,**_kwargs
):
238 val
= wxIconBundlePtr(gdic
.new_wxIconBundleFromFile(*_args
,**_kwargs
))
242 def wxIconBundleFromIcon(*_args
,**_kwargs
):
243 val
= wxIconBundlePtr(gdic
.new_wxIconBundleFromIcon(*_args
,**_kwargs
))
248 class wxCursorPtr(wxGDIObjectPtr
):
249 def __init__(self
,this
):
252 def __del__(self
, delfunc
=gdic
.delete_wxCursor
):
253 if self
.thisown
== 1:
258 def Ok(self
, *_args
, **_kwargs
):
259 val
= gdic
.wxCursor_Ok(self
, *_args
, **_kwargs
)
262 return "<%s.%s instance; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
263 def __nonzero__(self
): return self
.Ok()
264 class wxCursor(wxCursorPtr
):
265 def __init__(self
,*_args
,**_kwargs
):
266 self
.this
= gdic
.new_wxCursor(*_args
,**_kwargs
)
272 class wxColourPtr(wxObjectPtr
):
273 def __init__(self
,this
):
276 def __del__(self
, delfunc
=gdic
.delete_wxColour
):
277 if self
.thisown
== 1:
282 def Red(self
, *_args
, **_kwargs
):
283 val
= gdic
.wxColour_Red(self
, *_args
, **_kwargs
)
285 def Green(self
, *_args
, **_kwargs
):
286 val
= gdic
.wxColour_Green(self
, *_args
, **_kwargs
)
288 def Blue(self
, *_args
, **_kwargs
):
289 val
= gdic
.wxColour_Blue(self
, *_args
, **_kwargs
)
291 def Ok(self
, *_args
, **_kwargs
):
292 val
= gdic
.wxColour_Ok(self
, *_args
, **_kwargs
)
294 def Set(self
, *_args
, **_kwargs
):
295 val
= gdic
.wxColour_Set(self
, *_args
, **_kwargs
)
297 def Get(self
, *_args
, **_kwargs
):
298 val
= gdic
.wxColour_Get(self
, *_args
, **_kwargs
)
300 def __eq__(self
, *_args
, **_kwargs
):
301 val
= gdic
.wxColour___eq__(self
, *_args
, **_kwargs
)
303 def __ne__(self
, *_args
, **_kwargs
):
304 val
= gdic
.wxColour___ne__(self
, *_args
, **_kwargs
)
307 return "<%s.%s instance; proxy of C++ wxColour instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
309 def __str__(self
): return str(self
.asTuple())
310 def __repr__(self
): return 'wxColour' + str(self
.asTuple())
311 def __nonzero__(self
): return self
.Ok()
312 def __getinitargs__(self
): return ()
313 def __getstate__(self
): return self
.asTuple()
314 def __setstate__(self
, state
): self
.Set(*state
)
316 class wxColour(wxColourPtr
):
317 def __init__(self
,*_args
,**_kwargs
):
318 self
.this
= gdic
.new_wxColour(*_args
,**_kwargs
)
324 class wxColourDatabasePtr(wxObjectPtr
):
325 def __init__(self
,this
):
328 def FindColour(self
, *_args
, **_kwargs
):
329 val
= gdic
.wxColourDatabase_FindColour(self
, *_args
, **_kwargs
)
330 if val
: val
= wxColourPtr(val
)
332 def FindColourNoAdd(self
, *_args
, **_kwargs
):
333 val
= gdic
.wxColourDatabase_FindColourNoAdd(self
, *_args
, **_kwargs
)
334 if val
: val
= wxColourPtr(val
)
336 def FindName(self
, *_args
, **_kwargs
):
337 val
= gdic
.wxColourDatabase_FindName(self
, *_args
, **_kwargs
)
339 def AddColour(self
, *_args
, **_kwargs
):
340 val
= gdic
.wxColourDatabase_AddColour(self
, *_args
, **_kwargs
)
342 def Append(self
, *_args
, **_kwargs
):
343 val
= gdic
.wxColourDatabase_Append(self
, *_args
, **_kwargs
)
346 return "<%s.%s instance; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
347 class wxColourDatabase(wxColourDatabasePtr
):
348 def __init__(self
,this
):
354 class wxPenPtr(wxGDIObjectPtr
):
355 def __init__(self
,this
):
358 def __del__(self
, delfunc
=gdic
.delete_wxPen
):
359 if self
.thisown
== 1:
364 def GetCap(self
, *_args
, **_kwargs
):
365 val
= gdic
.wxPen_GetCap(self
, *_args
, **_kwargs
)
367 def GetColour(self
, *_args
, **_kwargs
):
368 val
= gdic
.wxPen_GetColour(self
, *_args
, **_kwargs
)
369 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
371 def GetJoin(self
, *_args
, **_kwargs
):
372 val
= gdic
.wxPen_GetJoin(self
, *_args
, **_kwargs
)
374 def GetStyle(self
, *_args
, **_kwargs
):
375 val
= gdic
.wxPen_GetStyle(self
, *_args
, **_kwargs
)
377 def GetWidth(self
, *_args
, **_kwargs
):
378 val
= gdic
.wxPen_GetWidth(self
, *_args
, **_kwargs
)
380 def Ok(self
, *_args
, **_kwargs
):
381 val
= gdic
.wxPen_Ok(self
, *_args
, **_kwargs
)
383 def SetCap(self
, *_args
, **_kwargs
):
384 val
= gdic
.wxPen_SetCap(self
, *_args
, **_kwargs
)
386 def SetColour(self
, *_args
, **_kwargs
):
387 val
= gdic
.wxPen_SetColour(self
, *_args
, **_kwargs
)
389 def SetJoin(self
, *_args
, **_kwargs
):
390 val
= gdic
.wxPen_SetJoin(self
, *_args
, **_kwargs
)
392 def SetStyle(self
, *_args
, **_kwargs
):
393 val
= gdic
.wxPen_SetStyle(self
, *_args
, **_kwargs
)
395 def SetWidth(self
, *_args
, **_kwargs
):
396 val
= gdic
.wxPen_SetWidth(self
, *_args
, **_kwargs
)
398 def SetDashes(self
, *_args
, **_kwargs
):
399 val
= gdic
.wxPen_SetDashes(self
, *_args
, **_kwargs
)
401 def GetDashes(self
, *_args
, **_kwargs
):
402 val
= gdic
.wxPen_GetDashes(self
, *_args
, **_kwargs
)
405 return "<%s.%s instance; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
406 def __nonzero__(self
): return self
.Ok()
407 class wxPen(wxPenPtr
):
408 def __init__(self
,*_args
,**_kwargs
):
409 self
.this
= gdic
.new_wxPen(*_args
,**_kwargs
)
415 class wxPyPenPtr(wxPenPtr
):
416 def __init__(self
,this
):
419 def __del__(self
, delfunc
=gdic
.delete_wxPyPen
):
420 if self
.thisown
== 1:
425 def SetDashes(self
, *_args
, **_kwargs
):
426 val
= gdic
.wxPyPen_SetDashes(self
, *_args
, **_kwargs
)
429 return "<%s.%s instance; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
430 class wxPyPen(wxPyPenPtr
):
431 def __init__(self
,*_args
,**_kwargs
):
432 self
.this
= gdic
.new_wxPyPen(*_args
,**_kwargs
)
438 class wxPenListPtr(wxObjectPtr
):
439 def __init__(self
,this
):
442 def AddPen(self
, *_args
, **_kwargs
):
443 val
= gdic
.wxPenList_AddPen(self
, *_args
, **_kwargs
)
445 def FindOrCreatePen(self
, *_args
, **_kwargs
):
446 val
= gdic
.wxPenList_FindOrCreatePen(self
, *_args
, **_kwargs
)
447 if val
: val
= wxPenPtr(val
)
449 def RemovePen(self
, *_args
, **_kwargs
):
450 val
= gdic
.wxPenList_RemovePen(self
, *_args
, **_kwargs
)
452 def GetCount(self
, *_args
, **_kwargs
):
453 val
= gdic
.wxPenList_GetCount(self
, *_args
, **_kwargs
)
456 return "<%s.%s instance; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
457 class wxPenList(wxPenListPtr
):
458 def __init__(self
,this
):
464 class wxBrushPtr(wxGDIObjectPtr
):
465 def __init__(self
,this
):
468 def __del__(self
, delfunc
=gdic
.delete_wxBrush
):
469 if self
.thisown
== 1:
474 def GetColour(self
, *_args
, **_kwargs
):
475 val
= gdic
.wxBrush_GetColour(self
, *_args
, **_kwargs
)
476 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
478 def GetStipple(self
, *_args
, **_kwargs
):
479 val
= gdic
.wxBrush_GetStipple(self
, *_args
, **_kwargs
)
480 if val
: val
= wxBitmapPtr(val
)
482 def GetStyle(self
, *_args
, **_kwargs
):
483 val
= gdic
.wxBrush_GetStyle(self
, *_args
, **_kwargs
)
485 def Ok(self
, *_args
, **_kwargs
):
486 val
= gdic
.wxBrush_Ok(self
, *_args
, **_kwargs
)
488 def SetColour(self
, *_args
, **_kwargs
):
489 val
= gdic
.wxBrush_SetColour(self
, *_args
, **_kwargs
)
491 def SetStipple(self
, *_args
, **_kwargs
):
492 val
= gdic
.wxBrush_SetStipple(self
, *_args
, **_kwargs
)
494 def SetStyle(self
, *_args
, **_kwargs
):
495 val
= gdic
.wxBrush_SetStyle(self
, *_args
, **_kwargs
)
498 return "<%s.%s instance; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
499 def __nonzero__(self
): return self
.Ok()
500 class wxBrush(wxBrushPtr
):
501 def __init__(self
,*_args
,**_kwargs
):
502 self
.this
= gdic
.new_wxBrush(*_args
,**_kwargs
)
508 class wxBrushListPtr(wxObjectPtr
):
509 def __init__(self
,this
):
512 def AddBrush(self
, *_args
, **_kwargs
):
513 val
= gdic
.wxBrushList_AddBrush(self
, *_args
, **_kwargs
)
515 def FindOrCreateBrush(self
, *_args
, **_kwargs
):
516 val
= gdic
.wxBrushList_FindOrCreateBrush(self
, *_args
, **_kwargs
)
517 if val
: val
= wxBrushPtr(val
)
519 def RemoveBrush(self
, *_args
, **_kwargs
):
520 val
= gdic
.wxBrushList_RemoveBrush(self
, *_args
, **_kwargs
)
522 def GetCount(self
, *_args
, **_kwargs
):
523 val
= gdic
.wxBrushList_GetCount(self
, *_args
, **_kwargs
)
526 return "<%s.%s instance; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
527 class wxBrushList(wxBrushListPtr
):
528 def __init__(self
,this
):
534 class wxDCPtr(wxObjectPtr
):
535 def __init__(self
,this
):
538 def __del__(self
, delfunc
=gdic
.delete_wxDC
):
539 if self
.thisown
== 1:
544 def BeginDrawing(self
, *_args
, **_kwargs
):
545 val
= gdic
.wxDC_BeginDrawing(self
, *_args
, **_kwargs
)
547 def Blit(self
, *_args
, **_kwargs
):
548 val
= gdic
.wxDC_Blit(self
, *_args
, **_kwargs
)
550 def Clear(self
, *_args
, **_kwargs
):
551 val
= gdic
.wxDC_Clear(self
, *_args
, **_kwargs
)
553 def CrossHair(self
, *_args
, **_kwargs
):
554 val
= gdic
.wxDC_CrossHair(self
, *_args
, **_kwargs
)
556 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
557 val
= gdic
.wxDC_DestroyClippingRegion(self
, *_args
, **_kwargs
)
559 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
560 val
= gdic
.wxDC_DeviceToLogicalX(self
, *_args
, **_kwargs
)
562 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
563 val
= gdic
.wxDC_DeviceToLogicalXRel(self
, *_args
, **_kwargs
)
565 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
566 val
= gdic
.wxDC_DeviceToLogicalY(self
, *_args
, **_kwargs
)
568 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
569 val
= gdic
.wxDC_DeviceToLogicalYRel(self
, *_args
, **_kwargs
)
571 def DrawArc(self
, *_args
, **_kwargs
):
572 val
= gdic
.wxDC_DrawArc(self
, *_args
, **_kwargs
)
574 def DrawCircle(self
, *_args
, **_kwargs
):
575 val
= gdic
.wxDC_DrawCircle(self
, *_args
, **_kwargs
)
577 def DrawEllipse(self
, *_args
, **_kwargs
):
578 val
= gdic
.wxDC_DrawEllipse(self
, *_args
, **_kwargs
)
580 def DrawEllipticArc(self
, *_args
, **_kwargs
):
581 val
= gdic
.wxDC_DrawEllipticArc(self
, *_args
, **_kwargs
)
583 def DrawIcon(self
, *_args
, **_kwargs
):
584 val
= gdic
.wxDC_DrawIcon(self
, *_args
, **_kwargs
)
586 def DrawLabel(self
, *_args
, **_kwargs
):
587 val
= gdic
.wxDC_DrawLabel(self
, *_args
, **_kwargs
)
589 def DrawImageLabel(self
, *_args
, **_kwargs
):
590 val
= gdic
.wxDC_DrawImageLabel(self
, *_args
, **_kwargs
)
591 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
593 def DrawLine(self
, *_args
, **_kwargs
):
594 val
= gdic
.wxDC_DrawLine(self
, *_args
, **_kwargs
)
596 def DrawLines(self
, *_args
, **_kwargs
):
597 val
= gdic
.wxDC_DrawLines(self
, *_args
, **_kwargs
)
599 def DrawPolygon(self
, *_args
, **_kwargs
):
600 val
= gdic
.wxDC_DrawPolygon(self
, *_args
, **_kwargs
)
602 def DrawPoint(self
, *_args
, **_kwargs
):
603 val
= gdic
.wxDC_DrawPoint(self
, *_args
, **_kwargs
)
605 def DrawRectangle(self
, *_args
, **_kwargs
):
606 val
= gdic
.wxDC_DrawRectangle(self
, *_args
, **_kwargs
)
608 def DrawRectangleRect(self
, *_args
, **_kwargs
):
609 val
= gdic
.wxDC_DrawRectangleRect(self
, *_args
, **_kwargs
)
611 def DrawRotatedText(self
, *_args
, **_kwargs
):
612 val
= gdic
.wxDC_DrawRotatedText(self
, *_args
, **_kwargs
)
614 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
615 val
= gdic
.wxDC_DrawRoundedRectangle(self
, *_args
, **_kwargs
)
617 def DrawSpline(self
, *_args
, **_kwargs
):
618 val
= gdic
.wxDC_DrawSpline(self
, *_args
, **_kwargs
)
620 def DrawText(self
, *_args
, **_kwargs
):
621 val
= gdic
.wxDC_DrawText(self
, *_args
, **_kwargs
)
623 def EndDoc(self
, *_args
, **_kwargs
):
624 val
= gdic
.wxDC_EndDoc(self
, *_args
, **_kwargs
)
626 def EndDrawing(self
, *_args
, **_kwargs
):
627 val
= gdic
.wxDC_EndDrawing(self
, *_args
, **_kwargs
)
629 def EndPage(self
, *_args
, **_kwargs
):
630 val
= gdic
.wxDC_EndPage(self
, *_args
, **_kwargs
)
632 def FloodFill(self
, *_args
, **_kwargs
):
633 val
= gdic
.wxDC_FloodFill(self
, *_args
, **_kwargs
)
635 def GetBackground(self
, *_args
, **_kwargs
):
636 val
= gdic
.wxDC_GetBackground(self
, *_args
, **_kwargs
)
637 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
639 def GetBrush(self
, *_args
, **_kwargs
):
640 val
= gdic
.wxDC_GetBrush(self
, *_args
, **_kwargs
)
641 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
643 def GetCharHeight(self
, *_args
, **_kwargs
):
644 val
= gdic
.wxDC_GetCharHeight(self
, *_args
, **_kwargs
)
646 def GetCharWidth(self
, *_args
, **_kwargs
):
647 val
= gdic
.wxDC_GetCharWidth(self
, *_args
, **_kwargs
)
649 def GetClippingBox(self
, *_args
, **_kwargs
):
650 val
= gdic
.wxDC_GetClippingBox(self
, *_args
, **_kwargs
)
652 def GetFont(self
, *_args
, **_kwargs
):
653 val
= gdic
.wxDC_GetFont(self
, *_args
, **_kwargs
)
654 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
656 def GetLogicalFunction(self
, *_args
, **_kwargs
):
657 val
= gdic
.wxDC_GetLogicalFunction(self
, *_args
, **_kwargs
)
659 def GetLogicalScale(self
, *_args
, **_kwargs
):
660 val
= gdic
.wxDC_GetLogicalScale(self
, *_args
, **_kwargs
)
662 def GetMapMode(self
, *_args
, **_kwargs
):
663 val
= gdic
.wxDC_GetMapMode(self
, *_args
, **_kwargs
)
665 def GetOptimization(self
, *_args
, **_kwargs
):
666 val
= gdic
.wxDC_GetOptimization(self
, *_args
, **_kwargs
)
668 def GetPen(self
, *_args
, **_kwargs
):
669 val
= gdic
.wxDC_GetPen(self
, *_args
, **_kwargs
)
670 if val
: val
= wxPenPtr(val
) ; val
.thisown
= 1
672 def GetPixel(self
, *_args
, **_kwargs
):
673 val
= gdic
.wxDC_GetPixel(self
, *_args
, **_kwargs
)
674 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
676 def GetSizeTuple(self
, *_args
, **_kwargs
):
677 val
= gdic
.wxDC_GetSizeTuple(self
, *_args
, **_kwargs
)
679 def GetSize(self
, *_args
, **_kwargs
):
680 val
= gdic
.wxDC_GetSize(self
, *_args
, **_kwargs
)
681 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
683 def GetSizeMM(self
, *_args
, **_kwargs
):
684 val
= gdic
.wxDC_GetSizeMM(self
, *_args
, **_kwargs
)
685 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
687 def GetTextBackground(self
, *_args
, **_kwargs
):
688 val
= gdic
.wxDC_GetTextBackground(self
, *_args
, **_kwargs
)
689 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
691 def GetTextExtent(self
, *_args
, **_kwargs
):
692 val
= gdic
.wxDC_GetTextExtent(self
, *_args
, **_kwargs
)
694 def GetFullTextExtent(self
, *_args
, **_kwargs
):
695 val
= gdic
.wxDC_GetFullTextExtent(self
, *_args
, **_kwargs
)
697 def GetMultiLineTextExtent(self
, *_args
, **_kwargs
):
698 val
= gdic
.wxDC_GetMultiLineTextExtent(self
, *_args
, **_kwargs
)
700 def GetTextForeground(self
, *_args
, **_kwargs
):
701 val
= gdic
.wxDC_GetTextForeground(self
, *_args
, **_kwargs
)
702 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
704 def GetUserScale(self
, *_args
, **_kwargs
):
705 val
= gdic
.wxDC_GetUserScale(self
, *_args
, **_kwargs
)
707 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
708 val
= gdic
.wxDC_LogicalToDeviceX(self
, *_args
, **_kwargs
)
710 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
711 val
= gdic
.wxDC_LogicalToDeviceXRel(self
, *_args
, **_kwargs
)
713 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
714 val
= gdic
.wxDC_LogicalToDeviceY(self
, *_args
, **_kwargs
)
716 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
717 val
= gdic
.wxDC_LogicalToDeviceYRel(self
, *_args
, **_kwargs
)
719 def MaxX(self
, *_args
, **_kwargs
):
720 val
= gdic
.wxDC_MaxX(self
, *_args
, **_kwargs
)
722 def MaxY(self
, *_args
, **_kwargs
):
723 val
= gdic
.wxDC_MaxY(self
, *_args
, **_kwargs
)
725 def MinX(self
, *_args
, **_kwargs
):
726 val
= gdic
.wxDC_MinX(self
, *_args
, **_kwargs
)
728 def MinY(self
, *_args
, **_kwargs
):
729 val
= gdic
.wxDC_MinY(self
, *_args
, **_kwargs
)
731 def Ok(self
, *_args
, **_kwargs
):
732 val
= gdic
.wxDC_Ok(self
, *_args
, **_kwargs
)
734 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
735 val
= gdic
.wxDC_SetDeviceOrigin(self
, *_args
, **_kwargs
)
737 def SetBackground(self
, *_args
, **_kwargs
):
738 val
= gdic
.wxDC_SetBackground(self
, *_args
, **_kwargs
)
740 def SetBackgroundMode(self
, *_args
, **_kwargs
):
741 val
= gdic
.wxDC_SetBackgroundMode(self
, *_args
, **_kwargs
)
743 def SetClippingRegion(self
, *_args
, **_kwargs
):
744 val
= gdic
.wxDC_SetClippingRegion(self
, *_args
, **_kwargs
)
746 def SetClippingRegionAsRegion(self
, *_args
, **_kwargs
):
747 val
= gdic
.wxDC_SetClippingRegionAsRegion(self
, *_args
, **_kwargs
)
749 def SetClippingRect(self
, *_args
, **_kwargs
):
750 val
= gdic
.wxDC_SetClippingRect(self
, *_args
, **_kwargs
)
752 def SetPalette(self
, *_args
, **_kwargs
):
753 val
= gdic
.wxDC_SetPalette(self
, *_args
, **_kwargs
)
755 def SetBrush(self
, *_args
, **_kwargs
):
756 val
= gdic
.wxDC_SetBrush(self
, *_args
, **_kwargs
)
758 def SetFont(self
, *_args
, **_kwargs
):
759 val
= gdic
.wxDC_SetFont(self
, *_args
, **_kwargs
)
761 def SetLogicalFunction(self
, *_args
, **_kwargs
):
762 val
= gdic
.wxDC_SetLogicalFunction(self
, *_args
, **_kwargs
)
764 def SetLogicalScale(self
, *_args
, **_kwargs
):
765 val
= gdic
.wxDC_SetLogicalScale(self
, *_args
, **_kwargs
)
767 def SetMapMode(self
, *_args
, **_kwargs
):
768 val
= gdic
.wxDC_SetMapMode(self
, *_args
, **_kwargs
)
770 def SetOptimization(self
, *_args
, **_kwargs
):
771 val
= gdic
.wxDC_SetOptimization(self
, *_args
, **_kwargs
)
773 def SetPen(self
, *_args
, **_kwargs
):
774 val
= gdic
.wxDC_SetPen(self
, *_args
, **_kwargs
)
776 def SetTextBackground(self
, *_args
, **_kwargs
):
777 val
= gdic
.wxDC_SetTextBackground(self
, *_args
, **_kwargs
)
779 def SetTextForeground(self
, *_args
, **_kwargs
):
780 val
= gdic
.wxDC_SetTextForeground(self
, *_args
, **_kwargs
)
782 def SetUserScale(self
, *_args
, **_kwargs
):
783 val
= gdic
.wxDC_SetUserScale(self
, *_args
, **_kwargs
)
785 def StartDoc(self
, *_args
, **_kwargs
):
786 val
= gdic
.wxDC_StartDoc(self
, *_args
, **_kwargs
)
788 def StartPage(self
, *_args
, **_kwargs
):
789 val
= gdic
.wxDC_StartPage(self
, *_args
, **_kwargs
)
791 def DrawBitmap(self
, *_args
, **_kwargs
):
792 val
= gdic
.wxDC_DrawBitmap(self
, *_args
, **_kwargs
)
794 def CanDrawBitmap(self
, *_args
, **_kwargs
):
795 val
= gdic
.wxDC_CanDrawBitmap(self
, *_args
, **_kwargs
)
797 def CanGetTextExtent(self
, *_args
, **_kwargs
):
798 val
= gdic
.wxDC_CanGetTextExtent(self
, *_args
, **_kwargs
)
800 def GetDepth(self
, *_args
, **_kwargs
):
801 val
= gdic
.wxDC_GetDepth(self
, *_args
, **_kwargs
)
803 def GetPPI(self
, *_args
, **_kwargs
):
804 val
= gdic
.wxDC_GetPPI(self
, *_args
, **_kwargs
)
805 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
807 def GetLogicalOrigin(self
, *_args
, **_kwargs
):
808 val
= gdic
.wxDC_GetLogicalOrigin(self
, *_args
, **_kwargs
)
810 def SetLogicalOrigin(self
, *_args
, **_kwargs
):
811 val
= gdic
.wxDC_SetLogicalOrigin(self
, *_args
, **_kwargs
)
813 def GetDeviceOrigin(self
, *_args
, **_kwargs
):
814 val
= gdic
.wxDC_GetDeviceOrigin(self
, *_args
, **_kwargs
)
816 def SetAxisOrientation(self
, *_args
, **_kwargs
):
817 val
= gdic
.wxDC_SetAxisOrientation(self
, *_args
, **_kwargs
)
819 def CalcBoundingBox(self
, *_args
, **_kwargs
):
820 val
= gdic
.wxDC_CalcBoundingBox(self
, *_args
, **_kwargs
)
822 def ResetBoundingBox(self
, *_args
, **_kwargs
):
823 val
= gdic
.wxDC_ResetBoundingBox(self
, *_args
, **_kwargs
)
825 def GetBoundingBox(self
, *_args
, **_kwargs
):
826 val
= gdic
.wxDC_GetBoundingBox(self
, *_args
, **_kwargs
)
828 def _DrawPointList(self
, *_args
, **_kwargs
):
829 val
= gdic
.wxDC__DrawPointList(self
, *_args
, **_kwargs
)
831 def _DrawLineList(self
, *_args
, **_kwargs
):
832 val
= gdic
.wxDC__DrawLineList(self
, *_args
, **_kwargs
)
834 def _DrawRectangleList(self
, *_args
, **_kwargs
):
835 val
= gdic
.wxDC__DrawRectangleList(self
, *_args
, **_kwargs
)
837 def _DrawEllipseList(self
, *_args
, **_kwargs
):
838 val
= gdic
.wxDC__DrawEllipseList(self
, *_args
, **_kwargs
)
840 def _DrawPolygonList(self
, *_args
, **_kwargs
):
841 val
= gdic
.wxDC__DrawPolygonList(self
, *_args
, **_kwargs
)
843 def _DrawTextList(self
, *_args
, **_kwargs
):
844 val
= gdic
.wxDC__DrawTextList(self
, *_args
, **_kwargs
)
847 return "<%s.%s instance; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
848 def __nonzero__(self
): return self
.Ok()
850 def DrawPointList(self
, points
, pens
=None):
853 elif isinstance(pens
, wxPenPtr
):
855 elif len(pens
) != len(points
):
856 raise ValueError('points and pens must have same length')
857 return self
._DrawPointList
(points
, pens
, [])
860 def DrawLineList(self
, lines
, pens
=None):
863 elif isinstance(pens
, wxPenPtr
):
865 elif len(pens
) != len(lines
):
866 raise ValueError('lines and pens must have same length')
867 return self
._DrawLineList
(lines
, pens
, [])
870 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
873 elif isinstance(pens
, wxPenPtr
):
875 elif len(pens
) != len(rectangles
):
876 raise ValueError('rectangles and pens must have same length')
879 elif isinstance(brushes
, wxBrushPtr
):
881 elif len(brushes
) != len(rectangles
):
882 raise ValueError('rectangles and brushes must have same length')
883 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
886 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
889 elif isinstance(pens
, wxPenPtr
):
891 elif len(pens
) != len(ellipses
):
892 raise ValueError('ellipses and pens must have same length')
895 elif isinstance(brushes
, wxBrushPtr
):
897 elif len(brushes
) != len(ellipses
):
898 raise ValueError('ellipses and brushes must have same length')
899 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
902 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
903 ## Note: This does not currently support fill style or offset
904 ## you can always use the non-List version if need be.
905 ## I really would like to support fill-style, however,
906 ## but wxODDEVEN_RULE does not appear to be defined at the Python level
907 ## [It's in wx.py... --Robin]
910 elif isinstance(pens
, wxPenPtr
):
912 elif len(pens
) != len(polygons
):
913 raise ValueError('polygons and pens must have same length')
916 elif isinstance(brushes
, wxBrushPtr
):
918 elif len(brushes
) != len(polygons
):
919 raise ValueError('polygons and brushes must have same length')
920 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
923 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
924 ## NOTE: this does not currently support changing the font
925 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
926 ## If you want backgounds to do anything.
927 if type(textList
) == type(''):
928 textList
= [textList
]
929 elif len(textList
) != len(coords
):
930 raise ValueError('textlist and coords must have same length')
931 if foregrounds
is None:
933 elif isinstance(foregrounds
, wxColourPtr
):
934 foregrounds
= [foregrounds
]
935 elif len(foregrounds
) != len(coords
):
936 raise ValueError('foregrounds and coords must have same length')
937 if backgrounds
is None:
939 elif isinstance(backgrounds
, wxColourPtr
):
940 backgrounds
= [backgrounds
]
941 elif len(backgrounds
) != len(coords
):
942 raise ValueError('backgrounds and coords must have same length')
943 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
946 def __init__(self
,this
):
952 class wxMemoryDCPtr(wxDCPtr
):
953 def __init__(self
,this
):
956 def SelectObject(self
, *_args
, **_kwargs
):
957 val
= gdic
.wxMemoryDC_SelectObject(self
, *_args
, **_kwargs
)
960 return "<%s.%s instance; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
961 class wxMemoryDC(wxMemoryDCPtr
):
962 def __init__(self
,*_args
,**_kwargs
):
963 self
.this
= gdic
.new_wxMemoryDC(*_args
,**_kwargs
)
969 class wxBufferedDCPtr(wxMemoryDCPtr
):
970 def __init__(self
,this
):
973 def UnMask(self
, *_args
, **_kwargs
):
974 val
= gdic
.wxBufferedDC_UnMask(self
, *_args
, **_kwargs
)
977 return "<%s.%s instance; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
978 class wxBufferedDC(wxBufferedDCPtr
):
979 def __init__(self
,*_args
,**_kwargs
):
980 self
.this
= gdic
.new_wxBufferedDC(*_args
,**_kwargs
)
982 self
._dc
= _args
[0] # save a ref so the other dc won't be deleted before self
986 def wxBufferedDCInternalBuffer(*_args
,**_kwargs
):
987 val
= wxBufferedDCPtr(gdic
.new_wxBufferedDCInternalBuffer(*_args
,**_kwargs
))
989 val
._dc
= _args
[0] # save a ref so the other dc won't be deleted before self
993 class wxBufferedPaintDCPtr(wxBufferedDCPtr
):
994 def __init__(self
,this
):
998 return "<%s.%s instance; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
999 class wxBufferedPaintDC(wxBufferedPaintDCPtr
):
1000 def __init__(self
,*_args
,**_kwargs
):
1001 self
.this
= gdic
.new_wxBufferedPaintDC(*_args
,**_kwargs
)
1007 class wxScreenDCPtr(wxDCPtr
):
1008 def __init__(self
,this
):
1011 def StartDrawingOnTopWin(self
, *_args
, **_kwargs
):
1012 val
= gdic
.wxScreenDC_StartDrawingOnTopWin(self
, *_args
, **_kwargs
)
1014 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
1015 val
= gdic
.wxScreenDC_StartDrawingOnTop(self
, *_args
, **_kwargs
)
1017 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
1018 val
= gdic
.wxScreenDC_EndDrawingOnTop(self
, *_args
, **_kwargs
)
1021 return "<%s.%s instance; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1022 class wxScreenDC(wxScreenDCPtr
):
1023 def __init__(self
,*_args
,**_kwargs
):
1024 self
.this
= gdic
.new_wxScreenDC(*_args
,**_kwargs
)
1030 class wxClientDCPtr(wxDCPtr
):
1031 def __init__(self
,this
):
1035 return "<%s.%s instance; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1036 class wxClientDC(wxClientDCPtr
):
1037 def __init__(self
,*_args
,**_kwargs
):
1038 self
.this
= gdic
.new_wxClientDC(*_args
,**_kwargs
)
1044 class wxPaintDCPtr(wxDCPtr
):
1045 def __init__(self
,this
):
1049 return "<%s.%s instance; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1050 class wxPaintDC(wxPaintDCPtr
):
1051 def __init__(self
,*_args
,**_kwargs
):
1052 self
.this
= gdic
.new_wxPaintDC(*_args
,**_kwargs
)
1058 class wxWindowDCPtr(wxDCPtr
):
1059 def __init__(self
,this
):
1063 return "<%s.%s instance; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1064 class wxWindowDC(wxWindowDCPtr
):
1065 def __init__(self
,*_args
,**_kwargs
):
1066 self
.this
= gdic
.new_wxWindowDC(*_args
,**_kwargs
)
1072 class wxMirrorDCPtr(wxDCPtr
):
1073 def __init__(self
,this
):
1077 return "<%s.%s instance; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1078 class wxMirrorDC(wxMirrorDCPtr
):
1079 def __init__(self
,*_args
,**_kwargs
):
1080 self
.this
= gdic
.new_wxMirrorDC(*_args
,**_kwargs
)
1086 class wxPalettePtr(wxGDIObjectPtr
):
1087 def __init__(self
,this
):
1090 def __del__(self
, delfunc
=gdic
.delete_wxPalette
):
1091 if self
.thisown
== 1:
1096 def GetPixel(self
, *_args
, **_kwargs
):
1097 val
= gdic
.wxPalette_GetPixel(self
, *_args
, **_kwargs
)
1099 def GetRGB(self
, *_args
, **_kwargs
):
1100 val
= gdic
.wxPalette_GetRGB(self
, *_args
, **_kwargs
)
1102 def Ok(self
, *_args
, **_kwargs
):
1103 val
= gdic
.wxPalette_Ok(self
, *_args
, **_kwargs
)
1106 return "<%s.%s instance; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1107 def __nonzero__(self
): return self
.Ok()
1108 class wxPalette(wxPalettePtr
):
1109 def __init__(self
,*_args
,**_kwargs
):
1110 self
.this
= gdic
.new_wxPalette(*_args
,**_kwargs
)
1116 class wxImageListPtr(wxObjectPtr
):
1117 def __init__(self
,this
):
1120 def __del__(self
, delfunc
=gdic
.delete_wxImageList
):
1121 if self
.thisown
== 1:
1126 def Add(self
, *_args
, **_kwargs
):
1127 val
= gdic
.wxImageList_Add(self
, *_args
, **_kwargs
)
1129 def AddWithColourMask(self
, *_args
, **_kwargs
):
1130 val
= gdic
.wxImageList_AddWithColourMask(self
, *_args
, **_kwargs
)
1132 def AddIcon(self
, *_args
, **_kwargs
):
1133 val
= gdic
.wxImageList_AddIcon(self
, *_args
, **_kwargs
)
1135 def Replace(self
, *_args
, **_kwargs
):
1136 val
= gdic
.wxImageList_Replace(self
, *_args
, **_kwargs
)
1138 def Draw(self
, *_args
, **_kwargs
):
1139 val
= gdic
.wxImageList_Draw(self
, *_args
, **_kwargs
)
1141 def GetImageCount(self
, *_args
, **_kwargs
):
1142 val
= gdic
.wxImageList_GetImageCount(self
, *_args
, **_kwargs
)
1144 def Remove(self
, *_args
, **_kwargs
):
1145 val
= gdic
.wxImageList_Remove(self
, *_args
, **_kwargs
)
1147 def RemoveAll(self
, *_args
, **_kwargs
):
1148 val
= gdic
.wxImageList_RemoveAll(self
, *_args
, **_kwargs
)
1150 def GetSize(self
, *_args
, **_kwargs
):
1151 val
= gdic
.wxImageList_GetSize(self
, *_args
, **_kwargs
)
1154 return "<%s.%s instance; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1155 class wxImageList(wxImageListPtr
):
1156 def __init__(self
,*_args
,**_kwargs
):
1157 self
.this
= gdic
.new_wxImageList(*_args
,**_kwargs
)
1163 class wxRegionPtr(wxGDIObjectPtr
):
1164 def __init__(self
,this
):
1167 def __del__(self
, delfunc
=gdic
.delete_wxRegion
):
1168 if self
.thisown
== 1:
1173 def Clear(self
, *_args
, **_kwargs
):
1174 val
= gdic
.wxRegion_Clear(self
, *_args
, **_kwargs
)
1176 def Offset(self
, *_args
, **_kwargs
):
1177 val
= gdic
.wxRegion_Offset(self
, *_args
, **_kwargs
)
1179 def Contains(self
, *_args
, **_kwargs
):
1180 val
= gdic
.wxRegion_Contains(self
, *_args
, **_kwargs
)
1182 def ContainsPoint(self
, *_args
, **_kwargs
):
1183 val
= gdic
.wxRegion_ContainsPoint(self
, *_args
, **_kwargs
)
1185 def ContainsRect(self
, *_args
, **_kwargs
):
1186 val
= gdic
.wxRegion_ContainsRect(self
, *_args
, **_kwargs
)
1188 def ContainsRectDim(self
, *_args
, **_kwargs
):
1189 val
= gdic
.wxRegion_ContainsRectDim(self
, *_args
, **_kwargs
)
1191 def GetBox(self
, *_args
, **_kwargs
):
1192 val
= gdic
.wxRegion_GetBox(self
, *_args
, **_kwargs
)
1193 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1195 def Intersect(self
, *_args
, **_kwargs
):
1196 val
= gdic
.wxRegion_Intersect(self
, *_args
, **_kwargs
)
1198 def IntersectRect(self
, *_args
, **_kwargs
):
1199 val
= gdic
.wxRegion_IntersectRect(self
, *_args
, **_kwargs
)
1201 def IntersectRegion(self
, *_args
, **_kwargs
):
1202 val
= gdic
.wxRegion_IntersectRegion(self
, *_args
, **_kwargs
)
1204 def IsEmpty(self
, *_args
, **_kwargs
):
1205 val
= gdic
.wxRegion_IsEmpty(self
, *_args
, **_kwargs
)
1207 def Union(self
, *_args
, **_kwargs
):
1208 val
= gdic
.wxRegion_Union(self
, *_args
, **_kwargs
)
1210 def UnionRect(self
, *_args
, **_kwargs
):
1211 val
= gdic
.wxRegion_UnionRect(self
, *_args
, **_kwargs
)
1213 def UnionRegion(self
, *_args
, **_kwargs
):
1214 val
= gdic
.wxRegion_UnionRegion(self
, *_args
, **_kwargs
)
1216 def Subtract(self
, *_args
, **_kwargs
):
1217 val
= gdic
.wxRegion_Subtract(self
, *_args
, **_kwargs
)
1219 def SubtractRect(self
, *_args
, **_kwargs
):
1220 val
= gdic
.wxRegion_SubtractRect(self
, *_args
, **_kwargs
)
1222 def SubtractRegion(self
, *_args
, **_kwargs
):
1223 val
= gdic
.wxRegion_SubtractRegion(self
, *_args
, **_kwargs
)
1225 def Xor(self
, *_args
, **_kwargs
):
1226 val
= gdic
.wxRegion_Xor(self
, *_args
, **_kwargs
)
1228 def XorRect(self
, *_args
, **_kwargs
):
1229 val
= gdic
.wxRegion_XorRect(self
, *_args
, **_kwargs
)
1231 def XorRegion(self
, *_args
, **_kwargs
):
1232 val
= gdic
.wxRegion_XorRegion(self
, *_args
, **_kwargs
)
1234 def ConvertToBitmap(self
, *_args
, **_kwargs
):
1235 val
= gdic
.wxRegion_ConvertToBitmap(self
, *_args
, **_kwargs
)
1236 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
1238 def UnionBitmap(self
, *_args
, **_kwargs
):
1239 val
= gdic
.wxRegion_UnionBitmap(self
, *_args
, **_kwargs
)
1242 return "<%s.%s instance; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1243 class wxRegion(wxRegionPtr
):
1244 def __init__(self
,*_args
,**_kwargs
):
1245 self
.this
= gdic
.new_wxRegion(*_args
,**_kwargs
)
1250 def wxRegionFromPoints(*_args
,**_kwargs
):
1251 val
= wxRegionPtr(gdic
.new_wxRegionFromPoints(*_args
,**_kwargs
))
1255 def wxRegionFromBitmap(*_args
,**_kwargs
):
1256 val
= wxRegionPtr(gdic
.new_wxRegionFromBitmap(*_args
,**_kwargs
))
1261 class wxRegionIteratorPtr(wxObjectPtr
):
1262 def __init__(self
,this
):
1265 def __del__(self
, delfunc
=gdic
.delete_wxRegionIterator
):
1266 if self
.thisown
== 1:
1271 def GetX(self
, *_args
, **_kwargs
):
1272 val
= gdic
.wxRegionIterator_GetX(self
, *_args
, **_kwargs
)
1274 def GetY(self
, *_args
, **_kwargs
):
1275 val
= gdic
.wxRegionIterator_GetY(self
, *_args
, **_kwargs
)
1277 def GetW(self
, *_args
, **_kwargs
):
1278 val
= gdic
.wxRegionIterator_GetW(self
, *_args
, **_kwargs
)
1280 def GetWidth(self
, *_args
, **_kwargs
):
1281 val
= gdic
.wxRegionIterator_GetWidth(self
, *_args
, **_kwargs
)
1283 def GetH(self
, *_args
, **_kwargs
):
1284 val
= gdic
.wxRegionIterator_GetH(self
, *_args
, **_kwargs
)
1286 def GetHeight(self
, *_args
, **_kwargs
):
1287 val
= gdic
.wxRegionIterator_GetHeight(self
, *_args
, **_kwargs
)
1289 def GetRect(self
, *_args
, **_kwargs
):
1290 val
= gdic
.wxRegionIterator_GetRect(self
, *_args
, **_kwargs
)
1291 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1293 def HaveRects(self
, *_args
, **_kwargs
):
1294 val
= gdic
.wxRegionIterator_HaveRects(self
, *_args
, **_kwargs
)
1296 def Reset(self
, *_args
, **_kwargs
):
1297 val
= gdic
.wxRegionIterator_Reset(self
, *_args
, **_kwargs
)
1299 def Next(self
, *_args
, **_kwargs
):
1300 val
= gdic
.wxRegionIterator_Next(self
, *_args
, **_kwargs
)
1302 def __nonzero__(self
, *_args
, **_kwargs
):
1303 val
= gdic
.wxRegionIterator___nonzero__(self
, *_args
, **_kwargs
)
1306 return "<%s.%s instance; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
)
1307 class wxRegionIterator(wxRegionIteratorPtr
):
1308 def __init__(self
,*_args
,**_kwargs
):
1309 self
.this
= gdic
.new_wxRegionIterator(*_args
,**_kwargs
)
1317 #-------------- FUNCTION WRAPPERS ------------------
1319 def wxEmptyBitmap(*_args
, **_kwargs
):
1320 val
= gdic
.wxEmptyBitmap(*_args
,**_kwargs
)
1321 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1324 def wxBitmapFromXPMData(*_args
, **_kwargs
):
1325 val
= gdic
.wxBitmapFromXPMData(*_args
,**_kwargs
)
1326 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1329 def wxBitmapFromIcon(*_args
, **_kwargs
):
1330 val
= gdic
.wxBitmapFromIcon(*_args
,**_kwargs
)
1331 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1334 def wxBitmapFromBits(*_args
, **_kwargs
):
1335 val
= gdic
.wxBitmapFromBits(*_args
,**_kwargs
)
1336 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1339 def wxMaskColour(*_args
, **_kwargs
):
1340 val
= gdic
.wxMaskColour(*_args
,**_kwargs
)
1341 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
1344 def wxEmptyIcon(*_args
, **_kwargs
):
1345 val
= gdic
.wxEmptyIcon(*_args
,**_kwargs
)
1346 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1349 def wxIconFromXPMData(*_args
, **_kwargs
):
1350 val
= gdic
.wxIconFromXPMData(*_args
,**_kwargs
)
1351 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1354 def wxIconFromBitmap(*_args
, **_kwargs
):
1355 val
= gdic
.wxIconFromBitmap(*_args
,**_kwargs
)
1356 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1359 def wxIconFromLocation(*_args
, **_kwargs
):
1360 val
= gdic
.wxIconFromLocation(*_args
,**_kwargs
)
1361 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1364 def wxStockCursor(*_args
, **_kwargs
):
1365 val
= gdic
.wxStockCursor(*_args
,**_kwargs
)
1366 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1369 def wxCursorFromImage(*_args
, **_kwargs
):
1370 val
= gdic
.wxCursorFromImage(*_args
,**_kwargs
)
1371 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1374 def wxCursorFromBits(*_args
, **_kwargs
):
1375 val
= gdic
.wxCursorFromBits(*_args
,**_kwargs
)
1376 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1379 def wxNamedColour(*_args
, **_kwargs
):
1380 val
= gdic
.wxNamedColour(*_args
,**_kwargs
)
1381 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
1384 def wxMemoryDCFromDC(*_args
, **_kwargs
):
1385 val
= gdic
.wxMemoryDCFromDC(*_args
,**_kwargs
)
1386 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
1391 #-------------- VARIABLE WRAPPERS ------------------
1393 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
1394 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
1395 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
1396 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
1397 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
1398 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
1399 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE
1400 wxOutRegion
= gdic
.wxOutRegion
1401 wxPartRegion
= gdic
.wxPartRegion
1402 wxInRegion
= gdic
.wxInRegion
1404 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
1405 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
1406 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
1407 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
1408 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
1409 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
1410 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
1411 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
1412 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
1413 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
1414 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
1415 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
1416 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
1417 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
1418 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
1419 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
1420 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
1421 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
1422 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
1423 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
1424 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
1425 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
1426 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
1427 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
1428 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
1429 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
1430 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
1431 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
1432 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
1433 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
1434 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
1435 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
1436 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
1437 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
1438 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
1439 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
1440 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
1441 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
1442 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
1443 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
1444 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
1445 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
1446 wxTheFontList
= wxFontListPtr(gdic
.cvar
.wxTheFontList
)
1447 wxThePenList
= wxPenListPtr(gdic
.cvar
.wxThePenList
)
1448 wxTheBrushList
= wxBrushListPtr(gdic
.cvar
.wxTheBrushList
)
1449 wxTheColourDatabase
= wxColourDatabasePtr(gdic
.cvar
.wxTheColourDatabase
)