1 # This file was created automatically by SWIG 1.3.29. 
   2 # Don't modify this file, modify the SWIG interface instead. 
   6 new_instancemethod 
= new
.instancemethod
 
   7 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1): 
   8     if (name 
== "thisown"): return self
.this
.own(value
) 
  10         if type(value
).__name
__ == 'PySwigObject': 
  11             self
.__dict
__[name
] = value
 
  13     method 
= class_type
.__swig
_setmethods
__.get(name
,None) 
  14     if method
: return method(self
,value
) 
  15     if (not static
) or hasattr(self
,name
): 
  16         self
.__dict
__[name
] = value
 
  18         raise AttributeError("You cannot add attributes to %s" % self
) 
  20 def _swig_setattr(self
,class_type
,name
,value
): 
  21     return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0) 
  23 def _swig_getattr(self
,class_type
,name
): 
  24     if (name 
== "thisown"): return self
.this
.own() 
  25     method 
= class_type
.__swig
_getmethods
__.get(name
,None) 
  26     if method
: return method(self
) 
  27     raise AttributeError,name
 
  30     try: strthis 
= "proxy of " + self
.this
.__repr
__() 
  32     return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,) 
  36     _object 
= types
.ObjectType
 
  38 except AttributeError: 
  44 def _swig_setattr_nondynamic_method(set): 
  45     def set_attr(self
,name
,value
): 
  46         if (name 
== "thisown"): return self
.this
.own(value
) 
  47         if hasattr(self
,name
) or (name 
== "this"): 
  50             raise AttributeError("You cannot add attributes to %s" % self
) 
  56 #--------------------------------------------------------------------------- 
  58 class GDIObject(_core
.Object
): 
  59     """Proxy of C++ GDIObject class""" 
  60     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
  62     def __init__(self
, *args
, **kwargs
):  
  63         """__init__(self) -> GDIObject""" 
  64         _gdi_
.GDIObject_swiginit(self
,_gdi_
.new_GDIObject(*args
, **kwargs
)) 
  65     __swig_destroy__ 
= _gdi_
.delete_GDIObject
 
  66     __del__ 
= lambda self 
: None; 
  67     def IsNull(*args
, **kwargs
): 
  68         """IsNull(self) -> bool""" 
  69         return _gdi_
.GDIObject_IsNull(*args
, **kwargs
) 
  71 _gdi_
.GDIObject_swigregister(GDIObject
) 
  73 #--------------------------------------------------------------------------- 
  75 C2S_NAME 
= _gdi_
.C2S_NAME
 
  76 C2S_CSS_SYNTAX 
= _gdi_
.C2S_CSS_SYNTAX
 
  77 C2S_HTML_SYNTAX 
= _gdi_
.C2S_HTML_SYNTAX
 
  78 ALPHA_TRANSPARENT 
= _gdi_
.ALPHA_TRANSPARENT
 
  79 ALPHA_OPAQUE 
= _gdi_
.ALPHA_OPAQUE
 
  80 class Colour(_core
.Object
): 
  82     A colour is an object representing a combination of Red, Green, and 
  83     Blue (RGB) intensity values, and is used to determine drawing colours, 
  84     window colours, etc.  Valid RGB values are in the range 0 to 255. 
  86     In wxPython there are typemaps that will automatically convert from a 
  87     colour name, from a '#RRGGBB' colour hex value string, or from a 3 
  88     integer tuple to a wx.Colour object when calling C++ methods that 
  89     expect a wxColour.  This means that the following are all 
  92         win.SetBackgroundColour(wxColour(0,0,255)) 
  93         win.SetBackgroundColour('BLUE') 
  94         win.SetBackgroundColour('#0000FF') 
  95         win.SetBackgroundColour((0,0,255)) 
  97     Additional colour names and their coresponding values can be added 
  98     using `wx.ColourDatabase`.  Various system colours (as set in the 
  99     user's system preferences) can be retrieved with 
 100     `wx.SystemSettings.GetColour`. 
 103     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
 104     __repr__ 
= _swig_repr
 
 105     def __init__(self
, *args
, **kwargs
):  
 107         __init__(self, byte red=0, byte green=0, byte blue=0, byte alpha=ALPHA_OPAQUE) -> Colour 
 109         Constructs a colour from red, green and blue values. 
 111         :see: Alternate constructors `wx.NamedColour` and `wx.ColourRGB`. 
 114         _gdi_
.Colour_swiginit(self
,_gdi_
.new_Colour(*args
, **kwargs
)) 
 115     __swig_destroy__ 
= _gdi_
.delete_Colour
 
 116     __del__ 
= lambda self 
: None; 
 117     def Red(*args
, **kwargs
): 
 121         Returns the red intensity. 
 123         return _gdi_
.Colour_Red(*args
, **kwargs
) 
 125     def Green(*args
, **kwargs
): 
 129         Returns the green intensity. 
 131         return _gdi_
.Colour_Green(*args
, **kwargs
) 
 133     def Blue(*args
, **kwargs
): 
 137         Returns the blue intensity. 
 139         return _gdi_
.Colour_Blue(*args
, **kwargs
) 
 141     def Alpha(*args
, **kwargs
): 
 145         Returns the Alpha value. 
 147         return _gdi_
.Colour_Alpha(*args
, **kwargs
) 
 149     def IsOk(*args
, **kwargs
): 
 153         Returns True if the colour object is valid (the colour has been 
 154         initialised with RGB values). 
 156         return _gdi_
.Colour_IsOk(*args
, **kwargs
) 
 159     def Set(*args
, **kwargs
): 
 161         Set(self, byte red, byte green, byte blue, byte alpha=ALPHA_OPAQUE) 
 163         Sets the RGB intensity values. 
 165         return _gdi_
.Colour_Set(*args
, **kwargs
) 
 167     def SetRGB(*args
, **kwargs
): 
 169         SetRGB(self, unsigned long colRGB) 
 171         Sets the RGB intensity values from a packed RGB value. 
 173         return _gdi_
.Colour_SetRGB(*args
, **kwargs
) 
 175     def SetFromName(*args
, **kwargs
): 
 177         SetFromName(self, String colourName) 
 179         Sets the RGB intensity values using a colour name listed in 
 180         ``wx.TheColourDatabase``. 
 182         return _gdi_
.Colour_SetFromName(*args
, **kwargs
) 
 184     def GetAsString(*args
, **kwargs
): 
 186         GetAsString(self, long flags=wxC2S_NAME|wxC2S_CSS_SYNTAX) -> String 
 188         Return the colour as a string.  Acceptable flags are: 
 190                     =================== ================================== 
 191                     wx.C2S_NAME          return colour name, when possible 
 192                     wx.C2S_CSS_SYNTAX    return colour in rgb(r,g,b) syntax 
 193                     wx.C2S_HTML_SYNTAX   return colour in #rrggbb syntax      
 194                     =================== ================================== 
 196         return _gdi_
.Colour_GetAsString(*args
, **kwargs
) 
 198     def GetPixel(*args
, **kwargs
): 
 200         GetPixel(self) -> long 
 202         Returns a pixel value which is platform-dependent. On Windows, a 
 203         COLORREF is returned. On X, an allocated pixel value is returned.  -1 
 204         is returned if the pixel is invalid (on X, unallocated). 
 206         return _gdi_
.Colour_GetPixel(*args
, **kwargs
) 
 208     def __eq__(*args
, **kwargs
): 
 210         __eq__(self, PyObject other) -> bool 
 212         Compare colours for equality. 
 214         return _gdi_
.Colour___eq__(*args
, **kwargs
) 
 216     def __ne__(*args
, **kwargs
): 
 218         __ne__(self, PyObject other) -> bool 
 220         Compare colours for inequality. 
 222         return _gdi_
.Colour___ne__(*args
, **kwargs
) 
 224     def Get(*args
, **kwargs
): 
 228         Returns the RGB intensity values as a tuple. 
 230         return _gdi_
.Colour_Get(*args
, **kwargs
) 
 232     def GetRGB(*args
, **kwargs
): 
 234         GetRGB(self) -> unsigned long 
 236         Return the colour as a packed RGB value 
 238         return _gdi_
.Colour_GetRGB(*args
, **kwargs
) 
 240     asTuple 
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead") 
 241     def __str__(self
):                  return str(self
.Get(True)) 
 242     def __repr__(self
):                 return 'wx.Colour' + str(self
.Get(True)) 
 243     def __len__(self
):                  return len(self
.Get()) 
 244     def __getitem__(self
, index
):       return self
.Get()[index
] 
 245     def __nonzero__(self
):              return self
.IsOk() 
 246     __safe_for_unpickling__ 
= True 
 247     def __reduce__(self
):               return (Colour
, self
.Get(True)) 
 249     Pixel 
= property(GetPixel
,doc
="See `GetPixel`")  
 250     RGB 
= property(GetRGB
,SetRGB
,doc
="See `GetRGB` and `SetRGB`")  
 251 _gdi_
.Colour_swigregister(Colour
) 
 253 def NamedColour(*args
, **kwargs
): 
 255     NamedColour(String colorName) -> Colour 
 257     Constructs a colour object using a colour name listed in 
 258     ``wx.TheColourDatabase``. 
 260     val 
= _gdi_
.new_NamedColour(*args
, **kwargs
) 
 263 def ColourRGB(*args
, **kwargs
): 
 265     ColourRGB(unsigned long colRGB) -> Colour 
 267     Constructs a colour from a packed RGB value. 
 269     val 
= _gdi_
.new_ColourRGB(*args
, **kwargs
) 
 273 NamedColor 
= NamedColour
 
 276 class Palette(GDIObject
): 
 277     """Proxy of C++ Palette class""" 
 278     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
 279     __repr__ 
= _swig_repr
 
 280     def __init__(self
, *args
, **kwargs
):  
 281         """__init__(self, int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette""" 
 282         _gdi_
.Palette_swiginit(self
,_gdi_
.new_Palette(*args
, **kwargs
)) 
 283     __swig_destroy__ 
= _gdi_
.delete_Palette
 
 284     __del__ 
= lambda self 
: None; 
 285     def GetPixel(*args
, **kwargs
): 
 286         """GetPixel(self, byte red, byte green, byte blue) -> int""" 
 287         return _gdi_
.Palette_GetPixel(*args
, **kwargs
) 
 289     def GetRGB(*args
, **kwargs
): 
 290         """GetRGB(self, int pixel) -> (R,G,B)""" 
 291         return _gdi_
.Palette_GetRGB(*args
, **kwargs
) 
 293     def GetColoursCount(*args
, **kwargs
): 
 294         """GetColoursCount(self) -> int""" 
 295         return _gdi_
.Palette_GetColoursCount(*args
, **kwargs
) 
 297     def IsOk(*args
, **kwargs
): 
 298         """IsOk(self) -> bool""" 
 299         return _gdi_
.Palette_IsOk(*args
, **kwargs
) 
 302     def __nonzero__(self
): return self
.IsOk()  
 303     ColoursCount 
= property(GetColoursCount
,doc
="See `GetColoursCount`")  
 304 _gdi_
.Palette_swigregister(Palette
) 
 306 #--------------------------------------------------------------------------- 
 308 class Pen(GDIObject
): 
 309     """Proxy of C++ Pen class""" 
 310     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
 311     __repr__ 
= _swig_repr
 
 312     def __init__(self
, *args
, **kwargs
):  
 313         """__init__(self, Colour colour, int width=1, int style=SOLID) -> Pen""" 
 314         _gdi_
.Pen_swiginit(self
,_gdi_
.new_Pen(*args
, **kwargs
)) 
 315     __swig_destroy__ 
= _gdi_
.delete_Pen
 
 316     __del__ 
= lambda self 
: None; 
 317     def GetCap(*args
, **kwargs
): 
 318         """GetCap(self) -> int""" 
 319         return _gdi_
.Pen_GetCap(*args
, **kwargs
) 
 321     def GetColour(*args
, **kwargs
): 
 322         """GetColour(self) -> Colour""" 
 323         return _gdi_
.Pen_GetColour(*args
, **kwargs
) 
 325     def GetJoin(*args
, **kwargs
): 
 326         """GetJoin(self) -> int""" 
 327         return _gdi_
.Pen_GetJoin(*args
, **kwargs
) 
 329     def GetStyle(*args
, **kwargs
): 
 330         """GetStyle(self) -> int""" 
 331         return _gdi_
.Pen_GetStyle(*args
, **kwargs
) 
 333     def GetWidth(*args
, **kwargs
): 
 334         """GetWidth(self) -> int""" 
 335         return _gdi_
.Pen_GetWidth(*args
, **kwargs
) 
 337     def IsOk(*args
, **kwargs
): 
 338         """IsOk(self) -> bool""" 
 339         return _gdi_
.Pen_IsOk(*args
, **kwargs
) 
 342     def SetCap(*args
, **kwargs
): 
 343         """SetCap(self, int cap_style)""" 
 344         return _gdi_
.Pen_SetCap(*args
, **kwargs
) 
 346     def SetColour(*args
, **kwargs
): 
 347         """SetColour(self, Colour colour)""" 
 348         return _gdi_
.Pen_SetColour(*args
, **kwargs
) 
 350     def SetJoin(*args
, **kwargs
): 
 351         """SetJoin(self, int join_style)""" 
 352         return _gdi_
.Pen_SetJoin(*args
, **kwargs
) 
 354     def SetStyle(*args
, **kwargs
): 
 355         """SetStyle(self, int style)""" 
 356         return _gdi_
.Pen_SetStyle(*args
, **kwargs
) 
 358     def SetWidth(*args
, **kwargs
): 
 359         """SetWidth(self, int width)""" 
 360         return _gdi_
.Pen_SetWidth(*args
, **kwargs
) 
 362     def SetDashes(*args
, **kwargs
): 
 363         """SetDashes(self, int dashes)""" 
 364         return _gdi_
.Pen_SetDashes(*args
, **kwargs
) 
 366     def GetDashes(*args
, **kwargs
): 
 367         """GetDashes(self) -> PyObject""" 
 368         return _gdi_
.Pen_GetDashes(*args
, **kwargs
) 
 370     def _SetDashes(*args
, **kwargs
): 
 371         """_SetDashes(self, PyObject _self, PyObject pyDashes)""" 
 372         return _gdi_
.Pen__SetDashes(*args
, **kwargs
) 
 374     def SetDashes(self
, dashes
): 
 376         Associate a list of dash lengths with the Pen. 
 378         self
._SetDashes
(self
, dashes
) 
 380     def GetDashCount(*args
, **kwargs
): 
 381         """GetDashCount(self) -> int""" 
 382         return _gdi_
.Pen_GetDashCount(*args
, **kwargs
) 
 384     DashCount 
= property(GetDashCount
,doc
="See `GetDashCount`")  
 385     def __eq__(*args
, **kwargs
): 
 386         """__eq__(self, Pen other) -> bool""" 
 387         return _gdi_
.Pen___eq__(*args
, **kwargs
) 
 389     def __ne__(*args
, **kwargs
): 
 390         """__ne__(self, Pen other) -> bool""" 
 391         return _gdi_
.Pen___ne__(*args
, **kwargs
) 
 393     def __nonzero__(self
): return self
.IsOk()  
 394     Cap 
= property(GetCap
,SetCap
,doc
="See `GetCap` and `SetCap`")  
 395     Colour 
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")  
 396     Dashes 
= property(GetDashes
,SetDashes
,doc
="See `GetDashes` and `SetDashes`")  
 397     Join 
= property(GetJoin
,SetJoin
,doc
="See `GetJoin` and `SetJoin`")  
 398     Style 
= property(GetStyle
,SetStyle
,doc
="See `GetStyle` and `SetStyle`")  
 399     Width 
= property(GetWidth
,SetWidth
,doc
="See `GetWidth` and `SetWidth`")  
 400 _gdi_
.Pen_swigregister(Pen
) 
 402 #--------------------------------------------------------------------------- 
 404 class Brush(GDIObject
): 
 406     A brush is a drawing tool for filling in areas. It is used for 
 407     painting the background of rectangles, ellipses, etc. when drawing on 
 408     a `wx.DC`.  It has a colour and a style. 
 410     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
 411     __repr__ 
= _swig_repr
 
 412     def __init__(self
, *args
, **kwargs
):  
 414         __init__(self, Colour colour, int style=SOLID) -> Brush 
 416         Constructs a brush from a `wx.Colour` object and a style. 
 418         _gdi_
.Brush_swiginit(self
,_gdi_
.new_Brush(*args
, **kwargs
)) 
 419     __swig_destroy__ 
= _gdi_
.delete_Brush
 
 420     __del__ 
= lambda self 
: None; 
 421     def SetColour(*args
, **kwargs
): 
 423         SetColour(self, Colour col) 
 425         Set the brush's `wx.Colour`. 
 427         return _gdi_
.Brush_SetColour(*args
, **kwargs
) 
 429     def SetStyle(*args
, **kwargs
): 
 431         SetStyle(self, int style) 
 433         Sets the style of the brush. See `__init__` for a listing of styles. 
 435         return _gdi_
.Brush_SetStyle(*args
, **kwargs
) 
 437     def SetStipple(*args
, **kwargs
): 
 439         SetStipple(self, Bitmap stipple) 
 441         Sets the stipple `wx.Bitmap`. 
 443         return _gdi_
.Brush_SetStipple(*args
, **kwargs
) 
 445     def GetColour(*args
, **kwargs
): 
 447         GetColour(self) -> Colour 
 449         Returns the `wx.Colour` of the brush. 
 451         return _gdi_
.Brush_GetColour(*args
, **kwargs
) 
 453     def GetStyle(*args
, **kwargs
): 
 455         GetStyle(self) -> int 
 457         Returns the style of the brush.  See `__init__` for a listing of 
 460         return _gdi_
.Brush_GetStyle(*args
, **kwargs
) 
 462     def GetStipple(*args
, **kwargs
): 
 464         GetStipple(self) -> Bitmap 
 466         Returns the stiple `wx.Bitmap` of the brush.  If the brush does not 
 467         have a wx.STIPPLE style, then the return value may be non-None but an 
 468         uninitialised bitmap (`wx.Bitmap.Ok` returns False). 
 470         return _gdi_
.Brush_GetStipple(*args
, **kwargs
) 
 472     def IsHatch(*args
, **kwargs
): 
 474         IsHatch(self) -> bool 
 476         Is the current style a hatch type? 
 478         return _gdi_
.Brush_IsHatch(*args
, **kwargs
) 
 480     def IsOk(*args
, **kwargs
): 
 484         Returns True if the brush is initialised and valid. 
 486         return _gdi_
.Brush_IsOk(*args
, **kwargs
) 
 489     def __nonzero__(self
): return self
.IsOk()  
 490     Colour 
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")  
 491     Stipple 
= property(GetStipple
,SetStipple
,doc
="See `GetStipple` and `SetStipple`")  
 492     Style 
= property(GetStyle
,SetStyle
,doc
="See `GetStyle` and `SetStyle`")  
 493 _gdi_
.Brush_swigregister(Brush
) 
 495 def BrushFromBitmap(*args
, **kwargs
): 
 497     BrushFromBitmap(Bitmap stippleBitmap) -> Brush 
 499     Constructs a stippled brush using a bitmap. 
 501     val 
= _gdi_
.new_BrushFromBitmap(*args
, **kwargs
) 
 504 class Bitmap(GDIObject
): 
 506     The wx.Bitmap class encapsulates the concept of a platform-dependent 
 507     bitmap.  It can be either monochrome or colour, and either loaded from 
 508     a file or created dynamically.  A bitmap can be selected into a memory 
 509     device context (instance of `wx.MemoryDC`). This enables the bitmap to 
 510     be copied to a window or memory device context using `wx.DC.Blit`, or 
 511     to be used as a drawing surface. 
 513     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
 514     __repr__ 
= _swig_repr
 
 515     def __init__(self
, *args
, **kwargs
):  
 517         __init__(self, String name, int type=BITMAP_TYPE_ANY) -> Bitmap 
 519         Loads a bitmap from a file. 
 521         _gdi_
.Bitmap_swiginit(self
,_gdi_
.new_Bitmap(*args
, **kwargs
)) 
 522     __swig_destroy__ 
= _gdi_
.delete_Bitmap
 
 523     __del__ 
= lambda self 
: None; 
 524     def IsOk(*args
, **kwargs
): 
 525         """IsOk(self) -> bool""" 
 526         return _gdi_
.Bitmap_IsOk(*args
, **kwargs
) 
 529     def GetWidth(*args
, **kwargs
): 
 531         GetWidth(self) -> int 
 533         Gets the width of the bitmap in pixels. 
 535         return _gdi_
.Bitmap_GetWidth(*args
, **kwargs
) 
 537     def GetHeight(*args
, **kwargs
): 
 539         GetHeight(self) -> int 
 541         Gets the height of the bitmap in pixels. 
 543         return _gdi_
.Bitmap_GetHeight(*args
, **kwargs
) 
 545     def GetDepth(*args
, **kwargs
): 
 547         GetDepth(self) -> int 
 549         Gets the colour depth of the bitmap. A value of 1 indicates a 
 552         return _gdi_
.Bitmap_GetDepth(*args
, **kwargs
) 
 554     def GetSize(*args
, **kwargs
): 
 556         GetSize(self) -> Size 
 558         Get the size of the bitmap. 
 560         return _gdi_
.Bitmap_GetSize(*args
, **kwargs
) 
 562     def ConvertToImage(*args
, **kwargs
): 
 564         ConvertToImage(self) -> Image 
 566         Creates a platform-independent image from a platform-dependent 
 567         bitmap. This preserves mask information so that bitmaps and images can 
 568         be converted back and forth without loss in that respect. 
 570         return _gdi_
.Bitmap_ConvertToImage(*args
, **kwargs
) 
 572     def GetMask(*args
, **kwargs
): 
 574         GetMask(self) -> Mask 
 576         Gets the associated mask (if any) which may have been loaded from a 
 577         file or explpicitly set for the bitmap. 
 579         :see: `SetMask`, `wx.Mask` 
 582         return _gdi_
.Bitmap_GetMask(*args
, **kwargs
) 
 584     def SetMask(*args
, **kwargs
): 
 586         SetMask(self, Mask mask) 
 588         Sets the mask for this bitmap. 
 590         :see: `GetMask`, `wx.Mask` 
 593         return _gdi_
.Bitmap_SetMask(*args
, **kwargs
) 
 595     def SetMaskColour(*args
, **kwargs
): 
 597         SetMaskColour(self, Colour colour) 
 599         Create a Mask based on a specified colour in the Bitmap. 
 601         return _gdi_
.Bitmap_SetMaskColour(*args
, **kwargs
) 
 603     def GetSubBitmap(*args
, **kwargs
): 
 605         GetSubBitmap(self, Rect rect) -> Bitmap 
 607         Returns a sub-bitmap of the current one as long as the rect belongs 
 608         entirely to the bitmap. This function preserves bit depth and mask 
 611         return _gdi_
.Bitmap_GetSubBitmap(*args
, **kwargs
) 
 613     def SaveFile(*args
, **kwargs
): 
 615         SaveFile(self, String name, int type, Palette palette=None) -> bool 
 617         Saves a bitmap in the named file.  See `__init__` for a description of 
 618         the ``type`` parameter. 
 620         return _gdi_
.Bitmap_SaveFile(*args
, **kwargs
) 
 622     def LoadFile(*args
, **kwargs
): 
 624         LoadFile(self, String name, int type) -> bool 
 626         Loads a bitmap from a file.  See `__init__` for a description of the 
 629         return _gdi_
.Bitmap_LoadFile(*args
, **kwargs
) 
 631     def GetPalette(*args
, **kwargs
): 
 632         """GetPalette(self) -> Palette""" 
 633         return _gdi_
.Bitmap_GetPalette(*args
, **kwargs
) 
 635     def CopyFromIcon(*args
, **kwargs
): 
 636         """CopyFromIcon(self, Icon icon) -> bool""" 
 637         return _gdi_
.Bitmap_CopyFromIcon(*args
, **kwargs
) 
 639     def SetHeight(*args
, **kwargs
): 
 641         SetHeight(self, int height) 
 643         Set the height property (does not affect the existing bitmap data). 
 645         return _gdi_
.Bitmap_SetHeight(*args
, **kwargs
) 
 647     def SetWidth(*args
, **kwargs
): 
 649         SetWidth(self, int width) 
 651         Set the width property (does not affect the existing bitmap data). 
 653         return _gdi_
.Bitmap_SetWidth(*args
, **kwargs
) 
 655     def SetDepth(*args
, **kwargs
): 
 657         SetDepth(self, int depth) 
 659         Set the depth property (does not affect the existing bitmap data). 
 661         return _gdi_
.Bitmap_SetDepth(*args
, **kwargs
) 
 663     def SetSize(*args
, **kwargs
): 
 665         SetSize(self, Size size) 
 667         Set the bitmap size (does not affect the existing bitmap data). 
 669         return _gdi_
.Bitmap_SetSize(*args
, **kwargs
) 
 671     def __nonzero__(self
): return self
.IsOk()  
 672     def __eq__(*args
, **kwargs
): 
 673         """__eq__(self, Bitmap other) -> bool""" 
 674         return _gdi_
.Bitmap___eq__(*args
, **kwargs
) 
 676     def __ne__(*args
, **kwargs
): 
 677         """__ne__(self, Bitmap other) -> bool""" 
 678         return _gdi_
.Bitmap___ne__(*args
, **kwargs
) 
 680     Depth 
= property(GetDepth
,SetDepth
,doc
="See `GetDepth` and `SetDepth`")  
 681     Height 
= property(GetHeight
,SetHeight
,doc
="See `GetHeight` and `SetHeight`")  
 682     Mask 
= property(GetMask
,SetMask
,doc
="See `GetMask` and `SetMask`")  
 683     Palette 
= property(GetPalette
,doc
="See `GetPalette`")  
 684     Size 
= property(GetSize
,SetSize
,doc
="See `GetSize` and `SetSize`")  
 685     SubBitmap 
= property(GetSubBitmap
,doc
="See `GetSubBitmap`")  
 686     Width 
= property(GetWidth
,SetWidth
,doc
="See `GetWidth` and `SetWidth`")  
 687 _gdi_
.Bitmap_swigregister(Bitmap
) 
 689 def EmptyBitmap(*args
, **kwargs
): 
 691     EmptyBitmap(int width, int height, int depth=-1) -> Bitmap 
 693     Creates a new bitmap of the given size.  A depth of -1 indicates the 
 694     depth of the current screen or visual. Some platforms only support 1 
 695     for monochrome and -1 for the current display depth. 
 697     val 
= _gdi_
.new_EmptyBitmap(*args
, **kwargs
) 
 700 def BitmapFromIcon(*args
, **kwargs
): 
 702     BitmapFromIcon(Icon icon) -> Bitmap 
 704     Create a new bitmap from a `wx.Icon` object. 
 706     val 
= _gdi_
.new_BitmapFromIcon(*args
, **kwargs
) 
 709 def BitmapFromImage(*args
, **kwargs
): 
 711     BitmapFromImage(Image image, int depth=-1) -> Bitmap 
 713     Creates bitmap object from a `wx.Image`. This has to be done to 
 714     actually display a `wx.Image` as you cannot draw an image directly on 
 715     a window. The resulting bitmap will use the provided colour depth (or 
 716     that of the current screen colour depth if depth is -1) which entails 
 717     that a colour reduction may have to take place. 
 719     val 
= _gdi_
.new_BitmapFromImage(*args
, **kwargs
) 
 722 def BitmapFromXPMData(*args
, **kwargs
): 
 724     BitmapFromXPMData(PyObject listOfStrings) -> Bitmap 
 726     Construct a Bitmap from a list of strings formatted as XPM data. 
 728     val 
= _gdi_
.new_BitmapFromXPMData(*args
, **kwargs
) 
 731 def BitmapFromBits(*args
, **kwargs
): 
 733     BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap 
 735     Creates a bitmap from an array of bits.  You should only use this 
 736     function for monochrome bitmaps (depth 1) in portable programs: in 
 737     this case the bits parameter should contain an XBM image.  For other 
 738     bit depths, the behaviour is platform dependent. 
 740     val 
= _gdi_
.new_BitmapFromBits(*args
, **kwargs
) 
 744 def _BitmapFromBufferAlpha(*args
, **kwargs
): 
 745   """_BitmapFromBufferAlpha(int width, int height, buffer data, buffer alpha) -> Bitmap""" 
 746   return _gdi_
._BitmapFromBufferAlpha
(*args
, **kwargs
) 
 748 def _BitmapFromBuffer(*args
, **kwargs
): 
 749   """_BitmapFromBuffer(int width, int height, buffer data) -> Bitmap""" 
 750   return _gdi_
._BitmapFromBuffer
(*args
, **kwargs
) 
 751 def BitmapFromBuffer(width
, height
, dataBuffer
, alphaBuffer
=None): 
 753     Creates a `wx.Bitmap` from the data in dataBuffer.  The dataBuffer 
 754     parameter must be a Python object that implements the buffer 
 755     interface, such as a string, array, etc.  The dataBuffer object is 
 756     expected to contain a series of RGB bytes and be width*height*3 
 757     bytes long.  A buffer object can optionally be supplied for the 
 758     image's alpha channel data, and it is expected to be width*height 
 759     bytes long.  On Windows the RGB values are 'premultiplied' by the 
 760     alpha values.  (The other platforms do the multiplication 
 763     Unlike `wx.ImageFromBuffer` the bitmap created with this function 
 764     does not share the memory buffer with the buffer object.  This is 
 765     because the native pixel buffer format varies on different 
 766     platforms, and so instead an efficient as possible copy of the 
 767     data is made from the buffer objects to the bitmap's native pixel 
 768     buffer.  For direct access to a bitmap's pixel buffer see 
 769     `wx.NativePixelData` and `wx.AlphaPixelData`. 
 771     :see: `wx.Bitmap`, `wx.BitmapFromBufferRGBA`, `wx.NativePixelData`, 
 772           `wx.AlphaPixelData`, `wx.ImageFromBuffer` 
 774     if alphaBuffer 
is not None: 
 775         return _gdi_
._BitmapFromBufferAlpha
(width
, height
, dataBuffer
, alphaBuffer
) 
 777         return _gdi_
._BitmapFromBuffer
(width
, height
, dataBuffer
) 
 780 def _BitmapFromBufferRGBA(*args
, **kwargs
): 
 781   """_BitmapFromBufferRGBA(int width, int height, buffer data) -> Bitmap""" 
 782   return _gdi_
._BitmapFromBufferRGBA
(*args
, **kwargs
) 
 783 def BitmapFromBufferRGBA(width
, height
, dataBuffer
): 
 785     Creates a `wx.Bitmap` from the data in dataBuffer.  The dataBuffer 
 786     parameter must be a Python object that implements the buffer 
 787     interface, such as a string, array, etc.  The dataBuffer object is 
 788     expected to contain a series of RGBA bytes (red, green, blue and 
 789     alpha) and be width*height*4 bytes long.  On Windows the RGB 
 790     values are 'premultiplied' by the alpha values.  (The other 
 791     platforms do the multiplication themselves.) 
 793     Unlike `wx.ImageFromBuffer` the bitmap created with this function 
 794     does not share the memory buffer with the buffer object.  This is 
 795     because the native pixel buffer format varies on different 
 796     platforms, and so instead an efficient as possible copy of the 
 797     data is made from the buffer object to the bitmap's native pixel 
 798     buffer.  For direct access to a bitmap's pixel buffer see 
 799     `wx.NativePixelData` and `wx.AlphaPixelData`. 
 801     :see: `wx.Bitmap`, `wx.BitmapFromBuffer`, `wx.NativePixelData`, 
 802           `wx.AlphaPixelData`, `wx.ImageFromBuffer` 
 804     return _gdi_
._BitmapFromBufferRGBA
(width
, height
, dataBuffer
) 
 806 class PixelDataBase(object): 
 807     """Proxy of C++ PixelDataBase class""" 
 808     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
 809     def __init__(self
): raise AttributeError, "No constructor defined" 
 810     __repr__ 
= _swig_repr
 
 811     def GetOrigin(*args
, **kwargs
): 
 812         """GetOrigin(self) -> Point""" 
 813         return _gdi_
.PixelDataBase_GetOrigin(*args
, **kwargs
) 
 815     def GetWidth(*args
, **kwargs
): 
 816         """GetWidth(self) -> int""" 
 817         return _gdi_
.PixelDataBase_GetWidth(*args
, **kwargs
) 
 819     def GetHeight(*args
, **kwargs
): 
 820         """GetHeight(self) -> int""" 
 821         return _gdi_
.PixelDataBase_GetHeight(*args
, **kwargs
) 
 823     def GetSize(*args
, **kwargs
): 
 824         """GetSize(self) -> Size""" 
 825         return _gdi_
.PixelDataBase_GetSize(*args
, **kwargs
) 
 827     def GetRowStride(*args
, **kwargs
): 
 828         """GetRowStride(self) -> int""" 
 829         return _gdi_
.PixelDataBase_GetRowStride(*args
, **kwargs
) 
 831     Height 
= property(GetHeight
,doc
="See `GetHeight`")  
 832     Origin 
= property(GetOrigin
,doc
="See `GetOrigin`")  
 833     RowStride 
= property(GetRowStride
,doc
="See `GetRowStride`")  
 834     Size 
= property(GetSize
,doc
="See `GetSize`")  
 835     Width 
= property(GetWidth
,doc
="See `GetWidth`")  
 836 _gdi_
.PixelDataBase_swigregister(PixelDataBase
) 
 838 class NativePixelData(PixelDataBase
): 
 839     """Proxy of C++ NativePixelData class""" 
 840     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
 841     __repr__ 
= _swig_repr
 
 842     def __init__(self
, *args
):  
 844         __init__(self, Bitmap bmp) -> NativePixelData 
 845         __init__(self, Bitmap bmp, Rect rect) -> NativePixelData 
 846         __init__(self, Bitmap bmp, Point pt, Size sz) -> NativePixelData 
 848         _gdi_
.NativePixelData_swiginit(self
,_gdi_
.new_NativePixelData(*args
)) 
 849     __swig_destroy__ 
= _gdi_
.delete_NativePixelData
 
 850     __del__ 
= lambda self 
: None; 
 851     def GetPixels(*args
, **kwargs
): 
 852         """GetPixels(self) -> NativePixelData_Accessor""" 
 853         return _gdi_
.NativePixelData_GetPixels(*args
, **kwargs
) 
 855     def UseAlpha(*args
, **kwargs
): 
 857         return _gdi_
.NativePixelData_UseAlpha(*args
, **kwargs
) 
 859     def __nonzero__(*args
, **kwargs
): 
 860         """__nonzero__(self) -> bool""" 
 861         return _gdi_
.NativePixelData___nonzero__(*args
, **kwargs
) 
 865         Create and return an iterator object for this pixel data 
 866         object.  (It's really a generator but I won't tell if you 
 869         width  
= self
.GetWidth() 
 870         height 
= self
.GetHeight() 
 871         pixels 
= self
.GetPixels() 
 876         class PixelFacade(object): 
 879             def Set(self
, *args
, **kw
): 
 880                 return pixels
.Set(*args
, **kw
) 
 882                 return str(self
.Get()) 
 884                 return 'pixel(%d,%d): %s' % (x
,y
,self
.Get()) 
 885             X 
= property(lambda self
: x
) 
 886             Y 
= property(lambda self
: y
) 
 889         for y 
in xrange(height
): 
 890             for x 
in xrange(width
): 
 896             pixels
.MoveTo(self
, 0, y
) 
 898     Pixels 
= property(GetPixels
,doc
="See `GetPixels`")  
 899 _gdi_
.NativePixelData_swigregister(NativePixelData
) 
 901 class NativePixelData_Accessor(object): 
 902     """Proxy of C++ NativePixelData_Accessor class""" 
 903     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
 904     __repr__ 
= _swig_repr
 
 905     def __init__(self
, *args
):  
 907         __init__(self, NativePixelData data) -> NativePixelData_Accessor 
 908         __init__(self, Bitmap bmp, NativePixelData data) -> NativePixelData_Accessor 
 909         __init__(self) -> NativePixelData_Accessor 
 911         _gdi_
.NativePixelData_Accessor_swiginit(self
,_gdi_
.new_NativePixelData_Accessor(*args
)) 
 912     __swig_destroy__ 
= _gdi_
.delete_NativePixelData_Accessor
 
 913     __del__ 
= lambda self 
: None; 
 914     def Reset(*args
, **kwargs
): 
 915         """Reset(self, NativePixelData data)""" 
 916         return _gdi_
.NativePixelData_Accessor_Reset(*args
, **kwargs
) 
 918     def IsOk(*args
, **kwargs
): 
 919         """IsOk(self) -> bool""" 
 920         return _gdi_
.NativePixelData_Accessor_IsOk(*args
, **kwargs
) 
 922     def nextPixel(*args
, **kwargs
): 
 923         """nextPixel(self)""" 
 924         return _gdi_
.NativePixelData_Accessor_nextPixel(*args
, **kwargs
) 
 926     def Offset(*args
, **kwargs
): 
 927         """Offset(self, NativePixelData data, int x, int y)""" 
 928         return _gdi_
.NativePixelData_Accessor_Offset(*args
, **kwargs
) 
 930     def OffsetX(*args
, **kwargs
): 
 931         """OffsetX(self, NativePixelData data, int x)""" 
 932         return _gdi_
.NativePixelData_Accessor_OffsetX(*args
, **kwargs
) 
 934     def OffsetY(*args
, **kwargs
): 
 935         """OffsetY(self, NativePixelData data, int y)""" 
 936         return _gdi_
.NativePixelData_Accessor_OffsetY(*args
, **kwargs
) 
 938     def MoveTo(*args
, **kwargs
): 
 939         """MoveTo(self, NativePixelData data, int x, int y)""" 
 940         return _gdi_
.NativePixelData_Accessor_MoveTo(*args
, **kwargs
) 
 942     def Set(*args
, **kwargs
): 
 943         """Set(self, byte red, byte green, byte blue)""" 
 944         return _gdi_
.NativePixelData_Accessor_Set(*args
, **kwargs
) 
 946     def Get(*args
, **kwargs
): 
 947         """Get(self) -> PyObject""" 
 948         return _gdi_
.NativePixelData_Accessor_Get(*args
, **kwargs
) 
 950 _gdi_
.NativePixelData_Accessor_swigregister(NativePixelData_Accessor
) 
 952 class AlphaPixelData(PixelDataBase
): 
 953     """Proxy of C++ AlphaPixelData class""" 
 954     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
 955     __repr__ 
= _swig_repr
 
 956     def __init__(self
, *args
):  
 958         __init__(self, Bitmap bmp) -> AlphaPixelData 
 959         __init__(self, Bitmap bmp, Rect rect) -> AlphaPixelData 
 960         __init__(self, Bitmap bmp, Point pt, Size sz) -> AlphaPixelData 
 962         _gdi_
.AlphaPixelData_swiginit(self
,_gdi_
.new_AlphaPixelData(*args
)) 
 965     __swig_destroy__ 
= _gdi_
.delete_AlphaPixelData
 
 966     __del__ 
= lambda self 
: None; 
 967     def GetPixels(*args
, **kwargs
): 
 968         """GetPixels(self) -> AlphaPixelData_Accessor""" 
 969         return _gdi_
.AlphaPixelData_GetPixels(*args
, **kwargs
) 
 971     def UseAlpha(*args
, **kwargs
): 
 973         return _gdi_
.AlphaPixelData_UseAlpha(*args
, **kwargs
) 
 975     def __nonzero__(*args
, **kwargs
): 
 976         """__nonzero__(self) -> bool""" 
 977         return _gdi_
.AlphaPixelData___nonzero__(*args
, **kwargs
) 
 981         Create and return an iterator object for this pixel data 
 982         object.  (It's really a generator but I won't tell if you 
 985         width  
= self
.GetWidth() 
 986         height 
= self
.GetHeight() 
 987         pixels 
= self
.GetPixels() 
 992         class PixelFacade(object): 
 995             def Set(self
, *args
, **kw
): 
 996                 return pixels
.Set(*args
, **kw
) 
 998                 return str(self
.Get()) 
1000                 return 'pixel(%d,%d): %s' % (x
,y
,self
.Get()) 
1001             X 
= property(lambda self
: x
) 
1002             Y 
= property(lambda self
: y
) 
1005         for y 
in xrange(height
): 
1006             for x 
in xrange(width
): 
1012             pixels
.MoveTo(self
, 0, y
) 
1014     Pixels 
= property(GetPixels
,doc
="See `GetPixels`")  
1015 _gdi_
.AlphaPixelData_swigregister(AlphaPixelData
) 
1017 class AlphaPixelData_Accessor(object): 
1018     """Proxy of C++ AlphaPixelData_Accessor class""" 
1019     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
1020     __repr__ 
= _swig_repr
 
1021     def __init__(self
, *args
):  
1023         __init__(self, AlphaPixelData data) -> AlphaPixelData_Accessor 
1024         __init__(self, Bitmap bmp, AlphaPixelData data) -> AlphaPixelData_Accessor 
1025         __init__(self) -> AlphaPixelData_Accessor 
1027         _gdi_
.AlphaPixelData_Accessor_swiginit(self
,_gdi_
.new_AlphaPixelData_Accessor(*args
)) 
1028     __swig_destroy__ 
= _gdi_
.delete_AlphaPixelData_Accessor
 
1029     __del__ 
= lambda self 
: None; 
1030     def Reset(*args
, **kwargs
): 
1031         """Reset(self, AlphaPixelData data)""" 
1032         return _gdi_
.AlphaPixelData_Accessor_Reset(*args
, **kwargs
) 
1034     def IsOk(*args
, **kwargs
): 
1035         """IsOk(self) -> bool""" 
1036         return _gdi_
.AlphaPixelData_Accessor_IsOk(*args
, **kwargs
) 
1038     def nextPixel(*args
, **kwargs
): 
1039         """nextPixel(self)""" 
1040         return _gdi_
.AlphaPixelData_Accessor_nextPixel(*args
, **kwargs
) 
1042     def Offset(*args
, **kwargs
): 
1043         """Offset(self, AlphaPixelData data, int x, int y)""" 
1044         return _gdi_
.AlphaPixelData_Accessor_Offset(*args
, **kwargs
) 
1046     def OffsetX(*args
, **kwargs
): 
1047         """OffsetX(self, AlphaPixelData data, int x)""" 
1048         return _gdi_
.AlphaPixelData_Accessor_OffsetX(*args
, **kwargs
) 
1050     def OffsetY(*args
, **kwargs
): 
1051         """OffsetY(self, AlphaPixelData data, int y)""" 
1052         return _gdi_
.AlphaPixelData_Accessor_OffsetY(*args
, **kwargs
) 
1054     def MoveTo(*args
, **kwargs
): 
1055         """MoveTo(self, AlphaPixelData data, int x, int y)""" 
1056         return _gdi_
.AlphaPixelData_Accessor_MoveTo(*args
, **kwargs
) 
1058     def Set(*args
, **kwargs
): 
1059         """Set(self, byte red, byte green, byte blue, byte alpha)""" 
1060         return _gdi_
.AlphaPixelData_Accessor_Set(*args
, **kwargs
) 
1062     def Get(*args
, **kwargs
): 
1063         """Get(self) -> PyObject""" 
1064         return _gdi_
.AlphaPixelData_Accessor_Get(*args
, **kwargs
) 
1066 _gdi_
.AlphaPixelData_Accessor_swigregister(AlphaPixelData_Accessor
) 
1068 class Mask(_core
.Object
): 
1070     This class encapsulates a monochrome mask bitmap, where the masked 
1071     area is black and the unmasked area is white. When associated with a 
1072     bitmap and drawn in a device context, the unmasked area of the bitmap 
1073     will be drawn, and the masked area will not be drawn. 
1075     A mask may be associated with a `wx.Bitmap`. It is used in 
1076     `wx.DC.DrawBitmap` or `wx.DC.Blit` when the source device context is a 
1077     `wx.MemoryDC` with a `wx.Bitmap` selected into it that contains a 
1080     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
1081     __repr__ 
= _swig_repr
 
1082     def __init__(self
, *args
, **kwargs
):  
1084         __init__(self, Bitmap bitmap, Colour colour=NullColour) -> Mask 
1086         Constructs a mask from a `wx.Bitmap` and a `wx.Colour` in that bitmap 
1087         that indicates the transparent portions of the mask.  In other words, 
1088         the pixels in ``bitmap`` that match ``colour`` will be the transparent 
1089         portions of the mask.  If no ``colour`` or an invalid ``colour`` is 
1090         passed then BLACK is used. 
1092         :see: `wx.Bitmap`, `wx.Colour` 
1094         _gdi_
.Mask_swiginit(self
,_gdi_
.new_Mask(*args
, **kwargs
)) 
1095     __swig_destroy__ 
= _gdi_
.delete_Mask
 
1096     __del__ 
= lambda self 
: None; 
1097 _gdi_
.Mask_swigregister(Mask
) 
1099 MaskColour 
= wx
._deprecated
(Mask
, "wx.MaskColour is deprecated, use `wx.Mask` instead.")  
1100 class Icon(GDIObject
): 
1101     """Proxy of C++ Icon class""" 
1102     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
1103     __repr__ 
= _swig_repr
 
1104     def __init__(self
, *args
, **kwargs
):  
1105         """__init__(self, String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon""" 
1106         _gdi_
.Icon_swiginit(self
,_gdi_
.new_Icon(*args
, **kwargs
)) 
1107     __swig_destroy__ 
= _gdi_
.delete_Icon
 
1108     __del__ 
= lambda self 
: None; 
1109     def LoadFile(*args
, **kwargs
): 
1110         """LoadFile(self, String name, int type) -> bool""" 
1111         return _gdi_
.Icon_LoadFile(*args
, **kwargs
) 
1113     def IsOk(*args
, **kwargs
): 
1114         """IsOk(self) -> bool""" 
1115         return _gdi_
.Icon_IsOk(*args
, **kwargs
) 
1118     def GetWidth(*args
, **kwargs
): 
1119         """GetWidth(self) -> int""" 
1120         return _gdi_
.Icon_GetWidth(*args
, **kwargs
) 
1122     def GetHeight(*args
, **kwargs
): 
1123         """GetHeight(self) -> int""" 
1124         return _gdi_
.Icon_GetHeight(*args
, **kwargs
) 
1126     def GetDepth(*args
, **kwargs
): 
1127         """GetDepth(self) -> int""" 
1128         return _gdi_
.Icon_GetDepth(*args
, **kwargs
) 
1130     def SetWidth(*args
, **kwargs
): 
1131         """SetWidth(self, int w)""" 
1132         return _gdi_
.Icon_SetWidth(*args
, **kwargs
) 
1134     def SetHeight(*args
, **kwargs
): 
1135         """SetHeight(self, int h)""" 
1136         return _gdi_
.Icon_SetHeight(*args
, **kwargs
) 
1138     def SetDepth(*args
, **kwargs
): 
1139         """SetDepth(self, int d)""" 
1140         return _gdi_
.Icon_SetDepth(*args
, **kwargs
) 
1142     def CopyFromBitmap(*args
, **kwargs
): 
1143         """CopyFromBitmap(self, Bitmap bmp)""" 
1144         return _gdi_
.Icon_CopyFromBitmap(*args
, **kwargs
) 
1146     def __nonzero__(self
): return self
.IsOk()  
1147     Depth 
= property(GetDepth
,SetDepth
,doc
="See `GetDepth` and `SetDepth`")  
1148     Height 
= property(GetHeight
,SetHeight
,doc
="See `GetHeight` and `SetHeight`")  
1149     Width 
= property(GetWidth
,SetWidth
,doc
="See `GetWidth` and `SetWidth`")  
1150 _gdi_
.Icon_swigregister(Icon
) 
1152 def EmptyIcon(*args
, **kwargs
): 
1153     """EmptyIcon() -> Icon""" 
1154     val 
= _gdi_
.new_EmptyIcon(*args
, **kwargs
) 
1157 def IconFromLocation(*args
, **kwargs
): 
1158     """IconFromLocation(IconLocation loc) -> Icon""" 
1159     val 
= _gdi_
.new_IconFromLocation(*args
, **kwargs
) 
1162 def IconFromBitmap(*args
, **kwargs
): 
1163     """IconFromBitmap(Bitmap bmp) -> Icon""" 
1164     val 
= _gdi_
.new_IconFromBitmap(*args
, **kwargs
) 
1167 def IconFromXPMData(*args
, **kwargs
): 
1168     """IconFromXPMData(PyObject listOfStrings) -> Icon""" 
1169     val 
= _gdi_
.new_IconFromXPMData(*args
, **kwargs
) 
1172 class IconLocation(object): 
1173     """Proxy of C++ IconLocation class""" 
1174     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
1175     __repr__ 
= _swig_repr
 
1176     def __init__(self
, *args
, **kwargs
):  
1177         """__init__(self, String filename=&wxPyEmptyString, int num=0) -> IconLocation""" 
1178         _gdi_
.IconLocation_swiginit(self
,_gdi_
.new_IconLocation(*args
, **kwargs
)) 
1179     __swig_destroy__ 
= _gdi_
.delete_IconLocation
 
1180     __del__ 
= lambda self 
: None; 
1181     def IsOk(*args
, **kwargs
): 
1182         """IsOk(self) -> bool""" 
1183         return _gdi_
.IconLocation_IsOk(*args
, **kwargs
) 
1185     def __nonzero__(self
): return self
.IsOk()  
1186     def SetFileName(*args
, **kwargs
): 
1187         """SetFileName(self, String filename)""" 
1188         return _gdi_
.IconLocation_SetFileName(*args
, **kwargs
) 
1190     def GetFileName(*args
, **kwargs
): 
1191         """GetFileName(self) -> String""" 
1192         return _gdi_
.IconLocation_GetFileName(*args
, **kwargs
) 
1194     def SetIndex(*args
, **kwargs
): 
1195         """SetIndex(self, int num)""" 
1196         return _gdi_
.IconLocation_SetIndex(*args
, **kwargs
) 
1198     def GetIndex(*args
, **kwargs
): 
1199         """GetIndex(self) -> int""" 
1200         return _gdi_
.IconLocation_GetIndex(*args
, **kwargs
) 
1202     FileName 
= property(GetFileName
,SetFileName
,doc
="See `GetFileName` and `SetFileName`")  
1203     Index 
= property(GetIndex
,SetIndex
,doc
="See `GetIndex` and `SetIndex`")  
1204 _gdi_
.IconLocation_swigregister(IconLocation
) 
1206 class IconBundle(object): 
1207     """Proxy of C++ IconBundle class""" 
1208     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
1209     __repr__ 
= _swig_repr
 
1210     def __init__(self
, *args
, **kwargs
):  
1211         """__init__(self) -> IconBundle""" 
1212         _gdi_
.IconBundle_swiginit(self
,_gdi_
.new_IconBundle(*args
, **kwargs
)) 
1213     __swig_destroy__ 
= _gdi_
.delete_IconBundle
 
1214     __del__ 
= lambda self 
: None; 
1215     def AddIcon(*args
, **kwargs
): 
1216         """AddIcon(self, Icon icon)""" 
1217         return _gdi_
.IconBundle_AddIcon(*args
, **kwargs
) 
1219     def AddIconFromFile(*args
, **kwargs
): 
1220         """AddIconFromFile(self, String file, long type)""" 
1221         return _gdi_
.IconBundle_AddIconFromFile(*args
, **kwargs
) 
1223     def GetIcon(*args
, **kwargs
): 
1224         """GetIcon(self, Size size) -> Icon""" 
1225         return _gdi_
.IconBundle_GetIcon(*args
, **kwargs
) 
1227     Icon 
= property(GetIcon
,doc
="See `GetIcon`")  
1228 _gdi_
.IconBundle_swigregister(IconBundle
) 
1230 def IconBundleFromFile(*args
, **kwargs
): 
1231     """IconBundleFromFile(String file, long type) -> IconBundle""" 
1232     val 
= _gdi_
.new_IconBundleFromFile(*args
, **kwargs
) 
1235 def IconBundleFromIcon(*args
, **kwargs
): 
1236     """IconBundleFromIcon(Icon icon) -> IconBundle""" 
1237     val 
= _gdi_
.new_IconBundleFromIcon(*args
, **kwargs
) 
1240 class Cursor(GDIObject
): 
1242     A cursor is a small bitmap usually used for denoting where the mouse 
1243     pointer is, with a picture that might indicate the interpretation of a 
1246     A single cursor object may be used in many windows (any subwindow 
1247     type). The wxWindows convention is to set the cursor for a window, as 
1248     in X, rather than to set it globally as in MS Windows, although a 
1249     global `wx.SetCursor` function is also available for use on MS Windows. 
1252     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
1253     __repr__ 
= _swig_repr
 
1254     def __init__(self
, *args
, **kwargs
):  
1256         __init__(self, String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor 
1258         Construct a Cursor from a file.  Specify the type of file using 
1259         wx.BITAMP_TYPE* constants, and specify the hotspot if not using a .cur 
1262         _gdi_
.Cursor_swiginit(self
,_gdi_
.new_Cursor(*args
, **kwargs
)) 
1263     __swig_destroy__ 
= _gdi_
.delete_Cursor
 
1264     __del__ 
= lambda self 
: None; 
1265     def IsOk(*args
, **kwargs
): 
1266         """IsOk(self) -> bool""" 
1267         return _gdi_
.Cursor_IsOk(*args
, **kwargs
) 
1270     def __nonzero__(self
): return self
.IsOk()  
1271 _gdi_
.Cursor_swigregister(Cursor
) 
1273 def StockCursor(*args
, **kwargs
): 
1275     StockCursor(int id) -> Cursor 
1277     Create a cursor using one of the stock cursors.  Note that not all 
1278     stock cursors are available on all platforms. 
1280     val 
= _gdi_
.new_StockCursor(*args
, **kwargs
) 
1283 def CursorFromImage(*args
, **kwargs
): 
1285     CursorFromImage(Image image) -> Cursor 
1287     Constructs a cursor from a `wx.Image`. The mask (if any) will be used 
1288     for setting the transparent portions of the cursor. 
1290     val 
= _gdi_
.new_CursorFromImage(*args
, **kwargs
) 
1293 #--------------------------------------------------------------------------- 
1295 OutRegion 
= _gdi_
.OutRegion
 
1296 PartRegion 
= _gdi_
.PartRegion
 
1297 InRegion 
= _gdi_
.InRegion
 
1298 class Region(GDIObject
): 
1299     """Proxy of C++ Region class""" 
1300     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
1301     __repr__ 
= _swig_repr
 
1302     def __init__(self
, *args
, **kwargs
):  
1303         """__init__(self, int x=0, int y=0, int width=0, int height=0) -> Region""" 
1304         _gdi_
.Region_swiginit(self
,_gdi_
.new_Region(*args
, **kwargs
)) 
1305     __swig_destroy__ 
= _gdi_
.delete_Region
 
1306     __del__ 
= lambda self 
: None; 
1307     def Clear(*args
, **kwargs
): 
1309         return _gdi_
.Region_Clear(*args
, **kwargs
) 
1311     def Offset(*args
, **kwargs
): 
1312         """Offset(self, int x, int y) -> bool""" 
1313         return _gdi_
.Region_Offset(*args
, **kwargs
) 
1315     def Contains(*args
, **kwargs
): 
1316         """Contains(self, int x, int y) -> int""" 
1317         return _gdi_
.Region_Contains(*args
, **kwargs
) 
1319     def ContainsPoint(*args
, **kwargs
): 
1320         """ContainsPoint(self, Point pt) -> int""" 
1321         return _gdi_
.Region_ContainsPoint(*args
, **kwargs
) 
1323     def ContainsRect(*args
, **kwargs
): 
1324         """ContainsRect(self, Rect rect) -> int""" 
1325         return _gdi_
.Region_ContainsRect(*args
, **kwargs
) 
1327     def ContainsRectDim(*args
, **kwargs
): 
1328         """ContainsRectDim(self, int x, int y, int w, int h) -> int""" 
1329         return _gdi_
.Region_ContainsRectDim(*args
, **kwargs
) 
1331     def GetBox(*args
, **kwargs
): 
1332         """GetBox(self) -> Rect""" 
1333         return _gdi_
.Region_GetBox(*args
, **kwargs
) 
1335     def Intersect(*args
, **kwargs
): 
1336         """Intersect(self, int x, int y, int width, int height) -> bool""" 
1337         return _gdi_
.Region_Intersect(*args
, **kwargs
) 
1339     def IntersectRect(*args
, **kwargs
): 
1340         """IntersectRect(self, Rect rect) -> bool""" 
1341         return _gdi_
.Region_IntersectRect(*args
, **kwargs
) 
1343     def IntersectRegion(*args
, **kwargs
): 
1344         """IntersectRegion(self, Region region) -> bool""" 
1345         return _gdi_
.Region_IntersectRegion(*args
, **kwargs
) 
1347     def IsEmpty(*args
, **kwargs
): 
1348         """IsEmpty(self) -> bool""" 
1349         return _gdi_
.Region_IsEmpty(*args
, **kwargs
) 
1351     def IsEqual(*args
, **kwargs
): 
1352         """IsEqual(self, Region region) -> bool""" 
1353         return _gdi_
.Region_IsEqual(*args
, **kwargs
) 
1355     def Union(*args
, **kwargs
): 
1356         """Union(self, int x, int y, int width, int height) -> bool""" 
1357         return _gdi_
.Region_Union(*args
, **kwargs
) 
1359     def UnionRect(*args
, **kwargs
): 
1360         """UnionRect(self, Rect rect) -> bool""" 
1361         return _gdi_
.Region_UnionRect(*args
, **kwargs
) 
1363     def UnionRegion(*args
, **kwargs
): 
1364         """UnionRegion(self, Region region) -> bool""" 
1365         return _gdi_
.Region_UnionRegion(*args
, **kwargs
) 
1367     def Subtract(*args
, **kwargs
): 
1368         """Subtract(self, int x, int y, int width, int height) -> bool""" 
1369         return _gdi_
.Region_Subtract(*args
, **kwargs
) 
1371     def SubtractRect(*args
, **kwargs
): 
1372         """SubtractRect(self, Rect rect) -> bool""" 
1373         return _gdi_
.Region_SubtractRect(*args
, **kwargs
) 
1375     def SubtractRegion(*args
, **kwargs
): 
1376         """SubtractRegion(self, Region region) -> bool""" 
1377         return _gdi_
.Region_SubtractRegion(*args
, **kwargs
) 
1379     def Xor(*args
, **kwargs
): 
1380         """Xor(self, int x, int y, int width, int height) -> bool""" 
1381         return _gdi_
.Region_Xor(*args
, **kwargs
) 
1383     def XorRect(*args
, **kwargs
): 
1384         """XorRect(self, Rect rect) -> bool""" 
1385         return _gdi_
.Region_XorRect(*args
, **kwargs
) 
1387     def XorRegion(*args
, **kwargs
): 
1388         """XorRegion(self, Region region) -> bool""" 
1389         return _gdi_
.Region_XorRegion(*args
, **kwargs
) 
1391     def ConvertToBitmap(*args
, **kwargs
): 
1392         """ConvertToBitmap(self) -> Bitmap""" 
1393         return _gdi_
.Region_ConvertToBitmap(*args
, **kwargs
) 
1395     def UnionBitmap(*args
, **kwargs
): 
1396         """UnionBitmap(self, Bitmap bmp) -> bool""" 
1397         return _gdi_
.Region_UnionBitmap(*args
, **kwargs
) 
1399     def UnionBitmapColour(*args
, **kwargs
): 
1400         """UnionBitmapColour(self, Bitmap bmp, Colour transColour, int tolerance=0) -> bool""" 
1401         return _gdi_
.Region_UnionBitmapColour(*args
, **kwargs
) 
1403     Box 
= property(GetBox
,doc
="See `GetBox`")  
1404 _gdi_
.Region_swigregister(Region
) 
1406 def RegionFromBitmap(*args
, **kwargs
): 
1407     """RegionFromBitmap(Bitmap bmp) -> Region""" 
1408     val 
= _gdi_
.new_RegionFromBitmap(*args
, **kwargs
) 
1411 def RegionFromBitmapColour(*args
, **kwargs
): 
1412     """RegionFromBitmapColour(Bitmap bmp, Colour transColour, int tolerance=0) -> Region""" 
1413     val 
= _gdi_
.new_RegionFromBitmapColour(*args
, **kwargs
) 
1416 def RegionFromPoints(*args
, **kwargs
): 
1417     """RegionFromPoints(int points, int fillStyle=WINDING_RULE) -> Region""" 
1418     val 
= _gdi_
.new_RegionFromPoints(*args
, **kwargs
) 
1421 class RegionIterator(_core
.Object
): 
1422     """Proxy of C++ RegionIterator class""" 
1423     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
1424     __repr__ 
= _swig_repr
 
1425     def __init__(self
, *args
, **kwargs
):  
1426         """__init__(self, Region region) -> RegionIterator""" 
1427         _gdi_
.RegionIterator_swiginit(self
,_gdi_
.new_RegionIterator(*args
, **kwargs
)) 
1428     __swig_destroy__ 
= _gdi_
.delete_RegionIterator
 
1429     __del__ 
= lambda self 
: None; 
1430     def GetX(*args
, **kwargs
): 
1431         """GetX(self) -> int""" 
1432         return _gdi_
.RegionIterator_GetX(*args
, **kwargs
) 
1434     def GetY(*args
, **kwargs
): 
1435         """GetY(self) -> int""" 
1436         return _gdi_
.RegionIterator_GetY(*args
, **kwargs
) 
1438     def GetW(*args
, **kwargs
): 
1439         """GetW(self) -> int""" 
1440         return _gdi_
.RegionIterator_GetW(*args
, **kwargs
) 
1442     def GetWidth(*args
, **kwargs
): 
1443         """GetWidth(self) -> int""" 
1444         return _gdi_
.RegionIterator_GetWidth(*args
, **kwargs
) 
1446     def GetH(*args
, **kwargs
): 
1447         """GetH(self) -> int""" 
1448         return _gdi_
.RegionIterator_GetH(*args
, **kwargs
) 
1450     def GetHeight(*args
, **kwargs
): 
1451         """GetHeight(self) -> int""" 
1452         return _gdi_
.RegionIterator_GetHeight(*args
, **kwargs
) 
1454     def GetRect(*args
, **kwargs
): 
1455         """GetRect(self) -> Rect""" 
1456         return _gdi_
.RegionIterator_GetRect(*args
, **kwargs
) 
1458     def HaveRects(*args
, **kwargs
): 
1459         """HaveRects(self) -> bool""" 
1460         return _gdi_
.RegionIterator_HaveRects(*args
, **kwargs
) 
1462     def Reset(*args
, **kwargs
): 
1464         return _gdi_
.RegionIterator_Reset(*args
, **kwargs
) 
1466     def Next(*args
, **kwargs
): 
1468         return _gdi_
.RegionIterator_Next(*args
, **kwargs
) 
1470     def __nonzero__(*args
, **kwargs
): 
1471         """__nonzero__(self) -> bool""" 
1472         return _gdi_
.RegionIterator___nonzero__(*args
, **kwargs
) 
1474     H 
= property(GetH
,doc
="See `GetH`")  
1475     Height 
= property(GetHeight
,doc
="See `GetHeight`")  
1476     Rect 
= property(GetRect
,doc
="See `GetRect`")  
1477     W 
= property(GetW
,doc
="See `GetW`")  
1478     Width 
= property(GetWidth
,doc
="See `GetWidth`")  
1479     X 
= property(GetX
,doc
="See `GetX`")  
1480     Y 
= property(GetY
,doc
="See `GetY`")  
1481 _gdi_
.RegionIterator_swigregister(RegionIterator
) 
1483 #--------------------------------------------------------------------------- 
1485 FONTFAMILY_DEFAULT 
= _gdi_
.FONTFAMILY_DEFAULT
 
1486 FONTFAMILY_DECORATIVE 
= _gdi_
.FONTFAMILY_DECORATIVE
 
1487 FONTFAMILY_ROMAN 
= _gdi_
.FONTFAMILY_ROMAN
 
1488 FONTFAMILY_SCRIPT 
= _gdi_
.FONTFAMILY_SCRIPT
 
1489 FONTFAMILY_SWISS 
= _gdi_
.FONTFAMILY_SWISS
 
1490 FONTFAMILY_MODERN 
= _gdi_
.FONTFAMILY_MODERN
 
1491 FONTFAMILY_TELETYPE 
= _gdi_
.FONTFAMILY_TELETYPE
 
1492 FONTFAMILY_MAX 
= _gdi_
.FONTFAMILY_MAX
 
1493 FONTFAMILY_UNKNOWN 
= _gdi_
.FONTFAMILY_UNKNOWN
 
1494 FONTSTYLE_NORMAL 
= _gdi_
.FONTSTYLE_NORMAL
 
1495 FONTSTYLE_ITALIC 
= _gdi_
.FONTSTYLE_ITALIC
 
1496 FONTSTYLE_SLANT 
= _gdi_
.FONTSTYLE_SLANT
 
1497 FONTSTYLE_MAX 
= _gdi_
.FONTSTYLE_MAX
 
1498 FONTWEIGHT_NORMAL 
= _gdi_
.FONTWEIGHT_NORMAL
 
1499 FONTWEIGHT_LIGHT 
= _gdi_
.FONTWEIGHT_LIGHT
 
1500 FONTWEIGHT_BOLD 
= _gdi_
.FONTWEIGHT_BOLD
 
1501 FONTWEIGHT_MAX 
= _gdi_
.FONTWEIGHT_MAX
 
1502 FONTFLAG_DEFAULT 
= _gdi_
.FONTFLAG_DEFAULT
 
1503 FONTFLAG_ITALIC 
= _gdi_
.FONTFLAG_ITALIC
 
1504 FONTFLAG_SLANT 
= _gdi_
.FONTFLAG_SLANT
 
1505 FONTFLAG_LIGHT 
= _gdi_
.FONTFLAG_LIGHT
 
1506 FONTFLAG_BOLD 
= _gdi_
.FONTFLAG_BOLD
 
1507 FONTFLAG_ANTIALIASED 
= _gdi_
.FONTFLAG_ANTIALIASED
 
1508 FONTFLAG_NOT_ANTIALIASED 
= _gdi_
.FONTFLAG_NOT_ANTIALIASED
 
1509 FONTFLAG_UNDERLINED 
= _gdi_
.FONTFLAG_UNDERLINED
 
1510 FONTFLAG_STRIKETHROUGH 
= _gdi_
.FONTFLAG_STRIKETHROUGH
 
1511 FONTFLAG_MASK 
= _gdi_
.FONTFLAG_MASK
 
1512 FONTENCODING_SYSTEM 
= _gdi_
.FONTENCODING_SYSTEM
 
1513 FONTENCODING_DEFAULT 
= _gdi_
.FONTENCODING_DEFAULT
 
1514 FONTENCODING_ISO8859_1 
= _gdi_
.FONTENCODING_ISO8859_1
 
1515 FONTENCODING_ISO8859_2 
= _gdi_
.FONTENCODING_ISO8859_2
 
1516 FONTENCODING_ISO8859_3 
= _gdi_
.FONTENCODING_ISO8859_3
 
1517 FONTENCODING_ISO8859_4 
= _gdi_
.FONTENCODING_ISO8859_4
 
1518 FONTENCODING_ISO8859_5 
= _gdi_
.FONTENCODING_ISO8859_5
 
1519 FONTENCODING_ISO8859_6 
= _gdi_
.FONTENCODING_ISO8859_6
 
1520 FONTENCODING_ISO8859_7 
= _gdi_
.FONTENCODING_ISO8859_7
 
1521 FONTENCODING_ISO8859_8 
= _gdi_
.FONTENCODING_ISO8859_8
 
1522 FONTENCODING_ISO8859_9 
= _gdi_
.FONTENCODING_ISO8859_9
 
1523 FONTENCODING_ISO8859_10 
= _gdi_
.FONTENCODING_ISO8859_10
 
1524 FONTENCODING_ISO8859_11 
= _gdi_
.FONTENCODING_ISO8859_11
 
1525 FONTENCODING_ISO8859_12 
= _gdi_
.FONTENCODING_ISO8859_12
 
1526 FONTENCODING_ISO8859_13 
= _gdi_
.FONTENCODING_ISO8859_13
 
1527 FONTENCODING_ISO8859_14 
= _gdi_
.FONTENCODING_ISO8859_14
 
1528 FONTENCODING_ISO8859_15 
= _gdi_
.FONTENCODING_ISO8859_15
 
1529 FONTENCODING_ISO8859_MAX 
= _gdi_
.FONTENCODING_ISO8859_MAX
 
1530 FONTENCODING_KOI8 
= _gdi_
.FONTENCODING_KOI8
 
1531 FONTENCODING_KOI8_U 
= _gdi_
.FONTENCODING_KOI8_U
 
1532 FONTENCODING_ALTERNATIVE 
= _gdi_
.FONTENCODING_ALTERNATIVE
 
1533 FONTENCODING_BULGARIAN 
= _gdi_
.FONTENCODING_BULGARIAN
 
1534 FONTENCODING_CP437 
= _gdi_
.FONTENCODING_CP437
 
1535 FONTENCODING_CP850 
= _gdi_
.FONTENCODING_CP850
 
1536 FONTENCODING_CP852 
= _gdi_
.FONTENCODING_CP852
 
1537 FONTENCODING_CP855 
= _gdi_
.FONTENCODING_CP855
 
1538 FONTENCODING_CP866 
= _gdi_
.FONTENCODING_CP866
 
1539 FONTENCODING_CP874 
= _gdi_
.FONTENCODING_CP874
 
1540 FONTENCODING_CP932 
= _gdi_
.FONTENCODING_CP932
 
1541 FONTENCODING_CP936 
= _gdi_
.FONTENCODING_CP936
 
1542 FONTENCODING_CP949 
= _gdi_
.FONTENCODING_CP949
 
1543 FONTENCODING_CP950 
= _gdi_
.FONTENCODING_CP950
 
1544 FONTENCODING_CP1250 
= _gdi_
.FONTENCODING_CP1250
 
1545 FONTENCODING_CP1251 
= _gdi_
.FONTENCODING_CP1251
 
1546 FONTENCODING_CP1252 
= _gdi_
.FONTENCODING_CP1252
 
1547 FONTENCODING_CP1253 
= _gdi_
.FONTENCODING_CP1253
 
1548 FONTENCODING_CP1254 
= _gdi_
.FONTENCODING_CP1254
 
1549 FONTENCODING_CP1255 
= _gdi_
.FONTENCODING_CP1255
 
1550 FONTENCODING_CP1256 
= _gdi_
.FONTENCODING_CP1256
 
1551 FONTENCODING_CP1257 
= _gdi_
.FONTENCODING_CP1257
 
1552 FONTENCODING_CP12_MAX 
= _gdi_
.FONTENCODING_CP12_MAX
 
1553 FONTENCODING_UTF7 
= _gdi_
.FONTENCODING_UTF7
 
1554 FONTENCODING_UTF8 
= _gdi_
.FONTENCODING_UTF8
 
1555 FONTENCODING_EUC_JP 
= _gdi_
.FONTENCODING_EUC_JP
 
1556 FONTENCODING_UTF16BE 
= _gdi_
.FONTENCODING_UTF16BE
 
1557 FONTENCODING_UTF16LE 
= _gdi_
.FONTENCODING_UTF16LE
 
1558 FONTENCODING_UTF32BE 
= _gdi_
.FONTENCODING_UTF32BE
 
1559 FONTENCODING_UTF32LE 
= _gdi_
.FONTENCODING_UTF32LE
 
1560 FONTENCODING_MACROMAN 
= _gdi_
.FONTENCODING_MACROMAN
 
1561 FONTENCODING_MACJAPANESE 
= _gdi_
.FONTENCODING_MACJAPANESE
 
1562 FONTENCODING_MACCHINESETRAD 
= _gdi_
.FONTENCODING_MACCHINESETRAD
 
1563 FONTENCODING_MACKOREAN 
= _gdi_
.FONTENCODING_MACKOREAN
 
1564 FONTENCODING_MACARABIC 
= _gdi_
.FONTENCODING_MACARABIC
 
1565 FONTENCODING_MACHEBREW 
= _gdi_
.FONTENCODING_MACHEBREW
 
1566 FONTENCODING_MACGREEK 
= _gdi_
.FONTENCODING_MACGREEK
 
1567 FONTENCODING_MACCYRILLIC 
= _gdi_
.FONTENCODING_MACCYRILLIC
 
1568 FONTENCODING_MACDEVANAGARI 
= _gdi_
.FONTENCODING_MACDEVANAGARI
 
1569 FONTENCODING_MACGURMUKHI 
= _gdi_
.FONTENCODING_MACGURMUKHI
 
1570 FONTENCODING_MACGUJARATI 
= _gdi_
.FONTENCODING_MACGUJARATI
 
1571 FONTENCODING_MACORIYA 
= _gdi_
.FONTENCODING_MACORIYA
 
1572 FONTENCODING_MACBENGALI 
= _gdi_
.FONTENCODING_MACBENGALI
 
1573 FONTENCODING_MACTAMIL 
= _gdi_
.FONTENCODING_MACTAMIL
 
1574 FONTENCODING_MACTELUGU 
= _gdi_
.FONTENCODING_MACTELUGU
 
1575 FONTENCODING_MACKANNADA 
= _gdi_
.FONTENCODING_MACKANNADA
 
1576 FONTENCODING_MACMALAJALAM 
= _gdi_
.FONTENCODING_MACMALAJALAM
 
1577 FONTENCODING_MACSINHALESE 
= _gdi_
.FONTENCODING_MACSINHALESE
 
1578 FONTENCODING_MACBURMESE 
= _gdi_
.FONTENCODING_MACBURMESE
 
1579 FONTENCODING_MACKHMER 
= _gdi_
.FONTENCODING_MACKHMER
 
1580 FONTENCODING_MACTHAI 
= _gdi_
.FONTENCODING_MACTHAI
 
1581 FONTENCODING_MACLAOTIAN 
= _gdi_
.FONTENCODING_MACLAOTIAN
 
1582 FONTENCODING_MACGEORGIAN 
= _gdi_
.FONTENCODING_MACGEORGIAN
 
1583 FONTENCODING_MACARMENIAN 
= _gdi_
.FONTENCODING_MACARMENIAN
 
1584 FONTENCODING_MACCHINESESIMP 
= _gdi_
.FONTENCODING_MACCHINESESIMP
 
1585 FONTENCODING_MACTIBETAN 
= _gdi_
.FONTENCODING_MACTIBETAN
 
1586 FONTENCODING_MACMONGOLIAN 
= _gdi_
.FONTENCODING_MACMONGOLIAN
 
1587 FONTENCODING_MACETHIOPIC 
= _gdi_
.FONTENCODING_MACETHIOPIC
 
1588 FONTENCODING_MACCENTRALEUR 
= _gdi_
.FONTENCODING_MACCENTRALEUR
 
1589 FONTENCODING_MACVIATNAMESE 
= _gdi_
.FONTENCODING_MACVIATNAMESE
 
1590 FONTENCODING_MACARABICEXT 
= _gdi_
.FONTENCODING_MACARABICEXT
 
1591 FONTENCODING_MACSYMBOL 
= _gdi_
.FONTENCODING_MACSYMBOL
 
1592 FONTENCODING_MACDINGBATS 
= _gdi_
.FONTENCODING_MACDINGBATS
 
1593 FONTENCODING_MACTURKISH 
= _gdi_
.FONTENCODING_MACTURKISH
 
1594 FONTENCODING_MACCROATIAN 
= _gdi_
.FONTENCODING_MACCROATIAN
 
1595 FONTENCODING_MACICELANDIC 
= _gdi_
.FONTENCODING_MACICELANDIC
 
1596 FONTENCODING_MACROMANIAN 
= _gdi_
.FONTENCODING_MACROMANIAN
 
1597 FONTENCODING_MACCELTIC 
= _gdi_
.FONTENCODING_MACCELTIC
 
1598 FONTENCODING_MACGAELIC 
= _gdi_
.FONTENCODING_MACGAELIC
 
1599 FONTENCODING_MACKEYBOARD 
= _gdi_
.FONTENCODING_MACKEYBOARD
 
1600 FONTENCODING_MACMIN 
= _gdi_
.FONTENCODING_MACMIN
 
1601 FONTENCODING_MACMAX 
= _gdi_
.FONTENCODING_MACMAX
 
1602 FONTENCODING_MAX 
= _gdi_
.FONTENCODING_MAX
 
1603 FONTENCODING_UTF16 
= _gdi_
.FONTENCODING_UTF16
 
1604 FONTENCODING_UTF32 
= _gdi_
.FONTENCODING_UTF32
 
1605 FONTENCODING_UNICODE 
= _gdi_
.FONTENCODING_UNICODE
 
1606 FONTENCODING_GB2312 
= _gdi_
.FONTENCODING_GB2312
 
1607 FONTENCODING_BIG5 
= _gdi_
.FONTENCODING_BIG5
 
1608 FONTENCODING_SHIFT_JIS 
= _gdi_
.FONTENCODING_SHIFT_JIS
 
1609 #--------------------------------------------------------------------------- 
1611 class NativeFontInfo(object): 
1612     """Proxy of C++ NativeFontInfo class""" 
1613     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
1614     __repr__ 
= _swig_repr
 
1615     def __init__(self
, *args
, **kwargs
):  
1616         """__init__(self) -> NativeFontInfo""" 
1617         _gdi_
.NativeFontInfo_swiginit(self
,_gdi_
.new_NativeFontInfo(*args
, **kwargs
)) 
1618     __swig_destroy__ 
= _gdi_
.delete_NativeFontInfo
 
1619     __del__ 
= lambda self 
: None; 
1620     def Init(*args
, **kwargs
): 
1622         return _gdi_
.NativeFontInfo_Init(*args
, **kwargs
) 
1624     def InitFromFont(*args
, **kwargs
): 
1625         """InitFromFont(self, Font font)""" 
1626         return _gdi_
.NativeFontInfo_InitFromFont(*args
, **kwargs
) 
1628     def GetPointSize(*args
, **kwargs
): 
1629         """GetPointSize(self) -> int""" 
1630         return _gdi_
.NativeFontInfo_GetPointSize(*args
, **kwargs
) 
1632     def GetStyle(*args
, **kwargs
): 
1633         """GetStyle(self) -> int""" 
1634         return _gdi_
.NativeFontInfo_GetStyle(*args
, **kwargs
) 
1636     def GetWeight(*args
, **kwargs
): 
1637         """GetWeight(self) -> int""" 
1638         return _gdi_
.NativeFontInfo_GetWeight(*args
, **kwargs
) 
1640     def GetUnderlined(*args
, **kwargs
): 
1641         """GetUnderlined(self) -> bool""" 
1642         return _gdi_
.NativeFontInfo_GetUnderlined(*args
, **kwargs
) 
1644     def GetFaceName(*args
, **kwargs
): 
1645         """GetFaceName(self) -> String""" 
1646         return _gdi_
.NativeFontInfo_GetFaceName(*args
, **kwargs
) 
1648     def GetFamily(*args
, **kwargs
): 
1649         """GetFamily(self) -> int""" 
1650         return _gdi_
.NativeFontInfo_GetFamily(*args
, **kwargs
) 
1652     def GetEncoding(*args
, **kwargs
): 
1653         """GetEncoding(self) -> int""" 
1654         return _gdi_
.NativeFontInfo_GetEncoding(*args
, **kwargs
) 
1656     def SetPointSize(*args
, **kwargs
): 
1657         """SetPointSize(self, int pointsize)""" 
1658         return _gdi_
.NativeFontInfo_SetPointSize(*args
, **kwargs
) 
1660     def SetStyle(*args
, **kwargs
): 
1661         """SetStyle(self, int style)""" 
1662         return _gdi_
.NativeFontInfo_SetStyle(*args
, **kwargs
) 
1664     def SetWeight(*args
, **kwargs
): 
1665         """SetWeight(self, int weight)""" 
1666         return _gdi_
.NativeFontInfo_SetWeight(*args
, **kwargs
) 
1668     def SetUnderlined(*args
, **kwargs
): 
1669         """SetUnderlined(self, bool underlined)""" 
1670         return _gdi_
.NativeFontInfo_SetUnderlined(*args
, **kwargs
) 
1672     def SetFaceName(*args
, **kwargs
): 
1673         """SetFaceName(self, String facename) -> bool""" 
1674         return _gdi_
.NativeFontInfo_SetFaceName(*args
, **kwargs
) 
1676     def SetFamily(*args
, **kwargs
): 
1677         """SetFamily(self, int family)""" 
1678         return _gdi_
.NativeFontInfo_SetFamily(*args
, **kwargs
) 
1680     def SetEncoding(*args
, **kwargs
): 
1681         """SetEncoding(self, int encoding)""" 
1682         return _gdi_
.NativeFontInfo_SetEncoding(*args
, **kwargs
) 
1684     def FromString(*args
, **kwargs
): 
1685         """FromString(self, String s) -> bool""" 
1686         return _gdi_
.NativeFontInfo_FromString(*args
, **kwargs
) 
1688     def ToString(*args
, **kwargs
): 
1689         """ToString(self) -> String""" 
1690         return _gdi_
.NativeFontInfo_ToString(*args
, **kwargs
) 
1692     def __str__(*args
, **kwargs
): 
1693         """__str__(self) -> String""" 
1694         return _gdi_
.NativeFontInfo___str__(*args
, **kwargs
) 
1696     def FromUserString(*args
, **kwargs
): 
1697         """FromUserString(self, String s) -> bool""" 
1698         return _gdi_
.NativeFontInfo_FromUserString(*args
, **kwargs
) 
1700     def ToUserString(*args
, **kwargs
): 
1701         """ToUserString(self) -> String""" 
1702         return _gdi_
.NativeFontInfo_ToUserString(*args
, **kwargs
) 
1704     Encoding 
= property(GetEncoding
,SetEncoding
,doc
="See `GetEncoding` and `SetEncoding`")  
1705     FaceName 
= property(GetFaceName
,SetFaceName
,doc
="See `GetFaceName` and `SetFaceName`")  
1706     Family 
= property(GetFamily
,SetFamily
,doc
="See `GetFamily` and `SetFamily`")  
1707     PointSize 
= property(GetPointSize
,SetPointSize
,doc
="See `GetPointSize` and `SetPointSize`")  
1708     Style 
= property(GetStyle
,SetStyle
,doc
="See `GetStyle` and `SetStyle`")  
1709     Underlined 
= property(GetUnderlined
,SetUnderlined
,doc
="See `GetUnderlined` and `SetUnderlined`")  
1710     Weight 
= property(GetWeight
,SetWeight
,doc
="See `GetWeight` and `SetWeight`")  
1711 _gdi_
.NativeFontInfo_swigregister(NativeFontInfo
) 
1713 class NativeEncodingInfo(object): 
1714     """Proxy of C++ NativeEncodingInfo class""" 
1715     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
1716     __repr__ 
= _swig_repr
 
1717     facename 
= property(_gdi_
.NativeEncodingInfo_facename_get
, _gdi_
.NativeEncodingInfo_facename_set
) 
1718     encoding 
= property(_gdi_
.NativeEncodingInfo_encoding_get
, _gdi_
.NativeEncodingInfo_encoding_set
) 
1719     def __init__(self
, *args
, **kwargs
):  
1720         """__init__(self) -> NativeEncodingInfo""" 
1721         _gdi_
.NativeEncodingInfo_swiginit(self
,_gdi_
.new_NativeEncodingInfo(*args
, **kwargs
)) 
1722     __swig_destroy__ 
= _gdi_
.delete_NativeEncodingInfo
 
1723     __del__ 
= lambda self 
: None; 
1724     def FromString(*args
, **kwargs
): 
1725         """FromString(self, String s) -> bool""" 
1726         return _gdi_
.NativeEncodingInfo_FromString(*args
, **kwargs
) 
1728     def ToString(*args
, **kwargs
): 
1729         """ToString(self) -> String""" 
1730         return _gdi_
.NativeEncodingInfo_ToString(*args
, **kwargs
) 
1732 _gdi_
.NativeEncodingInfo_swigregister(NativeEncodingInfo
) 
1735 def GetNativeFontEncoding(*args
, **kwargs
): 
1736   """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo""" 
1737   return _gdi_
.GetNativeFontEncoding(*args
, **kwargs
) 
1739 def TestFontEncoding(*args
, **kwargs
): 
1740   """TestFontEncoding(NativeEncodingInfo info) -> bool""" 
1741   return _gdi_
.TestFontEncoding(*args
, **kwargs
) 
1742 #--------------------------------------------------------------------------- 
1744 class FontMapper(object): 
1745     """Proxy of C++ FontMapper class""" 
1746     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
1747     __repr__ 
= _swig_repr
 
1748     def __init__(self
, *args
, **kwargs
):  
1749         """__init__(self) -> FontMapper""" 
1750         _gdi_
.FontMapper_swiginit(self
,_gdi_
.new_FontMapper(*args
, **kwargs
)) 
1751     __swig_destroy__ 
= _gdi_
.delete_FontMapper
 
1752     __del__ 
= lambda self 
: None; 
1753     def Get(*args
, **kwargs
): 
1754         """Get() -> FontMapper""" 
1755         return _gdi_
.FontMapper_Get(*args
, **kwargs
) 
1757     Get 
= staticmethod(Get
) 
1758     def Set(*args
, **kwargs
): 
1759         """Set(FontMapper mapper) -> FontMapper""" 
1760         return _gdi_
.FontMapper_Set(*args
, **kwargs
) 
1762     Set 
= staticmethod(Set
) 
1763     def CharsetToEncoding(*args
, **kwargs
): 
1764         """CharsetToEncoding(self, String charset, bool interactive=True) -> int""" 
1765         return _gdi_
.FontMapper_CharsetToEncoding(*args
, **kwargs
) 
1767     def GetSupportedEncodingsCount(*args
, **kwargs
): 
1768         """GetSupportedEncodingsCount() -> size_t""" 
1769         return _gdi_
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
) 
1771     GetSupportedEncodingsCount 
= staticmethod(GetSupportedEncodingsCount
) 
1772     def GetEncoding(*args
, **kwargs
): 
1773         """GetEncoding(size_t n) -> int""" 
1774         return _gdi_
.FontMapper_GetEncoding(*args
, **kwargs
) 
1776     GetEncoding 
= staticmethod(GetEncoding
) 
1777     def GetEncodingName(*args
, **kwargs
): 
1778         """GetEncodingName(int encoding) -> String""" 
1779         return _gdi_
.FontMapper_GetEncodingName(*args
, **kwargs
) 
1781     GetEncodingName 
= staticmethod(GetEncodingName
) 
1782     def GetEncodingDescription(*args
, **kwargs
): 
1783         """GetEncodingDescription(int encoding) -> String""" 
1784         return _gdi_
.FontMapper_GetEncodingDescription(*args
, **kwargs
) 
1786     GetEncodingDescription 
= staticmethod(GetEncodingDescription
) 
1787     def GetEncodingFromName(*args
, **kwargs
): 
1788         """GetEncodingFromName(String name) -> int""" 
1789         return _gdi_
.FontMapper_GetEncodingFromName(*args
, **kwargs
) 
1791     GetEncodingFromName 
= staticmethod(GetEncodingFromName
) 
1792     def SetConfigPath(*args
, **kwargs
): 
1793         """SetConfigPath(self, String prefix)""" 
1794         return _gdi_
.FontMapper_SetConfigPath(*args
, **kwargs
) 
1796     def GetDefaultConfigPath(*args
, **kwargs
): 
1797         """GetDefaultConfigPath() -> String""" 
1798         return _gdi_
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
) 
1800     GetDefaultConfigPath 
= staticmethod(GetDefaultConfigPath
) 
1801     def GetAltForEncoding(*args
, **kwargs
): 
1802         """GetAltForEncoding(self, int encoding, String facename=EmptyString, bool interactive=True) -> PyObject""" 
1803         return _gdi_
.FontMapper_GetAltForEncoding(*args
, **kwargs
) 
1805     def IsEncodingAvailable(*args
, **kwargs
): 
1806         """IsEncodingAvailable(self, int encoding, String facename=EmptyString) -> bool""" 
1807         return _gdi_
.FontMapper_IsEncodingAvailable(*args
, **kwargs
) 
1809     def SetDialogParent(*args
, **kwargs
): 
1810         """SetDialogParent(self, Window parent)""" 
1811         return _gdi_
.FontMapper_SetDialogParent(*args
, **kwargs
) 
1813     def SetDialogTitle(*args
, **kwargs
): 
1814         """SetDialogTitle(self, String title)""" 
1815         return _gdi_
.FontMapper_SetDialogTitle(*args
, **kwargs
) 
1817     AltForEncoding 
= property(GetAltForEncoding
,doc
="See `GetAltForEncoding`")  
1818 _gdi_
.FontMapper_swigregister(FontMapper
) 
1820 def FontMapper_Get(*args
): 
1821   """FontMapper_Get() -> FontMapper""" 
1822   return _gdi_
.FontMapper_Get(*args
) 
1824 def FontMapper_Set(*args
, **kwargs
): 
1825   """FontMapper_Set(FontMapper mapper) -> FontMapper""" 
1826   return _gdi_
.FontMapper_Set(*args
, **kwargs
) 
1828 def FontMapper_GetSupportedEncodingsCount(*args
): 
1829   """FontMapper_GetSupportedEncodingsCount() -> size_t""" 
1830   return _gdi_
.FontMapper_GetSupportedEncodingsCount(*args
) 
1832 def FontMapper_GetEncoding(*args
, **kwargs
): 
1833   """FontMapper_GetEncoding(size_t n) -> int""" 
1834   return _gdi_
.FontMapper_GetEncoding(*args
, **kwargs
) 
1836 def FontMapper_GetEncodingName(*args
, **kwargs
): 
1837   """FontMapper_GetEncodingName(int encoding) -> String""" 
1838   return _gdi_
.FontMapper_GetEncodingName(*args
, **kwargs
) 
1840 def FontMapper_GetEncodingDescription(*args
, **kwargs
): 
1841   """FontMapper_GetEncodingDescription(int encoding) -> String""" 
1842   return _gdi_
.FontMapper_GetEncodingDescription(*args
, **kwargs
) 
1844 def FontMapper_GetEncodingFromName(*args
, **kwargs
): 
1845   """FontMapper_GetEncodingFromName(String name) -> int""" 
1846   return _gdi_
.FontMapper_GetEncodingFromName(*args
, **kwargs
) 
1848 def FontMapper_GetDefaultConfigPath(*args
): 
1849   """FontMapper_GetDefaultConfigPath() -> String""" 
1850   return _gdi_
.FontMapper_GetDefaultConfigPath(*args
) 
1852 #--------------------------------------------------------------------------- 
1854 class Font(GDIObject
): 
1856     A font is an object which determines the appearance of text. Fonts are 
1857     used for drawing text to a device context, and setting the appearance 
1860     You can retrieve the current system font settings with `wx.SystemSettings`. 
1862     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
1863     __repr__ 
= _swig_repr
 
1864     def __init__(self
, *args
, **kwargs
):  
1866         __init__(self, int pointSize, int family, int style, int weight, bool underline=False,  
1867             String face=EmptyString,  
1868             int encoding=FONTENCODING_DEFAULT) -> Font 
1870         Creates a font object with the specified attributes. 
1872             :param pointSize:  The size of the font in points. 
1874             :param family: Font family.  A generic way of referring to fonts 
1875                 without specifying actual facename.  It can be One of  
1876                 the ``wx.FONTFAMILY_xxx`` constants. 
1878             :param style: One of the ``wx.FONTSTYLE_xxx`` constants. 
1880             :param weight: Font weight, sometimes also referred to as font 
1881                 boldness. One of the ``wx.FONTWEIGHT_xxx`` constants. 
1883             :param underline: The value can be ``True`` or ``False`` and 
1884                 indicates whether the font will include an underline.  This 
1885                 may not be supported on all platforms. 
1887             :param face: An optional string specifying the actual typeface to 
1888                 be used. If it is an empty string, a default typeface will be 
1889                 chosen based on the family. 
1891             :param encoding: An encoding which may be one of the 
1892                 ``wx.FONTENCODING_xxx`` constants.  If the specified encoding isn't 
1893                 available, no font is created. 
1895         :see: `wx.FFont`, `wx.FontFromPixelSize`, `wx.FFontFromPixelSize`, 
1896             `wx.FontFromNativeInfoString`, `wx.FontFromNativeInfo` 
1899         if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName'] 
1900         _gdi_
.Font_swiginit(self
,_gdi_
.new_Font(*args
, **kwargs
)) 
1901     __swig_destroy__ 
= _gdi_
.delete_Font
 
1902     __del__ 
= lambda self 
: None; 
1903     def IsOk(*args
, **kwargs
): 
1907         Returns ``True`` if this font was successfully created. 
1909         return _gdi_
.Font_IsOk(*args
, **kwargs
) 
1912     def __nonzero__(self
): return self
.IsOk()  
1913     def __eq__(*args
, **kwargs
): 
1914         """__eq__(self, Font other) -> bool""" 
1915         return _gdi_
.Font___eq__(*args
, **kwargs
) 
1917     def __ne__(*args
, **kwargs
): 
1918         """__ne__(self, Font other) -> bool""" 
1919         return _gdi_
.Font___ne__(*args
, **kwargs
) 
1921     def GetPointSize(*args
, **kwargs
): 
1923         GetPointSize(self) -> int 
1925         Gets the point size. 
1927         return _gdi_
.Font_GetPointSize(*args
, **kwargs
) 
1929     def GetPixelSize(*args
, **kwargs
): 
1931         GetPixelSize(self) -> Size 
1933         Returns the size in pixels if the font was constructed with a pixel 
1936         return _gdi_
.Font_GetPixelSize(*args
, **kwargs
) 
1938     def IsUsingSizeInPixels(*args
, **kwargs
): 
1940         IsUsingSizeInPixels(self) -> bool 
1942         Returns ``True`` if the font is using a pixelSize. 
1944         return _gdi_
.Font_IsUsingSizeInPixels(*args
, **kwargs
) 
1946     def GetFamily(*args
, **kwargs
): 
1948         GetFamily(self) -> int 
1950         Gets the font family.  
1952         return _gdi_
.Font_GetFamily(*args
, **kwargs
) 
1954     def GetStyle(*args
, **kwargs
): 
1956         GetStyle(self) -> int 
1958         Gets the font style. 
1960         return _gdi_
.Font_GetStyle(*args
, **kwargs
) 
1962     def GetWeight(*args
, **kwargs
): 
1964         GetWeight(self) -> int 
1966         Gets the font weight.  
1968         return _gdi_
.Font_GetWeight(*args
, **kwargs
) 
1970     def GetUnderlined(*args
, **kwargs
): 
1972         GetUnderlined(self) -> bool 
1974         Returns ``True`` if the font is underlined, ``False`` otherwise. 
1976         return _gdi_
.Font_GetUnderlined(*args
, **kwargs
) 
1978     def GetFaceName(*args
, **kwargs
): 
1980         GetFaceName(self) -> String 
1982         Returns the typeface name associated with the font, or the empty 
1983         string if there is no typeface information. 
1985         return _gdi_
.Font_GetFaceName(*args
, **kwargs
) 
1987     def GetEncoding(*args
, **kwargs
): 
1989         GetEncoding(self) -> int 
1991         Get the font's encoding. 
1993         return _gdi_
.Font_GetEncoding(*args
, **kwargs
) 
1995     def GetNativeFontInfo(*args
, **kwargs
): 
1997         GetNativeFontInfo(self) -> NativeFontInfo 
1999         Constructs a `wx.NativeFontInfo` object from this font. 
2001         return _gdi_
.Font_GetNativeFontInfo(*args
, **kwargs
) 
2003     def IsFixedWidth(*args
, **kwargs
): 
2005         IsFixedWidth(self) -> bool 
2007         Returns true if the font is a fixed width (or monospaced) font, false 
2008         if it is a proportional one or font is invalid. 
2010         return _gdi_
.Font_IsFixedWidth(*args
, **kwargs
) 
2012     def GetNativeFontInfoDesc(*args
, **kwargs
): 
2014         GetNativeFontInfoDesc(self) -> String 
2016         Returns the platform-dependent string completely describing this font 
2017         or an empty string if the font isn't valid. 
2019         return _gdi_
.Font_GetNativeFontInfoDesc(*args
, **kwargs
) 
2021     def GetNativeFontInfoUserDesc(*args
, **kwargs
): 
2023         GetNativeFontInfoUserDesc(self) -> String 
2025         Returns a human readable version of `GetNativeFontInfoDesc`. 
2027         return _gdi_
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
) 
2029     def SetPointSize(*args
, **kwargs
): 
2031         SetPointSize(self, int pointSize) 
2033         Sets the point size. 
2035         return _gdi_
.Font_SetPointSize(*args
, **kwargs
) 
2037     def SetPixelSize(*args
, **kwargs
): 
2039         SetPixelSize(self, Size pixelSize) 
2041         Sets the size in pixels rather than points.  If there is platform API 
2042         support for this then it is used, otherwise a font with the closest 
2043         size is found using a binary search. 
2045         return _gdi_
.Font_SetPixelSize(*args
, **kwargs
) 
2047     def SetFamily(*args
, **kwargs
): 
2049         SetFamily(self, int family) 
2051         Sets the font family. 
2053         return _gdi_
.Font_SetFamily(*args
, **kwargs
) 
2055     def SetStyle(*args
, **kwargs
): 
2057         SetStyle(self, int style) 
2059         Sets the font style. 
2061         return _gdi_
.Font_SetStyle(*args
, **kwargs
) 
2063     def SetWeight(*args
, **kwargs
): 
2065         SetWeight(self, int weight) 
2067         Sets the font weight. 
2069         return _gdi_
.Font_SetWeight(*args
, **kwargs
) 
2071     def SetFaceName(*args
, **kwargs
): 
2073         SetFaceName(self, String faceName) -> bool 
2075         Sets the facename for the font.  The facename, which should be a valid 
2076         font installed on the end-user's system. 
2078         To avoid portability problems, don't rely on a specific face, but 
2079         specify the font family instead or as well. A suitable font will be 
2080         found on the end-user's system. If both the family and the facename 
2081         are specified, wxWidgets will first search for the specific face, and 
2082         then for a font belonging to the same family. 
2084         return _gdi_
.Font_SetFaceName(*args
, **kwargs
) 
2086     def SetUnderlined(*args
, **kwargs
): 
2088         SetUnderlined(self, bool underlined) 
2092         return _gdi_
.Font_SetUnderlined(*args
, **kwargs
) 
2094     def SetEncoding(*args
, **kwargs
): 
2096         SetEncoding(self, int encoding) 
2098         Set the font encoding. 
2100         return _gdi_
.Font_SetEncoding(*args
, **kwargs
) 
2102     def SetNativeFontInfo(*args
, **kwargs
): 
2104         SetNativeFontInfo(self, NativeFontInfo info) 
2106         Set the font's attributes from a `wx.NativeFontInfo` object. 
2108         return _gdi_
.Font_SetNativeFontInfo(*args
, **kwargs
) 
2110     def SetNativeFontInfoFromString(*args
, **kwargs
): 
2112         SetNativeFontInfoFromString(self, String info) -> bool 
2114         Set the font's attributes from string representation of a 
2115         `wx.NativeFontInfo` object. 
2117         return _gdi_
.Font_SetNativeFontInfoFromString(*args
, **kwargs
) 
2119     def SetNativeFontInfoUserDesc(*args
, **kwargs
): 
2121         SetNativeFontInfoUserDesc(self, String info) -> bool 
2123         Set the font's attributes from a string formerly returned from 
2124         `GetNativeFontInfoDesc`. 
2126         return _gdi_
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
) 
2128     def GetFamilyString(*args
, **kwargs
): 
2130         GetFamilyString(self) -> String 
2132         Returns a string representation of the font family. 
2134         return _gdi_
.Font_GetFamilyString(*args
, **kwargs
) 
2136     def GetStyleString(*args
, **kwargs
): 
2138         GetStyleString(self) -> String 
2140         Returns a string representation of the font style. 
2142         return _gdi_
.Font_GetStyleString(*args
, **kwargs
) 
2144     def GetWeightString(*args
, **kwargs
): 
2146         GetWeightString(self) -> String 
2148         Return a string representation of the font weight. 
2150         return _gdi_
.Font_GetWeightString(*args
, **kwargs
) 
2152     def SetNoAntiAliasing(*args
, **kwargs
): 
2153         """SetNoAntiAliasing(self, bool no=True)""" 
2154         return _gdi_
.Font_SetNoAntiAliasing(*args
, **kwargs
) 
2156     def GetNoAntiAliasing(*args
, **kwargs
): 
2157         """GetNoAntiAliasing(self) -> bool""" 
2158         return _gdi_
.Font_GetNoAntiAliasing(*args
, **kwargs
) 
2160     def GetDefaultEncoding(*args
, **kwargs
): 
2162         GetDefaultEncoding() -> int 
2164         Returns the encoding used for all fonts created with an encoding of 
2165         ``wx.FONTENCODING_DEFAULT``. 
2167         return _gdi_
.Font_GetDefaultEncoding(*args
, **kwargs
) 
2169     GetDefaultEncoding 
= staticmethod(GetDefaultEncoding
) 
2170     def SetDefaultEncoding(*args
, **kwargs
): 
2172         SetDefaultEncoding(int encoding) 
2174         Sets the default font encoding. 
2176         return _gdi_
.Font_SetDefaultEncoding(*args
, **kwargs
) 
2178     SetDefaultEncoding 
= staticmethod(SetDefaultEncoding
) 
2179     Encoding 
= property(GetEncoding
,SetEncoding
,doc
="See `GetEncoding` and `SetEncoding`")  
2180     FaceName 
= property(GetFaceName
,SetFaceName
,doc
="See `GetFaceName` and `SetFaceName`")  
2181     Family 
= property(GetFamily
,SetFamily
,doc
="See `GetFamily` and `SetFamily`")  
2182     FamilyString 
= property(GetFamilyString
,doc
="See `GetFamilyString`")  
2183     NativeFontInfo 
= property(GetNativeFontInfo
,SetNativeFontInfo
,doc
="See `GetNativeFontInfo` and `SetNativeFontInfo`")  
2184     NativeFontInfoDesc 
= property(GetNativeFontInfoDesc
,doc
="See `GetNativeFontInfoDesc`")  
2185     NativeFontInfoUserDesc 
= property(GetNativeFontInfoUserDesc
,SetNativeFontInfoUserDesc
,doc
="See `GetNativeFontInfoUserDesc` and `SetNativeFontInfoUserDesc`")  
2186     NoAntiAliasing 
= property(GetNoAntiAliasing
,SetNoAntiAliasing
,doc
="See `GetNoAntiAliasing` and `SetNoAntiAliasing`")  
2187     PixelSize 
= property(GetPixelSize
,SetPixelSize
,doc
="See `GetPixelSize` and `SetPixelSize`")  
2188     PointSize 
= property(GetPointSize
,SetPointSize
,doc
="See `GetPointSize` and `SetPointSize`")  
2189     Style 
= property(GetStyle
,SetStyle
,doc
="See `GetStyle` and `SetStyle`")  
2190     StyleString 
= property(GetStyleString
,doc
="See `GetStyleString`")  
2191     Underlined 
= property(GetUnderlined
,SetUnderlined
,doc
="See `GetUnderlined` and `SetUnderlined`")  
2192     Weight 
= property(GetWeight
,SetWeight
,doc
="See `GetWeight` and `SetWeight`")  
2193     WeightString 
= property(GetWeightString
,doc
="See `GetWeightString`")  
2194 _gdi_
.Font_swigregister(Font
) 
2196 def FontFromNativeInfo(*args
, **kwargs
): 
2198     FontFromNativeInfo(NativeFontInfo info) -> Font 
2200     Construct a `wx.Font` from a `wx.NativeFontInfo` object. 
2202     if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName'] 
2203     val 
= _gdi_
.new_FontFromNativeInfo(*args
, **kwargs
) 
2206 def FontFromNativeInfoString(*args
, **kwargs
): 
2208     FontFromNativeInfoString(String info) -> Font 
2210     Construct a `wx.Font` from the string representation of a 
2211     `wx.NativeFontInfo` object. 
2213     if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName'] 
2214     val 
= _gdi_
.new_FontFromNativeInfoString(*args
, **kwargs
) 
2217 def FFont(*args
, **kwargs
): 
2219     FFont(int pointSize, int family, int flags=FONTFLAG_DEFAULT,  
2220         String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font 
2222     A bit of a simpler way to create a `wx.Font` using flags instead of 
2223     individual attribute settings.  The value of flags can be a 
2224     combination of the following: 
2226         ============================  == 
2232         wx.FONTFLAG_ANTIALIASED 
2233         wx.FONTFLAG_NOT_ANTIALIASED 
2234         wx.FONTFLAG_UNDERLINED 
2235         wx.FONTFLAG_STRIKETHROUGH 
2236         ============================  == 
2238     :see: `wx.Font.__init__` 
2240     if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName'] 
2241     val 
= _gdi_
.new_FFont(*args
, **kwargs
) 
2244 def FontFromPixelSize(*args
, **kwargs
): 
2246     FontFromPixelSize(Size pixelSize, int family, int style, int weight,  
2247         bool underlined=False, String face=wxEmptyString,  
2248         int encoding=FONTENCODING_DEFAULT) -> Font 
2250     Creates a font using a size in pixels rather than points.  If there is 
2251     platform API support for this then it is used, otherwise a font with 
2252     the closest size is found using a binary search. 
2254     :see: `wx.Font.__init__` 
2256     if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName'] 
2257     val 
= _gdi_
.new_FontFromPixelSize(*args
, **kwargs
) 
2260 def FFontFromPixelSize(*args
, **kwargs
): 
2262     FFontFromPixelSize(Size pixelSize, int family, int flags=FONTFLAG_DEFAULT,  
2263         String face=wxEmptyString, int encoding=FONTENCODING_DEFAULT) -> Font 
2265     Creates a font using a size in pixels rather than points.  If there is 
2266     platform API support for this then it is used, otherwise a font with 
2267     the closest size is found using a binary search. 
2269     :see: `wx.Font.__init__`, `wx.FFont` 
2271     if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName'] 
2272     val 
= _gdi_
.new_FFontFromPixelSize(*args
, **kwargs
) 
2275 def Font_GetDefaultEncoding(*args
): 
2277     Font_GetDefaultEncoding() -> int 
2279     Returns the encoding used for all fonts created with an encoding of 
2280     ``wx.FONTENCODING_DEFAULT``. 
2282   return _gdi_
.Font_GetDefaultEncoding(*args
) 
2284 def Font_SetDefaultEncoding(*args
, **kwargs
): 
2286     Font_SetDefaultEncoding(int encoding) 
2288     Sets the default font encoding. 
2290   return _gdi_
.Font_SetDefaultEncoding(*args
, **kwargs
) 
2292 Font2 
= wx
._deprecated
(FFont
, "Use `wx.FFont` instead.")  
2293 #--------------------------------------------------------------------------- 
2295 class FontEnumerator(object): 
2296     """Proxy of C++ FontEnumerator class""" 
2297     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
2298     __repr__ 
= _swig_repr
 
2299     def __init__(self
, *args
, **kwargs
):  
2300         """__init__(self) -> FontEnumerator""" 
2301         _gdi_
.FontEnumerator_swiginit(self
,_gdi_
.new_FontEnumerator(*args
, **kwargs
)) 
2302         self
._setCallbackInfo
(self
, FontEnumerator
, 0) 
2304     __swig_destroy__ 
= _gdi_
.delete_FontEnumerator
 
2305     __del__ 
= lambda self 
: None; 
2306     def _setCallbackInfo(*args
, **kwargs
): 
2307         """_setCallbackInfo(self, PyObject self, PyObject _class, bool incref)""" 
2308         return _gdi_
.FontEnumerator__setCallbackInfo(*args
, **kwargs
) 
2310     def EnumerateFacenames(*args
, **kwargs
): 
2311         """EnumerateFacenames(self, int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool""" 
2312         return _gdi_
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
) 
2314     def EnumerateEncodings(*args
, **kwargs
): 
2315         """EnumerateEncodings(self, String facename=EmptyString) -> bool""" 
2316         return _gdi_
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
) 
2318     def GetEncodings(*args
, **kwargs
): 
2319         """GetEncodings() -> PyObject""" 
2320         return _gdi_
.FontEnumerator_GetEncodings(*args
, **kwargs
) 
2322     GetEncodings 
= staticmethod(GetEncodings
) 
2323     def GetFacenames(*args
, **kwargs
): 
2324         """GetFacenames() -> PyObject""" 
2325         return _gdi_
.FontEnumerator_GetFacenames(*args
, **kwargs
) 
2327     GetFacenames 
= staticmethod(GetFacenames
) 
2328     def IsValidFacename(*args
, **kwargs
): 
2330         IsValidFacename(String str) -> bool 
2332         Convenience function that returns true if the given face name exist in 
2335         return _gdi_
.FontEnumerator_IsValidFacename(*args
, **kwargs
) 
2337     IsValidFacename 
= staticmethod(IsValidFacename
) 
2338 _gdi_
.FontEnumerator_swigregister(FontEnumerator
) 
2340 def FontEnumerator_GetEncodings(*args
): 
2341   """FontEnumerator_GetEncodings() -> PyObject""" 
2342   return _gdi_
.FontEnumerator_GetEncodings(*args
) 
2344 def FontEnumerator_GetFacenames(*args
): 
2345   """FontEnumerator_GetFacenames() -> PyObject""" 
2346   return _gdi_
.FontEnumerator_GetFacenames(*args
) 
2348 def FontEnumerator_IsValidFacename(*args
, **kwargs
): 
2350     FontEnumerator_IsValidFacename(String str) -> bool 
2352     Convenience function that returns true if the given face name exist in 
2355   return _gdi_
.FontEnumerator_IsValidFacename(*args
, **kwargs
) 
2357 #--------------------------------------------------------------------------- 
2359 LANGUAGE_DEFAULT 
= _gdi_
.LANGUAGE_DEFAULT
 
2360 LANGUAGE_UNKNOWN 
= _gdi_
.LANGUAGE_UNKNOWN
 
2361 LANGUAGE_ABKHAZIAN 
= _gdi_
.LANGUAGE_ABKHAZIAN
 
2362 LANGUAGE_AFAR 
= _gdi_
.LANGUAGE_AFAR
 
2363 LANGUAGE_AFRIKAANS 
= _gdi_
.LANGUAGE_AFRIKAANS
 
2364 LANGUAGE_ALBANIAN 
= _gdi_
.LANGUAGE_ALBANIAN
 
2365 LANGUAGE_AMHARIC 
= _gdi_
.LANGUAGE_AMHARIC
 
2366 LANGUAGE_ARABIC 
= _gdi_
.LANGUAGE_ARABIC
 
2367 LANGUAGE_ARABIC_ALGERIA 
= _gdi_
.LANGUAGE_ARABIC_ALGERIA
 
2368 LANGUAGE_ARABIC_BAHRAIN 
= _gdi_
.LANGUAGE_ARABIC_BAHRAIN
 
2369 LANGUAGE_ARABIC_EGYPT 
= _gdi_
.LANGUAGE_ARABIC_EGYPT
 
2370 LANGUAGE_ARABIC_IRAQ 
= _gdi_
.LANGUAGE_ARABIC_IRAQ
 
2371 LANGUAGE_ARABIC_JORDAN 
= _gdi_
.LANGUAGE_ARABIC_JORDAN
 
2372 LANGUAGE_ARABIC_KUWAIT 
= _gdi_
.LANGUAGE_ARABIC_KUWAIT
 
2373 LANGUAGE_ARABIC_LEBANON 
= _gdi_
.LANGUAGE_ARABIC_LEBANON
 
2374 LANGUAGE_ARABIC_LIBYA 
= _gdi_
.LANGUAGE_ARABIC_LIBYA
 
2375 LANGUAGE_ARABIC_MOROCCO 
= _gdi_
.LANGUAGE_ARABIC_MOROCCO
 
2376 LANGUAGE_ARABIC_OMAN 
= _gdi_
.LANGUAGE_ARABIC_OMAN
 
2377 LANGUAGE_ARABIC_QATAR 
= _gdi_
.LANGUAGE_ARABIC_QATAR
 
2378 LANGUAGE_ARABIC_SAUDI_ARABIA 
= _gdi_
.LANGUAGE_ARABIC_SAUDI_ARABIA
 
2379 LANGUAGE_ARABIC_SUDAN 
= _gdi_
.LANGUAGE_ARABIC_SUDAN
 
2380 LANGUAGE_ARABIC_SYRIA 
= _gdi_
.LANGUAGE_ARABIC_SYRIA
 
2381 LANGUAGE_ARABIC_TUNISIA 
= _gdi_
.LANGUAGE_ARABIC_TUNISIA
 
2382 LANGUAGE_ARABIC_UAE 
= _gdi_
.LANGUAGE_ARABIC_UAE
 
2383 LANGUAGE_ARABIC_YEMEN 
= _gdi_
.LANGUAGE_ARABIC_YEMEN
 
2384 LANGUAGE_ARMENIAN 
= _gdi_
.LANGUAGE_ARMENIAN
 
2385 LANGUAGE_ASSAMESE 
= _gdi_
.LANGUAGE_ASSAMESE
 
2386 LANGUAGE_AYMARA 
= _gdi_
.LANGUAGE_AYMARA
 
2387 LANGUAGE_AZERI 
= _gdi_
.LANGUAGE_AZERI
 
2388 LANGUAGE_AZERI_CYRILLIC 
= _gdi_
.LANGUAGE_AZERI_CYRILLIC
 
2389 LANGUAGE_AZERI_LATIN 
= _gdi_
.LANGUAGE_AZERI_LATIN
 
2390 LANGUAGE_BASHKIR 
= _gdi_
.LANGUAGE_BASHKIR
 
2391 LANGUAGE_BASQUE 
= _gdi_
.LANGUAGE_BASQUE
 
2392 LANGUAGE_BELARUSIAN 
= _gdi_
.LANGUAGE_BELARUSIAN
 
2393 LANGUAGE_BENGALI 
= _gdi_
.LANGUAGE_BENGALI
 
2394 LANGUAGE_BHUTANI 
= _gdi_
.LANGUAGE_BHUTANI
 
2395 LANGUAGE_BIHARI 
= _gdi_
.LANGUAGE_BIHARI
 
2396 LANGUAGE_BISLAMA 
= _gdi_
.LANGUAGE_BISLAMA
 
2397 LANGUAGE_BRETON 
= _gdi_
.LANGUAGE_BRETON
 
2398 LANGUAGE_BULGARIAN 
= _gdi_
.LANGUAGE_BULGARIAN
 
2399 LANGUAGE_BURMESE 
= _gdi_
.LANGUAGE_BURMESE
 
2400 LANGUAGE_CAMBODIAN 
= _gdi_
.LANGUAGE_CAMBODIAN
 
2401 LANGUAGE_CATALAN 
= _gdi_
.LANGUAGE_CATALAN
 
2402 LANGUAGE_CHINESE 
= _gdi_
.LANGUAGE_CHINESE
 
2403 LANGUAGE_CHINESE_SIMPLIFIED 
= _gdi_
.LANGUAGE_CHINESE_SIMPLIFIED
 
2404 LANGUAGE_CHINESE_TRADITIONAL 
= _gdi_
.LANGUAGE_CHINESE_TRADITIONAL
 
2405 LANGUAGE_CHINESE_HONGKONG 
= _gdi_
.LANGUAGE_CHINESE_HONGKONG
 
2406 LANGUAGE_CHINESE_MACAU 
= _gdi_
.LANGUAGE_CHINESE_MACAU
 
2407 LANGUAGE_CHINESE_SINGAPORE 
= _gdi_
.LANGUAGE_CHINESE_SINGAPORE
 
2408 LANGUAGE_CHINESE_TAIWAN 
= _gdi_
.LANGUAGE_CHINESE_TAIWAN
 
2409 LANGUAGE_CORSICAN 
= _gdi_
.LANGUAGE_CORSICAN
 
2410 LANGUAGE_CROATIAN 
= _gdi_
.LANGUAGE_CROATIAN
 
2411 LANGUAGE_CZECH 
= _gdi_
.LANGUAGE_CZECH
 
2412 LANGUAGE_DANISH 
= _gdi_
.LANGUAGE_DANISH
 
2413 LANGUAGE_DUTCH 
= _gdi_
.LANGUAGE_DUTCH
 
2414 LANGUAGE_DUTCH_BELGIAN 
= _gdi_
.LANGUAGE_DUTCH_BELGIAN
 
2415 LANGUAGE_ENGLISH 
= _gdi_
.LANGUAGE_ENGLISH
 
2416 LANGUAGE_ENGLISH_UK 
= _gdi_
.LANGUAGE_ENGLISH_UK
 
2417 LANGUAGE_ENGLISH_US 
= _gdi_
.LANGUAGE_ENGLISH_US
 
2418 LANGUAGE_ENGLISH_AUSTRALIA 
= _gdi_
.LANGUAGE_ENGLISH_AUSTRALIA
 
2419 LANGUAGE_ENGLISH_BELIZE 
= _gdi_
.LANGUAGE_ENGLISH_BELIZE
 
2420 LANGUAGE_ENGLISH_BOTSWANA 
= _gdi_
.LANGUAGE_ENGLISH_BOTSWANA
 
2421 LANGUAGE_ENGLISH_CANADA 
= _gdi_
.LANGUAGE_ENGLISH_CANADA
 
2422 LANGUAGE_ENGLISH_CARIBBEAN 
= _gdi_
.LANGUAGE_ENGLISH_CARIBBEAN
 
2423 LANGUAGE_ENGLISH_DENMARK 
= _gdi_
.LANGUAGE_ENGLISH_DENMARK
 
2424 LANGUAGE_ENGLISH_EIRE 
= _gdi_
.LANGUAGE_ENGLISH_EIRE
 
2425 LANGUAGE_ENGLISH_JAMAICA 
= _gdi_
.LANGUAGE_ENGLISH_JAMAICA
 
2426 LANGUAGE_ENGLISH_NEW_ZEALAND 
= _gdi_
.LANGUAGE_ENGLISH_NEW_ZEALAND
 
2427 LANGUAGE_ENGLISH_PHILIPPINES 
= _gdi_
.LANGUAGE_ENGLISH_PHILIPPINES
 
2428 LANGUAGE_ENGLISH_SOUTH_AFRICA 
= _gdi_
.LANGUAGE_ENGLISH_SOUTH_AFRICA
 
2429 LANGUAGE_ENGLISH_TRINIDAD 
= _gdi_
.LANGUAGE_ENGLISH_TRINIDAD
 
2430 LANGUAGE_ENGLISH_ZIMBABWE 
= _gdi_
.LANGUAGE_ENGLISH_ZIMBABWE
 
2431 LANGUAGE_ESPERANTO 
= _gdi_
.LANGUAGE_ESPERANTO
 
2432 LANGUAGE_ESTONIAN 
= _gdi_
.LANGUAGE_ESTONIAN
 
2433 LANGUAGE_FAEROESE 
= _gdi_
.LANGUAGE_FAEROESE
 
2434 LANGUAGE_FARSI 
= _gdi_
.LANGUAGE_FARSI
 
2435 LANGUAGE_FIJI 
= _gdi_
.LANGUAGE_FIJI
 
2436 LANGUAGE_FINNISH 
= _gdi_
.LANGUAGE_FINNISH
 
2437 LANGUAGE_FRENCH 
= _gdi_
.LANGUAGE_FRENCH
 
2438 LANGUAGE_FRENCH_BELGIAN 
= _gdi_
.LANGUAGE_FRENCH_BELGIAN
 
2439 LANGUAGE_FRENCH_CANADIAN 
= _gdi_
.LANGUAGE_FRENCH_CANADIAN
 
2440 LANGUAGE_FRENCH_LUXEMBOURG 
= _gdi_
.LANGUAGE_FRENCH_LUXEMBOURG
 
2441 LANGUAGE_FRENCH_MONACO 
= _gdi_
.LANGUAGE_FRENCH_MONACO
 
2442 LANGUAGE_FRENCH_SWISS 
= _gdi_
.LANGUAGE_FRENCH_SWISS
 
2443 LANGUAGE_FRISIAN 
= _gdi_
.LANGUAGE_FRISIAN
 
2444 LANGUAGE_GALICIAN 
= _gdi_
.LANGUAGE_GALICIAN
 
2445 LANGUAGE_GEORGIAN 
= _gdi_
.LANGUAGE_GEORGIAN
 
2446 LANGUAGE_GERMAN 
= _gdi_
.LANGUAGE_GERMAN
 
2447 LANGUAGE_GERMAN_AUSTRIAN 
= _gdi_
.LANGUAGE_GERMAN_AUSTRIAN
 
2448 LANGUAGE_GERMAN_BELGIUM 
= _gdi_
.LANGUAGE_GERMAN_BELGIUM
 
2449 LANGUAGE_GERMAN_LIECHTENSTEIN 
= _gdi_
.LANGUAGE_GERMAN_LIECHTENSTEIN
 
2450 LANGUAGE_GERMAN_LUXEMBOURG 
= _gdi_
.LANGUAGE_GERMAN_LUXEMBOURG
 
2451 LANGUAGE_GERMAN_SWISS 
= _gdi_
.LANGUAGE_GERMAN_SWISS
 
2452 LANGUAGE_GREEK 
= _gdi_
.LANGUAGE_GREEK
 
2453 LANGUAGE_GREENLANDIC 
= _gdi_
.LANGUAGE_GREENLANDIC
 
2454 LANGUAGE_GUARANI 
= _gdi_
.LANGUAGE_GUARANI
 
2455 LANGUAGE_GUJARATI 
= _gdi_
.LANGUAGE_GUJARATI
 
2456 LANGUAGE_HAUSA 
= _gdi_
.LANGUAGE_HAUSA
 
2457 LANGUAGE_HEBREW 
= _gdi_
.LANGUAGE_HEBREW
 
2458 LANGUAGE_HINDI 
= _gdi_
.LANGUAGE_HINDI
 
2459 LANGUAGE_HUNGARIAN 
= _gdi_
.LANGUAGE_HUNGARIAN
 
2460 LANGUAGE_ICELANDIC 
= _gdi_
.LANGUAGE_ICELANDIC
 
2461 LANGUAGE_INDONESIAN 
= _gdi_
.LANGUAGE_INDONESIAN
 
2462 LANGUAGE_INTERLINGUA 
= _gdi_
.LANGUAGE_INTERLINGUA
 
2463 LANGUAGE_INTERLINGUE 
= _gdi_
.LANGUAGE_INTERLINGUE
 
2464 LANGUAGE_INUKTITUT 
= _gdi_
.LANGUAGE_INUKTITUT
 
2465 LANGUAGE_INUPIAK 
= _gdi_
.LANGUAGE_INUPIAK
 
2466 LANGUAGE_IRISH 
= _gdi_
.LANGUAGE_IRISH
 
2467 LANGUAGE_ITALIAN 
= _gdi_
.LANGUAGE_ITALIAN
 
2468 LANGUAGE_ITALIAN_SWISS 
= _gdi_
.LANGUAGE_ITALIAN_SWISS
 
2469 LANGUAGE_JAPANESE 
= _gdi_
.LANGUAGE_JAPANESE
 
2470 LANGUAGE_JAVANESE 
= _gdi_
.LANGUAGE_JAVANESE
 
2471 LANGUAGE_KANNADA 
= _gdi_
.LANGUAGE_KANNADA
 
2472 LANGUAGE_KASHMIRI 
= _gdi_
.LANGUAGE_KASHMIRI
 
2473 LANGUAGE_KASHMIRI_INDIA 
= _gdi_
.LANGUAGE_KASHMIRI_INDIA
 
2474 LANGUAGE_KAZAKH 
= _gdi_
.LANGUAGE_KAZAKH
 
2475 LANGUAGE_KERNEWEK 
= _gdi_
.LANGUAGE_KERNEWEK
 
2476 LANGUAGE_KINYARWANDA 
= _gdi_
.LANGUAGE_KINYARWANDA
 
2477 LANGUAGE_KIRGHIZ 
= _gdi_
.LANGUAGE_KIRGHIZ
 
2478 LANGUAGE_KIRUNDI 
= _gdi_
.LANGUAGE_KIRUNDI
 
2479 LANGUAGE_KONKANI 
= _gdi_
.LANGUAGE_KONKANI
 
2480 LANGUAGE_KOREAN 
= _gdi_
.LANGUAGE_KOREAN
 
2481 LANGUAGE_KURDISH 
= _gdi_
.LANGUAGE_KURDISH
 
2482 LANGUAGE_LAOTHIAN 
= _gdi_
.LANGUAGE_LAOTHIAN
 
2483 LANGUAGE_LATIN 
= _gdi_
.LANGUAGE_LATIN
 
2484 LANGUAGE_LATVIAN 
= _gdi_
.LANGUAGE_LATVIAN
 
2485 LANGUAGE_LINGALA 
= _gdi_
.LANGUAGE_LINGALA
 
2486 LANGUAGE_LITHUANIAN 
= _gdi_
.LANGUAGE_LITHUANIAN
 
2487 LANGUAGE_MACEDONIAN 
= _gdi_
.LANGUAGE_MACEDONIAN
 
2488 LANGUAGE_MALAGASY 
= _gdi_
.LANGUAGE_MALAGASY
 
2489 LANGUAGE_MALAY 
= _gdi_
.LANGUAGE_MALAY
 
2490 LANGUAGE_MALAYALAM 
= _gdi_
.LANGUAGE_MALAYALAM
 
2491 LANGUAGE_MALAY_BRUNEI_DARUSSALAM 
= _gdi_
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
 
2492 LANGUAGE_MALAY_MALAYSIA 
= _gdi_
.LANGUAGE_MALAY_MALAYSIA
 
2493 LANGUAGE_MALTESE 
= _gdi_
.LANGUAGE_MALTESE
 
2494 LANGUAGE_MANIPURI 
= _gdi_
.LANGUAGE_MANIPURI
 
2495 LANGUAGE_MAORI 
= _gdi_
.LANGUAGE_MAORI
 
2496 LANGUAGE_MARATHI 
= _gdi_
.LANGUAGE_MARATHI
 
2497 LANGUAGE_MOLDAVIAN 
= _gdi_
.LANGUAGE_MOLDAVIAN
 
2498 LANGUAGE_MONGOLIAN 
= _gdi_
.LANGUAGE_MONGOLIAN
 
2499 LANGUAGE_NAURU 
= _gdi_
.LANGUAGE_NAURU
 
2500 LANGUAGE_NEPALI 
= _gdi_
.LANGUAGE_NEPALI
 
2501 LANGUAGE_NEPALI_INDIA 
= _gdi_
.LANGUAGE_NEPALI_INDIA
 
2502 LANGUAGE_NORWEGIAN_BOKMAL 
= _gdi_
.LANGUAGE_NORWEGIAN_BOKMAL
 
2503 LANGUAGE_NORWEGIAN_NYNORSK 
= _gdi_
.LANGUAGE_NORWEGIAN_NYNORSK
 
2504 LANGUAGE_OCCITAN 
= _gdi_
.LANGUAGE_OCCITAN
 
2505 LANGUAGE_ORIYA 
= _gdi_
.LANGUAGE_ORIYA
 
2506 LANGUAGE_OROMO 
= _gdi_
.LANGUAGE_OROMO
 
2507 LANGUAGE_PASHTO 
= _gdi_
.LANGUAGE_PASHTO
 
2508 LANGUAGE_POLISH 
= _gdi_
.LANGUAGE_POLISH
 
2509 LANGUAGE_PORTUGUESE 
= _gdi_
.LANGUAGE_PORTUGUESE
 
2510 LANGUAGE_PORTUGUESE_BRAZILIAN 
= _gdi_
.LANGUAGE_PORTUGUESE_BRAZILIAN
 
2511 LANGUAGE_PUNJABI 
= _gdi_
.LANGUAGE_PUNJABI
 
2512 LANGUAGE_QUECHUA 
= _gdi_
.LANGUAGE_QUECHUA
 
2513 LANGUAGE_RHAETO_ROMANCE 
= _gdi_
.LANGUAGE_RHAETO_ROMANCE
 
2514 LANGUAGE_ROMANIAN 
= _gdi_
.LANGUAGE_ROMANIAN
 
2515 LANGUAGE_RUSSIAN 
= _gdi_
.LANGUAGE_RUSSIAN
 
2516 LANGUAGE_RUSSIAN_UKRAINE 
= _gdi_
.LANGUAGE_RUSSIAN_UKRAINE
 
2517 LANGUAGE_SAMOAN 
= _gdi_
.LANGUAGE_SAMOAN
 
2518 LANGUAGE_SANGHO 
= _gdi_
.LANGUAGE_SANGHO
 
2519 LANGUAGE_SANSKRIT 
= _gdi_
.LANGUAGE_SANSKRIT
 
2520 LANGUAGE_SCOTS_GAELIC 
= _gdi_
.LANGUAGE_SCOTS_GAELIC
 
2521 LANGUAGE_SERBIAN 
= _gdi_
.LANGUAGE_SERBIAN
 
2522 LANGUAGE_SERBIAN_CYRILLIC 
= _gdi_
.LANGUAGE_SERBIAN_CYRILLIC
 
2523 LANGUAGE_SERBIAN_LATIN 
= _gdi_
.LANGUAGE_SERBIAN_LATIN
 
2524 LANGUAGE_SERBO_CROATIAN 
= _gdi_
.LANGUAGE_SERBO_CROATIAN
 
2525 LANGUAGE_SESOTHO 
= _gdi_
.LANGUAGE_SESOTHO
 
2526 LANGUAGE_SETSWANA 
= _gdi_
.LANGUAGE_SETSWANA
 
2527 LANGUAGE_SHONA 
= _gdi_
.LANGUAGE_SHONA
 
2528 LANGUAGE_SINDHI 
= _gdi_
.LANGUAGE_SINDHI
 
2529 LANGUAGE_SINHALESE 
= _gdi_
.LANGUAGE_SINHALESE
 
2530 LANGUAGE_SISWATI 
= _gdi_
.LANGUAGE_SISWATI
 
2531 LANGUAGE_SLOVAK 
= _gdi_
.LANGUAGE_SLOVAK
 
2532 LANGUAGE_SLOVENIAN 
= _gdi_
.LANGUAGE_SLOVENIAN
 
2533 LANGUAGE_SOMALI 
= _gdi_
.LANGUAGE_SOMALI
 
2534 LANGUAGE_SPANISH 
= _gdi_
.LANGUAGE_SPANISH
 
2535 LANGUAGE_SPANISH_ARGENTINA 
= _gdi_
.LANGUAGE_SPANISH_ARGENTINA
 
2536 LANGUAGE_SPANISH_BOLIVIA 
= _gdi_
.LANGUAGE_SPANISH_BOLIVIA
 
2537 LANGUAGE_SPANISH_CHILE 
= _gdi_
.LANGUAGE_SPANISH_CHILE
 
2538 LANGUAGE_SPANISH_COLOMBIA 
= _gdi_
.LANGUAGE_SPANISH_COLOMBIA
 
2539 LANGUAGE_SPANISH_COSTA_RICA 
= _gdi_
.LANGUAGE_SPANISH_COSTA_RICA
 
2540 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC 
= _gdi_
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
 
2541 LANGUAGE_SPANISH_ECUADOR 
= _gdi_
.LANGUAGE_SPANISH_ECUADOR
 
2542 LANGUAGE_SPANISH_EL_SALVADOR 
= _gdi_
.LANGUAGE_SPANISH_EL_SALVADOR
 
2543 LANGUAGE_SPANISH_GUATEMALA 
= _gdi_
.LANGUAGE_SPANISH_GUATEMALA
 
2544 LANGUAGE_SPANISH_HONDURAS 
= _gdi_
.LANGUAGE_SPANISH_HONDURAS
 
2545 LANGUAGE_SPANISH_MEXICAN 
= _gdi_
.LANGUAGE_SPANISH_MEXICAN
 
2546 LANGUAGE_SPANISH_MODERN 
= _gdi_
.LANGUAGE_SPANISH_MODERN
 
2547 LANGUAGE_SPANISH_NICARAGUA 
= _gdi_
.LANGUAGE_SPANISH_NICARAGUA
 
2548 LANGUAGE_SPANISH_PANAMA 
= _gdi_
.LANGUAGE_SPANISH_PANAMA
 
2549 LANGUAGE_SPANISH_PARAGUAY 
= _gdi_
.LANGUAGE_SPANISH_PARAGUAY
 
2550 LANGUAGE_SPANISH_PERU 
= _gdi_
.LANGUAGE_SPANISH_PERU
 
2551 LANGUAGE_SPANISH_PUERTO_RICO 
= _gdi_
.LANGUAGE_SPANISH_PUERTO_RICO
 
2552 LANGUAGE_SPANISH_URUGUAY 
= _gdi_
.LANGUAGE_SPANISH_URUGUAY
 
2553 LANGUAGE_SPANISH_US 
= _gdi_
.LANGUAGE_SPANISH_US
 
2554 LANGUAGE_SPANISH_VENEZUELA 
= _gdi_
.LANGUAGE_SPANISH_VENEZUELA
 
2555 LANGUAGE_SUNDANESE 
= _gdi_
.LANGUAGE_SUNDANESE
 
2556 LANGUAGE_SWAHILI 
= _gdi_
.LANGUAGE_SWAHILI
 
2557 LANGUAGE_SWEDISH 
= _gdi_
.LANGUAGE_SWEDISH
 
2558 LANGUAGE_SWEDISH_FINLAND 
= _gdi_
.LANGUAGE_SWEDISH_FINLAND
 
2559 LANGUAGE_TAGALOG 
= _gdi_
.LANGUAGE_TAGALOG
 
2560 LANGUAGE_TAJIK 
= _gdi_
.LANGUAGE_TAJIK
 
2561 LANGUAGE_TAMIL 
= _gdi_
.LANGUAGE_TAMIL
 
2562 LANGUAGE_TATAR 
= _gdi_
.LANGUAGE_TATAR
 
2563 LANGUAGE_TELUGU 
= _gdi_
.LANGUAGE_TELUGU
 
2564 LANGUAGE_THAI 
= _gdi_
.LANGUAGE_THAI
 
2565 LANGUAGE_TIBETAN 
= _gdi_
.LANGUAGE_TIBETAN
 
2566 LANGUAGE_TIGRINYA 
= _gdi_
.LANGUAGE_TIGRINYA
 
2567 LANGUAGE_TONGA 
= _gdi_
.LANGUAGE_TONGA
 
2568 LANGUAGE_TSONGA 
= _gdi_
.LANGUAGE_TSONGA
 
2569 LANGUAGE_TURKISH 
= _gdi_
.LANGUAGE_TURKISH
 
2570 LANGUAGE_TURKMEN 
= _gdi_
.LANGUAGE_TURKMEN
 
2571 LANGUAGE_TWI 
= _gdi_
.LANGUAGE_TWI
 
2572 LANGUAGE_UIGHUR 
= _gdi_
.LANGUAGE_UIGHUR
 
2573 LANGUAGE_UKRAINIAN 
= _gdi_
.LANGUAGE_UKRAINIAN
 
2574 LANGUAGE_URDU 
= _gdi_
.LANGUAGE_URDU
 
2575 LANGUAGE_URDU_INDIA 
= _gdi_
.LANGUAGE_URDU_INDIA
 
2576 LANGUAGE_URDU_PAKISTAN 
= _gdi_
.LANGUAGE_URDU_PAKISTAN
 
2577 LANGUAGE_UZBEK 
= _gdi_
.LANGUAGE_UZBEK
 
2578 LANGUAGE_UZBEK_CYRILLIC 
= _gdi_
.LANGUAGE_UZBEK_CYRILLIC
 
2579 LANGUAGE_UZBEK_LATIN 
= _gdi_
.LANGUAGE_UZBEK_LATIN
 
2580 LANGUAGE_VIETNAMESE 
= _gdi_
.LANGUAGE_VIETNAMESE
 
2581 LANGUAGE_VOLAPUK 
= _gdi_
.LANGUAGE_VOLAPUK
 
2582 LANGUAGE_WELSH 
= _gdi_
.LANGUAGE_WELSH
 
2583 LANGUAGE_WOLOF 
= _gdi_
.LANGUAGE_WOLOF
 
2584 LANGUAGE_XHOSA 
= _gdi_
.LANGUAGE_XHOSA
 
2585 LANGUAGE_YIDDISH 
= _gdi_
.LANGUAGE_YIDDISH
 
2586 LANGUAGE_YORUBA 
= _gdi_
.LANGUAGE_YORUBA
 
2587 LANGUAGE_ZHUANG 
= _gdi_
.LANGUAGE_ZHUANG
 
2588 LANGUAGE_ZULU 
= _gdi_
.LANGUAGE_ZULU
 
2589 LANGUAGE_USER_DEFINED 
= _gdi_
.LANGUAGE_USER_DEFINED
 
2590 class LanguageInfo(object): 
2591     """Proxy of C++ LanguageInfo class""" 
2592     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
2593     def __init__(self
): raise AttributeError, "No constructor defined" 
2594     __repr__ 
= _swig_repr
 
2595     Language 
= property(_gdi_
.LanguageInfo_Language_get
, _gdi_
.LanguageInfo_Language_set
) 
2596     CanonicalName 
= property(_gdi_
.LanguageInfo_CanonicalName_get
, _gdi_
.LanguageInfo_CanonicalName_set
) 
2597     Description 
= property(_gdi_
.LanguageInfo_Description_get
, _gdi_
.LanguageInfo_Description_set
) 
2598 _gdi_
.LanguageInfo_swigregister(LanguageInfo
) 
2600 LOCALE_CAT_NUMBER 
= _gdi_
.LOCALE_CAT_NUMBER
 
2601 LOCALE_CAT_DATE 
= _gdi_
.LOCALE_CAT_DATE
 
2602 LOCALE_CAT_MONEY 
= _gdi_
.LOCALE_CAT_MONEY
 
2603 LOCALE_CAT_MAX 
= _gdi_
.LOCALE_CAT_MAX
 
2604 LOCALE_THOUSANDS_SEP 
= _gdi_
.LOCALE_THOUSANDS_SEP
 
2605 LOCALE_DECIMAL_POINT 
= _gdi_
.LOCALE_DECIMAL_POINT
 
2606 LOCALE_LOAD_DEFAULT 
= _gdi_
.LOCALE_LOAD_DEFAULT
 
2607 LOCALE_CONV_ENCODING 
= _gdi_
.LOCALE_CONV_ENCODING
 
2608 class Locale(object): 
2609     """Proxy of C++ Locale class""" 
2610     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
2611     __repr__ 
= _swig_repr
 
2612     def __init__(self
, *args
, **kwargs
):  
2613         """__init__(self, int language=-1, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale""" 
2614         _gdi_
.Locale_swiginit(self
,_gdi_
.new_Locale(*args
, **kwargs
)) 
2615     __swig_destroy__ 
= _gdi_
.delete_Locale
 
2616     __del__ 
= lambda self 
: None; 
2617     def Init1(*args
, **kwargs
): 
2619         Init1(self, String szName, String szShort=EmptyString, String szLocale=EmptyString,  
2620             bool bLoadDefault=True,  
2621             bool bConvertEncoding=False) -> bool 
2623         return _gdi_
.Locale_Init1(*args
, **kwargs
) 
2625     def Init2(*args
, **kwargs
): 
2626         """Init2(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool""" 
2627         return _gdi_
.Locale_Init2(*args
, **kwargs
) 
2629     def Init(self
, *_args
, **_kwargs
): 
2630         if type(_args
[0]) in [type(''), type(u
'')]: 
2631             val 
= self
.Init1(*_args
, **_kwargs
) 
2633             val 
= self
.Init2(*_args
, **_kwargs
) 
2636     def GetSystemLanguage(*args
, **kwargs
): 
2637         """GetSystemLanguage() -> int""" 
2638         return _gdi_
.Locale_GetSystemLanguage(*args
, **kwargs
) 
2640     GetSystemLanguage 
= staticmethod(GetSystemLanguage
) 
2641     def GetSystemEncoding(*args
, **kwargs
): 
2642         """GetSystemEncoding() -> int""" 
2643         return _gdi_
.Locale_GetSystemEncoding(*args
, **kwargs
) 
2645     GetSystemEncoding 
= staticmethod(GetSystemEncoding
) 
2646     def GetSystemEncodingName(*args
, **kwargs
): 
2647         """GetSystemEncodingName() -> String""" 
2648         return _gdi_
.Locale_GetSystemEncodingName(*args
, **kwargs
) 
2650     GetSystemEncodingName 
= staticmethod(GetSystemEncodingName
) 
2651     def IsOk(*args
, **kwargs
): 
2652         """IsOk(self) -> bool""" 
2653         return _gdi_
.Locale_IsOk(*args
, **kwargs
) 
2655     def __nonzero__(self
): return self
.IsOk()  
2656     def GetLocale(*args
, **kwargs
): 
2657         """GetLocale(self) -> String""" 
2658         return _gdi_
.Locale_GetLocale(*args
, **kwargs
) 
2660     def GetLanguage(*args
, **kwargs
): 
2661         """GetLanguage(self) -> int""" 
2662         return _gdi_
.Locale_GetLanguage(*args
, **kwargs
) 
2664     def GetSysName(*args
, **kwargs
): 
2665         """GetSysName(self) -> String""" 
2666         return _gdi_
.Locale_GetSysName(*args
, **kwargs
) 
2668     def GetCanonicalName(*args
, **kwargs
): 
2669         """GetCanonicalName(self) -> String""" 
2670         return _gdi_
.Locale_GetCanonicalName(*args
, **kwargs
) 
2672     def AddCatalogLookupPathPrefix(*args
, **kwargs
): 
2673         """AddCatalogLookupPathPrefix(String prefix)""" 
2674         return _gdi_
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
) 
2676     AddCatalogLookupPathPrefix 
= staticmethod(AddCatalogLookupPathPrefix
) 
2677     def AddCatalog(*args
, **kwargs
): 
2678         """AddCatalog(self, String szDomain) -> bool""" 
2679         return _gdi_
.Locale_AddCatalog(*args
, **kwargs
) 
2681     def IsAvailable(*args
, **kwargs
): 
2682         """IsAvailable(int lang) -> bool""" 
2683         return _gdi_
.Locale_IsAvailable(*args
, **kwargs
) 
2685     IsAvailable 
= staticmethod(IsAvailable
) 
2686     def IsLoaded(*args
, **kwargs
): 
2687         """IsLoaded(self, String szDomain) -> bool""" 
2688         return _gdi_
.Locale_IsLoaded(*args
, **kwargs
) 
2690     def GetLanguageInfo(*args
, **kwargs
): 
2691         """GetLanguageInfo(int lang) -> LanguageInfo""" 
2692         return _gdi_
.Locale_GetLanguageInfo(*args
, **kwargs
) 
2694     GetLanguageInfo 
= staticmethod(GetLanguageInfo
) 
2695     def GetLanguageName(*args
, **kwargs
): 
2696         """GetLanguageName(int lang) -> String""" 
2697         return _gdi_
.Locale_GetLanguageName(*args
, **kwargs
) 
2699     GetLanguageName 
= staticmethod(GetLanguageName
) 
2700     def FindLanguageInfo(*args
, **kwargs
): 
2701         """FindLanguageInfo(String locale) -> LanguageInfo""" 
2702         return _gdi_
.Locale_FindLanguageInfo(*args
, **kwargs
) 
2704     FindLanguageInfo 
= staticmethod(FindLanguageInfo
) 
2705     def AddLanguage(*args
, **kwargs
): 
2706         """AddLanguage(LanguageInfo info)""" 
2707         return _gdi_
.Locale_AddLanguage(*args
, **kwargs
) 
2709     AddLanguage 
= staticmethod(AddLanguage
) 
2710     def GetString(*args
, **kwargs
): 
2711         """GetString(self, String szOrigString, String szDomain=EmptyString) -> String""" 
2712         return _gdi_
.Locale_GetString(*args
, **kwargs
) 
2714     def GetName(*args
, **kwargs
): 
2715         """GetName(self) -> String""" 
2716         return _gdi_
.Locale_GetName(*args
, **kwargs
) 
2718     CanonicalName 
= property(GetCanonicalName
,doc
="See `GetCanonicalName`")  
2719     Language 
= property(GetLanguage
,doc
="See `GetLanguage`")  
2720     Locale 
= property(GetLocale
,doc
="See `GetLocale`")  
2721     Name 
= property(GetName
,doc
="See `GetName`")  
2722     String 
= property(GetString
,doc
="See `GetString`")  
2723     SysName 
= property(GetSysName
,doc
="See `GetSysName`")  
2724 _gdi_
.Locale_swigregister(Locale
) 
2726 def Locale_GetSystemLanguage(*args
): 
2727   """Locale_GetSystemLanguage() -> int""" 
2728   return _gdi_
.Locale_GetSystemLanguage(*args
) 
2730 def Locale_GetSystemEncoding(*args
): 
2731   """Locale_GetSystemEncoding() -> int""" 
2732   return _gdi_
.Locale_GetSystemEncoding(*args
) 
2734 def Locale_GetSystemEncodingName(*args
): 
2735   """Locale_GetSystemEncodingName() -> String""" 
2736   return _gdi_
.Locale_GetSystemEncodingName(*args
) 
2738 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
): 
2739   """Locale_AddCatalogLookupPathPrefix(String prefix)""" 
2740   return _gdi_
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
) 
2742 def Locale_IsAvailable(*args
, **kwargs
): 
2743   """Locale_IsAvailable(int lang) -> bool""" 
2744   return _gdi_
.Locale_IsAvailable(*args
, **kwargs
) 
2746 def Locale_GetLanguageInfo(*args
, **kwargs
): 
2747   """Locale_GetLanguageInfo(int lang) -> LanguageInfo""" 
2748   return _gdi_
.Locale_GetLanguageInfo(*args
, **kwargs
) 
2750 def Locale_GetLanguageName(*args
, **kwargs
): 
2751   """Locale_GetLanguageName(int lang) -> String""" 
2752   return _gdi_
.Locale_GetLanguageName(*args
, **kwargs
) 
2754 def Locale_FindLanguageInfo(*args
, **kwargs
): 
2755   """Locale_FindLanguageInfo(String locale) -> LanguageInfo""" 
2756   return _gdi_
.Locale_FindLanguageInfo(*args
, **kwargs
) 
2758 def Locale_AddLanguage(*args
, **kwargs
): 
2759   """Locale_AddLanguage(LanguageInfo info)""" 
2760   return _gdi_
.Locale_AddLanguage(*args
, **kwargs
) 
2762 class PyLocale(Locale
): 
2763     """Proxy of C++ PyLocale class""" 
2764     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
2765     __repr__ 
= _swig_repr
 
2766     def __init__(self
, *args
, **kwargs
):  
2767         """__init__(self, int language=-1, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> PyLocale""" 
2768         _gdi_
.PyLocale_swiginit(self
,_gdi_
.new_PyLocale(*args
, **kwargs
)) 
2769         self
._setCallbackInfo
(self
, PyLocale
) 
2771     __swig_destroy__ 
= _gdi_
.delete_PyLocale
 
2772     __del__ 
= lambda self 
: None; 
2773     def _setCallbackInfo(*args
, **kwargs
): 
2774         """_setCallbackInfo(self, PyObject self, PyObject _class)""" 
2775         return _gdi_
.PyLocale__setCallbackInfo(*args
, **kwargs
) 
2777     def GetSingularString(*args
, **kwargs
): 
2778         """GetSingularString(self, wxChar szOrigString, wxChar szDomain=None) -> wxChar""" 
2779         return _gdi_
.PyLocale_GetSingularString(*args
, **kwargs
) 
2781     def GetPluralString(*args
, **kwargs
): 
2783         GetPluralString(self, wxChar szOrigString, wxChar szOrigString2, size_t n,  
2784             wxChar szDomain=None) -> wxChar 
2786         return _gdi_
.PyLocale_GetPluralString(*args
, **kwargs
) 
2788 _gdi_
.PyLocale_swigregister(PyLocale
) 
2791 def GetLocale(*args
): 
2792   """GetLocale() -> Locale""" 
2793   return _gdi_
.GetLocale(*args
) 
2794 #--------------------------------------------------------------------------- 
2796 CONVERT_STRICT 
= _gdi_
.CONVERT_STRICT
 
2797 CONVERT_SUBSTITUTE 
= _gdi_
.CONVERT_SUBSTITUTE
 
2798 PLATFORM_CURRENT 
= _gdi_
.PLATFORM_CURRENT
 
2799 PLATFORM_UNIX 
= _gdi_
.PLATFORM_UNIX
 
2800 PLATFORM_WINDOWS 
= _gdi_
.PLATFORM_WINDOWS
 
2801 PLATFORM_OS2 
= _gdi_
.PLATFORM_OS2
 
2802 PLATFORM_MAC 
= _gdi_
.PLATFORM_MAC
 
2803 class EncodingConverter(_core
.Object
): 
2804     """Proxy of C++ EncodingConverter class""" 
2805     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
2806     __repr__ 
= _swig_repr
 
2807     def __init__(self
, *args
, **kwargs
):  
2808         """__init__(self) -> EncodingConverter""" 
2809         _gdi_
.EncodingConverter_swiginit(self
,_gdi_
.new_EncodingConverter(*args
, **kwargs
)) 
2810     __swig_destroy__ 
= _gdi_
.delete_EncodingConverter
 
2811     __del__ 
= lambda self 
: None; 
2812     def Init(*args
, **kwargs
): 
2813         """Init(self, int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool""" 
2814         return _gdi_
.EncodingConverter_Init(*args
, **kwargs
) 
2816     def Convert(*args
, **kwargs
): 
2817         """Convert(self, String input) -> String""" 
2818         return _gdi_
.EncodingConverter_Convert(*args
, **kwargs
) 
2820     def GetPlatformEquivalents(*args
, **kwargs
): 
2821         """GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray""" 
2822         return _gdi_
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
) 
2824     GetPlatformEquivalents 
= staticmethod(GetPlatformEquivalents
) 
2825     def GetAllEquivalents(*args
, **kwargs
): 
2826         """GetAllEquivalents(int enc) -> wxFontEncodingArray""" 
2827         return _gdi_
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
) 
2829     GetAllEquivalents 
= staticmethod(GetAllEquivalents
) 
2830     def CanConvert(*args
, **kwargs
): 
2831         """CanConvert(int encIn, int encOut) -> bool""" 
2832         return _gdi_
.EncodingConverter_CanConvert(*args
, **kwargs
) 
2834     CanConvert 
= staticmethod(CanConvert
) 
2835     def __nonzero__(self
): return self
.IsOk()  
2836 _gdi_
.EncodingConverter_swigregister(EncodingConverter
) 
2838 def GetTranslation(*args
): 
2840     GetTranslation(String str) -> String 
2841     GetTranslation(String str, String domain) -> String 
2842     GetTranslation(String str, String strPlural, size_t n) -> String 
2843     GetTranslation(String str, String strPlural, size_t n, String domain) -> String 
2845   return _gdi_
.GetTranslation(*args
) 
2847 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
): 
2848   """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray""" 
2849   return _gdi_
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
) 
2851 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
): 
2852   """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray""" 
2853   return _gdi_
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
) 
2855 def EncodingConverter_CanConvert(*args
, **kwargs
): 
2856   """EncodingConverter_CanConvert(int encIn, int encOut) -> bool""" 
2857   return _gdi_
.EncodingConverter_CanConvert(*args
, **kwargs
) 
2859 #---------------------------------------------------------------------------- 
2860 # On MSW add the directory where the wxWidgets catalogs were installed 
2861 # to the default catalog path. 
2862 if wx
.Platform 
== "__WXMSW__": 
2864     _localedir 
= os
.path
.join(os
.path
.split(__file__
)[0], "locale") 
2865     Locale
.AddCatalogLookupPathPrefix(_localedir
) 
2868 #---------------------------------------------------------------------------- 
2870 #--------------------------------------------------------------------------- 
2872 class DC(_core
.Object
): 
2874     A wx.DC is a device context onto which graphics and text can be 
2875     drawn. It is intended to represent a number of output devices in a 
2876     generic way, so a window can have a device context associated with it, 
2877     and a printer also has a device context. In this way, the same piece 
2878     of code may write to a number of different devices, if the device 
2879     context is used as a parameter. 
2881     Derived types of wxDC have documentation for specific features only, 
2882     so refer to this section for most device context information. 
2884     The wx.DC class is abstract and can not be instantiated, you must use 
2885     one of the derived classes instead.  Which one will depend on the 
2886     situation in which it is used. 
2888     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
2889     def __init__(self
): raise AttributeError, "No constructor defined" 
2890     __repr__ 
= _swig_repr
 
2891     __swig_destroy__ 
= _gdi_
.delete_DC
 
2892     __del__ 
= lambda self 
: None; 
2893     # These have been deprecated in wxWidgets.  Since they never 
2894     # really did anything to begin with, just make them be NOPs. 
2895     def BeginDrawing(self
):  pass 
2896     def EndDrawing(self
):  pass 
2898     def FloodFill(*args
, **kwargs
): 
2900         FloodFill(self, int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool 
2902         Flood fills the device context starting from the given point, using 
2903         the current brush colour, and using a style: 
2905             - **wxFLOOD_SURFACE**: the flooding occurs until a colour other than 
2906               the given colour is encountered. 
2908             - **wxFLOOD_BORDER**: the area to be flooded is bounded by the given 
2911         Returns False if the operation failed. 
2913         Note: The present implementation for non-Windows platforms may fail to 
2914         find colour borders if the pixels do not match the colour 
2915         exactly. However the function will still return true. 
2917         return _gdi_
.DC_FloodFill(*args
, **kwargs
) 
2919     def FloodFillPoint(*args
, **kwargs
): 
2921         FloodFillPoint(self, Point pt, Colour col, int style=FLOOD_SURFACE) -> bool 
2923         Flood fills the device context starting from the given point, using 
2924         the current brush colour, and using a style: 
2926             - **wxFLOOD_SURFACE**: the flooding occurs until a colour other than 
2927               the given colour is encountered. 
2929             - **wxFLOOD_BORDER**: the area to be flooded is bounded by the given 
2932         Returns False if the operation failed. 
2934         Note: The present implementation for non-Windows platforms may fail to 
2935         find colour borders if the pixels do not match the colour 
2936         exactly. However the function will still return true. 
2938         return _gdi_
.DC_FloodFillPoint(*args
, **kwargs
) 
2940     def GradientFillConcentric(*args
, **kwargs
): 
2942         GradientFillConcentric(self, Rect rect, Colour initialColour, Colour destColour,  
2945         Fill the area specified by rect with a radial gradient, starting from 
2946         initialColour in the center of the circle and fading to destColour on 
2947         the outside of the circle.  The circleCenter argument is the relative 
2948         coordinants of the center of the circle in the specified rect. 
2950         Note: Currently this function is very slow, don't use it for real-time 
2953         return _gdi_
.DC_GradientFillConcentric(*args
, **kwargs
) 
2955     def GradientFillLinear(*args
, **kwargs
): 
2957         GradientFillLinear(self, Rect rect, Colour initialColour, Colour destColour,  
2958             int nDirection=EAST) 
2960         Fill the area specified by rect with a linear gradient, starting from 
2961         initialColour and eventually fading to destColour. The nDirection 
2962         parameter specifies the direction of the colour change, default is to 
2963         use initialColour on the left part of the rectangle and destColour on 
2966         return _gdi_
.DC_GradientFillLinear(*args
, **kwargs
) 
2968     def GetPixel(*args
, **kwargs
): 
2970         GetPixel(self, int x, int y) -> Colour 
2972         Gets the colour at the specified location on the DC. 
2974         return _gdi_
.DC_GetPixel(*args
, **kwargs
) 
2976     def GetPixelPoint(*args
, **kwargs
): 
2977         """GetPixelPoint(self, Point pt) -> Colour""" 
2978         return _gdi_
.DC_GetPixelPoint(*args
, **kwargs
) 
2980     def DrawLine(*args
, **kwargs
): 
2982         DrawLine(self, int x1, int y1, int x2, int y2) 
2984         Draws a line from the first point to the second. The current pen is 
2985         used for drawing the line. Note that the second point is *not* part of 
2986         the line and is not drawn by this function (this is consistent with 
2987         the behaviour of many other toolkits). 
2989         return _gdi_
.DC_DrawLine(*args
, **kwargs
) 
2991     def DrawLinePoint(*args
, **kwargs
): 
2993         DrawLinePoint(self, Point pt1, Point pt2) 
2995         Draws a line from the first point to the second. The current pen is 
2996         used for drawing the line. Note that the second point is *not* part of 
2997         the line and is not drawn by this function (this is consistent with 
2998         the behaviour of many other toolkits). 
3000         return _gdi_
.DC_DrawLinePoint(*args
, **kwargs
) 
3002     def CrossHair(*args
, **kwargs
): 
3004         CrossHair(self, int x, int y) 
3006         Displays a cross hair using the current pen. This is a vertical and 
3007         horizontal line the height and width of the window, centred on the 
3010         return _gdi_
.DC_CrossHair(*args
, **kwargs
) 
3012     def CrossHairPoint(*args
, **kwargs
): 
3014         CrossHairPoint(self, Point pt) 
3016         Displays a cross hair using the current pen. This is a vertical and 
3017         horizontal line the height and width of the window, centred on the 
3020         return _gdi_
.DC_CrossHairPoint(*args
, **kwargs
) 
3022     def DrawArc(*args
, **kwargs
): 
3024         DrawArc(self, int x1, int y1, int x2, int y2, int xc, int yc) 
3026         Draws an arc of a circle, centred on the *center* point (xc, yc), from 
3027         the first point to the second. The current pen is used for the outline 
3028         and the current brush for filling the shape. 
3030         The arc is drawn in an anticlockwise direction from the start point to 
3033         return _gdi_
.DC_DrawArc(*args
, **kwargs
) 
3035     def DrawArcPoint(*args
, **kwargs
): 
3037         DrawArcPoint(self, Point pt1, Point pt2, Point center) 
3039         Draws an arc of a circle, centred on the *center* point (xc, yc), from 
3040         the first point to the second. The current pen is used for the outline 
3041         and the current brush for filling the shape. 
3043         The arc is drawn in an anticlockwise direction from the start point to 
3046         return _gdi_
.DC_DrawArcPoint(*args
, **kwargs
) 
3048     def DrawCheckMark(*args
, **kwargs
): 
3050         DrawCheckMark(self, int x, int y, int width, int height) 
3052         Draws a check mark inside the given rectangle. 
3054         return _gdi_
.DC_DrawCheckMark(*args
, **kwargs
) 
3056     def DrawCheckMarkRect(*args
, **kwargs
): 
3058         DrawCheckMarkRect(self, Rect rect) 
3060         Draws a check mark inside the given rectangle. 
3062         return _gdi_
.DC_DrawCheckMarkRect(*args
, **kwargs
) 
3064     def DrawEllipticArc(*args
, **kwargs
): 
3066         DrawEllipticArc(self, int x, int y, int w, int h, double start, double end) 
3068         Draws an arc of an ellipse, with the given rectangle defining the 
3069         bounds of the ellipse. The current pen is used for drawing the arc and 
3070         the current brush is used for drawing the pie. 
3072         The *start* and *end* parameters specify the start and end of the arc 
3073         relative to the three-o'clock position from the center of the 
3074         rectangle. Angles are specified in degrees (360 is a complete 
3075         circle). Positive values mean counter-clockwise motion. If start is 
3076         equal to end, a complete ellipse will be drawn. 
3078         return _gdi_
.DC_DrawEllipticArc(*args
, **kwargs
) 
3080     def DrawEllipticArcPointSize(*args
, **kwargs
): 
3082         DrawEllipticArcPointSize(self, Point pt, Size sz, double start, double end) 
3084         Draws an arc of an ellipse, with the given rectangle defining the 
3085         bounds of the ellipse. The current pen is used for drawing the arc and 
3086         the current brush is used for drawing the pie. 
3088         The *start* and *end* parameters specify the start and end of the arc 
3089         relative to the three-o'clock position from the center of the 
3090         rectangle. Angles are specified in degrees (360 is a complete 
3091         circle). Positive values mean counter-clockwise motion. If start is 
3092         equal to end, a complete ellipse will be drawn. 
3094         return _gdi_
.DC_DrawEllipticArcPointSize(*args
, **kwargs
) 
3096     def DrawPoint(*args
, **kwargs
): 
3098         DrawPoint(self, int x, int y) 
3100         Draws a point using the current pen. 
3102         return _gdi_
.DC_DrawPoint(*args
, **kwargs
) 
3104     def DrawPointPoint(*args
, **kwargs
): 
3106         DrawPointPoint(self, Point pt) 
3108         Draws a point using the current pen. 
3110         return _gdi_
.DC_DrawPointPoint(*args
, **kwargs
) 
3112     def DrawRectangle(*args
, **kwargs
): 
3114         DrawRectangle(self, int x, int y, int width, int height) 
3116         Draws a rectangle with the given top left corner, and with the given 
3117         size. The current pen is used for the outline and the current brush 
3118         for filling the shape. 
3120         return _gdi_
.DC_DrawRectangle(*args
, **kwargs
) 
3122     def DrawRectangleRect(*args
, **kwargs
): 
3124         DrawRectangleRect(self, Rect rect) 
3126         Draws a rectangle with the given top left corner, and with the given 
3127         size. The current pen is used for the outline and the current brush 
3128         for filling the shape. 
3130         return _gdi_
.DC_DrawRectangleRect(*args
, **kwargs
) 
3132     def DrawRectanglePointSize(*args
, **kwargs
): 
3134         DrawRectanglePointSize(self, Point pt, Size sz) 
3136         Draws a rectangle with the given top left corner, and with the given 
3137         size. The current pen is used for the outline and the current brush 
3138         for filling the shape. 
3140         return _gdi_
.DC_DrawRectanglePointSize(*args
, **kwargs
) 
3142     def DrawRoundedRectangle(*args
, **kwargs
): 
3144         DrawRoundedRectangle(self, int x, int y, int width, int height, double radius) 
3146         Draws a rectangle with the given top left corner, and with the given 
3147         size. The corners are quarter-circles using the given radius. The 
3148         current pen is used for the outline and the current brush for filling 
3151         If radius is positive, the value is assumed to be the radius of the 
3152         rounded corner. If radius is negative, the absolute value is assumed 
3153         to be the proportion of the smallest dimension of the rectangle. This 
3154         means that the corner can be a sensible size relative to the size of 
3155         the rectangle, and also avoids the strange effects X produces when the 
3156         corners are too big for the rectangle. 
3158         return _gdi_
.DC_DrawRoundedRectangle(*args
, **kwargs
) 
3160     def DrawRoundedRectangleRect(*args
, **kwargs
): 
3162         DrawRoundedRectangleRect(self, Rect r, double radius) 
3164         Draws a rectangle with the given top left corner, and with the given 
3165         size. The corners are quarter-circles using the given radius. The 
3166         current pen is used for the outline and the current brush for filling 
3169         If radius is positive, the value is assumed to be the radius of the 
3170         rounded corner. If radius is negative, the absolute value is assumed 
3171         to be the proportion of the smallest dimension of the rectangle. This 
3172         means that the corner can be a sensible size relative to the size of 
3173         the rectangle, and also avoids the strange effects X produces when the 
3174         corners are too big for the rectangle. 
3176         return _gdi_
.DC_DrawRoundedRectangleRect(*args
, **kwargs
) 
3178     def DrawRoundedRectanglePointSize(*args
, **kwargs
): 
3180         DrawRoundedRectanglePointSize(self, Point pt, Size sz, double radius) 
3182         Draws a rectangle with the given top left corner, and with the given 
3183         size. The corners are quarter-circles using the given radius. The 
3184         current pen is used for the outline and the current brush for filling 
3187         If radius is positive, the value is assumed to be the radius of the 
3188         rounded corner. If radius is negative, the absolute value is assumed 
3189         to be the proportion of the smallest dimension of the rectangle. This 
3190         means that the corner can be a sensible size relative to the size of 
3191         the rectangle, and also avoids the strange effects X produces when the 
3192         corners are too big for the rectangle. 
3194         return _gdi_
.DC_DrawRoundedRectanglePointSize(*args
, **kwargs
) 
3196     def DrawCircle(*args
, **kwargs
): 
3198         DrawCircle(self, int x, int y, int radius) 
3200         Draws a circle with the given center point and radius.  The current 
3201         pen is used for the outline and the current brush for filling the 
3204         return _gdi_
.DC_DrawCircle(*args
, **kwargs
) 
3206     def DrawCirclePoint(*args
, **kwargs
): 
3208         DrawCirclePoint(self, Point pt, int radius) 
3210         Draws a circle with the given center point and radius.  The current 
3211         pen is used for the outline and the current brush for filling the 
3214         return _gdi_
.DC_DrawCirclePoint(*args
, **kwargs
) 
3216     def DrawEllipse(*args
, **kwargs
): 
3218         DrawEllipse(self, int x, int y, int width, int height) 
3220         Draws an ellipse contained in the specified rectangle. The current pen 
3221         is used for the outline and the current brush for filling the shape. 
3223         return _gdi_
.DC_DrawEllipse(*args
, **kwargs
) 
3225     def DrawEllipseRect(*args
, **kwargs
): 
3227         DrawEllipseRect(self, Rect rect) 
3229         Draws an ellipse contained in the specified rectangle. The current pen 
3230         is used for the outline and the current brush for filling the shape. 
3232         return _gdi_
.DC_DrawEllipseRect(*args
, **kwargs
) 
3234     def DrawEllipsePointSize(*args
, **kwargs
): 
3236         DrawEllipsePointSize(self, Point pt, Size sz) 
3238         Draws an ellipse contained in the specified rectangle. The current pen 
3239         is used for the outline and the current brush for filling the shape. 
3241         return _gdi_
.DC_DrawEllipsePointSize(*args
, **kwargs
) 
3243     def DrawIcon(*args
, **kwargs
): 
3245         DrawIcon(self, Icon icon, int x, int y) 
3247         Draw an icon on the display (does nothing if the device context is 
3248         PostScript). This can be the simplest way of drawing bitmaps on a 
3251         return _gdi_
.DC_DrawIcon(*args
, **kwargs
) 
3253     def DrawIconPoint(*args
, **kwargs
): 
3255         DrawIconPoint(self, Icon icon, Point pt) 
3257         Draw an icon on the display (does nothing if the device context is 
3258         PostScript). This can be the simplest way of drawing bitmaps on a 
3261         return _gdi_
.DC_DrawIconPoint(*args
, **kwargs
) 
3263     def DrawBitmap(*args
, **kwargs
): 
3265         DrawBitmap(self, Bitmap bmp, int x, int y, bool useMask=False) 
3267         Draw a bitmap on the device context at the specified point. If 
3268         *transparent* is true and the bitmap has a transparency mask, (or 
3269         alpha channel on the platforms that support it) then the bitmap will 
3270         be drawn transparently. 
3272         return _gdi_
.DC_DrawBitmap(*args
, **kwargs
) 
3274     def DrawBitmapPoint(*args
, **kwargs
): 
3276         DrawBitmapPoint(self, Bitmap bmp, Point pt, bool useMask=False) 
3278         Draw a bitmap on the device context at the specified point. If 
3279         *transparent* is true and the bitmap has a transparency mask, (or 
3280         alpha channel on the platforms that support it) then the bitmap will 
3281         be drawn transparently. 
3283         return _gdi_
.DC_DrawBitmapPoint(*args
, **kwargs
) 
3285     def DrawText(*args
, **kwargs
): 
3287         DrawText(self, String text, int x, int y) 
3289         Draws a text string at the specified point, using the current text 
3290         font, and the current text foreground and background colours. 
3292         The coordinates refer to the top-left corner of the rectangle bounding 
3293         the string. See `GetTextExtent` for how to get the dimensions of a 
3294         text string, which can be used to position the text more precisely. 
3296         **NOTE**: under wxGTK the current logical function is used by this 
3297         function but it is ignored by wxMSW. Thus, you should avoid using 
3298         logical functions with this function in portable programs. 
3300         return _gdi_
.DC_DrawText(*args
, **kwargs
) 
3302     def DrawTextPoint(*args
, **kwargs
): 
3304         DrawTextPoint(self, String text, Point pt) 
3306         Draws a text string at the specified point, using the current text 
3307         font, and the current text foreground and background colours. 
3309         The coordinates refer to the top-left corner of the rectangle bounding 
3310         the string. See `GetTextExtent` for how to get the dimensions of a 
3311         text string, which can be used to position the text more precisely. 
3313         **NOTE**: under wxGTK the current logical function is used by this 
3314         function but it is ignored by wxMSW. Thus, you should avoid using 
3315         logical functions with this function in portable programs. 
3317         return _gdi_
.DC_DrawTextPoint(*args
, **kwargs
) 
3319     def DrawRotatedText(*args
, **kwargs
): 
3321         DrawRotatedText(self, String text, int x, int y, double angle) 
3323         Draws the text rotated by *angle* degrees, if supported by the platform. 
3325         **NOTE**: Under Win9x only TrueType fonts can be drawn by this 
3326         function. In particular, a font different from ``wx.NORMAL_FONT`` 
3327         should be used as the it is not normally a TrueType 
3328         font. ``wx.SWISS_FONT`` is an example of a font which is. 
3330         return _gdi_
.DC_DrawRotatedText(*args
, **kwargs
) 
3332     def DrawRotatedTextPoint(*args
, **kwargs
): 
3334         DrawRotatedTextPoint(self, String text, Point pt, double angle) 
3336         Draws the text rotated by *angle* degrees, if supported by the platform. 
3338         **NOTE**: Under Win9x only TrueType fonts can be drawn by this 
3339         function. In particular, a font different from ``wx.NORMAL_FONT`` 
3340         should be used as the it is not normally a TrueType 
3341         font. ``wx.SWISS_FONT`` is an example of a font which is. 
3343         return _gdi_
.DC_DrawRotatedTextPoint(*args
, **kwargs
) 
3345     def Blit(*args
, **kwargs
): 
3347         Blit(self, int xdest, int ydest, int width, int height, DC source,  
3348             int xsrc, int ysrc, int rop=COPY, bool useMask=False,  
3349             int xsrcMask=-1, int ysrcMask=-1) -> bool 
3351         Copy from a source DC to this DC.  Parameters specify the destination 
3352         coordinates, size of area to copy, source DC, source coordinates, 
3353         logical function, whether to use a bitmap mask, and mask source 
3356         return _gdi_
.DC_Blit(*args
, **kwargs
) 
3358     def BlitPointSize(*args
, **kwargs
): 
3360         BlitPointSize(self, Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,  
3361             bool useMask=False, Point srcPtMask=DefaultPosition) -> bool 
3363         Copy from a source DC to this DC.  Parameters specify the destination 
3364         coordinates, size of area to copy, source DC, source coordinates, 
3365         logical function, whether to use a bitmap mask, and mask source 
3368         return _gdi_
.DC_BlitPointSize(*args
, **kwargs
) 
3370     def SetClippingRegion(*args
, **kwargs
): 
3372         SetClippingRegion(self, int x, int y, int width, int height) 
3374         Sets the clipping region for this device context to the intersection 
3375         of the given region described by the parameters of this method and the 
3376         previously set clipping region. You should call `DestroyClippingRegion` 
3377         if you want to set the clipping region exactly to the region 
3380         The clipping region is an area to which drawing is 
3381         restricted. Possible uses for the clipping region are for clipping 
3382         text or for speeding up window redraws when only a known area of the 
3385         return _gdi_
.DC_SetClippingRegion(*args
, **kwargs
) 
3387     def SetClippingRegionPointSize(*args
, **kwargs
): 
3389         SetClippingRegionPointSize(self, Point pt, Size sz) 
3391         Sets the clipping region for this device context to the intersection 
3392         of the given region described by the parameters of this method and the 
3393         previously set clipping region. You should call `DestroyClippingRegion` 
3394         if you want to set the clipping region exactly to the region 
3397         The clipping region is an area to which drawing is 
3398         restricted. Possible uses for the clipping region are for clipping 
3399         text or for speeding up window redraws when only a known area of the 
3402         return _gdi_
.DC_SetClippingRegionPointSize(*args
, **kwargs
) 
3404     def SetClippingRegionAsRegion(*args
, **kwargs
): 
3406         SetClippingRegionAsRegion(self, Region region) 
3408         Sets the clipping region for this device context to the intersection 
3409         of the given region described by the parameters of this method and the 
3410         previously set clipping region. You should call `DestroyClippingRegion` 
3411         if you want to set the clipping region exactly to the region 
3414         The clipping region is an area to which drawing is 
3415         restricted. Possible uses for the clipping region are for clipping 
3416         text or for speeding up window redraws when only a known area of the 
3419         return _gdi_
.DC_SetClippingRegionAsRegion(*args
, **kwargs
) 
3421     def SetClippingRect(*args
, **kwargs
): 
3423         SetClippingRect(self, Rect rect) 
3425         Sets the clipping region for this device context to the intersection 
3426         of the given region described by the parameters of this method and the 
3427         previously set clipping region. You should call `DestroyClippingRegion` 
3428         if you want to set the clipping region exactly to the region 
3431         The clipping region is an area to which drawing is 
3432         restricted. Possible uses for the clipping region are for clipping 
3433         text or for speeding up window redraws when only a known area of the 
3436         return _gdi_
.DC_SetClippingRect(*args
, **kwargs
) 
3438     def DrawLines(*args
, **kwargs
): 
3440         DrawLines(self, List points, int xoffset=0, int yoffset=0) 
3442         Draws lines using a sequence of `wx.Point` objects, adding the 
3443         optional offset coordinate. The current pen is used for drawing the 
3446         return _gdi_
.DC_DrawLines(*args
, **kwargs
) 
3448     def DrawPolygon(*args
, **kwargs
): 
3450         DrawPolygon(self, List points, int xoffset=0, int yoffset=0, 
3451             int fillStyle=ODDEVEN_RULE) 
3453         Draws a filled polygon using a sequence of `wx.Point` objects, adding 
3454         the optional offset coordinate.  The last argument specifies the fill 
3455         rule: ``wx.ODDEVEN_RULE`` (the default) or ``wx.WINDING_RULE``. 
3457         The current pen is used for drawing the outline, and the current brush 
3458         for filling the shape. Using a transparent brush suppresses 
3459         filling. Note that wxWidgets automatically closes the first and last 
3462         return _gdi_
.DC_DrawPolygon(*args
, **kwargs
) 
3464     def DrawLabel(*args
, **kwargs
): 
3466         DrawLabel(self, String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,  
3469         Draw *text* within the specified rectangle, abiding by the alignment 
3470         flags.  Will additionally emphasize the character at *indexAccel* if 
3473         return _gdi_
.DC_DrawLabel(*args
, **kwargs
) 
3475     def DrawImageLabel(*args
, **kwargs
): 
3477         DrawImageLabel(self, String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,  
3478             int indexAccel=-1) -> Rect 
3480         Draw *text* and an image (which may be ``wx.NullBitmap`` to skip 
3481         drawing it) within the specified rectangle, abiding by the alignment 
3482         flags.  Will additionally emphasize the character at *indexAccel* if 
3483         it is not -1.  Returns the bounding rectangle. 
3485         return _gdi_
.DC_DrawImageLabel(*args
, **kwargs
) 
3487     def DrawSpline(*args
, **kwargs
): 
3489         DrawSpline(self, List points) 
3491         Draws a spline between all given control points, (a list of `wx.Point` 
3492         objects) using the current pen. The spline is drawn using a series of 
3493         lines, using an algorithm taken from the X drawing program 'XFIG'. 
3495         return _gdi_
.DC_DrawSpline(*args
, **kwargs
) 
3497     def Clear(*args
, **kwargs
): 
3501         Clears the device context using the current background brush. 
3503         return _gdi_
.DC_Clear(*args
, **kwargs
) 
3505     def StartDoc(*args
, **kwargs
): 
3507         StartDoc(self, String message) -> bool 
3509         Starts a document (only relevant when outputting to a 
3510         printer). *Message* is a message to show whilst printing. 
3512         return _gdi_
.DC_StartDoc(*args
, **kwargs
) 
3514     def EndDoc(*args
, **kwargs
): 
3518         Ends a document (only relevant when outputting to a printer). 
3520         return _gdi_
.DC_EndDoc(*args
, **kwargs
) 
3522     def StartPage(*args
, **kwargs
): 
3526         Starts a document page (only relevant when outputting to a printer). 
3528         return _gdi_
.DC_StartPage(*args
, **kwargs
) 
3530     def EndPage(*args
, **kwargs
): 
3534         Ends a document page (only relevant when outputting to a printer). 
3536         return _gdi_
.DC_EndPage(*args
, **kwargs
) 
3538     def SetFont(*args
, **kwargs
): 
3540         SetFont(self, Font font) 
3542         Sets the current font for the DC. It must be a valid font, in 
3543         particular you should not pass ``wx.NullFont`` to this method. 
3545         return _gdi_
.DC_SetFont(*args
, **kwargs
) 
3547     def SetPen(*args
, **kwargs
): 
3549         SetPen(self, Pen pen) 
3551         Sets the current pen for the DC. 
3553         If the argument is ``wx.NullPen``, the current pen is selected out of the 
3554         device context, and the original pen restored. 
3556         return _gdi_
.DC_SetPen(*args
, **kwargs
) 
3558     def SetBrush(*args
, **kwargs
): 
3560         SetBrush(self, Brush brush) 
3562         Sets the current brush for the DC. 
3564         If the argument is ``wx.NullBrush``, the current brush is selected out 
3565         of the device context, and the original brush restored, allowing the 
3566         current brush to be destroyed safely. 
3568         return _gdi_
.DC_SetBrush(*args
, **kwargs
) 
3570     def SetBackground(*args
, **kwargs
): 
3572         SetBackground(self, Brush brush) 
3574         Sets the current background brush for the DC. 
3576         return _gdi_
.DC_SetBackground(*args
, **kwargs
) 
3578     def SetBackgroundMode(*args
, **kwargs
): 
3580         SetBackgroundMode(self, int mode) 
3582         *mode* may be one of ``wx.SOLID`` and ``wx.TRANSPARENT``. This setting 
3583         determines whether text will be drawn with a background colour or 
3586         return _gdi_
.DC_SetBackgroundMode(*args
, **kwargs
) 
3588     def SetPalette(*args
, **kwargs
): 
3590         SetPalette(self, Palette palette) 
3592         If this is a window DC or memory DC, assigns the given palette to the 
3593         window or bitmap associated with the DC. If the argument is 
3594         ``wx.NullPalette``, the current palette is selected out of the device 
3595         context, and the original palette restored. 
3597         return _gdi_
.DC_SetPalette(*args
, **kwargs
) 
3599     def DestroyClippingRegion(*args
, **kwargs
): 
3601         DestroyClippingRegion(self) 
3603         Destroys the current clipping region so that none of the DC is 
3606         return _gdi_
.DC_DestroyClippingRegion(*args
, **kwargs
) 
3608     def GetClippingBox(*args
, **kwargs
): 
3610         GetClippingBox() -> (x, y, width, height) 
3612         Gets the rectangle surrounding the current clipping region. 
3614         return _gdi_
.DC_GetClippingBox(*args
, **kwargs
) 
3616     def GetClippingRect(*args
, **kwargs
): 
3618         GetClippingRect(self) -> Rect 
3620         Gets the rectangle surrounding the current clipping region. 
3622         return _gdi_
.DC_GetClippingRect(*args
, **kwargs
) 
3624     def GetCharHeight(*args
, **kwargs
): 
3626         GetCharHeight(self) -> int 
3628         Gets the character height of the currently set font. 
3630         return _gdi_
.DC_GetCharHeight(*args
, **kwargs
) 
3632     def GetCharWidth(*args
, **kwargs
): 
3634         GetCharWidth(self) -> int 
3636         Gets the average character width of the currently set font. 
3638         return _gdi_
.DC_GetCharWidth(*args
, **kwargs
) 
3640     def GetTextExtent(*args
, **kwargs
): 
3642         GetTextExtent(wxString string) -> (width, height) 
3644         Get the width and height of the text using the current font. Only 
3645         works for single line strings. 
3647         return _gdi_
.DC_GetTextExtent(*args
, **kwargs
) 
3649     def GetFullTextExtent(*args
, **kwargs
): 
3651         GetFullTextExtent(wxString string, Font font=None) -> 
3652            (width, height, descent, externalLeading) 
3654         Get the width, height, decent and leading of the text using the 
3655         current or specified font. Only works for single line strings. 
3657         return _gdi_
.DC_GetFullTextExtent(*args
, **kwargs
) 
3659     def GetMultiLineTextExtent(*args
, **kwargs
): 
3661         GetMultiLineTextExtent(wxString string, Font font=None) -> 
3662            (width, height, lineHeight) 
3664         Get the width, height, and line height of the text using the 
3665         current or specified font. Works for single as well as multi-line 
3668         return _gdi_
.DC_GetMultiLineTextExtent(*args
, **kwargs
) 
3670     def GetPartialTextExtents(*args
, **kwargs
): 
3672         GetPartialTextExtents(self, text) -> [widths] 
3674         Returns a list of integers such that each value is the distance in 
3675         pixels from the begining of text to the coresponding character of 
3676         *text*. The generic version simply builds a running total of the widths 
3677         of each character using GetTextExtent, however if the various 
3678         platforms have a native API function that is faster or more accurate 
3679         than the generic implementation then it will be used instead. 
3681         return _gdi_
.DC_GetPartialTextExtents(*args
, **kwargs
) 
3683     def GetSize(*args
, **kwargs
): 
3685         GetSize(self) -> Size 
3687         This gets the horizontal and vertical resolution in device units. It 
3688         can be used to scale graphics to fit the page. For example, if *maxX* 
3689         and *maxY* represent the maximum horizontal and vertical 'pixel' values 
3690         used in your application, the following code will scale the graphic to 
3691         fit on the printer page:: 
3694               scaleX = maxX*1.0 / w 
3695               scaleY = maxY*1.0 / h 
3696               dc.SetUserScale(min(scaleX,scaleY),min(scaleX,scaleY)) 
3699         return _gdi_
.DC_GetSize(*args
, **kwargs
) 
3701     def GetSizeTuple(*args
, **kwargs
): 
3703         GetSizeTuple() -> (width, height) 
3705         This gets the horizontal and vertical resolution in device units. It 
3706         can be used to scale graphics to fit the page. For example, if *maxX* 
3707         and *maxY* represent the maximum horizontal and vertical 'pixel' values 
3708         used in your application, the following code will scale the graphic to 
3709         fit on the printer page:: 
3712               scaleX = maxX*1.0 / w 
3713               scaleY = maxY*1.0 / h 
3714               dc.SetUserScale(min(scaleX,scaleY),min(scaleX,scaleY)) 
3717         return _gdi_
.DC_GetSizeTuple(*args
, **kwargs
) 
3719     def GetSizeMM(*args
, **kwargs
): 
3721         GetSizeMM(self) -> Size 
3723         Get the DC size in milimeters. 
3725         return _gdi_
.DC_GetSizeMM(*args
, **kwargs
) 
3727     def GetSizeMMTuple(*args
, **kwargs
): 
3729         GetSizeMMTuple() -> (width, height) 
3731         Get the DC size in milimeters. 
3733         return _gdi_
.DC_GetSizeMMTuple(*args
, **kwargs
) 
3735     def DeviceToLogicalX(*args
, **kwargs
): 
3737         DeviceToLogicalX(self, int x) -> int 
3739         Convert device X coordinate to logical coordinate, using the current 
3742         return _gdi_
.DC_DeviceToLogicalX(*args
, **kwargs
) 
3744     def DeviceToLogicalY(*args
, **kwargs
): 
3746         DeviceToLogicalY(self, int y) -> int 
3748         Converts device Y coordinate to logical coordinate, using the current 
3751         return _gdi_
.DC_DeviceToLogicalY(*args
, **kwargs
) 
3753     def DeviceToLogicalXRel(*args
, **kwargs
): 
3755         DeviceToLogicalXRel(self, int x) -> int 
3757         Convert device X coordinate to relative logical coordinate, using the 
3758         current mapping mode but ignoring the x axis orientation. Use this 
3759         function for converting a width, for example. 
3761         return _gdi_
.DC_DeviceToLogicalXRel(*args
, **kwargs
) 
3763     def DeviceToLogicalYRel(*args
, **kwargs
): 
3765         DeviceToLogicalYRel(self, int y) -> int 
3767         Convert device Y coordinate to relative logical coordinate, using the 
3768         current mapping mode but ignoring the y axis orientation. Use this 
3769         function for converting a height, for example. 
3771         return _gdi_
.DC_DeviceToLogicalYRel(*args
, **kwargs
) 
3773     def LogicalToDeviceX(*args
, **kwargs
): 
3775         LogicalToDeviceX(self, int x) -> int 
3777         Converts logical X coordinate to device coordinate, using the current 
3780         return _gdi_
.DC_LogicalToDeviceX(*args
, **kwargs
) 
3782     def LogicalToDeviceY(*args
, **kwargs
): 
3784         LogicalToDeviceY(self, int y) -> int 
3786         Converts logical Y coordinate to device coordinate, using the current 
3789         return _gdi_
.DC_LogicalToDeviceY(*args
, **kwargs
) 
3791     def LogicalToDeviceXRel(*args
, **kwargs
): 
3793         LogicalToDeviceXRel(self, int x) -> int 
3795         Converts logical X coordinate to relative device coordinate, using the 
3796         current mapping mode but ignoring the x axis orientation. Use this for 
3797         converting a width, for example. 
3799         return _gdi_
.DC_LogicalToDeviceXRel(*args
, **kwargs
) 
3801     def LogicalToDeviceYRel(*args
, **kwargs
): 
3803         LogicalToDeviceYRel(self, int y) -> int 
3805         Converts logical Y coordinate to relative device coordinate, using the 
3806         current mapping mode but ignoring the y axis orientation. Use this for 
3807         converting a height, for example. 
3809         return _gdi_
.DC_LogicalToDeviceYRel(*args
, **kwargs
) 
3811     def CanDrawBitmap(*args
, **kwargs
): 
3812         """CanDrawBitmap(self) -> bool""" 
3813         return _gdi_
.DC_CanDrawBitmap(*args
, **kwargs
) 
3815     def CanGetTextExtent(*args
, **kwargs
): 
3816         """CanGetTextExtent(self) -> bool""" 
3817         return _gdi_
.DC_CanGetTextExtent(*args
, **kwargs
) 
3819     def GetDepth(*args
, **kwargs
): 
3821         GetDepth(self) -> int 
3823         Returns the colour depth of the DC. 
3825         return _gdi_
.DC_GetDepth(*args
, **kwargs
) 
3827     def GetPPI(*args
, **kwargs
): 
3829         GetPPI(self) -> Size 
3831         Resolution in pixels per inch 
3833         return _gdi_
.DC_GetPPI(*args
, **kwargs
) 
3835     def IsOk(*args
, **kwargs
): 
3839         Returns true if the DC is ok to use. 
3841         return _gdi_
.DC_IsOk(*args
, **kwargs
) 
3844     def GetBackgroundMode(*args
, **kwargs
): 
3846         GetBackgroundMode(self) -> int 
3848         Returns the current background mode, either ``wx.SOLID`` or 
3851         return _gdi_
.DC_GetBackgroundMode(*args
, **kwargs
) 
3853     def GetBackground(*args
, **kwargs
): 
3855         GetBackground(self) -> Brush 
3857         Gets the brush used for painting the background. 
3859         return _gdi_
.DC_GetBackground(*args
, **kwargs
) 
3861     def GetBrush(*args
, **kwargs
): 
3863         GetBrush(self) -> Brush 
3865         Gets the current brush 
3867         return _gdi_
.DC_GetBrush(*args
, **kwargs
) 
3869     def GetFont(*args
, **kwargs
): 
3871         GetFont(self) -> Font 
3873         Gets the current font 
3875         return _gdi_
.DC_GetFont(*args
, **kwargs
) 
3877     def GetPen(*args
, **kwargs
): 
3881         Gets the current pen 
3883         return _gdi_
.DC_GetPen(*args
, **kwargs
) 
3885     def GetTextBackground(*args
, **kwargs
): 
3887         GetTextBackground(self) -> Colour 
3889         Gets the current text background colour 
3891         return _gdi_
.DC_GetTextBackground(*args
, **kwargs
) 
3893     def GetTextForeground(*args
, **kwargs
): 
3895         GetTextForeground(self) -> Colour 
3897         Gets the current text foreground colour 
3899         return _gdi_
.DC_GetTextForeground(*args
, **kwargs
) 
3901     def SetTextForeground(*args
, **kwargs
): 
3903         SetTextForeground(self, Colour colour) 
3905         Sets the current text foreground colour for the DC. 
3907         return _gdi_
.DC_SetTextForeground(*args
, **kwargs
) 
3909     def SetTextBackground(*args
, **kwargs
): 
3911         SetTextBackground(self, Colour colour) 
3913         Sets the current text background colour for the DC. 
3915         return _gdi_
.DC_SetTextBackground(*args
, **kwargs
) 
3917     def GetMapMode(*args
, **kwargs
): 
3919         GetMapMode(self) -> int 
3921         Gets the current *mapping mode* for the device context  
3923         return _gdi_
.DC_GetMapMode(*args
, **kwargs
) 
3925     def SetMapMode(*args
, **kwargs
): 
3927         SetMapMode(self, int mode) 
3929         The *mapping mode* of the device context defines the unit of 
3930         measurement used to convert logical units to device units.  The 
3931         mapping mode can be one of the following: 
3933             ================    ============================================= 
3934             wx.MM_TWIPS         Each logical unit is 1/20 of a point, or 1/1440 
3936             wx.MM_POINTS        Each logical unit is a point, or 1/72 of an inch. 
3937             wx.MM_METRIC        Each logical unit is 1 mm. 
3938             wx.MM_LOMETRIC      Each logical unit is 1/10 of a mm. 
3939             wx.MM_TEXT          Each logical unit is 1 pixel. 
3940             ================    ============================================= 
3943         return _gdi_
.DC_SetMapMode(*args
, **kwargs
) 
3945     def GetUserScale(*args
, **kwargs
): 
3947         GetUserScale(self) -> (xScale, yScale) 
3949         Gets the current user scale factor (set by `SetUserScale`). 
3951         return _gdi_
.DC_GetUserScale(*args
, **kwargs
) 
3953     def SetUserScale(*args
, **kwargs
): 
3955         SetUserScale(self, double x, double y) 
3957         Sets the user scaling factor, useful for applications which require 
3960         return _gdi_
.DC_SetUserScale(*args
, **kwargs
) 
3962     def GetLogicalScale(*args
, **kwargs
): 
3963         """GetLogicalScale() -> (xScale, yScale)""" 
3964         return _gdi_
.DC_GetLogicalScale(*args
, **kwargs
) 
3966     def SetLogicalScale(*args
, **kwargs
): 
3967         """SetLogicalScale(self, double x, double y)""" 
3968         return _gdi_
.DC_SetLogicalScale(*args
, **kwargs
) 
3970     def GetLogicalOrigin(*args
, **kwargs
): 
3971         """GetLogicalOrigin(self) -> Point""" 
3972         return _gdi_
.DC_GetLogicalOrigin(*args
, **kwargs
) 
3974     def GetLogicalOriginTuple(*args
, **kwargs
): 
3975         """GetLogicalOriginTuple() -> (x,y)""" 
3976         return _gdi_
.DC_GetLogicalOriginTuple(*args
, **kwargs
) 
3978     def SetLogicalOrigin(*args
, **kwargs
): 
3979         """SetLogicalOrigin(self, int x, int y)""" 
3980         return _gdi_
.DC_SetLogicalOrigin(*args
, **kwargs
) 
3982     def SetLogicalOriginPoint(*args
, **kwargs
): 
3983         """SetLogicalOriginPoint(self, Point point)""" 
3984         return _gdi_
.DC_SetLogicalOriginPoint(*args
, **kwargs
) 
3986     def GetDeviceOrigin(*args
, **kwargs
): 
3987         """GetDeviceOrigin(self) -> Point""" 
3988         return _gdi_
.DC_GetDeviceOrigin(*args
, **kwargs
) 
3990     def GetDeviceOriginTuple(*args
, **kwargs
): 
3991         """GetDeviceOriginTuple() -> (x,y)""" 
3992         return _gdi_
.DC_GetDeviceOriginTuple(*args
, **kwargs
) 
3994     def SetDeviceOrigin(*args
, **kwargs
): 
3995         """SetDeviceOrigin(self, int x, int y)""" 
3996         return _gdi_
.DC_SetDeviceOrigin(*args
, **kwargs
) 
3998     def SetDeviceOriginPoint(*args
, **kwargs
): 
3999         """SetDeviceOriginPoint(self, Point point)""" 
4000         return _gdi_
.DC_SetDeviceOriginPoint(*args
, **kwargs
) 
4002     def SetAxisOrientation(*args
, **kwargs
): 
4004         SetAxisOrientation(self, bool xLeftRight, bool yBottomUp) 
4006         Sets the x and y axis orientation (i.e., the direction from lowest to 
4007         highest values on the axis). The default orientation is the natural 
4008         orientation, e.g. x axis from left to right and y axis from bottom up. 
4010         return _gdi_
.DC_SetAxisOrientation(*args
, **kwargs
) 
4012     def GetLogicalFunction(*args
, **kwargs
): 
4014         GetLogicalFunction(self) -> int 
4016         Gets the current logical function (set by `SetLogicalFunction`). 
4018         return _gdi_
.DC_GetLogicalFunction(*args
, **kwargs
) 
4020     def SetLogicalFunction(*args
, **kwargs
): 
4022         SetLogicalFunction(self, int function) 
4024         Sets the current logical function for the device context. This 
4025         determines how a source pixel (from a pen or brush colour, or source 
4026         device context if using `Blit`) combines with a destination pixel in 
4027         the current device context. 
4029         The possible values and their meaning in terms of source and 
4030         destination pixel values are as follows: 
4032             ================       ========================== 
4034             wx.AND_INVERT          (NOT src) AND dst 
4035             wx.AND_REVERSE         src AND (NOT dst) 
4038             wx.EQUIV               (NOT src) XOR dst 
4040             wx.NAND                (NOT src) OR (NOT dst) 
4041             wx.NOR                 (NOT src) AND (NOT dst) 
4044             wx.OR_INVERT           (NOT src) OR dst 
4045             wx.OR_REVERSE          src OR (NOT dst) 
4047             wx.SRC_INVERT          NOT src 
4049             ================       ========================== 
4051         The default is wx.COPY, which simply draws with the current 
4052         colour. The others combine the current colour and the background using 
4053         a logical operation. wx.INVERT is commonly used for drawing rubber 
4054         bands or moving outlines, since drawing twice reverts to the original 
4058         return _gdi_
.DC_SetLogicalFunction(*args
, **kwargs
) 
4060     def ComputeScaleAndOrigin(*args
, **kwargs
): 
4062         ComputeScaleAndOrigin(self) 
4064         Performs all necessary computations for given platform and context 
4065         type after each change of scale and origin parameters. Usually called 
4066         automatically internally after such changes. 
4069         return _gdi_
.DC_ComputeScaleAndOrigin(*args
, **kwargs
) 
4071     def SetOptimization(self
, optimize
): 
4073     def GetOptimization(self
): 
4076     SetOptimization 
= wx
._deprecated
(SetOptimization
) 
4077     GetOptimization 
= wx
._deprecated
(GetOptimization
) 
4079     def CalcBoundingBox(*args
, **kwargs
): 
4081         CalcBoundingBox(self, int x, int y) 
4083         Adds the specified point to the bounding box which can be retrieved 
4084         with `MinX`, `MaxX` and `MinY`, `MaxY` or `GetBoundingBox` functions. 
4086         return _gdi_
.DC_CalcBoundingBox(*args
, **kwargs
) 
4088     def CalcBoundingBoxPoint(*args
, **kwargs
): 
4090         CalcBoundingBoxPoint(self, Point point) 
4092         Adds the specified point to the bounding box which can be retrieved 
4093         with `MinX`, `MaxX` and `MinY`, `MaxY` or `GetBoundingBox` functions. 
4095         return _gdi_
.DC_CalcBoundingBoxPoint(*args
, **kwargs
) 
4097     def ResetBoundingBox(*args
, **kwargs
): 
4099         ResetBoundingBox(self) 
4101         Resets the bounding box: after a call to this function, the bounding 
4102         box doesn't contain anything. 
4104         return _gdi_
.DC_ResetBoundingBox(*args
, **kwargs
) 
4106     def MinX(*args
, **kwargs
): 
4110         Gets the minimum horizontal extent used in drawing commands so far. 
4112         return _gdi_
.DC_MinX(*args
, **kwargs
) 
4114     def MaxX(*args
, **kwargs
): 
4118         Gets the maximum horizontal extent used in drawing commands so far. 
4120         return _gdi_
.DC_MaxX(*args
, **kwargs
) 
4122     def MinY(*args
, **kwargs
): 
4126         Gets the minimum vertical extent used in drawing commands so far. 
4128         return _gdi_
.DC_MinY(*args
, **kwargs
) 
4130     def MaxY(*args
, **kwargs
): 
4134         Gets the maximum vertical extent used in drawing commands so far. 
4136         return _gdi_
.DC_MaxY(*args
, **kwargs
) 
4138     def GetBoundingBox(*args
, **kwargs
): 
4140         GetBoundingBox() -> (x1,y1, x2,y2) 
4142         Returns the min and max points used in drawing commands so far. 
4144         return _gdi_
.DC_GetBoundingBox(*args
, **kwargs
) 
4146     def __nonzero__(self
): return self
.IsOk()  
4147     def GetLayoutDirection(*args
, **kwargs
): 
4149         GetLayoutDirection(self) -> int 
4151         Get the layout direction (LTR or RTL)_ for this dc.  On platforms 
4152         where RTL layout is supported, the return value will either be 
4153         ``wx.Layout_LeftToRight`` or ``wx.Layout_RightToLeft``. 
4154         ``wx.Layout_Default`` is returned if layout direction is not 
4157         return _gdi_
.DC_GetLayoutDirection(*args
, **kwargs
) 
4159     def SetLayoutDirection(*args
, **kwargs
): 
4161         SetLayoutDirection(self, int dir) 
4163         Change the layout direction for this dc. 
4165         return _gdi_
.DC_SetLayoutDirection(*args
, **kwargs
) 
4167     def _DrawPointList(*args
, **kwargs
): 
4168         """_DrawPointList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" 
4169         return _gdi_
.DC__DrawPointList(*args
, **kwargs
) 
4171     def _DrawLineList(*args
, **kwargs
): 
4172         """_DrawLineList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" 
4173         return _gdi_
.DC__DrawLineList(*args
, **kwargs
) 
4175     def _DrawRectangleList(*args
, **kwargs
): 
4176         """_DrawRectangleList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" 
4177         return _gdi_
.DC__DrawRectangleList(*args
, **kwargs
) 
4179     def _DrawEllipseList(*args
, **kwargs
): 
4180         """_DrawEllipseList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" 
4181         return _gdi_
.DC__DrawEllipseList(*args
, **kwargs
) 
4183     def _DrawPolygonList(*args
, **kwargs
): 
4184         """_DrawPolygonList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" 
4185         return _gdi_
.DC__DrawPolygonList(*args
, **kwargs
) 
4187     def _DrawTextList(*args
, **kwargs
): 
4189         _DrawTextList(self, PyObject textList, PyObject pyPoints, PyObject foregroundList,  
4190             PyObject backgroundList) -> PyObject 
4192         return _gdi_
.DC__DrawTextList(*args
, **kwargs
) 
4194     def DrawPointList(self
, points
, pens
=None): 
4196         Draw a list of points as quickly as possible. 
4198             :param points:  A sequence of 2-element sequences representing 
4199                             each point to draw, (x,y). 
4200             :param pens:    If None, then the current pen is used.  If a 
4201                             single pen then it will be used for all points.  If 
4202                             a list of pens then there should be one for each point 
4207         elif isinstance(pens
, wx
.Pen
): 
4209         elif len(pens
) != len(points
): 
4210            raise ValueError('points and pens must have same length') 
4211         return self
._DrawPointList
(points
, pens
, []) 
4214     def DrawLineList(self
, lines
, pens
=None): 
4216         Draw a list of lines as quickly as possible. 
4218             :param lines:  A sequence of 4-element sequences representing 
4219                             each line to draw, (x1,y1, x2,y2). 
4220             :param pens:    If None, then the current pen is used.  If a 
4221                             single pen then it will be used for all lines.  If 
4222                             a list of pens then there should be one for each line 
4227         elif isinstance(pens
, wx
.Pen
): 
4229         elif len(pens
) != len(lines
): 
4230            raise ValueError('lines and pens must have same length') 
4231         return self
._DrawLineList
(lines
, pens
, []) 
4234     def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None): 
4236         Draw a list of rectangles as quickly as possible. 
4238             :param rectangles:  A sequence of 4-element sequences representing 
4239                             each rectangle to draw, (x,y, w,h). 
4240             :param pens:    If None, then the current pen is used.  If a 
4241                             single pen then it will be used for all rectangles. 
4242                             If a list of pens then there should be one for each  
4243                             rectangle in rectangles. 
4244             :param brushes: A brush or brushes to be used to fill the rectagles, 
4245                             with similar semantics as the pens parameter. 
4249         elif isinstance(pens
, wx
.Pen
): 
4251         elif len(pens
) != len(rectangles
): 
4252            raise ValueError('rectangles and pens must have same length') 
4255         elif isinstance(brushes
, wx
.Brush
): 
4257         elif len(brushes
) != len(rectangles
): 
4258            raise ValueError('rectangles and brushes must have same length') 
4259         return self
._DrawRectangleList
(rectangles
, pens
, brushes
) 
4262     def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None): 
4264         Draw a list of ellipses as quickly as possible. 
4266             :param ellipses: A sequence of 4-element sequences representing 
4267                             each ellipse to draw, (x,y, w,h). 
4268             :param pens:    If None, then the current pen is used.  If a 
4269                             single pen then it will be used for all ellipses. 
4270                             If a list of pens then there should be one for each  
4271                             ellipse in ellipses. 
4272             :param brushes: A brush or brushes to be used to fill the ellipses, 
4273                             with similar semantics as the pens parameter. 
4277         elif isinstance(pens
, wx
.Pen
): 
4279         elif len(pens
) != len(ellipses
): 
4280            raise ValueError('ellipses and pens must have same length') 
4283         elif isinstance(brushes
, wx
.Brush
): 
4285         elif len(brushes
) != len(ellipses
): 
4286            raise ValueError('ellipses and brushes must have same length') 
4287         return self
._DrawEllipseList
(ellipses
, pens
, brushes
) 
4290     def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None): 
4292         Draw a list of polygons, each of which is a list of points. 
4294             :param polygons: A sequence of sequences of sequences. 
4295                              [[(x1,y1),(x2,y2),(x3,y3)...], 
4296                              [(x1,y1),(x2,y2),(x3,y3)...]] 
4298             :param pens:    If None, then the current pen is used.  If a 
4299                             single pen then it will be used for all polygons. 
4300                             If a list of pens then there should be one for each  
4302             :param brushes: A brush or brushes to be used to fill the polygons, 
4303                             with similar semantics as the pens parameter. 
4307         elif isinstance(pens
, wx
.Pen
): 
4309         elif len(pens
) != len(polygons
): 
4310            raise ValueError('polygons and pens must have same length') 
4313         elif isinstance(brushes
, wx
.Brush
): 
4315         elif len(brushes
) != len(polygons
): 
4316            raise ValueError('polygons and brushes must have same length') 
4317         return self
._DrawPolygonList
(polygons
, pens
, brushes
) 
4320     def DrawTextList(self
, textList
, coords
, foregrounds 
= None, backgrounds 
= None): 
4322         Draw a list of strings using a list of coordinants for positioning each string. 
4324             :param textList:    A list of strings 
4325             :param coords:      A list of (x,y) positions 
4326             :param foregrounds: A list of `wx.Colour` objects to use for the 
4327                                 foregrounds of the strings. 
4328             :param backgrounds: A list of `wx.Colour` objects to use for the 
4329                                 backgrounds of the strings. 
4331         NOTE: Make sure you set Background mode to wx.Solid (DC.SetBackgroundMode) 
4332               If you want backgrounds to do anything. 
4334         if type(textList
) == type(''): 
4335            textList 
= [textList
] 
4336         elif len(textList
) != len(coords
): 
4337            raise ValueError('textlist and coords must have same length') 
4338         if foregrounds 
is None: 
4340         elif isinstance(foregrounds
, wx
.Colour
): 
4341            foregrounds 
= [foregrounds
] 
4342         elif len(foregrounds
) != len(coords
): 
4343            raise ValueError('foregrounds and coords must have same length') 
4344         if backgrounds 
is None: 
4346         elif isinstance(backgrounds
, wx
.Colour
): 
4347            backgrounds 
= [backgrounds
] 
4348         elif len(backgrounds
) != len(coords
): 
4349            raise ValueError('backgrounds and coords must have same length') 
4350         return  self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
) 
4352     Background 
= property(GetBackground
,SetBackground
,doc
="See `GetBackground` and `SetBackground`")  
4353     BackgroundMode 
= property(GetBackgroundMode
,SetBackgroundMode
,doc
="See `GetBackgroundMode` and `SetBackgroundMode`")  
4354     BoundingBox 
= property(GetBoundingBox
,doc
="See `GetBoundingBox`")  
4355     Brush 
= property(GetBrush
,SetBrush
,doc
="See `GetBrush` and `SetBrush`")  
4356     CharHeight 
= property(GetCharHeight
,doc
="See `GetCharHeight`")  
4357     CharWidth 
= property(GetCharWidth
,doc
="See `GetCharWidth`")  
4358     ClippingBox 
= property(GetClippingBox
,doc
="See `GetClippingBox`")  
4359     ClippingRect 
= property(GetClippingRect
,SetClippingRect
,doc
="See `GetClippingRect` and `SetClippingRect`")  
4360     Depth 
= property(GetDepth
,doc
="See `GetDepth`")  
4361     DeviceOrigin 
= property(GetDeviceOrigin
,SetDeviceOrigin
,doc
="See `GetDeviceOrigin` and `SetDeviceOrigin`")  
4362     Font 
= property(GetFont
,SetFont
,doc
="See `GetFont` and `SetFont`")  
4363     FullTextExtent 
= property(GetFullTextExtent
,doc
="See `GetFullTextExtent`")  
4364     LogicalFunction 
= property(GetLogicalFunction
,SetLogicalFunction
,doc
="See `GetLogicalFunction` and `SetLogicalFunction`")  
4365     LogicalOrigin 
= property(GetLogicalOrigin
,SetLogicalOrigin
,doc
="See `GetLogicalOrigin` and `SetLogicalOrigin`")  
4366     LogicalScale 
= property(GetLogicalScale
,SetLogicalScale
,doc
="See `GetLogicalScale` and `SetLogicalScale`")  
4367     MapMode 
= property(GetMapMode
,SetMapMode
,doc
="See `GetMapMode` and `SetMapMode`")  
4368     MultiLineTextExtent 
= property(GetMultiLineTextExtent
,doc
="See `GetMultiLineTextExtent`")  
4369     Optimization 
= property(GetOptimization
,SetOptimization
,doc
="See `GetOptimization` and `SetOptimization`")  
4370     PPI 
= property(GetPPI
,doc
="See `GetPPI`")  
4371     PartialTextExtents 
= property(GetPartialTextExtents
,doc
="See `GetPartialTextExtents`")  
4372     Pen 
= property(GetPen
,SetPen
,doc
="See `GetPen` and `SetPen`")  
4373     Pixel 
= property(GetPixel
,doc
="See `GetPixel`")  
4374     PixelPoint 
= property(GetPixelPoint
,doc
="See `GetPixelPoint`")  
4375     Size 
= property(GetSize
,doc
="See `GetSize`")  
4376     SizeMM 
= property(GetSizeMM
,doc
="See `GetSizeMM`")  
4377     TextBackground 
= property(GetTextBackground
,SetTextBackground
,doc
="See `GetTextBackground` and `SetTextBackground`")  
4378     TextExtent 
= property(GetTextExtent
,doc
="See `GetTextExtent`")  
4379     TextForeground 
= property(GetTextForeground
,SetTextForeground
,doc
="See `GetTextForeground` and `SetTextForeground`")  
4380     UserScale 
= property(GetUserScale
,SetUserScale
,doc
="See `GetUserScale` and `SetUserScale`")  
4381     LayoutDirection 
= property(GetLayoutDirection
,SetLayoutDirection
)  
4382 _gdi_
.DC_swigregister(DC
) 
4384 #--------------------------------------------------------------------------- 
4388     A memory device context provides a means to draw graphics onto a 
4389     bitmap. A bitmap must be selected into the new memory DC before it may 
4390     be used for anything. Typical usage is as follows:: 
4393         dc.SelectObject(bitmap) 
4394         # draw on the dc using any of the Draw methods 
4395         dc.SelectObject(wx.NullBitmap) 
4396         # the bitmap now contains wahtever was drawn upon it 
4398     Note that the memory DC *must* be deleted (or the bitmap selected out 
4399     of it) before a bitmap can be reselected into another memory DC. 
4402     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4403     __repr__ 
= _swig_repr
 
4404     def __init__(self
, *args
, **kwargs
):  
4406         __init__(self, Bitmap bitmap=NullBitmap) -> MemoryDC 
4408         Constructs a new memory device context. 
4410         Use the Ok member to test whether the constructor was successful in 
4411         creating a usable device context. If a bitmap is not given to this 
4412         constructor then don't forget to select a bitmap into the DC before 
4415         _gdi_
.MemoryDC_swiginit(self
,_gdi_
.new_MemoryDC(*args
, **kwargs
)) 
4416     def SelectObject(*args
, **kwargs
): 
4418         SelectObject(self, Bitmap bitmap) 
4420         Selects the bitmap into the device context, to use as the memory 
4421         bitmap. Selecting the bitmap into a memory DC allows you to draw into 
4422         the DC, and therefore the bitmap, and also to use Blit to copy the 
4425         If the argument is wx.NullBitmap (or some other uninitialised 
4426         `wx.Bitmap`) the current bitmap is selected out of the device context, 
4427         and the original bitmap restored, allowing the current bitmap to be 
4430         return _gdi_
.MemoryDC_SelectObject(*args
, **kwargs
) 
4432 _gdi_
.MemoryDC_swigregister(MemoryDC
) 
4434 def MemoryDCFromDC(*args
, **kwargs
): 
4436     MemoryDCFromDC(DC oldDC) -> MemoryDC 
4438     Creates a DC that is compatible with the oldDC. 
4440     val 
= _gdi_
.new_MemoryDCFromDC(*args
, **kwargs
) 
4443 #--------------------------------------------------------------------------- 
4447     A wxScreenDC can be used to paint anywhere on the screen. This should 
4448     normally be constructed as a temporary stack object; don't store a 
4452     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4453     __repr__ 
= _swig_repr
 
4454     def __init__(self
, *args
, **kwargs
):  
4456         __init__(self) -> ScreenDC 
4458         A wxScreenDC can be used to paint anywhere on the screen. This should 
4459         normally be constructed as a temporary stack object; don't store a 
4463         _gdi_
.ScreenDC_swiginit(self
,_gdi_
.new_ScreenDC(*args
, **kwargs
)) 
4464     def StartDrawingOnTopWin(*args
, **kwargs
): 
4466         StartDrawingOnTopWin(self, Window window) -> bool 
4468         Specify that the area of the screen to be drawn upon coincides with 
4471         :see: `EndDrawingOnTop` 
4473         return _gdi_
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
) 
4475     def StartDrawingOnTop(*args
, **kwargs
): 
4477         StartDrawingOnTop(self, Rect rect=None) -> bool 
4479         Specify that the area is the given rectangle, or the whole screen if 
4482         :see: `EndDrawingOnTop` 
4484         return _gdi_
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
) 
4486     def EndDrawingOnTop(*args
, **kwargs
): 
4488         EndDrawingOnTop(self) -> bool 
4490         Use this in conjunction with `StartDrawingOnTop` or 
4491         `StartDrawingOnTopWin` to ensure that drawing to the screen occurs on 
4492         top of existing windows. Without this, some window systems (such as X) 
4493         only allow drawing to take place underneath other windows. 
4495         You might use this pair of functions when implementing a drag feature, 
4496         for example as in the `wx.SplitterWindow` implementation. 
4498         These functions are probably obsolete since the X implementations 
4499         allow drawing directly on the screen now. However, the fact that this 
4500         function allows the screen to be refreshed afterwards may be useful 
4501         to some applications. 
4503         return _gdi_
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
) 
4505 _gdi_
.ScreenDC_swigregister(ScreenDC
) 
4507 #--------------------------------------------------------------------------- 
4511     A wx.WindowDC must be constructed if an application wishes to paint on 
4512     the whole area of a window (client and decorations). This should 
4513     normally be constructed as a temporary stack object; don't store a 
4516     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4517     __repr__ 
= _swig_repr
 
4518     def __init__(self
, *args
, **kwargs
):  
4520         __init__(self, Window win) -> WindowDC 
4522         Constructor. Pass the window on which you wish to paint. 
4524         _gdi_
.WindowDC_swiginit(self
,_gdi_
.new_WindowDC(*args
, **kwargs
)) 
4525 _gdi_
.WindowDC_swigregister(WindowDC
) 
4527 #--------------------------------------------------------------------------- 
4529 class ClientDC(WindowDC
): 
4531     A wx.ClientDC must be constructed if an application wishes to paint on 
4532     the client area of a window from outside an EVT_PAINT event. This should 
4533     normally be constructed as a temporary stack object; don't store a 
4534     wx.ClientDC object long term. 
4536     To draw on a window from within an EVT_PAINT handler, construct a 
4537     `wx.PaintDC` object. 
4539     To draw on the whole window including decorations, construct a 
4540     `wx.WindowDC` object (Windows only). 
4543     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4544     __repr__ 
= _swig_repr
 
4545     def __init__(self
, *args
, **kwargs
):  
4547         __init__(self, Window win) -> ClientDC 
4549         Constructor. Pass the window on which you wish to paint. 
4551         _gdi_
.ClientDC_swiginit(self
,_gdi_
.new_ClientDC(*args
, **kwargs
)) 
4552 _gdi_
.ClientDC_swigregister(ClientDC
) 
4554 #--------------------------------------------------------------------------- 
4556 class PaintDC(ClientDC
): 
4558     A wx.PaintDC must be constructed if an application wishes to paint on 
4559     the client area of a window from within an EVT_PAINT event 
4560     handler. This should normally be constructed as a temporary stack 
4561     object; don't store a wx.PaintDC object. If you have an EVT_PAINT 
4562     handler, you **must** create a wx.PaintDC object within it even if you 
4563     don't actually use it. 
4565     Using wx.PaintDC within EVT_PAINT handlers is important because it 
4566     automatically sets the clipping area to the damaged area of the 
4567     window. Attempts to draw outside this area do not appear. 
4569     To draw on a window from outside EVT_PAINT handlers, construct a 
4570     `wx.ClientDC` object. 
4573     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4574     __repr__ 
= _swig_repr
 
4575     def __init__(self
, *args
, **kwargs
):  
4577         __init__(self, Window win) -> PaintDC 
4579         Constructor. Pass the window on which you wish to paint. 
4581         _gdi_
.PaintDC_swiginit(self
,_gdi_
.new_PaintDC(*args
, **kwargs
)) 
4582 _gdi_
.PaintDC_swigregister(PaintDC
) 
4584 #--------------------------------------------------------------------------- 
4586 BUFFER_VIRTUAL_AREA 
= _gdi_
.BUFFER_VIRTUAL_AREA
 
4587 BUFFER_CLIENT_AREA 
= _gdi_
.BUFFER_CLIENT_AREA
 
4588 class BufferedDC(MemoryDC
): 
4590     This simple class provides a simple way to avoid flicker: when drawing 
4591     on it, everything is in fact first drawn on an in-memory buffer (a 
4592     `wx.Bitmap`) and then copied to the screen only once, when this object 
4593     is destroyed.  You can either provide a buffer bitmap yourself, and 
4594     reuse it the next time something needs painted, or you can let the 
4595     buffered DC create and provide a buffer bitmap itself. 
4597     Buffered DCs can be used in the same way as any other device context. 
4598     wx.BufferedDC itself typically replaces `wx.ClientDC`, if you want to 
4599     use it in your EVT_PAINT handler, you should look at 
4600     `wx.BufferedPaintDC`.  You can also use a wx.BufferedDC without 
4601     providing a target DC.  In this case the operations done on the dc 
4602     will only be written to the buffer bitmap and *not* to any window, so 
4603     you will want to have provided the buffer bitmap and then reuse it 
4604     when it needs painted to the window. 
4606     Please note that GTK+ 2.0 and OS X provide double buffering themselves 
4607     natively.  You may want to use `wx.Window.IsDoubleBuffered` to 
4608     determine whether you need to use buffering or not, or use 
4609     `wx.AutoBufferedPaintDC` to avoid needless double buffering on systems 
4610     that already do it automatically. 
4615     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4616     __repr__ 
= _swig_repr
 
4617     def __init__(self
, *args
):  
4619         __init__(self, DC dc, Bitmap buffer=NullBitmap, int style=BUFFER_CLIENT_AREA) -> BufferedDC 
4620         __init__(self, DC dc, Size area, int style=BUFFER_CLIENT_AREA) -> BufferedDC 
4622         Constructs a buffered DC. 
4624         _gdi_
.BufferedDC_swiginit(self
,_gdi_
.new_BufferedDC(*args
)) 
4625         self
.__dc 
= args
[0] # save a ref so the other dc will not be deleted before self 
4627     __swig_destroy__ 
= _gdi_
.delete_BufferedDC
 
4628     __del__ 
= lambda self 
: None; 
4629     def UnMask(*args
, **kwargs
): 
4633         Blits the buffer to the dc, and detaches the dc from the buffer (so it 
4634         can be effectively used once only).  This is usually only called in 
4637         return _gdi_
.BufferedDC_UnMask(*args
, **kwargs
) 
4639 _gdi_
.BufferedDC_swigregister(BufferedDC
) 
4641 class BufferedPaintDC(BufferedDC
): 
4643     This is a subclass of `wx.BufferedDC` which can be used inside of an 
4644     EVT_PAINT event handler. Just create an object of this class instead 
4645     of `wx.PaintDC` and that's all you have to do to (mostly) avoid 
4646     flicker. The only thing to watch out for is that if you are using this 
4647     class together with `wx.ScrolledWindow`, you probably do **not** want 
4648     to call `wx.Window.PrepareDC` on it as it already does this internally 
4649     for the real underlying `wx.PaintDC`. 
4651     If your window is already fully buffered in a `wx.Bitmap` then your 
4652     EVT_PAINT handler can be as simple as just creating a 
4653     ``wx.BufferedPaintDC`` as it will `Blit` the buffer to the window 
4654     automatically when it is destroyed.  For example:: 
4656         def OnPaint(self, event): 
4657             dc = wx.BufferedPaintDC(self, self.buffer) 
4662     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4663     __repr__ 
= _swig_repr
 
4664     def __init__(self
, *args
, **kwargs
):  
4666         __init__(self, Window window, Bitmap buffer=NullBitmap, int style=BUFFER_CLIENT_AREA) -> BufferedPaintDC 
4668         Create a buffered paint DC.  As with `wx.BufferedDC`, you may either 
4669         provide the bitmap to be used for buffering or let this object create 
4670         one internally (in the latter case, the size of the client part of the 
4671         window is automatically used). 
4673         _gdi_
.BufferedPaintDC_swiginit(self
,_gdi_
.new_BufferedPaintDC(*args
, **kwargs
)) 
4674 _gdi_
.BufferedPaintDC_swigregister(BufferedPaintDC
) 
4676 #--------------------------------------------------------------------------- 
4678 class AutoBufferedPaintDC(DC
): 
4680     If the current platform double buffers by default then this DC is the 
4681     same as a plain `wx.PaintDC`, otherwise it is a `wx.BufferedPaintDC`. 
4683     :see: `wx.AutoBufferedPaintDCFactory` 
4686     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4687     __repr__ 
= _swig_repr
 
4688     def __init__(self
, *args
, **kwargs
):  
4690         __init__(self, Window win) -> AutoBufferedPaintDC 
4692         If the current platform double buffers by default then this DC is the 
4693         same as a plain `wx.PaintDC`, otherwise it is a `wx.BufferedPaintDC`. 
4695         :see: `wx.AutoBufferedPaintDCFactory` 
4698         _gdi_
.AutoBufferedPaintDC_swiginit(self
,_gdi_
.new_AutoBufferedPaintDC(*args
, **kwargs
)) 
4699 _gdi_
.AutoBufferedPaintDC_swigregister(AutoBufferedPaintDC
) 
4702 def AutoBufferedPaintDCFactory(*args
, **kwargs
): 
4704     AutoBufferedPaintDCFactory(Window window) -> DC 
4706     Checks if the window is natively double buffered and will return a 
4707     `wx.PaintDC` if it is, a `wx.BufferedPaintDC` otherwise.  The advantage of 
4708     this function over `wx.AutoBufferedPaintDC` is that this function will check 
4709     if the the specified window has double-buffering enabled rather than just 
4710     going by platform defaults. 
4712   return _gdi_
.AutoBufferedPaintDCFactory(*args
, **kwargs
) 
4713 #--------------------------------------------------------------------------- 
4717     wx.MirrorDC is a simple wrapper class which is always associated with a 
4718     real `wx.DC` object and either forwards all of its operations to it 
4719     without changes (no mirroring takes place) or exchanges x and y 
4720     coordinates which makes it possible to reuse the same code to draw a 
4721     figure and its mirror -- i.e. reflection related to the diagonal line 
4724     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4725     __repr__ 
= _swig_repr
 
4726     def __init__(self
, *args
, **kwargs
):  
4728         __init__(self, DC dc, bool mirror) -> MirrorDC 
4730         Creates a mirrored DC associated with the real *dc*.  Everything drawn 
4731         on the wx.MirrorDC will appear on the *dc*, and will be mirrored if 
4734         _gdi_
.MirrorDC_swiginit(self
,_gdi_
.new_MirrorDC(*args
, **kwargs
)) 
4735 _gdi_
.MirrorDC_swigregister(MirrorDC
) 
4737 #--------------------------------------------------------------------------- 
4739 class PostScriptDC(DC
): 
4740     """This is a `wx.DC` that can write to PostScript files on any platform.""" 
4741     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4742     __repr__ 
= _swig_repr
 
4743     def __init__(self
, *args
, **kwargs
):  
4745         __init__(self, wxPrintData printData) -> PostScriptDC 
4747         Constructs a PostScript printer device context from a `wx.PrintData` 
4750         _gdi_
.PostScriptDC_swiginit(self
,_gdi_
.new_PostScriptDC(*args
, **kwargs
)) 
4751     def GetPrintData(*args
, **kwargs
): 
4752         """GetPrintData(self) -> wxPrintData""" 
4753         return _gdi_
.PostScriptDC_GetPrintData(*args
, **kwargs
) 
4755     def SetPrintData(*args
, **kwargs
): 
4756         """SetPrintData(self, wxPrintData data)""" 
4757         return _gdi_
.PostScriptDC_SetPrintData(*args
, **kwargs
) 
4759     def SetResolution(*args
, **kwargs
): 
4761         SetResolution(int ppi) 
4763         Set resolution (in pixels per inch) that will be used in PostScript 
4764         output. Default is 720ppi. 
4766         return _gdi_
.PostScriptDC_SetResolution(*args
, **kwargs
) 
4768     SetResolution 
= staticmethod(SetResolution
) 
4769     def GetResolution(*args
, **kwargs
): 
4771         GetResolution() -> int 
4773         Return resolution used in PostScript output. 
4775         return _gdi_
.PostScriptDC_GetResolution(*args
, **kwargs
) 
4777     GetResolution 
= staticmethod(GetResolution
) 
4778     PrintData 
= property(GetPrintData
,SetPrintData
,doc
="See `GetPrintData` and `SetPrintData`")  
4779 _gdi_
.PostScriptDC_swigregister(PostScriptDC
) 
4781 def PostScriptDC_SetResolution(*args
, **kwargs
): 
4783     PostScriptDC_SetResolution(int ppi) 
4785     Set resolution (in pixels per inch) that will be used in PostScript 
4786     output. Default is 720ppi. 
4788   return _gdi_
.PostScriptDC_SetResolution(*args
, **kwargs
) 
4790 def PostScriptDC_GetResolution(*args
): 
4792     PostScriptDC_GetResolution() -> int 
4794     Return resolution used in PostScript output. 
4796   return _gdi_
.PostScriptDC_GetResolution(*args
) 
4798 #--------------------------------------------------------------------------- 
4800 class MetaFile(_core
.Object
): 
4801     """Proxy of C++ MetaFile class""" 
4802     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4803     __repr__ 
= _swig_repr
 
4804     def __init__(self
, *args
, **kwargs
):  
4805         """__init__(self, String filename=EmptyString) -> MetaFile""" 
4806         _gdi_
.MetaFile_swiginit(self
,_gdi_
.new_MetaFile(*args
, **kwargs
)) 
4807 _gdi_
.MetaFile_swigregister(MetaFile
) 
4809 class MetaFileDC(DC
): 
4810     """Proxy of C++ MetaFileDC class""" 
4811     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4812     __repr__ 
= _swig_repr
 
4813     def __init__(self
, *args
, **kwargs
):  
4815         __init__(self, String filename=EmptyString, int width=0, int height=0,  
4816             String description=EmptyString) -> MetaFileDC 
4818         _gdi_
.MetaFileDC_swiginit(self
,_gdi_
.new_MetaFileDC(*args
, **kwargs
)) 
4819 _gdi_
.MetaFileDC_swigregister(MetaFileDC
) 
4821 class PrinterDC(DC
): 
4822     """Proxy of C++ PrinterDC class""" 
4823     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4824     __repr__ 
= _swig_repr
 
4825     def __init__(self
, *args
, **kwargs
):  
4826         """__init__(self, wxPrintData printData) -> PrinterDC""" 
4827         _gdi_
.PrinterDC_swiginit(self
,_gdi_
.new_PrinterDC(*args
, **kwargs
)) 
4828 _gdi_
.PrinterDC_swigregister(PrinterDC
) 
4830 #--------------------------------------------------------------------------- 
4832 class GraphicsPath(object): 
4833     """Proxy of C++ GraphicsPath class""" 
4834     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4835     def __init__(self
): raise AttributeError, "No constructor defined" 
4836     __repr__ 
= _swig_repr
 
4837     __swig_destroy__ 
= _gdi_
.delete_GraphicsPath
 
4838     __del__ 
= lambda self 
: None; 
4839     def MoveToPoint(*args
, **kwargs
): 
4841         MoveToPoint(self, Double x, Double y) 
4843         Begins a new subpath at (x,y) 
4845         return _gdi_
.GraphicsPath_MoveToPoint(*args
, **kwargs
) 
4847     def AddLineToPoint(*args
, **kwargs
): 
4849         AddLineToPoint(self, Double x, Double y) 
4851         Adds a straight line from the current point to (x,y)  
4853         return _gdi_
.GraphicsPath_AddLineToPoint(*args
, **kwargs
) 
4855     def AddCurveToPoint(*args
, **kwargs
): 
4857         AddCurveToPoint(self, Double cx1, Double cy1, Double cx2, Double cy2, Double x,  
4860         Adds a cubic Bezier curve from the current point, using two control 
4861         points and an end point 
4863         return _gdi_
.GraphicsPath_AddCurveToPoint(*args
, **kwargs
) 
4865     def CloseSubpath(*args
, **kwargs
): 
4869         closes the current sub-path 
4871         return _gdi_
.GraphicsPath_CloseSubpath(*args
, **kwargs
) 
4873     def GetCurrentPoint(*args
, **kwargs
): 
4875         GetCurrentPoint(self) -> Point2D 
4877         Gets the last point of the current path, (0,0) if not yet set 
4879         return _gdi_
.GraphicsPath_GetCurrentPoint(*args
, **kwargs
) 
4881     def AddArc(*args
, **kwargs
): 
4883         AddArc(self, Double x, Double y, Double r, Double startAngle, Double endAngle,  
4886         Adds an arc of a circle centering at (x,y) with radius (r) from 
4887         startAngle to endAngle 
4889         return _gdi_
.GraphicsPath_AddArc(*args
, **kwargs
) 
4891     def AddQuadCurveToPoint(*args
, **kwargs
): 
4893         AddQuadCurveToPoint(self, Double cx, Double cy, Double x, Double y) 
4895         Adds a quadratic Bezier curve from the current point, using a control 
4896         point and an end point 
4898         return _gdi_
.GraphicsPath_AddQuadCurveToPoint(*args
, **kwargs
) 
4900     def AddRectangle(*args
, **kwargs
): 
4902         AddRectangle(self, Double x, Double y, Double w, Double h) 
4904         Appends a rectangle as a new closed subpath 
4906         return _gdi_
.GraphicsPath_AddRectangle(*args
, **kwargs
) 
4908     def AddCircle(*args
, **kwargs
): 
4910         AddCircle(self, Double x, Double y, Double r) 
4912         Appends a circle as a new closed subpath with the given radius. 
4914         return _gdi_
.GraphicsPath_AddCircle(*args
, **kwargs
) 
4916     def AddArcToPoint(*args
, **kwargs
): 
4918         AddArcToPoint(self, Double x1, Double y1, Double x2, Double y2, Double r) 
4920         Draws a an arc to two tangents connecting (current) to (x1,y1) and (x1,y1) 
4921         to (x2,y2), also a straight line from (current) to (x1,y1) 
4923         return _gdi_
.GraphicsPath_AddArcToPoint(*args
, **kwargs
) 
4925 _gdi_
.GraphicsPath_swigregister(GraphicsPath
) 
4927 class GraphicsContext(object): 
4928     """Proxy of C++ GraphicsContext class""" 
4929     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
4930     def __init__(self
): raise AttributeError, "No constructor defined" 
4931     __repr__ 
= _swig_repr
 
4932     __swig_destroy__ 
= _gdi_
.delete_GraphicsContext
 
4933     __del__ 
= lambda self 
: None; 
4936         Create(WindowDC dc) -> GraphicsContext 
4937         Create(Window window) -> GraphicsContext 
4939         val 
= _gdi_
.GraphicsContext_Create(*args
) 
4940         val
.__dc 
= args
[0] # save a ref so the dc will not be deleted before self 
4943     Create 
= staticmethod(Create
) 
4944     def CreateFromNative(*args
, **kwargs
): 
4945         """CreateFromNative(void context) -> GraphicsContext""" 
4946         return _gdi_
.GraphicsContext_CreateFromNative(*args
, **kwargs
) 
4948     CreateFromNative 
= staticmethod(CreateFromNative
) 
4949     def CreatePath(*args
, **kwargs
): 
4950         """CreatePath(self) -> GraphicsPath""" 
4951         return _gdi_
.GraphicsContext_CreatePath(*args
, **kwargs
) 
4953     def PushState(*args
, **kwargs
): 
4954         """PushState(self)""" 
4955         return _gdi_
.GraphicsContext_PushState(*args
, **kwargs
) 
4957     def PopState(*args
, **kwargs
): 
4958         """PopState(self)""" 
4959         return _gdi_
.GraphicsContext_PopState(*args
, **kwargs
) 
4961     def ClipRegion(*args
, **kwargs
): 
4962         """ClipRegion(self, Region region)""" 
4963         return _gdi_
.GraphicsContext_ClipRegion(*args
, **kwargs
) 
4965     def Clip(*args
, **kwargs
): 
4966         """Clip(self, Double x, Double y, Double w, Double h)""" 
4967         return _gdi_
.GraphicsContext_Clip(*args
, **kwargs
) 
4969     def ResetClip(*args
, **kwargs
): 
4970         """ResetClip(self)""" 
4971         return _gdi_
.GraphicsContext_ResetClip(*args
, **kwargs
) 
4973     def GetNativeContext(*args
, **kwargs
): 
4974         """GetNativeContext(self) -> void""" 
4975         return _gdi_
.GraphicsContext_GetNativeContext(*args
, **kwargs
) 
4977     def Translate(*args
, **kwargs
): 
4978         """Translate(self, Double dx, Double dy)""" 
4979         return _gdi_
.GraphicsContext_Translate(*args
, **kwargs
) 
4981     def Scale(*args
, **kwargs
): 
4982         """Scale(self, Double xScale, Double yScale)""" 
4983         return _gdi_
.GraphicsContext_Scale(*args
, **kwargs
) 
4985     def Rotate(*args
, **kwargs
): 
4986         """Rotate(self, Double angle)""" 
4987         return _gdi_
.GraphicsContext_Rotate(*args
, **kwargs
) 
4989     def SetPen(*args
, **kwargs
): 
4990         """SetPen(self, Pen pen)""" 
4991         return _gdi_
.GraphicsContext_SetPen(*args
, **kwargs
) 
4993     def SetBrush(*args
, **kwargs
): 
4994         """SetBrush(self, Brush brush)""" 
4995         return _gdi_
.GraphicsContext_SetBrush(*args
, **kwargs
) 
4997     def SetLinearGradientBrush(*args
, **kwargs
): 
4999         SetLinearGradientBrush(self, Double x1, Double y1, Double x2, Double y2, Colour c1,  
5002         return _gdi_
.GraphicsContext_SetLinearGradientBrush(*args
, **kwargs
) 
5004     def SetRadialGradientBrush(*args
, **kwargs
): 
5006         SetRadialGradientBrush(self, Double xo, Double yo, Double xc, Double yc, Double radius,  
5007             Colour oColour, Colour cColour) 
5009         return _gdi_
.GraphicsContext_SetRadialGradientBrush(*args
, **kwargs
) 
5011     def SetFont(*args
, **kwargs
): 
5012         """SetFont(self, Font font)""" 
5013         return _gdi_
.GraphicsContext_SetFont(*args
, **kwargs
) 
5015     def SetTextColour(*args
, **kwargs
): 
5016         """SetTextColour(self, Colour col)""" 
5017         return _gdi_
.GraphicsContext_SetTextColour(*args
, **kwargs
) 
5019     def StrokePath(*args
, **kwargs
): 
5020         """StrokePath(self, GraphicsPath path)""" 
5021         return _gdi_
.GraphicsContext_StrokePath(*args
, **kwargs
) 
5023     def FillPath(*args
, **kwargs
): 
5024         """FillPath(self, GraphicsPath path, int fillStyle=WINDING_RULE)""" 
5025         return _gdi_
.GraphicsContext_FillPath(*args
, **kwargs
) 
5027     def DrawPath(*args
, **kwargs
): 
5028         """DrawPath(self, GraphicsPath path, int fillStyle=WINDING_RULE)""" 
5029         return _gdi_
.GraphicsContext_DrawPath(*args
, **kwargs
) 
5031     def DrawText(*args
, **kwargs
): 
5032         """DrawText(self, String str, Double x, Double y)""" 
5033         return _gdi_
.GraphicsContext_DrawText(*args
, **kwargs
) 
5035     def DrawRotatedText(*args
, **kwargs
): 
5036         """DrawRotatedText(self, String str, Double x, Double y, Double angle)""" 
5037         return _gdi_
.GraphicsContext_DrawRotatedText(*args
, **kwargs
) 
5039     def GetFullTextExtent(*args
, **kwargs
): 
5040         """GetFullTextExtent(self, text) --> (width, height, descent, externalLeading)""" 
5041         return _gdi_
.GraphicsContext_GetFullTextExtent(*args
, **kwargs
) 
5043     def GetTextExtent(*args
, **kwargs
): 
5044         """GetTextExtent(self, text) --> (width, height)""" 
5045         return _gdi_
.GraphicsContext_GetTextExtent(*args
, **kwargs
) 
5047     def GetPartialTextExtents(*args
, **kwargs
): 
5048         """GetPartialTextExtents(self, text) -> [widths]""" 
5049         return _gdi_
.GraphicsContext_GetPartialTextExtents(*args
, **kwargs
) 
5051     def DrawBitmap(*args
, **kwargs
): 
5052         """DrawBitmap(self, Bitmap bmp, Double x, Double y, Double w, Double h)""" 
5053         return _gdi_
.GraphicsContext_DrawBitmap(*args
, **kwargs
) 
5055     def DrawIcon(*args
, **kwargs
): 
5056         """DrawIcon(self, Icon icon, Double x, Double y, Double w, Double h)""" 
5057         return _gdi_
.GraphicsContext_DrawIcon(*args
, **kwargs
) 
5059     def StrokeLine(*args
, **kwargs
): 
5060         """StrokeLine(self, Double x1, Double y1, Double x2, Double y2)""" 
5061         return _gdi_
.GraphicsContext_StrokeLine(*args
, **kwargs
) 
5063     def StrokeLines(*args
, **kwargs
): 
5064         """StrokeLines(self, List points)""" 
5065         return _gdi_
.GraphicsContext_StrokeLines(*args
, **kwargs
) 
5067     def StrokeLineSegements(*args
, **kwargs
): 
5068         """StrokeLineSegements(self, PyObject beginPoints, PyObject endPoints)""" 
5069         return _gdi_
.GraphicsContext_StrokeLineSegements(*args
, **kwargs
) 
5071     def DrawLines(*args
, **kwargs
): 
5072         """DrawLines(self, size_t points, int fillStyle=WINDING_RULE)""" 
5073         return _gdi_
.GraphicsContext_DrawLines(*args
, **kwargs
) 
5075     def DrawRectangle(*args
, **kwargs
): 
5076         """DrawRectangle(self, Double x, Double y, Double w, Double h)""" 
5077         return _gdi_
.GraphicsContext_DrawRectangle(*args
, **kwargs
) 
5079     def DrawEllipse(*args
, **kwargs
): 
5080         """DrawEllipse(self, Double x, Double y, Double w, Double h)""" 
5081         return _gdi_
.GraphicsContext_DrawEllipse(*args
, **kwargs
) 
5083     def DrawRoundedRectangle(*args
, **kwargs
): 
5084         """DrawRoundedRectangle(self, Double x, Double y, Double w, Double h, Double radius)""" 
5085         return _gdi_
.GraphicsContext_DrawRoundedRectangle(*args
, **kwargs
) 
5087 _gdi_
.GraphicsContext_swigregister(GraphicsContext
) 
5089 def GraphicsContext_Create(*args
): 
5091     Create(WindowDC dc) -> GraphicsContext 
5092     GraphicsContext_Create(Window window) -> GraphicsContext 
5094   val 
= _gdi_
.GraphicsContext_Create(*args
) 
5095   val
.__dc 
= args
[0] # save a ref so the dc will not be deleted before self 
5098 def GraphicsContext_CreateFromNative(*args
, **kwargs
): 
5099   """GraphicsContext_CreateFromNative(void context) -> GraphicsContext""" 
5100   return _gdi_
.GraphicsContext_CreateFromNative(*args
, **kwargs
) 
5103     """Proxy of C++ GCDC class""" 
5104     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5105     __repr__ 
= _swig_repr
 
5106     def __init__(self
, *args
, **kwargs
):  
5107         """__init__(self, WindowDC dc) -> GCDC""" 
5108         _gdi_
.GCDC_swiginit(self
,_gdi_
.new_GCDC(*args
, **kwargs
)) 
5109         self
.__dc 
= args
[0] # save a ref so the other dc will not be deleted before self 
5111     __swig_destroy__ 
= _gdi_
.delete_GCDC
 
5112     __del__ 
= lambda self 
: None; 
5113     def GetGraphicsContext(*args
, **kwargs
): 
5114         """GetGraphicsContext(self) -> GraphicsContext""" 
5115         return _gdi_
.GCDC_GetGraphicsContext(*args
, **kwargs
) 
5117     def SetGraphicsContext(*args
, **kwargs
): 
5118         """SetGraphicsContext(self, GraphicsContext ctx)""" 
5119         return _gdi_
.GCDC_SetGraphicsContext(*args
, **kwargs
) 
5121     GraphicsContext 
= property(GetGraphicsContext
,SetGraphicsContext
)  
5122 _gdi_
.GCDC_swigregister(GCDC
) 
5124 class Overlay(object): 
5125     """Proxy of C++ Overlay class""" 
5126     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5127     __repr__ 
= _swig_repr
 
5128     def __init__(self
, *args
, **kwargs
):  
5129         """__init__(self) -> Overlay""" 
5130         _gdi_
.Overlay_swiginit(self
,_gdi_
.new_Overlay(*args
, **kwargs
)) 
5131     __swig_destroy__ 
= _gdi_
.delete_Overlay
 
5132     __del__ 
= lambda self 
: None; 
5133     def Reset(*args
, **kwargs
): 
5135         return _gdi_
.Overlay_Reset(*args
, **kwargs
) 
5137 _gdi_
.Overlay_swigregister(Overlay
) 
5139 class DCOverlay(object): 
5140     """Proxy of C++ DCOverlay class""" 
5141     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5142     __repr__ 
= _swig_repr
 
5143     def __init__(self
, *args
):  
5145         __init__(self, Overlay overlay, WindowDC dc, int x, int y, int width,  
5146             int height) -> DCOverlay 
5147         __init__(self, Overlay overlay, WindowDC dc) -> DCOverlay 
5149         _gdi_
.DCOverlay_swiginit(self
,_gdi_
.new_DCOverlay(*args
)) 
5150     __swig_destroy__ 
= _gdi_
.delete_DCOverlay
 
5151     __del__ 
= lambda self 
: None; 
5152     def Clear(*args
, **kwargs
): 
5154         return _gdi_
.DCOverlay_Clear(*args
, **kwargs
) 
5156 _gdi_
.DCOverlay_swigregister(DCOverlay
) 
5158 #--------------------------------------------------------------------------- 
5160 IMAGELIST_DRAW_NORMAL 
= _gdi_
.IMAGELIST_DRAW_NORMAL
 
5161 IMAGELIST_DRAW_TRANSPARENT 
= _gdi_
.IMAGELIST_DRAW_TRANSPARENT
 
5162 IMAGELIST_DRAW_SELECTED 
= _gdi_
.IMAGELIST_DRAW_SELECTED
 
5163 IMAGELIST_DRAW_FOCUSED 
= _gdi_
.IMAGELIST_DRAW_FOCUSED
 
5164 IMAGE_LIST_NORMAL 
= _gdi_
.IMAGE_LIST_NORMAL
 
5165 IMAGE_LIST_SMALL 
= _gdi_
.IMAGE_LIST_SMALL
 
5166 IMAGE_LIST_STATE 
= _gdi_
.IMAGE_LIST_STATE
 
5167 class ImageList(_core
.Object
): 
5168     """Proxy of C++ ImageList class""" 
5169     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5170     __repr__ 
= _swig_repr
 
5171     def __init__(self
, *args
, **kwargs
):  
5172         """__init__(self, int width, int height, int mask=True, int initialCount=1) -> ImageList""" 
5173         _gdi_
.ImageList_swiginit(self
,_gdi_
.new_ImageList(*args
, **kwargs
)) 
5174     __swig_destroy__ 
= _gdi_
.delete_ImageList
 
5175     __del__ 
= lambda self 
: None; 
5176     def Add(*args
, **kwargs
): 
5177         """Add(self, Bitmap bitmap, Bitmap mask=NullBitmap) -> int""" 
5178         return _gdi_
.ImageList_Add(*args
, **kwargs
) 
5180     def AddWithColourMask(*args
, **kwargs
): 
5181         """AddWithColourMask(self, Bitmap bitmap, Colour maskColour) -> int""" 
5182         return _gdi_
.ImageList_AddWithColourMask(*args
, **kwargs
) 
5184     def AddIcon(*args
, **kwargs
): 
5185         """AddIcon(self, Icon icon) -> int""" 
5186         return _gdi_
.ImageList_AddIcon(*args
, **kwargs
) 
5188     def GetBitmap(*args
, **kwargs
): 
5189         """GetBitmap(self, int index) -> Bitmap""" 
5190         return _gdi_
.ImageList_GetBitmap(*args
, **kwargs
) 
5192     def GetIcon(*args
, **kwargs
): 
5193         """GetIcon(self, int index) -> Icon""" 
5194         return _gdi_
.ImageList_GetIcon(*args
, **kwargs
) 
5196     def Replace(*args
, **kwargs
): 
5197         """Replace(self, int index, Bitmap bitmap, Bitmap mask=NullBitmap) -> bool""" 
5198         return _gdi_
.ImageList_Replace(*args
, **kwargs
) 
5200     def Draw(*args
, **kwargs
): 
5202         Draw(self, int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,  
5203             bool solidBackground=False) -> bool 
5205         return _gdi_
.ImageList_Draw(*args
, **kwargs
) 
5207     def GetImageCount(*args
, **kwargs
): 
5208         """GetImageCount(self) -> int""" 
5209         return _gdi_
.ImageList_GetImageCount(*args
, **kwargs
) 
5211     def Remove(*args
, **kwargs
): 
5212         """Remove(self, int index) -> bool""" 
5213         return _gdi_
.ImageList_Remove(*args
, **kwargs
) 
5215     def RemoveAll(*args
, **kwargs
): 
5216         """RemoveAll(self) -> bool""" 
5217         return _gdi_
.ImageList_RemoveAll(*args
, **kwargs
) 
5219     def GetSize(*args
, **kwargs
): 
5220         """GetSize(index) -> (width,height)""" 
5221         return _gdi_
.ImageList_GetSize(*args
, **kwargs
) 
5223     ImageCount 
= property(GetImageCount
,doc
="See `GetImageCount`")  
5224     Size 
= property(GetSize
,doc
="See `GetSize`")  
5225 _gdi_
.ImageList_swigregister(ImageList
) 
5227 #--------------------------------------------------------------------------- 
5229 class StockGDI(object): 
5230     """Proxy of C++ StockGDI class""" 
5231     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5232     __repr__ 
= _swig_repr
 
5233     BRUSH_BLACK 
= _gdi_
.StockGDI_BRUSH_BLACK
 
5234     BRUSH_BLUE 
= _gdi_
.StockGDI_BRUSH_BLUE
 
5235     BRUSH_CYAN 
= _gdi_
.StockGDI_BRUSH_CYAN
 
5236     BRUSH_GREEN 
= _gdi_
.StockGDI_BRUSH_GREEN
 
5237     BRUSH_GREY 
= _gdi_
.StockGDI_BRUSH_GREY
 
5238     BRUSH_LIGHTGREY 
= _gdi_
.StockGDI_BRUSH_LIGHTGREY
 
5239     BRUSH_MEDIUMGREY 
= _gdi_
.StockGDI_BRUSH_MEDIUMGREY
 
5240     BRUSH_RED 
= _gdi_
.StockGDI_BRUSH_RED
 
5241     BRUSH_TRANSPARENT 
= _gdi_
.StockGDI_BRUSH_TRANSPARENT
 
5242     BRUSH_WHITE 
= _gdi_
.StockGDI_BRUSH_WHITE
 
5243     COLOUR_BLACK 
= _gdi_
.StockGDI_COLOUR_BLACK
 
5244     COLOUR_BLUE 
= _gdi_
.StockGDI_COLOUR_BLUE
 
5245     COLOUR_CYAN 
= _gdi_
.StockGDI_COLOUR_CYAN
 
5246     COLOUR_GREEN 
= _gdi_
.StockGDI_COLOUR_GREEN
 
5247     COLOUR_LIGHTGREY 
= _gdi_
.StockGDI_COLOUR_LIGHTGREY
 
5248     COLOUR_RED 
= _gdi_
.StockGDI_COLOUR_RED
 
5249     COLOUR_WHITE 
= _gdi_
.StockGDI_COLOUR_WHITE
 
5250     CURSOR_CROSS 
= _gdi_
.StockGDI_CURSOR_CROSS
 
5251     CURSOR_HOURGLASS 
= _gdi_
.StockGDI_CURSOR_HOURGLASS
 
5252     CURSOR_STANDARD 
= _gdi_
.StockGDI_CURSOR_STANDARD
 
5253     FONT_ITALIC 
= _gdi_
.StockGDI_FONT_ITALIC
 
5254     FONT_NORMAL 
= _gdi_
.StockGDI_FONT_NORMAL
 
5255     FONT_SMALL 
= _gdi_
.StockGDI_FONT_SMALL
 
5256     FONT_SWISS 
= _gdi_
.StockGDI_FONT_SWISS
 
5257     PEN_BLACK 
= _gdi_
.StockGDI_PEN_BLACK
 
5258     PEN_BLACKDASHED 
= _gdi_
.StockGDI_PEN_BLACKDASHED
 
5259     PEN_CYAN 
= _gdi_
.StockGDI_PEN_CYAN
 
5260     PEN_GREEN 
= _gdi_
.StockGDI_PEN_GREEN
 
5261     PEN_GREY 
= _gdi_
.StockGDI_PEN_GREY
 
5262     PEN_LIGHTGREY 
= _gdi_
.StockGDI_PEN_LIGHTGREY
 
5263     PEN_MEDIUMGREY 
= _gdi_
.StockGDI_PEN_MEDIUMGREY
 
5264     PEN_RED 
= _gdi_
.StockGDI_PEN_RED
 
5265     PEN_TRANSPARENT 
= _gdi_
.StockGDI_PEN_TRANSPARENT
 
5266     PEN_WHITE 
= _gdi_
.StockGDI_PEN_WHITE
 
5267     ITEMCOUNT 
= _gdi_
.StockGDI_ITEMCOUNT
 
5268     def __init__(self
, *args
, **kwargs
):  
5269         """__init__(self) -> StockGDI""" 
5270         _gdi_
.StockGDI_swiginit(self
,_gdi_
.new_StockGDI(*args
, **kwargs
)) 
5271     __swig_destroy__ 
= _gdi_
.delete_StockGDI
 
5272     __del__ 
= lambda self 
: None; 
5273     def DeleteAll(*args
, **kwargs
): 
5275         return _gdi_
.StockGDI_DeleteAll(*args
, **kwargs
) 
5277     DeleteAll 
= staticmethod(DeleteAll
) 
5278     def instance(*args
, **kwargs
): 
5279         """instance() -> StockGDI""" 
5280         return _gdi_
.StockGDI_instance(*args
, **kwargs
) 
5282     instance 
= staticmethod(instance
) 
5283     def GetBrush(*args
, **kwargs
): 
5284         """GetBrush(int item) -> Brush""" 
5285         return _gdi_
.StockGDI_GetBrush(*args
, **kwargs
) 
5287     GetBrush 
= staticmethod(GetBrush
) 
5288     def GetColour(*args
, **kwargs
): 
5289         """GetColour(int item) -> Colour""" 
5290         return _gdi_
.StockGDI_GetColour(*args
, **kwargs
) 
5292     GetColour 
= staticmethod(GetColour
) 
5293     def GetCursor(*args
, **kwargs
): 
5294         """GetCursor(int item) -> Cursor""" 
5295         return _gdi_
.StockGDI_GetCursor(*args
, **kwargs
) 
5297     GetCursor 
= staticmethod(GetCursor
) 
5298     def GetPen(*args
, **kwargs
): 
5299         """GetPen(int item) -> Pen""" 
5300         return _gdi_
.StockGDI_GetPen(*args
, **kwargs
) 
5302     GetPen 
= staticmethod(GetPen
) 
5303     def GetFont(*args
, **kwargs
): 
5304         """GetFont(self, int item) -> Font""" 
5305         return _gdi_
.StockGDI_GetFont(*args
, **kwargs
) 
5307     def _initStockObjects(): 
5309         wx
.ITALIC_FONT
.this  
= StockGDI
.instance().GetFont(StockGDI
.FONT_ITALIC
).this
 
5310         wx
.NORMAL_FONT
.this  
= StockGDI
.instance().GetFont(StockGDI
.FONT_NORMAL
).this
 
5311         wx
.SMALL_FONT
.this   
= StockGDI
.instance().GetFont(StockGDI
.FONT_SMALL
).this
 
5312         wx
.SWISS_FONT
.this   
= StockGDI
.instance().GetFont(StockGDI
.FONT_SWISS
).this
 
5314         wx
.BLACK_DASHED_PEN
.this  
= StockGDI
.GetPen(StockGDI
.PEN_BLACKDASHED
).this
 
5315         wx
.BLACK_PEN
.this         
= StockGDI
.GetPen(StockGDI
.PEN_BLACK
).this
 
5316         wx
.CYAN_PEN
.this          
= StockGDI
.GetPen(StockGDI
.PEN_CYAN
).this
 
5317         wx
.GREEN_PEN
.this         
= StockGDI
.GetPen(StockGDI
.PEN_GREEN
).this
 
5318         wx
.GREY_PEN
.this          
= StockGDI
.GetPen(StockGDI
.PEN_GREY
).this
 
5319         wx
.LIGHT_GREY_PEN
.this    
= StockGDI
.GetPen(StockGDI
.PEN_LIGHTGREY
).this
 
5320         wx
.MEDIUM_GREY_PEN
.this   
= StockGDI
.GetPen(StockGDI
.PEN_MEDIUMGREY
).this
 
5321         wx
.RED_PEN
.this           
= StockGDI
.GetPen(StockGDI
.PEN_RED
).this
 
5322         wx
.TRANSPARENT_PEN
.this   
= StockGDI
.GetPen(StockGDI
.PEN_TRANSPARENT
).this
 
5323         wx
.WHITE_PEN
.this         
= StockGDI
.GetPen(StockGDI
.PEN_WHITE
).this
 
5325         wx
.BLACK_BRUSH
.this        
= StockGDI
.GetBrush(StockGDI
.BRUSH_BLACK
).this
 
5326         wx
.BLUE_BRUSH
.this         
= StockGDI
.GetBrush(StockGDI
.BRUSH_BLUE
).this
 
5327         wx
.CYAN_BRUSH
.this         
= StockGDI
.GetBrush(StockGDI
.BRUSH_CYAN
).this
 
5328         wx
.GREEN_BRUSH
.this        
= StockGDI
.GetBrush(StockGDI
.BRUSH_GREEN
).this
 
5329         wx
.GREY_BRUSH
.this         
= StockGDI
.GetBrush(StockGDI
.BRUSH_GREY
).this
 
5330         wx
.LIGHT_GREY_BRUSH
.this   
= StockGDI
.GetBrush(StockGDI
.BRUSH_LIGHTGREY
).this
 
5331         wx
.MEDIUM_GREY_BRUSH
.this  
= StockGDI
.GetBrush(StockGDI
.BRUSH_MEDIUMGREY
).this
 
5332         wx
.RED_BRUSH
.this          
= StockGDI
.GetBrush(StockGDI
.BRUSH_RED
).this
 
5333         wx
.TRANSPARENT_BRUSH
.this  
= StockGDI
.GetBrush(StockGDI
.BRUSH_TRANSPARENT
).this
 
5334         wx
.WHITE_BRUSH
.this        
= StockGDI
.GetBrush(StockGDI
.BRUSH_WHITE
).this
 
5336         wx
.BLACK
.this       
= StockGDI
.GetColour(StockGDI
.COLOUR_BLACK
).this
 
5337         wx
.BLUE
.this        
= StockGDI
.GetColour(StockGDI
.COLOUR_BLUE
).this
 
5338         wx
.CYAN
.this        
= StockGDI
.GetColour(StockGDI
.COLOUR_CYAN
).this
 
5339         wx
.GREEN
.this       
= StockGDI
.GetColour(StockGDI
.COLOUR_GREEN
).this
 
5340         wx
.LIGHT_GREY
.this  
= StockGDI
.GetColour(StockGDI
.COLOUR_LIGHTGREY
).this
 
5341         wx
.RED
.this         
= StockGDI
.GetColour(StockGDI
.COLOUR_RED
).this
 
5342         wx
.WHITE
.this       
= StockGDI
.GetColour(StockGDI
.COLOUR_WHITE
).this
 
5344         wx
.CROSS_CURSOR
.this      
= StockGDI
.GetCursor(StockGDI
.CURSOR_CROSS
).this
 
5345         wx
.HOURGLASS_CURSOR
.this  
= StockGDI
.GetCursor(StockGDI
.CURSOR_HOURGLASS
).this
 
5346         wx
.STANDARD_CURSOR
.this   
= StockGDI
.GetCursor(StockGDI
.CURSOR_STANDARD
).this
 
5348         wx
.TheFontList
.this       
= _wxPyInitTheFontList().this
 
5349         wx
.ThePenList
.this        
= _wxPyInitThePenList().this
 
5350         wx
.TheBrushList
.this      
= _wxPyInitTheBrushList().this
 
5351         wx
.TheColourDatabase
.this 
= _wxPyInitTheColourDatabase().this
 
5354     _initStockObjects 
= staticmethod(_initStockObjects
) 
5356 _gdi_
.StockGDI_swigregister(StockGDI
) 
5358 def StockGDI_DeleteAll(*args
): 
5359   """StockGDI_DeleteAll()""" 
5360   return _gdi_
.StockGDI_DeleteAll(*args
) 
5362 def StockGDI_instance(*args
): 
5363   """StockGDI_instance() -> StockGDI""" 
5364   return _gdi_
.StockGDI_instance(*args
) 
5366 def StockGDI_GetBrush(*args
, **kwargs
): 
5367   """StockGDI_GetBrush(int item) -> Brush""" 
5368   return _gdi_
.StockGDI_GetBrush(*args
, **kwargs
) 
5370 def StockGDI_GetColour(*args
, **kwargs
): 
5371   """StockGDI_GetColour(int item) -> Colour""" 
5372   return _gdi_
.StockGDI_GetColour(*args
, **kwargs
) 
5374 def StockGDI_GetCursor(*args
, **kwargs
): 
5375   """StockGDI_GetCursor(int item) -> Cursor""" 
5376   return _gdi_
.StockGDI_GetCursor(*args
, **kwargs
) 
5378 def StockGDI_GetPen(*args
, **kwargs
): 
5379   """StockGDI_GetPen(int item) -> Pen""" 
5380   return _gdi_
.StockGDI_GetPen(*args
, **kwargs
) 
5382 # Create an uninitialized instance for the stock objects, they will 
5383 # be initialized later when the wx.App object is created. 
5384 ITALIC_FONT  
= Font
.__new
__(Font
) 
5385 NORMAL_FONT  
= Font
.__new
__(Font
) 
5386 SMALL_FONT   
= Font
.__new
__(Font
) 
5387 SWISS_FONT   
= Font
.__new
__(Font
) 
5389 BLACK_DASHED_PEN  
= Pen
.__new
__(Pen
) 
5390 BLACK_PEN         
= Pen
.__new
__(Pen
) 
5391 CYAN_PEN          
= Pen
.__new
__(Pen
) 
5392 GREEN_PEN         
= Pen
.__new
__(Pen
) 
5393 GREY_PEN          
= Pen
.__new
__(Pen
) 
5394 LIGHT_GREY_PEN    
= Pen
.__new
__(Pen
) 
5395 MEDIUM_GREY_PEN   
= Pen
.__new
__(Pen
) 
5396 RED_PEN           
= Pen
.__new
__(Pen
) 
5397 TRANSPARENT_PEN   
= Pen
.__new
__(Pen
) 
5398 WHITE_PEN         
= Pen
.__new
__(Pen
) 
5400 BLACK_BRUSH        
= Brush
.__new
__(Brush
) 
5401 BLUE_BRUSH         
= Brush
.__new
__(Brush
) 
5402 CYAN_BRUSH         
= Brush
.__new
__(Brush
) 
5403 GREEN_BRUSH        
= Brush
.__new
__(Brush
) 
5404 GREY_BRUSH         
= Brush
.__new
__(Brush
) 
5405 LIGHT_GREY_BRUSH   
= Brush
.__new
__(Brush
) 
5406 MEDIUM_GREY_BRUSH  
= Brush
.__new
__(Brush
) 
5407 RED_BRUSH          
= Brush
.__new
__(Brush
) 
5408 TRANSPARENT_BRUSH  
= Brush
.__new
__(Brush
) 
5409 WHITE_BRUSH        
= Brush
.__new
__(Brush
) 
5411 BLACK       
= Colour
.__new
__(Colour
) 
5412 BLUE        
= Colour
.__new
__(Colour
) 
5413 CYAN        
= Colour
.__new
__(Colour
) 
5414 GREEN       
= Colour
.__new
__(Colour
) 
5415 LIGHT_GREY  
= Colour
.__new
__(Colour
) 
5416 RED         
= Colour
.__new
__(Colour
) 
5417 WHITE       
= Colour
.__new
__(Colour
) 
5419 CROSS_CURSOR      
= Cursor
.__new
__(Cursor
) 
5420 HOURGLASS_CURSOR  
= Cursor
.__new
__(Cursor
) 
5421 STANDARD_CURSOR   
= Cursor
.__new
__(Cursor
) 
5423 class GDIObjListBase(object): 
5424     """Proxy of C++ GDIObjListBase class""" 
5425     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5426     __repr__ 
= _swig_repr
 
5427     def __init__(self
, *args
, **kwargs
):  
5428         """__init__(self) -> GDIObjListBase""" 
5429         _gdi_
.GDIObjListBase_swiginit(self
,_gdi_
.new_GDIObjListBase(*args
, **kwargs
)) 
5430     __swig_destroy__ 
= _gdi_
.delete_GDIObjListBase
 
5431     __del__ 
= lambda self 
: None; 
5432 _gdi_
.GDIObjListBase_swigregister(GDIObjListBase
) 
5434 NullBitmap 
= cvar
.NullBitmap
 
5435 NullIcon 
= cvar
.NullIcon
 
5436 NullCursor 
= cvar
.NullCursor
 
5437 NullPen 
= cvar
.NullPen
 
5438 NullBrush 
= cvar
.NullBrush
 
5439 NullPalette 
= cvar
.NullPalette
 
5440 NullFont 
= cvar
.NullFont
 
5441 NullColour 
= cvar
.NullColour
 
5443 class PenList(GDIObjListBase
): 
5444     """Proxy of C++ PenList class""" 
5445     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5446     def __init__(self
): raise AttributeError, "No constructor defined" 
5447     __repr__ 
= _swig_repr
 
5448     def FindOrCreatePen(*args
, **kwargs
): 
5449         """FindOrCreatePen(self, Colour colour, int width, int style) -> Pen""" 
5450         return _gdi_
.PenList_FindOrCreatePen(*args
, **kwargs
) 
5452     def AddPen(*args
, **kwargs
): 
5453         """AddPen(self, Pen pen)""" 
5454         return _gdi_
.PenList_AddPen(*args
, **kwargs
) 
5456     def RemovePen(*args
, **kwargs
): 
5457         """RemovePen(self, Pen pen)""" 
5458         return _gdi_
.PenList_RemovePen(*args
, **kwargs
) 
5460     AddPen 
= wx
._deprecated
(AddPen
) 
5461     RemovePen 
= wx
._deprecated
(RemovePen
) 
5463 _gdi_
.PenList_swigregister(PenList
) 
5465 class BrushList(GDIObjListBase
): 
5466     """Proxy of C++ BrushList class""" 
5467     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5468     def __init__(self
): raise AttributeError, "No constructor defined" 
5469     __repr__ 
= _swig_repr
 
5470     def FindOrCreateBrush(*args
, **kwargs
): 
5471         """FindOrCreateBrush(self, Colour colour, int style=SOLID) -> Brush""" 
5472         return _gdi_
.BrushList_FindOrCreateBrush(*args
, **kwargs
) 
5474     def AddBrush(*args
, **kwargs
): 
5475         """AddBrush(self, Brush brush)""" 
5476         return _gdi_
.BrushList_AddBrush(*args
, **kwargs
) 
5478     def RemoveBrush(*args
, **kwargs
): 
5479         """RemoveBrush(self, Brush brush)""" 
5480         return _gdi_
.BrushList_RemoveBrush(*args
, **kwargs
) 
5482     AddBrush 
= wx
._deprecated
(AddBrush
) 
5483     RemoveBrush 
= wx
._deprecated
(RemoveBrush
) 
5485 _gdi_
.BrushList_swigregister(BrushList
) 
5487 class FontList(GDIObjListBase
): 
5488     """Proxy of C++ FontList class""" 
5489     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5490     def __init__(self
): raise AttributeError, "No constructor defined" 
5491     __repr__ 
= _swig_repr
 
5492     def FindOrCreateFont(*args
, **kwargs
): 
5494         FindOrCreateFont(self, int point_size, int family, int style, int weight,  
5495             bool underline=False, String facename=EmptyString,  
5496             int encoding=FONTENCODING_DEFAULT) -> Font 
5498         return _gdi_
.FontList_FindOrCreateFont(*args
, **kwargs
) 
5500     def AddFont(*args
, **kwargs
): 
5501         """AddFont(self, Font font)""" 
5502         return _gdi_
.FontList_AddFont(*args
, **kwargs
) 
5504     def RemoveFont(*args
, **kwargs
): 
5505         """RemoveFont(self, Font font)""" 
5506         return _gdi_
.FontList_RemoveFont(*args
, **kwargs
) 
5508     AddFont 
= wx
._deprecated
(AddFont
) 
5509     RemoveFont 
= wx
._deprecated
(RemoveFont
) 
5511 _gdi_
.FontList_swigregister(FontList
) 
5513 class ColourDatabase(object): 
5514     """Proxy of C++ ColourDatabase class""" 
5515     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5516     __repr__ 
= _swig_repr
 
5517     def __init__(self
, *args
, **kwargs
):  
5518         """__init__(self) -> ColourDatabase""" 
5519         _gdi_
.ColourDatabase_swiginit(self
,_gdi_
.new_ColourDatabase(*args
, **kwargs
)) 
5520     __swig_destroy__ 
= _gdi_
.delete_ColourDatabase
 
5521     __del__ 
= lambda self 
: None; 
5522     def Find(*args
, **kwargs
): 
5523         """Find(self, String name) -> Colour""" 
5524         return _gdi_
.ColourDatabase_Find(*args
, **kwargs
) 
5526     def FindName(*args
, **kwargs
): 
5527         """FindName(self, Colour colour) -> String""" 
5528         return _gdi_
.ColourDatabase_FindName(*args
, **kwargs
) 
5531     def AddColour(*args
, **kwargs
): 
5532         """AddColour(self, String name, Colour colour)""" 
5533         return _gdi_
.ColourDatabase_AddColour(*args
, **kwargs
) 
5535     def Append(*args
, **kwargs
): 
5536         """Append(self, String name, int red, int green, int blue)""" 
5537         return _gdi_
.ColourDatabase_Append(*args
, **kwargs
) 
5539 _gdi_
.ColourDatabase_swigregister(ColourDatabase
) 
5541 #--------------------------------------------------------------------------- 
5544 def _wxPyInitTheFontList(*args
): 
5545   """_wxPyInitTheFontList() -> FontList""" 
5546   return _gdi_
._wxPyInitTheFontList
(*args
) 
5548 def _wxPyInitThePenList(*args
): 
5549   """_wxPyInitThePenList() -> PenList""" 
5550   return _gdi_
._wxPyInitThePenList
(*args
) 
5552 def _wxPyInitTheBrushList(*args
): 
5553   """_wxPyInitTheBrushList() -> BrushList""" 
5554   return _gdi_
._wxPyInitTheBrushList
(*args
) 
5556 def _wxPyInitTheColourDatabase(*args
): 
5557   """_wxPyInitTheColourDatabase() -> ColourDatabase""" 
5558   return _gdi_
._wxPyInitTheColourDatabase
(*args
) 
5559 # Create an uninitialized instance for the stock objects, they will 
5560 # be initialized later when the wx.App object is created. 
5561 TheFontList       
= FontList
.__new
__(FontList
) 
5562 ThePenList        
= PenList
.__new
__(PenList
) 
5563 TheBrushList      
= BrushList
.__new
__(BrushList
) 
5564 TheColourDatabase 
= ColourDatabase
.__new
__(ColourDatabase
) 
5566 NullColor 
= NullColour 
 
5567 #--------------------------------------------------------------------------- 
5569 class Effects(_core
.Object
): 
5570     """Proxy of C++ Effects class""" 
5571     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5572     __repr__ 
= _swig_repr
 
5573     def __init__(self
, *args
, **kwargs
):  
5574         """__init__(self) -> Effects""" 
5575         _gdi_
.Effects_swiginit(self
,_gdi_
.new_Effects(*args
, **kwargs
)) 
5576     def GetHighlightColour(*args
, **kwargs
): 
5577         """GetHighlightColour(self) -> Colour""" 
5578         return _gdi_
.Effects_GetHighlightColour(*args
, **kwargs
) 
5580     def GetLightShadow(*args
, **kwargs
): 
5581         """GetLightShadow(self) -> Colour""" 
5582         return _gdi_
.Effects_GetLightShadow(*args
, **kwargs
) 
5584     def GetFaceColour(*args
, **kwargs
): 
5585         """GetFaceColour(self) -> Colour""" 
5586         return _gdi_
.Effects_GetFaceColour(*args
, **kwargs
) 
5588     def GetMediumShadow(*args
, **kwargs
): 
5589         """GetMediumShadow(self) -> Colour""" 
5590         return _gdi_
.Effects_GetMediumShadow(*args
, **kwargs
) 
5592     def GetDarkShadow(*args
, **kwargs
): 
5593         """GetDarkShadow(self) -> Colour""" 
5594         return _gdi_
.Effects_GetDarkShadow(*args
, **kwargs
) 
5596     def SetHighlightColour(*args
, **kwargs
): 
5597         """SetHighlightColour(self, Colour c)""" 
5598         return _gdi_
.Effects_SetHighlightColour(*args
, **kwargs
) 
5600     def SetLightShadow(*args
, **kwargs
): 
5601         """SetLightShadow(self, Colour c)""" 
5602         return _gdi_
.Effects_SetLightShadow(*args
, **kwargs
) 
5604     def SetFaceColour(*args
, **kwargs
): 
5605         """SetFaceColour(self, Colour c)""" 
5606         return _gdi_
.Effects_SetFaceColour(*args
, **kwargs
) 
5608     def SetMediumShadow(*args
, **kwargs
): 
5609         """SetMediumShadow(self, Colour c)""" 
5610         return _gdi_
.Effects_SetMediumShadow(*args
, **kwargs
) 
5612     def SetDarkShadow(*args
, **kwargs
): 
5613         """SetDarkShadow(self, Colour c)""" 
5614         return _gdi_
.Effects_SetDarkShadow(*args
, **kwargs
) 
5616     def Set(*args
, **kwargs
): 
5618         Set(self, Colour highlightColour, Colour lightShadow, Colour faceColour,  
5619             Colour mediumShadow, Colour darkShadow) 
5621         return _gdi_
.Effects_Set(*args
, **kwargs
) 
5623     def DrawSunkenEdge(*args
, **kwargs
): 
5624         """DrawSunkenEdge(self, DC dc, Rect rect, int borderSize=1)""" 
5625         return _gdi_
.Effects_DrawSunkenEdge(*args
, **kwargs
) 
5627     def TileBitmap(*args
, **kwargs
): 
5628         """TileBitmap(self, Rect rect, DC dc, Bitmap bitmap) -> bool""" 
5629         return _gdi_
.Effects_TileBitmap(*args
, **kwargs
) 
5631     DarkShadow 
= property(GetDarkShadow
,SetDarkShadow
,doc
="See `GetDarkShadow` and `SetDarkShadow`")  
5632     FaceColour 
= property(GetFaceColour
,SetFaceColour
,doc
="See `GetFaceColour` and `SetFaceColour`")  
5633     HighlightColour 
= property(GetHighlightColour
,SetHighlightColour
,doc
="See `GetHighlightColour` and `SetHighlightColour`")  
5634     LightShadow 
= property(GetLightShadow
,SetLightShadow
,doc
="See `GetLightShadow` and `SetLightShadow`")  
5635     MediumShadow 
= property(GetMediumShadow
,SetMediumShadow
,doc
="See `GetMediumShadow` and `SetMediumShadow`")  
5636 _gdi_
.Effects_swigregister(Effects
) 
5638 #--------------------------------------------------------------------------- 
5640 CONTROL_DISABLED 
= _gdi_
.CONTROL_DISABLED
 
5641 CONTROL_FOCUSED 
= _gdi_
.CONTROL_FOCUSED
 
5642 CONTROL_PRESSED 
= _gdi_
.CONTROL_PRESSED
 
5643 CONTROL_SPECIAL 
= _gdi_
.CONTROL_SPECIAL
 
5644 CONTROL_ISDEFAULT 
= _gdi_
.CONTROL_ISDEFAULT
 
5645 CONTROL_ISSUBMENU 
= _gdi_
.CONTROL_ISSUBMENU
 
5646 CONTROL_EXPANDED 
= _gdi_
.CONTROL_EXPANDED
 
5647 CONTROL_SIZEGRIP 
= _gdi_
.CONTROL_SIZEGRIP
 
5648 CONTROL_CURRENT 
= _gdi_
.CONTROL_CURRENT
 
5649 CONTROL_SELECTED 
= _gdi_
.CONTROL_SELECTED
 
5650 CONTROL_CHECKED 
= _gdi_
.CONTROL_CHECKED
 
5651 CONTROL_CHECKABLE 
= _gdi_
.CONTROL_CHECKABLE
 
5652 CONTROL_UNDETERMINED 
= _gdi_
.CONTROL_UNDETERMINED
 
5653 CONTROL_FLAGS_MASK 
= _gdi_
.CONTROL_FLAGS_MASK
 
5654 CONTROL_DIRTY 
= _gdi_
.CONTROL_DIRTY
 
5655 class SplitterRenderParams(object): 
5657     This is just a simple struct used as a return value of 
5658     `wx.RendererNative.GetSplitterParams` and contains some platform 
5659     specific metrics about splitters. 
5661         * widthSash: the width of the splitter sash. 
5662         * border: the width of the border of the splitter window. 
5663         * isHotSensitive: ``True`` if the splitter changes its 
5664           appearance when the mouse is over it. 
5668     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5669     __repr__ 
= _swig_repr
 
5670     def __init__(self
, *args
, **kwargs
):  
5672         __init__(self, int widthSash_, int border_, bool isSens_) -> SplitterRenderParams 
5674         This is just a simple struct used as a return value of 
5675         `wx.RendererNative.GetSplitterParams` and contains some platform 
5676         specific metrics about splitters. 
5678             * widthSash: the width of the splitter sash. 
5679             * border: the width of the border of the splitter window. 
5680             * isHotSensitive: ``True`` if the splitter changes its 
5681               appearance when the mouse is over it. 
5685         _gdi_
.SplitterRenderParams_swiginit(self
,_gdi_
.new_SplitterRenderParams(*args
, **kwargs
)) 
5686     __swig_destroy__ 
= _gdi_
.delete_SplitterRenderParams
 
5687     __del__ 
= lambda self 
: None; 
5688     widthSash 
= property(_gdi_
.SplitterRenderParams_widthSash_get
) 
5689     border 
= property(_gdi_
.SplitterRenderParams_border_get
) 
5690     isHotSensitive 
= property(_gdi_
.SplitterRenderParams_isHotSensitive_get
) 
5691 _gdi_
.SplitterRenderParams_swigregister(SplitterRenderParams
) 
5693 class HeaderButtonParams(object): 
5694     """Extra (optional) parameters for `wx.RendererNative.DrawHeaderButton`""" 
5695     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5696     __repr__ 
= _swig_repr
 
5697     def __init__(self
, *args
, **kwargs
):  
5699         __init__(self) -> HeaderButtonParams 
5701         Extra (optional) parameters for `wx.RendererNative.DrawHeaderButton` 
5703         _gdi_
.HeaderButtonParams_swiginit(self
,_gdi_
.new_HeaderButtonParams(*args
, **kwargs
)) 
5704     __swig_destroy__ 
= _gdi_
.delete_HeaderButtonParams
 
5705     __del__ 
= lambda self 
: None; 
5706     m_arrowColour 
= property(_gdi_
.HeaderButtonParams_m_arrowColour_get
, _gdi_
.HeaderButtonParams_m_arrowColour_set
) 
5707     m_selectionColour 
= property(_gdi_
.HeaderButtonParams_m_selectionColour_get
, _gdi_
.HeaderButtonParams_m_selectionColour_set
) 
5708     m_labelText 
= property(_gdi_
.HeaderButtonParams_m_labelText_get
, _gdi_
.HeaderButtonParams_m_labelText_set
) 
5709     m_labelFont 
= property(_gdi_
.HeaderButtonParams_m_labelFont_get
, _gdi_
.HeaderButtonParams_m_labelFont_set
) 
5710     m_labelColour 
= property(_gdi_
.HeaderButtonParams_m_labelColour_get
, _gdi_
.HeaderButtonParams_m_labelColour_set
) 
5711     m_labelBitmap 
= property(_gdi_
.HeaderButtonParams_m_labelBitmap_get
, _gdi_
.HeaderButtonParams_m_labelBitmap_set
) 
5712     m_labelAlignment 
= property(_gdi_
.HeaderButtonParams_m_labelAlignment_get
, _gdi_
.HeaderButtonParams_m_labelAlignment_set
) 
5713 _gdi_
.HeaderButtonParams_swigregister(HeaderButtonParams
) 
5715 HDR_SORT_ICON_NONE 
= _gdi_
.HDR_SORT_ICON_NONE
 
5716 HDR_SORT_ICON_UP 
= _gdi_
.HDR_SORT_ICON_UP
 
5717 HDR_SORT_ICON_DOWN 
= _gdi_
.HDR_SORT_ICON_DOWN
 
5718 class RendererVersion(object): 
5720     This simple struct represents the `wx.RendererNative` interface 
5721     version and is only used as the return value of 
5722     `wx.RendererNative.GetVersion`. 
5724     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5725     __repr__ 
= _swig_repr
 
5726     def __init__(self
, *args
, **kwargs
):  
5728         __init__(self, int version_, int age_) -> RendererVersion 
5730         This simple struct represents the `wx.RendererNative` interface 
5731         version and is only used as the return value of 
5732         `wx.RendererNative.GetVersion`. 
5734         _gdi_
.RendererVersion_swiginit(self
,_gdi_
.new_RendererVersion(*args
, **kwargs
)) 
5735     __swig_destroy__ 
= _gdi_
.delete_RendererVersion
 
5736     __del__ 
= lambda self 
: None; 
5737     Current_Version 
= _gdi_
.RendererVersion_Current_Version
 
5738     Current_Age 
= _gdi_
.RendererVersion_Current_Age
 
5739     def IsCompatible(*args
, **kwargs
): 
5740         """IsCompatible(RendererVersion ver) -> bool""" 
5741         return _gdi_
.RendererVersion_IsCompatible(*args
, **kwargs
) 
5743     IsCompatible 
= staticmethod(IsCompatible
) 
5744     version 
= property(_gdi_
.RendererVersion_version_get
) 
5745     age 
= property(_gdi_
.RendererVersion_age_get
) 
5746 _gdi_
.RendererVersion_swigregister(RendererVersion
) 
5748 def RendererVersion_IsCompatible(*args
, **kwargs
): 
5749   """RendererVersion_IsCompatible(RendererVersion ver) -> bool""" 
5750   return _gdi_
.RendererVersion_IsCompatible(*args
, **kwargs
) 
5752 class RendererNative(object): 
5754     One of the design principles of wxWidgets is to use the native 
5755     widgets on every platform in order to be as close as possible to 
5756     the native look and feel on every platform.  However there are 
5757     still cases when some generic widgets are needed for various 
5758     reasons, but it can sometimes take a lot of messy work to make 
5759     them conform to the native LnF. 
5761     The wx.RendererNative class is a collection of functions that have 
5762     platform-specific implementations for drawing certain parts of 
5763     genereic controls in ways that are as close to the native look as 
5766     Note that each drawing function restores the `wx.DC` attributes if it 
5767     changes them, so it is safe to assume that the same pen, brush and 
5768     colours that were active before the call to this function are still in 
5772     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
5773     def __init__(self
): raise AttributeError, "No constructor defined" 
5774     __repr__ 
= _swig_repr
 
5775     def DrawHeaderButton(*args
, **kwargs
): 
5777         DrawHeaderButton(self, Window win, DC dc, Rect rect, int flags=0, int sortArrow=HDR_SORT_ICON_NONE,  
5778             HeaderButtonParams params=None) 
5780         Draw the header control button (such as what is used by `wx.ListCtrl` 
5783         return _gdi_
.RendererNative_DrawHeaderButton(*args
, **kwargs
) 
5785     def DrawHeaderButtonContents(*args
, **kwargs
): 
5787         DrawHeaderButtonContents(self, Window win, DC dc, Rect rect, int flags=0, int sortArrow=HDR_SORT_ICON_NONE,  
5788             HeaderButtonParams params=None) 
5790         Draw the contents of a header control button, (label, sort 
5791         arrows, etc.)  Normally this is only called by `DrawHeaderButton`. 
5793         return _gdi_
.RendererNative_DrawHeaderButtonContents(*args
, **kwargs
) 
5795     def GetHeaderButtonHeight(*args
, **kwargs
): 
5797         GetHeaderButtonHeight(self, Window win) -> int 
5799         Returns the default height of a header button, either a fixed platform 
5800         height if available, or a generic height based on the window's font. 
5802         return _gdi_
.RendererNative_GetHeaderButtonHeight(*args
, **kwargs
) 
5804     def DrawTreeItemButton(*args
, **kwargs
): 
5806         DrawTreeItemButton(self, Window win, DC dc, Rect rect, int flags=0) 
5808         Draw the expanded/collapsed icon for a tree control item. 
5810         return _gdi_
.RendererNative_DrawTreeItemButton(*args
, **kwargs
) 
5812     def DrawSplitterBorder(*args
, **kwargs
): 
5814         DrawSplitterBorder(self, Window win, DC dc, Rect rect, int flags=0) 
5816         Draw the border for a sash window: this border must be such that the 
5817         sash drawn by `DrawSplitterSash` blends into it well. 
5819         return _gdi_
.RendererNative_DrawSplitterBorder(*args
, **kwargs
) 
5821     def DrawSplitterSash(*args
, **kwargs
): 
5823         DrawSplitterSash(self, Window win, DC dc, Size size, int position, int orient,  
5826         Draw a sash. The orient parameter defines whether the sash should be 
5827         vertical or horizontal and how the position should be interpreted. 
5829         return _gdi_
.RendererNative_DrawSplitterSash(*args
, **kwargs
) 
5831     def DrawComboBoxDropButton(*args
, **kwargs
): 
5833         DrawComboBoxDropButton(self, Window win, DC dc, Rect rect, int flags=0) 
5835         Draw a button like the one used by `wx.ComboBox` to show a drop down 
5836         window. The usual appearance is a downwards pointing arrow. 
5838         The ``flags`` parameter may have the ``wx.CONTROL_PRESSED`` or 
5839         ``wx.CONTROL_CURRENT`` bits set. 
5841         return _gdi_
.RendererNative_DrawComboBoxDropButton(*args
, **kwargs
) 
5843     def DrawDropArrow(*args
, **kwargs
): 
5845         DrawDropArrow(self, Window win, DC dc, Rect rect, int flags=0) 
5847         Draw a drop down arrow that is suitable for use outside a combo 
5848         box. Arrow will have a transparent background. 
5850         ``rect`` is not entirely filled by the arrow. Instead, you should use 
5851         bounding rectangle of a drop down button which arrow matches the size 
5852         you need. ``flags`` may have the ``wx.CONTROL_PRESSED`` or 
5853         ``wx.CONTROL_CURRENT`` bit set. 
5855         return _gdi_
.RendererNative_DrawDropArrow(*args
, **kwargs
) 
5857     def DrawCheckBox(*args
, **kwargs
): 
5859         DrawCheckBox(self, Window win, DC dc, Rect rect, int flags=0) 
5861         Draw a check button.  Flags may use wx.CONTROL_CHECKED, 
5862         wx.CONTROL_UNDETERMINED and wx.CONTROL_CURRENT. 
5864         return _gdi_
.RendererNative_DrawCheckBox(*args
, **kwargs
) 
5866     def DrawPushButton(*args
, **kwargs
): 
5868         DrawPushButton(self, Window win, DC dc, Rect rect, int flags=0) 
5870         Draw a blank button.  Flags may be wx.CONTROL_PRESSED, wx.CONTROL_CURRENT and 
5871         wx.CONTROL_ISDEFAULT 
5873         return _gdi_
.RendererNative_DrawPushButton(*args
, **kwargs
) 
5875     def DrawItemSelectionRect(*args
, **kwargs
): 
5877         DrawItemSelectionRect(self, Window win, DC dc, Rect rect, int flags=0) 
5879         Draw rectangle indicating that an item in e.g. a list control has been 
5882         The flags parameter may be: 
5884             ====================  ============================================ 
5885             wx.CONTROL_SELECTED   item is selected, e.g. draw background 
5886             wx.CONTROL_CURRENT    item is the current item, e.g. dotted border 
5887             wx.CONTROL_FOCUSED    the whole control has focus, e.g. blue 
5888                                   background vs. grey otherwise 
5889             ====================  ============================================ 
5892         return _gdi_
.RendererNative_DrawItemSelectionRect(*args
, **kwargs
) 
5894     def GetSplitterParams(*args
, **kwargs
): 
5896         GetSplitterParams(self, Window win) -> SplitterRenderParams 
5898         Get the splitter parameters, see `wx.SplitterRenderParams`. 
5900         return _gdi_
.RendererNative_GetSplitterParams(*args
, **kwargs
) 
5902     def Get(*args
, **kwargs
): 
5904         Get() -> RendererNative 
5906         Return the currently used renderer 
5908         return _gdi_
.RendererNative_Get(*args
, **kwargs
) 
5910     Get 
= staticmethod(Get
) 
5911     def GetGeneric(*args
, **kwargs
): 
5913         GetGeneric() -> RendererNative 
5915         Return the generic implementation of the renderer. Under some 
5916         platforms, this is the default renderer implementation, others have 
5917         platform-specific default renderer which can be retrieved by calling 
5918         `wx.RendererNative.GetDefault`. 
5920         return _gdi_
.RendererNative_GetGeneric(*args
, **kwargs
) 
5922     GetGeneric 
= staticmethod(GetGeneric
) 
5923     def GetDefault(*args
, **kwargs
): 
5925         GetDefault() -> RendererNative 
5927         Return the default (native) implementation for this platform -- this 
5928         is also the one used by default but this may be changed by calling 
5929         `wx.RendererNative.Set` in which case the return value of this method 
5930         may be different from the return value of `wx.RendererNative.Get`. 
5932         return _gdi_
.RendererNative_GetDefault(*args
, **kwargs
) 
5934     GetDefault 
= staticmethod(GetDefault
) 
5935     def Set(*args
, **kwargs
): 
5937         Set(RendererNative renderer) -> RendererNative 
5939         Set the renderer to use, passing None reverts to using the default 
5940         renderer.  Returns the previous renderer used with Set or None. 
5942         return _gdi_
.RendererNative_Set(*args
, **kwargs
) 
5944     Set 
= staticmethod(Set
) 
5945     def GetVersion(*args
, **kwargs
): 
5947         GetVersion(self) -> RendererVersion 
5949         Returns the version of the renderer.  Will be used for ensuring 
5950         compatibility of dynamically loaded renderers. 
5952         return _gdi_
.RendererNative_GetVersion(*args
, **kwargs
) 
5954     SplitterParams 
= property(GetSplitterParams
,doc
="See `GetSplitterParams`")  
5955     Version 
= property(GetVersion
,doc
="See `GetVersion`")  
5956 _gdi_
.RendererNative_swigregister(RendererNative
) 
5958 def RendererNative_Get(*args
): 
5960     RendererNative_Get() -> RendererNative 
5962     Return the currently used renderer 
5964   return _gdi_
.RendererNative_Get(*args
) 
5966 def RendererNative_GetGeneric(*args
): 
5968     RendererNative_GetGeneric() -> RendererNative 
5970     Return the generic implementation of the renderer. Under some 
5971     platforms, this is the default renderer implementation, others have 
5972     platform-specific default renderer which can be retrieved by calling 
5973     `wx.RendererNative.GetDefault`. 
5975   return _gdi_
.RendererNative_GetGeneric(*args
) 
5977 def RendererNative_GetDefault(*args
): 
5979     RendererNative_GetDefault() -> RendererNative 
5981     Return the default (native) implementation for this platform -- this 
5982     is also the one used by default but this may be changed by calling 
5983     `wx.RendererNative.Set` in which case the return value of this method 
5984     may be different from the return value of `wx.RendererNative.Get`. 
5986   return _gdi_
.RendererNative_GetDefault(*args
) 
5988 def RendererNative_Set(*args
, **kwargs
): 
5990     RendererNative_Set(RendererNative renderer) -> RendererNative 
5992     Set the renderer to use, passing None reverts to using the default 
5993     renderer.  Returns the previous renderer used with Set or None. 
5995   return _gdi_
.RendererNative_Set(*args
, **kwargs
) 
5997 #--------------------------------------------------------------------------- 
5999 class PseudoDC(_core
.Object
): 
6001     A PseudoDC is an object that can be used as if it were a `wx.DC`.  All 
6002     commands issued to the PseudoDC are stored in a list.  You can then 
6003     play these commands back to a real DC object using the DrawToDC 
6004     method.  Commands in the command list are indexed by ID.  You can use 
6005     this to clear the operations associated with a single ID and then 
6006     re-draw the object associated with that ID. 
6008     thisown 
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag') 
6009     __repr__ 
= _swig_repr
 
6010     def __init__(self
, *args
, **kwargs
):  
6012         __init__(self) -> PseudoDC 
6014         Constructs a new Pseudo device context for recording dc operations 
6016         _gdi_
.PseudoDC_swiginit(self
,_gdi_
.new_PseudoDC(*args
, **kwargs
)) 
6017     def BeginDrawing(*args
, **kwargs
): 
6021         Allows for optimization of drawing code on platforms that need it.  On 
6022         other platforms this is just an empty function and is harmless.  To 
6023         take advantage of this postential optimization simply enclose each 
6024         group of calls to the drawing primitives within calls to 
6025         `BeginDrawing` and `EndDrawing`. 
6027         return _gdi_
.PseudoDC_BeginDrawing(*args
, **kwargs
) 
6029     def EndDrawing(*args
, **kwargs
): 
6033         Ends the group of drawing primitives started with `BeginDrawing`, and 
6034         invokes whatever optimization is available for this DC type on the 
6037         return _gdi_
.PseudoDC_EndDrawing(*args
, **kwargs
) 
6039     __swig_destroy__ 
= _gdi_
.delete_PseudoDC
 
6040     __del__ 
= lambda self 
: None; 
6041     def RemoveAll(*args
, **kwargs
): 
6045         Removes all objects and operations from the recorded list. 
6047         return _gdi_
.PseudoDC_RemoveAll(*args
, **kwargs
) 
6049     def GetLen(*args
, **kwargs
): 
6053         Returns the number of operations in the recorded list. 
6055         return _gdi_
.PseudoDC_GetLen(*args
, **kwargs
) 
6057     def SetId(*args
, **kwargs
): 
6061         Sets the id to be associated with subsequent operations. 
6063         return _gdi_
.PseudoDC_SetId(*args
, **kwargs
) 
6065     def ClearId(*args
, **kwargs
): 
6067         ClearId(self, int id) 
6069         Removes all operations associated with id so the object can be redrawn. 
6071         return _gdi_
.PseudoDC_ClearId(*args
, **kwargs
) 
6073     def RemoveId(*args
, **kwargs
): 
6075         RemoveId(self, int id) 
6077         Remove the object node (and all operations) associated with an id. 
6079         return _gdi_
.PseudoDC_RemoveId(*args
, **kwargs
) 
6081     def TranslateId(*args
, **kwargs
): 
6083         TranslateId(self, int id, int dx, int dy) 
6085         Translate the operations of id by dx,dy. 
6087         return _gdi_
.PseudoDC_TranslateId(*args
, **kwargs
) 
6089     def SetIdGreyedOut(*args
, **kwargs
): 
6091         SetIdGreyedOut(self, int id, bool greyout=True) 
6093         Set whether an object is drawn greyed out or not. 
6095         return _gdi_
.PseudoDC_SetIdGreyedOut(*args
, **kwargs
) 
6097     def GetIdGreyedOut(*args
, **kwargs
): 
6099         GetIdGreyedOut(self, int id) -> bool 
6101         Get whether an object is drawn greyed out or not. 
6103         return _gdi_
.PseudoDC_GetIdGreyedOut(*args
, **kwargs
) 
6105     def FindObjects(*args
, **kwargs
): 
6107         FindObjects(self, int x, int y, int radius=1, wxColor bg=*wxWHITE) -> PyObject 
6109         Returns a list of all the id's that draw a pixel with color 
6110         not equal to bg within radius of (x,y). 
6111         Returns an empty list if nothing is found.  The list is in 
6112         reverse drawing order so list[0] is the top id. 
6114         return _gdi_
.PseudoDC_FindObjects(*args
, **kwargs
) 
6116     def FindObjectsByBBox(*args
, **kwargs
): 
6118         FindObjectsByBBox(self, int x, int y) -> PyObject 
6120         Returns a list of all the id's whose bounding boxes include (x,y). 
6121         Returns an empty list if nothing is found.  The list is in 
6122         reverse drawing order so list[0] is the top id. 
6124         return _gdi_
.PseudoDC_FindObjectsByBBox(*args
, **kwargs
) 
6126     def DrawIdToDC(*args
, **kwargs
): 
6128         DrawIdToDC(self, int id, DC dc) 
6130         Draw recorded operations of id to dc. 
6132         return _gdi_
.PseudoDC_DrawIdToDC(*args
, **kwargs
) 
6134     def SetIdBounds(*args
, **kwargs
): 
6136         SetIdBounds(self, int id, Rect rect) 
6138         Set the bounding rect of a given object.  This will create  
6139         an object node if one doesn't exist. 
6141         return _gdi_
.PseudoDC_SetIdBounds(*args
, **kwargs
) 
6143     def GetIdBounds(*args
, **kwargs
): 
6145         GetIdBounds(self, int id) -> Rect 
6147         Returns the bounding rectangle previouly set with SetIdBounds.  If 
6148         no bounds have been set, it returns wx.Rect(0,0,0,0). 
6150         return _gdi_
.PseudoDC_GetIdBounds(*args
, **kwargs
) 
6152     def DrawToDCClipped(*args
, **kwargs
): 
6154         DrawToDCClipped(self, DC dc, Rect rect) 
6156         Draws the recorded operations to dc unless the operation is known to 
6159         return _gdi_
.PseudoDC_DrawToDCClipped(*args
, **kwargs
) 
6161     def DrawToDCClippedRgn(*args
, **kwargs
): 
6163         DrawToDCClippedRgn(self, DC dc, Region region) 
6165         Draws the recorded operations to dc unless the operation is known to 
6168         return _gdi_
.PseudoDC_DrawToDCClippedRgn(*args
, **kwargs
) 
6170     def DrawToDC(*args
, **kwargs
): 
6172         DrawToDC(self, DC dc) 
6174         Draws the recorded operations to dc. 
6176         return _gdi_
.PseudoDC_DrawToDC(*args
, **kwargs
) 
6178     def FloodFill(*args
, **kwargs
): 
6180         FloodFill(self, int x, int y, Colour col, int style=FLOOD_SURFACE) 
6182         Flood fills the device context starting from the given point, using 
6183         the current brush colour, and using a style: 
6185             - **wxFLOOD_SURFACE**: the flooding occurs until a colour other than 
6186               the given colour is encountered. 
6188             - **wxFLOOD_BORDER**: the area to be flooded is bounded by the given 
6191         Returns False if the operation failed. 
6193         Note: The present implementation for non-Windows platforms may fail to 
6194         find colour borders if the pixels do not match the colour 
6195         exactly. However the function will still return true. 
6197         return _gdi_
.PseudoDC_FloodFill(*args
, **kwargs
) 
6199     def FloodFillPoint(*args
, **kwargs
): 
6201         FloodFillPoint(self, Point pt, Colour col, int style=FLOOD_SURFACE) 
6203         Flood fills the device context starting from the given point, using 
6204         the current brush colour, and using a style: 
6206             - **wxFLOOD_SURFACE**: the flooding occurs until a colour other than 
6207               the given colour is encountered. 
6209             - **wxFLOOD_BORDER**: the area to be flooded is bounded by the given 
6212         Returns False if the operation failed. 
6214         Note: The present implementation for non-Windows platforms may fail to 
6215         find colour borders if the pixels do not match the colour 
6216         exactly. However the function will still return true. 
6218         return _gdi_
.PseudoDC_FloodFillPoint(*args
, **kwargs
) 
6220     def DrawLine(*args
, **kwargs
): 
6222         DrawLine(self, int x1, int y1, int x2, int y2) 
6224         Draws a line from the first point to the second. The current pen is 
6225         used for drawing the line. Note that the second point is *not* part of 
6226         the line and is not drawn by this function (this is consistent with 
6227         the behaviour of many other toolkits). 
6229         return _gdi_
.PseudoDC_DrawLine(*args
, **kwargs
) 
6231     def DrawLinePoint(*args
, **kwargs
): 
6233         DrawLinePoint(self, Point pt1, Point pt2) 
6235         Draws a line from the first point to the second. The current pen is 
6236         used for drawing the line. Note that the second point is *not* part of 
6237         the line and is not drawn by this function (this is consistent with 
6238         the behaviour of many other toolkits). 
6240         return _gdi_
.PseudoDC_DrawLinePoint(*args
, **kwargs
) 
6242     def CrossHair(*args
, **kwargs
): 
6244         CrossHair(self, int x, int y) 
6246         Displays a cross hair using the current pen. This is a vertical and 
6247         horizontal line the height and width of the window, centred on the 
6250         return _gdi_
.PseudoDC_CrossHair(*args
, **kwargs
) 
6252     def CrossHairPoint(*args
, **kwargs
): 
6254         CrossHairPoint(self, Point pt) 
6256         Displays a cross hair using the current pen. This is a vertical and 
6257         horizontal line the height and width of the window, centred on the 
6260         return _gdi_
.PseudoDC_CrossHairPoint(*args
, **kwargs
) 
6262     def DrawArc(*args
, **kwargs
): 
6264         DrawArc(self, int x1, int y1, int x2, int y2, int xc, int yc) 
6266         Draws an arc of a circle, centred on the *center* point (xc, yc), from 
6267         the first point to the second. The current pen is used for the outline 
6268         and the current brush for filling the shape. 
6270         The arc is drawn in an anticlockwise direction from the start point to 
6273         return _gdi_
.PseudoDC_DrawArc(*args
, **kwargs
) 
6275     def DrawArcPoint(*args
, **kwargs
): 
6277         DrawArcPoint(self, Point pt1, Point pt2, Point center) 
6279         Draws an arc of a circle, centred on the *center* point (xc, yc), from 
6280         the first point to the second. The current pen is used for the outline 
6281         and the current brush for filling the shape. 
6283         The arc is drawn in an anticlockwise direction from the start point to 
6286         return _gdi_
.PseudoDC_DrawArcPoint(*args
, **kwargs
) 
6288     def DrawCheckMark(*args
, **kwargs
): 
6290         DrawCheckMark(self, int x, int y, int width, int height) 
6292         Draws a check mark inside the given rectangle. 
6294         return _gdi_
.PseudoDC_DrawCheckMark(*args
, **kwargs
) 
6296     def DrawCheckMarkRect(*args
, **kwargs
): 
6298         DrawCheckMarkRect(self, Rect rect) 
6300         Draws a check mark inside the given rectangle. 
6302         return _gdi_
.PseudoDC_DrawCheckMarkRect(*args
, **kwargs
) 
6304     def DrawEllipticArc(*args
, **kwargs
): 
6306         DrawEllipticArc(self, int x, int y, int w, int h, double start, double end) 
6308         Draws an arc of an ellipse, with the given rectangle defining the 
6309         bounds of the ellipse. The current pen is used for drawing the arc and 
6310         the current brush is used for drawing the pie. 
6312         The *start* and *end* parameters specify the start and end of the arc 
6313         relative to the three-o'clock position from the center of the 
6314         rectangle. Angles are specified in degrees (360 is a complete 
6315         circle). Positive values mean counter-clockwise motion. If start is 
6316         equal to end, a complete ellipse will be drawn. 
6318         return _gdi_
.PseudoDC_DrawEllipticArc(*args
, **kwargs
) 
6320     def DrawEllipticArcPointSize(*args
, **kwargs
): 
6322         DrawEllipticArcPointSize(self, Point pt, Size sz, double start, double end) 
6324         Draws an arc of an ellipse, with the given rectangle defining the 
6325         bounds of the ellipse. The current pen is used for drawing the arc and 
6326         the current brush is used for drawing the pie. 
6328         The *start* and *end* parameters specify the start and end of the arc 
6329         relative to the three-o'clock position from the center of the 
6330         rectangle. Angles are specified in degrees (360 is a complete 
6331         circle). Positive values mean counter-clockwise motion. If start is 
6332         equal to end, a complete ellipse will be drawn. 
6334         return _gdi_
.PseudoDC_DrawEllipticArcPointSize(*args
, **kwargs
) 
6336     def DrawPoint(*args
, **kwargs
): 
6338         DrawPoint(self, int x, int y) 
6340         Draws a point using the current pen. 
6342         return _gdi_
.PseudoDC_DrawPoint(*args
, **kwargs
) 
6344     def DrawPointPoint(*args
, **kwargs
): 
6346         DrawPointPoint(self, Point pt) 
6348         Draws a point using the current pen. 
6350         return _gdi_
.PseudoDC_DrawPointPoint(*args
, **kwargs
) 
6352     def DrawRectangle(*args
, **kwargs
): 
6354         DrawRectangle(self, int x, int y, int width, int height) 
6356         Draws a rectangle with the given top left corner, and with the given 
6357         size. The current pen is used for the outline and the current brush 
6358         for filling the shape. 
6360         return _gdi_
.PseudoDC_DrawRectangle(*args
, **kwargs
) 
6362     def DrawRectangleRect(*args
, **kwargs
): 
6364         DrawRectangleRect(self, Rect rect) 
6366         Draws a rectangle with the given top left corner, and with the given 
6367         size. The current pen is used for the outline and the current brush 
6368         for filling the shape. 
6370         return _gdi_
.PseudoDC_DrawRectangleRect(*args
, **kwargs
) 
6372     def DrawRectanglePointSize(*args
, **kwargs
): 
6374         DrawRectanglePointSize(self, Point pt, Size sz) 
6376         Draws a rectangle with the given top left corner, and with the given 
6377         size. The current pen is used for the outline and the current brush 
6378         for filling the shape. 
6380         return _gdi_
.PseudoDC_DrawRectanglePointSize(*args
, **kwargs
) 
6382     def DrawRoundedRectangle(*args
, **kwargs
): 
6384         DrawRoundedRectangle(self, int x, int y, int width, int height, double radius) 
6386         Draws a rectangle with the given top left corner, and with the given 
6387         size. The corners are quarter-circles using the given radius. The 
6388         current pen is used for the outline and the current brush for filling 
6391         If radius is positive, the value is assumed to be the radius of the 
6392         rounded corner. If radius is negative, the absolute value is assumed 
6393         to be the proportion of the smallest dimension of the rectangle. This 
6394         means that the corner can be a sensible size relative to the size of 
6395         the rectangle, and also avoids the strange effects X produces when the 
6396         corners are too big for the rectangle. 
6398         return _gdi_
.PseudoDC_DrawRoundedRectangle(*args
, **kwargs
) 
6400     def DrawRoundedRectangleRect(*args
, **kwargs
): 
6402         DrawRoundedRectangleRect(self, Rect r, double radius) 
6404         Draws a rectangle with the given top left corner, and with the given 
6405         size. The corners are quarter-circles using the given radius. The 
6406         current pen is used for the outline and the current brush for filling 
6409         If radius is positive, the value is assumed to be the radius of the 
6410         rounded corner. If radius is negative, the absolute value is assumed 
6411         to be the proportion of the smallest dimension of the rectangle. This 
6412         means that the corner can be a sensible size relative to the size of 
6413         the rectangle, and also avoids the strange effects X produces when the 
6414         corners are too big for the rectangle. 
6416         return _gdi_
.PseudoDC_DrawRoundedRectangleRect(*args
, **kwargs
) 
6418     def DrawRoundedRectanglePointSize(*args
, **kwargs
): 
6420         DrawRoundedRectanglePointSize(self, Point pt, Size sz, double radius) 
6422         Draws a rectangle with the given top left corner, and with the given 
6423         size. The corners are quarter-circles using the given radius. The 
6424         current pen is used for the outline and the current brush for filling 
6427         If radius is positive, the value is assumed to be the radius of the 
6428         rounded corner. If radius is negative, the absolute value is assumed 
6429         to be the proportion of the smallest dimension of the rectangle. This 
6430         means that the corner can be a sensible size relative to the size of 
6431         the rectangle, and also avoids the strange effects X produces when the 
6432         corners are too big for the rectangle. 
6434         return _gdi_
.PseudoDC_DrawRoundedRectanglePointSize(*args
, **kwargs
) 
6436     def DrawCircle(*args
, **kwargs
): 
6438         DrawCircle(self, int x, int y, int radius) 
6440         Draws a circle with the given center point and radius.  The current 
6441         pen is used for the outline and the current brush for filling the 
6444         return _gdi_
.PseudoDC_DrawCircle(*args
, **kwargs
) 
6446     def DrawCirclePoint(*args
, **kwargs
): 
6448         DrawCirclePoint(self, Point pt, int radius) 
6450         Draws a circle with the given center point and radius.  The current 
6451         pen is used for the outline and the current brush for filling the 
6454         return _gdi_
.PseudoDC_DrawCirclePoint(*args
, **kwargs
) 
6456     def DrawEllipse(*args
, **kwargs
): 
6458         DrawEllipse(self, int x, int y, int width, int height) 
6460         Draws an ellipse contained in the specified rectangle. The current pen 
6461         is used for the outline and the current brush for filling the shape. 
6463         return _gdi_
.PseudoDC_DrawEllipse(*args
, **kwargs
) 
6465     def DrawEllipseRect(*args
, **kwargs
): 
6467         DrawEllipseRect(self, Rect rect) 
6469         Draws an ellipse contained in the specified rectangle. The current pen 
6470         is used for the outline and the current brush for filling the shape. 
6472         return _gdi_
.PseudoDC_DrawEllipseRect(*args
, **kwargs
) 
6474     def DrawEllipsePointSize(*args
, **kwargs
): 
6476         DrawEllipsePointSize(self, Point pt, Size sz) 
6478         Draws an ellipse contained in the specified rectangle. The current pen 
6479         is used for the outline and the current brush for filling the shape. 
6481         return _gdi_
.PseudoDC_DrawEllipsePointSize(*args
, **kwargs
) 
6483     def DrawIcon(*args
, **kwargs
): 
6485         DrawIcon(self, Icon icon, int x, int y) 
6487         Draw an icon on the display (does nothing if the device context is 
6488         PostScript). This can be the simplest way of drawing bitmaps on a 
6491         return _gdi_
.PseudoDC_DrawIcon(*args
, **kwargs
) 
6493     def DrawIconPoint(*args
, **kwargs
): 
6495         DrawIconPoint(self, Icon icon, Point pt) 
6497         Draw an icon on the display (does nothing if the device context is 
6498         PostScript). This can be the simplest way of drawing bitmaps on a 
6501         return _gdi_
.PseudoDC_DrawIconPoint(*args
, **kwargs
) 
6503     def DrawBitmap(*args
, **kwargs
): 
6505         DrawBitmap(self, Bitmap bmp, int x, int y, bool useMask=False) 
6507         Draw a bitmap on the device context at the specified point. If 
6508         *transparent* is true and the bitmap has a transparency mask, (or 
6509         alpha channel on the platforms that support it) then the bitmap will 
6510         be drawn transparently. 
6512         return _gdi_
.PseudoDC_DrawBitmap(*args
, **kwargs
) 
6514     def DrawBitmapPoint(*args
, **kwargs
): 
6516         DrawBitmapPoint(self, Bitmap bmp, Point pt, bool useMask=False) 
6518         Draw a bitmap on the device context at the specified point. If 
6519         *transparent* is true and the bitmap has a transparency mask, (or 
6520         alpha channel on the platforms that support it) then the bitmap will 
6521         be drawn transparently. 
6523         return _gdi_
.PseudoDC_DrawBitmapPoint(*args
, **kwargs
) 
6525     def DrawText(*args
, **kwargs
): 
6527         DrawText(self, String text, int x, int y) 
6529         Draws a text string at the specified point, using the current text 
6530         font, and the current text foreground and background colours. 
6532         The coordinates refer to the top-left corner of the rectangle bounding 
6533         the string. See `wx.DC.GetTextExtent` for how to get the dimensions of 
6534         a text string, which can be used to position the text more precisely, 
6535         (you will need to use a real DC with GetTextExtent as wx.PseudoDC does 
6538         **NOTE**: under wxGTK the current logical function is used by this 
6539         function but it is ignored by wxMSW. Thus, you should avoid using 
6540         logical functions with this function in portable programs. 
6542         return _gdi_
.PseudoDC_DrawText(*args
, **kwargs
) 
6544     def DrawTextPoint(*args
, **kwargs
): 
6546         DrawTextPoint(self, String text, Point pt) 
6548         Draws a text string at the specified point, using the current text 
6549         font, and the current text foreground and background colours. 
6551         The coordinates refer to the top-left corner of the rectangle bounding 
6552         the string. See `wx.DC.GetTextExtent` for how to get the dimensions of 
6553         a text string, which can be used to position the text more precisely, 
6554         (you will need to use a real DC with GetTextExtent as wx.PseudoDC does 
6557         **NOTE**: under wxGTK the current logical function is used by this 
6558         function but it is ignored by wxMSW. Thus, you should avoid using 
6559         logical functions with this function in portable programs. 
6561         return _gdi_
.PseudoDC_DrawTextPoint(*args
, **kwargs
) 
6563     def DrawRotatedText(*args
, **kwargs
): 
6565         DrawRotatedText(self, String text, int x, int y, double angle) 
6567         Draws the text rotated by *angle* degrees, if supported by the platform. 
6569         **NOTE**: Under Win9x only TrueType fonts can be drawn by this 
6570         function. In particular, a font different from ``wx.NORMAL_FONT`` 
6571         should be used as the it is not normally a TrueType 
6572         font. ``wx.SWISS_FONT`` is an example of a font which is. 
6574         return _gdi_
.PseudoDC_DrawRotatedText(*args
, **kwargs
) 
6576     def DrawRotatedTextPoint(*args
, **kwargs
): 
6578         DrawRotatedTextPoint(self, String text, Point pt, double angle) 
6580         Draws the text rotated by *angle* degrees, if supported by the platform. 
6582         **NOTE**: Under Win9x only TrueType fonts can be drawn by this 
6583         function. In particular, a font different from ``wx.NORMAL_FONT`` 
6584         should be used as the it is not normally a TrueType 
6585         font. ``wx.SWISS_FONT`` is an example of a font which is. 
6587         return _gdi_
.PseudoDC_DrawRotatedTextPoint(*args
, **kwargs
) 
6589     def DrawLines(*args
, **kwargs
): 
6591         DrawLines(self, List points, int xoffset=0, int yoffset=0) 
6593         Draws lines using a sequence of `wx.Point` objects, adding the 
6594         optional offset coordinate. The current pen is used for drawing the 
6597         return _gdi_
.PseudoDC_DrawLines(*args
, **kwargs
) 
6599     def DrawPolygon(*args
, **kwargs
): 
6601         DrawPolygon(self, List points, int xoffset=0, int yoffset=0, 
6602             int fillStyle=ODDEVEN_RULE) 
6604         Draws a filled polygon using a sequence of `wx.Point` objects, adding 
6605         the optional offset coordinate.  The last argument specifies the fill 
6606         rule: ``wx.ODDEVEN_RULE`` (the default) or ``wx.WINDING_RULE``. 
6608         The current pen is used for drawing the outline, and the current brush 
6609         for filling the shape. Using a transparent brush suppresses 
6610         filling. Note that wxWidgets automatically closes the first and last 
6613         return _gdi_
.PseudoDC_DrawPolygon(*args
, **kwargs
) 
6615     def DrawLabel(*args
, **kwargs
): 
6617         DrawLabel(self, String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,  
6620         Draw *text* within the specified rectangle, abiding by the alignment 
6621         flags.  Will additionally emphasize the character at *indexAccel* if 
6624         return _gdi_
.PseudoDC_DrawLabel(*args
, **kwargs
) 
6626     def DrawImageLabel(*args
, **kwargs
): 
6628         DrawImageLabel(self, String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,  
6631         Draw *text* and an image (which may be ``wx.NullBitmap`` to skip 
6632         drawing it) within the specified rectangle, abiding by the alignment 
6633         flags.  Will additionally emphasize the character at *indexAccel* if 
6636         return _gdi_
.PseudoDC_DrawImageLabel(*args
, **kwargs
) 
6638     def DrawSpline(*args
, **kwargs
): 
6640         DrawSpline(self, List points) 
6642         Draws a spline between all given control points, (a list of `wx.Point` 
6643         objects) using the current pen. The spline is drawn using a series of 
6644         lines, using an algorithm taken from the X drawing program 'XFIG'. 
6646         return _gdi_
.PseudoDC_DrawSpline(*args
, **kwargs
) 
6648     def Clear(*args
, **kwargs
): 
6652         Clears the device context using the current background brush. 
6654         return _gdi_
.PseudoDC_Clear(*args
, **kwargs
) 
6656     def SetFont(*args
, **kwargs
): 
6658         SetFont(self, Font font) 
6660         Sets the current font for the DC. It must be a valid font, in 
6661         particular you should not pass ``wx.NullFont`` to this method. 
6663         return _gdi_
.PseudoDC_SetFont(*args
, **kwargs
) 
6665     def SetPen(*args
, **kwargs
): 
6667         SetPen(self, Pen pen) 
6669         Sets the current pen for the DC. 
6671         If the argument is ``wx.NullPen``, the current pen is selected out of the 
6672         device context, and the original pen restored. 
6674         return _gdi_
.PseudoDC_SetPen(*args
, **kwargs
) 
6676     def SetBrush(*args
, **kwargs
): 
6678         SetBrush(self, Brush brush) 
6680         Sets the current brush for the DC. 
6682         If the argument is ``wx.NullBrush``, the current brush is selected out 
6683         of the device context, and the original brush restored, allowing the 
6684         current brush to be destroyed safely. 
6686         return _gdi_
.PseudoDC_SetBrush(*args
, **kwargs
) 
6688     def SetBackground(*args
, **kwargs
): 
6690         SetBackground(self, Brush brush) 
6692         Sets the current background brush for the DC. 
6694         return _gdi_
.PseudoDC_SetBackground(*args
, **kwargs
) 
6696     def SetBackgroundMode(*args
, **kwargs
): 
6698         SetBackgroundMode(self, int mode) 
6700         *mode* may be one of ``wx.SOLID`` and ``wx.TRANSPARENT``. This setting 
6701         determines whether text will be drawn with a background colour or 
6704         return _gdi_
.PseudoDC_SetBackgroundMode(*args
, **kwargs
) 
6706     def SetPalette(*args
, **kwargs
): 
6708         SetPalette(self, Palette palette) 
6710         If this is a window DC or memory DC, assigns the given palette to the 
6711         window or bitmap associated with the DC. If the argument is 
6712         ``wx.NullPalette``, the current palette is selected out of the device 
6713         context, and the original palette restored. 
6715         return _gdi_
.PseudoDC_SetPalette(*args
, **kwargs
) 
6717     def SetTextForeground(*args
, **kwargs
): 
6719         SetTextForeground(self, Colour colour) 
6721         Sets the current text foreground colour for the DC. 
6723         return _gdi_
.PseudoDC_SetTextForeground(*args
, **kwargs
) 
6725     def SetTextBackground(*args
, **kwargs
): 
6727         SetTextBackground(self, Colour colour) 
6729         Sets the current text background colour for the DC. 
6731         return _gdi_
.PseudoDC_SetTextBackground(*args
, **kwargs
) 
6733     def SetLogicalFunction(*args
, **kwargs
): 
6735         SetLogicalFunction(self, int function) 
6737         Sets the current logical function for the device context. This 
6738         determines how a source pixel (from a pen or brush colour, combines 
6739         with a destination pixel in the current device context. 
6741         The possible values and their meaning in terms of source and 
6742         destination pixel values are as follows: 
6744             ================       ========================== 
6746             wx.AND_INVERT          (NOT src) AND dst 
6747             wx.AND_REVERSE         src AND (NOT dst) 
6750             wx.EQUIV               (NOT src) XOR dst 
6752             wx.NAND                (NOT src) OR (NOT dst) 
6753             wx.NOR                 (NOT src) AND (NOT dst) 
6756             wx.OR_INVERT           (NOT src) OR dst 
6757             wx.OR_REVERSE          src OR (NOT dst) 
6759             wx.SRC_INVERT          NOT src 
6761             ================       ========================== 
6763         The default is wx.COPY, which simply draws with the current 
6764         colour. The others combine the current colour and the background using 
6765         a logical operation. wx.INVERT is commonly used for drawing rubber 
6766         bands or moving outlines, since drawing twice reverts to the original 
6770         return _gdi_
.PseudoDC_SetLogicalFunction(*args
, **kwargs
) 
6772     IdBounds 
= property(GetIdBounds
,SetIdBounds
,doc
="See `GetIdBounds` and `SetIdBounds`")  
6773     Len 
= property(GetLen
,doc
="See `GetLen`")  
6774 _gdi_
.PseudoDC_swigregister(PseudoDC
)