1 # This file was created automatically by SWIG. 
   2 # Don't modify this file, modify the SWIG interface instead. 
   6 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1): 
   8         if isinstance(value
, class_type
): 
   9             self
.__dict
__[name
] = value
.this
 
  10             if hasattr(value
,"thisown"): self
.__dict
__["thisown"] = value
.thisown
 
  13     method 
= class_type
.__swig
_setmethods
__.get(name
,None) 
  14     if method
: return method(self
,value
) 
  15     if (not static
) or hasattr(self
,name
) or (name 
== "thisown"): 
  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     method 
= class_type
.__swig
_getmethods
__.get(name
,None) 
  25     if method
: return method(self
) 
  26     raise AttributeError,name
 
  30     _object 
= types
.ObjectType
 
  32 except AttributeError: 
  38 def _swig_setattr_nondynamic_method(set): 
  39     def set_attr(self
,name
,value
): 
  40         if hasattr(self
,name
) or (name 
in ("this", "thisown")): 
  43             raise AttributeError("You cannot add attributes to %s" % self
) 
  49 #--------------------------------------------------------------------------- 
  51 class GDIObject(_core
.Object
): 
  52     """Proxy of C++ GDIObject class""" 
  54         return "<%s.%s; proxy of C++ wxGDIObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
  55     def __init__(self
, *args
, **kwargs
): 
  56         """__init__(self) -> GDIObject""" 
  57         newobj 
= _gdi_
.new_GDIObject(*args
, **kwargs
) 
  58         self
.this 
= newobj
.this
 
  61     def __del__(self
, destroy
=_gdi_
.delete_GDIObject
): 
  64             if self
.thisown
: destroy(self
) 
  67     def GetVisible(*args
, **kwargs
): 
  68         """GetVisible(self) -> bool""" 
  69         return _gdi_
.GDIObject_GetVisible(*args
, **kwargs
) 
  71     def SetVisible(*args
, **kwargs
): 
  72         """SetVisible(self, bool visible)""" 
  73         return _gdi_
.GDIObject_SetVisible(*args
, **kwargs
) 
  75     def IsNull(*args
, **kwargs
): 
  76         """IsNull(self) -> bool""" 
  77         return _gdi_
.GDIObject_IsNull(*args
, **kwargs
) 
  80 class GDIObjectPtr(GDIObject
): 
  81     def __init__(self
, this
): 
  83         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
  84         self
.__class
__ = GDIObject
 
  85 _gdi_
.GDIObject_swigregister(GDIObjectPtr
) 
  87 #--------------------------------------------------------------------------- 
  89 class Colour(_core
.Object
): 
  91     A colour is an object representing a combination of Red, Green, and 
  92     Blue (RGB) intensity values, and is used to determine drawing colours, 
  93     window colours, etc.  Valid RGB values are in the range 0 to 255. 
  95     In wxPython there are typemaps that will automatically convert from a 
  96     colour name, or from a '#RRGGBB' colour hex value string to a 
  97     wx.Colour object when calling C++ methods that expect a wxColour. 
  98     This means that the following are all equivallent:: 
 100         win.SetBackgroundColour(wxColour(0,0,255)) 
 101         win.SetBackgroundColour('BLUE') 
 102         win.SetBackgroundColour('#0000FF') 
 104     Additional colour names and their coresponding values can be added 
 105     using `wx.ColourDatabase`.  Various system colours (as set in the 
 106     user's system preferences) can be retrieved with 
 107     `wx.SystemSettings.GetColour`. 
 111         return "<%s.%s; proxy of C++ wxColour instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 112     def __init__(self
, *args
, **kwargs
): 
 114         __init__(self, byte red=0, byte green=0, byte blue=0) -> Colour 
 116         Constructs a colour from red, green and blue values. 
 118         :see: Alternate constructors `wx.NamedColour` and `wx.ColourRGB`. 
 121         newobj 
= _gdi_
.new_Colour(*args
, **kwargs
) 
 122         self
.this 
= newobj
.this
 
 125     def __del__(self
, destroy
=_gdi_
.delete_Colour
): 
 128             if self
.thisown
: destroy(self
) 
 131     def Red(*args
, **kwargs
): 
 135         Returns the red intensity. 
 137         return _gdi_
.Colour_Red(*args
, **kwargs
) 
 139     def Green(*args
, **kwargs
): 
 143         Returns the green intensity. 
 145         return _gdi_
.Colour_Green(*args
, **kwargs
) 
 147     def Blue(*args
, **kwargs
): 
 151         Returns the blue intensity. 
 153         return _gdi_
.Colour_Blue(*args
, **kwargs
) 
 155     def Ok(*args
, **kwargs
): 
 159         Returns True if the colour object is valid (the colour has been 
 160         initialised with RGB values). 
 162         return _gdi_
.Colour_Ok(*args
, **kwargs
) 
 164     def Set(*args
, **kwargs
): 
 166         Set(self, byte red, byte green, byte blue) 
 168         Sets the RGB intensity values. 
 170         return _gdi_
.Colour_Set(*args
, **kwargs
) 
 172     def SetRGB(*args
, **kwargs
): 
 174         SetRGB(self, unsigned long colRGB) 
 176         Sets the RGB intensity values from a packed RGB value. 
 178         return _gdi_
.Colour_SetRGB(*args
, **kwargs
) 
 180     def SetFromName(*args
, **kwargs
): 
 182         SetFromName(self, String colourName) 
 184         Sets the RGB intensity values using a colour name listed in 
 185         ``wx.TheColourDatabase``. 
 187         return _gdi_
.Colour_SetFromName(*args
, **kwargs
) 
 189     def GetPixel(*args
, **kwargs
): 
 191         GetPixel(self) -> long 
 193         Returns a pixel value which is platform-dependent. On Windows, a 
 194         COLORREF is returned. On X, an allocated pixel value is returned.  -1 
 195         is returned if the pixel is invalid (on X, unallocated). 
 197         return _gdi_
.Colour_GetPixel(*args
, **kwargs
) 
 199     def __eq__(*args
, **kwargs
): 
 201         __eq__(self, Colour colour) -> bool 
 203         Compare colours for equality 
 205         return _gdi_
.Colour___eq__(*args
, **kwargs
) 
 207     def __ne__(*args
, **kwargs
): 
 209         __ne__(self, Colour colour) -> bool 
 211         Compare colours for inequality 
 213         return _gdi_
.Colour___ne__(*args
, **kwargs
) 
 215     def Get(*args
, **kwargs
): 
 219         Returns the RGB intensity values as a tuple. 
 221         return _gdi_
.Colour_Get(*args
, **kwargs
) 
 223     def GetRGB(*args
, **kwargs
): 
 225         GetRGB(self) -> unsigned long 
 227         Return the colour as a packed RGB value 
 229         return _gdi_
.Colour_GetRGB(*args
, **kwargs
) 
 231     asTuple 
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead") 
 232     def __str__(self
):                  return str(self
.Get()) 
 233     def __repr__(self
):                 return 'wx.Colour' + str(self
.Get()) 
 234     def __nonzero__(self
):              return self
.Ok() 
 235     __safe_for_unpickling__ 
= True 
 236     def __reduce__(self
):               return (Colour
, self
.Get()) 
 239 class ColourPtr(Colour
): 
 240     def __init__(self
, this
): 
 242         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
 243         self
.__class
__ = Colour
 
 244 _gdi_
.Colour_swigregister(ColourPtr
) 
 246 def NamedColour(*args
, **kwargs
): 
 248     NamedColour(String colorName) -> Colour 
 250     Constructs a colour object using a colour name listed in 
 251     ``wx.TheColourDatabase``. 
 253     val 
= _gdi_
.new_NamedColour(*args
, **kwargs
) 
 257 def ColourRGB(*args
, **kwargs
): 
 259     ColourRGB(unsigned long colRGB) -> Colour 
 261     Constructs a colour from a packed RGB value. 
 263     val 
= _gdi_
.new_ColourRGB(*args
, **kwargs
) 
 268 NamedColor 
= NamedColour
 
 271 class Palette(GDIObject
): 
 272     """Proxy of C++ Palette class""" 
 274         return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 275     def __init__(self
, *args
, **kwargs
): 
 276         """__init__(self, int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette""" 
 277         newobj 
= _gdi_
.new_Palette(*args
, **kwargs
) 
 278         self
.this 
= newobj
.this
 
 281     def __del__(self
, destroy
=_gdi_
.delete_Palette
): 
 284             if self
.thisown
: destroy(self
) 
 287     def GetPixel(*args
, **kwargs
): 
 288         """GetPixel(self, byte red, byte green, byte blue) -> int""" 
 289         return _gdi_
.Palette_GetPixel(*args
, **kwargs
) 
 291     def GetRGB(*args
, **kwargs
): 
 292         """GetRGB(self, int pixel) -> (R,G,B)""" 
 293         return _gdi_
.Palette_GetRGB(*args
, **kwargs
) 
 295     def GetColoursCount(*args
, **kwargs
): 
 296         """GetColoursCount(self) -> int""" 
 297         return _gdi_
.Palette_GetColoursCount(*args
, **kwargs
) 
 299     def Ok(*args
, **kwargs
): 
 300         """Ok(self) -> bool""" 
 301         return _gdi_
.Palette_Ok(*args
, **kwargs
) 
 303     def __nonzero__(self
): return self
.Ok()  
 305 class PalettePtr(Palette
): 
 306     def __init__(self
, this
): 
 308         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
 309         self
.__class
__ = Palette
 
 310 _gdi_
.Palette_swigregister(PalettePtr
) 
 312 #--------------------------------------------------------------------------- 
 314 class Pen(GDIObject
): 
 315     """Proxy of C++ Pen class""" 
 317         return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 318     def __init__(self
, *args
, **kwargs
): 
 319         """__init__(self, Colour colour, int width=1, int style=SOLID) -> Pen""" 
 320         newobj 
= _gdi_
.new_Pen(*args
, **kwargs
) 
 321         self
.this 
= newobj
.this
 
 324     def __del__(self
, destroy
=_gdi_
.delete_Pen
): 
 327             if self
.thisown
: destroy(self
) 
 330     def GetCap(*args
, **kwargs
): 
 331         """GetCap(self) -> int""" 
 332         return _gdi_
.Pen_GetCap(*args
, **kwargs
) 
 334     def GetColour(*args
, **kwargs
): 
 335         """GetColour(self) -> Colour""" 
 336         return _gdi_
.Pen_GetColour(*args
, **kwargs
) 
 338     def GetJoin(*args
, **kwargs
): 
 339         """GetJoin(self) -> int""" 
 340         return _gdi_
.Pen_GetJoin(*args
, **kwargs
) 
 342     def GetStyle(*args
, **kwargs
): 
 343         """GetStyle(self) -> int""" 
 344         return _gdi_
.Pen_GetStyle(*args
, **kwargs
) 
 346     def GetWidth(*args
, **kwargs
): 
 347         """GetWidth(self) -> int""" 
 348         return _gdi_
.Pen_GetWidth(*args
, **kwargs
) 
 350     def Ok(*args
, **kwargs
): 
 351         """Ok(self) -> bool""" 
 352         return _gdi_
.Pen_Ok(*args
, **kwargs
) 
 354     def SetCap(*args
, **kwargs
): 
 355         """SetCap(self, int cap_style)""" 
 356         return _gdi_
.Pen_SetCap(*args
, **kwargs
) 
 358     def SetColour(*args
, **kwargs
): 
 359         """SetColour(self, Colour colour)""" 
 360         return _gdi_
.Pen_SetColour(*args
, **kwargs
) 
 362     def SetJoin(*args
, **kwargs
): 
 363         """SetJoin(self, int join_style)""" 
 364         return _gdi_
.Pen_SetJoin(*args
, **kwargs
) 
 366     def SetStyle(*args
, **kwargs
): 
 367         """SetStyle(self, int style)""" 
 368         return _gdi_
.Pen_SetStyle(*args
, **kwargs
) 
 370     def SetWidth(*args
, **kwargs
): 
 371         """SetWidth(self, int width)""" 
 372         return _gdi_
.Pen_SetWidth(*args
, **kwargs
) 
 374     def SetDashes(*args
, **kwargs
): 
 375         """SetDashes(self, int dashes)""" 
 376         return _gdi_
.Pen_SetDashes(*args
, **kwargs
) 
 378     def GetDashes(*args
, **kwargs
): 
 379         """GetDashes(self) -> PyObject""" 
 380         return _gdi_
.Pen_GetDashes(*args
, **kwargs
) 
 382     def _SetDashes(*args
, **kwargs
): 
 383         """_SetDashes(self, PyObject _self, PyObject pyDashes)""" 
 384         return _gdi_
.Pen__SetDashes(*args
, **kwargs
) 
 386     def SetDashes(self
, dashes
): 
 388         Associate a list of dash lengths with the Pen. 
 390         self
._SetDashes
(self
, dashes
) 
 392     def GetDashCount(*args
, **kwargs
): 
 393         """GetDashCount(self) -> int""" 
 394         return _gdi_
.Pen_GetDashCount(*args
, **kwargs
) 
 396     def GetStipple(*args
, **kwargs
): 
 397         """GetStipple(self) -> Bitmap""" 
 398         return _gdi_
.Pen_GetStipple(*args
, **kwargs
) 
 400     def SetStipple(*args
, **kwargs
): 
 401         """SetStipple(self, Bitmap stipple)""" 
 402         return _gdi_
.Pen_SetStipple(*args
, **kwargs
) 
 404     def __eq__(*args
, **kwargs
): 
 405         """__eq__(self, Pen other) -> bool""" 
 406         return _gdi_
.Pen___eq__(*args
, **kwargs
) 
 408     def __ne__(*args
, **kwargs
): 
 409         """__ne__(self, Pen other) -> bool""" 
 410         return _gdi_
.Pen___ne__(*args
, **kwargs
) 
 412     def __nonzero__(self
): return self
.Ok()  
 415     def __init__(self
, this
): 
 417         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
 419 _gdi_
.Pen_swigregister(PenPtr
) 
 421 #--------------------------------------------------------------------------- 
 423 class Brush(GDIObject
): 
 425     A brush is a drawing tool for filling in areas. It is used for 
 426     painting the background of rectangles, ellipses, etc. when drawing on 
 427     a `wx.DC`.  It has a colour and a style. 
 430         return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 431     def __init__(self
, *args
, **kwargs
): 
 433         __init__(self, Colour colour, int style=SOLID) -> Brush 
 435         Constructs a brush from a `wx.Colour` object and a style. 
 437         newobj 
= _gdi_
.new_Brush(*args
, **kwargs
) 
 438         self
.this 
= newobj
.this
 
 441     def __del__(self
, destroy
=_gdi_
.delete_Brush
): 
 444             if self
.thisown
: destroy(self
) 
 447     def SetColour(*args
, **kwargs
): 
 449         SetColour(self, Colour col) 
 451         Set the brush's `wx.Colour`. 
 453         return _gdi_
.Brush_SetColour(*args
, **kwargs
) 
 455     def SetStyle(*args
, **kwargs
): 
 457         SetStyle(self, int style) 
 459         Sets the style of the brush. See `__init__` for a listing of styles. 
 461         return _gdi_
.Brush_SetStyle(*args
, **kwargs
) 
 463     def SetStipple(*args
, **kwargs
): 
 465         SetStipple(self, Bitmap stipple) 
 467         Sets the stipple `wx.Bitmap`. 
 469         return _gdi_
.Brush_SetStipple(*args
, **kwargs
) 
 471     def GetColour(*args
, **kwargs
): 
 473         GetColour(self) -> Colour 
 475         Returns the `wx.Colour` of the brush. 
 477         return _gdi_
.Brush_GetColour(*args
, **kwargs
) 
 479     def GetStyle(*args
, **kwargs
): 
 481         GetStyle(self) -> int 
 483         Returns the style of the brush.  See `__init__` for a listing of 
 486         return _gdi_
.Brush_GetStyle(*args
, **kwargs
) 
 488     def GetStipple(*args
, **kwargs
): 
 490         GetStipple(self) -> Bitmap 
 492         Returns the stiple `wx.Bitmap` of the brush.  If the brush does not 
 493         have a wx.STIPPLE style, then the return value may be non-None but an 
 494         uninitialised bitmap (`wx.Bitmap.Ok` returns False). 
 496         return _gdi_
.Brush_GetStipple(*args
, **kwargs
) 
 498     def IsHatch(*args
, **kwargs
): 
 500         IsHatch(self) -> bool 
 502         Is the current style a hatch type? 
 504         return _gdi_
.Brush_IsHatch(*args
, **kwargs
) 
 506     def Ok(*args
, **kwargs
): 
 510         Returns True if the brush is initialised and valid. 
 512         return _gdi_
.Brush_Ok(*args
, **kwargs
) 
 514     def __nonzero__(self
): return self
.Ok()  
 516 class BrushPtr(Brush
): 
 517     def __init__(self
, this
): 
 519         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
 520         self
.__class
__ = Brush
 
 521 _gdi_
.Brush_swigregister(BrushPtr
) 
 523 def BrushFromBitmap(*args
, **kwargs
): 
 525     BrushFromBitmap(Bitmap stippleBitmap) -> Brush 
 527     Constructs a stippled brush using a bitmap. 
 529     val 
= _gdi_
.new_BrushFromBitmap(*args
, **kwargs
) 
 533 class Bitmap(GDIObject
): 
 535     The wx.Bitmap class encapsulates the concept of a platform-dependent 
 536     bitmap.  It can be either monochrome or colour, and either loaded from 
 537     a file or created dynamically.  A bitmap can be selected into a memory 
 538     device context (instance of `wx.MemoryDC`). This enables the bitmap to 
 539     be copied to a window or memory device context using `wx.DC.Blit`, or 
 540     to be used as a drawing surface. 
 543         return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 544     def __init__(self
, *args
, **kwargs
): 
 546         __init__(self, String name, int type=BITMAP_TYPE_ANY) -> Bitmap 
 548         Loads a bitmap from a file. 
 550         newobj 
= _gdi_
.new_Bitmap(*args
, **kwargs
) 
 551         self
.this 
= newobj
.this
 
 554     def __del__(self
, destroy
=_gdi_
.delete_Bitmap
): 
 557             if self
.thisown
: destroy(self
) 
 560     def GetHandle(*args
, **kwargs
): 
 561         """GetHandle(self) -> long""" 
 562         return _gdi_
.Bitmap_GetHandle(*args
, **kwargs
) 
 564     def SetHandle(*args
, **kwargs
): 
 565         """SetHandle(self, long handle)""" 
 566         return _gdi_
.Bitmap_SetHandle(*args
, **kwargs
) 
 568     def Ok(*args
, **kwargs
): 
 569         """Ok(self) -> bool""" 
 570         return _gdi_
.Bitmap_Ok(*args
, **kwargs
) 
 572     def GetWidth(*args
, **kwargs
): 
 574         GetWidth(self) -> int 
 576         Gets the width of the bitmap in pixels. 
 578         return _gdi_
.Bitmap_GetWidth(*args
, **kwargs
) 
 580     def GetHeight(*args
, **kwargs
): 
 582         GetHeight(self) -> int 
 584         Gets the height of the bitmap in pixels. 
 586         return _gdi_
.Bitmap_GetHeight(*args
, **kwargs
) 
 588     def GetDepth(*args
, **kwargs
): 
 590         GetDepth(self) -> int 
 592         Gets the colour depth of the bitmap. A value of 1 indicates a 
 595         return _gdi_
.Bitmap_GetDepth(*args
, **kwargs
) 
 597     def GetSize(*args
, **kwargs
): 
 599         GetSize(self) -> Size 
 601         Get the size of the bitmap. 
 603         return _gdi_
.Bitmap_GetSize(*args
, **kwargs
) 
 605     def ConvertToImage(*args
, **kwargs
): 
 607         ConvertToImage(self) -> Image 
 609         Creates a platform-independent image from a platform-dependent 
 610         bitmap. This preserves mask information so that bitmaps and images can 
 611         be converted back and forth without loss in that respect. 
 613         return _gdi_
.Bitmap_ConvertToImage(*args
, **kwargs
) 
 615     def GetMask(*args
, **kwargs
): 
 617         GetMask(self) -> Mask 
 619         Gets the associated mask (if any) which may have been loaded from a 
 620         file or explpicitly set for the bitmap. 
 622         :see: `SetMask`, `wx.Mask` 
 625         return _gdi_
.Bitmap_GetMask(*args
, **kwargs
) 
 627     def SetMask(*args
, **kwargs
): 
 629         SetMask(self, Mask mask) 
 631         Sets the mask for this bitmap. 
 633         :see: `GetMask`, `wx.Mask` 
 636         return _gdi_
.Bitmap_SetMask(*args
, **kwargs
) 
 638     def SetMaskColour(*args
, **kwargs
): 
 640         SetMaskColour(self, Colour colour) 
 642         Create a Mask based on a specified colour in the Bitmap. 
 644         return _gdi_
.Bitmap_SetMaskColour(*args
, **kwargs
) 
 646     def GetSubBitmap(*args
, **kwargs
): 
 648         GetSubBitmap(self, Rect rect) -> Bitmap 
 650         Returns a sub-bitmap of the current one as long as the rect belongs 
 651         entirely to the bitmap. This function preserves bit depth and mask 
 654         return _gdi_
.Bitmap_GetSubBitmap(*args
, **kwargs
) 
 656     def SaveFile(*args
, **kwargs
): 
 658         SaveFile(self, String name, int type, Palette palette=None) -> bool 
 660         Saves a bitmap in the named file.  See `__init__` for a description of 
 661         the ``type`` parameter. 
 663         return _gdi_
.Bitmap_SaveFile(*args
, **kwargs
) 
 665     def LoadFile(*args
, **kwargs
): 
 667         LoadFile(self, String name, int type) -> bool 
 669         Loads a bitmap from a file.  See `__init__` for a description of the 
 672         return _gdi_
.Bitmap_LoadFile(*args
, **kwargs
) 
 674     def GetPalette(*args
, **kwargs
): 
 675         """GetPalette(self) -> Palette""" 
 676         return _gdi_
.Bitmap_GetPalette(*args
, **kwargs
) 
 678     def SetPalette(*args
, **kwargs
): 
 679         """SetPalette(self, Palette palette)""" 
 680         return _gdi_
.Bitmap_SetPalette(*args
, **kwargs
) 
 682     def CopyFromIcon(*args
, **kwargs
): 
 683         """CopyFromIcon(self, Icon icon) -> bool""" 
 684         return _gdi_
.Bitmap_CopyFromIcon(*args
, **kwargs
) 
 686     def SetHeight(*args
, **kwargs
): 
 688         SetHeight(self, int height) 
 690         Set the height property (does not affect the existing bitmap data). 
 692         return _gdi_
.Bitmap_SetHeight(*args
, **kwargs
) 
 694     def SetWidth(*args
, **kwargs
): 
 696         SetWidth(self, int width) 
 698         Set the width property (does not affect the existing bitmap data). 
 700         return _gdi_
.Bitmap_SetWidth(*args
, **kwargs
) 
 702     def SetDepth(*args
, **kwargs
): 
 704         SetDepth(self, int depth) 
 706         Set the depth property (does not affect the existing bitmap data). 
 708         return _gdi_
.Bitmap_SetDepth(*args
, **kwargs
) 
 710     def SetSize(*args
, **kwargs
): 
 712         SetSize(self, Size size) 
 714         Set the bitmap size (does not affect the existing bitmap data). 
 716         return _gdi_
.Bitmap_SetSize(*args
, **kwargs
) 
 718     def CopyFromCursor(*args
, **kwargs
): 
 719         """CopyFromCursor(self, Cursor cursor) -> bool""" 
 720         return _gdi_
.Bitmap_CopyFromCursor(*args
, **kwargs
) 
 722     def GetQuality(*args
, **kwargs
): 
 723         """GetQuality(self) -> int""" 
 724         return _gdi_
.Bitmap_GetQuality(*args
, **kwargs
) 
 726     def SetQuality(*args
, **kwargs
): 
 727         """SetQuality(self, int q)""" 
 728         return _gdi_
.Bitmap_SetQuality(*args
, **kwargs
) 
 730     def __nonzero__(self
): return self
.Ok()  
 731     def __eq__(*args
, **kwargs
): 
 732         """__eq__(self, Bitmap other) -> bool""" 
 733         return _gdi_
.Bitmap___eq__(*args
, **kwargs
) 
 735     def __ne__(*args
, **kwargs
): 
 736         """__ne__(self, Bitmap other) -> bool""" 
 737         return _gdi_
.Bitmap___ne__(*args
, **kwargs
) 
 740 class BitmapPtr(Bitmap
): 
 741     def __init__(self
, this
): 
 743         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
 744         self
.__class
__ = Bitmap
 
 745 _gdi_
.Bitmap_swigregister(BitmapPtr
) 
 747 def EmptyBitmap(*args
, **kwargs
): 
 749     EmptyBitmap(int width, int height, int depth=-1) -> Bitmap 
 751     Creates a new bitmap of the given size.  A depth of -1 indicates the 
 752     depth of the current screen or visual. Some platforms only support 1 
 753     for monochrome and -1 for the current colour setting. 
 755     val 
= _gdi_
.new_EmptyBitmap(*args
, **kwargs
) 
 759 def BitmapFromIcon(*args
, **kwargs
): 
 761     BitmapFromIcon(Icon icon) -> Bitmap 
 763     Create a new bitmap from a `wx.Icon` object. 
 765     val 
= _gdi_
.new_BitmapFromIcon(*args
, **kwargs
) 
 769 def BitmapFromImage(*args
, **kwargs
): 
 771     BitmapFromImage(Image image, int depth=-1) -> Bitmap 
 773     Creates bitmap object from a `wx.Image`. This has to be done to 
 774     actually display a `wx.Image` as you cannot draw an image directly on 
 775     a window. The resulting bitmap will use the provided colour depth (or 
 776     that of the current screen colour depth if depth is -1) which entails 
 777     that a colour reduction may have to take place. 
 779     val 
= _gdi_
.new_BitmapFromImage(*args
, **kwargs
) 
 783 def BitmapFromXPMData(*args
, **kwargs
): 
 785     BitmapFromXPMData(PyObject listOfStrings) -> Bitmap 
 787     Construct a Bitmap from a list of strings formatted as XPM data. 
 789     val 
= _gdi_
.new_BitmapFromXPMData(*args
, **kwargs
) 
 793 def BitmapFromBits(*args
, **kwargs
): 
 795     BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap 
 797     Creates a bitmap from an array of bits.  You should only use this 
 798     function for monochrome bitmaps (depth 1) in portable programs: in 
 799     this case the bits parameter should contain an XBM image.  For other 
 800     bit depths, the behaviour is platform dependent. 
 802     val 
= _gdi_
.new_BitmapFromBits(*args
, **kwargs
) 
 806 class Mask(_core
.Object
): 
 808     This class encapsulates a monochrome mask bitmap, where the masked 
 809     area is black and the unmasked area is white. When associated with a 
 810     bitmap and drawn in a device context, the unmasked area of the bitmap 
 811     will be drawn, and the masked area will not be drawn. 
 813     A mask may be associated with a `wx.Bitmap`. It is used in 
 814     `wx.DC.DrawBitmap` or `wx.DC.Blit` when the source device context is a 
 815     `wx.MemoryDC` with a `wx.Bitmap` selected into it that contains a 
 819         return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 820     def __init__(self
, *args
, **kwargs
): 
 822         __init__(self, Bitmap bitmap, Colour colour=NullColour) -> Mask 
 824         Constructs a mask from a `wx.Bitmap` and a `wx.Colour` in that bitmap 
 825         that indicates the transparent portions of the mask.  In other words, 
 826         the pixels in ``bitmap`` that match ``colour`` will be the transparent 
 827         portions of the mask.  If no ``colour`` or an invalid ``colour`` is 
 828         passed then BLACK is used. 
 830         :see: `wx.Bitmap`, `wx.Colour` 
 832         newobj 
= _gdi_
.new_Mask(*args
, **kwargs
) 
 833         self
.this 
= newobj
.this
 
 838     def __init__(self
, this
): 
 840         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
 841         self
.__class
__ = Mask
 
 842 _gdi_
.Mask_swigregister(MaskPtr
) 
 844 MaskColour 
= wx
._deprecated
(Mask
, "wx.MaskColour is deprecated, use `wx.Mask` instead.")  
 845 class Icon(GDIObject
): 
 846     """Proxy of C++ Icon class""" 
 848         return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 849     def __init__(self
, *args
, **kwargs
): 
 850         """__init__(self, String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon""" 
 851         newobj 
= _gdi_
.new_Icon(*args
, **kwargs
) 
 852         self
.this 
= newobj
.this
 
 855     def __del__(self
, destroy
=_gdi_
.delete_Icon
): 
 858             if self
.thisown
: destroy(self
) 
 861     def LoadFile(*args
, **kwargs
): 
 862         """LoadFile(self, String name, int type) -> bool""" 
 863         return _gdi_
.Icon_LoadFile(*args
, **kwargs
) 
 865     def GetHandle(*args
, **kwargs
): 
 866         """GetHandle(self) -> long""" 
 867         return _gdi_
.Icon_GetHandle(*args
, **kwargs
) 
 869     def SetHandle(*args
, **kwargs
): 
 870         """SetHandle(self, long handle)""" 
 871         return _gdi_
.Icon_SetHandle(*args
, **kwargs
) 
 873     def Ok(*args
, **kwargs
): 
 874         """Ok(self) -> bool""" 
 875         return _gdi_
.Icon_Ok(*args
, **kwargs
) 
 877     def GetWidth(*args
, **kwargs
): 
 878         """GetWidth(self) -> int""" 
 879         return _gdi_
.Icon_GetWidth(*args
, **kwargs
) 
 881     def GetHeight(*args
, **kwargs
): 
 882         """GetHeight(self) -> int""" 
 883         return _gdi_
.Icon_GetHeight(*args
, **kwargs
) 
 885     def GetDepth(*args
, **kwargs
): 
 886         """GetDepth(self) -> int""" 
 887         return _gdi_
.Icon_GetDepth(*args
, **kwargs
) 
 889     def SetWidth(*args
, **kwargs
): 
 890         """SetWidth(self, int w)""" 
 891         return _gdi_
.Icon_SetWidth(*args
, **kwargs
) 
 893     def SetHeight(*args
, **kwargs
): 
 894         """SetHeight(self, int h)""" 
 895         return _gdi_
.Icon_SetHeight(*args
, **kwargs
) 
 897     def SetDepth(*args
, **kwargs
): 
 898         """SetDepth(self, int d)""" 
 899         return _gdi_
.Icon_SetDepth(*args
, **kwargs
) 
 901     def SetSize(*args
, **kwargs
): 
 902         """SetSize(self, Size size)""" 
 903         return _gdi_
.Icon_SetSize(*args
, **kwargs
) 
 905     def CopyFromBitmap(*args
, **kwargs
): 
 906         """CopyFromBitmap(self, Bitmap bmp)""" 
 907         return _gdi_
.Icon_CopyFromBitmap(*args
, **kwargs
) 
 909     def __nonzero__(self
): return self
.Ok()  
 912     def __init__(self
, this
): 
 914         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
 915         self
.__class
__ = Icon
 
 916 _gdi_
.Icon_swigregister(IconPtr
) 
 918 def EmptyIcon(*args
, **kwargs
): 
 919     """EmptyIcon() -> Icon""" 
 920     val 
= _gdi_
.new_EmptyIcon(*args
, **kwargs
) 
 924 def IconFromLocation(*args
, **kwargs
): 
 925     """IconFromLocation(IconLocation loc) -> Icon""" 
 926     val 
= _gdi_
.new_IconFromLocation(*args
, **kwargs
) 
 930 def IconFromBitmap(*args
, **kwargs
): 
 931     """IconFromBitmap(Bitmap bmp) -> Icon""" 
 932     val 
= _gdi_
.new_IconFromBitmap(*args
, **kwargs
) 
 936 def IconFromXPMData(*args
, **kwargs
): 
 937     """IconFromXPMData(PyObject listOfStrings) -> Icon""" 
 938     val 
= _gdi_
.new_IconFromXPMData(*args
, **kwargs
) 
 942 class IconLocation(object): 
 943     """Proxy of C++ IconLocation class""" 
 945         return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 946     def __init__(self
, *args
, **kwargs
): 
 947         """__init__(self, String filename=&wxPyEmptyString, int num=0) -> IconLocation""" 
 948         newobj 
= _gdi_
.new_IconLocation(*args
, **kwargs
) 
 949         self
.this 
= newobj
.this
 
 952     def __del__(self
, destroy
=_gdi_
.delete_IconLocation
): 
 955             if self
.thisown
: destroy(self
) 
 958     def IsOk(*args
, **kwargs
): 
 959         """IsOk(self) -> bool""" 
 960         return _gdi_
.IconLocation_IsOk(*args
, **kwargs
) 
 962     def __nonzero__(self
): return self
.Ok()  
 963     def SetFileName(*args
, **kwargs
): 
 964         """SetFileName(self, String filename)""" 
 965         return _gdi_
.IconLocation_SetFileName(*args
, **kwargs
) 
 967     def GetFileName(*args
, **kwargs
): 
 968         """GetFileName(self) -> String""" 
 969         return _gdi_
.IconLocation_GetFileName(*args
, **kwargs
) 
 971     def SetIndex(*args
, **kwargs
): 
 972         """SetIndex(self, int num)""" 
 973         return _gdi_
.IconLocation_SetIndex(*args
, **kwargs
) 
 975     def GetIndex(*args
, **kwargs
): 
 976         """GetIndex(self) -> int""" 
 977         return _gdi_
.IconLocation_GetIndex(*args
, **kwargs
) 
 980 class IconLocationPtr(IconLocation
): 
 981     def __init__(self
, this
): 
 983         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
 984         self
.__class
__ = IconLocation
 
 985 _gdi_
.IconLocation_swigregister(IconLocationPtr
) 
 987 class IconBundle(object): 
 988     """Proxy of C++ IconBundle class""" 
 990         return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
 991     def __init__(self
, *args
, **kwargs
): 
 992         """__init__(self) -> IconBundle""" 
 993         newobj 
= _gdi_
.new_IconBundle(*args
, **kwargs
) 
 994         self
.this 
= newobj
.this
 
 997     def __del__(self
, destroy
=_gdi_
.delete_IconBundle
): 
1000             if self
.thisown
: destroy(self
) 
1003     def AddIcon(*args
, **kwargs
): 
1004         """AddIcon(self, Icon icon)""" 
1005         return _gdi_
.IconBundle_AddIcon(*args
, **kwargs
) 
1007     def AddIconFromFile(*args
, **kwargs
): 
1008         """AddIconFromFile(self, String file, long type)""" 
1009         return _gdi_
.IconBundle_AddIconFromFile(*args
, **kwargs
) 
1011     def GetIcon(*args
, **kwargs
): 
1012         """GetIcon(self, Size size) -> Icon""" 
1013         return _gdi_
.IconBundle_GetIcon(*args
, **kwargs
) 
1016 class IconBundlePtr(IconBundle
): 
1017     def __init__(self
, this
): 
1019         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1020         self
.__class
__ = IconBundle
 
1021 _gdi_
.IconBundle_swigregister(IconBundlePtr
) 
1023 def IconBundleFromFile(*args
, **kwargs
): 
1024     """IconBundleFromFile(String file, long type) -> IconBundle""" 
1025     val 
= _gdi_
.new_IconBundleFromFile(*args
, **kwargs
) 
1029 def IconBundleFromIcon(*args
, **kwargs
): 
1030     """IconBundleFromIcon(Icon icon) -> IconBundle""" 
1031     val 
= _gdi_
.new_IconBundleFromIcon(*args
, **kwargs
) 
1035 class Cursor(GDIObject
): 
1037     A cursor is a small bitmap usually used for denoting where the mouse 
1038     pointer is, with a picture that might indicate the interpretation of a 
1041     A single cursor object may be used in many windows (any subwindow 
1042     type). The wxWindows convention is to set the cursor for a window, as 
1043     in X, rather than to set it globally as in MS Windows, although a 
1044     global `wx.SetCursor` function is also available for use on MS Windows. 
1048         return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1049     def __init__(self
, *args
, **kwargs
): 
1051         __init__(self, String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor 
1053         Construct a Cursor from a file.  Specify the type of file using 
1054         wx.BITAMP_TYPE* constants, and specify the hotspot if not using a .cur 
1057         newobj 
= _gdi_
.new_Cursor(*args
, **kwargs
) 
1058         self
.this 
= newobj
.this
 
1061     def __del__(self
, destroy
=_gdi_
.delete_Cursor
): 
1064             if self
.thisown
: destroy(self
) 
1067     def GetHandle(*args
, **kwargs
): 
1069         GetHandle(self) -> long 
1071         Get the MS Windows handle for the cursor 
1073         return _gdi_
.Cursor_GetHandle(*args
, **kwargs
) 
1075     def SetHandle(*args
, **kwargs
): 
1077         SetHandle(self, long handle) 
1079         Set the MS Windows handle to use for the cursor 
1081         return _gdi_
.Cursor_SetHandle(*args
, **kwargs
) 
1083     def Ok(*args
, **kwargs
): 
1084         """Ok(self) -> bool""" 
1085         return _gdi_
.Cursor_Ok(*args
, **kwargs
) 
1087     def __nonzero__(self
): return self
.Ok()  
1088     def GetWidth(*args
, **kwargs
): 
1089         """GetWidth(self) -> int""" 
1090         return _gdi_
.Cursor_GetWidth(*args
, **kwargs
) 
1092     def GetHeight(*args
, **kwargs
): 
1093         """GetHeight(self) -> int""" 
1094         return _gdi_
.Cursor_GetHeight(*args
, **kwargs
) 
1096     def GetDepth(*args
, **kwargs
): 
1097         """GetDepth(self) -> int""" 
1098         return _gdi_
.Cursor_GetDepth(*args
, **kwargs
) 
1100     def SetWidth(*args
, **kwargs
): 
1101         """SetWidth(self, int w)""" 
1102         return _gdi_
.Cursor_SetWidth(*args
, **kwargs
) 
1104     def SetHeight(*args
, **kwargs
): 
1105         """SetHeight(self, int h)""" 
1106         return _gdi_
.Cursor_SetHeight(*args
, **kwargs
) 
1108     def SetDepth(*args
, **kwargs
): 
1109         """SetDepth(self, int d)""" 
1110         return _gdi_
.Cursor_SetDepth(*args
, **kwargs
) 
1112     def SetSize(*args
, **kwargs
): 
1113         """SetSize(self, Size size)""" 
1114         return _gdi_
.Cursor_SetSize(*args
, **kwargs
) 
1117 class CursorPtr(Cursor
): 
1118     def __init__(self
, this
): 
1120         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1121         self
.__class
__ = Cursor
 
1122 _gdi_
.Cursor_swigregister(CursorPtr
) 
1124 def StockCursor(*args
, **kwargs
): 
1126     StockCursor(int id) -> Cursor 
1128     Create a cursor using one of the stock cursors.  Note that not all 
1129     stock cursors are available on all platforms. 
1131     val 
= _gdi_
.new_StockCursor(*args
, **kwargs
) 
1135 def CursorFromImage(*args
, **kwargs
): 
1137     CursorFromImage(Image image) -> Cursor 
1139     Constructs a cursor from a `wx.Image`. The mask (if any) will be used 
1140     for setting the transparent portions of the cursor. 
1142     val 
= _gdi_
.new_CursorFromImage(*args
, **kwargs
) 
1146 #--------------------------------------------------------------------------- 
1148 OutRegion 
= _gdi_
.OutRegion
 
1149 PartRegion 
= _gdi_
.PartRegion
 
1150 InRegion 
= _gdi_
.InRegion
 
1151 class Region(GDIObject
): 
1152     """Proxy of C++ Region class""" 
1154         return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1155     def __init__(self
, *args
, **kwargs
): 
1156         """__init__(self, int x=0, int y=0, int width=0, int height=0) -> Region""" 
1157         newobj 
= _gdi_
.new_Region(*args
, **kwargs
) 
1158         self
.this 
= newobj
.this
 
1161     def __del__(self
, destroy
=_gdi_
.delete_Region
): 
1164             if self
.thisown
: destroy(self
) 
1167     def Clear(*args
, **kwargs
): 
1169         return _gdi_
.Region_Clear(*args
, **kwargs
) 
1171     def Offset(*args
, **kwargs
): 
1172         """Offset(self, int x, int y) -> bool""" 
1173         return _gdi_
.Region_Offset(*args
, **kwargs
) 
1175     def Contains(*args
, **kwargs
): 
1176         """Contains(self, int x, int y) -> int""" 
1177         return _gdi_
.Region_Contains(*args
, **kwargs
) 
1179     def ContainsPoint(*args
, **kwargs
): 
1180         """ContainsPoint(self, Point pt) -> int""" 
1181         return _gdi_
.Region_ContainsPoint(*args
, **kwargs
) 
1183     def ContainsRect(*args
, **kwargs
): 
1184         """ContainsRect(self, Rect rect) -> int""" 
1185         return _gdi_
.Region_ContainsRect(*args
, **kwargs
) 
1187     def ContainsRectDim(*args
, **kwargs
): 
1188         """ContainsRectDim(self, int x, int y, int w, int h) -> int""" 
1189         return _gdi_
.Region_ContainsRectDim(*args
, **kwargs
) 
1191     def GetBox(*args
, **kwargs
): 
1192         """GetBox(self) -> Rect""" 
1193         return _gdi_
.Region_GetBox(*args
, **kwargs
) 
1195     def Intersect(*args
, **kwargs
): 
1196         """Intersect(self, int x, int y, int width, int height) -> bool""" 
1197         return _gdi_
.Region_Intersect(*args
, **kwargs
) 
1199     def IntersectRect(*args
, **kwargs
): 
1200         """IntersectRect(self, Rect rect) -> bool""" 
1201         return _gdi_
.Region_IntersectRect(*args
, **kwargs
) 
1203     def IntersectRegion(*args
, **kwargs
): 
1204         """IntersectRegion(self, Region region) -> bool""" 
1205         return _gdi_
.Region_IntersectRegion(*args
, **kwargs
) 
1207     def IsEmpty(*args
, **kwargs
): 
1208         """IsEmpty(self) -> bool""" 
1209         return _gdi_
.Region_IsEmpty(*args
, **kwargs
) 
1211     def Union(*args
, **kwargs
): 
1212         """Union(self, int x, int y, int width, int height) -> bool""" 
1213         return _gdi_
.Region_Union(*args
, **kwargs
) 
1215     def UnionRect(*args
, **kwargs
): 
1216         """UnionRect(self, Rect rect) -> bool""" 
1217         return _gdi_
.Region_UnionRect(*args
, **kwargs
) 
1219     def UnionRegion(*args
, **kwargs
): 
1220         """UnionRegion(self, Region region) -> bool""" 
1221         return _gdi_
.Region_UnionRegion(*args
, **kwargs
) 
1223     def Subtract(*args
, **kwargs
): 
1224         """Subtract(self, int x, int y, int width, int height) -> bool""" 
1225         return _gdi_
.Region_Subtract(*args
, **kwargs
) 
1227     def SubtractRect(*args
, **kwargs
): 
1228         """SubtractRect(self, Rect rect) -> bool""" 
1229         return _gdi_
.Region_SubtractRect(*args
, **kwargs
) 
1231     def SubtractRegion(*args
, **kwargs
): 
1232         """SubtractRegion(self, Region region) -> bool""" 
1233         return _gdi_
.Region_SubtractRegion(*args
, **kwargs
) 
1235     def Xor(*args
, **kwargs
): 
1236         """Xor(self, int x, int y, int width, int height) -> bool""" 
1237         return _gdi_
.Region_Xor(*args
, **kwargs
) 
1239     def XorRect(*args
, **kwargs
): 
1240         """XorRect(self, Rect rect) -> bool""" 
1241         return _gdi_
.Region_XorRect(*args
, **kwargs
) 
1243     def XorRegion(*args
, **kwargs
): 
1244         """XorRegion(self, Region region) -> bool""" 
1245         return _gdi_
.Region_XorRegion(*args
, **kwargs
) 
1247     def ConvertToBitmap(*args
, **kwargs
): 
1248         """ConvertToBitmap(self) -> Bitmap""" 
1249         return _gdi_
.Region_ConvertToBitmap(*args
, **kwargs
) 
1251     def UnionBitmap(*args
, **kwargs
): 
1252         """UnionBitmap(self, Bitmap bmp) -> bool""" 
1253         return _gdi_
.Region_UnionBitmap(*args
, **kwargs
) 
1255     def UnionBitmapColour(*args
, **kwargs
): 
1256         """UnionBitmapColour(self, Bitmap bmp, Colour transColour, int tolerance=0) -> bool""" 
1257         return _gdi_
.Region_UnionBitmapColour(*args
, **kwargs
) 
1260 class RegionPtr(Region
): 
1261     def __init__(self
, this
): 
1263         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1264         self
.__class
__ = Region
 
1265 _gdi_
.Region_swigregister(RegionPtr
) 
1267 def RegionFromBitmap(*args
, **kwargs
): 
1268     """RegionFromBitmap(Bitmap bmp) -> Region""" 
1269     val 
= _gdi_
.new_RegionFromBitmap(*args
, **kwargs
) 
1273 def RegionFromBitmapColour(*args
, **kwargs
): 
1274     """RegionFromBitmapColour(Bitmap bmp, Colour transColour, int tolerance=0) -> Region""" 
1275     val 
= _gdi_
.new_RegionFromBitmapColour(*args
, **kwargs
) 
1279 def RegionFromPoints(*args
, **kwargs
): 
1280     """RegionFromPoints(int points, int fillStyle=WINDING_RULE) -> Region""" 
1281     val 
= _gdi_
.new_RegionFromPoints(*args
, **kwargs
) 
1285 class RegionIterator(_core
.Object
): 
1286     """Proxy of C++ RegionIterator class""" 
1288         return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1289     def __init__(self
, *args
, **kwargs
): 
1290         """__init__(self, Region region) -> RegionIterator""" 
1291         newobj 
= _gdi_
.new_RegionIterator(*args
, **kwargs
) 
1292         self
.this 
= newobj
.this
 
1295     def __del__(self
, destroy
=_gdi_
.delete_RegionIterator
): 
1298             if self
.thisown
: destroy(self
) 
1301     def GetX(*args
, **kwargs
): 
1302         """GetX(self) -> int""" 
1303         return _gdi_
.RegionIterator_GetX(*args
, **kwargs
) 
1305     def GetY(*args
, **kwargs
): 
1306         """GetY(self) -> int""" 
1307         return _gdi_
.RegionIterator_GetY(*args
, **kwargs
) 
1309     def GetW(*args
, **kwargs
): 
1310         """GetW(self) -> int""" 
1311         return _gdi_
.RegionIterator_GetW(*args
, **kwargs
) 
1313     def GetWidth(*args
, **kwargs
): 
1314         """GetWidth(self) -> int""" 
1315         return _gdi_
.RegionIterator_GetWidth(*args
, **kwargs
) 
1317     def GetH(*args
, **kwargs
): 
1318         """GetH(self) -> int""" 
1319         return _gdi_
.RegionIterator_GetH(*args
, **kwargs
) 
1321     def GetHeight(*args
, **kwargs
): 
1322         """GetHeight(self) -> int""" 
1323         return _gdi_
.RegionIterator_GetHeight(*args
, **kwargs
) 
1325     def GetRect(*args
, **kwargs
): 
1326         """GetRect(self) -> Rect""" 
1327         return _gdi_
.RegionIterator_GetRect(*args
, **kwargs
) 
1329     def HaveRects(*args
, **kwargs
): 
1330         """HaveRects(self) -> bool""" 
1331         return _gdi_
.RegionIterator_HaveRects(*args
, **kwargs
) 
1333     def Reset(*args
, **kwargs
): 
1335         return _gdi_
.RegionIterator_Reset(*args
, **kwargs
) 
1337     def Next(*args
, **kwargs
): 
1339         return _gdi_
.RegionIterator_Next(*args
, **kwargs
) 
1341     def __nonzero__(*args
, **kwargs
): 
1342         """__nonzero__(self) -> bool""" 
1343         return _gdi_
.RegionIterator___nonzero__(*args
, **kwargs
) 
1346 class RegionIteratorPtr(RegionIterator
): 
1347     def __init__(self
, this
): 
1349         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1350         self
.__class
__ = RegionIterator
 
1351 _gdi_
.RegionIterator_swigregister(RegionIteratorPtr
) 
1353 #--------------------------------------------------------------------------- 
1355 FONTFAMILY_DEFAULT 
= _gdi_
.FONTFAMILY_DEFAULT
 
1356 FONTFAMILY_DECORATIVE 
= _gdi_
.FONTFAMILY_DECORATIVE
 
1357 FONTFAMILY_ROMAN 
= _gdi_
.FONTFAMILY_ROMAN
 
1358 FONTFAMILY_SCRIPT 
= _gdi_
.FONTFAMILY_SCRIPT
 
1359 FONTFAMILY_SWISS 
= _gdi_
.FONTFAMILY_SWISS
 
1360 FONTFAMILY_MODERN 
= _gdi_
.FONTFAMILY_MODERN
 
1361 FONTFAMILY_TELETYPE 
= _gdi_
.FONTFAMILY_TELETYPE
 
1362 FONTFAMILY_MAX 
= _gdi_
.FONTFAMILY_MAX
 
1363 FONTFAMILY_UNKNOWN 
= _gdi_
.FONTFAMILY_UNKNOWN
 
1364 FONTSTYLE_NORMAL 
= _gdi_
.FONTSTYLE_NORMAL
 
1365 FONTSTYLE_ITALIC 
= _gdi_
.FONTSTYLE_ITALIC
 
1366 FONTSTYLE_SLANT 
= _gdi_
.FONTSTYLE_SLANT
 
1367 FONTSTYLE_MAX 
= _gdi_
.FONTSTYLE_MAX
 
1368 FONTWEIGHT_NORMAL 
= _gdi_
.FONTWEIGHT_NORMAL
 
1369 FONTWEIGHT_LIGHT 
= _gdi_
.FONTWEIGHT_LIGHT
 
1370 FONTWEIGHT_BOLD 
= _gdi_
.FONTWEIGHT_BOLD
 
1371 FONTWEIGHT_MAX 
= _gdi_
.FONTWEIGHT_MAX
 
1372 FONTFLAG_DEFAULT 
= _gdi_
.FONTFLAG_DEFAULT
 
1373 FONTFLAG_ITALIC 
= _gdi_
.FONTFLAG_ITALIC
 
1374 FONTFLAG_SLANT 
= _gdi_
.FONTFLAG_SLANT
 
1375 FONTFLAG_LIGHT 
= _gdi_
.FONTFLAG_LIGHT
 
1376 FONTFLAG_BOLD 
= _gdi_
.FONTFLAG_BOLD
 
1377 FONTFLAG_ANTIALIASED 
= _gdi_
.FONTFLAG_ANTIALIASED
 
1378 FONTFLAG_NOT_ANTIALIASED 
= _gdi_
.FONTFLAG_NOT_ANTIALIASED
 
1379 FONTFLAG_UNDERLINED 
= _gdi_
.FONTFLAG_UNDERLINED
 
1380 FONTFLAG_STRIKETHROUGH 
= _gdi_
.FONTFLAG_STRIKETHROUGH
 
1381 FONTFLAG_MASK 
= _gdi_
.FONTFLAG_MASK
 
1382 FONTENCODING_SYSTEM 
= _gdi_
.FONTENCODING_SYSTEM
 
1383 FONTENCODING_DEFAULT 
= _gdi_
.FONTENCODING_DEFAULT
 
1384 FONTENCODING_ISO8859_1 
= _gdi_
.FONTENCODING_ISO8859_1
 
1385 FONTENCODING_ISO8859_2 
= _gdi_
.FONTENCODING_ISO8859_2
 
1386 FONTENCODING_ISO8859_3 
= _gdi_
.FONTENCODING_ISO8859_3
 
1387 FONTENCODING_ISO8859_4 
= _gdi_
.FONTENCODING_ISO8859_4
 
1388 FONTENCODING_ISO8859_5 
= _gdi_
.FONTENCODING_ISO8859_5
 
1389 FONTENCODING_ISO8859_6 
= _gdi_
.FONTENCODING_ISO8859_6
 
1390 FONTENCODING_ISO8859_7 
= _gdi_
.FONTENCODING_ISO8859_7
 
1391 FONTENCODING_ISO8859_8 
= _gdi_
.FONTENCODING_ISO8859_8
 
1392 FONTENCODING_ISO8859_9 
= _gdi_
.FONTENCODING_ISO8859_9
 
1393 FONTENCODING_ISO8859_10 
= _gdi_
.FONTENCODING_ISO8859_10
 
1394 FONTENCODING_ISO8859_11 
= _gdi_
.FONTENCODING_ISO8859_11
 
1395 FONTENCODING_ISO8859_12 
= _gdi_
.FONTENCODING_ISO8859_12
 
1396 FONTENCODING_ISO8859_13 
= _gdi_
.FONTENCODING_ISO8859_13
 
1397 FONTENCODING_ISO8859_14 
= _gdi_
.FONTENCODING_ISO8859_14
 
1398 FONTENCODING_ISO8859_15 
= _gdi_
.FONTENCODING_ISO8859_15
 
1399 FONTENCODING_ISO8859_MAX 
= _gdi_
.FONTENCODING_ISO8859_MAX
 
1400 FONTENCODING_KOI8 
= _gdi_
.FONTENCODING_KOI8
 
1401 FONTENCODING_KOI8_U 
= _gdi_
.FONTENCODING_KOI8_U
 
1402 FONTENCODING_ALTERNATIVE 
= _gdi_
.FONTENCODING_ALTERNATIVE
 
1403 FONTENCODING_BULGARIAN 
= _gdi_
.FONTENCODING_BULGARIAN
 
1404 FONTENCODING_CP437 
= _gdi_
.FONTENCODING_CP437
 
1405 FONTENCODING_CP850 
= _gdi_
.FONTENCODING_CP850
 
1406 FONTENCODING_CP852 
= _gdi_
.FONTENCODING_CP852
 
1407 FONTENCODING_CP855 
= _gdi_
.FONTENCODING_CP855
 
1408 FONTENCODING_CP866 
= _gdi_
.FONTENCODING_CP866
 
1409 FONTENCODING_CP874 
= _gdi_
.FONTENCODING_CP874
 
1410 FONTENCODING_CP932 
= _gdi_
.FONTENCODING_CP932
 
1411 FONTENCODING_CP936 
= _gdi_
.FONTENCODING_CP936
 
1412 FONTENCODING_CP949 
= _gdi_
.FONTENCODING_CP949
 
1413 FONTENCODING_CP950 
= _gdi_
.FONTENCODING_CP950
 
1414 FONTENCODING_CP1250 
= _gdi_
.FONTENCODING_CP1250
 
1415 FONTENCODING_CP1251 
= _gdi_
.FONTENCODING_CP1251
 
1416 FONTENCODING_CP1252 
= _gdi_
.FONTENCODING_CP1252
 
1417 FONTENCODING_CP1253 
= _gdi_
.FONTENCODING_CP1253
 
1418 FONTENCODING_CP1254 
= _gdi_
.FONTENCODING_CP1254
 
1419 FONTENCODING_CP1255 
= _gdi_
.FONTENCODING_CP1255
 
1420 FONTENCODING_CP1256 
= _gdi_
.FONTENCODING_CP1256
 
1421 FONTENCODING_CP1257 
= _gdi_
.FONTENCODING_CP1257
 
1422 FONTENCODING_CP12_MAX 
= _gdi_
.FONTENCODING_CP12_MAX
 
1423 FONTENCODING_UTF7 
= _gdi_
.FONTENCODING_UTF7
 
1424 FONTENCODING_UTF8 
= _gdi_
.FONTENCODING_UTF8
 
1425 FONTENCODING_EUC_JP 
= _gdi_
.FONTENCODING_EUC_JP
 
1426 FONTENCODING_UTF16BE 
= _gdi_
.FONTENCODING_UTF16BE
 
1427 FONTENCODING_UTF16LE 
= _gdi_
.FONTENCODING_UTF16LE
 
1428 FONTENCODING_UTF32BE 
= _gdi_
.FONTENCODING_UTF32BE
 
1429 FONTENCODING_UTF32LE 
= _gdi_
.FONTENCODING_UTF32LE
 
1430 FONTENCODING_MACROMAN 
= _gdi_
.FONTENCODING_MACROMAN
 
1431 FONTENCODING_MACJAPANESE 
= _gdi_
.FONTENCODING_MACJAPANESE
 
1432 FONTENCODING_MACCHINESETRAD 
= _gdi_
.FONTENCODING_MACCHINESETRAD
 
1433 FONTENCODING_MACKOREAN 
= _gdi_
.FONTENCODING_MACKOREAN
 
1434 FONTENCODING_MACARABIC 
= _gdi_
.FONTENCODING_MACARABIC
 
1435 FONTENCODING_MACHEBREW 
= _gdi_
.FONTENCODING_MACHEBREW
 
1436 FONTENCODING_MACGREEK 
= _gdi_
.FONTENCODING_MACGREEK
 
1437 FONTENCODING_MACCYRILLIC 
= _gdi_
.FONTENCODING_MACCYRILLIC
 
1438 FONTENCODING_MACDEVANAGARI 
= _gdi_
.FONTENCODING_MACDEVANAGARI
 
1439 FONTENCODING_MACGURMUKHI 
= _gdi_
.FONTENCODING_MACGURMUKHI
 
1440 FONTENCODING_MACGUJARATI 
= _gdi_
.FONTENCODING_MACGUJARATI
 
1441 FONTENCODING_MACORIYA 
= _gdi_
.FONTENCODING_MACORIYA
 
1442 FONTENCODING_MACBENGALI 
= _gdi_
.FONTENCODING_MACBENGALI
 
1443 FONTENCODING_MACTAMIL 
= _gdi_
.FONTENCODING_MACTAMIL
 
1444 FONTENCODING_MACTELUGU 
= _gdi_
.FONTENCODING_MACTELUGU
 
1445 FONTENCODING_MACKANNADA 
= _gdi_
.FONTENCODING_MACKANNADA
 
1446 FONTENCODING_MACMALAJALAM 
= _gdi_
.FONTENCODING_MACMALAJALAM
 
1447 FONTENCODING_MACSINHALESE 
= _gdi_
.FONTENCODING_MACSINHALESE
 
1448 FONTENCODING_MACBURMESE 
= _gdi_
.FONTENCODING_MACBURMESE
 
1449 FONTENCODING_MACKHMER 
= _gdi_
.FONTENCODING_MACKHMER
 
1450 FONTENCODING_MACTHAI 
= _gdi_
.FONTENCODING_MACTHAI
 
1451 FONTENCODING_MACLAOTIAN 
= _gdi_
.FONTENCODING_MACLAOTIAN
 
1452 FONTENCODING_MACGEORGIAN 
= _gdi_
.FONTENCODING_MACGEORGIAN
 
1453 FONTENCODING_MACARMENIAN 
= _gdi_
.FONTENCODING_MACARMENIAN
 
1454 FONTENCODING_MACCHINESESIMP 
= _gdi_
.FONTENCODING_MACCHINESESIMP
 
1455 FONTENCODING_MACTIBETAN 
= _gdi_
.FONTENCODING_MACTIBETAN
 
1456 FONTENCODING_MACMONGOLIAN 
= _gdi_
.FONTENCODING_MACMONGOLIAN
 
1457 FONTENCODING_MACETHIOPIC 
= _gdi_
.FONTENCODING_MACETHIOPIC
 
1458 FONTENCODING_MACCENTRALEUR 
= _gdi_
.FONTENCODING_MACCENTRALEUR
 
1459 FONTENCODING_MACVIATNAMESE 
= _gdi_
.FONTENCODING_MACVIATNAMESE
 
1460 FONTENCODING_MACARABICEXT 
= _gdi_
.FONTENCODING_MACARABICEXT
 
1461 FONTENCODING_MACSYMBOL 
= _gdi_
.FONTENCODING_MACSYMBOL
 
1462 FONTENCODING_MACDINGBATS 
= _gdi_
.FONTENCODING_MACDINGBATS
 
1463 FONTENCODING_MACTURKISH 
= _gdi_
.FONTENCODING_MACTURKISH
 
1464 FONTENCODING_MACCROATIAN 
= _gdi_
.FONTENCODING_MACCROATIAN
 
1465 FONTENCODING_MACICELANDIC 
= _gdi_
.FONTENCODING_MACICELANDIC
 
1466 FONTENCODING_MACROMANIAN 
= _gdi_
.FONTENCODING_MACROMANIAN
 
1467 FONTENCODING_MACCELTIC 
= _gdi_
.FONTENCODING_MACCELTIC
 
1468 FONTENCODING_MACGAELIC 
= _gdi_
.FONTENCODING_MACGAELIC
 
1469 FONTENCODING_MACKEYBOARD 
= _gdi_
.FONTENCODING_MACKEYBOARD
 
1470 FONTENCODING_MACMIN 
= _gdi_
.FONTENCODING_MACMIN
 
1471 FONTENCODING_MACMAX 
= _gdi_
.FONTENCODING_MACMAX
 
1472 FONTENCODING_MAX 
= _gdi_
.FONTENCODING_MAX
 
1473 FONTENCODING_UTF16 
= _gdi_
.FONTENCODING_UTF16
 
1474 FONTENCODING_UTF32 
= _gdi_
.FONTENCODING_UTF32
 
1475 FONTENCODING_UNICODE 
= _gdi_
.FONTENCODING_UNICODE
 
1476 FONTENCODING_GB2312 
= _gdi_
.FONTENCODING_GB2312
 
1477 FONTENCODING_BIG5 
= _gdi_
.FONTENCODING_BIG5
 
1478 FONTENCODING_SHIFT_JIS 
= _gdi_
.FONTENCODING_SHIFT_JIS
 
1479 #--------------------------------------------------------------------------- 
1481 class NativeFontInfo(object): 
1482     """Proxy of C++ NativeFontInfo class""" 
1484         return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1485     def __init__(self
, *args
, **kwargs
): 
1486         """__init__(self) -> NativeFontInfo""" 
1487         newobj 
= _gdi_
.new_NativeFontInfo(*args
, **kwargs
) 
1488         self
.this 
= newobj
.this
 
1491     def __del__(self
, destroy
=_gdi_
.delete_NativeFontInfo
): 
1494             if self
.thisown
: destroy(self
) 
1497     def Init(*args
, **kwargs
): 
1499         return _gdi_
.NativeFontInfo_Init(*args
, **kwargs
) 
1501     def InitFromFont(*args
, **kwargs
): 
1502         """InitFromFont(self, Font font)""" 
1503         return _gdi_
.NativeFontInfo_InitFromFont(*args
, **kwargs
) 
1505     def GetPointSize(*args
, **kwargs
): 
1506         """GetPointSize(self) -> int""" 
1507         return _gdi_
.NativeFontInfo_GetPointSize(*args
, **kwargs
) 
1509     def GetPixelSize(*args
, **kwargs
): 
1510         """GetPixelSize(self) -> Size""" 
1511         return _gdi_
.NativeFontInfo_GetPixelSize(*args
, **kwargs
) 
1513     def GetStyle(*args
, **kwargs
): 
1514         """GetStyle(self) -> int""" 
1515         return _gdi_
.NativeFontInfo_GetStyle(*args
, **kwargs
) 
1517     def GetWeight(*args
, **kwargs
): 
1518         """GetWeight(self) -> int""" 
1519         return _gdi_
.NativeFontInfo_GetWeight(*args
, **kwargs
) 
1521     def GetUnderlined(*args
, **kwargs
): 
1522         """GetUnderlined(self) -> bool""" 
1523         return _gdi_
.NativeFontInfo_GetUnderlined(*args
, **kwargs
) 
1525     def GetFaceName(*args
, **kwargs
): 
1526         """GetFaceName(self) -> String""" 
1527         return _gdi_
.NativeFontInfo_GetFaceName(*args
, **kwargs
) 
1529     def GetFamily(*args
, **kwargs
): 
1530         """GetFamily(self) -> int""" 
1531         return _gdi_
.NativeFontInfo_GetFamily(*args
, **kwargs
) 
1533     def GetEncoding(*args
, **kwargs
): 
1534         """GetEncoding(self) -> int""" 
1535         return _gdi_
.NativeFontInfo_GetEncoding(*args
, **kwargs
) 
1537     def SetPointSize(*args
, **kwargs
): 
1538         """SetPointSize(self, int pointsize)""" 
1539         return _gdi_
.NativeFontInfo_SetPointSize(*args
, **kwargs
) 
1541     def SetPixelSize(*args
, **kwargs
): 
1542         """SetPixelSize(self, Size pixelSize)""" 
1543         return _gdi_
.NativeFontInfo_SetPixelSize(*args
, **kwargs
) 
1545     def SetStyle(*args
, **kwargs
): 
1546         """SetStyle(self, int style)""" 
1547         return _gdi_
.NativeFontInfo_SetStyle(*args
, **kwargs
) 
1549     def SetWeight(*args
, **kwargs
): 
1550         """SetWeight(self, int weight)""" 
1551         return _gdi_
.NativeFontInfo_SetWeight(*args
, **kwargs
) 
1553     def SetUnderlined(*args
, **kwargs
): 
1554         """SetUnderlined(self, bool underlined)""" 
1555         return _gdi_
.NativeFontInfo_SetUnderlined(*args
, **kwargs
) 
1557     def SetFaceName(*args
, **kwargs
): 
1558         """SetFaceName(self, String facename)""" 
1559         return _gdi_
.NativeFontInfo_SetFaceName(*args
, **kwargs
) 
1561     def SetFamily(*args
, **kwargs
): 
1562         """SetFamily(self, int family)""" 
1563         return _gdi_
.NativeFontInfo_SetFamily(*args
, **kwargs
) 
1565     def SetEncoding(*args
, **kwargs
): 
1566         """SetEncoding(self, int encoding)""" 
1567         return _gdi_
.NativeFontInfo_SetEncoding(*args
, **kwargs
) 
1569     def FromString(*args
, **kwargs
): 
1570         """FromString(self, String s) -> bool""" 
1571         return _gdi_
.NativeFontInfo_FromString(*args
, **kwargs
) 
1573     def ToString(*args
, **kwargs
): 
1574         """ToString(self) -> String""" 
1575         return _gdi_
.NativeFontInfo_ToString(*args
, **kwargs
) 
1577     def __str__(*args
, **kwargs
): 
1578         """__str__(self) -> String""" 
1579         return _gdi_
.NativeFontInfo___str__(*args
, **kwargs
) 
1581     def FromUserString(*args
, **kwargs
): 
1582         """FromUserString(self, String s) -> bool""" 
1583         return _gdi_
.NativeFontInfo_FromUserString(*args
, **kwargs
) 
1585     def ToUserString(*args
, **kwargs
): 
1586         """ToUserString(self) -> String""" 
1587         return _gdi_
.NativeFontInfo_ToUserString(*args
, **kwargs
) 
1590 class NativeFontInfoPtr(NativeFontInfo
): 
1591     def __init__(self
, this
): 
1593         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1594         self
.__class
__ = NativeFontInfo
 
1595 _gdi_
.NativeFontInfo_swigregister(NativeFontInfoPtr
) 
1597 class NativeEncodingInfo(object): 
1598     """Proxy of C++ NativeEncodingInfo class""" 
1600         return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1601     facename 
= property(_gdi_
.NativeEncodingInfo_facename_get
, _gdi_
.NativeEncodingInfo_facename_set
) 
1602     encoding 
= property(_gdi_
.NativeEncodingInfo_encoding_get
, _gdi_
.NativeEncodingInfo_encoding_set
) 
1603     def __init__(self
, *args
, **kwargs
): 
1604         """__init__(self) -> NativeEncodingInfo""" 
1605         newobj 
= _gdi_
.new_NativeEncodingInfo(*args
, **kwargs
) 
1606         self
.this 
= newobj
.this
 
1609     def __del__(self
, destroy
=_gdi_
.delete_NativeEncodingInfo
): 
1612             if self
.thisown
: destroy(self
) 
1615     def FromString(*args
, **kwargs
): 
1616         """FromString(self, String s) -> bool""" 
1617         return _gdi_
.NativeEncodingInfo_FromString(*args
, **kwargs
) 
1619     def ToString(*args
, **kwargs
): 
1620         """ToString(self) -> String""" 
1621         return _gdi_
.NativeEncodingInfo_ToString(*args
, **kwargs
) 
1624 class NativeEncodingInfoPtr(NativeEncodingInfo
): 
1625     def __init__(self
, this
): 
1627         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1628         self
.__class
__ = NativeEncodingInfo
 
1629 _gdi_
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
) 
1632 def GetNativeFontEncoding(*args
, **kwargs
): 
1633     """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo""" 
1634     return _gdi_
.GetNativeFontEncoding(*args
, **kwargs
) 
1636 def TestFontEncoding(*args
, **kwargs
): 
1637     """TestFontEncoding(NativeEncodingInfo info) -> bool""" 
1638     return _gdi_
.TestFontEncoding(*args
, **kwargs
) 
1639 #--------------------------------------------------------------------------- 
1641 class FontMapper(object): 
1642     """Proxy of C++ FontMapper class""" 
1644         return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1645     def __init__(self
, *args
, **kwargs
): 
1646         """__init__(self) -> FontMapper""" 
1647         newobj 
= _gdi_
.new_FontMapper(*args
, **kwargs
) 
1648         self
.this 
= newobj
.this
 
1651     def __del__(self
, destroy
=_gdi_
.delete_FontMapper
): 
1654             if self
.thisown
: destroy(self
) 
1657     def Get(*args
, **kwargs
): 
1658         """Get() -> FontMapper""" 
1659         return _gdi_
.FontMapper_Get(*args
, **kwargs
) 
1661     Get 
= staticmethod(Get
) 
1662     def Set(*args
, **kwargs
): 
1663         """Set(FontMapper mapper) -> FontMapper""" 
1664         return _gdi_
.FontMapper_Set(*args
, **kwargs
) 
1666     Set 
= staticmethod(Set
) 
1667     def CharsetToEncoding(*args
, **kwargs
): 
1668         """CharsetToEncoding(self, String charset, bool interactive=True) -> int""" 
1669         return _gdi_
.FontMapper_CharsetToEncoding(*args
, **kwargs
) 
1671     def GetSupportedEncodingsCount(*args
, **kwargs
): 
1672         """GetSupportedEncodingsCount() -> size_t""" 
1673         return _gdi_
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
) 
1675     GetSupportedEncodingsCount 
= staticmethod(GetSupportedEncodingsCount
) 
1676     def GetEncoding(*args
, **kwargs
): 
1677         """GetEncoding(size_t n) -> int""" 
1678         return _gdi_
.FontMapper_GetEncoding(*args
, **kwargs
) 
1680     GetEncoding 
= staticmethod(GetEncoding
) 
1681     def GetEncodingName(*args
, **kwargs
): 
1682         """GetEncodingName(int encoding) -> String""" 
1683         return _gdi_
.FontMapper_GetEncodingName(*args
, **kwargs
) 
1685     GetEncodingName 
= staticmethod(GetEncodingName
) 
1686     def GetEncodingDescription(*args
, **kwargs
): 
1687         """GetEncodingDescription(int encoding) -> String""" 
1688         return _gdi_
.FontMapper_GetEncodingDescription(*args
, **kwargs
) 
1690     GetEncodingDescription 
= staticmethod(GetEncodingDescription
) 
1691     def GetEncodingFromName(*args
, **kwargs
): 
1692         """GetEncodingFromName(String name) -> int""" 
1693         return _gdi_
.FontMapper_GetEncodingFromName(*args
, **kwargs
) 
1695     GetEncodingFromName 
= staticmethod(GetEncodingFromName
) 
1696     def SetConfig(*args
, **kwargs
): 
1697         """SetConfig(self, ConfigBase config)""" 
1698         return _gdi_
.FontMapper_SetConfig(*args
, **kwargs
) 
1700     def SetConfigPath(*args
, **kwargs
): 
1701         """SetConfigPath(self, String prefix)""" 
1702         return _gdi_
.FontMapper_SetConfigPath(*args
, **kwargs
) 
1704     def GetDefaultConfigPath(*args
, **kwargs
): 
1705         """GetDefaultConfigPath() -> String""" 
1706         return _gdi_
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
) 
1708     GetDefaultConfigPath 
= staticmethod(GetDefaultConfigPath
) 
1709     def GetAltForEncoding(*args
, **kwargs
): 
1710         """GetAltForEncoding(self, int encoding, String facename=EmptyString, bool interactive=True) -> PyObject""" 
1711         return _gdi_
.FontMapper_GetAltForEncoding(*args
, **kwargs
) 
1713     def IsEncodingAvailable(*args
, **kwargs
): 
1714         """IsEncodingAvailable(self, int encoding, String facename=EmptyString) -> bool""" 
1715         return _gdi_
.FontMapper_IsEncodingAvailable(*args
, **kwargs
) 
1717     def SetDialogParent(*args
, **kwargs
): 
1718         """SetDialogParent(self, Window parent)""" 
1719         return _gdi_
.FontMapper_SetDialogParent(*args
, **kwargs
) 
1721     def SetDialogTitle(*args
, **kwargs
): 
1722         """SetDialogTitle(self, String title)""" 
1723         return _gdi_
.FontMapper_SetDialogTitle(*args
, **kwargs
) 
1726 class FontMapperPtr(FontMapper
): 
1727     def __init__(self
, this
): 
1729         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
1730         self
.__class
__ = FontMapper
 
1731 _gdi_
.FontMapper_swigregister(FontMapperPtr
) 
1733 def FontMapper_Get(*args
, **kwargs
): 
1734     """FontMapper_Get() -> FontMapper""" 
1735     return _gdi_
.FontMapper_Get(*args
, **kwargs
) 
1737 def FontMapper_Set(*args
, **kwargs
): 
1738     """FontMapper_Set(FontMapper mapper) -> FontMapper""" 
1739     return _gdi_
.FontMapper_Set(*args
, **kwargs
) 
1741 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
): 
1742     """FontMapper_GetSupportedEncodingsCount() -> size_t""" 
1743     return _gdi_
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
) 
1745 def FontMapper_GetEncoding(*args
, **kwargs
): 
1746     """FontMapper_GetEncoding(size_t n) -> int""" 
1747     return _gdi_
.FontMapper_GetEncoding(*args
, **kwargs
) 
1749 def FontMapper_GetEncodingName(*args
, **kwargs
): 
1750     """FontMapper_GetEncodingName(int encoding) -> String""" 
1751     return _gdi_
.FontMapper_GetEncodingName(*args
, **kwargs
) 
1753 def FontMapper_GetEncodingDescription(*args
, **kwargs
): 
1754     """FontMapper_GetEncodingDescription(int encoding) -> String""" 
1755     return _gdi_
.FontMapper_GetEncodingDescription(*args
, **kwargs
) 
1757 def FontMapper_GetEncodingFromName(*args
, **kwargs
): 
1758     """FontMapper_GetEncodingFromName(String name) -> int""" 
1759     return _gdi_
.FontMapper_GetEncodingFromName(*args
, **kwargs
) 
1761 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
): 
1762     """FontMapper_GetDefaultConfigPath() -> String""" 
1763     return _gdi_
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
) 
1765 #--------------------------------------------------------------------------- 
1767 class Font(GDIObject
): 
1769     A font is an object which determines the appearance of text. Fonts are 
1770     used for drawing text to a device context, and setting the appearance 
1773     You can retrieve the current system font settings with `wx.SystemSettings`. 
1776         return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
1777     def __init__(self
, *args
, **kwargs
): 
1779         __init__(self, int pointSize, int family, int style, int weight, bool underline=False,  
1780             String face=EmptyString,  
1781             int encoding=FONTENCODING_DEFAULT) -> Font 
1783         Creates a font object with the specified attributes. 
1785             :param pointSize:  The size of the font in points. 
1787             :param family: Font family.  A generic way of referring to fonts 
1788                 without specifying actual facename.  It can be One of  
1789                 the ``wx.FONTFAMILY_xxx`` constants. 
1791             :param style: One of the ``wx.FONTSTYLE_xxx`` constants. 
1793             :param weight: Font weight, sometimes also referred to as font 
1794                 boldness. One of the ``wx.FONTWEIGHT_xxx`` constants. 
1796             :param underline: The value can be ``True`` or ``False`` and 
1797                 indicates whether the font will include an underline.  This 
1798                 may not be supported on all platforms. 
1800             :param face: An optional string specifying the actual typeface to 
1801                 be used. If it is an empty string, a default typeface will be 
1802                 chosen based on the family. 
1804             :param encoding: An encoding which may be one of the 
1805                 ``wx.FONTENCODING_xxx`` constants.  If the specified encoding isn't 
1806                 available, no font is created. 
1808         :see: `wx.FFont`, `wx.FontFromPixelSize`, `wx.FFontFromPixelSize`, 
1809             `wx.FontFromNativeInfoString`, `wx.FontFromNativeInfo` 
1812         if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName'] 
1813         newobj 
= _gdi_
.new_Font(*args
, **kwargs
) 
1814         self
.this 
= newobj
.this
 
1817     def __del__(self
, destroy
=_gdi_
.delete_Font
): 
1820             if self
.thisown
: destroy(self
) 
1823     def Ok(*args
, **kwargs
): 
1827         Returns ``True`` if this font was successfully created. 
1829         return _gdi_
.Font_Ok(*args
, **kwargs
) 
1831     def __nonzero__(self
): return self
.Ok()  
1832     def __eq__(*args
, **kwargs
): 
1833         """__eq__(self, Font other) -> bool""" 
1834         return _gdi_
.Font___eq__(*args
, **kwargs
) 
1836     def __ne__(*args
, **kwargs
): 
1837         """__ne__(self, Font other) -> bool""" 
1838         return _gdi_
.Font___ne__(*args
, **kwargs
) 
1840     def GetPointSize(*args
, **kwargs
): 
1842         GetPointSize(self) -> int 
1844         Gets the point size. 
1846         return _gdi_
.Font_GetPointSize(*args
, **kwargs
) 
1848     def GetPixelSize(*args
, **kwargs
): 
1850         GetPixelSize(self) -> Size 
1852         Returns the size in pixels if the font was constructed with a pixel 
1855         return _gdi_
.Font_GetPixelSize(*args
, **kwargs
) 
1857     def IsUsingSizeInPixels(*args
, **kwargs
): 
1859         IsUsingSizeInPixels(self) -> bool 
1861         Returns ``True`` if the font is using a pixelSize. 
1863         return _gdi_
.Font_IsUsingSizeInPixels(*args
, **kwargs
) 
1865     def GetFamily(*args
, **kwargs
): 
1867         GetFamily(self) -> int 
1869         Gets the font family.  
1871         return _gdi_
.Font_GetFamily(*args
, **kwargs
) 
1873     def GetStyle(*args
, **kwargs
): 
1875         GetStyle(self) -> int 
1877         Gets the font style. 
1879         return _gdi_
.Font_GetStyle(*args
, **kwargs
) 
1881     def GetWeight(*args
, **kwargs
): 
1883         GetWeight(self) -> int 
1885         Gets the font weight.  
1887         return _gdi_
.Font_GetWeight(*args
, **kwargs
) 
1889     def GetUnderlined(*args
, **kwargs
): 
1891         GetUnderlined(self) -> bool 
1893         Returns ``True`` if the font is underlined, ``False`` otherwise. 
1895         return _gdi_
.Font_GetUnderlined(*args
, **kwargs
) 
1897     def GetFaceName(*args
, **kwargs
): 
1899         GetFaceName(self) -> String 
1901         Returns the typeface name associated with the font, or the empty 
1902         string if there is no typeface information. 
1904         return _gdi_
.Font_GetFaceName(*args
, **kwargs
) 
1906     def GetEncoding(*args
, **kwargs
): 
1908         GetEncoding(self) -> int 
1910         Get the font's encoding. 
1912         return _gdi_
.Font_GetEncoding(*args
, **kwargs
) 
1914     def GetNativeFontInfo(*args
, **kwargs
): 
1916         GetNativeFontInfo(self) -> NativeFontInfo 
1918         Constructs a `wx.NativeFontInfo` object from this font. 
1920         return _gdi_
.Font_GetNativeFontInfo(*args
, **kwargs
) 
1922     def IsFixedWidth(*args
, **kwargs
): 
1924         IsFixedWidth(self) -> bool 
1926         Returns true if the font is a fixed width (or monospaced) font, false 
1927         if it is a proportional one or font is invalid. 
1929         return _gdi_
.Font_IsFixedWidth(*args
, **kwargs
) 
1931     def GetNativeFontInfoDesc(*args
, **kwargs
): 
1933         GetNativeFontInfoDesc(self) -> String 
1935         Returns the platform-dependent string completely describing this font 
1936         or an empty string if the font isn't valid. 
1938         return _gdi_
.Font_GetNativeFontInfoDesc(*args
, **kwargs
) 
1940     def GetNativeFontInfoUserDesc(*args
, **kwargs
): 
1942         GetNativeFontInfoUserDesc(self) -> String 
1944         Returns a human readable version of `GetNativeFontInfoDesc`. 
1946         return _gdi_
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
) 
1948     def SetPointSize(*args
, **kwargs
): 
1950         SetPointSize(self, int pointSize) 
1952         Sets the point size. 
1954         return _gdi_
.Font_SetPointSize(*args
, **kwargs
) 
1956     def SetPixelSize(*args
, **kwargs
): 
1958         SetPixelSize(self, Size pixelSize) 
1960         Sets the size in pixels rather than points.  If there is platform API 
1961         support for this then it is used, otherwise a font with the closest 
1962         size is found using a binary search. 
1964         return _gdi_
.Font_SetPixelSize(*args
, **kwargs
) 
1966     def SetFamily(*args
, **kwargs
): 
1968         SetFamily(self, int family) 
1970         Sets the font family. 
1972         return _gdi_
.Font_SetFamily(*args
, **kwargs
) 
1974     def SetStyle(*args
, **kwargs
): 
1976         SetStyle(self, int style) 
1978         Sets the font style. 
1980         return _gdi_
.Font_SetStyle(*args
, **kwargs
) 
1982     def SetWeight(*args
, **kwargs
): 
1984         SetWeight(self, int weight) 
1986         Sets the font weight. 
1988         return _gdi_
.Font_SetWeight(*args
, **kwargs
) 
1990     def SetFaceName(*args
, **kwargs
): 
1992         SetFaceName(self, String faceName) 
1994         Sets the facename for the font.  The facename, which should be a valid 
1995         font installed on the end-user's system. 
1997         To avoid portability problems, don't rely on a specific face, but 
1998         specify the font family instead or as well. A suitable font will be 
1999         found on the end-user's system. If both the family and the facename 
2000         are specified, wxWidgets will first search for the specific face, and 
2001         then for a font belonging to the same family. 
2003         return _gdi_
.Font_SetFaceName(*args
, **kwargs
) 
2005     def SetUnderlined(*args
, **kwargs
): 
2007         SetUnderlined(self, bool underlined) 
2011         return _gdi_
.Font_SetUnderlined(*args
, **kwargs
) 
2013     def SetEncoding(*args
, **kwargs
): 
2015         SetEncoding(self, int encoding) 
2017         Set the font encoding. 
2019         return _gdi_
.Font_SetEncoding(*args
, **kwargs
) 
2021     def SetNativeFontInfo(*args
, **kwargs
): 
2023         SetNativeFontInfo(self, NativeFontInfo info) 
2025         Set the font's attributes from a `wx.NativeFontInfo` object. 
2027         return _gdi_
.Font_SetNativeFontInfo(*args
, **kwargs
) 
2029     def SetNativeFontInfoFromString(*args
, **kwargs
): 
2031         SetNativeFontInfoFromString(self, String info) 
2033         Set the font's attributes from string representation of a 
2034         `wx.NativeFontInfo` object. 
2036         return _gdi_
.Font_SetNativeFontInfoFromString(*args
, **kwargs
) 
2038     def SetNativeFontInfoUserDesc(*args
, **kwargs
): 
2040         SetNativeFontInfoUserDesc(self, String info) 
2042         Set the font's attributes from a string formerly returned from 
2043         `GetNativeFontInfoDesc`. 
2045         return _gdi_
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
) 
2047     def GetFamilyString(*args
, **kwargs
): 
2049         GetFamilyString(self) -> String 
2051         Returns a string representation of the font family. 
2053         return _gdi_
.Font_GetFamilyString(*args
, **kwargs
) 
2055     def GetStyleString(*args
, **kwargs
): 
2057         GetStyleString(self) -> String 
2059         Returns a string representation of the font style. 
2061         return _gdi_
.Font_GetStyleString(*args
, **kwargs
) 
2063     def GetWeightString(*args
, **kwargs
): 
2065         GetWeightString(self) -> String 
2067         Return a string representation of the font weight. 
2069         return _gdi_
.Font_GetWeightString(*args
, **kwargs
) 
2071     def SetNoAntiAliasing(*args
, **kwargs
): 
2072         """SetNoAntiAliasing(self, bool no=True)""" 
2073         return _gdi_
.Font_SetNoAntiAliasing(*args
, **kwargs
) 
2075     def GetNoAntiAliasing(*args
, **kwargs
): 
2076         """GetNoAntiAliasing(self) -> bool""" 
2077         return _gdi_
.Font_GetNoAntiAliasing(*args
, **kwargs
) 
2079     def GetDefaultEncoding(*args
, **kwargs
): 
2081         GetDefaultEncoding() -> int 
2083         Returns the encoding used for all fonts created with an encoding of 
2084         ``wx.FONTENCODING_DEFAULT``. 
2086         return _gdi_
.Font_GetDefaultEncoding(*args
, **kwargs
) 
2088     GetDefaultEncoding 
= staticmethod(GetDefaultEncoding
) 
2089     def SetDefaultEncoding(*args
, **kwargs
): 
2091         SetDefaultEncoding(int encoding) 
2093         Sets the default font encoding. 
2095         return _gdi_
.Font_SetDefaultEncoding(*args
, **kwargs
) 
2097     SetDefaultEncoding 
= staticmethod(SetDefaultEncoding
) 
2099 class FontPtr(Font
): 
2100     def __init__(self
, this
): 
2102         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2103         self
.__class
__ = Font
 
2104 _gdi_
.Font_swigregister(FontPtr
) 
2106 def FontFromNativeInfo(*args
, **kwargs
): 
2108     FontFromNativeInfo(NativeFontInfo info) -> Font 
2110     Construct a `wx.Font` from a `wx.NativeFontInfo` object. 
2112     if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName'] 
2113     val 
= _gdi_
.new_FontFromNativeInfo(*args
, **kwargs
) 
2117 def FontFromNativeInfoString(*args
, **kwargs
): 
2119     FontFromNativeInfoString(String info) -> Font 
2121     Construct a `wx.Font` from the string representation of a 
2122     `wx.NativeFontInfo` object. 
2124     if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName'] 
2125     val 
= _gdi_
.new_FontFromNativeInfoString(*args
, **kwargs
) 
2129 def FFont(*args
, **kwargs
): 
2131     FFont(int pointSize, int family, int flags=FONTFLAG_DEFAULT,  
2132         String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font 
2134     A bit of a simpler way to create a `wx.Font` using flags instead of 
2135     individual attribute settings.  The value of flags can be a 
2136     combination of the following: 
2138         ============================  == 
2144         wx.FONTFLAG_ANTIALIASED 
2145         wx.FONTFLAG_NOT_ANTIALIASED 
2146         wx.FONTFLAG_UNDERLINED 
2147         wx.FONTFLAG_STRIKETHROUGH 
2148         ============================  == 
2150     :see: `wx.Font.__init__` 
2152     if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName'] 
2153     val 
= _gdi_
.new_FFont(*args
, **kwargs
) 
2157 def FontFromPixelSize(*args
, **kwargs
): 
2159     FontFromPixelSize(Size pixelSize, int family, int style, int weight,  
2160         bool underlined=False, String face=wxEmptyString,  
2161         int encoding=FONTENCODING_DEFAULT) -> Font 
2163     Creates a font using a size in pixels rather than points.  If there is 
2164     platform API support for this then it is used, otherwise a font with 
2165     the closest size is found using a binary search. 
2167     :see: `wx.Font.__init__` 
2169     if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName'] 
2170     val 
= _gdi_
.new_FontFromPixelSize(*args
, **kwargs
) 
2174 def FFontFromPixelSize(*args
, **kwargs
): 
2176     FFontFromPixelSize(Size pixelSize, int family, int flags=FONTFLAG_DEFAULT,  
2177         String face=wxEmptyString, int encoding=FONTENCODING_DEFAULT) -> Font 
2179     Creates a font using a size in pixels rather than points.  If there is 
2180     platform API support for this then it is used, otherwise a font with 
2181     the closest size is found using a binary search. 
2183     :see: `wx.Font.__init__`, `wx.FFont` 
2185     if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName'] 
2186     val 
= _gdi_
.new_FFontFromPixelSize(*args
, **kwargs
) 
2190 def Font_GetDefaultEncoding(*args
, **kwargs
): 
2192     Font_GetDefaultEncoding() -> int 
2194     Returns the encoding used for all fonts created with an encoding of 
2195     ``wx.FONTENCODING_DEFAULT``. 
2197     return _gdi_
.Font_GetDefaultEncoding(*args
, **kwargs
) 
2199 def Font_SetDefaultEncoding(*args
, **kwargs
): 
2201     Font_SetDefaultEncoding(int encoding) 
2203     Sets the default font encoding. 
2205     return _gdi_
.Font_SetDefaultEncoding(*args
, **kwargs
) 
2207 Font2 
= wx
._deprecated
(FFont
, "Use `wx.FFont` instead.")  
2208 #--------------------------------------------------------------------------- 
2210 class FontEnumerator(object): 
2211     """Proxy of C++ FontEnumerator class""" 
2213         return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2214     def __init__(self
, *args
, **kwargs
): 
2215         """__init__(self) -> FontEnumerator""" 
2216         newobj 
= _gdi_
.new_FontEnumerator(*args
, **kwargs
) 
2217         self
.this 
= newobj
.this
 
2220         self
._setCallbackInfo
(self
, FontEnumerator
, 0) 
2222     def __del__(self
, destroy
=_gdi_
.delete_FontEnumerator
): 
2225             if self
.thisown
: destroy(self
) 
2228     def _setCallbackInfo(*args
, **kwargs
): 
2229         """_setCallbackInfo(self, PyObject self, PyObject _class, bool incref)""" 
2230         return _gdi_
.FontEnumerator__setCallbackInfo(*args
, **kwargs
) 
2232     def EnumerateFacenames(*args
, **kwargs
): 
2233         """EnumerateFacenames(self, int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool""" 
2234         return _gdi_
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
) 
2236     def EnumerateEncodings(*args
, **kwargs
): 
2237         """EnumerateEncodings(self, String facename=EmptyString) -> bool""" 
2238         return _gdi_
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
) 
2240     def GetEncodings(*args
, **kwargs
): 
2241         """GetEncodings(self) -> PyObject""" 
2242         return _gdi_
.FontEnumerator_GetEncodings(*args
, **kwargs
) 
2244     def GetFacenames(*args
, **kwargs
): 
2245         """GetFacenames(self) -> PyObject""" 
2246         return _gdi_
.FontEnumerator_GetFacenames(*args
, **kwargs
) 
2249 class FontEnumeratorPtr(FontEnumerator
): 
2250     def __init__(self
, this
): 
2252         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2253         self
.__class
__ = FontEnumerator
 
2254 _gdi_
.FontEnumerator_swigregister(FontEnumeratorPtr
) 
2256 #--------------------------------------------------------------------------- 
2258 LANGUAGE_DEFAULT 
= _gdi_
.LANGUAGE_DEFAULT
 
2259 LANGUAGE_UNKNOWN 
= _gdi_
.LANGUAGE_UNKNOWN
 
2260 LANGUAGE_ABKHAZIAN 
= _gdi_
.LANGUAGE_ABKHAZIAN
 
2261 LANGUAGE_AFAR 
= _gdi_
.LANGUAGE_AFAR
 
2262 LANGUAGE_AFRIKAANS 
= _gdi_
.LANGUAGE_AFRIKAANS
 
2263 LANGUAGE_ALBANIAN 
= _gdi_
.LANGUAGE_ALBANIAN
 
2264 LANGUAGE_AMHARIC 
= _gdi_
.LANGUAGE_AMHARIC
 
2265 LANGUAGE_ARABIC 
= _gdi_
.LANGUAGE_ARABIC
 
2266 LANGUAGE_ARABIC_ALGERIA 
= _gdi_
.LANGUAGE_ARABIC_ALGERIA
 
2267 LANGUAGE_ARABIC_BAHRAIN 
= _gdi_
.LANGUAGE_ARABIC_BAHRAIN
 
2268 LANGUAGE_ARABIC_EGYPT 
= _gdi_
.LANGUAGE_ARABIC_EGYPT
 
2269 LANGUAGE_ARABIC_IRAQ 
= _gdi_
.LANGUAGE_ARABIC_IRAQ
 
2270 LANGUAGE_ARABIC_JORDAN 
= _gdi_
.LANGUAGE_ARABIC_JORDAN
 
2271 LANGUAGE_ARABIC_KUWAIT 
= _gdi_
.LANGUAGE_ARABIC_KUWAIT
 
2272 LANGUAGE_ARABIC_LEBANON 
= _gdi_
.LANGUAGE_ARABIC_LEBANON
 
2273 LANGUAGE_ARABIC_LIBYA 
= _gdi_
.LANGUAGE_ARABIC_LIBYA
 
2274 LANGUAGE_ARABIC_MOROCCO 
= _gdi_
.LANGUAGE_ARABIC_MOROCCO
 
2275 LANGUAGE_ARABIC_OMAN 
= _gdi_
.LANGUAGE_ARABIC_OMAN
 
2276 LANGUAGE_ARABIC_QATAR 
= _gdi_
.LANGUAGE_ARABIC_QATAR
 
2277 LANGUAGE_ARABIC_SAUDI_ARABIA 
= _gdi_
.LANGUAGE_ARABIC_SAUDI_ARABIA
 
2278 LANGUAGE_ARABIC_SUDAN 
= _gdi_
.LANGUAGE_ARABIC_SUDAN
 
2279 LANGUAGE_ARABIC_SYRIA 
= _gdi_
.LANGUAGE_ARABIC_SYRIA
 
2280 LANGUAGE_ARABIC_TUNISIA 
= _gdi_
.LANGUAGE_ARABIC_TUNISIA
 
2281 LANGUAGE_ARABIC_UAE 
= _gdi_
.LANGUAGE_ARABIC_UAE
 
2282 LANGUAGE_ARABIC_YEMEN 
= _gdi_
.LANGUAGE_ARABIC_YEMEN
 
2283 LANGUAGE_ARMENIAN 
= _gdi_
.LANGUAGE_ARMENIAN
 
2284 LANGUAGE_ASSAMESE 
= _gdi_
.LANGUAGE_ASSAMESE
 
2285 LANGUAGE_AYMARA 
= _gdi_
.LANGUAGE_AYMARA
 
2286 LANGUAGE_AZERI 
= _gdi_
.LANGUAGE_AZERI
 
2287 LANGUAGE_AZERI_CYRILLIC 
= _gdi_
.LANGUAGE_AZERI_CYRILLIC
 
2288 LANGUAGE_AZERI_LATIN 
= _gdi_
.LANGUAGE_AZERI_LATIN
 
2289 LANGUAGE_BASHKIR 
= _gdi_
.LANGUAGE_BASHKIR
 
2290 LANGUAGE_BASQUE 
= _gdi_
.LANGUAGE_BASQUE
 
2291 LANGUAGE_BELARUSIAN 
= _gdi_
.LANGUAGE_BELARUSIAN
 
2292 LANGUAGE_BENGALI 
= _gdi_
.LANGUAGE_BENGALI
 
2293 LANGUAGE_BHUTANI 
= _gdi_
.LANGUAGE_BHUTANI
 
2294 LANGUAGE_BIHARI 
= _gdi_
.LANGUAGE_BIHARI
 
2295 LANGUAGE_BISLAMA 
= _gdi_
.LANGUAGE_BISLAMA
 
2296 LANGUAGE_BRETON 
= _gdi_
.LANGUAGE_BRETON
 
2297 LANGUAGE_BULGARIAN 
= _gdi_
.LANGUAGE_BULGARIAN
 
2298 LANGUAGE_BURMESE 
= _gdi_
.LANGUAGE_BURMESE
 
2299 LANGUAGE_CAMBODIAN 
= _gdi_
.LANGUAGE_CAMBODIAN
 
2300 LANGUAGE_CATALAN 
= _gdi_
.LANGUAGE_CATALAN
 
2301 LANGUAGE_CHINESE 
= _gdi_
.LANGUAGE_CHINESE
 
2302 LANGUAGE_CHINESE_SIMPLIFIED 
= _gdi_
.LANGUAGE_CHINESE_SIMPLIFIED
 
2303 LANGUAGE_CHINESE_TRADITIONAL 
= _gdi_
.LANGUAGE_CHINESE_TRADITIONAL
 
2304 LANGUAGE_CHINESE_HONGKONG 
= _gdi_
.LANGUAGE_CHINESE_HONGKONG
 
2305 LANGUAGE_CHINESE_MACAU 
= _gdi_
.LANGUAGE_CHINESE_MACAU
 
2306 LANGUAGE_CHINESE_SINGAPORE 
= _gdi_
.LANGUAGE_CHINESE_SINGAPORE
 
2307 LANGUAGE_CHINESE_TAIWAN 
= _gdi_
.LANGUAGE_CHINESE_TAIWAN
 
2308 LANGUAGE_CORSICAN 
= _gdi_
.LANGUAGE_CORSICAN
 
2309 LANGUAGE_CROATIAN 
= _gdi_
.LANGUAGE_CROATIAN
 
2310 LANGUAGE_CZECH 
= _gdi_
.LANGUAGE_CZECH
 
2311 LANGUAGE_DANISH 
= _gdi_
.LANGUAGE_DANISH
 
2312 LANGUAGE_DUTCH 
= _gdi_
.LANGUAGE_DUTCH
 
2313 LANGUAGE_DUTCH_BELGIAN 
= _gdi_
.LANGUAGE_DUTCH_BELGIAN
 
2314 LANGUAGE_ENGLISH 
= _gdi_
.LANGUAGE_ENGLISH
 
2315 LANGUAGE_ENGLISH_UK 
= _gdi_
.LANGUAGE_ENGLISH_UK
 
2316 LANGUAGE_ENGLISH_US 
= _gdi_
.LANGUAGE_ENGLISH_US
 
2317 LANGUAGE_ENGLISH_AUSTRALIA 
= _gdi_
.LANGUAGE_ENGLISH_AUSTRALIA
 
2318 LANGUAGE_ENGLISH_BELIZE 
= _gdi_
.LANGUAGE_ENGLISH_BELIZE
 
2319 LANGUAGE_ENGLISH_BOTSWANA 
= _gdi_
.LANGUAGE_ENGLISH_BOTSWANA
 
2320 LANGUAGE_ENGLISH_CANADA 
= _gdi_
.LANGUAGE_ENGLISH_CANADA
 
2321 LANGUAGE_ENGLISH_CARIBBEAN 
= _gdi_
.LANGUAGE_ENGLISH_CARIBBEAN
 
2322 LANGUAGE_ENGLISH_DENMARK 
= _gdi_
.LANGUAGE_ENGLISH_DENMARK
 
2323 LANGUAGE_ENGLISH_EIRE 
= _gdi_
.LANGUAGE_ENGLISH_EIRE
 
2324 LANGUAGE_ENGLISH_JAMAICA 
= _gdi_
.LANGUAGE_ENGLISH_JAMAICA
 
2325 LANGUAGE_ENGLISH_NEW_ZEALAND 
= _gdi_
.LANGUAGE_ENGLISH_NEW_ZEALAND
 
2326 LANGUAGE_ENGLISH_PHILIPPINES 
= _gdi_
.LANGUAGE_ENGLISH_PHILIPPINES
 
2327 LANGUAGE_ENGLISH_SOUTH_AFRICA 
= _gdi_
.LANGUAGE_ENGLISH_SOUTH_AFRICA
 
2328 LANGUAGE_ENGLISH_TRINIDAD 
= _gdi_
.LANGUAGE_ENGLISH_TRINIDAD
 
2329 LANGUAGE_ENGLISH_ZIMBABWE 
= _gdi_
.LANGUAGE_ENGLISH_ZIMBABWE
 
2330 LANGUAGE_ESPERANTO 
= _gdi_
.LANGUAGE_ESPERANTO
 
2331 LANGUAGE_ESTONIAN 
= _gdi_
.LANGUAGE_ESTONIAN
 
2332 LANGUAGE_FAEROESE 
= _gdi_
.LANGUAGE_FAEROESE
 
2333 LANGUAGE_FARSI 
= _gdi_
.LANGUAGE_FARSI
 
2334 LANGUAGE_FIJI 
= _gdi_
.LANGUAGE_FIJI
 
2335 LANGUAGE_FINNISH 
= _gdi_
.LANGUAGE_FINNISH
 
2336 LANGUAGE_FRENCH 
= _gdi_
.LANGUAGE_FRENCH
 
2337 LANGUAGE_FRENCH_BELGIAN 
= _gdi_
.LANGUAGE_FRENCH_BELGIAN
 
2338 LANGUAGE_FRENCH_CANADIAN 
= _gdi_
.LANGUAGE_FRENCH_CANADIAN
 
2339 LANGUAGE_FRENCH_LUXEMBOURG 
= _gdi_
.LANGUAGE_FRENCH_LUXEMBOURG
 
2340 LANGUAGE_FRENCH_MONACO 
= _gdi_
.LANGUAGE_FRENCH_MONACO
 
2341 LANGUAGE_FRENCH_SWISS 
= _gdi_
.LANGUAGE_FRENCH_SWISS
 
2342 LANGUAGE_FRISIAN 
= _gdi_
.LANGUAGE_FRISIAN
 
2343 LANGUAGE_GALICIAN 
= _gdi_
.LANGUAGE_GALICIAN
 
2344 LANGUAGE_GEORGIAN 
= _gdi_
.LANGUAGE_GEORGIAN
 
2345 LANGUAGE_GERMAN 
= _gdi_
.LANGUAGE_GERMAN
 
2346 LANGUAGE_GERMAN_AUSTRIAN 
= _gdi_
.LANGUAGE_GERMAN_AUSTRIAN
 
2347 LANGUAGE_GERMAN_BELGIUM 
= _gdi_
.LANGUAGE_GERMAN_BELGIUM
 
2348 LANGUAGE_GERMAN_LIECHTENSTEIN 
= _gdi_
.LANGUAGE_GERMAN_LIECHTENSTEIN
 
2349 LANGUAGE_GERMAN_LUXEMBOURG 
= _gdi_
.LANGUAGE_GERMAN_LUXEMBOURG
 
2350 LANGUAGE_GERMAN_SWISS 
= _gdi_
.LANGUAGE_GERMAN_SWISS
 
2351 LANGUAGE_GREEK 
= _gdi_
.LANGUAGE_GREEK
 
2352 LANGUAGE_GREENLANDIC 
= _gdi_
.LANGUAGE_GREENLANDIC
 
2353 LANGUAGE_GUARANI 
= _gdi_
.LANGUAGE_GUARANI
 
2354 LANGUAGE_GUJARATI 
= _gdi_
.LANGUAGE_GUJARATI
 
2355 LANGUAGE_HAUSA 
= _gdi_
.LANGUAGE_HAUSA
 
2356 LANGUAGE_HEBREW 
= _gdi_
.LANGUAGE_HEBREW
 
2357 LANGUAGE_HINDI 
= _gdi_
.LANGUAGE_HINDI
 
2358 LANGUAGE_HUNGARIAN 
= _gdi_
.LANGUAGE_HUNGARIAN
 
2359 LANGUAGE_ICELANDIC 
= _gdi_
.LANGUAGE_ICELANDIC
 
2360 LANGUAGE_INDONESIAN 
= _gdi_
.LANGUAGE_INDONESIAN
 
2361 LANGUAGE_INTERLINGUA 
= _gdi_
.LANGUAGE_INTERLINGUA
 
2362 LANGUAGE_INTERLINGUE 
= _gdi_
.LANGUAGE_INTERLINGUE
 
2363 LANGUAGE_INUKTITUT 
= _gdi_
.LANGUAGE_INUKTITUT
 
2364 LANGUAGE_INUPIAK 
= _gdi_
.LANGUAGE_INUPIAK
 
2365 LANGUAGE_IRISH 
= _gdi_
.LANGUAGE_IRISH
 
2366 LANGUAGE_ITALIAN 
= _gdi_
.LANGUAGE_ITALIAN
 
2367 LANGUAGE_ITALIAN_SWISS 
= _gdi_
.LANGUAGE_ITALIAN_SWISS
 
2368 LANGUAGE_JAPANESE 
= _gdi_
.LANGUAGE_JAPANESE
 
2369 LANGUAGE_JAVANESE 
= _gdi_
.LANGUAGE_JAVANESE
 
2370 LANGUAGE_KANNADA 
= _gdi_
.LANGUAGE_KANNADA
 
2371 LANGUAGE_KASHMIRI 
= _gdi_
.LANGUAGE_KASHMIRI
 
2372 LANGUAGE_KASHMIRI_INDIA 
= _gdi_
.LANGUAGE_KASHMIRI_INDIA
 
2373 LANGUAGE_KAZAKH 
= _gdi_
.LANGUAGE_KAZAKH
 
2374 LANGUAGE_KERNEWEK 
= _gdi_
.LANGUAGE_KERNEWEK
 
2375 LANGUAGE_KINYARWANDA 
= _gdi_
.LANGUAGE_KINYARWANDA
 
2376 LANGUAGE_KIRGHIZ 
= _gdi_
.LANGUAGE_KIRGHIZ
 
2377 LANGUAGE_KIRUNDI 
= _gdi_
.LANGUAGE_KIRUNDI
 
2378 LANGUAGE_KONKANI 
= _gdi_
.LANGUAGE_KONKANI
 
2379 LANGUAGE_KOREAN 
= _gdi_
.LANGUAGE_KOREAN
 
2380 LANGUAGE_KURDISH 
= _gdi_
.LANGUAGE_KURDISH
 
2381 LANGUAGE_LAOTHIAN 
= _gdi_
.LANGUAGE_LAOTHIAN
 
2382 LANGUAGE_LATIN 
= _gdi_
.LANGUAGE_LATIN
 
2383 LANGUAGE_LATVIAN 
= _gdi_
.LANGUAGE_LATVIAN
 
2384 LANGUAGE_LINGALA 
= _gdi_
.LANGUAGE_LINGALA
 
2385 LANGUAGE_LITHUANIAN 
= _gdi_
.LANGUAGE_LITHUANIAN
 
2386 LANGUAGE_MACEDONIAN 
= _gdi_
.LANGUAGE_MACEDONIAN
 
2387 LANGUAGE_MALAGASY 
= _gdi_
.LANGUAGE_MALAGASY
 
2388 LANGUAGE_MALAY 
= _gdi_
.LANGUAGE_MALAY
 
2389 LANGUAGE_MALAYALAM 
= _gdi_
.LANGUAGE_MALAYALAM
 
2390 LANGUAGE_MALAY_BRUNEI_DARUSSALAM 
= _gdi_
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
 
2391 LANGUAGE_MALAY_MALAYSIA 
= _gdi_
.LANGUAGE_MALAY_MALAYSIA
 
2392 LANGUAGE_MALTESE 
= _gdi_
.LANGUAGE_MALTESE
 
2393 LANGUAGE_MANIPURI 
= _gdi_
.LANGUAGE_MANIPURI
 
2394 LANGUAGE_MAORI 
= _gdi_
.LANGUAGE_MAORI
 
2395 LANGUAGE_MARATHI 
= _gdi_
.LANGUAGE_MARATHI
 
2396 LANGUAGE_MOLDAVIAN 
= _gdi_
.LANGUAGE_MOLDAVIAN
 
2397 LANGUAGE_MONGOLIAN 
= _gdi_
.LANGUAGE_MONGOLIAN
 
2398 LANGUAGE_NAURU 
= _gdi_
.LANGUAGE_NAURU
 
2399 LANGUAGE_NEPALI 
= _gdi_
.LANGUAGE_NEPALI
 
2400 LANGUAGE_NEPALI_INDIA 
= _gdi_
.LANGUAGE_NEPALI_INDIA
 
2401 LANGUAGE_NORWEGIAN_BOKMAL 
= _gdi_
.LANGUAGE_NORWEGIAN_BOKMAL
 
2402 LANGUAGE_NORWEGIAN_NYNORSK 
= _gdi_
.LANGUAGE_NORWEGIAN_NYNORSK
 
2403 LANGUAGE_OCCITAN 
= _gdi_
.LANGUAGE_OCCITAN
 
2404 LANGUAGE_ORIYA 
= _gdi_
.LANGUAGE_ORIYA
 
2405 LANGUAGE_OROMO 
= _gdi_
.LANGUAGE_OROMO
 
2406 LANGUAGE_PASHTO 
= _gdi_
.LANGUAGE_PASHTO
 
2407 LANGUAGE_POLISH 
= _gdi_
.LANGUAGE_POLISH
 
2408 LANGUAGE_PORTUGUESE 
= _gdi_
.LANGUAGE_PORTUGUESE
 
2409 LANGUAGE_PORTUGUESE_BRAZILIAN 
= _gdi_
.LANGUAGE_PORTUGUESE_BRAZILIAN
 
2410 LANGUAGE_PUNJABI 
= _gdi_
.LANGUAGE_PUNJABI
 
2411 LANGUAGE_QUECHUA 
= _gdi_
.LANGUAGE_QUECHUA
 
2412 LANGUAGE_RHAETO_ROMANCE 
= _gdi_
.LANGUAGE_RHAETO_ROMANCE
 
2413 LANGUAGE_ROMANIAN 
= _gdi_
.LANGUAGE_ROMANIAN
 
2414 LANGUAGE_RUSSIAN 
= _gdi_
.LANGUAGE_RUSSIAN
 
2415 LANGUAGE_RUSSIAN_UKRAINE 
= _gdi_
.LANGUAGE_RUSSIAN_UKRAINE
 
2416 LANGUAGE_SAMOAN 
= _gdi_
.LANGUAGE_SAMOAN
 
2417 LANGUAGE_SANGHO 
= _gdi_
.LANGUAGE_SANGHO
 
2418 LANGUAGE_SANSKRIT 
= _gdi_
.LANGUAGE_SANSKRIT
 
2419 LANGUAGE_SCOTS_GAELIC 
= _gdi_
.LANGUAGE_SCOTS_GAELIC
 
2420 LANGUAGE_SERBIAN 
= _gdi_
.LANGUAGE_SERBIAN
 
2421 LANGUAGE_SERBIAN_CYRILLIC 
= _gdi_
.LANGUAGE_SERBIAN_CYRILLIC
 
2422 LANGUAGE_SERBIAN_LATIN 
= _gdi_
.LANGUAGE_SERBIAN_LATIN
 
2423 LANGUAGE_SERBO_CROATIAN 
= _gdi_
.LANGUAGE_SERBO_CROATIAN
 
2424 LANGUAGE_SESOTHO 
= _gdi_
.LANGUAGE_SESOTHO
 
2425 LANGUAGE_SETSWANA 
= _gdi_
.LANGUAGE_SETSWANA
 
2426 LANGUAGE_SHONA 
= _gdi_
.LANGUAGE_SHONA
 
2427 LANGUAGE_SINDHI 
= _gdi_
.LANGUAGE_SINDHI
 
2428 LANGUAGE_SINHALESE 
= _gdi_
.LANGUAGE_SINHALESE
 
2429 LANGUAGE_SISWATI 
= _gdi_
.LANGUAGE_SISWATI
 
2430 LANGUAGE_SLOVAK 
= _gdi_
.LANGUAGE_SLOVAK
 
2431 LANGUAGE_SLOVENIAN 
= _gdi_
.LANGUAGE_SLOVENIAN
 
2432 LANGUAGE_SOMALI 
= _gdi_
.LANGUAGE_SOMALI
 
2433 LANGUAGE_SPANISH 
= _gdi_
.LANGUAGE_SPANISH
 
2434 LANGUAGE_SPANISH_ARGENTINA 
= _gdi_
.LANGUAGE_SPANISH_ARGENTINA
 
2435 LANGUAGE_SPANISH_BOLIVIA 
= _gdi_
.LANGUAGE_SPANISH_BOLIVIA
 
2436 LANGUAGE_SPANISH_CHILE 
= _gdi_
.LANGUAGE_SPANISH_CHILE
 
2437 LANGUAGE_SPANISH_COLOMBIA 
= _gdi_
.LANGUAGE_SPANISH_COLOMBIA
 
2438 LANGUAGE_SPANISH_COSTA_RICA 
= _gdi_
.LANGUAGE_SPANISH_COSTA_RICA
 
2439 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC 
= _gdi_
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
 
2440 LANGUAGE_SPANISH_ECUADOR 
= _gdi_
.LANGUAGE_SPANISH_ECUADOR
 
2441 LANGUAGE_SPANISH_EL_SALVADOR 
= _gdi_
.LANGUAGE_SPANISH_EL_SALVADOR
 
2442 LANGUAGE_SPANISH_GUATEMALA 
= _gdi_
.LANGUAGE_SPANISH_GUATEMALA
 
2443 LANGUAGE_SPANISH_HONDURAS 
= _gdi_
.LANGUAGE_SPANISH_HONDURAS
 
2444 LANGUAGE_SPANISH_MEXICAN 
= _gdi_
.LANGUAGE_SPANISH_MEXICAN
 
2445 LANGUAGE_SPANISH_MODERN 
= _gdi_
.LANGUAGE_SPANISH_MODERN
 
2446 LANGUAGE_SPANISH_NICARAGUA 
= _gdi_
.LANGUAGE_SPANISH_NICARAGUA
 
2447 LANGUAGE_SPANISH_PANAMA 
= _gdi_
.LANGUAGE_SPANISH_PANAMA
 
2448 LANGUAGE_SPANISH_PARAGUAY 
= _gdi_
.LANGUAGE_SPANISH_PARAGUAY
 
2449 LANGUAGE_SPANISH_PERU 
= _gdi_
.LANGUAGE_SPANISH_PERU
 
2450 LANGUAGE_SPANISH_PUERTO_RICO 
= _gdi_
.LANGUAGE_SPANISH_PUERTO_RICO
 
2451 LANGUAGE_SPANISH_URUGUAY 
= _gdi_
.LANGUAGE_SPANISH_URUGUAY
 
2452 LANGUAGE_SPANISH_US 
= _gdi_
.LANGUAGE_SPANISH_US
 
2453 LANGUAGE_SPANISH_VENEZUELA 
= _gdi_
.LANGUAGE_SPANISH_VENEZUELA
 
2454 LANGUAGE_SUNDANESE 
= _gdi_
.LANGUAGE_SUNDANESE
 
2455 LANGUAGE_SWAHILI 
= _gdi_
.LANGUAGE_SWAHILI
 
2456 LANGUAGE_SWEDISH 
= _gdi_
.LANGUAGE_SWEDISH
 
2457 LANGUAGE_SWEDISH_FINLAND 
= _gdi_
.LANGUAGE_SWEDISH_FINLAND
 
2458 LANGUAGE_TAGALOG 
= _gdi_
.LANGUAGE_TAGALOG
 
2459 LANGUAGE_TAJIK 
= _gdi_
.LANGUAGE_TAJIK
 
2460 LANGUAGE_TAMIL 
= _gdi_
.LANGUAGE_TAMIL
 
2461 LANGUAGE_TATAR 
= _gdi_
.LANGUAGE_TATAR
 
2462 LANGUAGE_TELUGU 
= _gdi_
.LANGUAGE_TELUGU
 
2463 LANGUAGE_THAI 
= _gdi_
.LANGUAGE_THAI
 
2464 LANGUAGE_TIBETAN 
= _gdi_
.LANGUAGE_TIBETAN
 
2465 LANGUAGE_TIGRINYA 
= _gdi_
.LANGUAGE_TIGRINYA
 
2466 LANGUAGE_TONGA 
= _gdi_
.LANGUAGE_TONGA
 
2467 LANGUAGE_TSONGA 
= _gdi_
.LANGUAGE_TSONGA
 
2468 LANGUAGE_TURKISH 
= _gdi_
.LANGUAGE_TURKISH
 
2469 LANGUAGE_TURKMEN 
= _gdi_
.LANGUAGE_TURKMEN
 
2470 LANGUAGE_TWI 
= _gdi_
.LANGUAGE_TWI
 
2471 LANGUAGE_UIGHUR 
= _gdi_
.LANGUAGE_UIGHUR
 
2472 LANGUAGE_UKRAINIAN 
= _gdi_
.LANGUAGE_UKRAINIAN
 
2473 LANGUAGE_URDU 
= _gdi_
.LANGUAGE_URDU
 
2474 LANGUAGE_URDU_INDIA 
= _gdi_
.LANGUAGE_URDU_INDIA
 
2475 LANGUAGE_URDU_PAKISTAN 
= _gdi_
.LANGUAGE_URDU_PAKISTAN
 
2476 LANGUAGE_UZBEK 
= _gdi_
.LANGUAGE_UZBEK
 
2477 LANGUAGE_UZBEK_CYRILLIC 
= _gdi_
.LANGUAGE_UZBEK_CYRILLIC
 
2478 LANGUAGE_UZBEK_LATIN 
= _gdi_
.LANGUAGE_UZBEK_LATIN
 
2479 LANGUAGE_VIETNAMESE 
= _gdi_
.LANGUAGE_VIETNAMESE
 
2480 LANGUAGE_VOLAPUK 
= _gdi_
.LANGUAGE_VOLAPUK
 
2481 LANGUAGE_WELSH 
= _gdi_
.LANGUAGE_WELSH
 
2482 LANGUAGE_WOLOF 
= _gdi_
.LANGUAGE_WOLOF
 
2483 LANGUAGE_XHOSA 
= _gdi_
.LANGUAGE_XHOSA
 
2484 LANGUAGE_YIDDISH 
= _gdi_
.LANGUAGE_YIDDISH
 
2485 LANGUAGE_YORUBA 
= _gdi_
.LANGUAGE_YORUBA
 
2486 LANGUAGE_ZHUANG 
= _gdi_
.LANGUAGE_ZHUANG
 
2487 LANGUAGE_ZULU 
= _gdi_
.LANGUAGE_ZULU
 
2488 LANGUAGE_USER_DEFINED 
= _gdi_
.LANGUAGE_USER_DEFINED
 
2489 class LanguageInfo(object): 
2490     """Proxy of C++ LanguageInfo class""" 
2491     def __init__(self
): raise RuntimeError, "No constructor defined" 
2493         return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2494     Language 
= property(_gdi_
.LanguageInfo_Language_get
, _gdi_
.LanguageInfo_Language_set
) 
2495     CanonicalName 
= property(_gdi_
.LanguageInfo_CanonicalName_get
, _gdi_
.LanguageInfo_CanonicalName_set
) 
2496     Description 
= property(_gdi_
.LanguageInfo_Description_get
, _gdi_
.LanguageInfo_Description_set
) 
2498 class LanguageInfoPtr(LanguageInfo
): 
2499     def __init__(self
, this
): 
2501         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2502         self
.__class
__ = LanguageInfo
 
2503 _gdi_
.LanguageInfo_swigregister(LanguageInfoPtr
) 
2505 LOCALE_CAT_NUMBER 
= _gdi_
.LOCALE_CAT_NUMBER
 
2506 LOCALE_CAT_DATE 
= _gdi_
.LOCALE_CAT_DATE
 
2507 LOCALE_CAT_MONEY 
= _gdi_
.LOCALE_CAT_MONEY
 
2508 LOCALE_CAT_MAX 
= _gdi_
.LOCALE_CAT_MAX
 
2509 LOCALE_THOUSANDS_SEP 
= _gdi_
.LOCALE_THOUSANDS_SEP
 
2510 LOCALE_DECIMAL_POINT 
= _gdi_
.LOCALE_DECIMAL_POINT
 
2511 LOCALE_LOAD_DEFAULT 
= _gdi_
.LOCALE_LOAD_DEFAULT
 
2512 LOCALE_CONV_ENCODING 
= _gdi_
.LOCALE_CONV_ENCODING
 
2513 class Locale(object): 
2514     """Proxy of C++ Locale class""" 
2516         return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2517     def __init__(self
, *args
, **kwargs
): 
2518         """__init__(self, int language=-1, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale""" 
2519         newobj 
= _gdi_
.new_Locale(*args
, **kwargs
) 
2520         self
.this 
= newobj
.this
 
2523     def __del__(self
, destroy
=_gdi_
.delete_Locale
): 
2526             if self
.thisown
: destroy(self
) 
2529     def Init1(*args
, **kwargs
): 
2531         Init1(self, String szName, String szShort=EmptyString, String szLocale=EmptyString,  
2532             bool bLoadDefault=True,  
2533             bool bConvertEncoding=False) -> bool 
2535         return _gdi_
.Locale_Init1(*args
, **kwargs
) 
2537     def Init2(*args
, **kwargs
): 
2538         """Init2(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool""" 
2539         return _gdi_
.Locale_Init2(*args
, **kwargs
) 
2541     def Init(self
, *_args
, **_kwargs
): 
2542         if type(_args
[0]) in [type(''), type(u
'')]: 
2543             val 
= self
.Init1(*_args
, **_kwargs
) 
2545             val 
= self
.Init2(*_args
, **_kwargs
) 
2548     def GetSystemLanguage(*args
, **kwargs
): 
2549         """GetSystemLanguage() -> int""" 
2550         return _gdi_
.Locale_GetSystemLanguage(*args
, **kwargs
) 
2552     GetSystemLanguage 
= staticmethod(GetSystemLanguage
) 
2553     def GetSystemEncoding(*args
, **kwargs
): 
2554         """GetSystemEncoding() -> int""" 
2555         return _gdi_
.Locale_GetSystemEncoding(*args
, **kwargs
) 
2557     GetSystemEncoding 
= staticmethod(GetSystemEncoding
) 
2558     def GetSystemEncodingName(*args
, **kwargs
): 
2559         """GetSystemEncodingName() -> String""" 
2560         return _gdi_
.Locale_GetSystemEncodingName(*args
, **kwargs
) 
2562     GetSystemEncodingName 
= staticmethod(GetSystemEncodingName
) 
2563     def IsOk(*args
, **kwargs
): 
2564         """IsOk(self) -> bool""" 
2565         return _gdi_
.Locale_IsOk(*args
, **kwargs
) 
2567     def __nonzero__(self
): return self
.IsOk()  
2568     def GetLocale(*args
, **kwargs
): 
2569         """GetLocale(self) -> String""" 
2570         return _gdi_
.Locale_GetLocale(*args
, **kwargs
) 
2572     def GetLanguage(*args
, **kwargs
): 
2573         """GetLanguage(self) -> int""" 
2574         return _gdi_
.Locale_GetLanguage(*args
, **kwargs
) 
2576     def GetSysName(*args
, **kwargs
): 
2577         """GetSysName(self) -> String""" 
2578         return _gdi_
.Locale_GetSysName(*args
, **kwargs
) 
2580     def GetCanonicalName(*args
, **kwargs
): 
2581         """GetCanonicalName(self) -> String""" 
2582         return _gdi_
.Locale_GetCanonicalName(*args
, **kwargs
) 
2584     def AddCatalogLookupPathPrefix(*args
, **kwargs
): 
2585         """AddCatalogLookupPathPrefix(String prefix)""" 
2586         return _gdi_
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
) 
2588     AddCatalogLookupPathPrefix 
= staticmethod(AddCatalogLookupPathPrefix
) 
2589     def AddCatalog(*args
, **kwargs
): 
2590         """AddCatalog(self, String szDomain) -> bool""" 
2591         return _gdi_
.Locale_AddCatalog(*args
, **kwargs
) 
2593     def IsLoaded(*args
, **kwargs
): 
2594         """IsLoaded(self, String szDomain) -> bool""" 
2595         return _gdi_
.Locale_IsLoaded(*args
, **kwargs
) 
2597     def GetLanguageInfo(*args
, **kwargs
): 
2598         """GetLanguageInfo(int lang) -> LanguageInfo""" 
2599         return _gdi_
.Locale_GetLanguageInfo(*args
, **kwargs
) 
2601     GetLanguageInfo 
= staticmethod(GetLanguageInfo
) 
2602     def GetLanguageName(*args
, **kwargs
): 
2603         """GetLanguageName(int lang) -> String""" 
2604         return _gdi_
.Locale_GetLanguageName(*args
, **kwargs
) 
2606     GetLanguageName 
= staticmethod(GetLanguageName
) 
2607     def FindLanguageInfo(*args
, **kwargs
): 
2608         """FindLanguageInfo(String locale) -> LanguageInfo""" 
2609         return _gdi_
.Locale_FindLanguageInfo(*args
, **kwargs
) 
2611     FindLanguageInfo 
= staticmethod(FindLanguageInfo
) 
2612     def AddLanguage(*args
, **kwargs
): 
2613         """AddLanguage(LanguageInfo info)""" 
2614         return _gdi_
.Locale_AddLanguage(*args
, **kwargs
) 
2616     AddLanguage 
= staticmethod(AddLanguage
) 
2617     def GetString(*args
, **kwargs
): 
2618         """GetString(self, String szOrigString, String szDomain=EmptyString) -> String""" 
2619         return _gdi_
.Locale_GetString(*args
, **kwargs
) 
2621     def GetName(*args
, **kwargs
): 
2622         """GetName(self) -> String""" 
2623         return _gdi_
.Locale_GetName(*args
, **kwargs
) 
2626 class LocalePtr(Locale
): 
2627     def __init__(self
, this
): 
2629         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2630         self
.__class
__ = Locale
 
2631 _gdi_
.Locale_swigregister(LocalePtr
) 
2633 def Locale_GetSystemLanguage(*args
, **kwargs
): 
2634     """Locale_GetSystemLanguage() -> int""" 
2635     return _gdi_
.Locale_GetSystemLanguage(*args
, **kwargs
) 
2637 def Locale_GetSystemEncoding(*args
, **kwargs
): 
2638     """Locale_GetSystemEncoding() -> int""" 
2639     return _gdi_
.Locale_GetSystemEncoding(*args
, **kwargs
) 
2641 def Locale_GetSystemEncodingName(*args
, **kwargs
): 
2642     """Locale_GetSystemEncodingName() -> String""" 
2643     return _gdi_
.Locale_GetSystemEncodingName(*args
, **kwargs
) 
2645 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
): 
2646     """Locale_AddCatalogLookupPathPrefix(String prefix)""" 
2647     return _gdi_
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
) 
2649 def Locale_GetLanguageInfo(*args
, **kwargs
): 
2650     """Locale_GetLanguageInfo(int lang) -> LanguageInfo""" 
2651     return _gdi_
.Locale_GetLanguageInfo(*args
, **kwargs
) 
2653 def Locale_GetLanguageName(*args
, **kwargs
): 
2654     """Locale_GetLanguageName(int lang) -> String""" 
2655     return _gdi_
.Locale_GetLanguageName(*args
, **kwargs
) 
2657 def Locale_FindLanguageInfo(*args
, **kwargs
): 
2658     """Locale_FindLanguageInfo(String locale) -> LanguageInfo""" 
2659     return _gdi_
.Locale_FindLanguageInfo(*args
, **kwargs
) 
2661 def Locale_AddLanguage(*args
, **kwargs
): 
2662     """Locale_AddLanguage(LanguageInfo info)""" 
2663     return _gdi_
.Locale_AddLanguage(*args
, **kwargs
) 
2666 def GetLocale(*args
, **kwargs
): 
2667     """GetLocale() -> Locale""" 
2668     return _gdi_
.GetLocale(*args
, **kwargs
) 
2669 #--------------------------------------------------------------------------- 
2671 CONVERT_STRICT 
= _gdi_
.CONVERT_STRICT
 
2672 CONVERT_SUBSTITUTE 
= _gdi_
.CONVERT_SUBSTITUTE
 
2673 PLATFORM_CURRENT 
= _gdi_
.PLATFORM_CURRENT
 
2674 PLATFORM_UNIX 
= _gdi_
.PLATFORM_UNIX
 
2675 PLATFORM_WINDOWS 
= _gdi_
.PLATFORM_WINDOWS
 
2676 PLATFORM_OS2 
= _gdi_
.PLATFORM_OS2
 
2677 PLATFORM_MAC 
= _gdi_
.PLATFORM_MAC
 
2678 class EncodingConverter(_core
.Object
): 
2679     """Proxy of C++ EncodingConverter class""" 
2681         return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2682     def __init__(self
, *args
, **kwargs
): 
2683         """__init__(self) -> EncodingConverter""" 
2684         newobj 
= _gdi_
.new_EncodingConverter(*args
, **kwargs
) 
2685         self
.this 
= newobj
.this
 
2688     def __del__(self
, destroy
=_gdi_
.delete_EncodingConverter
): 
2691             if self
.thisown
: destroy(self
) 
2694     def Init(*args
, **kwargs
): 
2695         """Init(self, int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool""" 
2696         return _gdi_
.EncodingConverter_Init(*args
, **kwargs
) 
2698     def Convert(*args
, **kwargs
): 
2699         """Convert(self, String input) -> String""" 
2700         return _gdi_
.EncodingConverter_Convert(*args
, **kwargs
) 
2702     def GetPlatformEquivalents(*args
, **kwargs
): 
2703         """GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray""" 
2704         return _gdi_
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
) 
2706     GetPlatformEquivalents 
= staticmethod(GetPlatformEquivalents
) 
2707     def GetAllEquivalents(*args
, **kwargs
): 
2708         """GetAllEquivalents(int enc) -> wxFontEncodingArray""" 
2709         return _gdi_
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
) 
2711     GetAllEquivalents 
= staticmethod(GetAllEquivalents
) 
2712     def CanConvert(*args
, **kwargs
): 
2713         """CanConvert(int encIn, int encOut) -> bool""" 
2714         return _gdi_
.EncodingConverter_CanConvert(*args
, **kwargs
) 
2716     CanConvert 
= staticmethod(CanConvert
) 
2717     def __nonzero__(self
): return self
.IsOk()  
2719 class EncodingConverterPtr(EncodingConverter
): 
2720     def __init__(self
, this
): 
2722         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
2723         self
.__class
__ = EncodingConverter
 
2724 _gdi_
.EncodingConverter_swigregister(EncodingConverterPtr
) 
2726 def GetTranslation(*args
): 
2728     GetTranslation(String str) -> String 
2729     GetTranslation(String str, String strPlural, size_t n) -> String 
2731     return _gdi_
.GetTranslation(*args
) 
2733 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
): 
2734     """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray""" 
2735     return _gdi_
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
) 
2737 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
): 
2738     """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray""" 
2739     return _gdi_
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
) 
2741 def EncodingConverter_CanConvert(*args
, **kwargs
): 
2742     """EncodingConverter_CanConvert(int encIn, int encOut) -> bool""" 
2743     return _gdi_
.EncodingConverter_CanConvert(*args
, **kwargs
) 
2745 #---------------------------------------------------------------------------- 
2746 # On MSW add the directory where the wxWidgets catalogs were installed 
2747 # to the default catalog path. 
2748 if wx
.Platform 
== "__WXMSW__": 
2750     _localedir 
= os
.path
.join(os
.path
.split(__file__
)[0], "locale") 
2751     Locale
.AddCatalogLookupPathPrefix(_localedir
) 
2754 #---------------------------------------------------------------------------- 
2756 #--------------------------------------------------------------------------- 
2758 class DC(_core
.Object
): 
2760     A wx.DC is a device context onto which graphics and text can be 
2761     drawn. It is intended to represent a number of output devices in a 
2762     generic way, so a window can have a device context associated with it, 
2763     and a printer also has a device context. In this way, the same piece 
2764     of code may write to a number of different devices, if the device 
2765     context is used as a parameter. 
2767     Derived types of wxDC have documentation for specific features only, 
2768     so refer to this section for most device context information. 
2770     The wx.DC class is abstract and can not be instantiated, you must use 
2771     one of the derived classes instead.  Which one will depend on the 
2772     situation in which it is used. 
2774     def __init__(self
): raise RuntimeError, "No constructor defined" 
2776         return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
2777     def __del__(self
, destroy
=_gdi_
.delete_DC
): 
2780             if self
.thisown
: destroy(self
) 
2783     def BeginDrawing(*args
, **kwargs
): 
2787         Allows for optimization of drawing code on platforms that need it.  On 
2788         other platforms this is just an empty function and is harmless.  To 
2789         take advantage of this postential optimization simply enclose each 
2790         group of calls to the drawing primitives within calls to 
2791         `BeginDrawing` and `EndDrawing`. 
2793         return _gdi_
.DC_BeginDrawing(*args
, **kwargs
) 
2795     def EndDrawing(*args
, **kwargs
): 
2799         Ends the group of drawing primitives started with `BeginDrawing`, and 
2800         invokes whatever optimization is available for this DC type on the 
2803         return _gdi_
.DC_EndDrawing(*args
, **kwargs
) 
2805     def FloodFill(*args
, **kwargs
): 
2807         FloodFill(self, int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool 
2809         Flood fills the device context starting from the given point, using 
2810         the current brush colour, and using a style: 
2812             - **wxFLOOD_SURFACE**: the flooding occurs until a colour other than 
2813               the given colour is encountered. 
2815             - **wxFLOOD_BORDER**: the area to be flooded is bounded by the given 
2818         Returns False if the operation failed. 
2820         Note: The present implementation for non-Windows platforms may fail to 
2821         find colour borders if the pixels do not match the colour 
2822         exactly. However the function will still return true. 
2824         return _gdi_
.DC_FloodFill(*args
, **kwargs
) 
2826     def FloodFillPoint(*args
, **kwargs
): 
2828         FloodFillPoint(self, Point pt, Colour col, int style=FLOOD_SURFACE) -> bool 
2830         Flood fills the device context starting from the given point, using 
2831         the current brush colour, and using a style: 
2833             - **wxFLOOD_SURFACE**: the flooding occurs until a colour other than 
2834               the given colour is encountered. 
2836             - **wxFLOOD_BORDER**: the area to be flooded is bounded by the given 
2839         Returns False if the operation failed. 
2841         Note: The present implementation for non-Windows platforms may fail to 
2842         find colour borders if the pixels do not match the colour 
2843         exactly. However the function will still return true. 
2845         return _gdi_
.DC_FloodFillPoint(*args
, **kwargs
) 
2847     def GetPixel(*args
, **kwargs
): 
2849         GetPixel(self, int x, int y) -> Colour 
2851         Gets the colour at the specified location on the DC. 
2853         return _gdi_
.DC_GetPixel(*args
, **kwargs
) 
2855     def GetPixelPoint(*args
, **kwargs
): 
2856         """GetPixelPoint(self, Point pt) -> Colour""" 
2857         return _gdi_
.DC_GetPixelPoint(*args
, **kwargs
) 
2859     def DrawLine(*args
, **kwargs
): 
2861         DrawLine(self, int x1, int y1, int x2, int y2) 
2863         Draws a line from the first point to the second. The current pen is 
2864         used for drawing the line. Note that the second point is *not* part of 
2865         the line and is not drawn by this function (this is consistent with 
2866         the behaviour of many other toolkits). 
2868         return _gdi_
.DC_DrawLine(*args
, **kwargs
) 
2870     def DrawLinePoint(*args
, **kwargs
): 
2872         DrawLinePoint(self, Point pt1, Point pt2) 
2874         Draws a line from the first point to the second. The current pen is 
2875         used for drawing the line. Note that the second point is *not* part of 
2876         the line and is not drawn by this function (this is consistent with 
2877         the behaviour of many other toolkits). 
2879         return _gdi_
.DC_DrawLinePoint(*args
, **kwargs
) 
2881     def CrossHair(*args
, **kwargs
): 
2883         CrossHair(self, int x, int y) 
2885         Displays a cross hair using the current pen. This is a vertical and 
2886         horizontal line the height and width of the window, centred on the 
2889         return _gdi_
.DC_CrossHair(*args
, **kwargs
) 
2891     def CrossHairPoint(*args
, **kwargs
): 
2893         CrossHairPoint(self, Point pt) 
2895         Displays a cross hair using the current pen. This is a vertical and 
2896         horizontal line the height and width of the window, centred on the 
2899         return _gdi_
.DC_CrossHairPoint(*args
, **kwargs
) 
2901     def DrawArc(*args
, **kwargs
): 
2903         DrawArc(self, int x1, int y1, int x2, int y2, int xc, int yc) 
2905         Draws an arc of a circle, centred on the *center* point (xc, yc), from 
2906         the first point to the second. The current pen is used for the outline 
2907         and the current brush for filling the shape. 
2909         The arc is drawn in an anticlockwise direction from the start point to 
2912         return _gdi_
.DC_DrawArc(*args
, **kwargs
) 
2914     def DrawArcPoint(*args
, **kwargs
): 
2916         DrawArcPoint(self, Point pt1, Point pt2, Point center) 
2918         Draws an arc of a circle, centred on the *center* point (xc, yc), from 
2919         the first point to the second. The current pen is used for the outline 
2920         and the current brush for filling the shape. 
2922         The arc is drawn in an anticlockwise direction from the start point to 
2925         return _gdi_
.DC_DrawArcPoint(*args
, **kwargs
) 
2927     def DrawCheckMark(*args
, **kwargs
): 
2929         DrawCheckMark(self, int x, int y, int width, int height) 
2931         Draws a check mark inside the given rectangle. 
2933         return _gdi_
.DC_DrawCheckMark(*args
, **kwargs
) 
2935     def DrawCheckMarkRect(*args
, **kwargs
): 
2937         DrawCheckMarkRect(self, Rect rect) 
2939         Draws a check mark inside the given rectangle. 
2941         return _gdi_
.DC_DrawCheckMarkRect(*args
, **kwargs
) 
2943     def DrawEllipticArc(*args
, **kwargs
): 
2945         DrawEllipticArc(self, int x, int y, int w, int h, double start, double end) 
2947         Draws an arc of an ellipse, with the given rectangle defining the 
2948         bounds of the ellipse. The current pen is used for drawing the arc and 
2949         the current brush is used for drawing the pie. 
2951         The *start* and *end* parameters specify the start and end of the arc 
2952         relative to the three-o'clock position from the center of the 
2953         rectangle. Angles are specified in degrees (360 is a complete 
2954         circle). Positive values mean counter-clockwise motion. If start is 
2955         equal to end, a complete ellipse will be drawn. 
2957         return _gdi_
.DC_DrawEllipticArc(*args
, **kwargs
) 
2959     def DrawEllipticArcPointSize(*args
, **kwargs
): 
2961         DrawEllipticArcPointSize(self, Point pt, Size sz, double start, double end) 
2963         Draws an arc of an ellipse, with the given rectangle defining the 
2964         bounds of the ellipse. The current pen is used for drawing the arc and 
2965         the current brush is used for drawing the pie. 
2967         The *start* and *end* parameters specify the start and end of the arc 
2968         relative to the three-o'clock position from the center of the 
2969         rectangle. Angles are specified in degrees (360 is a complete 
2970         circle). Positive values mean counter-clockwise motion. If start is 
2971         equal to end, a complete ellipse will be drawn. 
2973         return _gdi_
.DC_DrawEllipticArcPointSize(*args
, **kwargs
) 
2975     def DrawPoint(*args
, **kwargs
): 
2977         DrawPoint(self, int x, int y) 
2979         Draws a point using the current pen. 
2981         return _gdi_
.DC_DrawPoint(*args
, **kwargs
) 
2983     def DrawPointPoint(*args
, **kwargs
): 
2985         DrawPointPoint(self, Point pt) 
2987         Draws a point using the current pen. 
2989         return _gdi_
.DC_DrawPointPoint(*args
, **kwargs
) 
2991     def DrawRectangle(*args
, **kwargs
): 
2993         DrawRectangle(self, int x, int y, int width, int height) 
2995         Draws a rectangle with the given top left corner, and with the given 
2996         size. The current pen is used for the outline and the current brush 
2997         for filling the shape. 
2999         return _gdi_
.DC_DrawRectangle(*args
, **kwargs
) 
3001     def DrawRectangleRect(*args
, **kwargs
): 
3003         DrawRectangleRect(self, Rect rect) 
3005         Draws a rectangle with the given top left corner, and with the given 
3006         size. The current pen is used for the outline and the current brush 
3007         for filling the shape. 
3009         return _gdi_
.DC_DrawRectangleRect(*args
, **kwargs
) 
3011     def DrawRectanglePointSize(*args
, **kwargs
): 
3013         DrawRectanglePointSize(self, Point pt, Size sz) 
3015         Draws a rectangle with the given top left corner, and with the given 
3016         size. The current pen is used for the outline and the current brush 
3017         for filling the shape. 
3019         return _gdi_
.DC_DrawRectanglePointSize(*args
, **kwargs
) 
3021     def DrawRoundedRectangle(*args
, **kwargs
): 
3023         DrawRoundedRectangle(self, int x, int y, int width, int height, double radius) 
3025         Draws a rectangle with the given top left corner, and with the given 
3026         size. The corners are quarter-circles using the given radius. The 
3027         current pen is used for the outline and the current brush for filling 
3030         If radius is positive, the value is assumed to be the radius of the 
3031         rounded corner. If radius is negative, the absolute value is assumed 
3032         to be the proportion of the smallest dimension of the rectangle. This 
3033         means that the corner can be a sensible size relative to the size of 
3034         the rectangle, and also avoids the strange effects X produces when the 
3035         corners are too big for the rectangle. 
3037         return _gdi_
.DC_DrawRoundedRectangle(*args
, **kwargs
) 
3039     def DrawRoundedRectangleRect(*args
, **kwargs
): 
3041         DrawRoundedRectangleRect(self, Rect r, double radius) 
3043         Draws a rectangle with the given top left corner, and with the given 
3044         size. The corners are quarter-circles using the given radius. The 
3045         current pen is used for the outline and the current brush for filling 
3048         If radius is positive, the value is assumed to be the radius of the 
3049         rounded corner. If radius is negative, the absolute value is assumed 
3050         to be the proportion of the smallest dimension of the rectangle. This 
3051         means that the corner can be a sensible size relative to the size of 
3052         the rectangle, and also avoids the strange effects X produces when the 
3053         corners are too big for the rectangle. 
3055         return _gdi_
.DC_DrawRoundedRectangleRect(*args
, **kwargs
) 
3057     def DrawRoundedRectanglePointSize(*args
, **kwargs
): 
3059         DrawRoundedRectanglePointSize(self, Point pt, Size sz, double radius) 
3061         Draws a rectangle with the given top left corner, and with the given 
3062         size. The corners are quarter-circles using the given radius. The 
3063         current pen is used for the outline and the current brush for filling 
3066         If radius is positive, the value is assumed to be the radius of the 
3067         rounded corner. If radius is negative, the absolute value is assumed 
3068         to be the proportion of the smallest dimension of the rectangle. This 
3069         means that the corner can be a sensible size relative to the size of 
3070         the rectangle, and also avoids the strange effects X produces when the 
3071         corners are too big for the rectangle. 
3073         return _gdi_
.DC_DrawRoundedRectanglePointSize(*args
, **kwargs
) 
3075     def DrawCircle(*args
, **kwargs
): 
3077         DrawCircle(self, int x, int y, int radius) 
3079         Draws a circle with the given center point and radius.  The current 
3080         pen is used for the outline and the current brush for filling the 
3083         return _gdi_
.DC_DrawCircle(*args
, **kwargs
) 
3085     def DrawCirclePoint(*args
, **kwargs
): 
3087         DrawCirclePoint(self, Point pt, int radius) 
3089         Draws a circle with the given center point and radius.  The current 
3090         pen is used for the outline and the current brush for filling the 
3093         return _gdi_
.DC_DrawCirclePoint(*args
, **kwargs
) 
3095     def DrawEllipse(*args
, **kwargs
): 
3097         DrawEllipse(self, int x, int y, int width, int height) 
3099         Draws an ellipse contained in the specified rectangle. The current pen 
3100         is used for the outline and the current brush for filling the shape. 
3102         return _gdi_
.DC_DrawEllipse(*args
, **kwargs
) 
3104     def DrawEllipseRect(*args
, **kwargs
): 
3106         DrawEllipseRect(self, Rect rect) 
3108         Draws an ellipse contained in the specified rectangle. The current pen 
3109         is used for the outline and the current brush for filling the shape. 
3111         return _gdi_
.DC_DrawEllipseRect(*args
, **kwargs
) 
3113     def DrawEllipsePointSize(*args
, **kwargs
): 
3115         DrawEllipsePointSize(self, Point pt, Size sz) 
3117         Draws an ellipse contained in the specified rectangle. The current pen 
3118         is used for the outline and the current brush for filling the shape. 
3120         return _gdi_
.DC_DrawEllipsePointSize(*args
, **kwargs
) 
3122     def DrawIcon(*args
, **kwargs
): 
3124         DrawIcon(self, Icon icon, int x, int y) 
3126         Draw an icon on the display (does nothing if the device context is 
3127         PostScript). This can be the simplest way of drawing bitmaps on a 
3130         return _gdi_
.DC_DrawIcon(*args
, **kwargs
) 
3132     def DrawIconPoint(*args
, **kwargs
): 
3134         DrawIconPoint(self, Icon icon, Point pt) 
3136         Draw an icon on the display (does nothing if the device context is 
3137         PostScript). This can be the simplest way of drawing bitmaps on a 
3140         return _gdi_
.DC_DrawIconPoint(*args
, **kwargs
) 
3142     def DrawBitmap(*args
, **kwargs
): 
3144         DrawBitmap(self, Bitmap bmp, int x, int y, bool useMask=False) 
3146         Draw a bitmap on the device context at the specified point. If 
3147         *transparent* is true and the bitmap has a transparency mask, (or 
3148         alpha channel on the platforms that support it) then the bitmap will 
3149         be drawn transparently. 
3151         return _gdi_
.DC_DrawBitmap(*args
, **kwargs
) 
3153     def DrawBitmapPoint(*args
, **kwargs
): 
3155         DrawBitmapPoint(self, Bitmap bmp, Point pt, bool useMask=False) 
3157         Draw a bitmap on the device context at the specified point. If 
3158         *transparent* is true and the bitmap has a transparency mask, (or 
3159         alpha channel on the platforms that support it) then the bitmap will 
3160         be drawn transparently. 
3162         return _gdi_
.DC_DrawBitmapPoint(*args
, **kwargs
) 
3164     def DrawText(*args
, **kwargs
): 
3166         DrawText(self, String text, int x, int y) 
3168         Draws a text string at the specified point, using the current text 
3169         font, and the current text foreground and background colours. 
3171         The coordinates refer to the top-left corner of the rectangle bounding 
3172         the string. See `GetTextExtent` for how to get the dimensions of a 
3173         text string, which can be used to position the text more precisely. 
3175         **NOTE**: under wxGTK the current logical function is used by this 
3176         function but it is ignored by wxMSW. Thus, you should avoid using 
3177         logical functions with this function in portable programs. 
3179         return _gdi_
.DC_DrawText(*args
, **kwargs
) 
3181     def DrawTextPoint(*args
, **kwargs
): 
3183         DrawTextPoint(self, String text, Point pt) 
3185         Draws a text string at the specified point, using the current text 
3186         font, and the current text foreground and background colours. 
3188         The coordinates refer to the top-left corner of the rectangle bounding 
3189         the string. See `GetTextExtent` for how to get the dimensions of a 
3190         text string, which can be used to position the text more precisely. 
3192         **NOTE**: under wxGTK the current logical function is used by this 
3193         function but it is ignored by wxMSW. Thus, you should avoid using 
3194         logical functions with this function in portable programs. 
3196         return _gdi_
.DC_DrawTextPoint(*args
, **kwargs
) 
3198     def DrawRotatedText(*args
, **kwargs
): 
3200         DrawRotatedText(self, String text, int x, int y, double angle) 
3202         Draws the text rotated by *angle* degrees, if supported by the platform. 
3204         **NOTE**: Under Win9x only TrueType fonts can be drawn by this 
3205         function. In particular, a font different from ``wx.NORMAL_FONT`` 
3206         should be used as the it is not normally a TrueType 
3207         font. ``wx.SWISS_FONT`` is an example of a font which is. 
3209         return _gdi_
.DC_DrawRotatedText(*args
, **kwargs
) 
3211     def DrawRotatedTextPoint(*args
, **kwargs
): 
3213         DrawRotatedTextPoint(self, String text, Point pt, double angle) 
3215         Draws the text rotated by *angle* degrees, if supported by the platform. 
3217         **NOTE**: Under Win9x only TrueType fonts can be drawn by this 
3218         function. In particular, a font different from ``wx.NORMAL_FONT`` 
3219         should be used as the it is not normally a TrueType 
3220         font. ``wx.SWISS_FONT`` is an example of a font which is. 
3222         return _gdi_
.DC_DrawRotatedTextPoint(*args
, **kwargs
) 
3224     def Blit(*args
, **kwargs
): 
3226         Blit(self, int xdest, int ydest, int width, int height, DC source,  
3227             int xsrc, int ysrc, int rop=COPY, bool useMask=False,  
3228             int xsrcMask=-1, int ysrcMask=-1) -> bool 
3230         Copy from a source DC to this DC.  Parameters specify the destination 
3231         coordinates, size of area to copy, source DC, source coordinates, 
3232         logical function, whether to use a bitmap mask, and mask source 
3235         return _gdi_
.DC_Blit(*args
, **kwargs
) 
3237     def BlitPointSize(*args
, **kwargs
): 
3239         BlitPointSize(self, Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,  
3240             bool useMask=False, Point srcPtMask=DefaultPosition) -> bool 
3242         Copy from a source DC to this DC.  Parameters specify the destination 
3243         coordinates, size of area to copy, source DC, source coordinates, 
3244         logical function, whether to use a bitmap mask, and mask source 
3247         return _gdi_
.DC_BlitPointSize(*args
, **kwargs
) 
3249     def SetClippingRegion(*args
, **kwargs
): 
3251         SetClippingRegion(self, int x, int y, int width, int height) 
3253         Sets the clipping region for this device context to the intersection 
3254         of the given region described by the parameters of this method and the 
3255         previously set clipping region. You should call `DestroyClippingRegion` 
3256         if you want to set the clipping region exactly to the region 
3259         The clipping region is an area to which drawing is 
3260         restricted. Possible uses for the clipping region are for clipping 
3261         text or for speeding up window redraws when only a known area of the 
3264         return _gdi_
.DC_SetClippingRegion(*args
, **kwargs
) 
3266     def SetClippingRegionPointSize(*args
, **kwargs
): 
3268         SetClippingRegionPointSize(self, Point pt, Size sz) 
3270         Sets the clipping region for this device context to the intersection 
3271         of the given region described by the parameters of this method and the 
3272         previously set clipping region. You should call `DestroyClippingRegion` 
3273         if you want to set the clipping region exactly to the region 
3276         The clipping region is an area to which drawing is 
3277         restricted. Possible uses for the clipping region are for clipping 
3278         text or for speeding up window redraws when only a known area of the 
3281         return _gdi_
.DC_SetClippingRegionPointSize(*args
, **kwargs
) 
3283     def SetClippingRegionAsRegion(*args
, **kwargs
): 
3285         SetClippingRegionAsRegion(self, Region region) 
3287         Sets the clipping region for this device context to the intersection 
3288         of the given region described by the parameters of this method and the 
3289         previously set clipping region. You should call `DestroyClippingRegion` 
3290         if you want to set the clipping region exactly to the region 
3293         The clipping region is an area to which drawing is 
3294         restricted. Possible uses for the clipping region are for clipping 
3295         text or for speeding up window redraws when only a known area of the 
3298         return _gdi_
.DC_SetClippingRegionAsRegion(*args
, **kwargs
) 
3300     def SetClippingRect(*args
, **kwargs
): 
3302         SetClippingRect(self, Rect rect) 
3304         Sets the clipping region for this device context to the intersection 
3305         of the given region described by the parameters of this method and the 
3306         previously set clipping region. You should call `DestroyClippingRegion` 
3307         if you want to set the clipping region exactly to the region 
3310         The clipping region is an area to which drawing is 
3311         restricted. Possible uses for the clipping region are for clipping 
3312         text or for speeding up window redraws when only a known area of the 
3315         return _gdi_
.DC_SetClippingRect(*args
, **kwargs
) 
3317     def DrawLines(*args
, **kwargs
): 
3319         DrawLines(self, List points, int xoffset=0, int yoffset=0) 
3321         Draws lines using a sequence of `wx.Point` objects, adding the 
3322         optional offset coordinate. The current pen is used for drawing the 
3325         return _gdi_
.DC_DrawLines(*args
, **kwargs
) 
3327     def DrawPolygon(*args
, **kwargs
): 
3329         DrawPolygon(self, List points, int xoffset=0, int yoffset=0, 
3330             int fillStyle=ODDEVEN_RULE) 
3332         Draws a filled polygon using a sequence of `wx.Point` objects, adding 
3333         the optional offset coordinate.  The last argument specifies the fill 
3334         rule: ``wx.ODDEVEN_RULE`` (the default) or ``wx.WINDING_RULE``. 
3336         The current pen is used for drawing the outline, and the current brush 
3337         for filling the shape. Using a transparent brush suppresses 
3338         filling. Note that wxWidgets automatically closes the first and last 
3341         return _gdi_
.DC_DrawPolygon(*args
, **kwargs
) 
3343     def DrawLabel(*args
, **kwargs
): 
3345         DrawLabel(self, String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,  
3348         Draw *text* within the specified rectangle, abiding by the alignment 
3349         flags.  Will additionally emphasize the character at *indexAccel* if 
3352         return _gdi_
.DC_DrawLabel(*args
, **kwargs
) 
3354     def DrawImageLabel(*args
, **kwargs
): 
3356         DrawImageLabel(self, String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,  
3357             int indexAccel=-1) -> Rect 
3359         Draw *text* and an image (which may be ``wx.NullBitmap`` to skip 
3360         drawing it) within the specified rectangle, abiding by the alignment 
3361         flags.  Will additionally emphasize the character at *indexAccel* if 
3362         it is not -1.  Returns the bounding rectangle. 
3364         return _gdi_
.DC_DrawImageLabel(*args
, **kwargs
) 
3366     def DrawSpline(*args
, **kwargs
): 
3368         DrawSpline(self, List points) 
3370         Draws a spline between all given control points, (a list of `wx.Point` 
3371         objects) using the current pen. The spline is drawn using a series of 
3372         lines, using an algorithm taken from the X drawing program 'XFIG'. 
3374         return _gdi_
.DC_DrawSpline(*args
, **kwargs
) 
3376     def Clear(*args
, **kwargs
): 
3380         Clears the device context using the current background brush. 
3382         return _gdi_
.DC_Clear(*args
, **kwargs
) 
3384     def StartDoc(*args
, **kwargs
): 
3386         StartDoc(self, String message) -> bool 
3388         Starts a document (only relevant when outputting to a 
3389         printer). *Message* is a message to show whilst printing. 
3391         return _gdi_
.DC_StartDoc(*args
, **kwargs
) 
3393     def EndDoc(*args
, **kwargs
): 
3397         Ends a document (only relevant when outputting to a printer). 
3399         return _gdi_
.DC_EndDoc(*args
, **kwargs
) 
3401     def StartPage(*args
, **kwargs
): 
3405         Starts a document page (only relevant when outputting to a printer). 
3407         return _gdi_
.DC_StartPage(*args
, **kwargs
) 
3409     def EndPage(*args
, **kwargs
): 
3413         Ends a document page (only relevant when outputting to a printer). 
3415         return _gdi_
.DC_EndPage(*args
, **kwargs
) 
3417     def SetFont(*args
, **kwargs
): 
3419         SetFont(self, Font font) 
3421         Sets the current font for the DC. It must be a valid font, in 
3422         particular you should not pass ``wx.NullFont`` to this method. 
3424         return _gdi_
.DC_SetFont(*args
, **kwargs
) 
3426     def SetPen(*args
, **kwargs
): 
3428         SetPen(self, Pen pen) 
3430         Sets the current pen for the DC. 
3432         If the argument is ``wx.NullPen``, the current pen is selected out of the 
3433         device context, and the original pen restored. 
3435         return _gdi_
.DC_SetPen(*args
, **kwargs
) 
3437     def SetBrush(*args
, **kwargs
): 
3439         SetBrush(self, Brush brush) 
3441         Sets the current brush for the DC. 
3443         If the argument is ``wx.NullBrush``, the current brush is selected out 
3444         of the device context, and the original brush restored, allowing the 
3445         current brush to be destroyed safely. 
3447         return _gdi_
.DC_SetBrush(*args
, **kwargs
) 
3449     def SetBackground(*args
, **kwargs
): 
3451         SetBackground(self, Brush brush) 
3453         Sets the current background brush for the DC. 
3455         return _gdi_
.DC_SetBackground(*args
, **kwargs
) 
3457     def SetBackgroundMode(*args
, **kwargs
): 
3459         SetBackgroundMode(self, int mode) 
3461         *mode* may be one of ``wx.SOLID`` and ``wx.TRANSPARENT``. This setting 
3462         determines whether text will be drawn with a background colour or 
3465         return _gdi_
.DC_SetBackgroundMode(*args
, **kwargs
) 
3467     def SetPalette(*args
, **kwargs
): 
3469         SetPalette(self, Palette palette) 
3471         If this is a window DC or memory DC, assigns the given palette to the 
3472         window or bitmap associated with the DC. If the argument is 
3473         ``wx.NullPalette``, the current palette is selected out of the device 
3474         context, and the original palette restored. 
3476         return _gdi_
.DC_SetPalette(*args
, **kwargs
) 
3478     def DestroyClippingRegion(*args
, **kwargs
): 
3480         DestroyClippingRegion(self) 
3482         Destroys the current clipping region so that none of the DC is 
3485         return _gdi_
.DC_DestroyClippingRegion(*args
, **kwargs
) 
3487     def GetClippingBox(*args
, **kwargs
): 
3489         GetClippingBox() -> (x, y, width, height) 
3491         Gets the rectangle surrounding the current clipping region. 
3493         return _gdi_
.DC_GetClippingBox(*args
, **kwargs
) 
3495     def GetClippingRect(*args
, **kwargs
): 
3497         GetClippingRect(self) -> Rect 
3499         Gets the rectangle surrounding the current clipping region. 
3501         return _gdi_
.DC_GetClippingRect(*args
, **kwargs
) 
3503     def GetCharHeight(*args
, **kwargs
): 
3505         GetCharHeight(self) -> int 
3507         Gets the character height of the currently set font. 
3509         return _gdi_
.DC_GetCharHeight(*args
, **kwargs
) 
3511     def GetCharWidth(*args
, **kwargs
): 
3513         GetCharWidth(self) -> int 
3515         Gets the average character width of the currently set font. 
3517         return _gdi_
.DC_GetCharWidth(*args
, **kwargs
) 
3519     def GetTextExtent(*args
, **kwargs
): 
3521         GetTextExtent(wxString string) -> (width, height) 
3523         Get the width and height of the text using the current font. Only 
3524         works for single line strings. 
3526         return _gdi_
.DC_GetTextExtent(*args
, **kwargs
) 
3528     def GetFullTextExtent(*args
, **kwargs
): 
3530         GetFullTextExtent(wxString string, Font font=None) -> 
3531            (width, height, descent, externalLeading) 
3533         Get the width, height, decent and leading of the text using the 
3534         current or specified font. Only works for single line strings. 
3536         return _gdi_
.DC_GetFullTextExtent(*args
, **kwargs
) 
3538     def GetMultiLineTextExtent(*args
, **kwargs
): 
3540         GetMultiLineTextExtent(wxString string, Font font=None) -> 
3541            (width, height, descent, externalLeading) 
3543         Get the width, height, decent and leading of the text using the 
3544         current or specified font. Works for single as well as multi-line 
3547         return _gdi_
.DC_GetMultiLineTextExtent(*args
, **kwargs
) 
3549     def GetPartialTextExtents(*args
, **kwargs
): 
3551         GetPartialTextExtents(self, text) -> [widths] 
3553         Returns a list of integers such that each value is the distance in 
3554         pixels from the begining of text to the coresponding character of 
3555         *text*. The generic version simply builds a running total of the widths 
3556         of each character using GetTextExtent, however if the various 
3557         platforms have a native API function that is faster or more accurate 
3558         than the generic implementation then it will be used instead. 
3560         return _gdi_
.DC_GetPartialTextExtents(*args
, **kwargs
) 
3562     def GetSize(*args
, **kwargs
): 
3564         GetSize(self) -> Size 
3566         This gets the horizontal and vertical resolution in device units. It 
3567         can be used to scale graphics to fit the page. For example, if *maxX* 
3568         and *maxY* represent the maximum horizontal and vertical 'pixel' values 
3569         used in your application, the following code will scale the graphic to 
3570         fit on the printer page:: 
3573               scaleX = maxX*1.0 / w 
3574               scaleY = maxY*1.0 / h 
3575               dc.SetUserScale(min(scaleX,scaleY),min(scaleX,scaleY)) 
3578         return _gdi_
.DC_GetSize(*args
, **kwargs
) 
3580     def GetSizeTuple(*args
, **kwargs
): 
3582         GetSizeTuple() -> (width, height) 
3584         This gets the horizontal and vertical resolution in device units. It 
3585         can be used to scale graphics to fit the page. For example, if *maxX* 
3586         and *maxY* represent the maximum horizontal and vertical 'pixel' values 
3587         used in your application, the following code will scale the graphic to 
3588         fit on the printer page:: 
3591               scaleX = maxX*1.0 / w 
3592               scaleY = maxY*1.0 / h 
3593               dc.SetUserScale(min(scaleX,scaleY),min(scaleX,scaleY)) 
3596         return _gdi_
.DC_GetSizeTuple(*args
, **kwargs
) 
3598     def GetSizeMM(*args
, **kwargs
): 
3600         GetSizeMM(self) -> Size 
3602         Get the DC size in milimeters. 
3604         return _gdi_
.DC_GetSizeMM(*args
, **kwargs
) 
3606     def GetSizeMMTuple(*args
, **kwargs
): 
3608         GetSizeMMTuple() -> (width, height) 
3610         Get the DC size in milimeters. 
3612         return _gdi_
.DC_GetSizeMMTuple(*args
, **kwargs
) 
3614     def DeviceToLogicalX(*args
, **kwargs
): 
3616         DeviceToLogicalX(self, int x) -> int 
3618         Convert device X coordinate to logical coordinate, using the current 
3621         return _gdi_
.DC_DeviceToLogicalX(*args
, **kwargs
) 
3623     def DeviceToLogicalY(*args
, **kwargs
): 
3625         DeviceToLogicalY(self, int y) -> int 
3627         Converts device Y coordinate to logical coordinate, using the current 
3630         return _gdi_
.DC_DeviceToLogicalY(*args
, **kwargs
) 
3632     def DeviceToLogicalXRel(*args
, **kwargs
): 
3634         DeviceToLogicalXRel(self, int x) -> int 
3636         Convert device X coordinate to relative logical coordinate, using the 
3637         current mapping mode but ignoring the x axis orientation. Use this 
3638         function for converting a width, for example. 
3640         return _gdi_
.DC_DeviceToLogicalXRel(*args
, **kwargs
) 
3642     def DeviceToLogicalYRel(*args
, **kwargs
): 
3644         DeviceToLogicalYRel(self, int y) -> int 
3646         Convert device Y coordinate to relative logical coordinate, using the 
3647         current mapping mode but ignoring the y axis orientation. Use this 
3648         function for converting a height, for example. 
3650         return _gdi_
.DC_DeviceToLogicalYRel(*args
, **kwargs
) 
3652     def LogicalToDeviceX(*args
, **kwargs
): 
3654         LogicalToDeviceX(self, int x) -> int 
3656         Converts logical X coordinate to device coordinate, using the current 
3659         return _gdi_
.DC_LogicalToDeviceX(*args
, **kwargs
) 
3661     def LogicalToDeviceY(*args
, **kwargs
): 
3663         LogicalToDeviceY(self, int y) -> int 
3665         Converts logical Y coordinate to device coordinate, using the current 
3668         return _gdi_
.DC_LogicalToDeviceY(*args
, **kwargs
) 
3670     def LogicalToDeviceXRel(*args
, **kwargs
): 
3672         LogicalToDeviceXRel(self, int x) -> int 
3674         Converts logical X coordinate to relative device coordinate, using the 
3675         current mapping mode but ignoring the x axis orientation. Use this for 
3676         converting a width, for example. 
3678         return _gdi_
.DC_LogicalToDeviceXRel(*args
, **kwargs
) 
3680     def LogicalToDeviceYRel(*args
, **kwargs
): 
3682         LogicalToDeviceYRel(self, int y) -> int 
3684         Converts logical Y coordinate to relative device coordinate, using the 
3685         current mapping mode but ignoring the y axis orientation. Use this for 
3686         converting a height, for example. 
3688         return _gdi_
.DC_LogicalToDeviceYRel(*args
, **kwargs
) 
3690     def CanDrawBitmap(*args
, **kwargs
): 
3691         """CanDrawBitmap(self) -> bool""" 
3692         return _gdi_
.DC_CanDrawBitmap(*args
, **kwargs
) 
3694     def CanGetTextExtent(*args
, **kwargs
): 
3695         """CanGetTextExtent(self) -> bool""" 
3696         return _gdi_
.DC_CanGetTextExtent(*args
, **kwargs
) 
3698     def GetDepth(*args
, **kwargs
): 
3700         GetDepth(self) -> int 
3702         Returns the colour depth of the DC. 
3704         return _gdi_
.DC_GetDepth(*args
, **kwargs
) 
3706     def GetPPI(*args
, **kwargs
): 
3708         GetPPI(self) -> Size 
3710         Resolution in Pixels per inch 
3712         return _gdi_
.DC_GetPPI(*args
, **kwargs
) 
3714     def Ok(*args
, **kwargs
): 
3718         Returns true if the DC is ok to use. 
3720         return _gdi_
.DC_Ok(*args
, **kwargs
) 
3722     def GetBackgroundMode(*args
, **kwargs
): 
3724         GetBackgroundMode(self) -> int 
3726         Returns the current background mode, either ``wx.SOLID`` or 
3729         return _gdi_
.DC_GetBackgroundMode(*args
, **kwargs
) 
3731     def GetBackground(*args
, **kwargs
): 
3733         GetBackground(self) -> Brush 
3735         Gets the brush used for painting the background. 
3737         return _gdi_
.DC_GetBackground(*args
, **kwargs
) 
3739     def GetBrush(*args
, **kwargs
): 
3741         GetBrush(self) -> Brush 
3743         Gets the current brush 
3745         return _gdi_
.DC_GetBrush(*args
, **kwargs
) 
3747     def GetFont(*args
, **kwargs
): 
3749         GetFont(self) -> Font 
3751         Gets the current font 
3753         return _gdi_
.DC_GetFont(*args
, **kwargs
) 
3755     def GetPen(*args
, **kwargs
): 
3759         Gets the current pen 
3761         return _gdi_
.DC_GetPen(*args
, **kwargs
) 
3763     def GetTextBackground(*args
, **kwargs
): 
3765         GetTextBackground(self) -> Colour 
3767         Gets the current text background colour 
3769         return _gdi_
.DC_GetTextBackground(*args
, **kwargs
) 
3771     def GetTextForeground(*args
, **kwargs
): 
3773         GetTextForeground(self) -> Colour 
3775         Gets the current text foreground colour 
3777         return _gdi_
.DC_GetTextForeground(*args
, **kwargs
) 
3779     def SetTextForeground(*args
, **kwargs
): 
3781         SetTextForeground(self, Colour colour) 
3783         Sets the current text foreground colour for the DC. 
3785         return _gdi_
.DC_SetTextForeground(*args
, **kwargs
) 
3787     def SetTextBackground(*args
, **kwargs
): 
3789         SetTextBackground(self, Colour colour) 
3791         Sets the current text background colour for the DC. 
3793         return _gdi_
.DC_SetTextBackground(*args
, **kwargs
) 
3795     def GetMapMode(*args
, **kwargs
): 
3797         GetMapMode(self) -> int 
3799         Gets the current *mapping mode* for the device context  
3801         return _gdi_
.DC_GetMapMode(*args
, **kwargs
) 
3803     def SetMapMode(*args
, **kwargs
): 
3805         SetMapMode(self, int mode) 
3807         The *mapping mode* of the device context defines the unit of 
3808         measurement used to convert logical units to device units.  The 
3809         mapping mode can be one of the following: 
3811             ================    ============================================= 
3812             wx.MM_TWIPS         Each logical unit is 1/20 of a point, or 1/1440 
3814             wx.MM_POINTS        Each logical unit is a point, or 1/72 of an inch. 
3815             wx.MM_METRIC        Each logical unit is 1 mm. 
3816             wx.MM_LOMETRIC      Each logical unit is 1/10 of a mm. 
3817             wx.MM_TEXT          Each logical unit is 1 pixel. 
3818             ================    ============================================= 
3821         return _gdi_
.DC_SetMapMode(*args
, **kwargs
) 
3823     def GetUserScale(*args
, **kwargs
): 
3825         GetUserScale(self) -> (xScale, yScale) 
3827         Gets the current user scale factor (set by `SetUserScale`). 
3829         return _gdi_
.DC_GetUserScale(*args
, **kwargs
) 
3831     def SetUserScale(*args
, **kwargs
): 
3833         SetUserScale(self, double x, double y) 
3835         Sets the user scaling factor, useful for applications which require 
3838         return _gdi_
.DC_SetUserScale(*args
, **kwargs
) 
3840     def GetLogicalScale(*args
, **kwargs
): 
3841         """GetLogicalScale() -> (xScale, yScale)""" 
3842         return _gdi_
.DC_GetLogicalScale(*args
, **kwargs
) 
3844     def SetLogicalScale(*args
, **kwargs
): 
3845         """SetLogicalScale(self, double x, double y)""" 
3846         return _gdi_
.DC_SetLogicalScale(*args
, **kwargs
) 
3848     def GetLogicalOrigin(*args
, **kwargs
): 
3849         """GetLogicalOrigin(self) -> Point""" 
3850         return _gdi_
.DC_GetLogicalOrigin(*args
, **kwargs
) 
3852     def GetLogicalOriginTuple(*args
, **kwargs
): 
3853         """GetLogicalOriginTuple() -> (x,y)""" 
3854         return _gdi_
.DC_GetLogicalOriginTuple(*args
, **kwargs
) 
3856     def SetLogicalOrigin(*args
, **kwargs
): 
3857         """SetLogicalOrigin(self, int x, int y)""" 
3858         return _gdi_
.DC_SetLogicalOrigin(*args
, **kwargs
) 
3860     def SetLogicalOriginPoint(*args
, **kwargs
): 
3861         """SetLogicalOriginPoint(self, Point point)""" 
3862         return _gdi_
.DC_SetLogicalOriginPoint(*args
, **kwargs
) 
3864     def GetDeviceOrigin(*args
, **kwargs
): 
3865         """GetDeviceOrigin(self) -> Point""" 
3866         return _gdi_
.DC_GetDeviceOrigin(*args
, **kwargs
) 
3868     def GetDeviceOriginTuple(*args
, **kwargs
): 
3869         """GetDeviceOriginTuple() -> (x,y)""" 
3870         return _gdi_
.DC_GetDeviceOriginTuple(*args
, **kwargs
) 
3872     def SetDeviceOrigin(*args
, **kwargs
): 
3873         """SetDeviceOrigin(self, int x, int y)""" 
3874         return _gdi_
.DC_SetDeviceOrigin(*args
, **kwargs
) 
3876     def SetDeviceOriginPoint(*args
, **kwargs
): 
3877         """SetDeviceOriginPoint(self, Point point)""" 
3878         return _gdi_
.DC_SetDeviceOriginPoint(*args
, **kwargs
) 
3880     def SetAxisOrientation(*args
, **kwargs
): 
3882         SetAxisOrientation(self, bool xLeftRight, bool yBottomUp) 
3884         Sets the x and y axis orientation (i.e., the direction from lowest to 
3885         highest values on the axis). The default orientation is the natural 
3886         orientation, e.g. x axis from left to right and y axis from bottom up. 
3888         return _gdi_
.DC_SetAxisOrientation(*args
, **kwargs
) 
3890     def GetLogicalFunction(*args
, **kwargs
): 
3892         GetLogicalFunction(self) -> int 
3894         Gets the current logical function (set by `SetLogicalFunction`). 
3896         return _gdi_
.DC_GetLogicalFunction(*args
, **kwargs
) 
3898     def SetLogicalFunction(*args
, **kwargs
): 
3900         SetLogicalFunction(self, int function) 
3902         Sets the current logical function for the device context. This 
3903         determines how a source pixel (from a pen or brush colour, or source 
3904         device context if using `Blit`) combines with a destination pixel in 
3905         the current device context. 
3907         The possible values and their meaning in terms of source and 
3908         destination pixel values are as follows: 
3910             ================       ========================== 
3912             wx.AND_INVERT          (NOT src) AND dst 
3913             wx.AND_REVERSE         src AND (NOT dst) 
3916             wx.EQUIV               (NOT src) XOR dst 
3918             wx.NAND                (NOT src) OR (NOT dst) 
3919             wx.NOR                 (NOT src) AND (NOT dst) 
3922             wx.OR_INVERT           (NOT src) OR dst 
3923             wx.OR_REVERSE          src OR (NOT dst) 
3925             wx.SRC_INVERT          NOT src 
3927             ================       ========================== 
3929         The default is wx.COPY, which simply draws with the current 
3930         colour. The others combine the current colour and the background using 
3931         a logical operation. wx.INVERT is commonly used for drawing rubber 
3932         bands or moving outlines, since drawing twice reverts to the original 
3936         return _gdi_
.DC_SetLogicalFunction(*args
, **kwargs
) 
3938     def ComputeScaleAndOrigin(*args
, **kwargs
): 
3940         ComputeScaleAndOrigin(self) 
3942         Performs all necessary computations for given platform and context 
3943         type after each change of scale and origin parameters. Usually called 
3944         automatically internally after such changes. 
3947         return _gdi_
.DC_ComputeScaleAndOrigin(*args
, **kwargs
) 
3949     def SetOptimization(self
, optimize
): 
3951     def GetOptimization(self
): 
3954     SetOptimization 
= wx
._deprecated
(SetOptimization
) 
3955     GetOptimization 
= wx
._deprecated
(GetOptimization
) 
3957     def CalcBoundingBox(*args
, **kwargs
): 
3959         CalcBoundingBox(self, int x, int y) 
3961         Adds the specified point to the bounding box which can be retrieved 
3962         with `MinX`, `MaxX` and `MinY`, `MaxY` or `GetBoundingBox` functions. 
3964         return _gdi_
.DC_CalcBoundingBox(*args
, **kwargs
) 
3966     def CalcBoundingBoxPoint(*args
, **kwargs
): 
3968         CalcBoundingBoxPoint(self, Point point) 
3970         Adds the specified point to the bounding box which can be retrieved 
3971         with `MinX`, `MaxX` and `MinY`, `MaxY` or `GetBoundingBox` functions. 
3973         return _gdi_
.DC_CalcBoundingBoxPoint(*args
, **kwargs
) 
3975     def ResetBoundingBox(*args
, **kwargs
): 
3977         ResetBoundingBox(self) 
3979         Resets the bounding box: after a call to this function, the bounding 
3980         box doesn't contain anything. 
3982         return _gdi_
.DC_ResetBoundingBox(*args
, **kwargs
) 
3984     def MinX(*args
, **kwargs
): 
3988         Gets the minimum horizontal extent used in drawing commands so far. 
3990         return _gdi_
.DC_MinX(*args
, **kwargs
) 
3992     def MaxX(*args
, **kwargs
): 
3996         Gets the maximum horizontal extent used in drawing commands so far. 
3998         return _gdi_
.DC_MaxX(*args
, **kwargs
) 
4000     def MinY(*args
, **kwargs
): 
4004         Gets the minimum vertical extent used in drawing commands so far. 
4006         return _gdi_
.DC_MinY(*args
, **kwargs
) 
4008     def MaxY(*args
, **kwargs
): 
4012         Gets the maximum vertical extent used in drawing commands so far. 
4014         return _gdi_
.DC_MaxY(*args
, **kwargs
) 
4016     def GetBoundingBox(*args
, **kwargs
): 
4018         GetBoundingBox() -> (x1,y1, x2,y2) 
4020         Returns the min and max points used in drawing commands so far. 
4022         return _gdi_
.DC_GetBoundingBox(*args
, **kwargs
) 
4024     def __nonzero__(self
): return self
.Ok()  
4025     def GetHDC(*args
, **kwargs
): 
4026         """GetHDC(self) -> long""" 
4027         return _gdi_
.DC_GetHDC(*args
, **kwargs
) 
4029     def _DrawPointList(*args
, **kwargs
): 
4030         """_DrawPointList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" 
4031         return _gdi_
.DC__DrawPointList(*args
, **kwargs
) 
4033     def _DrawLineList(*args
, **kwargs
): 
4034         """_DrawLineList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" 
4035         return _gdi_
.DC__DrawLineList(*args
, **kwargs
) 
4037     def _DrawRectangleList(*args
, **kwargs
): 
4038         """_DrawRectangleList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" 
4039         return _gdi_
.DC__DrawRectangleList(*args
, **kwargs
) 
4041     def _DrawEllipseList(*args
, **kwargs
): 
4042         """_DrawEllipseList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" 
4043         return _gdi_
.DC__DrawEllipseList(*args
, **kwargs
) 
4045     def _DrawPolygonList(*args
, **kwargs
): 
4046         """_DrawPolygonList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject""" 
4047         return _gdi_
.DC__DrawPolygonList(*args
, **kwargs
) 
4049     def _DrawTextList(*args
, **kwargs
): 
4051         _DrawTextList(self, PyObject textList, PyObject pyPoints, PyObject foregroundList,  
4052             PyObject backgroundList) -> PyObject 
4054         return _gdi_
.DC__DrawTextList(*args
, **kwargs
) 
4056     def DrawPointList(self
, points
, pens
=None): 
4058         Draw a list of points as quickly as possible. 
4060             :param points:  A sequence of 2-element sequences representing 
4061                             each point to draw, (x,y). 
4062             :param pens:    If None, then the current pen is used.  If a 
4063                             single pen then it will be used for all points.  If 
4064                             a list of pens then there should be one for each point 
4069         elif isinstance(pens
, wx
.Pen
): 
4071         elif len(pens
) != len(points
): 
4072            raise ValueError('points and pens must have same length') 
4073         return self
._DrawPointList
(points
, pens
, []) 
4076     def DrawLineList(self
, lines
, pens
=None): 
4078         Draw a list of lines as quickly as possible. 
4080             :param lines:  A sequence of 4-element sequences representing 
4081                             each line to draw, (x1,y1, x2,y2). 
4082             :param pens:    If None, then the current pen is used.  If a 
4083                             single pen then it will be used for all lines.  If 
4084                             a list of pens then there should be one for each line 
4089         elif isinstance(pens
, wx
.Pen
): 
4091         elif len(pens
) != len(lines
): 
4092            raise ValueError('lines and pens must have same length') 
4093         return self
._DrawLineList
(lines
, pens
, []) 
4096     def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None): 
4098         Draw a list of rectangles as quickly as possible. 
4100             :param rectangles:  A sequence of 4-element sequences representing 
4101                             each rectangle to draw, (x,y, w,h). 
4102             :param pens:    If None, then the current pen is used.  If a 
4103                             single pen then it will be used for all rectangles. 
4104                             If a list of pens then there should be one for each  
4105                             rectangle in rectangles. 
4106             :param brushes: A brush or brushes to be used to fill the rectagles, 
4107                             with similar semantics as the pens parameter. 
4111         elif isinstance(pens
, wx
.Pen
): 
4113         elif len(pens
) != len(rectangles
): 
4114            raise ValueError('rectangles and pens must have same length') 
4117         elif isinstance(brushes
, wx
.Brush
): 
4119         elif len(brushes
) != len(rectangles
): 
4120            raise ValueError('rectangles and brushes must have same length') 
4121         return self
._DrawRectangleList
(rectangles
, pens
, brushes
) 
4124     def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None): 
4126         Draw a list of ellipses as quickly as possible. 
4128             :param ellipses: A sequence of 4-element sequences representing 
4129                             each ellipse to draw, (x,y, w,h). 
4130             :param pens:    If None, then the current pen is used.  If a 
4131                             single pen then it will be used for all ellipses. 
4132                             If a list of pens then there should be one for each  
4133                             ellipse in ellipses. 
4134             :param brushes: A brush or brushes to be used to fill the ellipses, 
4135                             with similar semantics as the pens parameter. 
4139         elif isinstance(pens
, wx
.Pen
): 
4141         elif len(pens
) != len(ellipses
): 
4142            raise ValueError('ellipses and pens must have same length') 
4145         elif isinstance(brushes
, wx
.Brush
): 
4147         elif len(brushes
) != len(ellipses
): 
4148            raise ValueError('ellipses and brushes must have same length') 
4149         return self
._DrawEllipseList
(ellipses
, pens
, brushes
) 
4152     def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None): 
4154         Draw a list of polygons, each of which is a list of points. 
4156             :param polygons: A sequence of sequences of sequences. 
4157                              [[(x1,y1),(x2,y2),(x3,y3)...], 
4158                              [(x1,y1),(x2,y2),(x3,y3)...]] 
4160             :param pens:    If None, then the current pen is used.  If a 
4161                             single pen then it will be used for all polygons. 
4162                             If a list of pens then there should be one for each  
4164             :param brushes: A brush or brushes to be used to fill the polygons, 
4165                             with similar semantics as the pens parameter. 
4169         elif isinstance(pens
, wx
.Pen
): 
4171         elif len(pens
) != len(polygons
): 
4172            raise ValueError('polygons and pens must have same length') 
4175         elif isinstance(brushes
, wx
.Brush
): 
4177         elif len(brushes
) != len(polygons
): 
4178            raise ValueError('polygons and brushes must have same length') 
4179         return self
._DrawPolygonList
(polygons
, pens
, brushes
) 
4182     def DrawTextList(self
, textList
, coords
, foregrounds 
= None, backgrounds 
= None): 
4184         Draw a list of strings using a list of coordinants for positioning each string. 
4186             :param textList:    A list of strings 
4187             :param coords:      A list of (x,y) positions 
4188             :param foregrounds: A list of `wx.Colour` objects to use for the 
4189                                 foregrounds of the strings. 
4190             :param backgrounds: A list of `wx.Colour` objects to use for the 
4191                                 backgrounds of the strings. 
4193         NOTE: Make sure you set Background mode to wx.Solid (DC.SetBackgroundMode) 
4194               If you want backgrounds to do anything. 
4196         if type(textList
) == type(''): 
4197            textList 
= [textList
] 
4198         elif len(textList
) != len(coords
): 
4199            raise ValueError('textlist and coords must have same length') 
4200         if foregrounds 
is None: 
4202         elif isinstance(foregrounds
, wx
.Colour
): 
4203            foregrounds 
= [foregrounds
] 
4204         elif len(foregrounds
) != len(coords
): 
4205            raise ValueError('foregrounds and coords must have same length') 
4206         if backgrounds 
is None: 
4208         elif isinstance(backgrounds
, wx
.Colour
): 
4209            backgrounds 
= [backgrounds
] 
4210         elif len(backgrounds
) != len(coords
): 
4211            raise ValueError('backgrounds and coords must have same length') 
4212         return  self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
) 
4216     def __init__(self
, this
): 
4218         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4220 _gdi_
.DC_swigregister(DCPtr
) 
4222 #--------------------------------------------------------------------------- 
4226     A memory device context provides a means to draw graphics onto a 
4227     bitmap. A bitmap must be selected into the new memory DC before it may 
4228     be used for anything. Typical usage is as follows:: 
4231         dc.SelectObject(bitmap) 
4232         # draw on the dc usign any of the Draw methods 
4233         dc.SelectObject(wx.NullBitmap) 
4234         # the bitmap now contains wahtever was drawn upon it 
4236     Note that the memory DC *must* be deleted (or the bitmap selected out 
4237     of it) before a bitmap can be reselected into another memory DC. 
4241         return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4242     def __init__(self
, *args
, **kwargs
): 
4244         __init__(self) -> MemoryDC 
4246         Constructs a new memory device context. 
4248         Use the Ok member to test whether the constructor was successful in 
4249         creating a usable device context. Don't forget to select a bitmap into 
4250         the DC before drawing on it. 
4252         newobj 
= _gdi_
.new_MemoryDC(*args
, **kwargs
) 
4253         self
.this 
= newobj
.this
 
4256     def SelectObject(*args
, **kwargs
): 
4258         SelectObject(self, Bitmap bitmap) 
4260         Selects the bitmap into the device context, to use as the memory 
4261         bitmap. Selecting the bitmap into a memory DC allows you to draw into 
4262         the DC, and therefore the bitmap, and also to use Blit to copy the 
4265         If the argument is wx.NullBitmap (or some other uninitialised 
4266         `wx.Bitmap`) the current bitmap is selected out of the device context, 
4267         and the original bitmap restored, allowing the current bitmap to be 
4270         return _gdi_
.MemoryDC_SelectObject(*args
, **kwargs
) 
4273 class MemoryDCPtr(MemoryDC
): 
4274     def __init__(self
, this
): 
4276         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4277         self
.__class
__ = MemoryDC
 
4278 _gdi_
.MemoryDC_swigregister(MemoryDCPtr
) 
4280 def MemoryDCFromDC(*args
, **kwargs
): 
4282     MemoryDCFromDC(DC oldDC) -> MemoryDC 
4284     Creates a DC that is compatible with the oldDC. 
4286     val 
= _gdi_
.new_MemoryDCFromDC(*args
, **kwargs
) 
4290 #--------------------------------------------------------------------------- 
4292 BUFFER_VIRTUAL_AREA 
= _gdi_
.BUFFER_VIRTUAL_AREA
 
4293 BUFFER_CLIENT_AREA 
= _gdi_
.BUFFER_CLIENT_AREA
 
4294 class BufferedDC(MemoryDC
): 
4296     This simple class provides a simple way to avoid flicker: when drawing 
4297     on it, everything is in fact first drawn on an in-memory buffer (a 
4298     `wx.Bitmap`) and then copied to the screen only once, when this object 
4301     It can be used in the same way as any other device 
4302     context. wx.BufferedDC itself typically replaces `wx.ClientDC`, if you 
4303     want to use it in your EVT_PAINT handler, you should look at 
4304     `wx.BufferedPaintDC`. 
4308         return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4309     def __init__(self
, *args
): 
4311         __init__(self, DC dc, Bitmap buffer=NullBitmap, int style=BUFFER_CLIENT_AREA) -> BufferedDC 
4312         __init__(self, DC dc, Size area, int style=BUFFER_CLIENT_AREA) -> BufferedDC 
4314         Constructs a buffered DC. 
4316         newobj 
= _gdi_
.new_BufferedDC(*args
) 
4317         self
.this 
= newobj
.this
 
4320         self
.__dc 
= args
[0] # save a ref so the other dc will not be deleted before self 
4322     def __del__(self
, destroy
=_gdi_
.delete_BufferedDC
): 
4326         Copies everything drawn on the DC so far to the underlying DC 
4327         associated with this object, if any. 
4330             if self
.thisown
: destroy(self
) 
4333     def UnMask(*args
, **kwargs
): 
4337         Blits the buffer to the dc, and detaches the dc from the buffer (so it 
4338         can be effectively used once only).  This is usually only called in 
4341         return _gdi_
.BufferedDC_UnMask(*args
, **kwargs
) 
4344 class BufferedDCPtr(BufferedDC
): 
4345     def __init__(self
, this
): 
4347         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4348         self
.__class
__ = BufferedDC
 
4349 _gdi_
.BufferedDC_swigregister(BufferedDCPtr
) 
4351 class BufferedPaintDC(BufferedDC
): 
4353     This is a subclass of `wx.BufferedDC` which can be used inside of an 
4354     EVT_PAINT event handler. Just create an object of this class instead 
4355     of `wx.PaintDC` and that's all you have to do to (mostly) avoid 
4356     flicker. The only thing to watch out for is that if you are using this 
4357     class together with `wx.ScrolledWindow`, you probably do **not** want 
4358     to call `wx.Window.PrepareDC` on it as it already does this internally 
4359     for the real underlying `wx.PaintDC`. 
4361     If your window is already fully buffered in a `wx.Bitmap` then your 
4362     EVT_PAINT handler can be as simple as just creating a 
4363     ``wx.BufferedPaintDC`` as it will `Blit` the buffer to the window 
4364     automatically when it is destroyed.  For example:: 
4366         def OnPaint(self, event): 
4367             dc = wx.BufferedPaintDC(self, self.buffer) 
4375         return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4376     def __init__(self
, *args
, **kwargs
): 
4378         __init__(self, Window window, Bitmap buffer=NullBitmap, int style=BUFFER_CLIENT_AREA) -> BufferedPaintDC 
4380         Create a buffered paint DC.  As with `wx.BufferedDC`, you may either 
4381         provide the bitmap to be used for buffering or let this object create 
4382         one internally (in the latter case, the size of the client part of the 
4383         window is automatically used). 
4387         newobj 
= _gdi_
.new_BufferedPaintDC(*args
, **kwargs
) 
4388         self
.this 
= newobj
.this
 
4392 class BufferedPaintDCPtr(BufferedPaintDC
): 
4393     def __init__(self
, this
): 
4395         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4396         self
.__class
__ = BufferedPaintDC
 
4397 _gdi_
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
) 
4399 #--------------------------------------------------------------------------- 
4403     A wxScreenDC can be used to paint anywhere on the screen. This should 
4404     normally be constructed as a temporary stack object; don't store a 
4409         return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4410     def __init__(self
, *args
, **kwargs
): 
4412         __init__(self) -> ScreenDC 
4414         A wxScreenDC can be used to paint anywhere on the screen. This should 
4415         normally be constructed as a temporary stack object; don't store a 
4419         newobj 
= _gdi_
.new_ScreenDC(*args
, **kwargs
) 
4420         self
.this 
= newobj
.this
 
4423     def StartDrawingOnTopWin(*args
, **kwargs
): 
4425         StartDrawingOnTopWin(self, Window window) -> bool 
4427         Specify that the area of the screen to be drawn upon coincides with 
4430         :see: `EndDrawingOnTop` 
4432         return _gdi_
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
) 
4434     def StartDrawingOnTop(*args
, **kwargs
): 
4436         StartDrawingOnTop(self, Rect rect=None) -> bool 
4438         Specify that the area is the given rectangle, or the whole screen if 
4441         :see: `EndDrawingOnTop` 
4443         return _gdi_
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
) 
4445     def EndDrawingOnTop(*args
, **kwargs
): 
4447         EndDrawingOnTop(self) -> bool 
4449         Use this in conjunction with `StartDrawingOnTop` or 
4450         `StartDrawingOnTopWin` to ensure that drawing to the screen occurs on 
4451         top of existing windows. Without this, some window systems (such as X) 
4452         only allow drawing to take place underneath other windows. 
4454         You might use this pair of functions when implementing a drag feature, 
4455         for example as in the `wx.SplitterWindow` implementation. 
4457         These functions are probably obsolete since the X implementations 
4458         allow drawing directly on the screen now. However, the fact that this 
4459         function allows the screen to be refreshed afterwards may be useful 
4460         to some applications. 
4462         return _gdi_
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
) 
4465 class ScreenDCPtr(ScreenDC
): 
4466     def __init__(self
, this
): 
4468         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4469         self
.__class
__ = ScreenDC
 
4470 _gdi_
.ScreenDC_swigregister(ScreenDCPtr
) 
4472 #--------------------------------------------------------------------------- 
4476     A wx.ClientDC must be constructed if an application wishes to paint on 
4477     the client area of a window from outside an EVT_PAINT event. This should 
4478     normally be constructed as a temporary stack object; don't store a 
4479     wx.ClientDC object long term. 
4481     To draw on a window from within an EVT_PAINT handler, construct a 
4482     `wx.PaintDC` object. 
4484     To draw on the whole window including decorations, construct a 
4485     `wx.WindowDC` object (Windows only). 
4489         return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4490     def __init__(self
, *args
, **kwargs
): 
4492         __init__(self, Window win) -> ClientDC 
4494         Constructor. Pass the window on which you wish to paint. 
4496         newobj 
= _gdi_
.new_ClientDC(*args
, **kwargs
) 
4497         self
.this 
= newobj
.this
 
4501 class ClientDCPtr(ClientDC
): 
4502     def __init__(self
, this
): 
4504         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4505         self
.__class
__ = ClientDC
 
4506 _gdi_
.ClientDC_swigregister(ClientDCPtr
) 
4508 #--------------------------------------------------------------------------- 
4512     A wx.PaintDC must be constructed if an application wishes to paint on 
4513     the client area of a window from within an EVT_PAINT event 
4514     handler. This should normally be constructed as a temporary stack 
4515     object; don't store a wx.PaintDC object. If you have an EVT_PAINT 
4516     handler, you **must** create a wx.PaintDC object within it even if you 
4517     don't actually use it. 
4519     Using wx.PaintDC within EVT_PAINT handlers is important because it 
4520     automatically sets the clipping area to the damaged area of the 
4521     window. Attempts to draw outside this area do not appear. 
4523     To draw on a window from outside EVT_PAINT handlers, construct a 
4524     `wx.ClientDC` object. 
4528         return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4529     def __init__(self
, *args
, **kwargs
): 
4531         __init__(self, Window win) -> PaintDC 
4533         Constructor. Pass the window on which you wish to paint. 
4535         newobj 
= _gdi_
.new_PaintDC(*args
, **kwargs
) 
4536         self
.this 
= newobj
.this
 
4540 class PaintDCPtr(PaintDC
): 
4541     def __init__(self
, this
): 
4543         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4544         self
.__class
__ = PaintDC
 
4545 _gdi_
.PaintDC_swigregister(PaintDCPtr
) 
4547 #--------------------------------------------------------------------------- 
4551     A wx.WindowDC must be constructed if an application wishes to paint on 
4552     the whole area of a window (client and decorations). This should 
4553     normally be constructed as a temporary stack object; don't store a 
4557         return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4558     def __init__(self
, *args
, **kwargs
): 
4560         __init__(self, Window win) -> WindowDC 
4562         Constructor. Pass the window on which you wish to paint. 
4564         newobj 
= _gdi_
.new_WindowDC(*args
, **kwargs
) 
4565         self
.this 
= newobj
.this
 
4569 class WindowDCPtr(WindowDC
): 
4570     def __init__(self
, this
): 
4572         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4573         self
.__class
__ = WindowDC
 
4574 _gdi_
.WindowDC_swigregister(WindowDCPtr
) 
4576 #--------------------------------------------------------------------------- 
4580     wx.MirrorDC is a simple wrapper class which is always associated with a 
4581     real `wx.DC` object and either forwards all of its operations to it 
4582     without changes (no mirroring takes place) or exchanges x and y 
4583     coordinates which makes it possible to reuse the same code to draw a 
4584     figure and its mirror -- i.e. reflection related to the diagonal line 
4588         return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4589     def __init__(self
, *args
, **kwargs
): 
4591         __init__(self, DC dc, bool mirror) -> MirrorDC 
4593         Creates a mirrored DC associated with the real *dc*.  Everything drawn 
4594         on the wx.MirrorDC will appear on the *dc*, and will be mirrored if 
4597         newobj 
= _gdi_
.new_MirrorDC(*args
, **kwargs
) 
4598         self
.this 
= newobj
.this
 
4602 class MirrorDCPtr(MirrorDC
): 
4603     def __init__(self
, this
): 
4605         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4606         self
.__class
__ = MirrorDC
 
4607 _gdi_
.MirrorDC_swigregister(MirrorDCPtr
) 
4609 #--------------------------------------------------------------------------- 
4611 class PostScriptDC(DC
): 
4612     """This is a `wx.DC` that can write to PostScript files on any platform.""" 
4614         return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4615     def __init__(self
, *args
, **kwargs
): 
4617         __init__(self, wxPrintData printData) -> PostScriptDC 
4619         Constructs a PostScript printer device context from a `wx.PrintData` 
4622         newobj 
= _gdi_
.new_PostScriptDC(*args
, **kwargs
) 
4623         self
.this 
= newobj
.this
 
4626     def GetPrintData(*args
, **kwargs
): 
4627         """GetPrintData(self) -> wxPrintData""" 
4628         return _gdi_
.PostScriptDC_GetPrintData(*args
, **kwargs
) 
4630     def SetPrintData(*args
, **kwargs
): 
4631         """SetPrintData(self, wxPrintData data)""" 
4632         return _gdi_
.PostScriptDC_SetPrintData(*args
, **kwargs
) 
4634     def SetResolution(*args
, **kwargs
): 
4636         SetResolution(int ppi) 
4638         Set resolution (in pixels per inch) that will be used in PostScript 
4639         output. Default is 720ppi. 
4641         return _gdi_
.PostScriptDC_SetResolution(*args
, **kwargs
) 
4643     SetResolution 
= staticmethod(SetResolution
) 
4644     def GetResolution(*args
, **kwargs
): 
4646         GetResolution() -> int 
4648         Return resolution used in PostScript output. 
4650         return _gdi_
.PostScriptDC_GetResolution(*args
, **kwargs
) 
4652     GetResolution 
= staticmethod(GetResolution
) 
4654 class PostScriptDCPtr(PostScriptDC
): 
4655     def __init__(self
, this
): 
4657         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4658         self
.__class
__ = PostScriptDC
 
4659 _gdi_
.PostScriptDC_swigregister(PostScriptDCPtr
) 
4661 def PostScriptDC_SetResolution(*args
, **kwargs
): 
4663     PostScriptDC_SetResolution(int ppi) 
4665     Set resolution (in pixels per inch) that will be used in PostScript 
4666     output. Default is 720ppi. 
4668     return _gdi_
.PostScriptDC_SetResolution(*args
, **kwargs
) 
4670 def PostScriptDC_GetResolution(*args
, **kwargs
): 
4672     PostScriptDC_GetResolution() -> int 
4674     Return resolution used in PostScript output. 
4676     return _gdi_
.PostScriptDC_GetResolution(*args
, **kwargs
) 
4678 #--------------------------------------------------------------------------- 
4680 class MetaFile(_core
.Object
): 
4681     """Proxy of C++ MetaFile class""" 
4683         return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4684     def __init__(self
, *args
, **kwargs
): 
4685         """__init__(self, String filename=EmptyString) -> MetaFile""" 
4686         newobj 
= _gdi_
.new_MetaFile(*args
, **kwargs
) 
4687         self
.this 
= newobj
.this
 
4690     def __del__(self
, destroy
=_gdi_
.delete_MetaFile
): 
4693             if self
.thisown
: destroy(self
) 
4696     def Ok(*args
, **kwargs
): 
4697         """Ok(self) -> bool""" 
4698         return _gdi_
.MetaFile_Ok(*args
, **kwargs
) 
4700     def SetClipboard(*args
, **kwargs
): 
4701         """SetClipboard(self, int width=0, int height=0) -> bool""" 
4702         return _gdi_
.MetaFile_SetClipboard(*args
, **kwargs
) 
4704     def GetSize(*args
, **kwargs
): 
4705         """GetSize(self) -> Size""" 
4706         return _gdi_
.MetaFile_GetSize(*args
, **kwargs
) 
4708     def GetWidth(*args
, **kwargs
): 
4709         """GetWidth(self) -> int""" 
4710         return _gdi_
.MetaFile_GetWidth(*args
, **kwargs
) 
4712     def GetHeight(*args
, **kwargs
): 
4713         """GetHeight(self) -> int""" 
4714         return _gdi_
.MetaFile_GetHeight(*args
, **kwargs
) 
4716     def GetFileName(*args
, **kwargs
): 
4717         """GetFileName(self) -> String""" 
4718         return _gdi_
.MetaFile_GetFileName(*args
, **kwargs
) 
4720     def __nonzero__(self
): return self
.Ok()  
4722 class MetaFilePtr(MetaFile
): 
4723     def __init__(self
, this
): 
4725         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4726         self
.__class
__ = MetaFile
 
4727 _gdi_
.MetaFile_swigregister(MetaFilePtr
) 
4729 class MetaFileDC(DC
): 
4730     """Proxy of C++ MetaFileDC class""" 
4732         return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4733     def __init__(self
, *args
, **kwargs
): 
4735         __init__(self, String filename=EmptyString, int width=0, int height=0,  
4736             String description=EmptyString) -> MetaFileDC 
4738         newobj 
= _gdi_
.new_MetaFileDC(*args
, **kwargs
) 
4739         self
.this 
= newobj
.this
 
4742     def Close(*args
, **kwargs
): 
4743         """Close(self) -> MetaFile""" 
4744         return _gdi_
.MetaFileDC_Close(*args
, **kwargs
) 
4747 class MetaFileDCPtr(MetaFileDC
): 
4748     def __init__(self
, this
): 
4750         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4751         self
.__class
__ = MetaFileDC
 
4752 _gdi_
.MetaFileDC_swigregister(MetaFileDCPtr
) 
4754 class PrinterDC(DC
): 
4755     """Proxy of C++ PrinterDC class""" 
4757         return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4758     def __init__(self
, *args
, **kwargs
): 
4759         """__init__(self, wxPrintData printData) -> PrinterDC""" 
4760         newobj 
= _gdi_
.new_PrinterDC(*args
, **kwargs
) 
4761         self
.this 
= newobj
.this
 
4765 class PrinterDCPtr(PrinterDC
): 
4766     def __init__(self
, this
): 
4768         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4769         self
.__class
__ = PrinterDC
 
4770 _gdi_
.PrinterDC_swigregister(PrinterDCPtr
) 
4772 #--------------------------------------------------------------------------- 
4774 IMAGELIST_DRAW_NORMAL 
= _gdi_
.IMAGELIST_DRAW_NORMAL
 
4775 IMAGELIST_DRAW_TRANSPARENT 
= _gdi_
.IMAGELIST_DRAW_TRANSPARENT
 
4776 IMAGELIST_DRAW_SELECTED 
= _gdi_
.IMAGELIST_DRAW_SELECTED
 
4777 IMAGELIST_DRAW_FOCUSED 
= _gdi_
.IMAGELIST_DRAW_FOCUSED
 
4778 IMAGE_LIST_NORMAL 
= _gdi_
.IMAGE_LIST_NORMAL
 
4779 IMAGE_LIST_SMALL 
= _gdi_
.IMAGE_LIST_SMALL
 
4780 IMAGE_LIST_STATE 
= _gdi_
.IMAGE_LIST_STATE
 
4781 class ImageList(_core
.Object
): 
4782     """Proxy of C++ ImageList class""" 
4784         return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4785     def __init__(self
, *args
, **kwargs
): 
4786         """__init__(self, int width, int height, int mask=True, int initialCount=1) -> ImageList""" 
4787         newobj 
= _gdi_
.new_ImageList(*args
, **kwargs
) 
4788         self
.this 
= newobj
.this
 
4791     def __del__(self
, destroy
=_gdi_
.delete_ImageList
): 
4794             if self
.thisown
: destroy(self
) 
4797     def Add(*args
, **kwargs
): 
4798         """Add(self, Bitmap bitmap, Bitmap mask=NullBitmap) -> int""" 
4799         return _gdi_
.ImageList_Add(*args
, **kwargs
) 
4801     def AddWithColourMask(*args
, **kwargs
): 
4802         """AddWithColourMask(self, Bitmap bitmap, Colour maskColour) -> int""" 
4803         return _gdi_
.ImageList_AddWithColourMask(*args
, **kwargs
) 
4805     def AddIcon(*args
, **kwargs
): 
4806         """AddIcon(self, Icon icon) -> int""" 
4807         return _gdi_
.ImageList_AddIcon(*args
, **kwargs
) 
4809     def GetBitmap(*args
, **kwargs
): 
4810         """GetBitmap(self, int index) -> Bitmap""" 
4811         return _gdi_
.ImageList_GetBitmap(*args
, **kwargs
) 
4813     def GetIcon(*args
, **kwargs
): 
4814         """GetIcon(self, int index) -> Icon""" 
4815         return _gdi_
.ImageList_GetIcon(*args
, **kwargs
) 
4817     def Replace(*args
, **kwargs
): 
4818         """Replace(self, int index, Bitmap bitmap, Bitmap mask=NullBitmap) -> bool""" 
4819         return _gdi_
.ImageList_Replace(*args
, **kwargs
) 
4821     def Draw(*args
, **kwargs
): 
4823         Draw(self, int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,  
4824             bool solidBackground=False) -> bool 
4826         return _gdi_
.ImageList_Draw(*args
, **kwargs
) 
4828     def GetImageCount(*args
, **kwargs
): 
4829         """GetImageCount(self) -> int""" 
4830         return _gdi_
.ImageList_GetImageCount(*args
, **kwargs
) 
4832     def Remove(*args
, **kwargs
): 
4833         """Remove(self, int index) -> bool""" 
4834         return _gdi_
.ImageList_Remove(*args
, **kwargs
) 
4836     def RemoveAll(*args
, **kwargs
): 
4837         """RemoveAll(self) -> bool""" 
4838         return _gdi_
.ImageList_RemoveAll(*args
, **kwargs
) 
4840     def GetSize(*args
, **kwargs
): 
4841         """GetSize() -> (width,height)""" 
4842         return _gdi_
.ImageList_GetSize(*args
, **kwargs
) 
4845 class ImageListPtr(ImageList
): 
4846     def __init__(self
, this
): 
4848         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4849         self
.__class
__ = ImageList
 
4850 _gdi_
.ImageList_swigregister(ImageListPtr
) 
4852 #--------------------------------------------------------------------------- 
4854 class PenList(_core
.Object
): 
4855     """Proxy of C++ PenList class""" 
4856     def __init__(self
): raise RuntimeError, "No constructor defined" 
4858         return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4859     def AddPen(*args
, **kwargs
): 
4860         """AddPen(self, Pen pen)""" 
4861         return _gdi_
.PenList_AddPen(*args
, **kwargs
) 
4863     def FindOrCreatePen(*args
, **kwargs
): 
4864         """FindOrCreatePen(self, Colour colour, int width, int style) -> Pen""" 
4865         return _gdi_
.PenList_FindOrCreatePen(*args
, **kwargs
) 
4867     def RemovePen(*args
, **kwargs
): 
4868         """RemovePen(self, Pen pen)""" 
4869         return _gdi_
.PenList_RemovePen(*args
, **kwargs
) 
4871     def GetCount(*args
, **kwargs
): 
4872         """GetCount(self) -> int""" 
4873         return _gdi_
.PenList_GetCount(*args
, **kwargs
) 
4876 class PenListPtr(PenList
): 
4877     def __init__(self
, this
): 
4879         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4880         self
.__class
__ = PenList
 
4881 _gdi_
.PenList_swigregister(PenListPtr
) 
4883 NORMAL_FONT 
= cvar
.NORMAL_FONT
 
4884 SMALL_FONT 
= cvar
.SMALL_FONT
 
4885 ITALIC_FONT 
= cvar
.ITALIC_FONT
 
4886 SWISS_FONT 
= cvar
.SWISS_FONT
 
4887 RED_PEN 
= cvar
.RED_PEN
 
4888 CYAN_PEN 
= cvar
.CYAN_PEN
 
4889 GREEN_PEN 
= cvar
.GREEN_PEN
 
4890 BLACK_PEN 
= cvar
.BLACK_PEN
 
4891 WHITE_PEN 
= cvar
.WHITE_PEN
 
4892 TRANSPARENT_PEN 
= cvar
.TRANSPARENT_PEN
 
4893 BLACK_DASHED_PEN 
= cvar
.BLACK_DASHED_PEN
 
4894 GREY_PEN 
= cvar
.GREY_PEN
 
4895 MEDIUM_GREY_PEN 
= cvar
.MEDIUM_GREY_PEN
 
4896 LIGHT_GREY_PEN 
= cvar
.LIGHT_GREY_PEN
 
4897 BLUE_BRUSH 
= cvar
.BLUE_BRUSH
 
4898 GREEN_BRUSH 
= cvar
.GREEN_BRUSH
 
4899 WHITE_BRUSH 
= cvar
.WHITE_BRUSH
 
4900 BLACK_BRUSH 
= cvar
.BLACK_BRUSH
 
4901 TRANSPARENT_BRUSH 
= cvar
.TRANSPARENT_BRUSH
 
4902 CYAN_BRUSH 
= cvar
.CYAN_BRUSH
 
4903 RED_BRUSH 
= cvar
.RED_BRUSH
 
4904 GREY_BRUSH 
= cvar
.GREY_BRUSH
 
4905 MEDIUM_GREY_BRUSH 
= cvar
.MEDIUM_GREY_BRUSH
 
4906 LIGHT_GREY_BRUSH 
= cvar
.LIGHT_GREY_BRUSH
 
4913 LIGHT_GREY 
= cvar
.LIGHT_GREY
 
4914 STANDARD_CURSOR 
= cvar
.STANDARD_CURSOR
 
4915 HOURGLASS_CURSOR 
= cvar
.HOURGLASS_CURSOR
 
4916 CROSS_CURSOR 
= cvar
.CROSS_CURSOR
 
4917 NullBitmap 
= cvar
.NullBitmap
 
4918 NullIcon 
= cvar
.NullIcon
 
4919 NullCursor 
= cvar
.NullCursor
 
4920 NullPen 
= cvar
.NullPen
 
4921 NullBrush 
= cvar
.NullBrush
 
4922 NullPalette 
= cvar
.NullPalette
 
4923 NullFont 
= cvar
.NullFont
 
4924 NullColour 
= cvar
.NullColour
 
4926 class BrushList(_core
.Object
): 
4927     """Proxy of C++ BrushList class""" 
4928     def __init__(self
): raise RuntimeError, "No constructor defined" 
4930         return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4931     def AddBrush(*args
, **kwargs
): 
4932         """AddBrush(self, Brush brush)""" 
4933         return _gdi_
.BrushList_AddBrush(*args
, **kwargs
) 
4935     def FindOrCreateBrush(*args
, **kwargs
): 
4936         """FindOrCreateBrush(self, Colour colour, int style=SOLID) -> Brush""" 
4937         return _gdi_
.BrushList_FindOrCreateBrush(*args
, **kwargs
) 
4939     def RemoveBrush(*args
, **kwargs
): 
4940         """RemoveBrush(self, Brush brush)""" 
4941         return _gdi_
.BrushList_RemoveBrush(*args
, **kwargs
) 
4943     def GetCount(*args
, **kwargs
): 
4944         """GetCount(self) -> int""" 
4945         return _gdi_
.BrushList_GetCount(*args
, **kwargs
) 
4948 class BrushListPtr(BrushList
): 
4949     def __init__(self
, this
): 
4951         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4952         self
.__class
__ = BrushList
 
4953 _gdi_
.BrushList_swigregister(BrushListPtr
) 
4955 class ColourDatabase(_core
.Object
): 
4956     """Proxy of C++ ColourDatabase class""" 
4958         return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
4959     def __init__(self
, *args
, **kwargs
): 
4960         """__init__(self) -> ColourDatabase""" 
4961         newobj 
= _gdi_
.new_ColourDatabase(*args
, **kwargs
) 
4962         self
.this 
= newobj
.this
 
4965     def __del__(self
, destroy
=_gdi_
.delete_ColourDatabase
): 
4968             if self
.thisown
: destroy(self
) 
4971     def Find(*args
, **kwargs
): 
4972         """Find(self, String name) -> Colour""" 
4973         return _gdi_
.ColourDatabase_Find(*args
, **kwargs
) 
4975     def FindName(*args
, **kwargs
): 
4976         """FindName(self, Colour colour) -> String""" 
4977         return _gdi_
.ColourDatabase_FindName(*args
, **kwargs
) 
4980     def AddColour(*args
, **kwargs
): 
4981         """AddColour(self, String name, Colour colour)""" 
4982         return _gdi_
.ColourDatabase_AddColour(*args
, **kwargs
) 
4984     def Append(*args
, **kwargs
): 
4985         """Append(self, String name, int red, int green, int blue)""" 
4986         return _gdi_
.ColourDatabase_Append(*args
, **kwargs
) 
4989 class ColourDatabasePtr(ColourDatabase
): 
4990     def __init__(self
, this
): 
4992         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
4993         self
.__class
__ = ColourDatabase
 
4994 _gdi_
.ColourDatabase_swigregister(ColourDatabasePtr
) 
4996 class FontList(_core
.Object
): 
4997     """Proxy of C++ FontList class""" 
4998     def __init__(self
): raise RuntimeError, "No constructor defined" 
5000         return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
5001     def AddFont(*args
, **kwargs
): 
5002         """AddFont(self, Font font)""" 
5003         return _gdi_
.FontList_AddFont(*args
, **kwargs
) 
5005     def FindOrCreateFont(*args
, **kwargs
): 
5007         FindOrCreateFont(self, int point_size, int family, int style, int weight,  
5008             bool underline=False, String facename=EmptyString,  
5009             int encoding=FONTENCODING_DEFAULT) -> Font 
5011         return _gdi_
.FontList_FindOrCreateFont(*args
, **kwargs
) 
5013     def RemoveFont(*args
, **kwargs
): 
5014         """RemoveFont(self, Font font)""" 
5015         return _gdi_
.FontList_RemoveFont(*args
, **kwargs
) 
5017     def GetCount(*args
, **kwargs
): 
5018         """GetCount(self) -> int""" 
5019         return _gdi_
.FontList_GetCount(*args
, **kwargs
) 
5022 class FontListPtr(FontList
): 
5023     def __init__(self
, this
): 
5025         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
5026         self
.__class
__ = FontList
 
5027 _gdi_
.FontList_swigregister(FontListPtr
) 
5029 #--------------------------------------------------------------------------- 
5031 NullColor 
= NullColour 
 
5032 #--------------------------------------------------------------------------- 
5034 class Effects(_core
.Object
): 
5035     """Proxy of C++ Effects class""" 
5037         return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
5038     def __init__(self
, *args
, **kwargs
): 
5039         """__init__(self) -> Effects""" 
5040         newobj 
= _gdi_
.new_Effects(*args
, **kwargs
) 
5041         self
.this 
= newobj
.this
 
5044     def GetHighlightColour(*args
, **kwargs
): 
5045         """GetHighlightColour(self) -> Colour""" 
5046         return _gdi_
.Effects_GetHighlightColour(*args
, **kwargs
) 
5048     def GetLightShadow(*args
, **kwargs
): 
5049         """GetLightShadow(self) -> Colour""" 
5050         return _gdi_
.Effects_GetLightShadow(*args
, **kwargs
) 
5052     def GetFaceColour(*args
, **kwargs
): 
5053         """GetFaceColour(self) -> Colour""" 
5054         return _gdi_
.Effects_GetFaceColour(*args
, **kwargs
) 
5056     def GetMediumShadow(*args
, **kwargs
): 
5057         """GetMediumShadow(self) -> Colour""" 
5058         return _gdi_
.Effects_GetMediumShadow(*args
, **kwargs
) 
5060     def GetDarkShadow(*args
, **kwargs
): 
5061         """GetDarkShadow(self) -> Colour""" 
5062         return _gdi_
.Effects_GetDarkShadow(*args
, **kwargs
) 
5064     def SetHighlightColour(*args
, **kwargs
): 
5065         """SetHighlightColour(self, Colour c)""" 
5066         return _gdi_
.Effects_SetHighlightColour(*args
, **kwargs
) 
5068     def SetLightShadow(*args
, **kwargs
): 
5069         """SetLightShadow(self, Colour c)""" 
5070         return _gdi_
.Effects_SetLightShadow(*args
, **kwargs
) 
5072     def SetFaceColour(*args
, **kwargs
): 
5073         """SetFaceColour(self, Colour c)""" 
5074         return _gdi_
.Effects_SetFaceColour(*args
, **kwargs
) 
5076     def SetMediumShadow(*args
, **kwargs
): 
5077         """SetMediumShadow(self, Colour c)""" 
5078         return _gdi_
.Effects_SetMediumShadow(*args
, **kwargs
) 
5080     def SetDarkShadow(*args
, **kwargs
): 
5081         """SetDarkShadow(self, Colour c)""" 
5082         return _gdi_
.Effects_SetDarkShadow(*args
, **kwargs
) 
5084     def Set(*args
, **kwargs
): 
5086         Set(self, Colour highlightColour, Colour lightShadow, Colour faceColour,  
5087             Colour mediumShadow, Colour darkShadow) 
5089         return _gdi_
.Effects_Set(*args
, **kwargs
) 
5091     def DrawSunkenEdge(*args
, **kwargs
): 
5092         """DrawSunkenEdge(self, DC dc, Rect rect, int borderSize=1)""" 
5093         return _gdi_
.Effects_DrawSunkenEdge(*args
, **kwargs
) 
5095     def TileBitmap(*args
, **kwargs
): 
5096         """TileBitmap(self, Rect rect, DC dc, Bitmap bitmap) -> bool""" 
5097         return _gdi_
.Effects_TileBitmap(*args
, **kwargs
) 
5100 class EffectsPtr(Effects
): 
5101     def __init__(self
, this
): 
5103         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
5104         self
.__class
__ = Effects
 
5105 _gdi_
.Effects_swigregister(EffectsPtr
) 
5106 TheFontList 
= cvar
.TheFontList
 
5107 ThePenList 
= cvar
.ThePenList
 
5108 TheBrushList 
= cvar
.TheBrushList
 
5109 TheColourDatabase 
= cvar
.TheColourDatabase
 
5111 #--------------------------------------------------------------------------- 
5113 CONTROL_DISABLED 
= _gdi_
.CONTROL_DISABLED
 
5114 CONTROL_FOCUSED 
= _gdi_
.CONTROL_FOCUSED
 
5115 CONTROL_PRESSED 
= _gdi_
.CONTROL_PRESSED
 
5116 CONTROL_ISDEFAULT 
= _gdi_
.CONTROL_ISDEFAULT
 
5117 CONTROL_ISSUBMENU 
= _gdi_
.CONTROL_ISSUBMENU
 
5118 CONTROL_EXPANDED 
= _gdi_
.CONTROL_EXPANDED
 
5119 CONTROL_CURRENT 
= _gdi_
.CONTROL_CURRENT
 
5120 CONTROL_SELECTED 
= _gdi_
.CONTROL_SELECTED
 
5121 CONTROL_CHECKED 
= _gdi_
.CONTROL_CHECKED
 
5122 CONTROL_CHECKABLE 
= _gdi_
.CONTROL_CHECKABLE
 
5123 CONTROL_UNDETERMINED 
= _gdi_
.CONTROL_UNDETERMINED
 
5124 CONTROL_FLAGS_MASK 
= _gdi_
.CONTROL_FLAGS_MASK
 
5125 CONTROL_DIRTY 
= _gdi_
.CONTROL_DIRTY
 
5126 class SplitterRenderParams(object): 
5128     This is just a simple struct used as a return value of 
5129     `wx.RendererNative.GetSplitterParams` and contains some platform 
5130     specific metrics about splitters. 
5132         * widthSash: the width of the splitter sash. 
5133         * border: the width of the border of the splitter window. 
5134         * isHotSensitive: ``True`` if the splitter changes its 
5135           appearance when the mouse is over it. 
5140         return "<%s.%s; proxy of C++ wxSplitterRenderParams instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
5141     def __init__(self
, *args
, **kwargs
): 
5143         __init__(self, int widthSash_, int border_, bool isSens_) -> SplitterRenderParams 
5145         This is just a simple struct used as a return value of 
5146         `wx.RendererNative.GetSplitterParams` and contains some platform 
5147         specific metrics about splitters. 
5149             * widthSash: the width of the splitter sash. 
5150             * border: the width of the border of the splitter window. 
5151             * isHotSensitive: ``True`` if the splitter changes its 
5152               appearance when the mouse is over it. 
5156         newobj 
= _gdi_
.new_SplitterRenderParams(*args
, **kwargs
) 
5157         self
.this 
= newobj
.this
 
5160     def __del__(self
, destroy
=_gdi_
.delete_SplitterRenderParams
): 
5163             if self
.thisown
: destroy(self
) 
5166     widthSash 
= property(_gdi_
.SplitterRenderParams_widthSash_get
) 
5167     border 
= property(_gdi_
.SplitterRenderParams_border_get
) 
5168     isHotSensitive 
= property(_gdi_
.SplitterRenderParams_isHotSensitive_get
) 
5170 class SplitterRenderParamsPtr(SplitterRenderParams
): 
5171     def __init__(self
, this
): 
5173         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
5174         self
.__class
__ = SplitterRenderParams
 
5175 _gdi_
.SplitterRenderParams_swigregister(SplitterRenderParamsPtr
) 
5177 class RendererVersion(object): 
5179     This simple struct represents the `wx.RendererNative` interface 
5180     version and is only used as the return value of 
5181     `wx.RendererNative.GetVersion`. 
5184         return "<%s.%s; proxy of C++ wxRendererVersion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
5185     def __init__(self
, *args
, **kwargs
): 
5187         __init__(self, int version_, int age_) -> RendererVersion 
5189         This simple struct represents the `wx.RendererNative` interface 
5190         version and is only used as the return value of 
5191         `wx.RendererNative.GetVersion`. 
5193         newobj 
= _gdi_
.new_RendererVersion(*args
, **kwargs
) 
5194         self
.this 
= newobj
.this
 
5197     def __del__(self
, destroy
=_gdi_
.delete_RendererVersion
): 
5200             if self
.thisown
: destroy(self
) 
5203     Current_Version 
= _gdi_
.RendererVersion_Current_Version
 
5204     Current_Age 
= _gdi_
.RendererVersion_Current_Age
 
5205     def IsCompatible(*args
, **kwargs
): 
5206         """IsCompatible(RendererVersion ver) -> bool""" 
5207         return _gdi_
.RendererVersion_IsCompatible(*args
, **kwargs
) 
5209     IsCompatible 
= staticmethod(IsCompatible
) 
5210     version 
= property(_gdi_
.RendererVersion_version_get
) 
5211     age 
= property(_gdi_
.RendererVersion_age_get
) 
5213 class RendererVersionPtr(RendererVersion
): 
5214     def __init__(self
, this
): 
5216         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
5217         self
.__class
__ = RendererVersion
 
5218 _gdi_
.RendererVersion_swigregister(RendererVersionPtr
) 
5220 def RendererVersion_IsCompatible(*args
, **kwargs
): 
5221     """RendererVersion_IsCompatible(RendererVersion ver) -> bool""" 
5222     return _gdi_
.RendererVersion_IsCompatible(*args
, **kwargs
) 
5224 class RendererNative(object): 
5226     One of the design principles of wxWidgets is to use the native widgets 
5227     on every platform in order to be as close to the native look and feel 
5228     on every platform.  However there are still cases when some generic 
5229     widgets are needed for various reasons, but it can sometimes take a 
5230     lot of messy work to make them conform to the native LnF. 
5232     The wx.RendererNative class is a collection of functions that have 
5233     platform-specific implementations for drawing certain parts of 
5234     genereic controls in ways that are as close to the native look as 
5238     def __init__(self
): raise RuntimeError, "No constructor defined" 
5240         return "<%s.%s; proxy of C++ wxRendererNative instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,) 
5241     def DrawHeaderButton(*args
, **kwargs
): 
5243         DrawHeaderButton(self, Window win, DC dc, Rect rect, int flags=0) 
5245         Draw the header control button (such as whar is used by `wx.ListCtrl` 
5248         return _gdi_
.RendererNative_DrawHeaderButton(*args
, **kwargs
) 
5250     def DrawTreeItemButton(*args
, **kwargs
): 
5252         DrawTreeItemButton(self, Window win, DC dc, Rect rect, int flags=0) 
5254         Draw the expanded/collapsed icon for a tree control item. 
5256         return _gdi_
.RendererNative_DrawTreeItemButton(*args
, **kwargs
) 
5258     def DrawSplitterBorder(*args
, **kwargs
): 
5260         DrawSplitterBorder(self, Window win, DC dc, Rect rect, int flags=0) 
5262         Draw the border for a sash window: this border must be such that the 
5263         sash drawn by `DrawSplitterSash` blends into it well. 
5265         return _gdi_
.RendererNative_DrawSplitterBorder(*args
, **kwargs
) 
5267     def DrawSplitterSash(*args
, **kwargs
): 
5269         DrawSplitterSash(self, Window win, DC dc, Size size, int position, int orient,  
5272         Draw a sash. The orient parameter defines whether the sash should be 
5273         vertical or horizontal and how the position should be interpreted. 
5275         return _gdi_
.RendererNative_DrawSplitterSash(*args
, **kwargs
) 
5277     def DrawComboBoxDropButton(*args
, **kwargs
): 
5279         DrawComboBoxDropButton(self, Window win, DC dc, Rect rect, int flags=0) 
5281         Draw a button like the one used by `wx.ComboBox` to show a drop down 
5282         window. The usual appearance is a downwards pointing arrow. 
5284         The ``flags`` parameter may have the ``wx.CONTROL_PRESSED`` or 
5285         ``wx.CONTROL_CURRENT`` bits set. 
5287         return _gdi_
.RendererNative_DrawComboBoxDropButton(*args
, **kwargs
) 
5289     def DrawDropArrow(*args
, **kwargs
): 
5291         DrawDropArrow(self, Window win, DC dc, Rect rect, int flags=0) 
5293         Draw a drop down arrow that is suitable for use outside a combo 
5294         box. Arrow will have a transparent background. 
5296         ``rect`` is not entirely filled by the arrow. Instead, you should use 
5297         bounding rectangle of a drop down button which arrow matches the size 
5298         you need. ``flags`` may have the ``wx.CONTROL_PRESSED`` or 
5299         ``wx.CONTROL_CURRENT`` bit set. 
5301         return _gdi_
.RendererNative_DrawDropArrow(*args
, **kwargs
) 
5303     def GetSplitterParams(*args
, **kwargs
): 
5305         GetSplitterParams(self, Window win) -> SplitterRenderParams 
5307         Get the splitter parameters, see `wx.SplitterRenderParams`. 
5309         return _gdi_
.RendererNative_GetSplitterParams(*args
, **kwargs
) 
5311     def Get(*args
, **kwargs
): 
5313         Get() -> RendererNative 
5315         Return the currently used renderer 
5317         return _gdi_
.RendererNative_Get(*args
, **kwargs
) 
5319     Get 
= staticmethod(Get
) 
5320     def GetGeneric(*args
, **kwargs
): 
5322         GetGeneric() -> RendererNative 
5324         Return the generic implementation of the renderer. Under some 
5325         platforms, this is the default renderer implementation, others have 
5326         platform-specific default renderer which can be retrieved by calling 
5329         return _gdi_
.RendererNative_GetGeneric(*args
, **kwargs
) 
5331     GetGeneric 
= staticmethod(GetGeneric
) 
5332     def GetDefault(*args
, **kwargs
): 
5334         GetDefault() -> RendererNative 
5336         Return the default (native) implementation for this platform -- this 
5337         is also the one used by default but this may be changed by calling `Set` 
5338         in which case the return value of this method may be different from 
5339         the return value of `Get`. 
5341         return _gdi_
.RendererNative_GetDefault(*args
, **kwargs
) 
5343     GetDefault 
= staticmethod(GetDefault
) 
5344     def Set(*args
, **kwargs
): 
5346         Set(RendererNative renderer) -> RendererNative 
5348         Set the renderer to use, passing None reverts to using the default 
5349         renderer.  Returns the previous renderer used with Set or None. 
5351         return _gdi_
.RendererNative_Set(*args
, **kwargs
) 
5353     Set 
= staticmethod(Set
) 
5354     def GetVersion(*args
, **kwargs
): 
5356         GetVersion(self) -> RendererVersion 
5358         Returns the version of the renderer.  Will be used for ensuring 
5359         compatibility of dynamically loaded renderers. 
5361         return _gdi_
.RendererNative_GetVersion(*args
, **kwargs
) 
5364 class RendererNativePtr(RendererNative
): 
5365     def __init__(self
, this
): 
5367         if not hasattr(self
,"thisown"): self
.thisown 
= 0 
5368         self
.__class
__ = RendererNative
 
5369 _gdi_
.RendererNative_swigregister(RendererNativePtr
) 
5371 def RendererNative_Get(*args
, **kwargs
): 
5373     RendererNative_Get() -> RendererNative 
5375     Return the currently used renderer 
5377     return _gdi_
.RendererNative_Get(*args
, **kwargs
) 
5379 def RendererNative_GetGeneric(*args
, **kwargs
): 
5381     RendererNative_GetGeneric() -> RendererNative 
5383     Return the generic implementation of the renderer. Under some 
5384     platforms, this is the default renderer implementation, others have 
5385     platform-specific default renderer which can be retrieved by calling 
5388     return _gdi_
.RendererNative_GetGeneric(*args
, **kwargs
) 
5390 def RendererNative_GetDefault(*args
, **kwargs
): 
5392     RendererNative_GetDefault() -> RendererNative 
5394     Return the default (native) implementation for this platform -- this 
5395     is also the one used by default but this may be changed by calling `Set` 
5396     in which case the return value of this method may be different from 
5397     the return value of `Get`. 
5399     return _gdi_
.RendererNative_GetDefault(*args
, **kwargs
) 
5401 def RendererNative_Set(*args
, **kwargs
): 
5403     RendererNative_Set(RendererNative renderer) -> RendererNative 
5405     Set the renderer to use, passing None reverts to using the default 
5406     renderer.  Returns the previous renderer used with Set or None. 
5408     return _gdi_
.RendererNative_Set(*args
, **kwargs
)