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 Ok(self
, *_args
, **_kwargs
): 
 135         val 
= apply(gdic
.wxIcon_Ok
,(self
,) + _args
, _kwargs
) 
 137     def GetWidth(self
, *_args
, **_kwargs
): 
 138         val 
= apply(gdic
.wxIcon_GetWidth
,(self
,) + _args
, _kwargs
) 
 140     def GetHeight(self
, *_args
, **_kwargs
): 
 141         val 
= apply(gdic
.wxIcon_GetHeight
,(self
,) + _args
, _kwargs
) 
 143     def GetDepth(self
, *_args
, **_kwargs
): 
 144         val 
= apply(gdic
.wxIcon_GetDepth
,(self
,) + _args
, _kwargs
) 
 146     def SetWidth(self
, *_args
, **_kwargs
): 
 147         val 
= apply(gdic
.wxIcon_SetWidth
,(self
,) + _args
, _kwargs
) 
 149     def SetHeight(self
, *_args
, **_kwargs
): 
 150         val 
= apply(gdic
.wxIcon_SetHeight
,(self
,) + _args
, _kwargs
) 
 152     def SetDepth(self
, *_args
, **_kwargs
): 
 153         val 
= apply(gdic
.wxIcon_SetDepth
,(self
,) + _args
, _kwargs
) 
 155     def CopyFromBitmap(self
, *_args
, **_kwargs
): 
 156         val 
= apply(gdic
.wxIcon_CopyFromBitmap
,(self
,) + _args
, _kwargs
) 
 159         return "<C wxIcon instance at %s>" % (self
.this
,) 
 160 class wxIcon(wxIconPtr
): 
 161     def __init__(self
,*_args
,**_kwargs
): 
 162         self
.this 
= apply(gdic
.new_wxIcon
,_args
,_kwargs
) 
 168 class wxIconBundlePtr 
: 
 169     def __init__(self
,this
): 
 172     def __del__(self
, delfunc
=gdic
.delete_wxIconBundle
): 
 173         if self
.thisown 
== 1: 
 178     def AddIcon(self
, *_args
, **_kwargs
): 
 179         val 
= apply(gdic
.wxIconBundle_AddIcon
,(self
,) + _args
, _kwargs
) 
 181     def AddIconFromFile(self
, *_args
, **_kwargs
): 
 182         val 
= apply(gdic
.wxIconBundle_AddIconFromFile
,(self
,) + _args
, _kwargs
) 
 184     def GetIcon(self
, *_args
, **_kwargs
): 
 185         val 
= apply(gdic
.wxIconBundle_GetIcon
,(self
,) + _args
, _kwargs
) 
 186         if val
: val 
= wxIconPtr(val
)  
 189         return "<C wxIconBundle instance at %s>" % (self
.this
,) 
 190 class wxIconBundle(wxIconBundlePtr
): 
 191     def __init__(self
,*_args
,**_kwargs
): 
 192         self
.this 
= apply(gdic
.new_wxIconBundle
,_args
,_kwargs
) 
 197 def wxIconBundleFromFile(*_args
,**_kwargs
): 
 198     val 
= wxIconBundlePtr(apply(gdic
.new_wxIconBundleFromFile
,_args
,_kwargs
)) 
 202 def wxIconBundleFromIcon(*_args
,**_kwargs
): 
 203     val 
= wxIconBundlePtr(apply(gdic
.new_wxIconBundleFromIcon
,_args
,_kwargs
)) 
 208 class wxCursorPtr(wxGDIObjectPtr
): 
 209     def __init__(self
,this
): 
 212     def __del__(self
, delfunc
=gdic
.delete_wxCursor
): 
 213         if self
.thisown 
== 1: 
 218     def Ok(self
, *_args
, **_kwargs
): 
 219         val 
= apply(gdic
.wxCursor_Ok
,(self
,) + _args
, _kwargs
) 
 222         return "<C wxCursor instance at %s>" % (self
.this
,) 
 223 class wxCursor(wxCursorPtr
): 
 224     def __init__(self
,this
): 
 230 class wxColourPtr(wxObjectPtr
): 
 231     def __init__(self
,this
): 
 234     def __del__(self
, delfunc
=gdic
.delete_wxColour
): 
 235         if self
.thisown 
== 1: 
 240     def Red(self
, *_args
, **_kwargs
): 
 241         val 
= apply(gdic
.wxColour_Red
,(self
,) + _args
, _kwargs
) 
 243     def Green(self
, *_args
, **_kwargs
): 
 244         val 
= apply(gdic
.wxColour_Green
,(self
,) + _args
, _kwargs
) 
 246     def Blue(self
, *_args
, **_kwargs
): 
 247         val 
= apply(gdic
.wxColour_Blue
,(self
,) + _args
, _kwargs
) 
 249     def Ok(self
, *_args
, **_kwargs
): 
 250         val 
= apply(gdic
.wxColour_Ok
,(self
,) + _args
, _kwargs
) 
 252     def Set(self
, *_args
, **_kwargs
): 
 253         val 
= apply(gdic
.wxColour_Set
,(self
,) + _args
, _kwargs
) 
 255     def Get(self
, *_args
, **_kwargs
): 
 256         val 
= apply(gdic
.wxColour_Get
,(self
,) + _args
, _kwargs
) 
 258     def __eq__(self
, *_args
, **_kwargs
): 
 259         val 
= apply(gdic
.wxColour___eq__
,(self
,) + _args
, _kwargs
) 
 261     def __ne__(self
, *_args
, **_kwargs
): 
 262         val 
= apply(gdic
.wxColour___ne__
,(self
,) + _args
, _kwargs
) 
 265         return "<C wxColour instance at %s>" % (self
.this
,) 
 267     def __str__(self
):                  return str(self
.asTuple()) 
 268     def __repr__(self
):                 return 'wxColour:' + str(self
.asTuple()) 
 269     def __nonzero__(self
):              return self
.Ok() 
 270     def __getinitargs__(self
):          return () 
 271     def __getstate__(self
):             return self
.asTuple() 
 272     def __setstate__(self
, state
):      self
.Set(*state
) 
 274 class wxColour(wxColourPtr
): 
 275     def __init__(self
,*_args
,**_kwargs
): 
 276         self
.this 
= apply(gdic
.new_wxColour
,_args
,_kwargs
) 
 282 class wxColourDatabasePtr(wxObjectPtr
): 
 283     def __init__(self
,this
): 
 286     def FindColour(self
, *_args
, **_kwargs
): 
 287         val 
= apply(gdic
.wxColourDatabase_FindColour
,(self
,) + _args
, _kwargs
) 
 288         if val
: val 
= wxColourPtr(val
)  
 290     def FindName(self
, *_args
, **_kwargs
): 
 291         val 
= apply(gdic
.wxColourDatabase_FindName
,(self
,) + _args
, _kwargs
) 
 293     def Append(self
, *_args
, **_kwargs
): 
 294         val 
= apply(gdic
.wxColourDatabase_Append
,(self
,) + _args
, _kwargs
) 
 297         return "<C wxColourDatabase instance at %s>" % (self
.this
,) 
 298 class wxColourDatabase(wxColourDatabasePtr
): 
 299     def __init__(self
,this
): 
 305 class wxPenPtr(wxGDIObjectPtr
): 
 306     def __init__(self
,this
): 
 309     def __del__(self
, delfunc
=gdic
.delete_wxPen
): 
 310         if self
.thisown 
== 1: 
 315     def GetCap(self
, *_args
, **_kwargs
): 
 316         val 
= apply(gdic
.wxPen_GetCap
,(self
,) + _args
, _kwargs
) 
 318     def GetColour(self
, *_args
, **_kwargs
): 
 319         val 
= apply(gdic
.wxPen_GetColour
,(self
,) + _args
, _kwargs
) 
 320         if val
: val 
= wxColourPtr(val
) ; val
.thisown 
= 1 
 322     def GetJoin(self
, *_args
, **_kwargs
): 
 323         val 
= apply(gdic
.wxPen_GetJoin
,(self
,) + _args
, _kwargs
) 
 325     def GetStyle(self
, *_args
, **_kwargs
): 
 326         val 
= apply(gdic
.wxPen_GetStyle
,(self
,) + _args
, _kwargs
) 
 328     def GetWidth(self
, *_args
, **_kwargs
): 
 329         val 
= apply(gdic
.wxPen_GetWidth
,(self
,) + _args
, _kwargs
) 
 331     def Ok(self
, *_args
, **_kwargs
): 
 332         val 
= apply(gdic
.wxPen_Ok
,(self
,) + _args
, _kwargs
) 
 334     def SetCap(self
, *_args
, **_kwargs
): 
 335         val 
= apply(gdic
.wxPen_SetCap
,(self
,) + _args
, _kwargs
) 
 337     def SetColour(self
, *_args
, **_kwargs
): 
 338         val 
= apply(gdic
.wxPen_SetColour
,(self
,) + _args
, _kwargs
) 
 340     def SetJoin(self
, *_args
, **_kwargs
): 
 341         val 
= apply(gdic
.wxPen_SetJoin
,(self
,) + _args
, _kwargs
) 
 343     def SetStyle(self
, *_args
, **_kwargs
): 
 344         val 
= apply(gdic
.wxPen_SetStyle
,(self
,) + _args
, _kwargs
) 
 346     def SetWidth(self
, *_args
, **_kwargs
): 
 347         val 
= apply(gdic
.wxPen_SetWidth
,(self
,) + _args
, _kwargs
) 
 349     def SetDashes(self
, *_args
, **_kwargs
): 
 350         val 
= apply(gdic
.wxPen_SetDashes
,(self
,) + _args
, _kwargs
) 
 352     def GetDashes(self
, *_args
, **_kwargs
): 
 353         val 
= apply(gdic
.wxPen_GetDashes
,(self
,) + _args
, _kwargs
) 
 356         return "<C wxPen instance at %s>" % (self
.this
,) 
 357 class wxPen(wxPenPtr
): 
 358     def __init__(self
,*_args
,**_kwargs
): 
 359         self
.this 
= apply(gdic
.new_wxPen
,_args
,_kwargs
) 
 365 class wxPyPenPtr(wxPenPtr
): 
 366     def __init__(self
,this
): 
 369     def __del__(self
, delfunc
=gdic
.delete_wxPyPen
): 
 370         if self
.thisown 
== 1: 
 375     def SetDashes(self
, *_args
, **_kwargs
): 
 376         val 
= apply(gdic
.wxPyPen_SetDashes
,(self
,) + _args
, _kwargs
) 
 379         return "<C wxPyPen instance at %s>" % (self
.this
,) 
 380 class wxPyPen(wxPyPenPtr
): 
 381     def __init__(self
,*_args
,**_kwargs
): 
 382         self
.this 
= apply(gdic
.new_wxPyPen
,_args
,_kwargs
) 
 388 class wxPenListPtr(wxObjectPtr
): 
 389     def __init__(self
,this
): 
 392     def AddPen(self
, *_args
, **_kwargs
): 
 393         val 
= apply(gdic
.wxPenList_AddPen
,(self
,) + _args
, _kwargs
) 
 395     def FindOrCreatePen(self
, *_args
, **_kwargs
): 
 396         val 
= apply(gdic
.wxPenList_FindOrCreatePen
,(self
,) + _args
, _kwargs
) 
 397         if val
: val 
= wxPenPtr(val
)  
 399     def RemovePen(self
, *_args
, **_kwargs
): 
 400         val 
= apply(gdic
.wxPenList_RemovePen
,(self
,) + _args
, _kwargs
) 
 402     def GetCount(self
, *_args
, **_kwargs
): 
 403         val 
= apply(gdic
.wxPenList_GetCount
,(self
,) + _args
, _kwargs
) 
 406         return "<C wxPenList instance at %s>" % (self
.this
,) 
 407 class wxPenList(wxPenListPtr
): 
 408     def __init__(self
,this
): 
 414 class wxBrushPtr(wxGDIObjectPtr
): 
 415     def __init__(self
,this
): 
 418     def __del__(self
, delfunc
=gdic
.delete_wxBrush
): 
 419         if self
.thisown 
== 1: 
 424     def GetColour(self
, *_args
, **_kwargs
): 
 425         val 
= apply(gdic
.wxBrush_GetColour
,(self
,) + _args
, _kwargs
) 
 426         if val
: val 
= wxColourPtr(val
) ; val
.thisown 
= 1 
 428     def GetStipple(self
, *_args
, **_kwargs
): 
 429         val 
= apply(gdic
.wxBrush_GetStipple
,(self
,) + _args
, _kwargs
) 
 430         if val
: val 
= wxBitmapPtr(val
)  
 432     def GetStyle(self
, *_args
, **_kwargs
): 
 433         val 
= apply(gdic
.wxBrush_GetStyle
,(self
,) + _args
, _kwargs
) 
 435     def Ok(self
, *_args
, **_kwargs
): 
 436         val 
= apply(gdic
.wxBrush_Ok
,(self
,) + _args
, _kwargs
) 
 438     def SetColour(self
, *_args
, **_kwargs
): 
 439         val 
= apply(gdic
.wxBrush_SetColour
,(self
,) + _args
, _kwargs
) 
 441     def SetStipple(self
, *_args
, **_kwargs
): 
 442         val 
= apply(gdic
.wxBrush_SetStipple
,(self
,) + _args
, _kwargs
) 
 444     def SetStyle(self
, *_args
, **_kwargs
): 
 445         val 
= apply(gdic
.wxBrush_SetStyle
,(self
,) + _args
, _kwargs
) 
 448         return "<C wxBrush instance at %s>" % (self
.this
,) 
 449 class wxBrush(wxBrushPtr
): 
 450     def __init__(self
,*_args
,**_kwargs
): 
 451         self
.this 
= apply(gdic
.new_wxBrush
,_args
,_kwargs
) 
 457 class wxBrushListPtr(wxObjectPtr
): 
 458     def __init__(self
,this
): 
 461     def AddBrush(self
, *_args
, **_kwargs
): 
 462         val 
= apply(gdic
.wxBrushList_AddBrush
,(self
,) + _args
, _kwargs
) 
 464     def FindOrCreateBrush(self
, *_args
, **_kwargs
): 
 465         val 
= apply(gdic
.wxBrushList_FindOrCreateBrush
,(self
,) + _args
, _kwargs
) 
 466         if val
: val 
= wxBrushPtr(val
)  
 468     def RemoveBrush(self
, *_args
, **_kwargs
): 
 469         val 
= apply(gdic
.wxBrushList_RemoveBrush
,(self
,) + _args
, _kwargs
) 
 471     def GetCount(self
, *_args
, **_kwargs
): 
 472         val 
= apply(gdic
.wxBrushList_GetCount
,(self
,) + _args
, _kwargs
) 
 475         return "<C wxBrushList instance at %s>" % (self
.this
,) 
 476 class wxBrushList(wxBrushListPtr
): 
 477     def __init__(self
,this
): 
 483 class wxDCPtr(wxObjectPtr
): 
 484     def __init__(self
,this
): 
 487     def __del__(self
, delfunc
=gdic
.delete_wxDC
): 
 488         if self
.thisown 
== 1: 
 493     def BeginDrawing(self
, *_args
, **_kwargs
): 
 494         val 
= apply(gdic
.wxDC_BeginDrawing
,(self
,) + _args
, _kwargs
) 
 496     def Blit(self
, *_args
, **_kwargs
): 
 497         val 
= apply(gdic
.wxDC_Blit
,(self
,) + _args
, _kwargs
) 
 499     def Clear(self
, *_args
, **_kwargs
): 
 500         val 
= apply(gdic
.wxDC_Clear
,(self
,) + _args
, _kwargs
) 
 502     def CrossHair(self
, *_args
, **_kwargs
): 
 503         val 
= apply(gdic
.wxDC_CrossHair
,(self
,) + _args
, _kwargs
) 
 505     def DestroyClippingRegion(self
, *_args
, **_kwargs
): 
 506         val 
= apply(gdic
.wxDC_DestroyClippingRegion
,(self
,) + _args
, _kwargs
) 
 508     def DeviceToLogicalX(self
, *_args
, **_kwargs
): 
 509         val 
= apply(gdic
.wxDC_DeviceToLogicalX
,(self
,) + _args
, _kwargs
) 
 511     def DeviceToLogicalXRel(self
, *_args
, **_kwargs
): 
 512         val 
= apply(gdic
.wxDC_DeviceToLogicalXRel
,(self
,) + _args
, _kwargs
) 
 514     def DeviceToLogicalY(self
, *_args
, **_kwargs
): 
 515         val 
= apply(gdic
.wxDC_DeviceToLogicalY
,(self
,) + _args
, _kwargs
) 
 517     def DeviceToLogicalYRel(self
, *_args
, **_kwargs
): 
 518         val 
= apply(gdic
.wxDC_DeviceToLogicalYRel
,(self
,) + _args
, _kwargs
) 
 520     def DrawArc(self
, *_args
, **_kwargs
): 
 521         val 
= apply(gdic
.wxDC_DrawArc
,(self
,) + _args
, _kwargs
) 
 523     def DrawCircle(self
, *_args
, **_kwargs
): 
 524         val 
= apply(gdic
.wxDC_DrawCircle
,(self
,) + _args
, _kwargs
) 
 526     def DrawEllipse(self
, *_args
, **_kwargs
): 
 527         val 
= apply(gdic
.wxDC_DrawEllipse
,(self
,) + _args
, _kwargs
) 
 529     def DrawEllipticArc(self
, *_args
, **_kwargs
): 
 530         val 
= apply(gdic
.wxDC_DrawEllipticArc
,(self
,) + _args
, _kwargs
) 
 532     def DrawIcon(self
, *_args
, **_kwargs
): 
 533         val 
= apply(gdic
.wxDC_DrawIcon
,(self
,) + _args
, _kwargs
) 
 535     def DrawLabel(self
, *_args
, **_kwargs
): 
 536         val 
= apply(gdic
.wxDC_DrawLabel
,(self
,) + _args
, _kwargs
) 
 538     def DrawImageLabel(self
, *_args
, **_kwargs
): 
 539         val 
= apply(gdic
.wxDC_DrawImageLabel
,(self
,) + _args
, _kwargs
) 
 540         if val
: val 
= wxRectPtr(val
) ; val
.thisown 
= 1 
 542     def DrawLine(self
, *_args
, **_kwargs
): 
 543         val 
= apply(gdic
.wxDC_DrawLine
,(self
,) + _args
, _kwargs
) 
 545     def DrawLines(self
, *_args
, **_kwargs
): 
 546         val 
= apply(gdic
.wxDC_DrawLines
,(self
,) + _args
, _kwargs
) 
 548     def DrawPolygon(self
, *_args
, **_kwargs
): 
 549         val 
= apply(gdic
.wxDC_DrawPolygon
,(self
,) + _args
, _kwargs
) 
 551     def DrawPoint(self
, *_args
, **_kwargs
): 
 552         val 
= apply(gdic
.wxDC_DrawPoint
,(self
,) + _args
, _kwargs
) 
 554     def DrawRectangle(self
, *_args
, **_kwargs
): 
 555         val 
= apply(gdic
.wxDC_DrawRectangle
,(self
,) + _args
, _kwargs
) 
 557     def DrawRectangleRect(self
, *_args
, **_kwargs
): 
 558         val 
= apply(gdic
.wxDC_DrawRectangleRect
,(self
,) + _args
, _kwargs
) 
 560     def DrawRotatedText(self
, *_args
, **_kwargs
): 
 561         val 
= apply(gdic
.wxDC_DrawRotatedText
,(self
,) + _args
, _kwargs
) 
 563     def DrawRoundedRectangle(self
, *_args
, **_kwargs
): 
 564         val 
= apply(gdic
.wxDC_DrawRoundedRectangle
,(self
,) + _args
, _kwargs
) 
 566     def DrawSpline(self
, *_args
, **_kwargs
): 
 567         val 
= apply(gdic
.wxDC_DrawSpline
,(self
,) + _args
, _kwargs
) 
 569     def DrawText(self
, *_args
, **_kwargs
): 
 570         val 
= apply(gdic
.wxDC_DrawText
,(self
,) + _args
, _kwargs
) 
 572     def EndDoc(self
, *_args
, **_kwargs
): 
 573         val 
= apply(gdic
.wxDC_EndDoc
,(self
,) + _args
, _kwargs
) 
 575     def EndDrawing(self
, *_args
, **_kwargs
): 
 576         val 
= apply(gdic
.wxDC_EndDrawing
,(self
,) + _args
, _kwargs
) 
 578     def EndPage(self
, *_args
, **_kwargs
): 
 579         val 
= apply(gdic
.wxDC_EndPage
,(self
,) + _args
, _kwargs
) 
 581     def FloodFill(self
, *_args
, **_kwargs
): 
 582         val 
= apply(gdic
.wxDC_FloodFill
,(self
,) + _args
, _kwargs
) 
 584     def GetBackground(self
, *_args
, **_kwargs
): 
 585         val 
= apply(gdic
.wxDC_GetBackground
,(self
,) + _args
, _kwargs
) 
 586         if val
: val 
= wxBrushPtr(val
) ; val
.thisown 
= 1 
 588     def GetBrush(self
, *_args
, **_kwargs
): 
 589         val 
= apply(gdic
.wxDC_GetBrush
,(self
,) + _args
, _kwargs
) 
 590         if val
: val 
= wxBrushPtr(val
) ; val
.thisown 
= 1 
 592     def GetCharHeight(self
, *_args
, **_kwargs
): 
 593         val 
= apply(gdic
.wxDC_GetCharHeight
,(self
,) + _args
, _kwargs
) 
 595     def GetCharWidth(self
, *_args
, **_kwargs
): 
 596         val 
= apply(gdic
.wxDC_GetCharWidth
,(self
,) + _args
, _kwargs
) 
 598     def GetClippingBox(self
, *_args
, **_kwargs
): 
 599         val 
= apply(gdic
.wxDC_GetClippingBox
,(self
,) + _args
, _kwargs
) 
 601     def GetFont(self
, *_args
, **_kwargs
): 
 602         val 
= apply(gdic
.wxDC_GetFont
,(self
,) + _args
, _kwargs
) 
 603         if val
: val 
= wxFontPtr(val
) ; val
.thisown 
= 1 
 605     def GetLogicalFunction(self
, *_args
, **_kwargs
): 
 606         val 
= apply(gdic
.wxDC_GetLogicalFunction
,(self
,) + _args
, _kwargs
) 
 608     def GetLogicalScale(self
, *_args
, **_kwargs
): 
 609         val 
= apply(gdic
.wxDC_GetLogicalScale
,(self
,) + _args
, _kwargs
) 
 611     def GetMapMode(self
, *_args
, **_kwargs
): 
 612         val 
= apply(gdic
.wxDC_GetMapMode
,(self
,) + _args
, _kwargs
) 
 614     def GetOptimization(self
, *_args
, **_kwargs
): 
 615         val 
= apply(gdic
.wxDC_GetOptimization
,(self
,) + _args
, _kwargs
) 
 617     def GetPen(self
, *_args
, **_kwargs
): 
 618         val 
= apply(gdic
.wxDC_GetPen
,(self
,) + _args
, _kwargs
) 
 619         if val
: val 
= wxPenPtr(val
) ; val
.thisown 
= 1 
 621     def GetPixel(self
, *_args
, **_kwargs
): 
 622         val 
= apply(gdic
.wxDC_GetPixel
,(self
,) + _args
, _kwargs
) 
 623         if val
: val 
= wxColourPtr(val
) ; val
.thisown 
= 1 
 625     def GetSizeTuple(self
, *_args
, **_kwargs
): 
 626         val 
= apply(gdic
.wxDC_GetSizeTuple
,(self
,) + _args
, _kwargs
) 
 628     def GetSize(self
, *_args
, **_kwargs
): 
 629         val 
= apply(gdic
.wxDC_GetSize
,(self
,) + _args
, _kwargs
) 
 630         if val
: val 
= wxSizePtr(val
) ; val
.thisown 
= 1 
 632     def GetSizeMM(self
, *_args
, **_kwargs
): 
 633         val 
= apply(gdic
.wxDC_GetSizeMM
,(self
,) + _args
, _kwargs
) 
 634         if val
: val 
= wxSizePtr(val
) ; val
.thisown 
= 1 
 636     def GetTextBackground(self
, *_args
, **_kwargs
): 
 637         val 
= apply(gdic
.wxDC_GetTextBackground
,(self
,) + _args
, _kwargs
) 
 638         if val
: val 
= wxColourPtr(val
) ; val
.thisown 
= 1 
 640     def GetTextExtent(self
, *_args
, **_kwargs
): 
 641         val 
= apply(gdic
.wxDC_GetTextExtent
,(self
,) + _args
, _kwargs
) 
 643     def GetFullTextExtent(self
, *_args
, **_kwargs
): 
 644         val 
= apply(gdic
.wxDC_GetFullTextExtent
,(self
,) + _args
, _kwargs
) 
 646     def GetMultiLineTextExtent(self
, *_args
, **_kwargs
): 
 647         val 
= apply(gdic
.wxDC_GetMultiLineTextExtent
,(self
,) + _args
, _kwargs
) 
 649     def GetTextForeground(self
, *_args
, **_kwargs
): 
 650         val 
= apply(gdic
.wxDC_GetTextForeground
,(self
,) + _args
, _kwargs
) 
 651         if val
: val 
= wxColourPtr(val
) ; val
.thisown 
= 1 
 653     def GetUserScale(self
, *_args
, **_kwargs
): 
 654         val 
= apply(gdic
.wxDC_GetUserScale
,(self
,) + _args
, _kwargs
) 
 656     def LogicalToDeviceX(self
, *_args
, **_kwargs
): 
 657         val 
= apply(gdic
.wxDC_LogicalToDeviceX
,(self
,) + _args
, _kwargs
) 
 659     def LogicalToDeviceXRel(self
, *_args
, **_kwargs
): 
 660         val 
= apply(gdic
.wxDC_LogicalToDeviceXRel
,(self
,) + _args
, _kwargs
) 
 662     def LogicalToDeviceY(self
, *_args
, **_kwargs
): 
 663         val 
= apply(gdic
.wxDC_LogicalToDeviceY
,(self
,) + _args
, _kwargs
) 
 665     def LogicalToDeviceYRel(self
, *_args
, **_kwargs
): 
 666         val 
= apply(gdic
.wxDC_LogicalToDeviceYRel
,(self
,) + _args
, _kwargs
) 
 668     def MaxX(self
, *_args
, **_kwargs
): 
 669         val 
= apply(gdic
.wxDC_MaxX
,(self
,) + _args
, _kwargs
) 
 671     def MaxY(self
, *_args
, **_kwargs
): 
 672         val 
= apply(gdic
.wxDC_MaxY
,(self
,) + _args
, _kwargs
) 
 674     def MinX(self
, *_args
, **_kwargs
): 
 675         val 
= apply(gdic
.wxDC_MinX
,(self
,) + _args
, _kwargs
) 
 677     def MinY(self
, *_args
, **_kwargs
): 
 678         val 
= apply(gdic
.wxDC_MinY
,(self
,) + _args
, _kwargs
) 
 680     def Ok(self
, *_args
, **_kwargs
): 
 681         val 
= apply(gdic
.wxDC_Ok
,(self
,) + _args
, _kwargs
) 
 683     def SetDeviceOrigin(self
, *_args
, **_kwargs
): 
 684         val 
= apply(gdic
.wxDC_SetDeviceOrigin
,(self
,) + _args
, _kwargs
) 
 686     def SetBackground(self
, *_args
, **_kwargs
): 
 687         val 
= apply(gdic
.wxDC_SetBackground
,(self
,) + _args
, _kwargs
) 
 689     def SetBackgroundMode(self
, *_args
, **_kwargs
): 
 690         val 
= apply(gdic
.wxDC_SetBackgroundMode
,(self
,) + _args
, _kwargs
) 
 692     def SetClippingRegion(self
, *_args
, **_kwargs
): 
 693         val 
= apply(gdic
.wxDC_SetClippingRegion
,(self
,) + _args
, _kwargs
) 
 695     def SetClippingRegionAsRegion(self
, *_args
, **_kwargs
): 
 696         val 
= apply(gdic
.wxDC_SetClippingRegionAsRegion
,(self
,) + _args
, _kwargs
) 
 698     def SetClippingRect(self
, *_args
, **_kwargs
): 
 699         val 
= apply(gdic
.wxDC_SetClippingRect
,(self
,) + _args
, _kwargs
) 
 701     def SetPalette(self
, *_args
, **_kwargs
): 
 702         val 
= apply(gdic
.wxDC_SetPalette
,(self
,) + _args
, _kwargs
) 
 704     def SetBrush(self
, *_args
, **_kwargs
): 
 705         val 
= apply(gdic
.wxDC_SetBrush
,(self
,) + _args
, _kwargs
) 
 707     def SetFont(self
, *_args
, **_kwargs
): 
 708         val 
= apply(gdic
.wxDC_SetFont
,(self
,) + _args
, _kwargs
) 
 710     def SetLogicalFunction(self
, *_args
, **_kwargs
): 
 711         val 
= apply(gdic
.wxDC_SetLogicalFunction
,(self
,) + _args
, _kwargs
) 
 713     def SetLogicalScale(self
, *_args
, **_kwargs
): 
 714         val 
= apply(gdic
.wxDC_SetLogicalScale
,(self
,) + _args
, _kwargs
) 
 716     def SetMapMode(self
, *_args
, **_kwargs
): 
 717         val 
= apply(gdic
.wxDC_SetMapMode
,(self
,) + _args
, _kwargs
) 
 719     def SetOptimization(self
, *_args
, **_kwargs
): 
 720         val 
= apply(gdic
.wxDC_SetOptimization
,(self
,) + _args
, _kwargs
) 
 722     def SetPen(self
, *_args
, **_kwargs
): 
 723         val 
= apply(gdic
.wxDC_SetPen
,(self
,) + _args
, _kwargs
) 
 725     def SetTextBackground(self
, *_args
, **_kwargs
): 
 726         val 
= apply(gdic
.wxDC_SetTextBackground
,(self
,) + _args
, _kwargs
) 
 728     def SetTextForeground(self
, *_args
, **_kwargs
): 
 729         val 
= apply(gdic
.wxDC_SetTextForeground
,(self
,) + _args
, _kwargs
) 
 731     def SetUserScale(self
, *_args
, **_kwargs
): 
 732         val 
= apply(gdic
.wxDC_SetUserScale
,(self
,) + _args
, _kwargs
) 
 734     def StartDoc(self
, *_args
, **_kwargs
): 
 735         val 
= apply(gdic
.wxDC_StartDoc
,(self
,) + _args
, _kwargs
) 
 737     def StartPage(self
, *_args
, **_kwargs
): 
 738         val 
= apply(gdic
.wxDC_StartPage
,(self
,) + _args
, _kwargs
) 
 740     def DrawBitmap(self
, *_args
, **_kwargs
): 
 741         val 
= apply(gdic
.wxDC_DrawBitmap
,(self
,) + _args
, _kwargs
) 
 743     def CanDrawBitmap(self
, *_args
, **_kwargs
): 
 744         val 
= apply(gdic
.wxDC_CanDrawBitmap
,(self
,) + _args
, _kwargs
) 
 746     def CanGetTextExtent(self
, *_args
, **_kwargs
): 
 747         val 
= apply(gdic
.wxDC_CanGetTextExtent
,(self
,) + _args
, _kwargs
) 
 749     def GetDepth(self
, *_args
, **_kwargs
): 
 750         val 
= apply(gdic
.wxDC_GetDepth
,(self
,) + _args
, _kwargs
) 
 752     def GetPPI(self
, *_args
, **_kwargs
): 
 753         val 
= apply(gdic
.wxDC_GetPPI
,(self
,) + _args
, _kwargs
) 
 754         if val
: val 
= wxSizePtr(val
) ; val
.thisown 
= 1 
 756     def GetLogicalOrigin(self
, *_args
, **_kwargs
): 
 757         val 
= apply(gdic
.wxDC_GetLogicalOrigin
,(self
,) + _args
, _kwargs
) 
 759     def SetLogicalOrigin(self
, *_args
, **_kwargs
): 
 760         val 
= apply(gdic
.wxDC_SetLogicalOrigin
,(self
,) + _args
, _kwargs
) 
 762     def GetDeviceOrigin(self
, *_args
, **_kwargs
): 
 763         val 
= apply(gdic
.wxDC_GetDeviceOrigin
,(self
,) + _args
, _kwargs
) 
 765     def SetAxisOrientation(self
, *_args
, **_kwargs
): 
 766         val 
= apply(gdic
.wxDC_SetAxisOrientation
,(self
,) + _args
, _kwargs
) 
 768     def CalcBoundingBox(self
, *_args
, **_kwargs
): 
 769         val 
= apply(gdic
.wxDC_CalcBoundingBox
,(self
,) + _args
, _kwargs
) 
 771     def ResetBoundingBox(self
, *_args
, **_kwargs
): 
 772         val 
= apply(gdic
.wxDC_ResetBoundingBox
,(self
,) + _args
, _kwargs
) 
 774     def GetBoundingBox(self
, *_args
, **_kwargs
): 
 775         val 
= apply(gdic
.wxDC_GetBoundingBox
,(self
,) + _args
, _kwargs
) 
 777     def _DrawPointList(self
, *_args
, **_kwargs
): 
 778         val 
= apply(gdic
.wxDC__DrawPointList
,(self
,) + _args
, _kwargs
) 
 780     def _DrawLineList(self
, *_args
, **_kwargs
): 
 781         val 
= apply(gdic
.wxDC__DrawLineList
,(self
,) + _args
, _kwargs
) 
 783     def _DrawRectangleList(self
, *_args
, **_kwargs
): 
 784         val 
= apply(gdic
.wxDC__DrawRectangleList
,(self
,) + _args
, _kwargs
) 
 786     def _DrawEllipseList(self
, *_args
, **_kwargs
): 
 787         val 
= apply(gdic
.wxDC__DrawEllipseList
,(self
,) + _args
, _kwargs
) 
 789     def _DrawPolygonList(self
, *_args
, **_kwargs
): 
 790         val 
= apply(gdic
.wxDC__DrawPolygonList
,(self
,) + _args
, _kwargs
) 
 792     def _DrawTextList(self
, *_args
, **_kwargs
): 
 793         val 
= apply(gdic
.wxDC__DrawTextList
,(self
,) + _args
, _kwargs
) 
 796         return "<C wxDC instance at %s>" % (self
.this
,) 
 798     def DrawPointList(self
, points
, pens
=None): 
 801         elif isinstance(pens
, wxPenPtr
): 
 803         elif len(pens
) != len(points
): 
 804            raise ValueError('points and pens must have same length') 
 805         return self
._DrawPointList
(points
, pens
, []) 
 808     def DrawLineList(self
, lines
, pens
=None): 
 811         elif isinstance(pens
, wxPenPtr
): 
 813         elif len(pens
) != len(lines
): 
 814            raise ValueError('lines and pens must have same length') 
 815         return self
._DrawLineList
(lines
, pens
, []) 
 818     def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None): 
 821         elif isinstance(pens
, wxPenPtr
): 
 823         elif len(pens
) != len(rectangles
): 
 824            raise ValueError('rectangles and pens must have same length') 
 827         elif isinstance(brushes
, wxBrushPtr
): 
 829         elif len(brushes
) != len(rectangles
): 
 830            raise ValueError('rectangles and brushes must have same length') 
 831         return self
._DrawRectangleList
(rectangles
, pens
, brushes
) 
 834     def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None): 
 837         elif isinstance(pens
, wxPenPtr
): 
 839         elif len(pens
) != len(ellipses
): 
 840            raise ValueError('ellipses and pens must have same length') 
 843         elif isinstance(brushes
, wxBrushPtr
): 
 845         elif len(brushes
) != len(ellipses
): 
 846            raise ValueError('ellipses and brushes must have same length') 
 847         return self
._DrawEllipseList
(ellipses
, pens
, brushes
) 
 850     def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None): 
 851         ## Note: This does not currently support fill style or offset 
 852         ## you can always use the non-List version if need be. 
 853         ## I really would like to support fill-style, however, 
 854         ## but wxODDEVEN_RULE does not appear to be defined at the Python level 
 855         ## [It's in wx.py... --Robin] 
 858         elif isinstance(pens
, wxPenPtr
): 
 860         elif len(pens
) != len(polygons
): 
 861            raise ValueError('polygons and pens must have same length') 
 864         elif isinstance(brushes
, wxBrushPtr
): 
 866         elif len(brushes
) != len(polygons
): 
 867            raise ValueError('polygons and brushes must have same length') 
 868         return self
._DrawPolygonList
(polygons
, pens
, brushes
) 
 871     def DrawTextList(self
, textList
, coords
, foregrounds 
= None, backgrounds 
= None, fonts 
= None): 
 872         ## NOTE: this does not currently support changing the font 
 873         ##       Make sure you set Background mode to wxSolid (DC.SetBackgroundMode) 
 874         ##       If you want backgounds to do anything. 
 875         if type(textList
) == type(''): 
 876            textList 
= [textList
] 
 877         elif len(textList
) != len(coords
): 
 878            raise ValueError('textlist and coords must have same length') 
 879         if foregrounds 
is None: 
 881         elif isinstance(foregrounds
, wxColourPtr
): 
 882            foregrounds 
= [foregrounds
] 
 883         elif len(foregrounds
) != len(coords
): 
 884            raise ValueError('foregrounds and coords must have same length') 
 885         if backgrounds 
is None: 
 887         elif isinstance(backgrounds
, wxColourPtr
): 
 888            backgrounds 
= [backgrounds
] 
 889         elif len(backgrounds
) != len(coords
): 
 890            raise ValueError('backgrounds and coords must have same length') 
 891         return  self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
) 
 894     def __init__(self
,this
): 
 900 class wxMemoryDCPtr(wxDCPtr
): 
 901     def __init__(self
,this
): 
 904     def SelectObject(self
, *_args
, **_kwargs
): 
 905         val 
= apply(gdic
.wxMemoryDC_SelectObject
,(self
,) + _args
, _kwargs
) 
 908         return "<C wxMemoryDC instance at %s>" % (self
.this
,) 
 909 class wxMemoryDC(wxMemoryDCPtr
): 
 910     def __init__(self
,*_args
,**_kwargs
): 
 911         self
.this 
= apply(gdic
.new_wxMemoryDC
,_args
,_kwargs
) 
 917 class wxBufferedDCPtr(wxMemoryDCPtr
): 
 918     def __init__(self
,this
): 
 921     def UnMask(self
, *_args
, **_kwargs
): 
 922         val 
= apply(gdic
.wxBufferedDC_UnMask
,(self
,) + _args
, _kwargs
) 
 925         return "<C wxBufferedDC instance at %s>" % (self
.this
,) 
 926 class wxBufferedDC(wxBufferedDCPtr
): 
 927     def __init__(self
,*_args
,**_kwargs
): 
 928         self
.this 
= apply(gdic
.new_wxBufferedDC
,_args
,_kwargs
) 
 930         self
._dc 
= _args
[0] # save a ref so the other dc won't be deleted before self 
 934 def wxBufferedDCInternalBuffer(*_args
,**_kwargs
): 
 935     val 
= wxBufferedDCPtr(apply(gdic
.new_wxBufferedDCInternalBuffer
,_args
,_kwargs
)) 
 937     val
._dc 
= _args
[0] # save a ref so the other dc won't be deleted before self 
 941 class wxBufferedPaintDCPtr(wxBufferedDCPtr
): 
 942     def __init__(self
,this
): 
 946         return "<C wxBufferedPaintDC instance at %s>" % (self
.this
,) 
 947 class wxBufferedPaintDC(wxBufferedPaintDCPtr
): 
 948     def __init__(self
,*_args
,**_kwargs
): 
 949         self
.this 
= apply(gdic
.new_wxBufferedPaintDC
,_args
,_kwargs
) 
 955 class wxScreenDCPtr(wxDCPtr
): 
 956     def __init__(self
,this
): 
 959     def StartDrawingOnTopWin(self
, *_args
, **_kwargs
): 
 960         val 
= apply(gdic
.wxScreenDC_StartDrawingOnTopWin
,(self
,) + _args
, _kwargs
) 
 962     def StartDrawingOnTop(self
, *_args
, **_kwargs
): 
 963         val 
= apply(gdic
.wxScreenDC_StartDrawingOnTop
,(self
,) + _args
, _kwargs
) 
 965     def EndDrawingOnTop(self
, *_args
, **_kwargs
): 
 966         val 
= apply(gdic
.wxScreenDC_EndDrawingOnTop
,(self
,) + _args
, _kwargs
) 
 969         return "<C wxScreenDC instance at %s>" % (self
.this
,) 
 970 class wxScreenDC(wxScreenDCPtr
): 
 971     def __init__(self
,*_args
,**_kwargs
): 
 972         self
.this 
= apply(gdic
.new_wxScreenDC
,_args
,_kwargs
) 
 978 class wxClientDCPtr(wxDCPtr
): 
 979     def __init__(self
,this
): 
 983         return "<C wxClientDC instance at %s>" % (self
.this
,) 
 984 class wxClientDC(wxClientDCPtr
): 
 985     def __init__(self
,*_args
,**_kwargs
): 
 986         self
.this 
= apply(gdic
.new_wxClientDC
,_args
,_kwargs
) 
 992 class wxPaintDCPtr(wxDCPtr
): 
 993     def __init__(self
,this
): 
 997         return "<C wxPaintDC instance at %s>" % (self
.this
,) 
 998 class wxPaintDC(wxPaintDCPtr
): 
 999     def __init__(self
,*_args
,**_kwargs
): 
1000         self
.this 
= apply(gdic
.new_wxPaintDC
,_args
,_kwargs
) 
1006 class wxWindowDCPtr(wxDCPtr
): 
1007     def __init__(self
,this
): 
1011         return "<C wxWindowDC instance at %s>" % (self
.this
,) 
1012 class wxWindowDC(wxWindowDCPtr
): 
1013     def __init__(self
,*_args
,**_kwargs
): 
1014         self
.this 
= apply(gdic
.new_wxWindowDC
,_args
,_kwargs
) 
1020 class wxPalettePtr(wxGDIObjectPtr
): 
1021     def __init__(self
,this
): 
1024     def __del__(self
, delfunc
=gdic
.delete_wxPalette
): 
1025         if self
.thisown 
== 1: 
1030     def GetPixel(self
, *_args
, **_kwargs
): 
1031         val 
= apply(gdic
.wxPalette_GetPixel
,(self
,) + _args
, _kwargs
) 
1033     def GetRGB(self
, *_args
, **_kwargs
): 
1034         val 
= apply(gdic
.wxPalette_GetRGB
,(self
,) + _args
, _kwargs
) 
1036     def Ok(self
, *_args
, **_kwargs
): 
1037         val 
= apply(gdic
.wxPalette_Ok
,(self
,) + _args
, _kwargs
) 
1040         return "<C wxPalette instance at %s>" % (self
.this
,) 
1041 class wxPalette(wxPalettePtr
): 
1042     def __init__(self
,*_args
,**_kwargs
): 
1043         self
.this 
= apply(gdic
.new_wxPalette
,_args
,_kwargs
) 
1049 class wxImageListPtr(wxObjectPtr
): 
1050     def __init__(self
,this
): 
1053     def __del__(self
, delfunc
=gdic
.delete_wxImageList
): 
1054         if self
.thisown 
== 1: 
1059     def Add(self
, *_args
, **_kwargs
): 
1060         val 
= apply(gdic
.wxImageList_Add
,(self
,) + _args
, _kwargs
) 
1062     def AddWithColourMask(self
, *_args
, **_kwargs
): 
1063         val 
= apply(gdic
.wxImageList_AddWithColourMask
,(self
,) + _args
, _kwargs
) 
1065     def AddIcon(self
, *_args
, **_kwargs
): 
1066         val 
= apply(gdic
.wxImageList_AddIcon
,(self
,) + _args
, _kwargs
) 
1068     def Replace(self
, *_args
, **_kwargs
): 
1069         val 
= apply(gdic
.wxImageList_Replace
,(self
,) + _args
, _kwargs
) 
1071     def Draw(self
, *_args
, **_kwargs
): 
1072         val 
= apply(gdic
.wxImageList_Draw
,(self
,) + _args
, _kwargs
) 
1074     def GetImageCount(self
, *_args
, **_kwargs
): 
1075         val 
= apply(gdic
.wxImageList_GetImageCount
,(self
,) + _args
, _kwargs
) 
1077     def Remove(self
, *_args
, **_kwargs
): 
1078         val 
= apply(gdic
.wxImageList_Remove
,(self
,) + _args
, _kwargs
) 
1080     def RemoveAll(self
, *_args
, **_kwargs
): 
1081         val 
= apply(gdic
.wxImageList_RemoveAll
,(self
,) + _args
, _kwargs
) 
1083     def GetSize(self
, *_args
, **_kwargs
): 
1084         val 
= apply(gdic
.wxImageList_GetSize
,(self
,) + _args
, _kwargs
) 
1087         return "<C wxImageList instance at %s>" % (self
.this
,) 
1088 class wxImageList(wxImageListPtr
): 
1089     def __init__(self
,*_args
,**_kwargs
): 
1090         self
.this 
= apply(gdic
.new_wxImageList
,_args
,_kwargs
) 
1096 class wxRegionPtr(wxGDIObjectPtr
): 
1097     def __init__(self
,this
): 
1100     def __del__(self
, delfunc
=gdic
.delete_wxRegion
): 
1101         if self
.thisown 
== 1: 
1106     def Clear(self
, *_args
, **_kwargs
): 
1107         val 
= apply(gdic
.wxRegion_Clear
,(self
,) + _args
, _kwargs
) 
1109     def Contains(self
, *_args
, **_kwargs
): 
1110         val 
= apply(gdic
.wxRegion_Contains
,(self
,) + _args
, _kwargs
) 
1112     def ContainsPoint(self
, *_args
, **_kwargs
): 
1113         val 
= apply(gdic
.wxRegion_ContainsPoint
,(self
,) + _args
, _kwargs
) 
1115     def ContainsRect(self
, *_args
, **_kwargs
): 
1116         val 
= apply(gdic
.wxRegion_ContainsRect
,(self
,) + _args
, _kwargs
) 
1118     def ContainsRectDim(self
, *_args
, **_kwargs
): 
1119         val 
= apply(gdic
.wxRegion_ContainsRectDim
,(self
,) + _args
, _kwargs
) 
1121     def GetBox(self
, *_args
, **_kwargs
): 
1122         val 
= apply(gdic
.wxRegion_GetBox
,(self
,) + _args
, _kwargs
) 
1123         if val
: val 
= wxRectPtr(val
) ; val
.thisown 
= 1 
1125     def Intersect(self
, *_args
, **_kwargs
): 
1126         val 
= apply(gdic
.wxRegion_Intersect
,(self
,) + _args
, _kwargs
) 
1128     def IntersectRect(self
, *_args
, **_kwargs
): 
1129         val 
= apply(gdic
.wxRegion_IntersectRect
,(self
,) + _args
, _kwargs
) 
1131     def IntersectRegion(self
, *_args
, **_kwargs
): 
1132         val 
= apply(gdic
.wxRegion_IntersectRegion
,(self
,) + _args
, _kwargs
) 
1134     def IsEmpty(self
, *_args
, **_kwargs
): 
1135         val 
= apply(gdic
.wxRegion_IsEmpty
,(self
,) + _args
, _kwargs
) 
1137     def Union(self
, *_args
, **_kwargs
): 
1138         val 
= apply(gdic
.wxRegion_Union
,(self
,) + _args
, _kwargs
) 
1140     def UnionRect(self
, *_args
, **_kwargs
): 
1141         val 
= apply(gdic
.wxRegion_UnionRect
,(self
,) + _args
, _kwargs
) 
1143     def UnionRegion(self
, *_args
, **_kwargs
): 
1144         val 
= apply(gdic
.wxRegion_UnionRegion
,(self
,) + _args
, _kwargs
) 
1146     def Subtract(self
, *_args
, **_kwargs
): 
1147         val 
= apply(gdic
.wxRegion_Subtract
,(self
,) + _args
, _kwargs
) 
1149     def SubtractRect(self
, *_args
, **_kwargs
): 
1150         val 
= apply(gdic
.wxRegion_SubtractRect
,(self
,) + _args
, _kwargs
) 
1152     def SubtractRegion(self
, *_args
, **_kwargs
): 
1153         val 
= apply(gdic
.wxRegion_SubtractRegion
,(self
,) + _args
, _kwargs
) 
1155     def Xor(self
, *_args
, **_kwargs
): 
1156         val 
= apply(gdic
.wxRegion_Xor
,(self
,) + _args
, _kwargs
) 
1158     def XorRect(self
, *_args
, **_kwargs
): 
1159         val 
= apply(gdic
.wxRegion_XorRect
,(self
,) + _args
, _kwargs
) 
1161     def XorRegion(self
, *_args
, **_kwargs
): 
1162         val 
= apply(gdic
.wxRegion_XorRegion
,(self
,) + _args
, _kwargs
) 
1165         return "<C wxRegion instance at %s>" % (self
.this
,) 
1166 class wxRegion(wxRegionPtr
): 
1167     def __init__(self
,*_args
,**_kwargs
): 
1168         self
.this 
= apply(gdic
.new_wxRegion
,_args
,_kwargs
) 
1174 class wxRegionIteratorPtr(wxObjectPtr
): 
1175     def __init__(self
,this
): 
1178     def __del__(self
, delfunc
=gdic
.delete_wxRegionIterator
): 
1179         if self
.thisown 
== 1: 
1184     def GetX(self
, *_args
, **_kwargs
): 
1185         val 
= apply(gdic
.wxRegionIterator_GetX
,(self
,) + _args
, _kwargs
) 
1187     def GetY(self
, *_args
, **_kwargs
): 
1188         val 
= apply(gdic
.wxRegionIterator_GetY
,(self
,) + _args
, _kwargs
) 
1190     def GetW(self
, *_args
, **_kwargs
): 
1191         val 
= apply(gdic
.wxRegionIterator_GetW
,(self
,) + _args
, _kwargs
) 
1193     def GetWidth(self
, *_args
, **_kwargs
): 
1194         val 
= apply(gdic
.wxRegionIterator_GetWidth
,(self
,) + _args
, _kwargs
) 
1196     def GetH(self
, *_args
, **_kwargs
): 
1197         val 
= apply(gdic
.wxRegionIterator_GetH
,(self
,) + _args
, _kwargs
) 
1199     def GetHeight(self
, *_args
, **_kwargs
): 
1200         val 
= apply(gdic
.wxRegionIterator_GetHeight
,(self
,) + _args
, _kwargs
) 
1202     def GetRect(self
, *_args
, **_kwargs
): 
1203         val 
= apply(gdic
.wxRegionIterator_GetRect
,(self
,) + _args
, _kwargs
) 
1204         if val
: val 
= wxRectPtr(val
) ; val
.thisown 
= 1 
1206     def HaveRects(self
, *_args
, **_kwargs
): 
1207         val 
= apply(gdic
.wxRegionIterator_HaveRects
,(self
,) + _args
, _kwargs
) 
1209     def Reset(self
, *_args
, **_kwargs
): 
1210         val 
= apply(gdic
.wxRegionIterator_Reset
,(self
,) + _args
, _kwargs
) 
1212     def Next(self
, *_args
, **_kwargs
): 
1213         val 
= apply(gdic
.wxRegionIterator_Next
,(self
,) + _args
, _kwargs
) 
1216         return "<C wxRegionIterator instance at %s>" % (self
.this
,) 
1217 class wxRegionIterator(wxRegionIteratorPtr
): 
1218     def __init__(self
,*_args
,**_kwargs
): 
1219         self
.this 
= apply(gdic
.new_wxRegionIterator
,_args
,_kwargs
) 
1227 #-------------- FUNCTION WRAPPERS ------------------ 
1229 def wxEmptyBitmap(*_args
, **_kwargs
): 
1230     val 
= apply(gdic
.wxEmptyBitmap
,_args
,_kwargs
) 
1231     if val
: val 
= wxBitmapPtr(val
); val
.thisown 
= 1 
1234 def wxBitmapFromXPMData(*_args
, **_kwargs
): 
1235     val 
= apply(gdic
.wxBitmapFromXPMData
,_args
,_kwargs
) 
1236     if val
: val 
= wxBitmapPtr(val
); val
.thisown 
= 1 
1239 def wxBitmapFromIcon(*_args
, **_kwargs
): 
1240     val 
= apply(gdic
.wxBitmapFromIcon
,_args
,_kwargs
) 
1241     if val
: val 
= wxBitmapPtr(val
); val
.thisown 
= 1 
1244 def wxBitmapFromBits(*_args
, **_kwargs
): 
1245     val 
= apply(gdic
.wxBitmapFromBits
,_args
,_kwargs
) 
1246     if val
: val 
= wxBitmapPtr(val
); val
.thisown 
= 1 
1249 def wxMaskColour(*_args
, **_kwargs
): 
1250     val 
= apply(gdic
.wxMaskColour
,_args
,_kwargs
) 
1251     if val
: val 
= wxMaskPtr(val
); val
.thisown 
= 1 
1254 def wxEmptyIcon(*_args
, **_kwargs
): 
1255     val 
= apply(gdic
.wxEmptyIcon
,_args
,_kwargs
) 
1256     if val
: val 
= wxIconPtr(val
); val
.thisown 
= 1 
1259 def wxIconFromXPMData(*_args
, **_kwargs
): 
1260     val 
= apply(gdic
.wxIconFromXPMData
,_args
,_kwargs
) 
1261     if val
: val 
= wxIconPtr(val
); val
.thisown 
= 1 
1264 def wxIconFromBitmap(*_args
, **_kwargs
): 
1265     val 
= apply(gdic
.wxIconFromBitmap
,_args
,_kwargs
) 
1266     if val
: val 
= wxIconPtr(val
); val
.thisown 
= 1 
1269 def wxStockCursor(*_args
, **_kwargs
): 
1270     val 
= apply(gdic
.wxStockCursor
,_args
,_kwargs
) 
1271     if val
: val 
= wxCursorPtr(val
); val
.thisown 
= 1 
1274 def wxCursorFromImage(*_args
, **_kwargs
): 
1275     val 
= apply(gdic
.wxCursorFromImage
,_args
,_kwargs
) 
1276     if val
: val 
= wxCursorPtr(val
); val
.thisown 
= 1 
1279 def wxNamedColour(*_args
, **_kwargs
): 
1280     val 
= apply(gdic
.wxNamedColour
,_args
,_kwargs
) 
1281     if val
: val 
= wxColourPtr(val
); val
.thisown 
= 1 
1284 def wxMemoryDCFromDC(*_args
, **_kwargs
): 
1285     val 
= apply(gdic
.wxMemoryDCFromDC
,_args
,_kwargs
) 
1286     if val
: val 
= wxMemoryDCPtr(val
); val
.thisown 
= 1 
1291 #-------------- VARIABLE WRAPPERS ------------------ 
1293 wxIMAGELIST_DRAW_NORMAL 
= gdic
.wxIMAGELIST_DRAW_NORMAL
 
1294 wxIMAGELIST_DRAW_TRANSPARENT 
= gdic
.wxIMAGELIST_DRAW_TRANSPARENT
 
1295 wxIMAGELIST_DRAW_SELECTED 
= gdic
.wxIMAGELIST_DRAW_SELECTED
 
1296 wxIMAGELIST_DRAW_FOCUSED 
= gdic
.wxIMAGELIST_DRAW_FOCUSED
 
1297 wxIMAGE_LIST_NORMAL 
= gdic
.wxIMAGE_LIST_NORMAL
 
1298 wxIMAGE_LIST_SMALL 
= gdic
.wxIMAGE_LIST_SMALL
 
1299 wxIMAGE_LIST_STATE 
= gdic
.wxIMAGE_LIST_STATE
 
1300 wxOutRegion 
= gdic
.wxOutRegion
 
1301 wxPartRegion 
= gdic
.wxPartRegion
 
1302 wxInRegion 
= gdic
.wxInRegion
 
1304 wxNORMAL_FONT 
= wxFontPtr(gdic
.cvar
.wxNORMAL_FONT
) 
1305 wxSMALL_FONT 
= wxFontPtr(gdic
.cvar
.wxSMALL_FONT
) 
1306 wxITALIC_FONT 
= wxFontPtr(gdic
.cvar
.wxITALIC_FONT
) 
1307 wxSWISS_FONT 
= wxFontPtr(gdic
.cvar
.wxSWISS_FONT
) 
1308 wxRED_PEN 
= wxPenPtr(gdic
.cvar
.wxRED_PEN
) 
1309 wxCYAN_PEN 
= wxPenPtr(gdic
.cvar
.wxCYAN_PEN
) 
1310 wxGREEN_PEN 
= wxPenPtr(gdic
.cvar
.wxGREEN_PEN
) 
1311 wxBLACK_PEN 
= wxPenPtr(gdic
.cvar
.wxBLACK_PEN
) 
1312 wxWHITE_PEN 
= wxPenPtr(gdic
.cvar
.wxWHITE_PEN
) 
1313 wxTRANSPARENT_PEN 
= wxPenPtr(gdic
.cvar
.wxTRANSPARENT_PEN
) 
1314 wxBLACK_DASHED_PEN 
= wxPenPtr(gdic
.cvar
.wxBLACK_DASHED_PEN
) 
1315 wxGREY_PEN 
= wxPenPtr(gdic
.cvar
.wxGREY_PEN
) 
1316 wxMEDIUM_GREY_PEN 
= wxPenPtr(gdic
.cvar
.wxMEDIUM_GREY_PEN
) 
1317 wxLIGHT_GREY_PEN 
= wxPenPtr(gdic
.cvar
.wxLIGHT_GREY_PEN
) 
1318 wxBLUE_BRUSH 
= wxBrushPtr(gdic
.cvar
.wxBLUE_BRUSH
) 
1319 wxGREEN_BRUSH 
= wxBrushPtr(gdic
.cvar
.wxGREEN_BRUSH
) 
1320 wxWHITE_BRUSH 
= wxBrushPtr(gdic
.cvar
.wxWHITE_BRUSH
) 
1321 wxBLACK_BRUSH 
= wxBrushPtr(gdic
.cvar
.wxBLACK_BRUSH
) 
1322 wxTRANSPARENT_BRUSH 
= wxBrushPtr(gdic
.cvar
.wxTRANSPARENT_BRUSH
) 
1323 wxCYAN_BRUSH 
= wxBrushPtr(gdic
.cvar
.wxCYAN_BRUSH
) 
1324 wxRED_BRUSH 
= wxBrushPtr(gdic
.cvar
.wxRED_BRUSH
) 
1325 wxGREY_BRUSH 
= wxBrushPtr(gdic
.cvar
.wxGREY_BRUSH
) 
1326 wxMEDIUM_GREY_BRUSH 
= wxBrushPtr(gdic
.cvar
.wxMEDIUM_GREY_BRUSH
) 
1327 wxLIGHT_GREY_BRUSH 
= wxBrushPtr(gdic
.cvar
.wxLIGHT_GREY_BRUSH
) 
1328 wxBLACK 
= wxColourPtr(gdic
.cvar
.wxBLACK
) 
1329 wxWHITE 
= wxColourPtr(gdic
.cvar
.wxWHITE
) 
1330 wxRED 
= wxColourPtr(gdic
.cvar
.wxRED
) 
1331 wxBLUE 
= wxColourPtr(gdic
.cvar
.wxBLUE
) 
1332 wxGREEN 
= wxColourPtr(gdic
.cvar
.wxGREEN
) 
1333 wxCYAN 
= wxColourPtr(gdic
.cvar
.wxCYAN
) 
1334 wxLIGHT_GREY 
= wxColourPtr(gdic
.cvar
.wxLIGHT_GREY
) 
1335 wxSTANDARD_CURSOR 
= wxCursorPtr(gdic
.cvar
.wxSTANDARD_CURSOR
) 
1336 wxHOURGLASS_CURSOR 
= wxCursorPtr(gdic
.cvar
.wxHOURGLASS_CURSOR
) 
1337 wxCROSS_CURSOR 
= wxCursorPtr(gdic
.cvar
.wxCROSS_CURSOR
) 
1338 wxNullBitmap 
= wxBitmapPtr(gdic
.cvar
.wxNullBitmap
) 
1339 wxNullIcon 
= wxIconPtr(gdic
.cvar
.wxNullIcon
) 
1340 wxNullCursor 
= wxCursorPtr(gdic
.cvar
.wxNullCursor
) 
1341 wxNullPen 
= wxPenPtr(gdic
.cvar
.wxNullPen
) 
1342 wxNullBrush 
= wxBrushPtr(gdic
.cvar
.wxNullBrush
) 
1343 wxNullPalette 
= wxPalettePtr(gdic
.cvar
.wxNullPalette
) 
1344 wxNullFont 
= wxFontPtr(gdic
.cvar
.wxNullFont
) 
1345 wxNullColour 
= wxColourPtr(gdic
.cvar
.wxNullColour
) 
1346 wxTheFontList 
= wxFontListPtr(gdic
.cvar
.wxTheFontList
) 
1347 wxThePenList 
= wxPenListPtr(gdic
.cvar
.wxThePenList
) 
1348 wxTheBrushList 
= wxBrushListPtr(gdic
.cvar
.wxTheBrushList
) 
1349 wxTheColourDatabase 
= wxColourDatabasePtr(gdic
.cvar
.wxTheColourDatabase
)