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
= apply(gdic
.wxGDIObject_GetVisible
,(self
,) + _args
, _kwargs
)
21 def SetVisible(self
, *_args
, **_kwargs
):
22 val
= apply(gdic
.wxGDIObject_SetVisible
,(self
,) + _args
, _kwargs
)
24 def IsNull(self
, *_args
, **_kwargs
):
25 val
= apply(gdic
.wxGDIObject_IsNull
,(self
,) + _args
, _kwargs
)
28 return "<C wxGDIObject instance at %s>" % (self
.this
,)
29 class wxGDIObject(wxGDIObjectPtr
):
30 def __init__(self
,*_args
,**_kwargs
):
31 self
.this
= apply(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
= apply(gdic
.wxBitmap_GetPalette
,(self
,) + _args
, _kwargs
)
49 if val
: val
= wxPalettePtr(val
)
51 def GetMask(self
, *_args
, **_kwargs
):
52 val
= apply(gdic
.wxBitmap_GetMask
,(self
,) + _args
, _kwargs
)
53 if val
: val
= wxMaskPtr(val
)
55 def LoadFile(self
, *_args
, **_kwargs
):
56 val
= apply(gdic
.wxBitmap_LoadFile
,(self
,) + _args
, _kwargs
)
58 def SaveFile(self
, *_args
, **_kwargs
):
59 val
= apply(gdic
.wxBitmap_SaveFile
,(self
,) + _args
, _kwargs
)
61 def SetMask(self
, *_args
, **_kwargs
):
62 val
= apply(gdic
.wxBitmap_SetMask
,(self
,) + _args
, _kwargs
)
64 def Ok(self
, *_args
, **_kwargs
):
65 val
= apply(gdic
.wxBitmap_Ok
,(self
,) + _args
, _kwargs
)
67 def GetWidth(self
, *_args
, **_kwargs
):
68 val
= apply(gdic
.wxBitmap_GetWidth
,(self
,) + _args
, _kwargs
)
70 def GetHeight(self
, *_args
, **_kwargs
):
71 val
= apply(gdic
.wxBitmap_GetHeight
,(self
,) + _args
, _kwargs
)
73 def GetDepth(self
, *_args
, **_kwargs
):
74 val
= apply(gdic
.wxBitmap_GetDepth
,(self
,) + _args
, _kwargs
)
76 def SetWidth(self
, *_args
, **_kwargs
):
77 val
= apply(gdic
.wxBitmap_SetWidth
,(self
,) + _args
, _kwargs
)
79 def SetHeight(self
, *_args
, **_kwargs
):
80 val
= apply(gdic
.wxBitmap_SetHeight
,(self
,) + _args
, _kwargs
)
82 def SetDepth(self
, *_args
, **_kwargs
):
83 val
= apply(gdic
.wxBitmap_SetDepth
,(self
,) + _args
, _kwargs
)
85 def GetSubBitmap(self
, *_args
, **_kwargs
):
86 val
= apply(gdic
.wxBitmap_GetSubBitmap
,(self
,) + _args
, _kwargs
)
87 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
89 def CopyFromIcon(self
, *_args
, **_kwargs
):
90 val
= apply(gdic
.wxBitmap_CopyFromIcon
,(self
,) + _args
, _kwargs
)
93 return "<C wxBitmap instance at %s>" % (self
.this
,)
95 def SetMaskColour(self
, colour
):
96 mask
= wxMaskColour(self
, colour
)
99 class wxBitmap(wxBitmapPtr
):
100 def __init__(self
,*_args
,**_kwargs
):
101 self
.this
= apply(gdic
.new_wxBitmap
,_args
,_kwargs
)
107 class wxMaskPtr(wxObjectPtr
):
108 def __init__(self
,this
):
111 def Destroy(self
, *_args
, **_kwargs
):
112 val
= apply(gdic
.wxMask_Destroy
,(self
,) + _args
, _kwargs
)
115 return "<C wxMask instance at %s>" % (self
.this
,)
116 class wxMask(wxMaskPtr
):
117 def __init__(self
,*_args
,**_kwargs
):
118 self
.this
= apply(gdic
.new_wxMask
,_args
,_kwargs
)
124 class wxIconPtr(wxGDIObjectPtr
):
125 def __init__(self
,this
):
128 def __del__(self
, delfunc
=gdic
.delete_wxIcon
):
129 if self
.thisown
== 1:
134 def LoadFile(self
, *_args
, **_kwargs
):
135 val
= apply(gdic
.wxIcon_LoadFile
,(self
,) + _args
, _kwargs
)
137 def Ok(self
, *_args
, **_kwargs
):
138 val
= apply(gdic
.wxIcon_Ok
,(self
,) + _args
, _kwargs
)
140 def GetWidth(self
, *_args
, **_kwargs
):
141 val
= apply(gdic
.wxIcon_GetWidth
,(self
,) + _args
, _kwargs
)
143 def GetHeight(self
, *_args
, **_kwargs
):
144 val
= apply(gdic
.wxIcon_GetHeight
,(self
,) + _args
, _kwargs
)
146 def GetDepth(self
, *_args
, **_kwargs
):
147 val
= apply(gdic
.wxIcon_GetDepth
,(self
,) + _args
, _kwargs
)
149 def SetWidth(self
, *_args
, **_kwargs
):
150 val
= apply(gdic
.wxIcon_SetWidth
,(self
,) + _args
, _kwargs
)
152 def SetHeight(self
, *_args
, **_kwargs
):
153 val
= apply(gdic
.wxIcon_SetHeight
,(self
,) + _args
, _kwargs
)
155 def SetDepth(self
, *_args
, **_kwargs
):
156 val
= apply(gdic
.wxIcon_SetDepth
,(self
,) + _args
, _kwargs
)
158 def CopyFromBitmap(self
, *_args
, **_kwargs
):
159 val
= apply(gdic
.wxIcon_CopyFromBitmap
,(self
,) + _args
, _kwargs
)
162 return "<C wxIcon instance at %s>" % (self
.this
,)
163 class wxIcon(wxIconPtr
):
164 def __init__(self
,*_args
,**_kwargs
):
165 self
.this
= apply(gdic
.new_wxIcon
,_args
,_kwargs
)
171 class wxIconBundlePtr
:
172 def __init__(self
,this
):
175 def __del__(self
, delfunc
=gdic
.delete_wxIconBundle
):
176 if self
.thisown
== 1:
181 def AddIcon(self
, *_args
, **_kwargs
):
182 val
= apply(gdic
.wxIconBundle_AddIcon
,(self
,) + _args
, _kwargs
)
184 def AddIconFromFile(self
, *_args
, **_kwargs
):
185 val
= apply(gdic
.wxIconBundle_AddIconFromFile
,(self
,) + _args
, _kwargs
)
187 def GetIcon(self
, *_args
, **_kwargs
):
188 val
= apply(gdic
.wxIconBundle_GetIcon
,(self
,) + _args
, _kwargs
)
189 if val
: val
= wxIconPtr(val
)
192 return "<C wxIconBundle instance at %s>" % (self
.this
,)
193 class wxIconBundle(wxIconBundlePtr
):
194 def __init__(self
,*_args
,**_kwargs
):
195 self
.this
= apply(gdic
.new_wxIconBundle
,_args
,_kwargs
)
200 def wxIconBundleFromFile(*_args
,**_kwargs
):
201 val
= wxIconBundlePtr(apply(gdic
.new_wxIconBundleFromFile
,_args
,_kwargs
))
205 def wxIconBundleFromIcon(*_args
,**_kwargs
):
206 val
= wxIconBundlePtr(apply(gdic
.new_wxIconBundleFromIcon
,_args
,_kwargs
))
211 class wxCursorPtr(wxGDIObjectPtr
):
212 def __init__(self
,this
):
215 def __del__(self
, delfunc
=gdic
.delete_wxCursor
):
216 if self
.thisown
== 1:
221 def Ok(self
, *_args
, **_kwargs
):
222 val
= apply(gdic
.wxCursor_Ok
,(self
,) + _args
, _kwargs
)
225 return "<C wxCursor instance at %s>" % (self
.this
,)
226 class wxCursor(wxCursorPtr
):
227 def __init__(self
,this
):
233 class wxColourPtr(wxObjectPtr
):
234 def __init__(self
,this
):
237 def __del__(self
, delfunc
=gdic
.delete_wxColour
):
238 if self
.thisown
== 1:
243 def Red(self
, *_args
, **_kwargs
):
244 val
= apply(gdic
.wxColour_Red
,(self
,) + _args
, _kwargs
)
246 def Green(self
, *_args
, **_kwargs
):
247 val
= apply(gdic
.wxColour_Green
,(self
,) + _args
, _kwargs
)
249 def Blue(self
, *_args
, **_kwargs
):
250 val
= apply(gdic
.wxColour_Blue
,(self
,) + _args
, _kwargs
)
252 def Ok(self
, *_args
, **_kwargs
):
253 val
= apply(gdic
.wxColour_Ok
,(self
,) + _args
, _kwargs
)
255 def Set(self
, *_args
, **_kwargs
):
256 val
= apply(gdic
.wxColour_Set
,(self
,) + _args
, _kwargs
)
258 def Get(self
, *_args
, **_kwargs
):
259 val
= apply(gdic
.wxColour_Get
,(self
,) + _args
, _kwargs
)
261 def __eq__(self
, *_args
, **_kwargs
):
262 val
= apply(gdic
.wxColour___eq__
,(self
,) + _args
, _kwargs
)
264 def __ne__(self
, *_args
, **_kwargs
):
265 val
= apply(gdic
.wxColour___ne__
,(self
,) + _args
, _kwargs
)
268 return "<C wxColour instance at %s>" % (self
.this
,)
270 def __str__(self
): return str(self
.asTuple())
271 def __repr__(self
): return 'wxColour:' + str(self
.asTuple())
272 def __nonzero__(self
): return self
.Ok()
273 def __getinitargs__(self
): return ()
274 def __getstate__(self
): return self
.asTuple()
275 def __setstate__(self
, state
): self
.Set(*state
)
277 class wxColour(wxColourPtr
):
278 def __init__(self
,*_args
,**_kwargs
):
279 self
.this
= apply(gdic
.new_wxColour
,_args
,_kwargs
)
285 class wxColourDatabasePtr(wxObjectPtr
):
286 def __init__(self
,this
):
289 def FindColour(self
, *_args
, **_kwargs
):
290 val
= apply(gdic
.wxColourDatabase_FindColour
,(self
,) + _args
, _kwargs
)
291 if val
: val
= wxColourPtr(val
)
293 def FindName(self
, *_args
, **_kwargs
):
294 val
= apply(gdic
.wxColourDatabase_FindName
,(self
,) + _args
, _kwargs
)
296 def Append(self
, *_args
, **_kwargs
):
297 val
= apply(gdic
.wxColourDatabase_Append
,(self
,) + _args
, _kwargs
)
300 return "<C wxColourDatabase instance at %s>" % (self
.this
,)
301 class wxColourDatabase(wxColourDatabasePtr
):
302 def __init__(self
,this
):
308 class wxPenPtr(wxGDIObjectPtr
):
309 def __init__(self
,this
):
312 def __del__(self
, delfunc
=gdic
.delete_wxPen
):
313 if self
.thisown
== 1:
318 def GetCap(self
, *_args
, **_kwargs
):
319 val
= apply(gdic
.wxPen_GetCap
,(self
,) + _args
, _kwargs
)
321 def GetColour(self
, *_args
, **_kwargs
):
322 val
= apply(gdic
.wxPen_GetColour
,(self
,) + _args
, _kwargs
)
323 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
325 def GetJoin(self
, *_args
, **_kwargs
):
326 val
= apply(gdic
.wxPen_GetJoin
,(self
,) + _args
, _kwargs
)
328 def GetStyle(self
, *_args
, **_kwargs
):
329 val
= apply(gdic
.wxPen_GetStyle
,(self
,) + _args
, _kwargs
)
331 def GetWidth(self
, *_args
, **_kwargs
):
332 val
= apply(gdic
.wxPen_GetWidth
,(self
,) + _args
, _kwargs
)
334 def Ok(self
, *_args
, **_kwargs
):
335 val
= apply(gdic
.wxPen_Ok
,(self
,) + _args
, _kwargs
)
337 def SetCap(self
, *_args
, **_kwargs
):
338 val
= apply(gdic
.wxPen_SetCap
,(self
,) + _args
, _kwargs
)
340 def SetColour(self
, *_args
, **_kwargs
):
341 val
= apply(gdic
.wxPen_SetColour
,(self
,) + _args
, _kwargs
)
343 def SetJoin(self
, *_args
, **_kwargs
):
344 val
= apply(gdic
.wxPen_SetJoin
,(self
,) + _args
, _kwargs
)
346 def SetStyle(self
, *_args
, **_kwargs
):
347 val
= apply(gdic
.wxPen_SetStyle
,(self
,) + _args
, _kwargs
)
349 def SetWidth(self
, *_args
, **_kwargs
):
350 val
= apply(gdic
.wxPen_SetWidth
,(self
,) + _args
, _kwargs
)
352 def SetDashes(self
, *_args
, **_kwargs
):
353 val
= apply(gdic
.wxPen_SetDashes
,(self
,) + _args
, _kwargs
)
355 def GetDashes(self
, *_args
, **_kwargs
):
356 val
= apply(gdic
.wxPen_GetDashes
,(self
,) + _args
, _kwargs
)
359 return "<C wxPen instance at %s>" % (self
.this
,)
360 class wxPen(wxPenPtr
):
361 def __init__(self
,*_args
,**_kwargs
):
362 self
.this
= apply(gdic
.new_wxPen
,_args
,_kwargs
)
368 class wxPyPenPtr(wxPenPtr
):
369 def __init__(self
,this
):
372 def __del__(self
, delfunc
=gdic
.delete_wxPyPen
):
373 if self
.thisown
== 1:
378 def SetDashes(self
, *_args
, **_kwargs
):
379 val
= apply(gdic
.wxPyPen_SetDashes
,(self
,) + _args
, _kwargs
)
382 return "<C wxPyPen instance at %s>" % (self
.this
,)
383 class wxPyPen(wxPyPenPtr
):
384 def __init__(self
,*_args
,**_kwargs
):
385 self
.this
= apply(gdic
.new_wxPyPen
,_args
,_kwargs
)
391 class wxPenListPtr(wxObjectPtr
):
392 def __init__(self
,this
):
395 def AddPen(self
, *_args
, **_kwargs
):
396 val
= apply(gdic
.wxPenList_AddPen
,(self
,) + _args
, _kwargs
)
398 def FindOrCreatePen(self
, *_args
, **_kwargs
):
399 val
= apply(gdic
.wxPenList_FindOrCreatePen
,(self
,) + _args
, _kwargs
)
400 if val
: val
= wxPenPtr(val
)
402 def RemovePen(self
, *_args
, **_kwargs
):
403 val
= apply(gdic
.wxPenList_RemovePen
,(self
,) + _args
, _kwargs
)
405 def GetCount(self
, *_args
, **_kwargs
):
406 val
= apply(gdic
.wxPenList_GetCount
,(self
,) + _args
, _kwargs
)
409 return "<C wxPenList instance at %s>" % (self
.this
,)
410 class wxPenList(wxPenListPtr
):
411 def __init__(self
,this
):
417 class wxBrushPtr(wxGDIObjectPtr
):
418 def __init__(self
,this
):
421 def __del__(self
, delfunc
=gdic
.delete_wxBrush
):
422 if self
.thisown
== 1:
427 def GetColour(self
, *_args
, **_kwargs
):
428 val
= apply(gdic
.wxBrush_GetColour
,(self
,) + _args
, _kwargs
)
429 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
431 def GetStipple(self
, *_args
, **_kwargs
):
432 val
= apply(gdic
.wxBrush_GetStipple
,(self
,) + _args
, _kwargs
)
433 if val
: val
= wxBitmapPtr(val
)
435 def GetStyle(self
, *_args
, **_kwargs
):
436 val
= apply(gdic
.wxBrush_GetStyle
,(self
,) + _args
, _kwargs
)
438 def Ok(self
, *_args
, **_kwargs
):
439 val
= apply(gdic
.wxBrush_Ok
,(self
,) + _args
, _kwargs
)
441 def SetColour(self
, *_args
, **_kwargs
):
442 val
= apply(gdic
.wxBrush_SetColour
,(self
,) + _args
, _kwargs
)
444 def SetStipple(self
, *_args
, **_kwargs
):
445 val
= apply(gdic
.wxBrush_SetStipple
,(self
,) + _args
, _kwargs
)
447 def SetStyle(self
, *_args
, **_kwargs
):
448 val
= apply(gdic
.wxBrush_SetStyle
,(self
,) + _args
, _kwargs
)
451 return "<C wxBrush instance at %s>" % (self
.this
,)
452 class wxBrush(wxBrushPtr
):
453 def __init__(self
,*_args
,**_kwargs
):
454 self
.this
= apply(gdic
.new_wxBrush
,_args
,_kwargs
)
460 class wxBrushListPtr(wxObjectPtr
):
461 def __init__(self
,this
):
464 def AddBrush(self
, *_args
, **_kwargs
):
465 val
= apply(gdic
.wxBrushList_AddBrush
,(self
,) + _args
, _kwargs
)
467 def FindOrCreateBrush(self
, *_args
, **_kwargs
):
468 val
= apply(gdic
.wxBrushList_FindOrCreateBrush
,(self
,) + _args
, _kwargs
)
469 if val
: val
= wxBrushPtr(val
)
471 def RemoveBrush(self
, *_args
, **_kwargs
):
472 val
= apply(gdic
.wxBrushList_RemoveBrush
,(self
,) + _args
, _kwargs
)
474 def GetCount(self
, *_args
, **_kwargs
):
475 val
= apply(gdic
.wxBrushList_GetCount
,(self
,) + _args
, _kwargs
)
478 return "<C wxBrushList instance at %s>" % (self
.this
,)
479 class wxBrushList(wxBrushListPtr
):
480 def __init__(self
,this
):
486 class wxDCPtr(wxObjectPtr
):
487 def __init__(self
,this
):
490 def __del__(self
, delfunc
=gdic
.delete_wxDC
):
491 if self
.thisown
== 1:
496 def BeginDrawing(self
, *_args
, **_kwargs
):
497 val
= apply(gdic
.wxDC_BeginDrawing
,(self
,) + _args
, _kwargs
)
499 def Blit(self
, *_args
, **_kwargs
):
500 val
= apply(gdic
.wxDC_Blit
,(self
,) + _args
, _kwargs
)
502 def Clear(self
, *_args
, **_kwargs
):
503 val
= apply(gdic
.wxDC_Clear
,(self
,) + _args
, _kwargs
)
505 def CrossHair(self
, *_args
, **_kwargs
):
506 val
= apply(gdic
.wxDC_CrossHair
,(self
,) + _args
, _kwargs
)
508 def DestroyClippingRegion(self
, *_args
, **_kwargs
):
509 val
= apply(gdic
.wxDC_DestroyClippingRegion
,(self
,) + _args
, _kwargs
)
511 def DeviceToLogicalX(self
, *_args
, **_kwargs
):
512 val
= apply(gdic
.wxDC_DeviceToLogicalX
,(self
,) + _args
, _kwargs
)
514 def DeviceToLogicalXRel(self
, *_args
, **_kwargs
):
515 val
= apply(gdic
.wxDC_DeviceToLogicalXRel
,(self
,) + _args
, _kwargs
)
517 def DeviceToLogicalY(self
, *_args
, **_kwargs
):
518 val
= apply(gdic
.wxDC_DeviceToLogicalY
,(self
,) + _args
, _kwargs
)
520 def DeviceToLogicalYRel(self
, *_args
, **_kwargs
):
521 val
= apply(gdic
.wxDC_DeviceToLogicalYRel
,(self
,) + _args
, _kwargs
)
523 def DrawArc(self
, *_args
, **_kwargs
):
524 val
= apply(gdic
.wxDC_DrawArc
,(self
,) + _args
, _kwargs
)
526 def DrawCircle(self
, *_args
, **_kwargs
):
527 val
= apply(gdic
.wxDC_DrawCircle
,(self
,) + _args
, _kwargs
)
529 def DrawEllipse(self
, *_args
, **_kwargs
):
530 val
= apply(gdic
.wxDC_DrawEllipse
,(self
,) + _args
, _kwargs
)
532 def DrawEllipticArc(self
, *_args
, **_kwargs
):
533 val
= apply(gdic
.wxDC_DrawEllipticArc
,(self
,) + _args
, _kwargs
)
535 def DrawIcon(self
, *_args
, **_kwargs
):
536 val
= apply(gdic
.wxDC_DrawIcon
,(self
,) + _args
, _kwargs
)
538 def DrawLabel(self
, *_args
, **_kwargs
):
539 val
= apply(gdic
.wxDC_DrawLabel
,(self
,) + _args
, _kwargs
)
541 def DrawImageLabel(self
, *_args
, **_kwargs
):
542 val
= apply(gdic
.wxDC_DrawImageLabel
,(self
,) + _args
, _kwargs
)
543 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
545 def DrawLine(self
, *_args
, **_kwargs
):
546 val
= apply(gdic
.wxDC_DrawLine
,(self
,) + _args
, _kwargs
)
548 def DrawLines(self
, *_args
, **_kwargs
):
549 val
= apply(gdic
.wxDC_DrawLines
,(self
,) + _args
, _kwargs
)
551 def DrawPolygon(self
, *_args
, **_kwargs
):
552 val
= apply(gdic
.wxDC_DrawPolygon
,(self
,) + _args
, _kwargs
)
554 def DrawPoint(self
, *_args
, **_kwargs
):
555 val
= apply(gdic
.wxDC_DrawPoint
,(self
,) + _args
, _kwargs
)
557 def DrawRectangle(self
, *_args
, **_kwargs
):
558 val
= apply(gdic
.wxDC_DrawRectangle
,(self
,) + _args
, _kwargs
)
560 def DrawRectangleRect(self
, *_args
, **_kwargs
):
561 val
= apply(gdic
.wxDC_DrawRectangleRect
,(self
,) + _args
, _kwargs
)
563 def DrawRotatedText(self
, *_args
, **_kwargs
):
564 val
= apply(gdic
.wxDC_DrawRotatedText
,(self
,) + _args
, _kwargs
)
566 def DrawRoundedRectangle(self
, *_args
, **_kwargs
):
567 val
= apply(gdic
.wxDC_DrawRoundedRectangle
,(self
,) + _args
, _kwargs
)
569 def DrawSpline(self
, *_args
, **_kwargs
):
570 val
= apply(gdic
.wxDC_DrawSpline
,(self
,) + _args
, _kwargs
)
572 def DrawText(self
, *_args
, **_kwargs
):
573 val
= apply(gdic
.wxDC_DrawText
,(self
,) + _args
, _kwargs
)
575 def EndDoc(self
, *_args
, **_kwargs
):
576 val
= apply(gdic
.wxDC_EndDoc
,(self
,) + _args
, _kwargs
)
578 def EndDrawing(self
, *_args
, **_kwargs
):
579 val
= apply(gdic
.wxDC_EndDrawing
,(self
,) + _args
, _kwargs
)
581 def EndPage(self
, *_args
, **_kwargs
):
582 val
= apply(gdic
.wxDC_EndPage
,(self
,) + _args
, _kwargs
)
584 def FloodFill(self
, *_args
, **_kwargs
):
585 val
= apply(gdic
.wxDC_FloodFill
,(self
,) + _args
, _kwargs
)
587 def GetBackground(self
, *_args
, **_kwargs
):
588 val
= apply(gdic
.wxDC_GetBackground
,(self
,) + _args
, _kwargs
)
589 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
591 def GetBrush(self
, *_args
, **_kwargs
):
592 val
= apply(gdic
.wxDC_GetBrush
,(self
,) + _args
, _kwargs
)
593 if val
: val
= wxBrushPtr(val
) ; val
.thisown
= 1
595 def GetCharHeight(self
, *_args
, **_kwargs
):
596 val
= apply(gdic
.wxDC_GetCharHeight
,(self
,) + _args
, _kwargs
)
598 def GetCharWidth(self
, *_args
, **_kwargs
):
599 val
= apply(gdic
.wxDC_GetCharWidth
,(self
,) + _args
, _kwargs
)
601 def GetClippingBox(self
, *_args
, **_kwargs
):
602 val
= apply(gdic
.wxDC_GetClippingBox
,(self
,) + _args
, _kwargs
)
604 def GetFont(self
, *_args
, **_kwargs
):
605 val
= apply(gdic
.wxDC_GetFont
,(self
,) + _args
, _kwargs
)
606 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
608 def GetLogicalFunction(self
, *_args
, **_kwargs
):
609 val
= apply(gdic
.wxDC_GetLogicalFunction
,(self
,) + _args
, _kwargs
)
611 def GetLogicalScale(self
, *_args
, **_kwargs
):
612 val
= apply(gdic
.wxDC_GetLogicalScale
,(self
,) + _args
, _kwargs
)
614 def GetMapMode(self
, *_args
, **_kwargs
):
615 val
= apply(gdic
.wxDC_GetMapMode
,(self
,) + _args
, _kwargs
)
617 def GetOptimization(self
, *_args
, **_kwargs
):
618 val
= apply(gdic
.wxDC_GetOptimization
,(self
,) + _args
, _kwargs
)
620 def GetPen(self
, *_args
, **_kwargs
):
621 val
= apply(gdic
.wxDC_GetPen
,(self
,) + _args
, _kwargs
)
622 if val
: val
= wxPenPtr(val
) ; val
.thisown
= 1
624 def GetPixel(self
, *_args
, **_kwargs
):
625 val
= apply(gdic
.wxDC_GetPixel
,(self
,) + _args
, _kwargs
)
626 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
628 def GetSizeTuple(self
, *_args
, **_kwargs
):
629 val
= apply(gdic
.wxDC_GetSizeTuple
,(self
,) + _args
, _kwargs
)
631 def GetSize(self
, *_args
, **_kwargs
):
632 val
= apply(gdic
.wxDC_GetSize
,(self
,) + _args
, _kwargs
)
633 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
635 def GetSizeMM(self
, *_args
, **_kwargs
):
636 val
= apply(gdic
.wxDC_GetSizeMM
,(self
,) + _args
, _kwargs
)
637 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
639 def GetTextBackground(self
, *_args
, **_kwargs
):
640 val
= apply(gdic
.wxDC_GetTextBackground
,(self
,) + _args
, _kwargs
)
641 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
643 def GetTextExtent(self
, *_args
, **_kwargs
):
644 val
= apply(gdic
.wxDC_GetTextExtent
,(self
,) + _args
, _kwargs
)
646 def GetFullTextExtent(self
, *_args
, **_kwargs
):
647 val
= apply(gdic
.wxDC_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
649 def GetMultiLineTextExtent(self
, *_args
, **_kwargs
):
650 val
= apply(gdic
.wxDC_GetMultiLineTextExtent
,(self
,) + _args
, _kwargs
)
652 def GetTextForeground(self
, *_args
, **_kwargs
):
653 val
= apply(gdic
.wxDC_GetTextForeground
,(self
,) + _args
, _kwargs
)
654 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
656 def GetUserScale(self
, *_args
, **_kwargs
):
657 val
= apply(gdic
.wxDC_GetUserScale
,(self
,) + _args
, _kwargs
)
659 def LogicalToDeviceX(self
, *_args
, **_kwargs
):
660 val
= apply(gdic
.wxDC_LogicalToDeviceX
,(self
,) + _args
, _kwargs
)
662 def LogicalToDeviceXRel(self
, *_args
, **_kwargs
):
663 val
= apply(gdic
.wxDC_LogicalToDeviceXRel
,(self
,) + _args
, _kwargs
)
665 def LogicalToDeviceY(self
, *_args
, **_kwargs
):
666 val
= apply(gdic
.wxDC_LogicalToDeviceY
,(self
,) + _args
, _kwargs
)
668 def LogicalToDeviceYRel(self
, *_args
, **_kwargs
):
669 val
= apply(gdic
.wxDC_LogicalToDeviceYRel
,(self
,) + _args
, _kwargs
)
671 def MaxX(self
, *_args
, **_kwargs
):
672 val
= apply(gdic
.wxDC_MaxX
,(self
,) + _args
, _kwargs
)
674 def MaxY(self
, *_args
, **_kwargs
):
675 val
= apply(gdic
.wxDC_MaxY
,(self
,) + _args
, _kwargs
)
677 def MinX(self
, *_args
, **_kwargs
):
678 val
= apply(gdic
.wxDC_MinX
,(self
,) + _args
, _kwargs
)
680 def MinY(self
, *_args
, **_kwargs
):
681 val
= apply(gdic
.wxDC_MinY
,(self
,) + _args
, _kwargs
)
683 def Ok(self
, *_args
, **_kwargs
):
684 val
= apply(gdic
.wxDC_Ok
,(self
,) + _args
, _kwargs
)
686 def SetDeviceOrigin(self
, *_args
, **_kwargs
):
687 val
= apply(gdic
.wxDC_SetDeviceOrigin
,(self
,) + _args
, _kwargs
)
689 def SetBackground(self
, *_args
, **_kwargs
):
690 val
= apply(gdic
.wxDC_SetBackground
,(self
,) + _args
, _kwargs
)
692 def SetBackgroundMode(self
, *_args
, **_kwargs
):
693 val
= apply(gdic
.wxDC_SetBackgroundMode
,(self
,) + _args
, _kwargs
)
695 def SetClippingRegion(self
, *_args
, **_kwargs
):
696 val
= apply(gdic
.wxDC_SetClippingRegion
,(self
,) + _args
, _kwargs
)
698 def SetClippingRegionAsRegion(self
, *_args
, **_kwargs
):
699 val
= apply(gdic
.wxDC_SetClippingRegionAsRegion
,(self
,) + _args
, _kwargs
)
701 def SetClippingRect(self
, *_args
, **_kwargs
):
702 val
= apply(gdic
.wxDC_SetClippingRect
,(self
,) + _args
, _kwargs
)
704 def SetPalette(self
, *_args
, **_kwargs
):
705 val
= apply(gdic
.wxDC_SetPalette
,(self
,) + _args
, _kwargs
)
707 def SetBrush(self
, *_args
, **_kwargs
):
708 val
= apply(gdic
.wxDC_SetBrush
,(self
,) + _args
, _kwargs
)
710 def SetFont(self
, *_args
, **_kwargs
):
711 val
= apply(gdic
.wxDC_SetFont
,(self
,) + _args
, _kwargs
)
713 def SetLogicalFunction(self
, *_args
, **_kwargs
):
714 val
= apply(gdic
.wxDC_SetLogicalFunction
,(self
,) + _args
, _kwargs
)
716 def SetLogicalScale(self
, *_args
, **_kwargs
):
717 val
= apply(gdic
.wxDC_SetLogicalScale
,(self
,) + _args
, _kwargs
)
719 def SetMapMode(self
, *_args
, **_kwargs
):
720 val
= apply(gdic
.wxDC_SetMapMode
,(self
,) + _args
, _kwargs
)
722 def SetOptimization(self
, *_args
, **_kwargs
):
723 val
= apply(gdic
.wxDC_SetOptimization
,(self
,) + _args
, _kwargs
)
725 def SetPen(self
, *_args
, **_kwargs
):
726 val
= apply(gdic
.wxDC_SetPen
,(self
,) + _args
, _kwargs
)
728 def SetTextBackground(self
, *_args
, **_kwargs
):
729 val
= apply(gdic
.wxDC_SetTextBackground
,(self
,) + _args
, _kwargs
)
731 def SetTextForeground(self
, *_args
, **_kwargs
):
732 val
= apply(gdic
.wxDC_SetTextForeground
,(self
,) + _args
, _kwargs
)
734 def SetUserScale(self
, *_args
, **_kwargs
):
735 val
= apply(gdic
.wxDC_SetUserScale
,(self
,) + _args
, _kwargs
)
737 def StartDoc(self
, *_args
, **_kwargs
):
738 val
= apply(gdic
.wxDC_StartDoc
,(self
,) + _args
, _kwargs
)
740 def StartPage(self
, *_args
, **_kwargs
):
741 val
= apply(gdic
.wxDC_StartPage
,(self
,) + _args
, _kwargs
)
743 def DrawBitmap(self
, *_args
, **_kwargs
):
744 val
= apply(gdic
.wxDC_DrawBitmap
,(self
,) + _args
, _kwargs
)
746 def CanDrawBitmap(self
, *_args
, **_kwargs
):
747 val
= apply(gdic
.wxDC_CanDrawBitmap
,(self
,) + _args
, _kwargs
)
749 def CanGetTextExtent(self
, *_args
, **_kwargs
):
750 val
= apply(gdic
.wxDC_CanGetTextExtent
,(self
,) + _args
, _kwargs
)
752 def GetDepth(self
, *_args
, **_kwargs
):
753 val
= apply(gdic
.wxDC_GetDepth
,(self
,) + _args
, _kwargs
)
755 def GetPPI(self
, *_args
, **_kwargs
):
756 val
= apply(gdic
.wxDC_GetPPI
,(self
,) + _args
, _kwargs
)
757 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
759 def GetLogicalOrigin(self
, *_args
, **_kwargs
):
760 val
= apply(gdic
.wxDC_GetLogicalOrigin
,(self
,) + _args
, _kwargs
)
762 def SetLogicalOrigin(self
, *_args
, **_kwargs
):
763 val
= apply(gdic
.wxDC_SetLogicalOrigin
,(self
,) + _args
, _kwargs
)
765 def GetDeviceOrigin(self
, *_args
, **_kwargs
):
766 val
= apply(gdic
.wxDC_GetDeviceOrigin
,(self
,) + _args
, _kwargs
)
768 def SetAxisOrientation(self
, *_args
, **_kwargs
):
769 val
= apply(gdic
.wxDC_SetAxisOrientation
,(self
,) + _args
, _kwargs
)
771 def CalcBoundingBox(self
, *_args
, **_kwargs
):
772 val
= apply(gdic
.wxDC_CalcBoundingBox
,(self
,) + _args
, _kwargs
)
774 def ResetBoundingBox(self
, *_args
, **_kwargs
):
775 val
= apply(gdic
.wxDC_ResetBoundingBox
,(self
,) + _args
, _kwargs
)
777 def GetBoundingBox(self
, *_args
, **_kwargs
):
778 val
= apply(gdic
.wxDC_GetBoundingBox
,(self
,) + _args
, _kwargs
)
780 def _DrawPointList(self
, *_args
, **_kwargs
):
781 val
= apply(gdic
.wxDC__DrawPointList
,(self
,) + _args
, _kwargs
)
783 def _DrawLineList(self
, *_args
, **_kwargs
):
784 val
= apply(gdic
.wxDC__DrawLineList
,(self
,) + _args
, _kwargs
)
786 def _DrawRectangleList(self
, *_args
, **_kwargs
):
787 val
= apply(gdic
.wxDC__DrawRectangleList
,(self
,) + _args
, _kwargs
)
789 def _DrawEllipseList(self
, *_args
, **_kwargs
):
790 val
= apply(gdic
.wxDC__DrawEllipseList
,(self
,) + _args
, _kwargs
)
792 def _DrawPolygonList(self
, *_args
, **_kwargs
):
793 val
= apply(gdic
.wxDC__DrawPolygonList
,(self
,) + _args
, _kwargs
)
795 def _DrawTextList(self
, *_args
, **_kwargs
):
796 val
= apply(gdic
.wxDC__DrawTextList
,(self
,) + _args
, _kwargs
)
799 return "<C wxDC instance at %s>" % (self
.this
,)
801 def DrawPointList(self
, points
, pens
=None):
804 elif isinstance(pens
, wxPenPtr
):
806 elif len(pens
) != len(points
):
807 raise ValueError('points and pens must have same length')
808 return self
._DrawPointList
(points
, pens
, [])
811 def DrawLineList(self
, lines
, pens
=None):
814 elif isinstance(pens
, wxPenPtr
):
816 elif len(pens
) != len(lines
):
817 raise ValueError('lines and pens must have same length')
818 return self
._DrawLineList
(lines
, pens
, [])
821 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
824 elif isinstance(pens
, wxPenPtr
):
826 elif len(pens
) != len(rectangles
):
827 raise ValueError('rectangles and pens must have same length')
830 elif isinstance(brushes
, wxBrushPtr
):
832 elif len(brushes
) != len(rectangles
):
833 raise ValueError('rectangles and brushes must have same length')
834 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
837 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
840 elif isinstance(pens
, wxPenPtr
):
842 elif len(pens
) != len(ellipses
):
843 raise ValueError('ellipses and pens must have same length')
846 elif isinstance(brushes
, wxBrushPtr
):
848 elif len(brushes
) != len(ellipses
):
849 raise ValueError('ellipses and brushes must have same length')
850 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
853 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
854 ## Note: This does not currently support fill style or offset
855 ## you can always use the non-List version if need be.
856 ## I really would like to support fill-style, however,
857 ## but wxODDEVEN_RULE does not appear to be defined at the Python level
858 ## [It's in wx.py... --Robin]
861 elif isinstance(pens
, wxPenPtr
):
863 elif len(pens
) != len(polygons
):
864 raise ValueError('polygons and pens must have same length')
867 elif isinstance(brushes
, wxBrushPtr
):
869 elif len(brushes
) != len(polygons
):
870 raise ValueError('polygons and brushes must have same length')
871 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
874 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
875 ## NOTE: this does not currently support changing the font
876 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
877 ## If you want backgounds to do anything.
878 if type(textList
) == type(''):
879 textList
= [textList
]
880 elif len(textList
) != len(coords
):
881 raise ValueError('textlist and coords must have same length')
882 if foregrounds
is None:
884 elif isinstance(foregrounds
, wxColourPtr
):
885 foregrounds
= [foregrounds
]
886 elif len(foregrounds
) != len(coords
):
887 raise ValueError('foregrounds and coords must have same length')
888 if backgrounds
is None:
890 elif isinstance(backgrounds
, wxColourPtr
):
891 backgrounds
= [backgrounds
]
892 elif len(backgrounds
) != len(coords
):
893 raise ValueError('backgrounds and coords must have same length')
894 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
897 def __init__(self
,this
):
903 class wxMemoryDCPtr(wxDCPtr
):
904 def __init__(self
,this
):
907 def SelectObject(self
, *_args
, **_kwargs
):
908 val
= apply(gdic
.wxMemoryDC_SelectObject
,(self
,) + _args
, _kwargs
)
911 return "<C wxMemoryDC instance at %s>" % (self
.this
,)
912 class wxMemoryDC(wxMemoryDCPtr
):
913 def __init__(self
,*_args
,**_kwargs
):
914 self
.this
= apply(gdic
.new_wxMemoryDC
,_args
,_kwargs
)
920 class wxBufferedDCPtr(wxMemoryDCPtr
):
921 def __init__(self
,this
):
924 def UnMask(self
, *_args
, **_kwargs
):
925 val
= apply(gdic
.wxBufferedDC_UnMask
,(self
,) + _args
, _kwargs
)
928 return "<C wxBufferedDC instance at %s>" % (self
.this
,)
929 class wxBufferedDC(wxBufferedDCPtr
):
930 def __init__(self
,*_args
,**_kwargs
):
931 self
.this
= apply(gdic
.new_wxBufferedDC
,_args
,_kwargs
)
933 self
._dc
= _args
[0] # save a ref so the other dc won't be deleted before self
937 def wxBufferedDCInternalBuffer(*_args
,**_kwargs
):
938 val
= wxBufferedDCPtr(apply(gdic
.new_wxBufferedDCInternalBuffer
,_args
,_kwargs
))
940 val
._dc
= _args
[0] # save a ref so the other dc won't be deleted before self
944 class wxBufferedPaintDCPtr(wxBufferedDCPtr
):
945 def __init__(self
,this
):
949 return "<C wxBufferedPaintDC instance at %s>" % (self
.this
,)
950 class wxBufferedPaintDC(wxBufferedPaintDCPtr
):
951 def __init__(self
,*_args
,**_kwargs
):
952 self
.this
= apply(gdic
.new_wxBufferedPaintDC
,_args
,_kwargs
)
958 class wxScreenDCPtr(wxDCPtr
):
959 def __init__(self
,this
):
962 def StartDrawingOnTopWin(self
, *_args
, **_kwargs
):
963 val
= apply(gdic
.wxScreenDC_StartDrawingOnTopWin
,(self
,) + _args
, _kwargs
)
965 def StartDrawingOnTop(self
, *_args
, **_kwargs
):
966 val
= apply(gdic
.wxScreenDC_StartDrawingOnTop
,(self
,) + _args
, _kwargs
)
968 def EndDrawingOnTop(self
, *_args
, **_kwargs
):
969 val
= apply(gdic
.wxScreenDC_EndDrawingOnTop
,(self
,) + _args
, _kwargs
)
972 return "<C wxScreenDC instance at %s>" % (self
.this
,)
973 class wxScreenDC(wxScreenDCPtr
):
974 def __init__(self
,*_args
,**_kwargs
):
975 self
.this
= apply(gdic
.new_wxScreenDC
,_args
,_kwargs
)
981 class wxClientDCPtr(wxDCPtr
):
982 def __init__(self
,this
):
986 return "<C wxClientDC instance at %s>" % (self
.this
,)
987 class wxClientDC(wxClientDCPtr
):
988 def __init__(self
,*_args
,**_kwargs
):
989 self
.this
= apply(gdic
.new_wxClientDC
,_args
,_kwargs
)
995 class wxPaintDCPtr(wxDCPtr
):
996 def __init__(self
,this
):
1000 return "<C wxPaintDC instance at %s>" % (self
.this
,)
1001 class wxPaintDC(wxPaintDCPtr
):
1002 def __init__(self
,*_args
,**_kwargs
):
1003 self
.this
= apply(gdic
.new_wxPaintDC
,_args
,_kwargs
)
1009 class wxWindowDCPtr(wxDCPtr
):
1010 def __init__(self
,this
):
1014 return "<C wxWindowDC instance at %s>" % (self
.this
,)
1015 class wxWindowDC(wxWindowDCPtr
):
1016 def __init__(self
,*_args
,**_kwargs
):
1017 self
.this
= apply(gdic
.new_wxWindowDC
,_args
,_kwargs
)
1023 class wxPalettePtr(wxGDIObjectPtr
):
1024 def __init__(self
,this
):
1027 def __del__(self
, delfunc
=gdic
.delete_wxPalette
):
1028 if self
.thisown
== 1:
1033 def GetPixel(self
, *_args
, **_kwargs
):
1034 val
= apply(gdic
.wxPalette_GetPixel
,(self
,) + _args
, _kwargs
)
1036 def GetRGB(self
, *_args
, **_kwargs
):
1037 val
= apply(gdic
.wxPalette_GetRGB
,(self
,) + _args
, _kwargs
)
1039 def Ok(self
, *_args
, **_kwargs
):
1040 val
= apply(gdic
.wxPalette_Ok
,(self
,) + _args
, _kwargs
)
1043 return "<C wxPalette instance at %s>" % (self
.this
,)
1044 class wxPalette(wxPalettePtr
):
1045 def __init__(self
,*_args
,**_kwargs
):
1046 self
.this
= apply(gdic
.new_wxPalette
,_args
,_kwargs
)
1052 class wxImageListPtr(wxObjectPtr
):
1053 def __init__(self
,this
):
1056 def __del__(self
, delfunc
=gdic
.delete_wxImageList
):
1057 if self
.thisown
== 1:
1062 def Add(self
, *_args
, **_kwargs
):
1063 val
= apply(gdic
.wxImageList_Add
,(self
,) + _args
, _kwargs
)
1065 def AddWithColourMask(self
, *_args
, **_kwargs
):
1066 val
= apply(gdic
.wxImageList_AddWithColourMask
,(self
,) + _args
, _kwargs
)
1068 def AddIcon(self
, *_args
, **_kwargs
):
1069 val
= apply(gdic
.wxImageList_AddIcon
,(self
,) + _args
, _kwargs
)
1071 def Replace(self
, *_args
, **_kwargs
):
1072 val
= apply(gdic
.wxImageList_Replace
,(self
,) + _args
, _kwargs
)
1074 def Draw(self
, *_args
, **_kwargs
):
1075 val
= apply(gdic
.wxImageList_Draw
,(self
,) + _args
, _kwargs
)
1077 def GetImageCount(self
, *_args
, **_kwargs
):
1078 val
= apply(gdic
.wxImageList_GetImageCount
,(self
,) + _args
, _kwargs
)
1080 def Remove(self
, *_args
, **_kwargs
):
1081 val
= apply(gdic
.wxImageList_Remove
,(self
,) + _args
, _kwargs
)
1083 def RemoveAll(self
, *_args
, **_kwargs
):
1084 val
= apply(gdic
.wxImageList_RemoveAll
,(self
,) + _args
, _kwargs
)
1086 def GetSize(self
, *_args
, **_kwargs
):
1087 val
= apply(gdic
.wxImageList_GetSize
,(self
,) + _args
, _kwargs
)
1090 return "<C wxImageList instance at %s>" % (self
.this
,)
1091 class wxImageList(wxImageListPtr
):
1092 def __init__(self
,*_args
,**_kwargs
):
1093 self
.this
= apply(gdic
.new_wxImageList
,_args
,_kwargs
)
1099 class wxRegionPtr(wxGDIObjectPtr
):
1100 def __init__(self
,this
):
1103 def __del__(self
, delfunc
=gdic
.delete_wxRegion
):
1104 if self
.thisown
== 1:
1109 def Clear(self
, *_args
, **_kwargs
):
1110 val
= apply(gdic
.wxRegion_Clear
,(self
,) + _args
, _kwargs
)
1112 def Offset(self
, *_args
, **_kwargs
):
1113 val
= apply(gdic
.wxRegion_Offset
,(self
,) + _args
, _kwargs
)
1115 def Contains(self
, *_args
, **_kwargs
):
1116 val
= apply(gdic
.wxRegion_Contains
,(self
,) + _args
, _kwargs
)
1118 def ContainsPoint(self
, *_args
, **_kwargs
):
1119 val
= apply(gdic
.wxRegion_ContainsPoint
,(self
,) + _args
, _kwargs
)
1121 def ContainsRect(self
, *_args
, **_kwargs
):
1122 val
= apply(gdic
.wxRegion_ContainsRect
,(self
,) + _args
, _kwargs
)
1124 def ContainsRectDim(self
, *_args
, **_kwargs
):
1125 val
= apply(gdic
.wxRegion_ContainsRectDim
,(self
,) + _args
, _kwargs
)
1127 def GetBox(self
, *_args
, **_kwargs
):
1128 val
= apply(gdic
.wxRegion_GetBox
,(self
,) + _args
, _kwargs
)
1129 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1131 def Intersect(self
, *_args
, **_kwargs
):
1132 val
= apply(gdic
.wxRegion_Intersect
,(self
,) + _args
, _kwargs
)
1134 def IntersectRect(self
, *_args
, **_kwargs
):
1135 val
= apply(gdic
.wxRegion_IntersectRect
,(self
,) + _args
, _kwargs
)
1137 def IntersectRegion(self
, *_args
, **_kwargs
):
1138 val
= apply(gdic
.wxRegion_IntersectRegion
,(self
,) + _args
, _kwargs
)
1140 def IsEmpty(self
, *_args
, **_kwargs
):
1141 val
= apply(gdic
.wxRegion_IsEmpty
,(self
,) + _args
, _kwargs
)
1143 def Union(self
, *_args
, **_kwargs
):
1144 val
= apply(gdic
.wxRegion_Union
,(self
,) + _args
, _kwargs
)
1146 def UnionRect(self
, *_args
, **_kwargs
):
1147 val
= apply(gdic
.wxRegion_UnionRect
,(self
,) + _args
, _kwargs
)
1149 def UnionRegion(self
, *_args
, **_kwargs
):
1150 val
= apply(gdic
.wxRegion_UnionRegion
,(self
,) + _args
, _kwargs
)
1152 def Subtract(self
, *_args
, **_kwargs
):
1153 val
= apply(gdic
.wxRegion_Subtract
,(self
,) + _args
, _kwargs
)
1155 def SubtractRect(self
, *_args
, **_kwargs
):
1156 val
= apply(gdic
.wxRegion_SubtractRect
,(self
,) + _args
, _kwargs
)
1158 def SubtractRegion(self
, *_args
, **_kwargs
):
1159 val
= apply(gdic
.wxRegion_SubtractRegion
,(self
,) + _args
, _kwargs
)
1161 def Xor(self
, *_args
, **_kwargs
):
1162 val
= apply(gdic
.wxRegion_Xor
,(self
,) + _args
, _kwargs
)
1164 def XorRect(self
, *_args
, **_kwargs
):
1165 val
= apply(gdic
.wxRegion_XorRect
,(self
,) + _args
, _kwargs
)
1167 def XorRegion(self
, *_args
, **_kwargs
):
1168 val
= apply(gdic
.wxRegion_XorRegion
,(self
,) + _args
, _kwargs
)
1171 return "<C wxRegion instance at %s>" % (self
.this
,)
1172 class wxRegion(wxRegionPtr
):
1173 def __init__(self
,*_args
,**_kwargs
):
1174 self
.this
= apply(gdic
.new_wxRegion
,_args
,_kwargs
)
1179 def wxRegionFromPoints(*_args
,**_kwargs
):
1180 val
= wxRegionPtr(apply(gdic
.new_wxRegionFromPoints
,_args
,_kwargs
))
1185 class wxRegionIteratorPtr(wxObjectPtr
):
1186 def __init__(self
,this
):
1189 def __del__(self
, delfunc
=gdic
.delete_wxRegionIterator
):
1190 if self
.thisown
== 1:
1195 def GetX(self
, *_args
, **_kwargs
):
1196 val
= apply(gdic
.wxRegionIterator_GetX
,(self
,) + _args
, _kwargs
)
1198 def GetY(self
, *_args
, **_kwargs
):
1199 val
= apply(gdic
.wxRegionIterator_GetY
,(self
,) + _args
, _kwargs
)
1201 def GetW(self
, *_args
, **_kwargs
):
1202 val
= apply(gdic
.wxRegionIterator_GetW
,(self
,) + _args
, _kwargs
)
1204 def GetWidth(self
, *_args
, **_kwargs
):
1205 val
= apply(gdic
.wxRegionIterator_GetWidth
,(self
,) + _args
, _kwargs
)
1207 def GetH(self
, *_args
, **_kwargs
):
1208 val
= apply(gdic
.wxRegionIterator_GetH
,(self
,) + _args
, _kwargs
)
1210 def GetHeight(self
, *_args
, **_kwargs
):
1211 val
= apply(gdic
.wxRegionIterator_GetHeight
,(self
,) + _args
, _kwargs
)
1213 def GetRect(self
, *_args
, **_kwargs
):
1214 val
= apply(gdic
.wxRegionIterator_GetRect
,(self
,) + _args
, _kwargs
)
1215 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
1217 def HaveRects(self
, *_args
, **_kwargs
):
1218 val
= apply(gdic
.wxRegionIterator_HaveRects
,(self
,) + _args
, _kwargs
)
1220 def Reset(self
, *_args
, **_kwargs
):
1221 val
= apply(gdic
.wxRegionIterator_Reset
,(self
,) + _args
, _kwargs
)
1223 def Next(self
, *_args
, **_kwargs
):
1224 val
= apply(gdic
.wxRegionIterator_Next
,(self
,) + _args
, _kwargs
)
1227 return "<C wxRegionIterator instance at %s>" % (self
.this
,)
1228 class wxRegionIterator(wxRegionIteratorPtr
):
1229 def __init__(self
,*_args
,**_kwargs
):
1230 self
.this
= apply(gdic
.new_wxRegionIterator
,_args
,_kwargs
)
1238 #-------------- FUNCTION WRAPPERS ------------------
1240 def wxEmptyBitmap(*_args
, **_kwargs
):
1241 val
= apply(gdic
.wxEmptyBitmap
,_args
,_kwargs
)
1242 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1245 def wxBitmapFromXPMData(*_args
, **_kwargs
):
1246 val
= apply(gdic
.wxBitmapFromXPMData
,_args
,_kwargs
)
1247 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1250 def wxBitmapFromIcon(*_args
, **_kwargs
):
1251 val
= apply(gdic
.wxBitmapFromIcon
,_args
,_kwargs
)
1252 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1255 def wxBitmapFromBits(*_args
, **_kwargs
):
1256 val
= apply(gdic
.wxBitmapFromBits
,_args
,_kwargs
)
1257 if val
: val
= wxBitmapPtr(val
); val
.thisown
= 1
1260 def wxMaskColour(*_args
, **_kwargs
):
1261 val
= apply(gdic
.wxMaskColour
,_args
,_kwargs
)
1262 if val
: val
= wxMaskPtr(val
); val
.thisown
= 1
1265 def wxEmptyIcon(*_args
, **_kwargs
):
1266 val
= apply(gdic
.wxEmptyIcon
,_args
,_kwargs
)
1267 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1270 def wxIconFromXPMData(*_args
, **_kwargs
):
1271 val
= apply(gdic
.wxIconFromXPMData
,_args
,_kwargs
)
1272 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1275 def wxIconFromBitmap(*_args
, **_kwargs
):
1276 val
= apply(gdic
.wxIconFromBitmap
,_args
,_kwargs
)
1277 if val
: val
= wxIconPtr(val
); val
.thisown
= 1
1280 def wxStockCursor(*_args
, **_kwargs
):
1281 val
= apply(gdic
.wxStockCursor
,_args
,_kwargs
)
1282 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1285 def wxCursorFromImage(*_args
, **_kwargs
):
1286 val
= apply(gdic
.wxCursorFromImage
,_args
,_kwargs
)
1287 if val
: val
= wxCursorPtr(val
); val
.thisown
= 1
1290 def wxNamedColour(*_args
, **_kwargs
):
1291 val
= apply(gdic
.wxNamedColour
,_args
,_kwargs
)
1292 if val
: val
= wxColourPtr(val
); val
.thisown
= 1
1295 def wxMemoryDCFromDC(*_args
, **_kwargs
):
1296 val
= apply(gdic
.wxMemoryDCFromDC
,_args
,_kwargs
)
1297 if val
: val
= wxMemoryDCPtr(val
); val
.thisown
= 1
1302 #-------------- VARIABLE WRAPPERS ------------------
1304 wxIMAGELIST_DRAW_NORMAL
= gdic
.wxIMAGELIST_DRAW_NORMAL
1305 wxIMAGELIST_DRAW_TRANSPARENT
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
1306 wxIMAGELIST_DRAW_SELECTED
= gdic
.wxIMAGELIST_DRAW_SELECTED
1307 wxIMAGELIST_DRAW_FOCUSED
= gdic
.wxIMAGELIST_DRAW_FOCUSED
1308 wxIMAGE_LIST_NORMAL
= gdic
.wxIMAGE_LIST_NORMAL
1309 wxIMAGE_LIST_SMALL
= gdic
.wxIMAGE_LIST_SMALL
1310 wxIMAGE_LIST_STATE
= gdic
.wxIMAGE_LIST_STATE
1311 wxOutRegion
= gdic
.wxOutRegion
1312 wxPartRegion
= gdic
.wxPartRegion
1313 wxInRegion
= gdic
.wxInRegion
1315 wxNORMAL_FONT
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
)
1316 wxSMALL_FONT
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
)
1317 wxITALIC_FONT
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
)
1318 wxSWISS_FONT
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
)
1319 wxRED_PEN
= wxPenPtr(gdic
.cvar
.wxRED_PEN
)
1320 wxCYAN_PEN
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
)
1321 wxGREEN_PEN
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
)
1322 wxBLACK_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
)
1323 wxWHITE_PEN
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
)
1324 wxTRANSPARENT_PEN
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
)
1325 wxBLACK_DASHED_PEN
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
)
1326 wxGREY_PEN
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
)
1327 wxMEDIUM_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
)
1328 wxLIGHT_GREY_PEN
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
)
1329 wxBLUE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
)
1330 wxGREEN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
)
1331 wxWHITE_BRUSH
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
)
1332 wxBLACK_BRUSH
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
)
1333 wxTRANSPARENT_BRUSH
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
)
1334 wxCYAN_BRUSH
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
)
1335 wxRED_BRUSH
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
)
1336 wxGREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
)
1337 wxMEDIUM_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
)
1338 wxLIGHT_GREY_BRUSH
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
)
1339 wxBLACK
= wxColourPtr(gdic
.cvar
.wxBLACK
)
1340 wxWHITE
= wxColourPtr(gdic
.cvar
.wxWHITE
)
1341 wxRED
= wxColourPtr(gdic
.cvar
.wxRED
)
1342 wxBLUE
= wxColourPtr(gdic
.cvar
.wxBLUE
)
1343 wxGREEN
= wxColourPtr(gdic
.cvar
.wxGREEN
)
1344 wxCYAN
= wxColourPtr(gdic
.cvar
.wxCYAN
)
1345 wxLIGHT_GREY
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
)
1346 wxSTANDARD_CURSOR
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
)
1347 wxHOURGLASS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
)
1348 wxCROSS_CURSOR
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
)
1349 wxNullBitmap
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
)
1350 wxNullIcon
= wxIconPtr(gdic
.cvar
.wxNullIcon
)
1351 wxNullCursor
= wxCursorPtr(gdic
.cvar
.wxNullCursor
)
1352 wxNullPen
= wxPenPtr(gdic
.cvar
.wxNullPen
)
1353 wxNullBrush
= wxBrushPtr(gdic
.cvar
.wxNullBrush
)
1354 wxNullPalette
= wxPalettePtr(gdic
.cvar
.wxNullPalette
)
1355 wxNullFont
= wxFontPtr(gdic
.cvar
.wxNullFont
)
1356 wxNullColour
= wxColourPtr(gdic
.cvar
.wxNullColour
)
1357 wxTheFontList
= wxFontListPtr(gdic
.cvar
.wxTheFontList
)
1358 wxThePenList
= wxPenListPtr(gdic
.cvar
.wxThePenList
)
1359 wxTheBrushList
= wxBrushListPtr(gdic
.cvar
.wxTheBrushList
)
1360 wxTheColourDatabase
= wxColourDatabasePtr(gdic
.cvar
.wxTheColourDatabase
)