1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 class GDIObject(core
.Object
):
12 return "<%s.%s; proxy of C++ wxGDIObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
13 def __init__(self
, *args
, **kwargs
):
14 """__init__() -> GDIObject"""
15 newobj
= _gdi
.new_GDIObject(*args
, **kwargs
)
16 self
.this
= newobj
.this
19 def __del__(self
, destroy
=_gdi
.delete_GDIObject
):
22 if self
.thisown
: destroy(self
)
25 def GetVisible(*args
, **kwargs
):
26 """GetVisible() -> bool"""
27 return _gdi
.GDIObject_GetVisible(*args
, **kwargs
)
29 def SetVisible(*args
, **kwargs
):
30 """SetVisible(bool visible)"""
31 return _gdi
.GDIObject_SetVisible(*args
, **kwargs
)
33 def IsNull(*args
, **kwargs
):
34 """IsNull() -> bool"""
35 return _gdi
.GDIObject_IsNull(*args
, **kwargs
)
38 class GDIObjectPtr(GDIObject
):
39 def __init__(self
, this
):
41 if not hasattr(self
,"thisown"): self
.thisown
= 0
42 self
.__class
__ = GDIObject
43 _gdi
.GDIObject_swigregister(GDIObjectPtr
)
45 #---------------------------------------------------------------------------
47 class Colour(core
.Object
):
49 return "<%s.%s; proxy of C++ wxColour instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
50 def __init__(self
, *args
, **kwargs
):
51 """__init__(unsigned char red=0, unsigned char green=0, unsigned char blue=0) -> Colour"""
52 newobj
= _gdi
.new_Colour(*args
, **kwargs
)
53 self
.this
= newobj
.this
56 def __del__(self
, destroy
=_gdi
.delete_Colour
):
59 if self
.thisown
: destroy(self
)
62 def Red(*args
, **kwargs
):
63 """Red() -> unsigned char"""
64 return _gdi
.Colour_Red(*args
, **kwargs
)
66 def Green(*args
, **kwargs
):
67 """Green() -> unsigned char"""
68 return _gdi
.Colour_Green(*args
, **kwargs
)
70 def Blue(*args
, **kwargs
):
71 """Blue() -> unsigned char"""
72 return _gdi
.Colour_Blue(*args
, **kwargs
)
74 def Ok(*args
, **kwargs
):
76 return _gdi
.Colour_Ok(*args
, **kwargs
)
78 def Set(*args
, **kwargs
):
79 """Set(unsigned char red, unsigned char green, unsigned char blue)"""
80 return _gdi
.Colour_Set(*args
, **kwargs
)
82 def SetRGB(*args
, **kwargs
):
83 """SetRGB(unsigned long colRGB)"""
84 return _gdi
.Colour_SetRGB(*args
, **kwargs
)
86 def __eq__(*args
, **kwargs
):
87 """__eq__(Colour colour) -> bool"""
88 return _gdi
.Colour___eq__(*args
, **kwargs
)
90 def __ne__(*args
, **kwargs
):
91 """__ne__(Colour colour) -> bool"""
92 return _gdi
.Colour___ne__(*args
, **kwargs
)
94 def InitFromName(*args
, **kwargs
):
95 """InitFromName(String colourName)"""
96 return _gdi
.Colour_InitFromName(*args
, **kwargs
)
98 def Get(*args
, **kwargs
):
99 """Get() -> PyObject"""
100 return _gdi
.Colour_Get(*args
, **kwargs
)
103 def __str__(self
): return str(self
.asTuple())
104 def __repr__(self
): return 'wx.Colour' + str(self
.asTuple())
105 def __nonzero__(self
): return self
.Ok()
106 def __getinitargs__(self
): return ()
107 def __getstate__(self
): return self
.asTuple()
108 def __setstate__(self
, state
): self
.Set(*state
)
111 class ColourPtr(Colour
):
112 def __init__(self
, this
):
114 if not hasattr(self
,"thisown"): self
.thisown
= 0
115 self
.__class
__ = Colour
116 _gdi
.Colour_swigregister(ColourPtr
)
118 def NamedColour(*args
, **kwargs
):
119 """NamedColour(String colorName) -> Colour"""
120 val
= _gdi
.new_NamedColour(*args
, **kwargs
)
124 def ColourRGB(*args
, **kwargs
):
125 """ColourRGB(unsigned long colRGB) -> Colour"""
126 val
= _gdi
.new_ColourRGB(*args
, **kwargs
)
130 class Palette(GDIObject
):
132 return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
133 def __init__(self
, *args
, **kwargs
):
134 """__init__(int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette"""
135 newobj
= _gdi
.new_Palette(*args
, **kwargs
)
136 self
.this
= newobj
.this
139 def __del__(self
, destroy
=_gdi
.delete_Palette
):
142 if self
.thisown
: destroy(self
)
145 def GetPixel(*args
, **kwargs
):
146 """GetPixel(byte red, byte green, byte blue) -> int"""
147 return _gdi
.Palette_GetPixel(*args
, **kwargs
)
149 def GetRGB(*args
, **kwargs
):
150 """GetRGB(int pixel) -> (R,G,B)"""
151 return _gdi
.Palette_GetRGB(*args
, **kwargs
)
153 def Ok(*args
, **kwargs
):
155 return _gdi
.Palette_Ok(*args
, **kwargs
)
157 def __nonzero__(self
): return self
.Ok()
159 class PalettePtr(Palette
):
160 def __init__(self
, this
):
162 if not hasattr(self
,"thisown"): self
.thisown
= 0
163 self
.__class
__ = Palette
164 _gdi
.Palette_swigregister(PalettePtr
)
166 #---------------------------------------------------------------------------
168 class Pen(GDIObject
):
170 return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
171 def __init__(self
, *args
, **kwargs
):
172 """__init__(Colour colour, int width=1, int style=SOLID) -> Pen"""
173 newobj
= _gdi
.new_Pen(*args
, **kwargs
)
174 self
.this
= newobj
.this
177 def __del__(self
, destroy
=_gdi
.delete_Pen
):
180 if self
.thisown
: destroy(self
)
183 def GetCap(*args
, **kwargs
):
184 """GetCap() -> int"""
185 return _gdi
.Pen_GetCap(*args
, **kwargs
)
187 def GetColour(*args
, **kwargs
):
188 """GetColour() -> Colour"""
189 return _gdi
.Pen_GetColour(*args
, **kwargs
)
191 def GetJoin(*args
, **kwargs
):
192 """GetJoin() -> int"""
193 return _gdi
.Pen_GetJoin(*args
, **kwargs
)
195 def GetStyle(*args
, **kwargs
):
196 """GetStyle() -> int"""
197 return _gdi
.Pen_GetStyle(*args
, **kwargs
)
199 def GetWidth(*args
, **kwargs
):
200 """GetWidth() -> int"""
201 return _gdi
.Pen_GetWidth(*args
, **kwargs
)
203 def Ok(*args
, **kwargs
):
205 return _gdi
.Pen_Ok(*args
, **kwargs
)
207 def SetCap(*args
, **kwargs
):
208 """SetCap(int cap_style)"""
209 return _gdi
.Pen_SetCap(*args
, **kwargs
)
211 def SetColour(*args
, **kwargs
):
212 """SetColour(Colour colour)"""
213 return _gdi
.Pen_SetColour(*args
, **kwargs
)
215 def SetJoin(*args
, **kwargs
):
216 """SetJoin(int join_style)"""
217 return _gdi
.Pen_SetJoin(*args
, **kwargs
)
219 def SetStyle(*args
, **kwargs
):
220 """SetStyle(int style)"""
221 return _gdi
.Pen_SetStyle(*args
, **kwargs
)
223 def SetWidth(*args
, **kwargs
):
224 """SetWidth(int width)"""
225 return _gdi
.Pen_SetWidth(*args
, **kwargs
)
227 def SetDashes(*args
, **kwargs
):
228 """SetDashes(int dashes, wxDash dashes_array)"""
229 return _gdi
.Pen_SetDashes(*args
, **kwargs
)
231 def GetDashes(*args
, **kwargs
):
232 """GetDashes() -> PyObject"""
233 return _gdi
.Pen_GetDashes(*args
, **kwargs
)
235 def __nonzero__(self
): return self
.Ok()
238 def __init__(self
, this
):
240 if not hasattr(self
,"thisown"): self
.thisown
= 0
242 _gdi
.Pen_swigregister(PenPtr
)
246 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
247 def __init__(self
, *args
, **kwargs
):
248 """__init__(Colour colour, int width=1, int style=SOLID) -> PyPen"""
249 newobj
= _gdi
.new_PyPen(*args
, **kwargs
)
250 self
.this
= newobj
.this
253 def __del__(self
, destroy
=_gdi
.delete_PyPen
):
256 if self
.thisown
: destroy(self
)
259 def SetDashes(*args
, **kwargs
):
260 """SetDashes(int dashes, wxDash dashes_array)"""
261 return _gdi
.PyPen_SetDashes(*args
, **kwargs
)
264 class PyPenPtr(PyPen
):
265 def __init__(self
, this
):
267 if not hasattr(self
,"thisown"): self
.thisown
= 0
268 self
.__class
__ = PyPen
269 _gdi
.PyPen_swigregister(PyPenPtr
)
272 #---------------------------------------------------------------------------
274 class Brush(GDIObject
):
276 A brush is a drawing tool for filling in areas. It is used for painting the
277 background of rectangles, ellipses, etc. It has a colour and a style.
280 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
281 def __init__(self
, *args
, **kwargs
):
283 __init__(Colour colour, int style=SOLID) -> Brush
285 Constructs a brush from a colour object and style.
287 newobj
= _gdi
.new_Brush(*args
, **kwargs
)
288 self
.this
= newobj
.this
291 def __del__(self
, destroy
=_gdi
.delete_Brush
):
294 if self
.thisown
: destroy(self
)
297 def SetColour(*args
, **kwargs
):
298 """SetColour(Colour col)"""
299 return _gdi
.Brush_SetColour(*args
, **kwargs
)
301 def SetStyle(*args
, **kwargs
):
302 """SetStyle(int style)"""
303 return _gdi
.Brush_SetStyle(*args
, **kwargs
)
305 def SetStipple(*args
, **kwargs
):
306 """SetStipple(Bitmap stipple)"""
307 return _gdi
.Brush_SetStipple(*args
, **kwargs
)
309 def GetColour(*args
, **kwargs
):
310 """GetColour() -> Colour"""
311 return _gdi
.Brush_GetColour(*args
, **kwargs
)
313 def GetStyle(*args
, **kwargs
):
314 """GetStyle() -> int"""
315 return _gdi
.Brush_GetStyle(*args
, **kwargs
)
317 def GetStipple(*args
, **kwargs
):
318 """GetStipple() -> Bitmap"""
319 return _gdi
.Brush_GetStipple(*args
, **kwargs
)
321 def Ok(*args
, **kwargs
):
323 return _gdi
.Brush_Ok(*args
, **kwargs
)
325 def GetMacTheme(*args
, **kwargs
):
326 """GetMacTheme() -> short"""
327 return _gdi
.Brush_GetMacTheme(*args
, **kwargs
)
329 def SetMacTheme(*args
, **kwargs
):
330 """SetMacTheme(short macThemeBrush)"""
331 return _gdi
.Brush_SetMacTheme(*args
, **kwargs
)
333 def __nonzero__(self
): return self
.Ok()
335 class BrushPtr(Brush
):
336 def __init__(self
, this
):
338 if not hasattr(self
,"thisown"): self
.thisown
= 0
339 self
.__class
__ = Brush
340 _gdi
.Brush_swigregister(BrushPtr
)
342 class Bitmap(GDIObject
):
344 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
345 def __init__(self
, *args
, **kwargs
):
347 __init__(String name, int type=BITMAP_TYPE_ANY) -> Bitmap
349 Loads a bitmap from a file.
351 newobj
= _gdi
.new_Bitmap(*args
, **kwargs
)
352 self
.this
= newobj
.this
355 def __del__(self
, destroy
=_gdi
.delete_Bitmap
):
358 if self
.thisown
: destroy(self
)
361 def Ok(*args
, **kwargs
):
363 return _gdi
.Bitmap_Ok(*args
, **kwargs
)
365 def GetWidth(*args
, **kwargs
):
369 Gets the width of the bitmap in pixels.
371 return _gdi
.Bitmap_GetWidth(*args
, **kwargs
)
373 def GetHeight(*args
, **kwargs
):
377 Gets the height of the bitmap in pixels.
379 return _gdi
.Bitmap_GetHeight(*args
, **kwargs
)
381 def GetDepth(*args
, **kwargs
):
385 Gets the colour depth of the bitmap. A value of 1 indicates a
388 return _gdi
.Bitmap_GetDepth(*args
, **kwargs
)
390 def ConvertToImage(*args
, **kwargs
):
392 ConvertToImage() -> Image
394 Creates a platform-independent image from a platform-dependent bitmap. This
395 preserves mask information so that bitmaps and images can be converted back
396 and forth without loss in that respect.
398 return _gdi
.Bitmap_ConvertToImage(*args
, **kwargs
)
400 def GetMask(*args
, **kwargs
):
404 Gets the associated mask (if any) which may have been loaded from a file
405 or explpicitly set for the bitmap.
407 return _gdi
.Bitmap_GetMask(*args
, **kwargs
)
409 def SetMask(*args
, **kwargs
):
413 Sets the mask for this bitmap.
415 return _gdi
.Bitmap_SetMask(*args
, **kwargs
)
417 def SetMaskColour(*args
, **kwargs
):
419 SetMaskColour(Colour colour)
421 Create a Mask based on a specified colour in the Bitmap.
423 return _gdi
.Bitmap_SetMaskColour(*args
, **kwargs
)
425 def GetSubBitmap(*args
, **kwargs
):
427 GetSubBitmap(Rect rect) -> Bitmap
429 Returns a sub bitmap of the current one as long as the rect belongs entirely
430 to the bitmap. This function preserves bit depth and mask information.
432 return _gdi
.Bitmap_GetSubBitmap(*args
, **kwargs
)
434 def SaveFile(*args
, **kwargs
):
436 SaveFile(String name, int type, Palette palette=(wxPalette *) NULL) -> bool
438 Saves a bitmap in the named file.
440 return _gdi
.Bitmap_SaveFile(*args
, **kwargs
)
442 def LoadFile(*args
, **kwargs
):
444 LoadFile(String name, int type) -> bool
446 Loads a bitmap from a file
448 return _gdi
.Bitmap_LoadFile(*args
, **kwargs
)
450 def CopyFromIcon(*args
, **kwargs
):
451 """CopyFromIcon(Icon icon) -> bool"""
452 return _gdi
.Bitmap_CopyFromIcon(*args
, **kwargs
)
454 def SetHeight(*args
, **kwargs
):
456 SetHeight(int height)
458 Set the height property (does not affect the bitmap data).
460 return _gdi
.Bitmap_SetHeight(*args
, **kwargs
)
462 def SetWidth(*args
, **kwargs
):
466 Set the width property (does not affect the bitmap data).
468 return _gdi
.Bitmap_SetWidth(*args
, **kwargs
)
470 def SetDepth(*args
, **kwargs
):
474 Set the depth property (does not affect the bitmap data).
476 return _gdi
.Bitmap_SetDepth(*args
, **kwargs
)
478 def __nonzero__(self
): return self
.Ok()
480 class BitmapPtr(Bitmap
):
481 def __init__(self
, this
):
483 if not hasattr(self
,"thisown"): self
.thisown
= 0
484 self
.__class
__ = Bitmap
485 _gdi
.Bitmap_swigregister(BitmapPtr
)
487 def EmptyBitmap(*args
, **kwargs
):
489 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
491 Creates a new bitmap of the given size. A depth of -1 indicates the depth of
492 the current screen or visual. Some platforms only support 1 for monochrome and
493 -1 for the current colour setting.
495 val
= _gdi
.new_EmptyBitmap(*args
, **kwargs
)
499 def BitmapFromIcon(*args
, **kwargs
):
501 BitmapFromIcon(Icon icon) -> Bitmap
503 Create a new bitmap from an Icon object.
505 val
= _gdi
.new_BitmapFromIcon(*args
, **kwargs
)
509 def BitmapFromImage(*args
, **kwargs
):
511 BitmapFromImage(Image image, int depth=-1) -> Bitmap
513 Creates bitmap object from the image. This has to be done to actually display
514 an image as you cannot draw an image directly on a window. The resulting
515 bitmap will use the provided colour depth (or that of the current system if
516 depth is -1) which entails that a colour reduction has to take place.
518 val
= _gdi
.new_BitmapFromImage(*args
, **kwargs
)
522 def BitmapFromXPMData(*args
, **kwargs
):
524 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
526 Construct a Bitmap from a list of strings formatted as XPM data.
528 val
= _gdi
.new_BitmapFromXPMData(*args
, **kwargs
)
532 def BitmapFromBits(*args
, **kwargs
):
534 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
536 Creates a bitmap from an array of bits. You should only use this function for
537 monochrome bitmaps (depth 1) in portable programs: in this case the bits
538 parameter should contain an XBM image. For other bit depths, the behaviour is
541 val
= _gdi
.new_BitmapFromBits(*args
, **kwargs
)
545 class Mask(core
.Object
):
547 This class encapsulates a monochrome mask bitmap, where the masked area is
548 black and the unmasked area is white. When associated with a bitmap and drawn
549 in a device context, the unmasked area of the bitmap will be drawn, and the
550 masked area will not be drawn.
553 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
554 def __init__(self
, *args
, **kwargs
):
556 __init__(Bitmap bitmap) -> Mask
558 Constructs a mask from a monochrome bitmap.
560 newobj
= _gdi
.new_Mask(*args
, **kwargs
)
561 self
.this
= newobj
.this
566 def __init__(self
, this
):
568 if not hasattr(self
,"thisown"): self
.thisown
= 0
569 self
.__class
__ = Mask
570 _gdi
.Mask_swigregister(MaskPtr
)
572 def MaskColour(*args
, **kwargs
):
574 MaskColour(Bitmap bitmap, Colour colour) -> Mask
576 Constructs a mask from a bitmap and a colour in that bitmap that indicates the
579 val
= _gdi
.new_MaskColour(*args
, **kwargs
)
583 class Icon(GDIObject
):
585 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
586 def __init__(self
, *args
, **kwargs
):
587 """__init__(String name, long flags, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
588 newobj
= _gdi
.new_Icon(*args
, **kwargs
)
589 self
.this
= newobj
.this
592 def __del__(self
, destroy
=_gdi
.delete_Icon
):
595 if self
.thisown
: destroy(self
)
598 def Ok(*args
, **kwargs
):
600 return _gdi
.Icon_Ok(*args
, **kwargs
)
602 def GetWidth(*args
, **kwargs
):
603 """GetWidth() -> int"""
604 return _gdi
.Icon_GetWidth(*args
, **kwargs
)
606 def GetHeight(*args
, **kwargs
):
607 """GetHeight() -> int"""
608 return _gdi
.Icon_GetHeight(*args
, **kwargs
)
610 def GetDepth(*args
, **kwargs
):
611 """GetDepth() -> int"""
612 return _gdi
.Icon_GetDepth(*args
, **kwargs
)
614 def SetWidth(*args
, **kwargs
):
615 """SetWidth(int w)"""
616 return _gdi
.Icon_SetWidth(*args
, **kwargs
)
618 def SetHeight(*args
, **kwargs
):
619 """SetHeight(int h)"""
620 return _gdi
.Icon_SetHeight(*args
, **kwargs
)
622 def SetDepth(*args
, **kwargs
):
623 """SetDepth(int d)"""
624 return _gdi
.Icon_SetDepth(*args
, **kwargs
)
626 def CopyFromBitmap(*args
, **kwargs
):
627 """CopyFromBitmap(Bitmap bmp)"""
628 return _gdi
.Icon_CopyFromBitmap(*args
, **kwargs
)
630 def __nonzero__(self
): return self
.Ok()
633 def __init__(self
, this
):
635 if not hasattr(self
,"thisown"): self
.thisown
= 0
636 self
.__class
__ = Icon
637 _gdi
.Icon_swigregister(IconPtr
)
639 def EmptyIcon(*args
, **kwargs
):
640 """EmptyIcon() -> Icon"""
641 val
= _gdi
.new_EmptyIcon(*args
, **kwargs
)
645 def IconFromLocation(*args
, **kwargs
):
646 """IconFromLocation(IconLocation loc) -> Icon"""
647 val
= _gdi
.new_IconFromLocation(*args
, **kwargs
)
651 def IconFromBitmap(*args
, **kwargs
):
652 """IconFromBitmap(Bitmap bmp) -> Icon"""
653 val
= _gdi
.new_IconFromBitmap(*args
, **kwargs
)
657 def IconFromXPMData(*args
, **kwargs
):
658 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
659 val
= _gdi
.new_IconFromXPMData(*args
, **kwargs
)
663 class IconLocation(object):
665 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
666 def __init__(self
, *args
, **kwargs
):
667 """__init__(String filename=&wxPyEmptyString, int num=0) -> IconLocation"""
668 newobj
= _gdi
.new_IconLocation(*args
, **kwargs
)
669 self
.this
= newobj
.this
672 def __del__(self
, destroy
=_gdi
.delete_IconLocation
):
675 if self
.thisown
: destroy(self
)
678 def IsOk(*args
, **kwargs
):
680 return _gdi
.IconLocation_IsOk(*args
, **kwargs
)
682 def __nonzero__(self
): return self
.Ok()
683 def SetFileName(*args
, **kwargs
):
684 """SetFileName(String filename)"""
685 return _gdi
.IconLocation_SetFileName(*args
, **kwargs
)
687 def GetFileName(*args
, **kwargs
):
688 """GetFileName() -> String"""
689 return _gdi
.IconLocation_GetFileName(*args
, **kwargs
)
691 def SetIndex(*args
, **kwargs
):
692 """SetIndex(int num)"""
693 return _gdi
.IconLocation_SetIndex(*args
, **kwargs
)
695 def GetIndex(*args
, **kwargs
):
696 """GetIndex() -> int"""
697 return _gdi
.IconLocation_GetIndex(*args
, **kwargs
)
700 class IconLocationPtr(IconLocation
):
701 def __init__(self
, this
):
703 if not hasattr(self
,"thisown"): self
.thisown
= 0
704 self
.__class
__ = IconLocation
705 _gdi
.IconLocation_swigregister(IconLocationPtr
)
707 class IconBundle(object):
709 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
710 def __init__(self
, *args
, **kwargs
):
711 """__init__() -> IconBundle"""
712 newobj
= _gdi
.new_IconBundle(*args
, **kwargs
)
713 self
.this
= newobj
.this
716 def __del__(self
, destroy
=_gdi
.delete_IconBundle
):
719 if self
.thisown
: destroy(self
)
722 def AddIcon(*args
, **kwargs
):
723 """AddIcon(Icon icon)"""
724 return _gdi
.IconBundle_AddIcon(*args
, **kwargs
)
726 def AddIconFromFile(*args
, **kwargs
):
727 """AddIconFromFile(String file, long type)"""
728 return _gdi
.IconBundle_AddIconFromFile(*args
, **kwargs
)
730 def GetIcon(*args
, **kwargs
):
731 """GetIcon(Size size) -> Icon"""
732 return _gdi
.IconBundle_GetIcon(*args
, **kwargs
)
735 class IconBundlePtr(IconBundle
):
736 def __init__(self
, this
):
738 if not hasattr(self
,"thisown"): self
.thisown
= 0
739 self
.__class
__ = IconBundle
740 _gdi
.IconBundle_swigregister(IconBundlePtr
)
742 def IconBundleFromFile(*args
, **kwargs
):
743 """IconBundleFromFile(String file, long type) -> IconBundle"""
744 val
= _gdi
.new_IconBundleFromFile(*args
, **kwargs
)
748 def IconBundleFromIcon(*args
, **kwargs
):
749 """IconBundleFromIcon(Icon icon) -> IconBundle"""
750 val
= _gdi
.new_IconBundleFromIcon(*args
, **kwargs
)
754 class Cursor(GDIObject
):
756 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
757 def __init__(self
, *args
, **kwargs
):
758 """__init__(String cursorName, long flags, int hotSpotX=0, int hotSpotY=0) -> Cursor"""
759 newobj
= _gdi
.new_Cursor(*args
, **kwargs
)
760 self
.this
= newobj
.this
763 def __del__(self
, destroy
=_gdi
.delete_Cursor
):
766 if self
.thisown
: destroy(self
)
769 def Ok(*args
, **kwargs
):
771 return _gdi
.Cursor_Ok(*args
, **kwargs
)
773 def __nonzero__(self
): return self
.Ok()
775 class CursorPtr(Cursor
):
776 def __init__(self
, this
):
778 if not hasattr(self
,"thisown"): self
.thisown
= 0
779 self
.__class
__ = Cursor
780 _gdi
.Cursor_swigregister(CursorPtr
)
782 def StockCursor(*args
, **kwargs
):
783 """StockCursor(int id) -> Cursor"""
784 val
= _gdi
.new_StockCursor(*args
, **kwargs
)
788 def CursorFromImage(*args
, **kwargs
):
789 """CursorFromImage(Image image) -> Cursor"""
790 val
= _gdi
.new_CursorFromImage(*args
, **kwargs
)
794 def CursorFromBits(*args
, **kwargs
):
796 CursorFromBits(PyObject bits, int width, int height, int hotSpotX=-1,
797 int hotSpotY=-1, PyObject maskBits=0) -> Cursor
799 val
= _gdi
.new_CursorFromBits(*args
, **kwargs
)
803 #---------------------------------------------------------------------------
805 OutRegion
= _gdi
.OutRegion
806 PartRegion
= _gdi
.PartRegion
807 InRegion
= _gdi
.InRegion
808 class Region(GDIObject
):
810 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
811 def __init__(self
, *args
, **kwargs
):
812 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
813 newobj
= _gdi
.new_Region(*args
, **kwargs
)
814 self
.this
= newobj
.this
817 def __del__(self
, destroy
=_gdi
.delete_Region
):
820 if self
.thisown
: destroy(self
)
823 def Clear(*args
, **kwargs
):
825 return _gdi
.Region_Clear(*args
, **kwargs
)
827 def Contains(*args
, **kwargs
):
828 """Contains(int x, int y) -> int"""
829 return _gdi
.Region_Contains(*args
, **kwargs
)
831 def ContainsPoint(*args
, **kwargs
):
832 """ContainsPoint(Point pt) -> int"""
833 return _gdi
.Region_ContainsPoint(*args
, **kwargs
)
835 def ContainsRect(*args
, **kwargs
):
836 """ContainsRect(Rect rect) -> int"""
837 return _gdi
.Region_ContainsRect(*args
, **kwargs
)
839 def ContainsRectDim(*args
, **kwargs
):
840 """ContainsRectDim(int x, int y, int w, int h) -> int"""
841 return _gdi
.Region_ContainsRectDim(*args
, **kwargs
)
843 def GetBox(*args
, **kwargs
):
844 """GetBox() -> Rect"""
845 return _gdi
.Region_GetBox(*args
, **kwargs
)
847 def Intersect(*args
, **kwargs
):
848 """Intersect(int x, int y, int width, int height) -> bool"""
849 return _gdi
.Region_Intersect(*args
, **kwargs
)
851 def IntersectRect(*args
, **kwargs
):
852 """IntersectRect(Rect rect) -> bool"""
853 return _gdi
.Region_IntersectRect(*args
, **kwargs
)
855 def IntersectRegion(*args
, **kwargs
):
856 """IntersectRegion(Region region) -> bool"""
857 return _gdi
.Region_IntersectRegion(*args
, **kwargs
)
859 def IsEmpty(*args
, **kwargs
):
860 """IsEmpty() -> bool"""
861 return _gdi
.Region_IsEmpty(*args
, **kwargs
)
863 def Union(*args
, **kwargs
):
864 """Union(int x, int y, int width, int height) -> bool"""
865 return _gdi
.Region_Union(*args
, **kwargs
)
867 def UnionRect(*args
, **kwargs
):
868 """UnionRect(Rect rect) -> bool"""
869 return _gdi
.Region_UnionRect(*args
, **kwargs
)
871 def UnionRegion(*args
, **kwargs
):
872 """UnionRegion(Region region) -> bool"""
873 return _gdi
.Region_UnionRegion(*args
, **kwargs
)
875 def Subtract(*args
, **kwargs
):
876 """Subtract(int x, int y, int width, int height) -> bool"""
877 return _gdi
.Region_Subtract(*args
, **kwargs
)
879 def SubtractRect(*args
, **kwargs
):
880 """SubtractRect(Rect rect) -> bool"""
881 return _gdi
.Region_SubtractRect(*args
, **kwargs
)
883 def SubtractRegion(*args
, **kwargs
):
884 """SubtractRegion(Region region) -> bool"""
885 return _gdi
.Region_SubtractRegion(*args
, **kwargs
)
887 def Xor(*args
, **kwargs
):
888 """Xor(int x, int y, int width, int height) -> bool"""
889 return _gdi
.Region_Xor(*args
, **kwargs
)
891 def XorRect(*args
, **kwargs
):
892 """XorRect(Rect rect) -> bool"""
893 return _gdi
.Region_XorRect(*args
, **kwargs
)
895 def XorRegion(*args
, **kwargs
):
896 """XorRegion(Region region) -> bool"""
897 return _gdi
.Region_XorRegion(*args
, **kwargs
)
899 def ConvertToBitmap(*args
, **kwargs
):
900 """ConvertToBitmap() -> Bitmap"""
901 return _gdi
.Region_ConvertToBitmap(*args
, **kwargs
)
903 def UnionBitmap(*args
, **kwargs
):
904 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
905 return _gdi
.Region_UnionBitmap(*args
, **kwargs
)
908 class RegionPtr(Region
):
909 def __init__(self
, this
):
911 if not hasattr(self
,"thisown"): self
.thisown
= 0
912 self
.__class
__ = Region
913 _gdi
.Region_swigregister(RegionPtr
)
915 def RegionFromBitmap(*args
, **kwargs
):
916 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
917 val
= _gdi
.new_RegionFromBitmap(*args
, **kwargs
)
921 def RegionFromPoints(*args
, **kwargs
):
922 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
923 val
= _gdi
.new_RegionFromPoints(*args
, **kwargs
)
927 class RegionIterator(core
.Object
):
929 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
930 def __init__(self
, *args
, **kwargs
):
931 """__init__(Region region) -> RegionIterator"""
932 newobj
= _gdi
.new_RegionIterator(*args
, **kwargs
)
933 self
.this
= newobj
.this
936 def __del__(self
, destroy
=_gdi
.delete_RegionIterator
):
939 if self
.thisown
: destroy(self
)
942 def GetX(*args
, **kwargs
):
944 return _gdi
.RegionIterator_GetX(*args
, **kwargs
)
946 def GetY(*args
, **kwargs
):
948 return _gdi
.RegionIterator_GetY(*args
, **kwargs
)
950 def GetW(*args
, **kwargs
):
952 return _gdi
.RegionIterator_GetW(*args
, **kwargs
)
954 def GetWidth(*args
, **kwargs
):
955 """GetWidth() -> int"""
956 return _gdi
.RegionIterator_GetWidth(*args
, **kwargs
)
958 def GetH(*args
, **kwargs
):
960 return _gdi
.RegionIterator_GetH(*args
, **kwargs
)
962 def GetHeight(*args
, **kwargs
):
963 """GetHeight() -> int"""
964 return _gdi
.RegionIterator_GetHeight(*args
, **kwargs
)
966 def GetRect(*args
, **kwargs
):
967 """GetRect() -> Rect"""
968 return _gdi
.RegionIterator_GetRect(*args
, **kwargs
)
970 def HaveRects(*args
, **kwargs
):
971 """HaveRects() -> bool"""
972 return _gdi
.RegionIterator_HaveRects(*args
, **kwargs
)
974 def Reset(*args
, **kwargs
):
976 return _gdi
.RegionIterator_Reset(*args
, **kwargs
)
978 def Next(*args
, **kwargs
):
980 return _gdi
.RegionIterator_Next(*args
, **kwargs
)
982 def __nonzero__(*args
, **kwargs
):
983 """__nonzero__() -> bool"""
984 return _gdi
.RegionIterator___nonzero__(*args
, **kwargs
)
987 class RegionIteratorPtr(RegionIterator
):
988 def __init__(self
, this
):
990 if not hasattr(self
,"thisown"): self
.thisown
= 0
991 self
.__class
__ = RegionIterator
992 _gdi
.RegionIterator_swigregister(RegionIteratorPtr
)
994 #---------------------------------------------------------------------------
996 FONTFAMILY_DEFAULT
= _gdi
.FONTFAMILY_DEFAULT
997 FONTFAMILY_DECORATIVE
= _gdi
.FONTFAMILY_DECORATIVE
998 FONTFAMILY_ROMAN
= _gdi
.FONTFAMILY_ROMAN
999 FONTFAMILY_SCRIPT
= _gdi
.FONTFAMILY_SCRIPT
1000 FONTFAMILY_SWISS
= _gdi
.FONTFAMILY_SWISS
1001 FONTFAMILY_MODERN
= _gdi
.FONTFAMILY_MODERN
1002 FONTFAMILY_TELETYPE
= _gdi
.FONTFAMILY_TELETYPE
1003 FONTFAMILY_MAX
= _gdi
.FONTFAMILY_MAX
1004 FONTFAMILY_UNKNOWN
= _gdi
.FONTFAMILY_UNKNOWN
1005 FONTSTYLE_NORMAL
= _gdi
.FONTSTYLE_NORMAL
1006 FONTSTYLE_ITALIC
= _gdi
.FONTSTYLE_ITALIC
1007 FONTSTYLE_SLANT
= _gdi
.FONTSTYLE_SLANT
1008 FONTSTYLE_MAX
= _gdi
.FONTSTYLE_MAX
1009 FONTWEIGHT_NORMAL
= _gdi
.FONTWEIGHT_NORMAL
1010 FONTWEIGHT_LIGHT
= _gdi
.FONTWEIGHT_LIGHT
1011 FONTWEIGHT_BOLD
= _gdi
.FONTWEIGHT_BOLD
1012 FONTWEIGHT_MAX
= _gdi
.FONTWEIGHT_MAX
1013 FONTFLAG_DEFAULT
= _gdi
.FONTFLAG_DEFAULT
1014 FONTFLAG_ITALIC
= _gdi
.FONTFLAG_ITALIC
1015 FONTFLAG_SLANT
= _gdi
.FONTFLAG_SLANT
1016 FONTFLAG_LIGHT
= _gdi
.FONTFLAG_LIGHT
1017 FONTFLAG_BOLD
= _gdi
.FONTFLAG_BOLD
1018 FONTFLAG_ANTIALIASED
= _gdi
.FONTFLAG_ANTIALIASED
1019 FONTFLAG_NOT_ANTIALIASED
= _gdi
.FONTFLAG_NOT_ANTIALIASED
1020 FONTFLAG_UNDERLINED
= _gdi
.FONTFLAG_UNDERLINED
1021 FONTFLAG_STRIKETHROUGH
= _gdi
.FONTFLAG_STRIKETHROUGH
1022 FONTFLAG_MASK
= _gdi
.FONTFLAG_MASK
1023 FONTENCODING_SYSTEM
= _gdi
.FONTENCODING_SYSTEM
1024 FONTENCODING_DEFAULT
= _gdi
.FONTENCODING_DEFAULT
1025 FONTENCODING_ISO8859_1
= _gdi
.FONTENCODING_ISO8859_1
1026 FONTENCODING_ISO8859_2
= _gdi
.FONTENCODING_ISO8859_2
1027 FONTENCODING_ISO8859_3
= _gdi
.FONTENCODING_ISO8859_3
1028 FONTENCODING_ISO8859_4
= _gdi
.FONTENCODING_ISO8859_4
1029 FONTENCODING_ISO8859_5
= _gdi
.FONTENCODING_ISO8859_5
1030 FONTENCODING_ISO8859_6
= _gdi
.FONTENCODING_ISO8859_6
1031 FONTENCODING_ISO8859_7
= _gdi
.FONTENCODING_ISO8859_7
1032 FONTENCODING_ISO8859_8
= _gdi
.FONTENCODING_ISO8859_8
1033 FONTENCODING_ISO8859_9
= _gdi
.FONTENCODING_ISO8859_9
1034 FONTENCODING_ISO8859_10
= _gdi
.FONTENCODING_ISO8859_10
1035 FONTENCODING_ISO8859_11
= _gdi
.FONTENCODING_ISO8859_11
1036 FONTENCODING_ISO8859_12
= _gdi
.FONTENCODING_ISO8859_12
1037 FONTENCODING_ISO8859_13
= _gdi
.FONTENCODING_ISO8859_13
1038 FONTENCODING_ISO8859_14
= _gdi
.FONTENCODING_ISO8859_14
1039 FONTENCODING_ISO8859_15
= _gdi
.FONTENCODING_ISO8859_15
1040 FONTENCODING_ISO8859_MAX
= _gdi
.FONTENCODING_ISO8859_MAX
1041 FONTENCODING_KOI8
= _gdi
.FONTENCODING_KOI8
1042 FONTENCODING_ALTERNATIVE
= _gdi
.FONTENCODING_ALTERNATIVE
1043 FONTENCODING_BULGARIAN
= _gdi
.FONTENCODING_BULGARIAN
1044 FONTENCODING_CP437
= _gdi
.FONTENCODING_CP437
1045 FONTENCODING_CP850
= _gdi
.FONTENCODING_CP850
1046 FONTENCODING_CP852
= _gdi
.FONTENCODING_CP852
1047 FONTENCODING_CP855
= _gdi
.FONTENCODING_CP855
1048 FONTENCODING_CP866
= _gdi
.FONTENCODING_CP866
1049 FONTENCODING_CP874
= _gdi
.FONTENCODING_CP874
1050 FONTENCODING_CP932
= _gdi
.FONTENCODING_CP932
1051 FONTENCODING_CP936
= _gdi
.FONTENCODING_CP936
1052 FONTENCODING_CP949
= _gdi
.FONTENCODING_CP949
1053 FONTENCODING_CP950
= _gdi
.FONTENCODING_CP950
1054 FONTENCODING_CP1250
= _gdi
.FONTENCODING_CP1250
1055 FONTENCODING_CP1251
= _gdi
.FONTENCODING_CP1251
1056 FONTENCODING_CP1252
= _gdi
.FONTENCODING_CP1252
1057 FONTENCODING_CP1253
= _gdi
.FONTENCODING_CP1253
1058 FONTENCODING_CP1254
= _gdi
.FONTENCODING_CP1254
1059 FONTENCODING_CP1255
= _gdi
.FONTENCODING_CP1255
1060 FONTENCODING_CP1256
= _gdi
.FONTENCODING_CP1256
1061 FONTENCODING_CP1257
= _gdi
.FONTENCODING_CP1257
1062 FONTENCODING_CP12_MAX
= _gdi
.FONTENCODING_CP12_MAX
1063 FONTENCODING_UTF7
= _gdi
.FONTENCODING_UTF7
1064 FONTENCODING_UTF8
= _gdi
.FONTENCODING_UTF8
1065 FONTENCODING_EUC_JP
= _gdi
.FONTENCODING_EUC_JP
1066 FONTENCODING_UTF16BE
= _gdi
.FONTENCODING_UTF16BE
1067 FONTENCODING_UTF16LE
= _gdi
.FONTENCODING_UTF16LE
1068 FONTENCODING_UTF32BE
= _gdi
.FONTENCODING_UTF32BE
1069 FONTENCODING_UTF32LE
= _gdi
.FONTENCODING_UTF32LE
1070 FONTENCODING_MAX
= _gdi
.FONTENCODING_MAX
1071 FONTENCODING_UTF16
= _gdi
.FONTENCODING_UTF16
1072 FONTENCODING_UTF32
= _gdi
.FONTENCODING_UTF32
1073 FONTENCODING_UNICODE
= _gdi
.FONTENCODING_UNICODE
1074 FONTENCODING_GB2312
= _gdi
.FONTENCODING_GB2312
1075 FONTENCODING_BIG5
= _gdi
.FONTENCODING_BIG5
1076 FONTENCODING_SHIFT_JIS
= _gdi
.FONTENCODING_SHIFT_JIS
1077 #---------------------------------------------------------------------------
1079 class NativeFontInfo(object):
1081 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1082 def __init__(self
, *args
, **kwargs
):
1083 """__init__() -> NativeFontInfo"""
1084 newobj
= _gdi
.new_NativeFontInfo(*args
, **kwargs
)
1085 self
.this
= newobj
.this
1088 def __del__(self
, destroy
=_gdi
.delete_NativeFontInfo
):
1091 if self
.thisown
: destroy(self
)
1094 def Init(*args
, **kwargs
):
1096 return _gdi
.NativeFontInfo_Init(*args
, **kwargs
)
1098 def InitFromFont(*args
, **kwargs
):
1099 """InitFromFont(Font font)"""
1100 return _gdi
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1102 def GetPointSize(*args
, **kwargs
):
1103 """GetPointSize() -> int"""
1104 return _gdi
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1106 def GetStyle(*args
, **kwargs
):
1107 """GetStyle() -> int"""
1108 return _gdi
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1110 def GetWeight(*args
, **kwargs
):
1111 """GetWeight() -> int"""
1112 return _gdi
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1114 def GetUnderlined(*args
, **kwargs
):
1115 """GetUnderlined() -> bool"""
1116 return _gdi
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1118 def GetFaceName(*args
, **kwargs
):
1119 """GetFaceName() -> String"""
1120 return _gdi
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1122 def GetFamily(*args
, **kwargs
):
1123 """GetFamily() -> int"""
1124 return _gdi
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1126 def GetEncoding(*args
, **kwargs
):
1127 """GetEncoding() -> int"""
1128 return _gdi
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1130 def SetPointSize(*args
, **kwargs
):
1131 """SetPointSize(int pointsize)"""
1132 return _gdi
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1134 def SetStyle(*args
, **kwargs
):
1135 """SetStyle(int style)"""
1136 return _gdi
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1138 def SetWeight(*args
, **kwargs
):
1139 """SetWeight(int weight)"""
1140 return _gdi
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1142 def SetUnderlined(*args
, **kwargs
):
1143 """SetUnderlined(bool underlined)"""
1144 return _gdi
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1146 def SetFaceName(*args
, **kwargs
):
1147 """SetFaceName(String facename)"""
1148 return _gdi
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1150 def SetFamily(*args
, **kwargs
):
1151 """SetFamily(int family)"""
1152 return _gdi
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1154 def SetEncoding(*args
, **kwargs
):
1155 """SetEncoding(int encoding)"""
1156 return _gdi
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1158 def FromString(*args
, **kwargs
):
1159 """FromString(String s) -> bool"""
1160 return _gdi
.NativeFontInfo_FromString(*args
, **kwargs
)
1162 def ToString(*args
, **kwargs
):
1163 """ToString() -> String"""
1164 return _gdi
.NativeFontInfo_ToString(*args
, **kwargs
)
1166 def __str__(*args
, **kwargs
):
1167 """__str__() -> String"""
1168 return _gdi
.NativeFontInfo___str__(*args
, **kwargs
)
1170 def FromUserString(*args
, **kwargs
):
1171 """FromUserString(String s) -> bool"""
1172 return _gdi
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1174 def ToUserString(*args
, **kwargs
):
1175 """ToUserString() -> String"""
1176 return _gdi
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1179 class NativeFontInfoPtr(NativeFontInfo
):
1180 def __init__(self
, this
):
1182 if not hasattr(self
,"thisown"): self
.thisown
= 0
1183 self
.__class
__ = NativeFontInfo
1184 _gdi
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1186 class NativeEncodingInfo(object):
1188 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1189 facename
= property(_gdi
.NativeEncodingInfo_facename_get
, _gdi
.NativeEncodingInfo_facename_set
)
1190 encoding
= property(_gdi
.NativeEncodingInfo_encoding_get
, _gdi
.NativeEncodingInfo_encoding_set
)
1191 def __init__(self
, *args
, **kwargs
):
1192 """__init__() -> NativeEncodingInfo"""
1193 newobj
= _gdi
.new_NativeEncodingInfo(*args
, **kwargs
)
1194 self
.this
= newobj
.this
1197 def __del__(self
, destroy
=_gdi
.delete_NativeEncodingInfo
):
1200 if self
.thisown
: destroy(self
)
1203 def FromString(*args
, **kwargs
):
1204 """FromString(String s) -> bool"""
1205 return _gdi
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1207 def ToString(*args
, **kwargs
):
1208 """ToString() -> String"""
1209 return _gdi
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1212 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1213 def __init__(self
, this
):
1215 if not hasattr(self
,"thisown"): self
.thisown
= 0
1216 self
.__class
__ = NativeEncodingInfo
1217 _gdi
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1220 def GetNativeFontEncoding(*args
, **kwargs
):
1221 """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo"""
1222 return _gdi
.GetNativeFontEncoding(*args
, **kwargs
)
1224 def TestFontEncoding(*args
, **kwargs
):
1225 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1226 return _gdi
.TestFontEncoding(*args
, **kwargs
)
1227 #---------------------------------------------------------------------------
1229 class FontMapper(object):
1231 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1232 def __init__(self
, *args
, **kwargs
):
1233 """__init__() -> FontMapper"""
1234 newobj
= _gdi
.new_FontMapper(*args
, **kwargs
)
1235 self
.this
= newobj
.this
1238 def __del__(self
, destroy
=_gdi
.delete_FontMapper
):
1241 if self
.thisown
: destroy(self
)
1244 def Get(*args
, **kwargs
):
1245 """FontMapper.Get() -> FontMapper"""
1246 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1248 Get
= staticmethod(Get
)
1249 def Set(*args
, **kwargs
):
1250 """FontMapper.Set(FontMapper mapper) -> FontMapper"""
1251 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1253 Set
= staticmethod(Set
)
1254 def CharsetToEncoding(*args
, **kwargs
):
1255 """CharsetToEncoding(String charset, bool interactive=True) -> int"""
1256 return _gdi
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1258 def GetSupportedEncodingsCount(*args
, **kwargs
):
1259 """FontMapper.GetSupportedEncodingsCount() -> size_t"""
1260 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1262 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1263 def GetEncoding(*args
, **kwargs
):
1264 """FontMapper.GetEncoding(size_t n) -> int"""
1265 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1267 GetEncoding
= staticmethod(GetEncoding
)
1268 def GetEncodingName(*args
, **kwargs
):
1269 """FontMapper.GetEncodingName(int encoding) -> String"""
1270 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1272 GetEncodingName
= staticmethod(GetEncodingName
)
1273 def GetEncodingDescription(*args
, **kwargs
):
1274 """FontMapper.GetEncodingDescription(int encoding) -> String"""
1275 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1277 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1278 def SetConfig(*args
, **kwargs
):
1279 """SetConfig(ConfigBase config)"""
1280 return _gdi
.FontMapper_SetConfig(*args
, **kwargs
)
1282 def SetConfigPath(*args
, **kwargs
):
1283 """SetConfigPath(String prefix)"""
1284 return _gdi
.FontMapper_SetConfigPath(*args
, **kwargs
)
1286 def GetDefaultConfigPath(*args
, **kwargs
):
1287 """FontMapper.GetDefaultConfigPath() -> String"""
1288 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1290 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1291 def GetAltForEncoding(*args
, **kwargs
):
1292 """GetAltForEncoding(int encoding, String facename=EmptyString, bool interactive=True) -> PyObject"""
1293 return _gdi
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1295 def IsEncodingAvailable(*args
, **kwargs
):
1296 """IsEncodingAvailable(int encoding, String facename=EmptyString) -> bool"""
1297 return _gdi
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1299 def SetDialogParent(*args
, **kwargs
):
1300 """SetDialogParent(Window parent)"""
1301 return _gdi
.FontMapper_SetDialogParent(*args
, **kwargs
)
1303 def SetDialogTitle(*args
, **kwargs
):
1304 """SetDialogTitle(String title)"""
1305 return _gdi
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1308 class FontMapperPtr(FontMapper
):
1309 def __init__(self
, this
):
1311 if not hasattr(self
,"thisown"): self
.thisown
= 0
1312 self
.__class
__ = FontMapper
1313 _gdi
.FontMapper_swigregister(FontMapperPtr
)
1315 def FontMapper_Get(*args
, **kwargs
):
1316 """FontMapper_Get() -> FontMapper"""
1317 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1319 def FontMapper_Set(*args
, **kwargs
):
1320 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1321 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1323 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1324 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1325 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1327 def FontMapper_GetEncoding(*args
, **kwargs
):
1328 """FontMapper_GetEncoding(size_t n) -> int"""
1329 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1331 def FontMapper_GetEncodingName(*args
, **kwargs
):
1332 """FontMapper_GetEncodingName(int encoding) -> String"""
1333 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1335 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1336 """FontMapper_GetEncodingDescription(int encoding) -> String"""
1337 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1339 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1340 """FontMapper_GetDefaultConfigPath() -> String"""
1341 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1343 #---------------------------------------------------------------------------
1345 class Font(GDIObject
):
1347 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1348 def __init__(self
, *args
, **kwargs
):
1350 __init__(int pointSize, int family, int style, int weight, bool underline=False,
1351 String face=EmptyString,
1352 int encoding=FONTENCODING_DEFAULT) -> Font
1354 newobj
= _gdi
.new_Font(*args
, **kwargs
)
1355 self
.this
= newobj
.this
1358 def __del__(self
, destroy
=_gdi
.delete_Font
):
1361 if self
.thisown
: destroy(self
)
1364 def Ok(*args
, **kwargs
):
1366 return _gdi
.Font_Ok(*args
, **kwargs
)
1368 def __nonzero__(self
): return self
.Ok()
1369 def __eq__(*args
, **kwargs
):
1370 """__eq__(Font font) -> bool"""
1371 return _gdi
.Font___eq__(*args
, **kwargs
)
1373 def __ne__(*args
, **kwargs
):
1374 """__ne__(Font font) -> bool"""
1375 return _gdi
.Font___ne__(*args
, **kwargs
)
1377 def GetPointSize(*args
, **kwargs
):
1378 """GetPointSize() -> int"""
1379 return _gdi
.Font_GetPointSize(*args
, **kwargs
)
1381 def GetFamily(*args
, **kwargs
):
1382 """GetFamily() -> int"""
1383 return _gdi
.Font_GetFamily(*args
, **kwargs
)
1385 def GetStyle(*args
, **kwargs
):
1386 """GetStyle() -> int"""
1387 return _gdi
.Font_GetStyle(*args
, **kwargs
)
1389 def GetWeight(*args
, **kwargs
):
1390 """GetWeight() -> int"""
1391 return _gdi
.Font_GetWeight(*args
, **kwargs
)
1393 def GetUnderlined(*args
, **kwargs
):
1394 """GetUnderlined() -> bool"""
1395 return _gdi
.Font_GetUnderlined(*args
, **kwargs
)
1397 def GetFaceName(*args
, **kwargs
):
1398 """GetFaceName() -> String"""
1399 return _gdi
.Font_GetFaceName(*args
, **kwargs
)
1401 def GetEncoding(*args
, **kwargs
):
1402 """GetEncoding() -> int"""
1403 return _gdi
.Font_GetEncoding(*args
, **kwargs
)
1405 def GetNativeFontInfo(*args
, **kwargs
):
1406 """GetNativeFontInfo() -> NativeFontInfo"""
1407 return _gdi
.Font_GetNativeFontInfo(*args
, **kwargs
)
1409 def IsFixedWidth(*args
, **kwargs
):
1410 """IsFixedWidth() -> bool"""
1411 return _gdi
.Font_IsFixedWidth(*args
, **kwargs
)
1413 def GetNativeFontInfoDesc(*args
, **kwargs
):
1414 """GetNativeFontInfoDesc() -> String"""
1415 return _gdi
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1417 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1418 """GetNativeFontInfoUserDesc() -> String"""
1419 return _gdi
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1421 def SetPointSize(*args
, **kwargs
):
1422 """SetPointSize(int pointSize)"""
1423 return _gdi
.Font_SetPointSize(*args
, **kwargs
)
1425 def SetFamily(*args
, **kwargs
):
1426 """SetFamily(int family)"""
1427 return _gdi
.Font_SetFamily(*args
, **kwargs
)
1429 def SetStyle(*args
, **kwargs
):
1430 """SetStyle(int style)"""
1431 return _gdi
.Font_SetStyle(*args
, **kwargs
)
1433 def SetWeight(*args
, **kwargs
):
1434 """SetWeight(int weight)"""
1435 return _gdi
.Font_SetWeight(*args
, **kwargs
)
1437 def SetFaceName(*args
, **kwargs
):
1438 """SetFaceName(String faceName)"""
1439 return _gdi
.Font_SetFaceName(*args
, **kwargs
)
1441 def SetUnderlined(*args
, **kwargs
):
1442 """SetUnderlined(bool underlined)"""
1443 return _gdi
.Font_SetUnderlined(*args
, **kwargs
)
1445 def SetEncoding(*args
, **kwargs
):
1446 """SetEncoding(int encoding)"""
1447 return _gdi
.Font_SetEncoding(*args
, **kwargs
)
1449 def SetNativeFontInfo(*args
, **kwargs
):
1450 """SetNativeFontInfo(NativeFontInfo info)"""
1451 return _gdi
.Font_SetNativeFontInfo(*args
, **kwargs
)
1453 def SetNativeFontInfoFromString(*args
, **kwargs
):
1454 """SetNativeFontInfoFromString(String info)"""
1455 return _gdi
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1457 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1458 """SetNativeFontInfoUserDesc(String info)"""
1459 return _gdi
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1461 def GetFamilyString(*args
, **kwargs
):
1462 """GetFamilyString() -> String"""
1463 return _gdi
.Font_GetFamilyString(*args
, **kwargs
)
1465 def GetStyleString(*args
, **kwargs
):
1466 """GetStyleString() -> String"""
1467 return _gdi
.Font_GetStyleString(*args
, **kwargs
)
1469 def GetWeightString(*args
, **kwargs
):
1470 """GetWeightString() -> String"""
1471 return _gdi
.Font_GetWeightString(*args
, **kwargs
)
1473 def SetNoAntiAliasing(*args
, **kwargs
):
1474 """SetNoAntiAliasing(bool no=True)"""
1475 return _gdi
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1477 def GetNoAntiAliasing(*args
, **kwargs
):
1478 """GetNoAntiAliasing() -> bool"""
1479 return _gdi
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1481 def GetDefaultEncoding(*args
, **kwargs
):
1482 """Font.GetDefaultEncoding() -> int"""
1483 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1485 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1486 def SetDefaultEncoding(*args
, **kwargs
):
1487 """Font.SetDefaultEncoding(int encoding)"""
1488 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1490 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1492 class FontPtr(Font
):
1493 def __init__(self
, this
):
1495 if not hasattr(self
,"thisown"): self
.thisown
= 0
1496 self
.__class
__ = Font
1497 _gdi
.Font_swigregister(FontPtr
)
1499 def FontFromNativeInfo(*args
, **kwargs
):
1500 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1501 val
= _gdi
.new_FontFromNativeInfo(*args
, **kwargs
)
1505 def FontFromNativeInfoString(*args
, **kwargs
):
1506 """FontFromNativeInfoString(String info) -> Font"""
1507 val
= _gdi
.new_FontFromNativeInfoString(*args
, **kwargs
)
1511 def Font2(*args
, **kwargs
):
1513 Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT,
1514 String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font
1516 val
= _gdi
.new_Font2(*args
, **kwargs
)
1520 def Font_GetDefaultEncoding(*args
, **kwargs
):
1521 """Font_GetDefaultEncoding() -> int"""
1522 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1524 def Font_SetDefaultEncoding(*args
, **kwargs
):
1525 """Font_SetDefaultEncoding(int encoding)"""
1526 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1528 #---------------------------------------------------------------------------
1530 class FontEnumerator(object):
1532 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1533 def __init__(self
, *args
, **kwargs
):
1534 """__init__() -> FontEnumerator"""
1535 newobj
= _gdi
.new_FontEnumerator(*args
, **kwargs
)
1536 self
.this
= newobj
.this
1539 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1541 def __del__(self
, destroy
=_gdi
.delete_FontEnumerator
):
1544 if self
.thisown
: destroy(self
)
1547 def _setCallbackInfo(*args
, **kwargs
):
1548 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1549 return _gdi
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1551 def EnumerateFacenames(*args
, **kwargs
):
1552 """EnumerateFacenames(int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1553 return _gdi
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1555 def EnumerateEncodings(*args
, **kwargs
):
1556 """EnumerateEncodings(String facename=EmptyString) -> bool"""
1557 return _gdi
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1559 def GetEncodings(*args
, **kwargs
):
1560 """GetEncodings() -> PyObject"""
1561 return _gdi
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1563 def GetFacenames(*args
, **kwargs
):
1564 """GetFacenames() -> PyObject"""
1565 return _gdi
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1568 class FontEnumeratorPtr(FontEnumerator
):
1569 def __init__(self
, this
):
1571 if not hasattr(self
,"thisown"): self
.thisown
= 0
1572 self
.__class
__ = FontEnumerator
1573 _gdi
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1575 #---------------------------------------------------------------------------
1577 LANGUAGE_DEFAULT
= _gdi
.LANGUAGE_DEFAULT
1578 LANGUAGE_UNKNOWN
= _gdi
.LANGUAGE_UNKNOWN
1579 LANGUAGE_ABKHAZIAN
= _gdi
.LANGUAGE_ABKHAZIAN
1580 LANGUAGE_AFAR
= _gdi
.LANGUAGE_AFAR
1581 LANGUAGE_AFRIKAANS
= _gdi
.LANGUAGE_AFRIKAANS
1582 LANGUAGE_ALBANIAN
= _gdi
.LANGUAGE_ALBANIAN
1583 LANGUAGE_AMHARIC
= _gdi
.LANGUAGE_AMHARIC
1584 LANGUAGE_ARABIC
= _gdi
.LANGUAGE_ARABIC
1585 LANGUAGE_ARABIC_ALGERIA
= _gdi
.LANGUAGE_ARABIC_ALGERIA
1586 LANGUAGE_ARABIC_BAHRAIN
= _gdi
.LANGUAGE_ARABIC_BAHRAIN
1587 LANGUAGE_ARABIC_EGYPT
= _gdi
.LANGUAGE_ARABIC_EGYPT
1588 LANGUAGE_ARABIC_IRAQ
= _gdi
.LANGUAGE_ARABIC_IRAQ
1589 LANGUAGE_ARABIC_JORDAN
= _gdi
.LANGUAGE_ARABIC_JORDAN
1590 LANGUAGE_ARABIC_KUWAIT
= _gdi
.LANGUAGE_ARABIC_KUWAIT
1591 LANGUAGE_ARABIC_LEBANON
= _gdi
.LANGUAGE_ARABIC_LEBANON
1592 LANGUAGE_ARABIC_LIBYA
= _gdi
.LANGUAGE_ARABIC_LIBYA
1593 LANGUAGE_ARABIC_MOROCCO
= _gdi
.LANGUAGE_ARABIC_MOROCCO
1594 LANGUAGE_ARABIC_OMAN
= _gdi
.LANGUAGE_ARABIC_OMAN
1595 LANGUAGE_ARABIC_QATAR
= _gdi
.LANGUAGE_ARABIC_QATAR
1596 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi
.LANGUAGE_ARABIC_SAUDI_ARABIA
1597 LANGUAGE_ARABIC_SUDAN
= _gdi
.LANGUAGE_ARABIC_SUDAN
1598 LANGUAGE_ARABIC_SYRIA
= _gdi
.LANGUAGE_ARABIC_SYRIA
1599 LANGUAGE_ARABIC_TUNISIA
= _gdi
.LANGUAGE_ARABIC_TUNISIA
1600 LANGUAGE_ARABIC_UAE
= _gdi
.LANGUAGE_ARABIC_UAE
1601 LANGUAGE_ARABIC_YEMEN
= _gdi
.LANGUAGE_ARABIC_YEMEN
1602 LANGUAGE_ARMENIAN
= _gdi
.LANGUAGE_ARMENIAN
1603 LANGUAGE_ASSAMESE
= _gdi
.LANGUAGE_ASSAMESE
1604 LANGUAGE_AYMARA
= _gdi
.LANGUAGE_AYMARA
1605 LANGUAGE_AZERI
= _gdi
.LANGUAGE_AZERI
1606 LANGUAGE_AZERI_CYRILLIC
= _gdi
.LANGUAGE_AZERI_CYRILLIC
1607 LANGUAGE_AZERI_LATIN
= _gdi
.LANGUAGE_AZERI_LATIN
1608 LANGUAGE_BASHKIR
= _gdi
.LANGUAGE_BASHKIR
1609 LANGUAGE_BASQUE
= _gdi
.LANGUAGE_BASQUE
1610 LANGUAGE_BELARUSIAN
= _gdi
.LANGUAGE_BELARUSIAN
1611 LANGUAGE_BENGALI
= _gdi
.LANGUAGE_BENGALI
1612 LANGUAGE_BHUTANI
= _gdi
.LANGUAGE_BHUTANI
1613 LANGUAGE_BIHARI
= _gdi
.LANGUAGE_BIHARI
1614 LANGUAGE_BISLAMA
= _gdi
.LANGUAGE_BISLAMA
1615 LANGUAGE_BRETON
= _gdi
.LANGUAGE_BRETON
1616 LANGUAGE_BULGARIAN
= _gdi
.LANGUAGE_BULGARIAN
1617 LANGUAGE_BURMESE
= _gdi
.LANGUAGE_BURMESE
1618 LANGUAGE_CAMBODIAN
= _gdi
.LANGUAGE_CAMBODIAN
1619 LANGUAGE_CATALAN
= _gdi
.LANGUAGE_CATALAN
1620 LANGUAGE_CHINESE
= _gdi
.LANGUAGE_CHINESE
1621 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi
.LANGUAGE_CHINESE_SIMPLIFIED
1622 LANGUAGE_CHINESE_TRADITIONAL
= _gdi
.LANGUAGE_CHINESE_TRADITIONAL
1623 LANGUAGE_CHINESE_HONGKONG
= _gdi
.LANGUAGE_CHINESE_HONGKONG
1624 LANGUAGE_CHINESE_MACAU
= _gdi
.LANGUAGE_CHINESE_MACAU
1625 LANGUAGE_CHINESE_SINGAPORE
= _gdi
.LANGUAGE_CHINESE_SINGAPORE
1626 LANGUAGE_CHINESE_TAIWAN
= _gdi
.LANGUAGE_CHINESE_TAIWAN
1627 LANGUAGE_CORSICAN
= _gdi
.LANGUAGE_CORSICAN
1628 LANGUAGE_CROATIAN
= _gdi
.LANGUAGE_CROATIAN
1629 LANGUAGE_CZECH
= _gdi
.LANGUAGE_CZECH
1630 LANGUAGE_DANISH
= _gdi
.LANGUAGE_DANISH
1631 LANGUAGE_DUTCH
= _gdi
.LANGUAGE_DUTCH
1632 LANGUAGE_DUTCH_BELGIAN
= _gdi
.LANGUAGE_DUTCH_BELGIAN
1633 LANGUAGE_ENGLISH
= _gdi
.LANGUAGE_ENGLISH
1634 LANGUAGE_ENGLISH_UK
= _gdi
.LANGUAGE_ENGLISH_UK
1635 LANGUAGE_ENGLISH_US
= _gdi
.LANGUAGE_ENGLISH_US
1636 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi
.LANGUAGE_ENGLISH_AUSTRALIA
1637 LANGUAGE_ENGLISH_BELIZE
= _gdi
.LANGUAGE_ENGLISH_BELIZE
1638 LANGUAGE_ENGLISH_BOTSWANA
= _gdi
.LANGUAGE_ENGLISH_BOTSWANA
1639 LANGUAGE_ENGLISH_CANADA
= _gdi
.LANGUAGE_ENGLISH_CANADA
1640 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi
.LANGUAGE_ENGLISH_CARIBBEAN
1641 LANGUAGE_ENGLISH_DENMARK
= _gdi
.LANGUAGE_ENGLISH_DENMARK
1642 LANGUAGE_ENGLISH_EIRE
= _gdi
.LANGUAGE_ENGLISH_EIRE
1643 LANGUAGE_ENGLISH_JAMAICA
= _gdi
.LANGUAGE_ENGLISH_JAMAICA
1644 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi
.LANGUAGE_ENGLISH_NEW_ZEALAND
1645 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi
.LANGUAGE_ENGLISH_PHILIPPINES
1646 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1647 LANGUAGE_ENGLISH_TRINIDAD
= _gdi
.LANGUAGE_ENGLISH_TRINIDAD
1648 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi
.LANGUAGE_ENGLISH_ZIMBABWE
1649 LANGUAGE_ESPERANTO
= _gdi
.LANGUAGE_ESPERANTO
1650 LANGUAGE_ESTONIAN
= _gdi
.LANGUAGE_ESTONIAN
1651 LANGUAGE_FAEROESE
= _gdi
.LANGUAGE_FAEROESE
1652 LANGUAGE_FARSI
= _gdi
.LANGUAGE_FARSI
1653 LANGUAGE_FIJI
= _gdi
.LANGUAGE_FIJI
1654 LANGUAGE_FINNISH
= _gdi
.LANGUAGE_FINNISH
1655 LANGUAGE_FRENCH
= _gdi
.LANGUAGE_FRENCH
1656 LANGUAGE_FRENCH_BELGIAN
= _gdi
.LANGUAGE_FRENCH_BELGIAN
1657 LANGUAGE_FRENCH_CANADIAN
= _gdi
.LANGUAGE_FRENCH_CANADIAN
1658 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi
.LANGUAGE_FRENCH_LUXEMBOURG
1659 LANGUAGE_FRENCH_MONACO
= _gdi
.LANGUAGE_FRENCH_MONACO
1660 LANGUAGE_FRENCH_SWISS
= _gdi
.LANGUAGE_FRENCH_SWISS
1661 LANGUAGE_FRISIAN
= _gdi
.LANGUAGE_FRISIAN
1662 LANGUAGE_GALICIAN
= _gdi
.LANGUAGE_GALICIAN
1663 LANGUAGE_GEORGIAN
= _gdi
.LANGUAGE_GEORGIAN
1664 LANGUAGE_GERMAN
= _gdi
.LANGUAGE_GERMAN
1665 LANGUAGE_GERMAN_AUSTRIAN
= _gdi
.LANGUAGE_GERMAN_AUSTRIAN
1666 LANGUAGE_GERMAN_BELGIUM
= _gdi
.LANGUAGE_GERMAN_BELGIUM
1667 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi
.LANGUAGE_GERMAN_LIECHTENSTEIN
1668 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi
.LANGUAGE_GERMAN_LUXEMBOURG
1669 LANGUAGE_GERMAN_SWISS
= _gdi
.LANGUAGE_GERMAN_SWISS
1670 LANGUAGE_GREEK
= _gdi
.LANGUAGE_GREEK
1671 LANGUAGE_GREENLANDIC
= _gdi
.LANGUAGE_GREENLANDIC
1672 LANGUAGE_GUARANI
= _gdi
.LANGUAGE_GUARANI
1673 LANGUAGE_GUJARATI
= _gdi
.LANGUAGE_GUJARATI
1674 LANGUAGE_HAUSA
= _gdi
.LANGUAGE_HAUSA
1675 LANGUAGE_HEBREW
= _gdi
.LANGUAGE_HEBREW
1676 LANGUAGE_HINDI
= _gdi
.LANGUAGE_HINDI
1677 LANGUAGE_HUNGARIAN
= _gdi
.LANGUAGE_HUNGARIAN
1678 LANGUAGE_ICELANDIC
= _gdi
.LANGUAGE_ICELANDIC
1679 LANGUAGE_INDONESIAN
= _gdi
.LANGUAGE_INDONESIAN
1680 LANGUAGE_INTERLINGUA
= _gdi
.LANGUAGE_INTERLINGUA
1681 LANGUAGE_INTERLINGUE
= _gdi
.LANGUAGE_INTERLINGUE
1682 LANGUAGE_INUKTITUT
= _gdi
.LANGUAGE_INUKTITUT
1683 LANGUAGE_INUPIAK
= _gdi
.LANGUAGE_INUPIAK
1684 LANGUAGE_IRISH
= _gdi
.LANGUAGE_IRISH
1685 LANGUAGE_ITALIAN
= _gdi
.LANGUAGE_ITALIAN
1686 LANGUAGE_ITALIAN_SWISS
= _gdi
.LANGUAGE_ITALIAN_SWISS
1687 LANGUAGE_JAPANESE
= _gdi
.LANGUAGE_JAPANESE
1688 LANGUAGE_JAVANESE
= _gdi
.LANGUAGE_JAVANESE
1689 LANGUAGE_KANNADA
= _gdi
.LANGUAGE_KANNADA
1690 LANGUAGE_KASHMIRI
= _gdi
.LANGUAGE_KASHMIRI
1691 LANGUAGE_KASHMIRI_INDIA
= _gdi
.LANGUAGE_KASHMIRI_INDIA
1692 LANGUAGE_KAZAKH
= _gdi
.LANGUAGE_KAZAKH
1693 LANGUAGE_KERNEWEK
= _gdi
.LANGUAGE_KERNEWEK
1694 LANGUAGE_KINYARWANDA
= _gdi
.LANGUAGE_KINYARWANDA
1695 LANGUAGE_KIRGHIZ
= _gdi
.LANGUAGE_KIRGHIZ
1696 LANGUAGE_KIRUNDI
= _gdi
.LANGUAGE_KIRUNDI
1697 LANGUAGE_KONKANI
= _gdi
.LANGUAGE_KONKANI
1698 LANGUAGE_KOREAN
= _gdi
.LANGUAGE_KOREAN
1699 LANGUAGE_KURDISH
= _gdi
.LANGUAGE_KURDISH
1700 LANGUAGE_LAOTHIAN
= _gdi
.LANGUAGE_LAOTHIAN
1701 LANGUAGE_LATIN
= _gdi
.LANGUAGE_LATIN
1702 LANGUAGE_LATVIAN
= _gdi
.LANGUAGE_LATVIAN
1703 LANGUAGE_LINGALA
= _gdi
.LANGUAGE_LINGALA
1704 LANGUAGE_LITHUANIAN
= _gdi
.LANGUAGE_LITHUANIAN
1705 LANGUAGE_MACEDONIAN
= _gdi
.LANGUAGE_MACEDONIAN
1706 LANGUAGE_MALAGASY
= _gdi
.LANGUAGE_MALAGASY
1707 LANGUAGE_MALAY
= _gdi
.LANGUAGE_MALAY
1708 LANGUAGE_MALAYALAM
= _gdi
.LANGUAGE_MALAYALAM
1709 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1710 LANGUAGE_MALAY_MALAYSIA
= _gdi
.LANGUAGE_MALAY_MALAYSIA
1711 LANGUAGE_MALTESE
= _gdi
.LANGUAGE_MALTESE
1712 LANGUAGE_MANIPURI
= _gdi
.LANGUAGE_MANIPURI
1713 LANGUAGE_MAORI
= _gdi
.LANGUAGE_MAORI
1714 LANGUAGE_MARATHI
= _gdi
.LANGUAGE_MARATHI
1715 LANGUAGE_MOLDAVIAN
= _gdi
.LANGUAGE_MOLDAVIAN
1716 LANGUAGE_MONGOLIAN
= _gdi
.LANGUAGE_MONGOLIAN
1717 LANGUAGE_NAURU
= _gdi
.LANGUAGE_NAURU
1718 LANGUAGE_NEPALI
= _gdi
.LANGUAGE_NEPALI
1719 LANGUAGE_NEPALI_INDIA
= _gdi
.LANGUAGE_NEPALI_INDIA
1720 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi
.LANGUAGE_NORWEGIAN_BOKMAL
1721 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi
.LANGUAGE_NORWEGIAN_NYNORSK
1722 LANGUAGE_OCCITAN
= _gdi
.LANGUAGE_OCCITAN
1723 LANGUAGE_ORIYA
= _gdi
.LANGUAGE_ORIYA
1724 LANGUAGE_OROMO
= _gdi
.LANGUAGE_OROMO
1725 LANGUAGE_PASHTO
= _gdi
.LANGUAGE_PASHTO
1726 LANGUAGE_POLISH
= _gdi
.LANGUAGE_POLISH
1727 LANGUAGE_PORTUGUESE
= _gdi
.LANGUAGE_PORTUGUESE
1728 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi
.LANGUAGE_PORTUGUESE_BRAZILIAN
1729 LANGUAGE_PUNJABI
= _gdi
.LANGUAGE_PUNJABI
1730 LANGUAGE_QUECHUA
= _gdi
.LANGUAGE_QUECHUA
1731 LANGUAGE_RHAETO_ROMANCE
= _gdi
.LANGUAGE_RHAETO_ROMANCE
1732 LANGUAGE_ROMANIAN
= _gdi
.LANGUAGE_ROMANIAN
1733 LANGUAGE_RUSSIAN
= _gdi
.LANGUAGE_RUSSIAN
1734 LANGUAGE_RUSSIAN_UKRAINE
= _gdi
.LANGUAGE_RUSSIAN_UKRAINE
1735 LANGUAGE_SAMOAN
= _gdi
.LANGUAGE_SAMOAN
1736 LANGUAGE_SANGHO
= _gdi
.LANGUAGE_SANGHO
1737 LANGUAGE_SANSKRIT
= _gdi
.LANGUAGE_SANSKRIT
1738 LANGUAGE_SCOTS_GAELIC
= _gdi
.LANGUAGE_SCOTS_GAELIC
1739 LANGUAGE_SERBIAN
= _gdi
.LANGUAGE_SERBIAN
1740 LANGUAGE_SERBIAN_CYRILLIC
= _gdi
.LANGUAGE_SERBIAN_CYRILLIC
1741 LANGUAGE_SERBIAN_LATIN
= _gdi
.LANGUAGE_SERBIAN_LATIN
1742 LANGUAGE_SERBO_CROATIAN
= _gdi
.LANGUAGE_SERBO_CROATIAN
1743 LANGUAGE_SESOTHO
= _gdi
.LANGUAGE_SESOTHO
1744 LANGUAGE_SETSWANA
= _gdi
.LANGUAGE_SETSWANA
1745 LANGUAGE_SHONA
= _gdi
.LANGUAGE_SHONA
1746 LANGUAGE_SINDHI
= _gdi
.LANGUAGE_SINDHI
1747 LANGUAGE_SINHALESE
= _gdi
.LANGUAGE_SINHALESE
1748 LANGUAGE_SISWATI
= _gdi
.LANGUAGE_SISWATI
1749 LANGUAGE_SLOVAK
= _gdi
.LANGUAGE_SLOVAK
1750 LANGUAGE_SLOVENIAN
= _gdi
.LANGUAGE_SLOVENIAN
1751 LANGUAGE_SOMALI
= _gdi
.LANGUAGE_SOMALI
1752 LANGUAGE_SPANISH
= _gdi
.LANGUAGE_SPANISH
1753 LANGUAGE_SPANISH_ARGENTINA
= _gdi
.LANGUAGE_SPANISH_ARGENTINA
1754 LANGUAGE_SPANISH_BOLIVIA
= _gdi
.LANGUAGE_SPANISH_BOLIVIA
1755 LANGUAGE_SPANISH_CHILE
= _gdi
.LANGUAGE_SPANISH_CHILE
1756 LANGUAGE_SPANISH_COLOMBIA
= _gdi
.LANGUAGE_SPANISH_COLOMBIA
1757 LANGUAGE_SPANISH_COSTA_RICA
= _gdi
.LANGUAGE_SPANISH_COSTA_RICA
1758 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
1759 LANGUAGE_SPANISH_ECUADOR
= _gdi
.LANGUAGE_SPANISH_ECUADOR
1760 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi
.LANGUAGE_SPANISH_EL_SALVADOR
1761 LANGUAGE_SPANISH_GUATEMALA
= _gdi
.LANGUAGE_SPANISH_GUATEMALA
1762 LANGUAGE_SPANISH_HONDURAS
= _gdi
.LANGUAGE_SPANISH_HONDURAS
1763 LANGUAGE_SPANISH_MEXICAN
= _gdi
.LANGUAGE_SPANISH_MEXICAN
1764 LANGUAGE_SPANISH_MODERN
= _gdi
.LANGUAGE_SPANISH_MODERN
1765 LANGUAGE_SPANISH_NICARAGUA
= _gdi
.LANGUAGE_SPANISH_NICARAGUA
1766 LANGUAGE_SPANISH_PANAMA
= _gdi
.LANGUAGE_SPANISH_PANAMA
1767 LANGUAGE_SPANISH_PARAGUAY
= _gdi
.LANGUAGE_SPANISH_PARAGUAY
1768 LANGUAGE_SPANISH_PERU
= _gdi
.LANGUAGE_SPANISH_PERU
1769 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi
.LANGUAGE_SPANISH_PUERTO_RICO
1770 LANGUAGE_SPANISH_URUGUAY
= _gdi
.LANGUAGE_SPANISH_URUGUAY
1771 LANGUAGE_SPANISH_US
= _gdi
.LANGUAGE_SPANISH_US
1772 LANGUAGE_SPANISH_VENEZUELA
= _gdi
.LANGUAGE_SPANISH_VENEZUELA
1773 LANGUAGE_SUNDANESE
= _gdi
.LANGUAGE_SUNDANESE
1774 LANGUAGE_SWAHILI
= _gdi
.LANGUAGE_SWAHILI
1775 LANGUAGE_SWEDISH
= _gdi
.LANGUAGE_SWEDISH
1776 LANGUAGE_SWEDISH_FINLAND
= _gdi
.LANGUAGE_SWEDISH_FINLAND
1777 LANGUAGE_TAGALOG
= _gdi
.LANGUAGE_TAGALOG
1778 LANGUAGE_TAJIK
= _gdi
.LANGUAGE_TAJIK
1779 LANGUAGE_TAMIL
= _gdi
.LANGUAGE_TAMIL
1780 LANGUAGE_TATAR
= _gdi
.LANGUAGE_TATAR
1781 LANGUAGE_TELUGU
= _gdi
.LANGUAGE_TELUGU
1782 LANGUAGE_THAI
= _gdi
.LANGUAGE_THAI
1783 LANGUAGE_TIBETAN
= _gdi
.LANGUAGE_TIBETAN
1784 LANGUAGE_TIGRINYA
= _gdi
.LANGUAGE_TIGRINYA
1785 LANGUAGE_TONGA
= _gdi
.LANGUAGE_TONGA
1786 LANGUAGE_TSONGA
= _gdi
.LANGUAGE_TSONGA
1787 LANGUAGE_TURKISH
= _gdi
.LANGUAGE_TURKISH
1788 LANGUAGE_TURKMEN
= _gdi
.LANGUAGE_TURKMEN
1789 LANGUAGE_TWI
= _gdi
.LANGUAGE_TWI
1790 LANGUAGE_UIGHUR
= _gdi
.LANGUAGE_UIGHUR
1791 LANGUAGE_UKRAINIAN
= _gdi
.LANGUAGE_UKRAINIAN
1792 LANGUAGE_URDU
= _gdi
.LANGUAGE_URDU
1793 LANGUAGE_URDU_INDIA
= _gdi
.LANGUAGE_URDU_INDIA
1794 LANGUAGE_URDU_PAKISTAN
= _gdi
.LANGUAGE_URDU_PAKISTAN
1795 LANGUAGE_UZBEK
= _gdi
.LANGUAGE_UZBEK
1796 LANGUAGE_UZBEK_CYRILLIC
= _gdi
.LANGUAGE_UZBEK_CYRILLIC
1797 LANGUAGE_UZBEK_LATIN
= _gdi
.LANGUAGE_UZBEK_LATIN
1798 LANGUAGE_VIETNAMESE
= _gdi
.LANGUAGE_VIETNAMESE
1799 LANGUAGE_VOLAPUK
= _gdi
.LANGUAGE_VOLAPUK
1800 LANGUAGE_WELSH
= _gdi
.LANGUAGE_WELSH
1801 LANGUAGE_WOLOF
= _gdi
.LANGUAGE_WOLOF
1802 LANGUAGE_XHOSA
= _gdi
.LANGUAGE_XHOSA
1803 LANGUAGE_YIDDISH
= _gdi
.LANGUAGE_YIDDISH
1804 LANGUAGE_YORUBA
= _gdi
.LANGUAGE_YORUBA
1805 LANGUAGE_ZHUANG
= _gdi
.LANGUAGE_ZHUANG
1806 LANGUAGE_ZULU
= _gdi
.LANGUAGE_ZULU
1807 LANGUAGE_USER_DEFINED
= _gdi
.LANGUAGE_USER_DEFINED
1808 class LanguageInfo(object):
1809 def __init__(self
): raise RuntimeError, "No constructor defined"
1811 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1812 Language
= property(_gdi
.LanguageInfo_Language_get
, _gdi
.LanguageInfo_Language_set
)
1813 CanonicalName
= property(_gdi
.LanguageInfo_CanonicalName_get
, _gdi
.LanguageInfo_CanonicalName_set
)
1814 Description
= property(_gdi
.LanguageInfo_Description_get
, _gdi
.LanguageInfo_Description_set
)
1816 class LanguageInfoPtr(LanguageInfo
):
1817 def __init__(self
, this
):
1819 if not hasattr(self
,"thisown"): self
.thisown
= 0
1820 self
.__class
__ = LanguageInfo
1821 _gdi
.LanguageInfo_swigregister(LanguageInfoPtr
)
1823 LOCALE_CAT_NUMBER
= _gdi
.LOCALE_CAT_NUMBER
1824 LOCALE_CAT_DATE
= _gdi
.LOCALE_CAT_DATE
1825 LOCALE_CAT_MONEY
= _gdi
.LOCALE_CAT_MONEY
1826 LOCALE_CAT_MAX
= _gdi
.LOCALE_CAT_MAX
1827 LOCALE_THOUSANDS_SEP
= _gdi
.LOCALE_THOUSANDS_SEP
1828 LOCALE_DECIMAL_POINT
= _gdi
.LOCALE_DECIMAL_POINT
1829 LOCALE_LOAD_DEFAULT
= _gdi
.LOCALE_LOAD_DEFAULT
1830 LOCALE_CONV_ENCODING
= _gdi
.LOCALE_CONV_ENCODING
1831 class Locale(object):
1833 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1834 def __init__(self
, *args
, **kwargs
):
1835 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
1836 newobj
= _gdi
.new_Locale(*args
, **kwargs
)
1837 self
.this
= newobj
.this
1840 def __del__(self
, destroy
=_gdi
.delete_Locale
):
1843 if self
.thisown
: destroy(self
)
1846 def Init1(*args
, **kwargs
):
1848 Init1(String szName, String szShort=EmptyString, String szLocale=EmptyString,
1849 bool bLoadDefault=True,
1850 bool bConvertEncoding=False) -> bool
1852 return _gdi
.Locale_Init1(*args
, **kwargs
)
1854 def Init2(*args
, **kwargs
):
1855 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
1856 return _gdi
.Locale_Init2(*args
, **kwargs
)
1858 def Init(self
, *_args
, **_kwargs
):
1859 if type(_args
[0]) in [type(''), type(u
'')]:
1860 val
= self
.Init1(*_args
, **_kwargs
)
1862 val
= self
.Init2(*_args
, **_kwargs
)
1865 def GetSystemLanguage(*args
, **kwargs
):
1866 """Locale.GetSystemLanguage() -> int"""
1867 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1869 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
1870 def GetSystemEncoding(*args
, **kwargs
):
1871 """Locale.GetSystemEncoding() -> int"""
1872 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1874 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
1875 def GetSystemEncodingName(*args
, **kwargs
):
1876 """Locale.GetSystemEncodingName() -> String"""
1877 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1879 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
1880 def IsOk(*args
, **kwargs
):
1881 """IsOk() -> bool"""
1882 return _gdi
.Locale_IsOk(*args
, **kwargs
)
1884 def __nonzero__(self
): return self
.IsOk()
1885 def GetLocale(*args
, **kwargs
):
1886 """GetLocale() -> String"""
1887 return _gdi
.Locale_GetLocale(*args
, **kwargs
)
1889 def GetLanguage(*args
, **kwargs
):
1890 """GetLanguage() -> int"""
1891 return _gdi
.Locale_GetLanguage(*args
, **kwargs
)
1893 def GetSysName(*args
, **kwargs
):
1894 """GetSysName() -> String"""
1895 return _gdi
.Locale_GetSysName(*args
, **kwargs
)
1897 def GetCanonicalName(*args
, **kwargs
):
1898 """GetCanonicalName() -> String"""
1899 return _gdi
.Locale_GetCanonicalName(*args
, **kwargs
)
1901 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
1902 """Locale.AddCatalogLookupPathPrefix(String prefix)"""
1903 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1905 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
1906 def AddCatalog(*args
, **kwargs
):
1907 """AddCatalog(String szDomain) -> bool"""
1908 return _gdi
.Locale_AddCatalog(*args
, **kwargs
)
1910 def IsLoaded(*args
, **kwargs
):
1911 """IsLoaded(String szDomain) -> bool"""
1912 return _gdi
.Locale_IsLoaded(*args
, **kwargs
)
1914 def GetLanguageInfo(*args
, **kwargs
):
1915 """Locale.GetLanguageInfo(int lang) -> LanguageInfo"""
1916 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1918 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
1919 def GetLanguageName(*args
, **kwargs
):
1920 """Locale.GetLanguageName(int lang) -> String"""
1921 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1923 GetLanguageName
= staticmethod(GetLanguageName
)
1924 def FindLanguageInfo(*args
, **kwargs
):
1925 """Locale.FindLanguageInfo(String locale) -> LanguageInfo"""
1926 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1928 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
1929 def AddLanguage(*args
, **kwargs
):
1930 """Locale.AddLanguage(LanguageInfo info)"""
1931 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1933 AddLanguage
= staticmethod(AddLanguage
)
1934 def GetString(*args
, **kwargs
):
1935 """GetString(String szOrigString, String szDomain=EmptyString) -> String"""
1936 return _gdi
.Locale_GetString(*args
, **kwargs
)
1938 def GetName(*args
, **kwargs
):
1939 """GetName() -> String"""
1940 return _gdi
.Locale_GetName(*args
, **kwargs
)
1943 class LocalePtr(Locale
):
1944 def __init__(self
, this
):
1946 if not hasattr(self
,"thisown"): self
.thisown
= 0
1947 self
.__class
__ = Locale
1948 _gdi
.Locale_swigregister(LocalePtr
)
1950 def Locale_GetSystemLanguage(*args
, **kwargs
):
1951 """Locale_GetSystemLanguage() -> int"""
1952 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1954 def Locale_GetSystemEncoding(*args
, **kwargs
):
1955 """Locale_GetSystemEncoding() -> int"""
1956 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1958 def Locale_GetSystemEncodingName(*args
, **kwargs
):
1959 """Locale_GetSystemEncodingName() -> String"""
1960 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1962 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
1963 """Locale_AddCatalogLookupPathPrefix(String prefix)"""
1964 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1966 def Locale_GetLanguageInfo(*args
, **kwargs
):
1967 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
1968 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1970 def Locale_GetLanguageName(*args
, **kwargs
):
1971 """Locale_GetLanguageName(int lang) -> String"""
1972 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1974 def Locale_FindLanguageInfo(*args
, **kwargs
):
1975 """Locale_FindLanguageInfo(String locale) -> LanguageInfo"""
1976 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1978 def Locale_AddLanguage(*args
, **kwargs
):
1979 """Locale_AddLanguage(LanguageInfo info)"""
1980 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1983 def GetLocale(*args
, **kwargs
):
1984 """GetLocale() -> Locale"""
1985 return _gdi
.GetLocale(*args
, **kwargs
)
1986 #---------------------------------------------------------------------------
1988 CONVERT_STRICT
= _gdi
.CONVERT_STRICT
1989 CONVERT_SUBSTITUTE
= _gdi
.CONVERT_SUBSTITUTE
1990 PLATFORM_CURRENT
= _gdi
.PLATFORM_CURRENT
1991 PLATFORM_UNIX
= _gdi
.PLATFORM_UNIX
1992 PLATFORM_WINDOWS
= _gdi
.PLATFORM_WINDOWS
1993 PLATFORM_OS2
= _gdi
.PLATFORM_OS2
1994 PLATFORM_MAC
= _gdi
.PLATFORM_MAC
1995 class EncodingConverter(core
.Object
):
1997 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1998 def __init__(self
, *args
, **kwargs
):
1999 """__init__() -> EncodingConverter"""
2000 newobj
= _gdi
.new_EncodingConverter(*args
, **kwargs
)
2001 self
.this
= newobj
.this
2004 def __del__(self
, destroy
=_gdi
.delete_EncodingConverter
):
2007 if self
.thisown
: destroy(self
)
2010 def Init(*args
, **kwargs
):
2011 """Init(int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool"""
2012 return _gdi
.EncodingConverter_Init(*args
, **kwargs
)
2014 def Convert(*args
, **kwargs
):
2015 """Convert(String input) -> String"""
2016 return _gdi
.EncodingConverter_Convert(*args
, **kwargs
)
2018 def GetPlatformEquivalents(*args
, **kwargs
):
2019 """EncodingConverter.GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2020 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2022 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2023 def GetAllEquivalents(*args
, **kwargs
):
2024 """EncodingConverter.GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2025 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2027 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2028 def CanConvert(*args
, **kwargs
):
2029 """EncodingConverter.CanConvert(int encIn, int encOut) -> bool"""
2030 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2032 CanConvert
= staticmethod(CanConvert
)
2033 def __nonzero__(self
): return self
.IsOk()
2035 class EncodingConverterPtr(EncodingConverter
):
2036 def __init__(self
, this
):
2038 if not hasattr(self
,"thisown"): self
.thisown
= 0
2039 self
.__class
__ = EncodingConverter
2040 _gdi
.EncodingConverter_swigregister(EncodingConverterPtr
)
2042 def GetTranslation(*args
):
2044 GetTranslation(String sz) -> String
2045 GetTranslation(String sz1, String sz2, size_t n) -> String
2047 return _gdi
.GetTranslation(*args
)
2049 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2050 """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2051 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2053 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2054 """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2055 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2057 def EncodingConverter_CanConvert(*args
, **kwargs
):
2058 """EncodingConverter_CanConvert(int encIn, int encOut) -> bool"""
2059 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2061 #----------------------------------------------------------------------------
2062 # wxGTK sets the locale when initialized. Doing this at the Python
2063 # level should set it up to match what GTK is doing at the C level.
2064 if wx
.Platform
== "__WXGTK__":
2067 locale
.setlocale(locale
.LC_ALL
, "")
2071 # On MSW add the directory where the wxWindows catalogs were installed
2072 # to the default catalog path.
2073 if wx
.Platform
== "__WXMSW__":
2075 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2076 Locale_AddCatalogLookupPathPrefix(localedir
)
2079 #----------------------------------------------------------------------------
2081 #---------------------------------------------------------------------------
2083 class DC(core
.Object
):
2084 def __init__(self
): raise RuntimeError, "No constructor defined"
2086 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2087 def __del__(self
, destroy
=_gdi
.delete_DC
):
2090 if self
.thisown
: destroy(self
)
2093 def BeginDrawing(*args
, **kwargs
):
2094 """BeginDrawing()"""
2095 return _gdi
.DC_BeginDrawing(*args
, **kwargs
)
2097 def EndDrawing(*args
, **kwargs
):
2099 return _gdi
.DC_EndDrawing(*args
, **kwargs
)
2101 def FloodFillXY(*args
, **kwargs
):
2102 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2103 return _gdi
.DC_FloodFillXY(*args
, **kwargs
)
2105 def FloodFill(*args
, **kwargs
):
2106 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2107 return _gdi
.DC_FloodFill(*args
, **kwargs
)
2109 def GetPixelXY(*args
, **kwargs
):
2110 """GetPixelXY(int x, int y) -> Colour"""
2111 return _gdi
.DC_GetPixelXY(*args
, **kwargs
)
2113 def GetPixel(*args
, **kwargs
):
2114 """GetPixel(Point pt) -> Colour"""
2115 return _gdi
.DC_GetPixel(*args
, **kwargs
)
2117 def DrawLineXY(*args
, **kwargs
):
2118 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2119 return _gdi
.DC_DrawLineXY(*args
, **kwargs
)
2121 def DrawLine(*args
, **kwargs
):
2122 """DrawLine(Point pt1, Point pt2)"""
2123 return _gdi
.DC_DrawLine(*args
, **kwargs
)
2125 def CrossHairXY(*args
, **kwargs
):
2126 """CrossHairXY(int x, int y)"""
2127 return _gdi
.DC_CrossHairXY(*args
, **kwargs
)
2129 def CrossHair(*args
, **kwargs
):
2130 """CrossHair(Point pt)"""
2131 return _gdi
.DC_CrossHair(*args
, **kwargs
)
2133 def DrawArcXY(*args
, **kwargs
):
2134 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2135 return _gdi
.DC_DrawArcXY(*args
, **kwargs
)
2137 def DrawArc(*args
, **kwargs
):
2138 """DrawArc(Point pt1, Point pt2, Point centre)"""
2139 return _gdi
.DC_DrawArc(*args
, **kwargs
)
2141 def DrawCheckMarkXY(*args
, **kwargs
):
2142 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2143 return _gdi
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2145 def DrawCheckMark(*args
, **kwargs
):
2146 """DrawCheckMark(Rect rect)"""
2147 return _gdi
.DC_DrawCheckMark(*args
, **kwargs
)
2149 def DrawEllipticArcXY(*args
, **kwargs
):
2150 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2151 return _gdi
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2153 def DrawEllipticArc(*args
, **kwargs
):
2154 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2155 return _gdi
.DC_DrawEllipticArc(*args
, **kwargs
)
2157 def DrawPointXY(*args
, **kwargs
):
2158 """DrawPointXY(int x, int y)"""
2159 return _gdi
.DC_DrawPointXY(*args
, **kwargs
)
2161 def DrawPoint(*args
, **kwargs
):
2162 """DrawPoint(Point pt)"""
2163 return _gdi
.DC_DrawPoint(*args
, **kwargs
)
2165 def DrawRectangleXY(*args
, **kwargs
):
2166 """DrawRectangleXY(int x, int y, int width, int height)"""
2167 return _gdi
.DC_DrawRectangleXY(*args
, **kwargs
)
2169 def DrawRectangle(*args
, **kwargs
):
2170 """DrawRectangle(Point pt, Size sz)"""
2171 return _gdi
.DC_DrawRectangle(*args
, **kwargs
)
2173 def DrawRectangleRect(*args
, **kwargs
):
2174 """DrawRectangleRect(Rect rect)"""
2175 return _gdi
.DC_DrawRectangleRect(*args
, **kwargs
)
2177 def DrawRoundedRectangleXY(*args
, **kwargs
):
2178 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2179 return _gdi
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2181 def DrawRoundedRectangle(*args
, **kwargs
):
2182 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2183 return _gdi
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2185 def DrawRoundedRectangleRect(*args
, **kwargs
):
2186 """DrawRoundedRectangleRect(Rect r, double radius)"""
2187 return _gdi
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2189 def DrawCircleXY(*args
, **kwargs
):
2190 """DrawCircleXY(int x, int y, int radius)"""
2191 return _gdi
.DC_DrawCircleXY(*args
, **kwargs
)
2193 def DrawCircle(*args
, **kwargs
):
2194 """DrawCircle(Point pt, int radius)"""
2195 return _gdi
.DC_DrawCircle(*args
, **kwargs
)
2197 def DrawEllipseXY(*args
, **kwargs
):
2198 """DrawEllipseXY(int x, int y, int width, int height)"""
2199 return _gdi
.DC_DrawEllipseXY(*args
, **kwargs
)
2201 def DrawEllipse(*args
, **kwargs
):
2202 """DrawEllipse(Point pt, Size sz)"""
2203 return _gdi
.DC_DrawEllipse(*args
, **kwargs
)
2205 def DrawEllipseRect(*args
, **kwargs
):
2206 """DrawEllipseRect(Rect rect)"""
2207 return _gdi
.DC_DrawEllipseRect(*args
, **kwargs
)
2209 def DrawIconXY(*args
, **kwargs
):
2210 """DrawIconXY(Icon icon, int x, int y)"""
2211 return _gdi
.DC_DrawIconXY(*args
, **kwargs
)
2213 def DrawIcon(*args
, **kwargs
):
2214 """DrawIcon(Icon icon, Point pt)"""
2215 return _gdi
.DC_DrawIcon(*args
, **kwargs
)
2217 def DrawBitmapXY(*args
, **kwargs
):
2218 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2219 return _gdi
.DC_DrawBitmapXY(*args
, **kwargs
)
2221 def DrawBitmap(*args
, **kwargs
):
2222 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2223 return _gdi
.DC_DrawBitmap(*args
, **kwargs
)
2225 def DrawTextXY(*args
, **kwargs
):
2226 """DrawTextXY(String text, int x, int y)"""
2227 return _gdi
.DC_DrawTextXY(*args
, **kwargs
)
2229 def DrawText(*args
, **kwargs
):
2230 """DrawText(String text, Point pt)"""
2231 return _gdi
.DC_DrawText(*args
, **kwargs
)
2233 def DrawRotatedTextXY(*args
, **kwargs
):
2234 """DrawRotatedTextXY(String text, int x, int y, double angle)"""
2235 return _gdi
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2237 def DrawRotatedText(*args
, **kwargs
):
2238 """DrawRotatedText(String text, Point pt, double angle)"""
2239 return _gdi
.DC_DrawRotatedText(*args
, **kwargs
)
2241 def BlitXY(*args
, **kwargs
):
2243 BlitXY(int xdest, int ydest, int width, int height, DC source,
2244 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2245 int xsrcMask=-1, int ysrcMask=-1) -> bool
2247 return _gdi
.DC_BlitXY(*args
, **kwargs
)
2249 def Blit(*args
, **kwargs
):
2251 Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2252 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
2254 return _gdi
.DC_Blit(*args
, **kwargs
)
2256 def DrawLines(*args
, **kwargs
):
2257 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2258 return _gdi
.DC_DrawLines(*args
, **kwargs
)
2260 def DrawPolygon(*args
, **kwargs
):
2262 DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2263 int fillStyle=ODDEVEN_RULE)
2265 return _gdi
.DC_DrawPolygon(*args
, **kwargs
)
2267 def DrawLabel(*args
, **kwargs
):
2269 DrawLabel(String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2272 return _gdi
.DC_DrawLabel(*args
, **kwargs
)
2274 def DrawImageLabel(*args
, **kwargs
):
2276 DrawImageLabel(String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2277 int indexAccel=-1) -> Rect
2279 return _gdi
.DC_DrawImageLabel(*args
, **kwargs
)
2281 def DrawSpline(*args
, **kwargs
):
2282 """DrawSpline(int points, Point points_array)"""
2283 return _gdi
.DC_DrawSpline(*args
, **kwargs
)
2285 def Clear(*args
, **kwargs
):
2287 return _gdi
.DC_Clear(*args
, **kwargs
)
2289 def StartDoc(*args
, **kwargs
):
2290 """StartDoc(String message) -> bool"""
2291 return _gdi
.DC_StartDoc(*args
, **kwargs
)
2293 def EndDoc(*args
, **kwargs
):
2295 return _gdi
.DC_EndDoc(*args
, **kwargs
)
2297 def StartPage(*args
, **kwargs
):
2299 return _gdi
.DC_StartPage(*args
, **kwargs
)
2301 def EndPage(*args
, **kwargs
):
2303 return _gdi
.DC_EndPage(*args
, **kwargs
)
2305 def SetFont(*args
, **kwargs
):
2306 """SetFont(Font font)"""
2307 return _gdi
.DC_SetFont(*args
, **kwargs
)
2309 def SetPen(*args
, **kwargs
):
2310 """SetPen(Pen pen)"""
2311 return _gdi
.DC_SetPen(*args
, **kwargs
)
2313 def SetBrush(*args
, **kwargs
):
2314 """SetBrush(Brush brush)"""
2315 return _gdi
.DC_SetBrush(*args
, **kwargs
)
2317 def SetBackground(*args
, **kwargs
):
2318 """SetBackground(Brush brush)"""
2319 return _gdi
.DC_SetBackground(*args
, **kwargs
)
2321 def SetBackgroundMode(*args
, **kwargs
):
2322 """SetBackgroundMode(int mode)"""
2323 return _gdi
.DC_SetBackgroundMode(*args
, **kwargs
)
2325 def SetPalette(*args
, **kwargs
):
2326 """SetPalette(Palette palette)"""
2327 return _gdi
.DC_SetPalette(*args
, **kwargs
)
2329 def SetClippingRegionXY(*args
, **kwargs
):
2330 """SetClippingRegionXY(int x, int y, int width, int height)"""
2331 return _gdi
.DC_SetClippingRegionXY(*args
, **kwargs
)
2333 def SetClippingRegion(*args
, **kwargs
):
2334 """SetClippingRegion(Point pt, Size sz)"""
2335 return _gdi
.DC_SetClippingRegion(*args
, **kwargs
)
2337 def SetClippingRect(*args
, **kwargs
):
2338 """SetClippingRect(Rect rect)"""
2339 return _gdi
.DC_SetClippingRect(*args
, **kwargs
)
2341 def SetClippingRegionAsRegion(*args
, **kwargs
):
2342 """SetClippingRegionAsRegion(Region region)"""
2343 return _gdi
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2345 def DestroyClippingRegion(*args
, **kwargs
):
2346 """DestroyClippingRegion()"""
2347 return _gdi
.DC_DestroyClippingRegion(*args
, **kwargs
)
2349 def GetClippingBox(*args
, **kwargs
):
2350 """GetClippingBox() -> (x, y, width, height)"""
2351 return _gdi
.DC_GetClippingBox(*args
, **kwargs
)
2353 def GetClippingRect(*args
, **kwargs
):
2354 """GetClippingRect() -> Rect"""
2355 return _gdi
.DC_GetClippingRect(*args
, **kwargs
)
2357 def GetCharHeight(*args
, **kwargs
):
2358 """GetCharHeight() -> int"""
2359 return _gdi
.DC_GetCharHeight(*args
, **kwargs
)
2361 def GetCharWidth(*args
, **kwargs
):
2362 """GetCharWidth() -> int"""
2363 return _gdi
.DC_GetCharWidth(*args
, **kwargs
)
2365 def GetTextExtent(*args
, **kwargs
):
2367 GetTextExtent(wxString string) -> (width, height)
2369 Get the width and height of the text using the current font.
2370 Only works for single line strings.
2372 return _gdi
.DC_GetTextExtent(*args
, **kwargs
)
2374 def GetFullTextExtent(*args
, **kwargs
):
2376 GetFullTextExtent(wxString string, Font font=None) ->
2377 (width, height, descent, externalLeading)
2379 Get the width, height, decent and leading of the text using the current or specified font.
2380 Only works for single line strings.
2382 return _gdi
.DC_GetFullTextExtent(*args
, **kwargs
)
2384 def GetMultiLineTextExtent(*args
, **kwargs
):
2386 GetMultiLineTextExtent(wxString string, Font font=None) ->
2387 (width, height, descent, externalLeading)
2389 Get the width, height, decent and leading of the text using the current or specified font.
2390 Works for single as well as multi-line strings.
2392 return _gdi
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2394 def GetSize(*args
, **kwargs
):
2398 Get the DC size in device units.
2400 return _gdi
.DC_GetSize(*args
, **kwargs
)
2402 def GetSizeTuple(*args
, **kwargs
):
2404 GetSizeTuple() -> (width, height)
2406 Get the DC size in device units.
2408 return _gdi
.DC_GetSizeTuple(*args
, **kwargs
)
2410 def GetSizeMM(*args
, **kwargs
):
2414 Get the DC size in milimeters.
2416 return _gdi
.DC_GetSizeMM(*args
, **kwargs
)
2418 def GetSizeMMTuple(*args
, **kwargs
):
2420 GetSizeMMTuple() -> (width, height)
2422 Get the DC size in milimeters.
2424 return _gdi
.DC_GetSizeMMTuple(*args
, **kwargs
)
2426 def DeviceToLogicalX(*args
, **kwargs
):
2427 """DeviceToLogicalX(int x) -> int"""
2428 return _gdi
.DC_DeviceToLogicalX(*args
, **kwargs
)
2430 def DeviceToLogicalY(*args
, **kwargs
):
2431 """DeviceToLogicalY(int y) -> int"""
2432 return _gdi
.DC_DeviceToLogicalY(*args
, **kwargs
)
2434 def DeviceToLogicalXRel(*args
, **kwargs
):
2435 """DeviceToLogicalXRel(int x) -> int"""
2436 return _gdi
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2438 def DeviceToLogicalYRel(*args
, **kwargs
):
2439 """DeviceToLogicalYRel(int y) -> int"""
2440 return _gdi
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2442 def LogicalToDeviceX(*args
, **kwargs
):
2443 """LogicalToDeviceX(int x) -> int"""
2444 return _gdi
.DC_LogicalToDeviceX(*args
, **kwargs
)
2446 def LogicalToDeviceY(*args
, **kwargs
):
2447 """LogicalToDeviceY(int y) -> int"""
2448 return _gdi
.DC_LogicalToDeviceY(*args
, **kwargs
)
2450 def LogicalToDeviceXRel(*args
, **kwargs
):
2451 """LogicalToDeviceXRel(int x) -> int"""
2452 return _gdi
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2454 def LogicalToDeviceYRel(*args
, **kwargs
):
2455 """LogicalToDeviceYRel(int y) -> int"""
2456 return _gdi
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2458 def CanDrawBitmap(*args
, **kwargs
):
2459 """CanDrawBitmap() -> bool"""
2460 return _gdi
.DC_CanDrawBitmap(*args
, **kwargs
)
2462 def CanGetTextExtent(*args
, **kwargs
):
2463 """CanGetTextExtent() -> bool"""
2464 return _gdi
.DC_CanGetTextExtent(*args
, **kwargs
)
2466 def GetDepth(*args
, **kwargs
):
2467 """GetDepth() -> int"""
2468 return _gdi
.DC_GetDepth(*args
, **kwargs
)
2470 def GetPPI(*args
, **kwargs
):
2471 """GetPPI() -> Size"""
2472 return _gdi
.DC_GetPPI(*args
, **kwargs
)
2474 def Ok(*args
, **kwargs
):
2476 return _gdi
.DC_Ok(*args
, **kwargs
)
2478 def GetBackgroundMode(*args
, **kwargs
):
2479 """GetBackgroundMode() -> int"""
2480 return _gdi
.DC_GetBackgroundMode(*args
, **kwargs
)
2482 def GetBackground(*args
, **kwargs
):
2483 """GetBackground() -> Brush"""
2484 return _gdi
.DC_GetBackground(*args
, **kwargs
)
2486 def GetBrush(*args
, **kwargs
):
2487 """GetBrush() -> Brush"""
2488 return _gdi
.DC_GetBrush(*args
, **kwargs
)
2490 def GetFont(*args
, **kwargs
):
2491 """GetFont() -> Font"""
2492 return _gdi
.DC_GetFont(*args
, **kwargs
)
2494 def GetPen(*args
, **kwargs
):
2495 """GetPen() -> Pen"""
2496 return _gdi
.DC_GetPen(*args
, **kwargs
)
2498 def GetTextBackground(*args
, **kwargs
):
2499 """GetTextBackground() -> Colour"""
2500 return _gdi
.DC_GetTextBackground(*args
, **kwargs
)
2502 def GetTextForeground(*args
, **kwargs
):
2503 """GetTextForeground() -> Colour"""
2504 return _gdi
.DC_GetTextForeground(*args
, **kwargs
)
2506 def SetTextForeground(*args
, **kwargs
):
2507 """SetTextForeground(Colour colour)"""
2508 return _gdi
.DC_SetTextForeground(*args
, **kwargs
)
2510 def SetTextBackground(*args
, **kwargs
):
2511 """SetTextBackground(Colour colour)"""
2512 return _gdi
.DC_SetTextBackground(*args
, **kwargs
)
2514 def GetMapMode(*args
, **kwargs
):
2515 """GetMapMode() -> int"""
2516 return _gdi
.DC_GetMapMode(*args
, **kwargs
)
2518 def SetMapMode(*args
, **kwargs
):
2519 """SetMapMode(int mode)"""
2520 return _gdi
.DC_SetMapMode(*args
, **kwargs
)
2522 def GetUserScale(*args
, **kwargs
):
2523 """GetUserScale() -> (xScale, yScale)"""
2524 return _gdi
.DC_GetUserScale(*args
, **kwargs
)
2526 def SetUserScale(*args
, **kwargs
):
2527 """SetUserScale(double x, double y)"""
2528 return _gdi
.DC_SetUserScale(*args
, **kwargs
)
2530 def GetLogicalScale(*args
, **kwargs
):
2531 """GetLogicalScale() -> (xScale, yScale)"""
2532 return _gdi
.DC_GetLogicalScale(*args
, **kwargs
)
2534 def SetLogicalScale(*args
, **kwargs
):
2535 """SetLogicalScale(double x, double y)"""
2536 return _gdi
.DC_SetLogicalScale(*args
, **kwargs
)
2538 def GetLogicalOrigin(*args
, **kwargs
):
2539 """GetLogicalOrigin() -> Point"""
2540 return _gdi
.DC_GetLogicalOrigin(*args
, **kwargs
)
2542 def GetLogicalOriginTuple(*args
, **kwargs
):
2543 """GetLogicalOriginTuple() -> (x,y)"""
2544 return _gdi
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2546 def SetLogicalOrigin(*args
, **kwargs
):
2547 """SetLogicalOrigin(int x, int y)"""
2548 return _gdi
.DC_SetLogicalOrigin(*args
, **kwargs
)
2550 def GetDeviceOrigin(*args
, **kwargs
):
2551 """GetDeviceOrigin() -> Point"""
2552 return _gdi
.DC_GetDeviceOrigin(*args
, **kwargs
)
2554 def GetDeviceOriginTuple(*args
, **kwargs
):
2555 """GetDeviceOriginTuple() -> (x,y)"""
2556 return _gdi
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2558 def SetDeviceOrigin(*args
, **kwargs
):
2559 """SetDeviceOrigin(int x, int y)"""
2560 return _gdi
.DC_SetDeviceOrigin(*args
, **kwargs
)
2562 def SetAxisOrientation(*args
, **kwargs
):
2563 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2564 return _gdi
.DC_SetAxisOrientation(*args
, **kwargs
)
2566 def GetLogicalFunction(*args
, **kwargs
):
2567 """GetLogicalFunction() -> int"""
2568 return _gdi
.DC_GetLogicalFunction(*args
, **kwargs
)
2570 def SetLogicalFunction(*args
, **kwargs
):
2571 """SetLogicalFunction(int function)"""
2572 return _gdi
.DC_SetLogicalFunction(*args
, **kwargs
)
2574 def SetOptimization(*args
, **kwargs
):
2575 """SetOptimization(bool opt)"""
2576 return _gdi
.DC_SetOptimization(*args
, **kwargs
)
2578 def GetOptimization(*args
, **kwargs
):
2579 """GetOptimization() -> bool"""
2580 return _gdi
.DC_GetOptimization(*args
, **kwargs
)
2582 def CalcBoundingBox(*args
, **kwargs
):
2583 """CalcBoundingBox(int x, int y)"""
2584 return _gdi
.DC_CalcBoundingBox(*args
, **kwargs
)
2586 def ResetBoundingBox(*args
, **kwargs
):
2587 """ResetBoundingBox()"""
2588 return _gdi
.DC_ResetBoundingBox(*args
, **kwargs
)
2590 def MinX(*args
, **kwargs
):
2592 return _gdi
.DC_MinX(*args
, **kwargs
)
2594 def MaxX(*args
, **kwargs
):
2596 return _gdi
.DC_MaxX(*args
, **kwargs
)
2598 def MinY(*args
, **kwargs
):
2600 return _gdi
.DC_MinY(*args
, **kwargs
)
2602 def MaxY(*args
, **kwargs
):
2604 return _gdi
.DC_MaxY(*args
, **kwargs
)
2606 def GetBoundingBox(*args
, **kwargs
):
2607 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2608 return _gdi
.DC_GetBoundingBox(*args
, **kwargs
)
2610 def __nonzero__(self
): return self
.Ok()
2611 def _DrawPointList(*args
, **kwargs
):
2612 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2613 return _gdi
.DC__DrawPointList(*args
, **kwargs
)
2615 def _DrawLineList(*args
, **kwargs
):
2616 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2617 return _gdi
.DC__DrawLineList(*args
, **kwargs
)
2619 def _DrawRectangleList(*args
, **kwargs
):
2620 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2621 return _gdi
.DC__DrawRectangleList(*args
, **kwargs
)
2623 def _DrawEllipseList(*args
, **kwargs
):
2624 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2625 return _gdi
.DC__DrawEllipseList(*args
, **kwargs
)
2627 def _DrawPolygonList(*args
, **kwargs
):
2628 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2629 return _gdi
.DC__DrawPolygonList(*args
, **kwargs
)
2631 def _DrawTextList(*args
, **kwargs
):
2633 _DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2634 PyObject backgroundList) -> PyObject
2636 return _gdi
.DC__DrawTextList(*args
, **kwargs
)
2638 def DrawPointList(self
, points
, pens
=None):
2641 elif isinstance(pens
, wx
.Pen
):
2643 elif len(pens
) != len(points
):
2644 raise ValueError('points and pens must have same length')
2645 return self
._DrawPointList
(points
, pens
, [])
2648 def DrawLineList(self
, lines
, pens
=None):
2651 elif isinstance(pens
, wx
.Pen
):
2653 elif len(pens
) != len(lines
):
2654 raise ValueError('lines and pens must have same length')
2655 return self
._DrawLineList
(lines
, pens
, [])
2658 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2661 elif isinstance(pens
, wx
.Pen
):
2663 elif len(pens
) != len(rectangles
):
2664 raise ValueError('rectangles and pens must have same length')
2667 elif isinstance(brushes
, wx
.Brush
):
2669 elif len(brushes
) != len(rectangles
):
2670 raise ValueError('rectangles and brushes must have same length')
2671 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2674 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2677 elif isinstance(pens
, wx
.Pen
):
2679 elif len(pens
) != len(ellipses
):
2680 raise ValueError('ellipses and pens must have same length')
2683 elif isinstance(brushes
, wx
.Brush
):
2685 elif len(brushes
) != len(ellipses
):
2686 raise ValueError('ellipses and brushes must have same length')
2687 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2690 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2695 elif isinstance(pens
, wx
.Pen
):
2697 elif len(pens
) != len(polygons
):
2698 raise ValueError('polygons and pens must have same length')
2701 elif isinstance(brushes
, wx
.Brush
):
2703 elif len(brushes
) != len(polygons
):
2704 raise ValueError('polygons and brushes must have same length')
2705 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2708 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2712 if type(textList
) == type(''):
2713 textList
= [textList
]
2714 elif len(textList
) != len(coords
):
2715 raise ValueError('textlist and coords must have same length')
2716 if foregrounds
is None:
2718 elif isinstance(foregrounds
, wx
.Colour
):
2719 foregrounds
= [foregrounds
]
2720 elif len(foregrounds
) != len(coords
):
2721 raise ValueError('foregrounds and coords must have same length')
2722 if backgrounds
is None:
2724 elif isinstance(backgrounds
, wx
.Colour
):
2725 backgrounds
= [backgrounds
]
2726 elif len(backgrounds
) != len(coords
):
2727 raise ValueError('backgrounds and coords must have same length')
2728 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2732 def __init__(self
, this
):
2734 if not hasattr(self
,"thisown"): self
.thisown
= 0
2736 _gdi
.DC_swigregister(DCPtr
)
2738 #---------------------------------------------------------------------------
2742 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2743 def __init__(self
, *args
, **kwargs
):
2744 """__init__() -> MemoryDC"""
2745 newobj
= _gdi
.new_MemoryDC(*args
, **kwargs
)
2746 self
.this
= newobj
.this
2749 def SelectObject(*args
, **kwargs
):
2750 """SelectObject(Bitmap bitmap)"""
2751 return _gdi
.MemoryDC_SelectObject(*args
, **kwargs
)
2754 class MemoryDCPtr(MemoryDC
):
2755 def __init__(self
, this
):
2757 if not hasattr(self
,"thisown"): self
.thisown
= 0
2758 self
.__class
__ = MemoryDC
2759 _gdi
.MemoryDC_swigregister(MemoryDCPtr
)
2761 def MemoryDCFromDC(*args
, **kwargs
):
2762 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
2763 val
= _gdi
.new_MemoryDCFromDC(*args
, **kwargs
)
2767 #---------------------------------------------------------------------------
2769 class BufferedDC(MemoryDC
):
2771 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2772 def __init__(self
, *args
, **kwargs
):
2773 """__init__(DC dc, Bitmap buffer) -> BufferedDC"""
2774 newobj
= _gdi
.new_BufferedDC(*args
, **kwargs
)
2775 self
.this
= newobj
.this
2778 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2780 def UnMask(*args
, **kwargs
):
2782 return _gdi
.BufferedDC_UnMask(*args
, **kwargs
)
2785 class BufferedDCPtr(BufferedDC
):
2786 def __init__(self
, this
):
2788 if not hasattr(self
,"thisown"): self
.thisown
= 0
2789 self
.__class
__ = BufferedDC
2790 _gdi
.BufferedDC_swigregister(BufferedDCPtr
)
2792 def BufferedDCInternalBuffer(*args
, **kwargs
):
2793 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
2794 val
= _gdi
.new_BufferedDCInternalBuffer(*args
, **kwargs
)
2796 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2799 class BufferedPaintDC(BufferedDC
):
2801 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2802 def __init__(self
, *args
, **kwargs
):
2803 """__init__(Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
2804 newobj
= _gdi
.new_BufferedPaintDC(*args
, **kwargs
)
2805 self
.this
= newobj
.this
2809 class BufferedPaintDCPtr(BufferedPaintDC
):
2810 def __init__(self
, this
):
2812 if not hasattr(self
,"thisown"): self
.thisown
= 0
2813 self
.__class
__ = BufferedPaintDC
2814 _gdi
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
2816 #---------------------------------------------------------------------------
2820 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2821 def __init__(self
, *args
, **kwargs
):
2822 """__init__() -> ScreenDC"""
2823 newobj
= _gdi
.new_ScreenDC(*args
, **kwargs
)
2824 self
.this
= newobj
.this
2827 def StartDrawingOnTopWin(*args
, **kwargs
):
2828 """StartDrawingOnTopWin(Window window) -> bool"""
2829 return _gdi
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
2831 def StartDrawingOnTop(*args
, **kwargs
):
2832 """StartDrawingOnTop(Rect rect=None) -> bool"""
2833 return _gdi
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
2835 def EndDrawingOnTop(*args
, **kwargs
):
2836 """EndDrawingOnTop() -> bool"""
2837 return _gdi
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
2840 class ScreenDCPtr(ScreenDC
):
2841 def __init__(self
, this
):
2843 if not hasattr(self
,"thisown"): self
.thisown
= 0
2844 self
.__class
__ = ScreenDC
2845 _gdi
.ScreenDC_swigregister(ScreenDCPtr
)
2847 #---------------------------------------------------------------------------
2851 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2852 def __init__(self
, *args
, **kwargs
):
2853 """__init__(Window win) -> ClientDC"""
2854 newobj
= _gdi
.new_ClientDC(*args
, **kwargs
)
2855 self
.this
= newobj
.this
2859 class ClientDCPtr(ClientDC
):
2860 def __init__(self
, this
):
2862 if not hasattr(self
,"thisown"): self
.thisown
= 0
2863 self
.__class
__ = ClientDC
2864 _gdi
.ClientDC_swigregister(ClientDCPtr
)
2866 #---------------------------------------------------------------------------
2870 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2871 def __init__(self
, *args
, **kwargs
):
2872 """__init__(Window win) -> PaintDC"""
2873 newobj
= _gdi
.new_PaintDC(*args
, **kwargs
)
2874 self
.this
= newobj
.this
2878 class PaintDCPtr(PaintDC
):
2879 def __init__(self
, this
):
2881 if not hasattr(self
,"thisown"): self
.thisown
= 0
2882 self
.__class
__ = PaintDC
2883 _gdi
.PaintDC_swigregister(PaintDCPtr
)
2885 #---------------------------------------------------------------------------
2889 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2890 def __init__(self
, *args
, **kwargs
):
2891 """__init__(Window win) -> WindowDC"""
2892 newobj
= _gdi
.new_WindowDC(*args
, **kwargs
)
2893 self
.this
= newobj
.this
2897 class WindowDCPtr(WindowDC
):
2898 def __init__(self
, this
):
2900 if not hasattr(self
,"thisown"): self
.thisown
= 0
2901 self
.__class
__ = WindowDC
2902 _gdi
.WindowDC_swigregister(WindowDCPtr
)
2904 #---------------------------------------------------------------------------
2908 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2909 def __init__(self
, *args
, **kwargs
):
2910 """__init__(DC dc, bool mirror) -> MirrorDC"""
2911 newobj
= _gdi
.new_MirrorDC(*args
, **kwargs
)
2912 self
.this
= newobj
.this
2916 class MirrorDCPtr(MirrorDC
):
2917 def __init__(self
, this
):
2919 if not hasattr(self
,"thisown"): self
.thisown
= 0
2920 self
.__class
__ = MirrorDC
2921 _gdi
.MirrorDC_swigregister(MirrorDCPtr
)
2923 #---------------------------------------------------------------------------
2925 class PostScriptDC(DC
):
2927 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2928 def __init__(self
, *args
, **kwargs
):
2929 """__init__(wxPrintData printData) -> PostScriptDC"""
2930 newobj
= _gdi
.new_PostScriptDC(*args
, **kwargs
)
2931 self
.this
= newobj
.this
2934 def GetPrintData(*args
, **kwargs
):
2935 """GetPrintData() -> wxPrintData"""
2936 return _gdi
.PostScriptDC_GetPrintData(*args
, **kwargs
)
2938 def SetPrintData(*args
, **kwargs
):
2939 """SetPrintData(wxPrintData data)"""
2940 return _gdi
.PostScriptDC_SetPrintData(*args
, **kwargs
)
2942 def SetResolution(*args
, **kwargs
):
2943 """PostScriptDC.SetResolution(int ppi)"""
2944 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
2946 SetResolution
= staticmethod(SetResolution
)
2947 def GetResolution(*args
, **kwargs
):
2948 """PostScriptDC.GetResolution() -> int"""
2949 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
2951 GetResolution
= staticmethod(GetResolution
)
2953 class PostScriptDCPtr(PostScriptDC
):
2954 def __init__(self
, this
):
2956 if not hasattr(self
,"thisown"): self
.thisown
= 0
2957 self
.__class
__ = PostScriptDC
2958 _gdi
.PostScriptDC_swigregister(PostScriptDCPtr
)
2960 def PostScriptDC_SetResolution(*args
, **kwargs
):
2961 """PostScriptDC_SetResolution(int ppi)"""
2962 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
2964 def PostScriptDC_GetResolution(*args
, **kwargs
):
2965 """PostScriptDC_GetResolution() -> int"""
2966 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
2968 #---------------------------------------------------------------------------
2970 class MetaFile(core
.Object
):
2972 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2973 def __init__(self
, *args
, **kwargs
):
2974 """__init__(String filename=EmptyString) -> MetaFile"""
2975 newobj
= _gdi
.new_MetaFile(*args
, **kwargs
)
2976 self
.this
= newobj
.this
2980 class MetaFilePtr(MetaFile
):
2981 def __init__(self
, this
):
2983 if not hasattr(self
,"thisown"): self
.thisown
= 0
2984 self
.__class
__ = MetaFile
2985 _gdi
.MetaFile_swigregister(MetaFilePtr
)
2987 class MetaFileDC(DC
):
2989 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2990 def __init__(self
, *args
, **kwargs
):
2992 __init__(String filename=EmptyString, int width=0, int height=0,
2993 String description=EmptyString) -> MetaFileDC
2995 newobj
= _gdi
.new_MetaFileDC(*args
, **kwargs
)
2996 self
.this
= newobj
.this
3000 class MetaFileDCPtr(MetaFileDC
):
3001 def __init__(self
, this
):
3003 if not hasattr(self
,"thisown"): self
.thisown
= 0
3004 self
.__class
__ = MetaFileDC
3005 _gdi
.MetaFileDC_swigregister(MetaFileDCPtr
)
3007 class PrinterDC(DC
):
3009 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3010 def __init__(self
, *args
, **kwargs
):
3011 """__init__(wxPrintData printData) -> PrinterDC"""
3012 newobj
= _gdi
.new_PrinterDC(*args
, **kwargs
)
3013 self
.this
= newobj
.this
3017 class PrinterDCPtr(PrinterDC
):
3018 def __init__(self
, this
):
3020 if not hasattr(self
,"thisown"): self
.thisown
= 0
3021 self
.__class
__ = PrinterDC
3022 _gdi
.PrinterDC_swigregister(PrinterDCPtr
)
3024 #---------------------------------------------------------------------------
3026 IMAGELIST_DRAW_NORMAL
= _gdi
.IMAGELIST_DRAW_NORMAL
3027 IMAGELIST_DRAW_TRANSPARENT
= _gdi
.IMAGELIST_DRAW_TRANSPARENT
3028 IMAGELIST_DRAW_SELECTED
= _gdi
.IMAGELIST_DRAW_SELECTED
3029 IMAGELIST_DRAW_FOCUSED
= _gdi
.IMAGELIST_DRAW_FOCUSED
3030 IMAGE_LIST_NORMAL
= _gdi
.IMAGE_LIST_NORMAL
3031 IMAGE_LIST_SMALL
= _gdi
.IMAGE_LIST_SMALL
3032 IMAGE_LIST_STATE
= _gdi
.IMAGE_LIST_STATE
3033 class ImageList(core
.Object
):
3035 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3036 def __init__(self
, *args
, **kwargs
):
3037 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3038 newobj
= _gdi
.new_ImageList(*args
, **kwargs
)
3039 self
.this
= newobj
.this
3042 def __del__(self
, destroy
=_gdi
.delete_ImageList
):
3045 if self
.thisown
: destroy(self
)
3048 def Add(*args
, **kwargs
):
3049 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3050 return _gdi
.ImageList_Add(*args
, **kwargs
)
3052 def AddWithColourMask(*args
, **kwargs
):
3053 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
3054 return _gdi
.ImageList_AddWithColourMask(*args
, **kwargs
)
3056 def AddIcon(*args
, **kwargs
):
3057 """AddIcon(Icon icon) -> int"""
3058 return _gdi
.ImageList_AddIcon(*args
, **kwargs
)
3060 def Replace(*args
, **kwargs
):
3061 """Replace(int index, Bitmap bitmap) -> bool"""
3062 return _gdi
.ImageList_Replace(*args
, **kwargs
)
3064 def Draw(*args
, **kwargs
):
3066 Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3067 bool solidBackground=False) -> bool
3069 return _gdi
.ImageList_Draw(*args
, **kwargs
)
3071 def GetImageCount(*args
, **kwargs
):
3072 """GetImageCount() -> int"""
3073 return _gdi
.ImageList_GetImageCount(*args
, **kwargs
)
3075 def Remove(*args
, **kwargs
):
3076 """Remove(int index) -> bool"""
3077 return _gdi
.ImageList_Remove(*args
, **kwargs
)
3079 def RemoveAll(*args
, **kwargs
):
3080 """RemoveAll() -> bool"""
3081 return _gdi
.ImageList_RemoveAll(*args
, **kwargs
)
3083 def GetSize(*args
, **kwargs
):
3084 """GetSize() -> (width,height)"""
3085 return _gdi
.ImageList_GetSize(*args
, **kwargs
)
3088 class ImageListPtr(ImageList
):
3089 def __init__(self
, this
):
3091 if not hasattr(self
,"thisown"): self
.thisown
= 0
3092 self
.__class
__ = ImageList
3093 _gdi
.ImageList_swigregister(ImageListPtr
)
3095 #---------------------------------------------------------------------------
3097 class PenList(core
.Object
):
3098 def __init__(self
): raise RuntimeError, "No constructor defined"
3100 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3101 def AddPen(*args
, **kwargs
):
3102 """AddPen(Pen pen)"""
3103 return _gdi
.PenList_AddPen(*args
, **kwargs
)
3105 def FindOrCreatePen(*args
, **kwargs
):
3106 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
3107 return _gdi
.PenList_FindOrCreatePen(*args
, **kwargs
)
3109 def RemovePen(*args
, **kwargs
):
3110 """RemovePen(Pen pen)"""
3111 return _gdi
.PenList_RemovePen(*args
, **kwargs
)
3113 def GetCount(*args
, **kwargs
):
3114 """GetCount() -> int"""
3115 return _gdi
.PenList_GetCount(*args
, **kwargs
)
3118 class PenListPtr(PenList
):
3119 def __init__(self
, this
):
3121 if not hasattr(self
,"thisown"): self
.thisown
= 0
3122 self
.__class
__ = PenList
3123 _gdi
.PenList_swigregister(PenListPtr
)
3125 class BrushList(core
.Object
):
3126 def __init__(self
): raise RuntimeError, "No constructor defined"
3128 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3129 def AddBrush(*args
, **kwargs
):
3130 """AddBrush(Brush brush)"""
3131 return _gdi
.BrushList_AddBrush(*args
, **kwargs
)
3133 def FindOrCreateBrush(*args
, **kwargs
):
3134 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
3135 return _gdi
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3137 def RemoveBrush(*args
, **kwargs
):
3138 """RemoveBrush(Brush brush)"""
3139 return _gdi
.BrushList_RemoveBrush(*args
, **kwargs
)
3141 def GetCount(*args
, **kwargs
):
3142 """GetCount() -> int"""
3143 return _gdi
.BrushList_GetCount(*args
, **kwargs
)
3146 class BrushListPtr(BrushList
):
3147 def __init__(self
, this
):
3149 if not hasattr(self
,"thisown"): self
.thisown
= 0
3150 self
.__class
__ = BrushList
3151 _gdi
.BrushList_swigregister(BrushListPtr
)
3153 class ColourDatabase(core
.Object
):
3155 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3156 def __init__(self
, *args
, **kwargs
):
3157 """__init__() -> ColourDatabase"""
3158 newobj
= _gdi
.new_ColourDatabase(*args
, **kwargs
)
3159 self
.this
= newobj
.this
3162 def __del__(self
, destroy
=_gdi
.delete_ColourDatabase
):
3165 if self
.thisown
: destroy(self
)
3168 def Find(*args
, **kwargs
):
3169 """Find(String name) -> Colour"""
3170 return _gdi
.ColourDatabase_Find(*args
, **kwargs
)
3172 def FindName(*args
, **kwargs
):
3173 """FindName(Colour colour) -> String"""
3174 return _gdi
.ColourDatabase_FindName(*args
, **kwargs
)
3177 def AddColour(*args
, **kwargs
):
3178 """AddColour(String name, Colour colour)"""
3179 return _gdi
.ColourDatabase_AddColour(*args
, **kwargs
)
3181 def Append(*args
, **kwargs
):
3182 """Append(String name, int red, int green, int blue)"""
3183 return _gdi
.ColourDatabase_Append(*args
, **kwargs
)
3186 class ColourDatabasePtr(ColourDatabase
):
3187 def __init__(self
, this
):
3189 if not hasattr(self
,"thisown"): self
.thisown
= 0
3190 self
.__class
__ = ColourDatabase
3191 _gdi
.ColourDatabase_swigregister(ColourDatabasePtr
)
3193 class FontList(core
.Object
):
3194 def __init__(self
): raise RuntimeError, "No constructor defined"
3196 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3197 def AddFont(*args
, **kwargs
):
3198 """AddFont(Font font)"""
3199 return _gdi
.FontList_AddFont(*args
, **kwargs
)
3201 def FindOrCreateFont(*args
, **kwargs
):
3203 FindOrCreateFont(int point_size, int family, int style, int weight,
3204 bool underline=False, String facename=EmptyString,
3205 int encoding=FONTENCODING_DEFAULT) -> Font
3207 return _gdi
.FontList_FindOrCreateFont(*args
, **kwargs
)
3209 def RemoveFont(*args
, **kwargs
):
3210 """RemoveFont(Font font)"""
3211 return _gdi
.FontList_RemoveFont(*args
, **kwargs
)
3213 def GetCount(*args
, **kwargs
):
3214 """GetCount() -> int"""
3215 return _gdi
.FontList_GetCount(*args
, **kwargs
)
3218 class FontListPtr(FontList
):
3219 def __init__(self
, this
):
3221 if not hasattr(self
,"thisown"): self
.thisown
= 0
3222 self
.__class
__ = FontList
3223 _gdi
.FontList_swigregister(FontListPtr
)
3225 #---------------------------------------------------------------------------
3227 #---------------------------------------------------------------------------
3229 class Effects(core
.Object
):
3231 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3232 def __init__(self
, *args
, **kwargs
):
3233 """__init__() -> Effects"""
3234 newobj
= _gdi
.new_Effects(*args
, **kwargs
)
3235 self
.this
= newobj
.this
3238 def GetHighlightColour(*args
, **kwargs
):
3239 """GetHighlightColour() -> Colour"""
3240 return _gdi
.Effects_GetHighlightColour(*args
, **kwargs
)
3242 def GetLightShadow(*args
, **kwargs
):
3243 """GetLightShadow() -> Colour"""
3244 return _gdi
.Effects_GetLightShadow(*args
, **kwargs
)
3246 def GetFaceColour(*args
, **kwargs
):
3247 """GetFaceColour() -> Colour"""
3248 return _gdi
.Effects_GetFaceColour(*args
, **kwargs
)
3250 def GetMediumShadow(*args
, **kwargs
):
3251 """GetMediumShadow() -> Colour"""
3252 return _gdi
.Effects_GetMediumShadow(*args
, **kwargs
)
3254 def GetDarkShadow(*args
, **kwargs
):
3255 """GetDarkShadow() -> Colour"""
3256 return _gdi
.Effects_GetDarkShadow(*args
, **kwargs
)
3258 def SetHighlightColour(*args
, **kwargs
):
3259 """SetHighlightColour(Colour c)"""
3260 return _gdi
.Effects_SetHighlightColour(*args
, **kwargs
)
3262 def SetLightShadow(*args
, **kwargs
):
3263 """SetLightShadow(Colour c)"""
3264 return _gdi
.Effects_SetLightShadow(*args
, **kwargs
)
3266 def SetFaceColour(*args
, **kwargs
):
3267 """SetFaceColour(Colour c)"""
3268 return _gdi
.Effects_SetFaceColour(*args
, **kwargs
)
3270 def SetMediumShadow(*args
, **kwargs
):
3271 """SetMediumShadow(Colour c)"""
3272 return _gdi
.Effects_SetMediumShadow(*args
, **kwargs
)
3274 def SetDarkShadow(*args
, **kwargs
):
3275 """SetDarkShadow(Colour c)"""
3276 return _gdi
.Effects_SetDarkShadow(*args
, **kwargs
)
3278 def Set(*args
, **kwargs
):
3280 Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3281 Colour mediumShadow, Colour darkShadow)
3283 return _gdi
.Effects_Set(*args
, **kwargs
)
3285 def DrawSunkenEdge(*args
, **kwargs
):
3286 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3287 return _gdi
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3289 def TileBitmap(*args
, **kwargs
):
3290 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3291 return _gdi
.Effects_TileBitmap(*args
, **kwargs
)
3294 class EffectsPtr(Effects
):
3295 def __init__(self
, this
):
3297 if not hasattr(self
,"thisown"): self
.thisown
= 0
3298 self
.__class
__ = Effects
3299 _gdi
.Effects_swigregister(EffectsPtr
)
3301 NORMAL_FONT
= cvar
.NORMAL_FONT
3302 SMALL_FONT
= cvar
.SMALL_FONT
3303 ITALIC_FONT
= cvar
.ITALIC_FONT
3304 SWISS_FONT
= cvar
.SWISS_FONT
3305 RED_PEN
= cvar
.RED_PEN
3306 CYAN_PEN
= cvar
.CYAN_PEN
3307 GREEN_PEN
= cvar
.GREEN_PEN
3308 BLACK_PEN
= cvar
.BLACK_PEN
3309 WHITE_PEN
= cvar
.WHITE_PEN
3310 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3311 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3312 GREY_PEN
= cvar
.GREY_PEN
3313 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3314 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3315 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3316 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3317 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3318 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3319 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3320 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3321 RED_BRUSH
= cvar
.RED_BRUSH
3322 GREY_BRUSH
= cvar
.GREY_BRUSH
3323 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3324 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3331 LIGHT_GREY
= cvar
.LIGHT_GREY
3332 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3333 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3334 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3335 NullBitmap
= cvar
.NullBitmap
3336 NullIcon
= cvar
.NullIcon
3337 NullCursor
= cvar
.NullCursor
3338 NullPen
= cvar
.NullPen
3339 NullBrush
= cvar
.NullBrush
3340 NullPalette
= cvar
.NullPalette
3341 NullFont
= cvar
.NullFont
3342 NullColour
= cvar
.NullColour
3343 TheFontList
= cvar
.TheFontList
3344 ThePenList
= cvar
.ThePenList
3345 TheBrushList
= cvar
.TheBrushList
3346 TheColourDatabase
= cvar
.TheColourDatabase