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 SetRBG(*args
, **kwargs
):
83 """SetRBG(unsigned long colRGB)"""
84 return _gdi
.Colour_SetRBG(*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 Get(*args
, **kwargs
):
95 """Get() -> PyObject"""
96 return _gdi
.Colour_Get(*args
, **kwargs
)
99 def __str__(self
): return str(self
.asTuple())
100 def __repr__(self
): return 'wxColour' + str(self
.asTuple())
101 def __nonzero__(self
): return self
.Ok()
102 def __getinitargs__(self
): return ()
103 def __getstate__(self
): return self
.asTuple()
104 def __setstate__(self
, state
): self
.Set(*state
)
107 class ColourPtr(Colour
):
108 def __init__(self
, this
):
110 if not hasattr(self
,"thisown"): self
.thisown
= 0
111 self
.__class
__ = Colour
112 _gdi
.Colour_swigregister(ColourPtr
)
114 def NamedColour(*args
, **kwargs
):
115 """NamedColour(wxString colorName) -> Colour"""
116 val
= _gdi
.new_NamedColour(*args
, **kwargs
)
120 def ColourRGB(*args
, **kwargs
):
121 """ColourRGB(unsigned long colRGB) -> Colour"""
122 val
= _gdi
.new_ColourRGB(*args
, **kwargs
)
126 class Palette(GDIObject
):
128 return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
129 def __init__(self
, *args
, **kwargs
):
130 """__init__(int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette"""
131 newobj
= _gdi
.new_Palette(*args
, **kwargs
)
132 self
.this
= newobj
.this
135 def __del__(self
, destroy
=_gdi
.delete_Palette
):
138 if self
.thisown
: destroy(self
)
141 def GetPixel(*args
, **kwargs
):
142 """GetPixel(byte red, byte green, byte blue) -> int"""
143 return _gdi
.Palette_GetPixel(*args
, **kwargs
)
145 def GetRGB(*args
, **kwargs
):
146 """GetRGB(int pixel) -> (R,G,B)"""
147 return _gdi
.Palette_GetRGB(*args
, **kwargs
)
149 def Ok(*args
, **kwargs
):
151 return _gdi
.Palette_Ok(*args
, **kwargs
)
153 def __nonzero__(self
): return self
.Ok()
155 class PalettePtr(Palette
):
156 def __init__(self
, this
):
158 if not hasattr(self
,"thisown"): self
.thisown
= 0
159 self
.__class
__ = Palette
160 _gdi
.Palette_swigregister(PalettePtr
)
162 #---------------------------------------------------------------------------
164 class Pen(GDIObject
):
166 return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
167 def __init__(self
, *args
, **kwargs
):
168 """__init__(Colour colour, int width=1, int style=SOLID) -> Pen"""
169 newobj
= _gdi
.new_Pen(*args
, **kwargs
)
170 self
.this
= newobj
.this
173 def __del__(self
, destroy
=_gdi
.delete_Pen
):
176 if self
.thisown
: destroy(self
)
179 def GetCap(*args
, **kwargs
):
180 """GetCap() -> int"""
181 return _gdi
.Pen_GetCap(*args
, **kwargs
)
183 def GetColour(*args
, **kwargs
):
184 """GetColour() -> Colour"""
185 return _gdi
.Pen_GetColour(*args
, **kwargs
)
187 def GetJoin(*args
, **kwargs
):
188 """GetJoin() -> int"""
189 return _gdi
.Pen_GetJoin(*args
, **kwargs
)
191 def GetStyle(*args
, **kwargs
):
192 """GetStyle() -> int"""
193 return _gdi
.Pen_GetStyle(*args
, **kwargs
)
195 def GetWidth(*args
, **kwargs
):
196 """GetWidth() -> int"""
197 return _gdi
.Pen_GetWidth(*args
, **kwargs
)
199 def Ok(*args
, **kwargs
):
201 return _gdi
.Pen_Ok(*args
, **kwargs
)
203 def SetCap(*args
, **kwargs
):
204 """SetCap(int cap_style)"""
205 return _gdi
.Pen_SetCap(*args
, **kwargs
)
207 def SetColour(*args
, **kwargs
):
208 """SetColour(Colour colour)"""
209 return _gdi
.Pen_SetColour(*args
, **kwargs
)
211 def SetJoin(*args
, **kwargs
):
212 """SetJoin(int join_style)"""
213 return _gdi
.Pen_SetJoin(*args
, **kwargs
)
215 def SetStyle(*args
, **kwargs
):
216 """SetStyle(int style)"""
217 return _gdi
.Pen_SetStyle(*args
, **kwargs
)
219 def SetWidth(*args
, **kwargs
):
220 """SetWidth(int width)"""
221 return _gdi
.Pen_SetWidth(*args
, **kwargs
)
223 def SetDashes(*args
, **kwargs
):
224 """SetDashes(int dashes, wxDash dashes_array)"""
225 return _gdi
.Pen_SetDashes(*args
, **kwargs
)
227 def GetDashes(*args
, **kwargs
):
228 """GetDashes() -> PyObject"""
229 return _gdi
.Pen_GetDashes(*args
, **kwargs
)
231 def __nonzero__(self
): return self
.Ok()
234 def __init__(self
, this
):
236 if not hasattr(self
,"thisown"): self
.thisown
= 0
238 _gdi
.Pen_swigregister(PenPtr
)
242 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
243 def __init__(self
, *args
, **kwargs
):
244 """__init__(Colour colour, int width=1, int style=SOLID) -> PyPen"""
245 newobj
= _gdi
.new_PyPen(*args
, **kwargs
)
246 self
.this
= newobj
.this
249 def __del__(self
, destroy
=_gdi
.delete_PyPen
):
252 if self
.thisown
: destroy(self
)
255 def SetDashes(*args
, **kwargs
):
256 """SetDashes(int dashes, wxDash dashes_array)"""
257 return _gdi
.PyPen_SetDashes(*args
, **kwargs
)
260 class PyPenPtr(PyPen
):
261 def __init__(self
, this
):
263 if not hasattr(self
,"thisown"): self
.thisown
= 0
264 self
.__class
__ = PyPen
265 _gdi
.PyPen_swigregister(PyPenPtr
)
268 #---------------------------------------------------------------------------
270 class Brush(GDIObject
):
272 A brush is a drawing tool for filling in areas. It is used for painting the
273 background of rectangles, ellipses, etc. It has a colour and a style.
276 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
277 def __init__(self
, *args
, **kwargs
):
279 __init__(Colour colour, int style=SOLID) -> Brush
281 Constructs a brush from a colour object and style.
283 newobj
= _gdi
.new_Brush(*args
, **kwargs
)
284 self
.this
= newobj
.this
287 def __del__(self
, destroy
=_gdi
.delete_Brush
):
290 if self
.thisown
: destroy(self
)
293 def SetColour(*args
, **kwargs
):
294 """SetColour(Colour col)"""
295 return _gdi
.Brush_SetColour(*args
, **kwargs
)
297 def SetStyle(*args
, **kwargs
):
298 """SetStyle(int style)"""
299 return _gdi
.Brush_SetStyle(*args
, **kwargs
)
301 def SetStipple(*args
, **kwargs
):
302 """SetStipple(Bitmap stipple)"""
303 return _gdi
.Brush_SetStipple(*args
, **kwargs
)
305 def GetColour(*args
, **kwargs
):
306 """GetColour() -> Colour"""
307 return _gdi
.Brush_GetColour(*args
, **kwargs
)
309 def GetStyle(*args
, **kwargs
):
310 """GetStyle() -> int"""
311 return _gdi
.Brush_GetStyle(*args
, **kwargs
)
313 def GetStipple(*args
, **kwargs
):
314 """GetStipple() -> Bitmap"""
315 return _gdi
.Brush_GetStipple(*args
, **kwargs
)
317 def Ok(*args
, **kwargs
):
319 return _gdi
.Brush_Ok(*args
, **kwargs
)
321 def __nonzero__(self
): return self
.Ok()
323 class BrushPtr(Brush
):
324 def __init__(self
, this
):
326 if not hasattr(self
,"thisown"): self
.thisown
= 0
327 self
.__class
__ = Brush
328 _gdi
.Brush_swigregister(BrushPtr
)
330 class Bitmap(GDIObject
):
332 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
333 def __init__(self
, *args
, **kwargs
):
335 __init__(wxString name, wxBitmapType type=BITMAP_TYPE_ANY) -> Bitmap
337 Loads a bitmap from a file.
339 newobj
= _gdi
.new_Bitmap(*args
, **kwargs
)
340 self
.this
= newobj
.this
343 def __del__(self
, destroy
=_gdi
.delete_Bitmap
):
346 if self
.thisown
: destroy(self
)
349 def Ok(*args
, **kwargs
):
351 return _gdi
.Bitmap_Ok(*args
, **kwargs
)
353 def GetWidth(*args
, **kwargs
):
357 Gets the width of the bitmap in pixels.
359 return _gdi
.Bitmap_GetWidth(*args
, **kwargs
)
361 def GetHeight(*args
, **kwargs
):
365 Gets the height of the bitmap in pixels.
367 return _gdi
.Bitmap_GetHeight(*args
, **kwargs
)
369 def GetDepth(*args
, **kwargs
):
373 Gets the colour depth of the bitmap. A value of 1 indicates a
376 return _gdi
.Bitmap_GetDepth(*args
, **kwargs
)
378 def ConvertToImage(*args
, **kwargs
):
380 ConvertToImage() -> Image
382 Creates a platform-independent image from a platform-dependent bitmap. This
383 preserves mask information so that bitmaps and images can be converted back
384 and forth without loss in that respect.
386 return _gdi
.Bitmap_ConvertToImage(*args
, **kwargs
)
388 def GetMask(*args
, **kwargs
):
392 Gets the associated mask (if any) which may have been loaded from a file
393 or explpicitly set for the bitmap.
395 return _gdi
.Bitmap_GetMask(*args
, **kwargs
)
397 def SetMask(*args
, **kwargs
):
401 Sets the mask for this bitmap.
403 return _gdi
.Bitmap_SetMask(*args
, **kwargs
)
405 def SetMaskColour(*args
, **kwargs
):
407 SetMaskColour(Colour colour)
409 Create a Mask based on a specified colour in the Bitmap.
411 return _gdi
.Bitmap_SetMaskColour(*args
, **kwargs
)
413 def GetSubBitmap(*args
, **kwargs
):
415 GetSubBitmap(Rect rect) -> Bitmap
417 Returns a sub bitmap of the current one as long as the rect belongs entirely
418 to the bitmap. This function preserves bit depth and mask information.
420 return _gdi
.Bitmap_GetSubBitmap(*args
, **kwargs
)
422 def SaveFile(*args
, **kwargs
):
424 SaveFile(wxString name, wxBitmapType type, Palette palette=(wxPalette *) NULL) -> bool
426 Saves a bitmap in the named file.
428 return _gdi
.Bitmap_SaveFile(*args
, **kwargs
)
430 def LoadFile(*args
, **kwargs
):
432 LoadFile(wxString name, wxBitmapType type) -> bool
434 Loads a bitmap from a file
436 return _gdi
.Bitmap_LoadFile(*args
, **kwargs
)
438 def CopyFromIcon(*args
, **kwargs
):
439 """CopyFromIcon(Icon icon) -> bool"""
440 return _gdi
.Bitmap_CopyFromIcon(*args
, **kwargs
)
442 def SetHeight(*args
, **kwargs
):
444 SetHeight(int height)
446 Set the height property (does not affect the bitmap data).
448 return _gdi
.Bitmap_SetHeight(*args
, **kwargs
)
450 def SetWidth(*args
, **kwargs
):
454 Set the width property (does not affect the bitmap data).
456 return _gdi
.Bitmap_SetWidth(*args
, **kwargs
)
458 def SetDepth(*args
, **kwargs
):
462 Set the depth property (does not affect the bitmap data).
464 return _gdi
.Bitmap_SetDepth(*args
, **kwargs
)
466 def __nonzero__(self
): return self
.Ok()
468 class BitmapPtr(Bitmap
):
469 def __init__(self
, this
):
471 if not hasattr(self
,"thisown"): self
.thisown
= 0
472 self
.__class
__ = Bitmap
473 _gdi
.Bitmap_swigregister(BitmapPtr
)
475 def EmptyBitmap(*args
, **kwargs
):
477 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
479 Creates a new bitmap of the given size. A depth of -1 indicates the depth of
480 the current screen or visual. Some platforms only support 1 for monochrome and
481 -1 for the current colour setting.
483 val
= _gdi
.new_EmptyBitmap(*args
, **kwargs
)
487 def BitmapFromIcon(*args
, **kwargs
):
489 BitmapFromIcon(Icon icon) -> Bitmap
491 Create a new bitmap from an Icon object.
493 val
= _gdi
.new_BitmapFromIcon(*args
, **kwargs
)
497 def BitmapFromImage(*args
, **kwargs
):
499 BitmapFromImage(Image image, int depth=-1) -> Bitmap
501 Creates bitmap object from the image. This has to be done to actually display
502 an image as you cannot draw an image directly on a window. The resulting
503 bitmap will use the provided colour depth (or that of the current system if
504 depth is -1) which entails that a colour reduction has to take place.
506 val
= _gdi
.new_BitmapFromImage(*args
, **kwargs
)
510 def BitmapFromXPMData(*args
, **kwargs
):
512 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
514 Construct a Bitmap from a list of strings formatted as XPM data.
516 val
= _gdi
.new_BitmapFromXPMData(*args
, **kwargs
)
520 def BitmapFromBits(*args
, **kwargs
):
522 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
524 Creates a bitmap from an array of bits. You should only use this function for
525 monochrome bitmaps (depth 1) in portable programs: in this case the bits
526 parameter should contain an XBM image. For other bit depths, the behaviour is
529 val
= _gdi
.new_BitmapFromBits(*args
, **kwargs
)
533 class Mask(core
.Object
):
535 This class encapsulates a monochrome mask bitmap, where the masked area is
536 black and the unmasked area is white. When associated with a bitmap and drawn
537 in a device context, the unmasked area of the bitmap will be drawn, and the
538 masked area will not be drawn.
541 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
542 def __init__(self
, *args
, **kwargs
):
544 __init__(Bitmap bitmap) -> Mask
546 Constructs a mask from a monochrome bitmap.
548 newobj
= _gdi
.new_Mask(*args
, **kwargs
)
549 self
.this
= newobj
.this
554 def __init__(self
, this
):
556 if not hasattr(self
,"thisown"): self
.thisown
= 0
557 self
.__class
__ = Mask
558 _gdi
.Mask_swigregister(MaskPtr
)
560 def MaskColour(*args
, **kwargs
):
562 MaskColour(Bitmap bitmap, Colour colour) -> Mask
564 Constructs a mask from a bitmap and a colour in that bitmap that indicates the
567 val
= _gdi
.new_MaskColour(*args
, **kwargs
)
571 class Icon(GDIObject
):
573 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
574 def __init__(self
, *args
, **kwargs
):
575 """__init__(wxString name, long flags, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
576 newobj
= _gdi
.new_Icon(*args
, **kwargs
)
577 self
.this
= newobj
.this
580 def __del__(self
, destroy
=_gdi
.delete_Icon
):
583 if self
.thisown
: destroy(self
)
586 def LoadFile(*args
, **kwargs
):
587 """LoadFile(wxString name, long flags) -> bool"""
588 return _gdi
.Icon_LoadFile(*args
, **kwargs
)
590 def Ok(*args
, **kwargs
):
592 return _gdi
.Icon_Ok(*args
, **kwargs
)
594 def GetWidth(*args
, **kwargs
):
595 """GetWidth() -> int"""
596 return _gdi
.Icon_GetWidth(*args
, **kwargs
)
598 def GetHeight(*args
, **kwargs
):
599 """GetHeight() -> int"""
600 return _gdi
.Icon_GetHeight(*args
, **kwargs
)
602 def GetDepth(*args
, **kwargs
):
603 """GetDepth() -> int"""
604 return _gdi
.Icon_GetDepth(*args
, **kwargs
)
606 def SetWidth(*args
, **kwargs
):
607 """SetWidth(int w)"""
608 return _gdi
.Icon_SetWidth(*args
, **kwargs
)
610 def SetHeight(*args
, **kwargs
):
611 """SetHeight(int h)"""
612 return _gdi
.Icon_SetHeight(*args
, **kwargs
)
614 def SetDepth(*args
, **kwargs
):
615 """SetDepth(int d)"""
616 return _gdi
.Icon_SetDepth(*args
, **kwargs
)
618 def CopyFromBitmap(*args
, **kwargs
):
619 """CopyFromBitmap(Bitmap bmp)"""
620 return _gdi
.Icon_CopyFromBitmap(*args
, **kwargs
)
622 def __nonzero__(self
): return self
.Ok()
625 def __init__(self
, this
):
627 if not hasattr(self
,"thisown"): self
.thisown
= 0
628 self
.__class
__ = Icon
629 _gdi
.Icon_swigregister(IconPtr
)
631 def EmptyIcon(*args
, **kwargs
):
632 """EmptyIcon() -> Icon"""
633 val
= _gdi
.new_EmptyIcon(*args
, **kwargs
)
637 def IconFromLocation(*args
, **kwargs
):
638 """IconFromLocation(IconLocation loc) -> Icon"""
639 val
= _gdi
.new_IconFromLocation(*args
, **kwargs
)
643 def IconFromBitmap(*args
, **kwargs
):
644 """IconFromBitmap(Bitmap bmp) -> Icon"""
645 val
= _gdi
.new_IconFromBitmap(*args
, **kwargs
)
649 def IconFromXPMData(*args
, **kwargs
):
650 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
651 val
= _gdi
.new_IconFromXPMData(*args
, **kwargs
)
655 class IconLocation(object):
657 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
658 def __init__(self
, *args
, **kwargs
):
659 """__init__(wxString filename=&wxPyEmptyString, int num=0) -> IconLocation"""
660 newobj
= _gdi
.new_IconLocation(*args
, **kwargs
)
661 self
.this
= newobj
.this
664 def __del__(self
, destroy
=_gdi
.delete_IconLocation
):
667 if self
.thisown
: destroy(self
)
670 def IsOk(*args
, **kwargs
):
672 return _gdi
.IconLocation_IsOk(*args
, **kwargs
)
674 def __nonzero__(self
): return self
.Ok()
675 def SetFileName(*args
, **kwargs
):
676 """SetFileName(wxString filename)"""
677 return _gdi
.IconLocation_SetFileName(*args
, **kwargs
)
679 def GetFileName(*args
, **kwargs
):
680 """GetFileName() -> wxString"""
681 return _gdi
.IconLocation_GetFileName(*args
, **kwargs
)
683 def SetIndex(*args
, **kwargs
):
684 """SetIndex(int num)"""
685 return _gdi
.IconLocation_SetIndex(*args
, **kwargs
)
687 def GetIndex(*args
, **kwargs
):
688 """GetIndex() -> int"""
689 return _gdi
.IconLocation_GetIndex(*args
, **kwargs
)
692 class IconLocationPtr(IconLocation
):
693 def __init__(self
, this
):
695 if not hasattr(self
,"thisown"): self
.thisown
= 0
696 self
.__class
__ = IconLocation
697 _gdi
.IconLocation_swigregister(IconLocationPtr
)
699 class IconBundle(object):
701 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
702 def __init__(self
, *args
, **kwargs
):
703 """__init__() -> IconBundle"""
704 newobj
= _gdi
.new_IconBundle(*args
, **kwargs
)
705 self
.this
= newobj
.this
708 def __del__(self
, destroy
=_gdi
.delete_IconBundle
):
711 if self
.thisown
: destroy(self
)
714 def AddIcon(*args
, **kwargs
):
715 """AddIcon(Icon icon)"""
716 return _gdi
.IconBundle_AddIcon(*args
, **kwargs
)
718 def AddIconFromFile(*args
, **kwargs
):
719 """AddIconFromFile(wxString file, long type)"""
720 return _gdi
.IconBundle_AddIconFromFile(*args
, **kwargs
)
722 def GetIcon(*args
, **kwargs
):
723 """GetIcon(Size size) -> Icon"""
724 return _gdi
.IconBundle_GetIcon(*args
, **kwargs
)
727 class IconBundlePtr(IconBundle
):
728 def __init__(self
, this
):
730 if not hasattr(self
,"thisown"): self
.thisown
= 0
731 self
.__class
__ = IconBundle
732 _gdi
.IconBundle_swigregister(IconBundlePtr
)
734 def IconBundleFromFile(*args
, **kwargs
):
735 """IconBundleFromFile(wxString file, long type) -> IconBundle"""
736 val
= _gdi
.new_IconBundleFromFile(*args
, **kwargs
)
740 def IconBundleFromIcon(*args
, **kwargs
):
741 """IconBundleFromIcon(Icon icon) -> IconBundle"""
742 val
= _gdi
.new_IconBundleFromIcon(*args
, **kwargs
)
746 class Cursor(GDIObject
):
748 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
749 def __init__(self
, *args
, **kwargs
):
750 """__init__(wxString cursorName, long flags, int hotSpotX=0, int hotSpotY=0) -> Cursor"""
751 newobj
= _gdi
.new_Cursor(*args
, **kwargs
)
752 self
.this
= newobj
.this
755 def __del__(self
, destroy
=_gdi
.delete_Cursor
):
758 if self
.thisown
: destroy(self
)
761 def Ok(*args
, **kwargs
):
763 return _gdi
.Cursor_Ok(*args
, **kwargs
)
765 def __nonzero__(self
): return self
.Ok()
767 class CursorPtr(Cursor
):
768 def __init__(self
, this
):
770 if not hasattr(self
,"thisown"): self
.thisown
= 0
771 self
.__class
__ = Cursor
772 _gdi
.Cursor_swigregister(CursorPtr
)
774 def StockCursor(*args
, **kwargs
):
775 """StockCursor(int id) -> Cursor"""
776 val
= _gdi
.new_StockCursor(*args
, **kwargs
)
780 def CursorFromImage(*args
, **kwargs
):
781 """CursorFromImage(Image image) -> Cursor"""
782 val
= _gdi
.new_CursorFromImage(*args
, **kwargs
)
786 def CursorFromBits(*args
, **kwargs
):
788 CursorFromBits(PyObject bits, int width, int height, int hotSpotX=-1,
789 int hotSpotY=-1, PyObject maskBits=0) -> Cursor
791 val
= _gdi
.new_CursorFromBits(*args
, **kwargs
)
795 #---------------------------------------------------------------------------
797 OutRegion
= _gdi
.OutRegion
798 PartRegion
= _gdi
.PartRegion
799 InRegion
= _gdi
.InRegion
800 class Region(GDIObject
):
802 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
803 def __init__(self
, *args
, **kwargs
):
804 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
805 newobj
= _gdi
.new_Region(*args
, **kwargs
)
806 self
.this
= newobj
.this
809 def __del__(self
, destroy
=_gdi
.delete_Region
):
812 if self
.thisown
: destroy(self
)
815 def Clear(*args
, **kwargs
):
817 return _gdi
.Region_Clear(*args
, **kwargs
)
819 def Offset(*args
, **kwargs
):
820 """Offset(int x, int y) -> bool"""
821 return _gdi
.Region_Offset(*args
, **kwargs
)
823 def Contains(*args
, **kwargs
):
824 """Contains(int x, int y) -> wxRegionContain"""
825 return _gdi
.Region_Contains(*args
, **kwargs
)
827 def ContainsPoint(*args
, **kwargs
):
828 """ContainsPoint(Point pt) -> wxRegionContain"""
829 return _gdi
.Region_ContainsPoint(*args
, **kwargs
)
831 def ContainsRect(*args
, **kwargs
):
832 """ContainsRect(Rect rect) -> wxRegionContain"""
833 return _gdi
.Region_ContainsRect(*args
, **kwargs
)
835 def ContainsRectDim(*args
, **kwargs
):
836 """ContainsRectDim(int x, int y, int w, int h) -> wxRegionContain"""
837 return _gdi
.Region_ContainsRectDim(*args
, **kwargs
)
839 def GetBox(*args
, **kwargs
):
840 """GetBox() -> Rect"""
841 return _gdi
.Region_GetBox(*args
, **kwargs
)
843 def Intersect(*args
, **kwargs
):
844 """Intersect(int x, int y, int width, int height) -> bool"""
845 return _gdi
.Region_Intersect(*args
, **kwargs
)
847 def IntersectRect(*args
, **kwargs
):
848 """IntersectRect(Rect rect) -> bool"""
849 return _gdi
.Region_IntersectRect(*args
, **kwargs
)
851 def IntersectRegion(*args
, **kwargs
):
852 """IntersectRegion(Region region) -> bool"""
853 return _gdi
.Region_IntersectRegion(*args
, **kwargs
)
855 def IsEmpty(*args
, **kwargs
):
856 """IsEmpty() -> bool"""
857 return _gdi
.Region_IsEmpty(*args
, **kwargs
)
859 def Union(*args
, **kwargs
):
860 """Union(int x, int y, int width, int height) -> bool"""
861 return _gdi
.Region_Union(*args
, **kwargs
)
863 def UnionRect(*args
, **kwargs
):
864 """UnionRect(Rect rect) -> bool"""
865 return _gdi
.Region_UnionRect(*args
, **kwargs
)
867 def UnionRegion(*args
, **kwargs
):
868 """UnionRegion(Region region) -> bool"""
869 return _gdi
.Region_UnionRegion(*args
, **kwargs
)
871 def Subtract(*args
, **kwargs
):
872 """Subtract(int x, int y, int width, int height) -> bool"""
873 return _gdi
.Region_Subtract(*args
, **kwargs
)
875 def SubtractRect(*args
, **kwargs
):
876 """SubtractRect(Rect rect) -> bool"""
877 return _gdi
.Region_SubtractRect(*args
, **kwargs
)
879 def SubtractRegion(*args
, **kwargs
):
880 """SubtractRegion(Region region) -> bool"""
881 return _gdi
.Region_SubtractRegion(*args
, **kwargs
)
883 def Xor(*args
, **kwargs
):
884 """Xor(int x, int y, int width, int height) -> bool"""
885 return _gdi
.Region_Xor(*args
, **kwargs
)
887 def XorRect(*args
, **kwargs
):
888 """XorRect(Rect rect) -> bool"""
889 return _gdi
.Region_XorRect(*args
, **kwargs
)
891 def XorRegion(*args
, **kwargs
):
892 """XorRegion(Region region) -> bool"""
893 return _gdi
.Region_XorRegion(*args
, **kwargs
)
895 def ConvertToBitmap(*args
, **kwargs
):
896 """ConvertToBitmap() -> Bitmap"""
897 return _gdi
.Region_ConvertToBitmap(*args
, **kwargs
)
899 def UnionBitmap(*args
, **kwargs
):
900 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
901 return _gdi
.Region_UnionBitmap(*args
, **kwargs
)
904 class RegionPtr(Region
):
905 def __init__(self
, this
):
907 if not hasattr(self
,"thisown"): self
.thisown
= 0
908 self
.__class
__ = Region
909 _gdi
.Region_swigregister(RegionPtr
)
911 def RegionFromBitmap(*args
, **kwargs
):
912 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
913 val
= _gdi
.new_RegionFromBitmap(*args
, **kwargs
)
917 def RegionFromPoints(*args
, **kwargs
):
918 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
919 val
= _gdi
.new_RegionFromPoints(*args
, **kwargs
)
923 class RegionIterator(core
.Object
):
925 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
926 def __init__(self
, *args
, **kwargs
):
927 """__init__(Region region) -> RegionIterator"""
928 newobj
= _gdi
.new_RegionIterator(*args
, **kwargs
)
929 self
.this
= newobj
.this
932 def __del__(self
, destroy
=_gdi
.delete_RegionIterator
):
935 if self
.thisown
: destroy(self
)
938 def GetX(*args
, **kwargs
):
940 return _gdi
.RegionIterator_GetX(*args
, **kwargs
)
942 def GetY(*args
, **kwargs
):
944 return _gdi
.RegionIterator_GetY(*args
, **kwargs
)
946 def GetW(*args
, **kwargs
):
948 return _gdi
.RegionIterator_GetW(*args
, **kwargs
)
950 def GetWidth(*args
, **kwargs
):
951 """GetWidth() -> int"""
952 return _gdi
.RegionIterator_GetWidth(*args
, **kwargs
)
954 def GetH(*args
, **kwargs
):
956 return _gdi
.RegionIterator_GetH(*args
, **kwargs
)
958 def GetHeight(*args
, **kwargs
):
959 """GetHeight() -> int"""
960 return _gdi
.RegionIterator_GetHeight(*args
, **kwargs
)
962 def GetRect(*args
, **kwargs
):
963 """GetRect() -> Rect"""
964 return _gdi
.RegionIterator_GetRect(*args
, **kwargs
)
966 def HaveRects(*args
, **kwargs
):
967 """HaveRects() -> bool"""
968 return _gdi
.RegionIterator_HaveRects(*args
, **kwargs
)
970 def Reset(*args
, **kwargs
):
972 return _gdi
.RegionIterator_Reset(*args
, **kwargs
)
974 def Next(*args
, **kwargs
):
976 return _gdi
.RegionIterator_Next(*args
, **kwargs
)
978 def __nonzero__(*args
, **kwargs
):
979 """__nonzero__() -> bool"""
980 return _gdi
.RegionIterator___nonzero__(*args
, **kwargs
)
983 class RegionIteratorPtr(RegionIterator
):
984 def __init__(self
, this
):
986 if not hasattr(self
,"thisown"): self
.thisown
= 0
987 self
.__class
__ = RegionIterator
988 _gdi
.RegionIterator_swigregister(RegionIteratorPtr
)
990 #---------------------------------------------------------------------------
992 FONTFAMILY_DEFAULT
= _gdi
.FONTFAMILY_DEFAULT
993 FONTFAMILY_DECORATIVE
= _gdi
.FONTFAMILY_DECORATIVE
994 FONTFAMILY_ROMAN
= _gdi
.FONTFAMILY_ROMAN
995 FONTFAMILY_SCRIPT
= _gdi
.FONTFAMILY_SCRIPT
996 FONTFAMILY_SWISS
= _gdi
.FONTFAMILY_SWISS
997 FONTFAMILY_MODERN
= _gdi
.FONTFAMILY_MODERN
998 FONTFAMILY_TELETYPE
= _gdi
.FONTFAMILY_TELETYPE
999 FONTFAMILY_MAX
= _gdi
.FONTFAMILY_MAX
1000 FONTFAMILY_UNKNOWN
= _gdi
.FONTFAMILY_UNKNOWN
1001 FONTSTYLE_NORMAL
= _gdi
.FONTSTYLE_NORMAL
1002 FONTSTYLE_ITALIC
= _gdi
.FONTSTYLE_ITALIC
1003 FONTSTYLE_SLANT
= _gdi
.FONTSTYLE_SLANT
1004 FONTSTYLE_MAX
= _gdi
.FONTSTYLE_MAX
1005 FONTWEIGHT_NORMAL
= _gdi
.FONTWEIGHT_NORMAL
1006 FONTWEIGHT_LIGHT
= _gdi
.FONTWEIGHT_LIGHT
1007 FONTWEIGHT_BOLD
= _gdi
.FONTWEIGHT_BOLD
1008 FONTWEIGHT_MAX
= _gdi
.FONTWEIGHT_MAX
1009 FONTFLAG_DEFAULT
= _gdi
.FONTFLAG_DEFAULT
1010 FONTFLAG_ITALIC
= _gdi
.FONTFLAG_ITALIC
1011 FONTFLAG_SLANT
= _gdi
.FONTFLAG_SLANT
1012 FONTFLAG_LIGHT
= _gdi
.FONTFLAG_LIGHT
1013 FONTFLAG_BOLD
= _gdi
.FONTFLAG_BOLD
1014 FONTFLAG_ANTIALIASED
= _gdi
.FONTFLAG_ANTIALIASED
1015 FONTFLAG_NOT_ANTIALIASED
= _gdi
.FONTFLAG_NOT_ANTIALIASED
1016 FONTFLAG_UNDERLINED
= _gdi
.FONTFLAG_UNDERLINED
1017 FONTFLAG_STRIKETHROUGH
= _gdi
.FONTFLAG_STRIKETHROUGH
1018 FONTFLAG_MASK
= _gdi
.FONTFLAG_MASK
1019 FONTENCODING_SYSTEM
= _gdi
.FONTENCODING_SYSTEM
1020 FONTENCODING_DEFAULT
= _gdi
.FONTENCODING_DEFAULT
1021 FONTENCODING_ISO8859_1
= _gdi
.FONTENCODING_ISO8859_1
1022 FONTENCODING_ISO8859_2
= _gdi
.FONTENCODING_ISO8859_2
1023 FONTENCODING_ISO8859_3
= _gdi
.FONTENCODING_ISO8859_3
1024 FONTENCODING_ISO8859_4
= _gdi
.FONTENCODING_ISO8859_4
1025 FONTENCODING_ISO8859_5
= _gdi
.FONTENCODING_ISO8859_5
1026 FONTENCODING_ISO8859_6
= _gdi
.FONTENCODING_ISO8859_6
1027 FONTENCODING_ISO8859_7
= _gdi
.FONTENCODING_ISO8859_7
1028 FONTENCODING_ISO8859_8
= _gdi
.FONTENCODING_ISO8859_8
1029 FONTENCODING_ISO8859_9
= _gdi
.FONTENCODING_ISO8859_9
1030 FONTENCODING_ISO8859_10
= _gdi
.FONTENCODING_ISO8859_10
1031 FONTENCODING_ISO8859_11
= _gdi
.FONTENCODING_ISO8859_11
1032 FONTENCODING_ISO8859_12
= _gdi
.FONTENCODING_ISO8859_12
1033 FONTENCODING_ISO8859_13
= _gdi
.FONTENCODING_ISO8859_13
1034 FONTENCODING_ISO8859_14
= _gdi
.FONTENCODING_ISO8859_14
1035 FONTENCODING_ISO8859_15
= _gdi
.FONTENCODING_ISO8859_15
1036 FONTENCODING_ISO8859_MAX
= _gdi
.FONTENCODING_ISO8859_MAX
1037 FONTENCODING_KOI8
= _gdi
.FONTENCODING_KOI8
1038 FONTENCODING_ALTERNATIVE
= _gdi
.FONTENCODING_ALTERNATIVE
1039 FONTENCODING_BULGARIAN
= _gdi
.FONTENCODING_BULGARIAN
1040 FONTENCODING_CP437
= _gdi
.FONTENCODING_CP437
1041 FONTENCODING_CP850
= _gdi
.FONTENCODING_CP850
1042 FONTENCODING_CP852
= _gdi
.FONTENCODING_CP852
1043 FONTENCODING_CP855
= _gdi
.FONTENCODING_CP855
1044 FONTENCODING_CP866
= _gdi
.FONTENCODING_CP866
1045 FONTENCODING_CP874
= _gdi
.FONTENCODING_CP874
1046 FONTENCODING_CP932
= _gdi
.FONTENCODING_CP932
1047 FONTENCODING_CP936
= _gdi
.FONTENCODING_CP936
1048 FONTENCODING_CP949
= _gdi
.FONTENCODING_CP949
1049 FONTENCODING_CP950
= _gdi
.FONTENCODING_CP950
1050 FONTENCODING_CP1250
= _gdi
.FONTENCODING_CP1250
1051 FONTENCODING_CP1251
= _gdi
.FONTENCODING_CP1251
1052 FONTENCODING_CP1252
= _gdi
.FONTENCODING_CP1252
1053 FONTENCODING_CP1253
= _gdi
.FONTENCODING_CP1253
1054 FONTENCODING_CP1254
= _gdi
.FONTENCODING_CP1254
1055 FONTENCODING_CP1255
= _gdi
.FONTENCODING_CP1255
1056 FONTENCODING_CP1256
= _gdi
.FONTENCODING_CP1256
1057 FONTENCODING_CP1257
= _gdi
.FONTENCODING_CP1257
1058 FONTENCODING_CP12_MAX
= _gdi
.FONTENCODING_CP12_MAX
1059 FONTENCODING_UTF7
= _gdi
.FONTENCODING_UTF7
1060 FONTENCODING_UTF8
= _gdi
.FONTENCODING_UTF8
1061 FONTENCODING_EUC_JP
= _gdi
.FONTENCODING_EUC_JP
1062 FONTENCODING_UTF16BE
= _gdi
.FONTENCODING_UTF16BE
1063 FONTENCODING_UTF16LE
= _gdi
.FONTENCODING_UTF16LE
1064 FONTENCODING_UTF32BE
= _gdi
.FONTENCODING_UTF32BE
1065 FONTENCODING_UTF32LE
= _gdi
.FONTENCODING_UTF32LE
1066 FONTENCODING_MAX
= _gdi
.FONTENCODING_MAX
1067 FONTENCODING_UTF16
= _gdi
.FONTENCODING_UTF16
1068 FONTENCODING_UTF32
= _gdi
.FONTENCODING_UTF32
1069 FONTENCODING_UNICODE
= _gdi
.FONTENCODING_UNICODE
1070 FONTENCODING_GB2312
= _gdi
.FONTENCODING_GB2312
1071 FONTENCODING_BIG5
= _gdi
.FONTENCODING_BIG5
1072 FONTENCODING_SHIFT_JIS
= _gdi
.FONTENCODING_SHIFT_JIS
1073 #---------------------------------------------------------------------------
1075 class NativeFontInfo(object):
1077 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1078 def __init__(self
, *args
, **kwargs
):
1079 """__init__() -> NativeFontInfo"""
1080 newobj
= _gdi
.new_NativeFontInfo(*args
, **kwargs
)
1081 self
.this
= newobj
.this
1084 def __del__(self
, destroy
=_gdi
.delete_NativeFontInfo
):
1087 if self
.thisown
: destroy(self
)
1090 def Init(*args
, **kwargs
):
1092 return _gdi
.NativeFontInfo_Init(*args
, **kwargs
)
1094 def InitFromFont(*args
, **kwargs
):
1095 """InitFromFont(Font font)"""
1096 return _gdi
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1098 def GetPointSize(*args
, **kwargs
):
1099 """GetPointSize() -> int"""
1100 return _gdi
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1102 def GetStyle(*args
, **kwargs
):
1103 """GetStyle() -> wxFontStyle"""
1104 return _gdi
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1106 def GetWeight(*args
, **kwargs
):
1107 """GetWeight() -> wxFontWeight"""
1108 return _gdi
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1110 def GetUnderlined(*args
, **kwargs
):
1111 """GetUnderlined() -> bool"""
1112 return _gdi
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1114 def GetFaceName(*args
, **kwargs
):
1115 """GetFaceName() -> wxString"""
1116 return _gdi
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1118 def GetFamily(*args
, **kwargs
):
1119 """GetFamily() -> wxFontFamily"""
1120 return _gdi
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1122 def GetEncoding(*args
, **kwargs
):
1123 """GetEncoding() -> wxFontEncoding"""
1124 return _gdi
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1126 def SetPointSize(*args
, **kwargs
):
1127 """SetPointSize(int pointsize)"""
1128 return _gdi
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1130 def SetStyle(*args
, **kwargs
):
1131 """SetStyle(wxFontStyle style)"""
1132 return _gdi
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1134 def SetWeight(*args
, **kwargs
):
1135 """SetWeight(wxFontWeight weight)"""
1136 return _gdi
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1138 def SetUnderlined(*args
, **kwargs
):
1139 """SetUnderlined(bool underlined)"""
1140 return _gdi
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1142 def SetFaceName(*args
, **kwargs
):
1143 """SetFaceName(wxString facename)"""
1144 return _gdi
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1146 def SetFamily(*args
, **kwargs
):
1147 """SetFamily(wxFontFamily family)"""
1148 return _gdi
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1150 def SetEncoding(*args
, **kwargs
):
1151 """SetEncoding(wxFontEncoding encoding)"""
1152 return _gdi
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1154 def FromString(*args
, **kwargs
):
1155 """FromString(wxString s) -> bool"""
1156 return _gdi
.NativeFontInfo_FromString(*args
, **kwargs
)
1158 def ToString(*args
, **kwargs
):
1159 """ToString() -> wxString"""
1160 return _gdi
.NativeFontInfo_ToString(*args
, **kwargs
)
1162 def __str__(*args
, **kwargs
):
1163 """__str__() -> wxString"""
1164 return _gdi
.NativeFontInfo___str__(*args
, **kwargs
)
1166 def FromUserString(*args
, **kwargs
):
1167 """FromUserString(wxString s) -> bool"""
1168 return _gdi
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1170 def ToUserString(*args
, **kwargs
):
1171 """ToUserString() -> wxString"""
1172 return _gdi
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1175 class NativeFontInfoPtr(NativeFontInfo
):
1176 def __init__(self
, this
):
1178 if not hasattr(self
,"thisown"): self
.thisown
= 0
1179 self
.__class
__ = NativeFontInfo
1180 _gdi
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1182 class NativeEncodingInfo(object):
1184 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1185 facename
= property(_gdi
.NativeEncodingInfo_facename_get
, _gdi
.NativeEncodingInfo_facename_set
)
1186 encoding
= property(_gdi
.NativeEncodingInfo_encoding_get
, _gdi
.NativeEncodingInfo_encoding_set
)
1187 def __init__(self
, *args
, **kwargs
):
1188 """__init__() -> NativeEncodingInfo"""
1189 newobj
= _gdi
.new_NativeEncodingInfo(*args
, **kwargs
)
1190 self
.this
= newobj
.this
1193 def __del__(self
, destroy
=_gdi
.delete_NativeEncodingInfo
):
1196 if self
.thisown
: destroy(self
)
1199 def FromString(*args
, **kwargs
):
1200 """FromString(wxString s) -> bool"""
1201 return _gdi
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1203 def ToString(*args
, **kwargs
):
1204 """ToString() -> wxString"""
1205 return _gdi
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1208 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1209 def __init__(self
, this
):
1211 if not hasattr(self
,"thisown"): self
.thisown
= 0
1212 self
.__class
__ = NativeEncodingInfo
1213 _gdi
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1216 def GetNativeFontEncoding(*args
, **kwargs
):
1217 """GetNativeFontEncoding(wxFontEncoding encoding) -> NativeEncodingInfo"""
1218 return _gdi
.GetNativeFontEncoding(*args
, **kwargs
)
1220 def TestFontEncoding(*args
, **kwargs
):
1221 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1222 return _gdi
.TestFontEncoding(*args
, **kwargs
)
1223 #---------------------------------------------------------------------------
1225 class FontMapper(object):
1227 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1228 def __init__(self
, *args
, **kwargs
):
1229 """__init__() -> FontMapper"""
1230 newobj
= _gdi
.new_FontMapper(*args
, **kwargs
)
1231 self
.this
= newobj
.this
1234 def __del__(self
, destroy
=_gdi
.delete_FontMapper
):
1237 if self
.thisown
: destroy(self
)
1240 def Get(*args
, **kwargs
):
1241 """FontMapper.Get() -> FontMapper"""
1242 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1244 Get
= staticmethod(Get
)
1245 def Set(*args
, **kwargs
):
1246 """FontMapper.Set(FontMapper mapper) -> FontMapper"""
1247 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1249 Set
= staticmethod(Set
)
1250 def CharsetToEncoding(*args
, **kwargs
):
1251 """CharsetToEncoding(wxString charset, bool interactive=True) -> wxFontEncoding"""
1252 return _gdi
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1254 def GetSupportedEncodingsCount(*args
, **kwargs
):
1255 """FontMapper.GetSupportedEncodingsCount() -> size_t"""
1256 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1258 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1259 def GetEncoding(*args
, **kwargs
):
1260 """FontMapper.GetEncoding(size_t n) -> wxFontEncoding"""
1261 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1263 GetEncoding
= staticmethod(GetEncoding
)
1264 def GetEncodingName(*args
, **kwargs
):
1265 """FontMapper.GetEncodingName(wxFontEncoding encoding) -> wxString"""
1266 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1268 GetEncodingName
= staticmethod(GetEncodingName
)
1269 def GetEncodingDescription(*args
, **kwargs
):
1270 """FontMapper.GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1271 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1273 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1274 def SetConfig(*args
, **kwargs
):
1275 """SetConfig(wxConfigBase config)"""
1276 return _gdi
.FontMapper_SetConfig(*args
, **kwargs
)
1278 def SetConfigPath(*args
, **kwargs
):
1279 """SetConfigPath(wxString prefix)"""
1280 return _gdi
.FontMapper_SetConfigPath(*args
, **kwargs
)
1282 def GetDefaultConfigPath(*args
, **kwargs
):
1283 """FontMapper.GetDefaultConfigPath() -> wxString"""
1284 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1286 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1287 def GetAltForEncoding(*args
, **kwargs
):
1289 GetAltForEncoding(wxFontEncoding encoding, wxString facename=wxPyEmptyString,
1290 bool interactive=True) -> PyObject
1292 return _gdi
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1294 def IsEncodingAvailable(*args
, **kwargs
):
1295 """IsEncodingAvailable(wxFontEncoding encoding, wxString facename=wxPyEmptyString) -> bool"""
1296 return _gdi
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1298 def SetDialogParent(*args
, **kwargs
):
1299 """SetDialogParent(Window parent)"""
1300 return _gdi
.FontMapper_SetDialogParent(*args
, **kwargs
)
1302 def SetDialogTitle(*args
, **kwargs
):
1303 """SetDialogTitle(wxString title)"""
1304 return _gdi
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1307 class FontMapperPtr(FontMapper
):
1308 def __init__(self
, this
):
1310 if not hasattr(self
,"thisown"): self
.thisown
= 0
1311 self
.__class
__ = FontMapper
1312 _gdi
.FontMapper_swigregister(FontMapperPtr
)
1314 def FontMapper_Get(*args
, **kwargs
):
1315 """FontMapper_Get() -> FontMapper"""
1316 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1318 def FontMapper_Set(*args
, **kwargs
):
1319 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1320 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1322 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1323 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1324 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1326 def FontMapper_GetEncoding(*args
, **kwargs
):
1327 """FontMapper_GetEncoding(size_t n) -> wxFontEncoding"""
1328 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1330 def FontMapper_GetEncodingName(*args
, **kwargs
):
1331 """FontMapper_GetEncodingName(wxFontEncoding encoding) -> wxString"""
1332 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1334 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1335 """FontMapper_GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1336 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1338 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1339 """FontMapper_GetDefaultConfigPath() -> wxString"""
1340 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1342 #---------------------------------------------------------------------------
1344 class Font(GDIObject
):
1346 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1347 def __init__(self
, *args
, **kwargs
):
1349 __init__(int pointSize, int family, int style, int weight, bool underline=False,
1350 wxString face=wxPyEmptyString,
1351 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font
1353 newobj
= _gdi
.new_Font(*args
, **kwargs
)
1354 self
.this
= newobj
.this
1357 def __del__(self
, destroy
=_gdi
.delete_Font
):
1360 if self
.thisown
: destroy(self
)
1363 def Ok(*args
, **kwargs
):
1365 return _gdi
.Font_Ok(*args
, **kwargs
)
1367 def __nonzero__(self
): return self
.Ok()
1368 def __eq__(*args
, **kwargs
):
1369 """__eq__(Font font) -> bool"""
1370 return _gdi
.Font___eq__(*args
, **kwargs
)
1372 def __ne__(*args
, **kwargs
):
1373 """__ne__(Font font) -> bool"""
1374 return _gdi
.Font___ne__(*args
, **kwargs
)
1376 def GetPointSize(*args
, **kwargs
):
1377 """GetPointSize() -> int"""
1378 return _gdi
.Font_GetPointSize(*args
, **kwargs
)
1380 def GetFamily(*args
, **kwargs
):
1381 """GetFamily() -> int"""
1382 return _gdi
.Font_GetFamily(*args
, **kwargs
)
1384 def GetStyle(*args
, **kwargs
):
1385 """GetStyle() -> int"""
1386 return _gdi
.Font_GetStyle(*args
, **kwargs
)
1388 def GetWeight(*args
, **kwargs
):
1389 """GetWeight() -> int"""
1390 return _gdi
.Font_GetWeight(*args
, **kwargs
)
1392 def GetUnderlined(*args
, **kwargs
):
1393 """GetUnderlined() -> bool"""
1394 return _gdi
.Font_GetUnderlined(*args
, **kwargs
)
1396 def GetFaceName(*args
, **kwargs
):
1397 """GetFaceName() -> wxString"""
1398 return _gdi
.Font_GetFaceName(*args
, **kwargs
)
1400 def GetEncoding(*args
, **kwargs
):
1401 """GetEncoding() -> wxFontEncoding"""
1402 return _gdi
.Font_GetEncoding(*args
, **kwargs
)
1404 def GetNativeFontInfo(*args
, **kwargs
):
1405 """GetNativeFontInfo() -> NativeFontInfo"""
1406 return _gdi
.Font_GetNativeFontInfo(*args
, **kwargs
)
1408 def IsFixedWidth(*args
, **kwargs
):
1409 """IsFixedWidth() -> bool"""
1410 return _gdi
.Font_IsFixedWidth(*args
, **kwargs
)
1412 def GetNativeFontInfoDesc(*args
, **kwargs
):
1413 """GetNativeFontInfoDesc() -> wxString"""
1414 return _gdi
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1416 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1417 """GetNativeFontInfoUserDesc() -> wxString"""
1418 return _gdi
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1420 def SetPointSize(*args
, **kwargs
):
1421 """SetPointSize(int pointSize)"""
1422 return _gdi
.Font_SetPointSize(*args
, **kwargs
)
1424 def SetFamily(*args
, **kwargs
):
1425 """SetFamily(int family)"""
1426 return _gdi
.Font_SetFamily(*args
, **kwargs
)
1428 def SetStyle(*args
, **kwargs
):
1429 """SetStyle(int style)"""
1430 return _gdi
.Font_SetStyle(*args
, **kwargs
)
1432 def SetWeight(*args
, **kwargs
):
1433 """SetWeight(int weight)"""
1434 return _gdi
.Font_SetWeight(*args
, **kwargs
)
1436 def SetFaceName(*args
, **kwargs
):
1437 """SetFaceName(wxString faceName)"""
1438 return _gdi
.Font_SetFaceName(*args
, **kwargs
)
1440 def SetUnderlined(*args
, **kwargs
):
1441 """SetUnderlined(bool underlined)"""
1442 return _gdi
.Font_SetUnderlined(*args
, **kwargs
)
1444 def SetEncoding(*args
, **kwargs
):
1445 """SetEncoding(wxFontEncoding encoding)"""
1446 return _gdi
.Font_SetEncoding(*args
, **kwargs
)
1448 def SetNativeFontInfo(*args
, **kwargs
):
1449 """SetNativeFontInfo(NativeFontInfo info)"""
1450 return _gdi
.Font_SetNativeFontInfo(*args
, **kwargs
)
1452 def SetNativeFontInfoFromString(*args
, **kwargs
):
1453 """SetNativeFontInfoFromString(wxString info)"""
1454 return _gdi
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1456 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1457 """SetNativeFontInfoUserDesc(wxString info)"""
1458 return _gdi
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1460 def GetFamilyString(*args
, **kwargs
):
1461 """GetFamilyString() -> wxString"""
1462 return _gdi
.Font_GetFamilyString(*args
, **kwargs
)
1464 def GetStyleString(*args
, **kwargs
):
1465 """GetStyleString() -> wxString"""
1466 return _gdi
.Font_GetStyleString(*args
, **kwargs
)
1468 def GetWeightString(*args
, **kwargs
):
1469 """GetWeightString() -> wxString"""
1470 return _gdi
.Font_GetWeightString(*args
, **kwargs
)
1472 def SetNoAntiAliasing(*args
, **kwargs
):
1473 """SetNoAntiAliasing(bool no=True)"""
1474 return _gdi
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1476 def GetNoAntiAliasing(*args
, **kwargs
):
1477 """GetNoAntiAliasing() -> bool"""
1478 return _gdi
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1480 def GetDefaultEncoding(*args
, **kwargs
):
1481 """Font.GetDefaultEncoding() -> wxFontEncoding"""
1482 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1484 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1485 def SetDefaultEncoding(*args
, **kwargs
):
1486 """Font.SetDefaultEncoding(wxFontEncoding encoding)"""
1487 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1489 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1491 class FontPtr(Font
):
1492 def __init__(self
, this
):
1494 if not hasattr(self
,"thisown"): self
.thisown
= 0
1495 self
.__class
__ = Font
1496 _gdi
.Font_swigregister(FontPtr
)
1498 def FontFromNativeInfo(*args
, **kwargs
):
1499 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1500 val
= _gdi
.new_FontFromNativeInfo(*args
, **kwargs
)
1504 def FontFromNativeInfoString(*args
, **kwargs
):
1505 """FontFromNativeInfoString(wxString info) -> Font"""
1506 val
= _gdi
.new_FontFromNativeInfoString(*args
, **kwargs
)
1510 def Font2(*args
, **kwargs
):
1512 Font2(int pointSize, wxFontFamily family, int flags=FONTFLAG_DEFAULT,
1513 wxString face=wxPyEmptyString, wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font
1515 val
= _gdi
.new_Font2(*args
, **kwargs
)
1519 def Font_GetDefaultEncoding(*args
, **kwargs
):
1520 """Font_GetDefaultEncoding() -> wxFontEncoding"""
1521 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1523 def Font_SetDefaultEncoding(*args
, **kwargs
):
1524 """Font_SetDefaultEncoding(wxFontEncoding encoding)"""
1525 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1527 #---------------------------------------------------------------------------
1529 class FontEnumerator(object):
1531 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1532 def __init__(self
, *args
, **kwargs
):
1533 """__init__() -> FontEnumerator"""
1534 newobj
= _gdi
.new_FontEnumerator(*args
, **kwargs
)
1535 self
.this
= newobj
.this
1538 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1540 def __del__(self
, destroy
=_gdi
.delete_FontEnumerator
):
1543 if self
.thisown
: destroy(self
)
1546 def _setCallbackInfo(*args
, **kwargs
):
1547 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1548 return _gdi
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1550 def EnumerateFacenames(*args
, **kwargs
):
1551 """EnumerateFacenames(wxFontEncoding encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1552 return _gdi
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1554 def EnumerateEncodings(*args
, **kwargs
):
1555 """EnumerateEncodings(wxString facename=wxPyEmptyString) -> bool"""
1556 return _gdi
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1558 def GetEncodings(*args
, **kwargs
):
1559 """GetEncodings() -> PyObject"""
1560 return _gdi
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1562 def GetFacenames(*args
, **kwargs
):
1563 """GetFacenames() -> PyObject"""
1564 return _gdi
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1567 class FontEnumeratorPtr(FontEnumerator
):
1568 def __init__(self
, this
):
1570 if not hasattr(self
,"thisown"): self
.thisown
= 0
1571 self
.__class
__ = FontEnumerator
1572 _gdi
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1574 #---------------------------------------------------------------------------
1576 LANGUAGE_DEFAULT
= _gdi
.LANGUAGE_DEFAULT
1577 LANGUAGE_UNKNOWN
= _gdi
.LANGUAGE_UNKNOWN
1578 LANGUAGE_ABKHAZIAN
= _gdi
.LANGUAGE_ABKHAZIAN
1579 LANGUAGE_AFAR
= _gdi
.LANGUAGE_AFAR
1580 LANGUAGE_AFRIKAANS
= _gdi
.LANGUAGE_AFRIKAANS
1581 LANGUAGE_ALBANIAN
= _gdi
.LANGUAGE_ALBANIAN
1582 LANGUAGE_AMHARIC
= _gdi
.LANGUAGE_AMHARIC
1583 LANGUAGE_ARABIC
= _gdi
.LANGUAGE_ARABIC
1584 LANGUAGE_ARABIC_ALGERIA
= _gdi
.LANGUAGE_ARABIC_ALGERIA
1585 LANGUAGE_ARABIC_BAHRAIN
= _gdi
.LANGUAGE_ARABIC_BAHRAIN
1586 LANGUAGE_ARABIC_EGYPT
= _gdi
.LANGUAGE_ARABIC_EGYPT
1587 LANGUAGE_ARABIC_IRAQ
= _gdi
.LANGUAGE_ARABIC_IRAQ
1588 LANGUAGE_ARABIC_JORDAN
= _gdi
.LANGUAGE_ARABIC_JORDAN
1589 LANGUAGE_ARABIC_KUWAIT
= _gdi
.LANGUAGE_ARABIC_KUWAIT
1590 LANGUAGE_ARABIC_LEBANON
= _gdi
.LANGUAGE_ARABIC_LEBANON
1591 LANGUAGE_ARABIC_LIBYA
= _gdi
.LANGUAGE_ARABIC_LIBYA
1592 LANGUAGE_ARABIC_MOROCCO
= _gdi
.LANGUAGE_ARABIC_MOROCCO
1593 LANGUAGE_ARABIC_OMAN
= _gdi
.LANGUAGE_ARABIC_OMAN
1594 LANGUAGE_ARABIC_QATAR
= _gdi
.LANGUAGE_ARABIC_QATAR
1595 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi
.LANGUAGE_ARABIC_SAUDI_ARABIA
1596 LANGUAGE_ARABIC_SUDAN
= _gdi
.LANGUAGE_ARABIC_SUDAN
1597 LANGUAGE_ARABIC_SYRIA
= _gdi
.LANGUAGE_ARABIC_SYRIA
1598 LANGUAGE_ARABIC_TUNISIA
= _gdi
.LANGUAGE_ARABIC_TUNISIA
1599 LANGUAGE_ARABIC_UAE
= _gdi
.LANGUAGE_ARABIC_UAE
1600 LANGUAGE_ARABIC_YEMEN
= _gdi
.LANGUAGE_ARABIC_YEMEN
1601 LANGUAGE_ARMENIAN
= _gdi
.LANGUAGE_ARMENIAN
1602 LANGUAGE_ASSAMESE
= _gdi
.LANGUAGE_ASSAMESE
1603 LANGUAGE_AYMARA
= _gdi
.LANGUAGE_AYMARA
1604 LANGUAGE_AZERI
= _gdi
.LANGUAGE_AZERI
1605 LANGUAGE_AZERI_CYRILLIC
= _gdi
.LANGUAGE_AZERI_CYRILLIC
1606 LANGUAGE_AZERI_LATIN
= _gdi
.LANGUAGE_AZERI_LATIN
1607 LANGUAGE_BASHKIR
= _gdi
.LANGUAGE_BASHKIR
1608 LANGUAGE_BASQUE
= _gdi
.LANGUAGE_BASQUE
1609 LANGUAGE_BELARUSIAN
= _gdi
.LANGUAGE_BELARUSIAN
1610 LANGUAGE_BENGALI
= _gdi
.LANGUAGE_BENGALI
1611 LANGUAGE_BHUTANI
= _gdi
.LANGUAGE_BHUTANI
1612 LANGUAGE_BIHARI
= _gdi
.LANGUAGE_BIHARI
1613 LANGUAGE_BISLAMA
= _gdi
.LANGUAGE_BISLAMA
1614 LANGUAGE_BRETON
= _gdi
.LANGUAGE_BRETON
1615 LANGUAGE_BULGARIAN
= _gdi
.LANGUAGE_BULGARIAN
1616 LANGUAGE_BURMESE
= _gdi
.LANGUAGE_BURMESE
1617 LANGUAGE_CAMBODIAN
= _gdi
.LANGUAGE_CAMBODIAN
1618 LANGUAGE_CATALAN
= _gdi
.LANGUAGE_CATALAN
1619 LANGUAGE_CHINESE
= _gdi
.LANGUAGE_CHINESE
1620 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi
.LANGUAGE_CHINESE_SIMPLIFIED
1621 LANGUAGE_CHINESE_TRADITIONAL
= _gdi
.LANGUAGE_CHINESE_TRADITIONAL
1622 LANGUAGE_CHINESE_HONGKONG
= _gdi
.LANGUAGE_CHINESE_HONGKONG
1623 LANGUAGE_CHINESE_MACAU
= _gdi
.LANGUAGE_CHINESE_MACAU
1624 LANGUAGE_CHINESE_SINGAPORE
= _gdi
.LANGUAGE_CHINESE_SINGAPORE
1625 LANGUAGE_CHINESE_TAIWAN
= _gdi
.LANGUAGE_CHINESE_TAIWAN
1626 LANGUAGE_CORSICAN
= _gdi
.LANGUAGE_CORSICAN
1627 LANGUAGE_CROATIAN
= _gdi
.LANGUAGE_CROATIAN
1628 LANGUAGE_CZECH
= _gdi
.LANGUAGE_CZECH
1629 LANGUAGE_DANISH
= _gdi
.LANGUAGE_DANISH
1630 LANGUAGE_DUTCH
= _gdi
.LANGUAGE_DUTCH
1631 LANGUAGE_DUTCH_BELGIAN
= _gdi
.LANGUAGE_DUTCH_BELGIAN
1632 LANGUAGE_ENGLISH
= _gdi
.LANGUAGE_ENGLISH
1633 LANGUAGE_ENGLISH_UK
= _gdi
.LANGUAGE_ENGLISH_UK
1634 LANGUAGE_ENGLISH_US
= _gdi
.LANGUAGE_ENGLISH_US
1635 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi
.LANGUAGE_ENGLISH_AUSTRALIA
1636 LANGUAGE_ENGLISH_BELIZE
= _gdi
.LANGUAGE_ENGLISH_BELIZE
1637 LANGUAGE_ENGLISH_BOTSWANA
= _gdi
.LANGUAGE_ENGLISH_BOTSWANA
1638 LANGUAGE_ENGLISH_CANADA
= _gdi
.LANGUAGE_ENGLISH_CANADA
1639 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi
.LANGUAGE_ENGLISH_CARIBBEAN
1640 LANGUAGE_ENGLISH_DENMARK
= _gdi
.LANGUAGE_ENGLISH_DENMARK
1641 LANGUAGE_ENGLISH_EIRE
= _gdi
.LANGUAGE_ENGLISH_EIRE
1642 LANGUAGE_ENGLISH_JAMAICA
= _gdi
.LANGUAGE_ENGLISH_JAMAICA
1643 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi
.LANGUAGE_ENGLISH_NEW_ZEALAND
1644 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi
.LANGUAGE_ENGLISH_PHILIPPINES
1645 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1646 LANGUAGE_ENGLISH_TRINIDAD
= _gdi
.LANGUAGE_ENGLISH_TRINIDAD
1647 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi
.LANGUAGE_ENGLISH_ZIMBABWE
1648 LANGUAGE_ESPERANTO
= _gdi
.LANGUAGE_ESPERANTO
1649 LANGUAGE_ESTONIAN
= _gdi
.LANGUAGE_ESTONIAN
1650 LANGUAGE_FAEROESE
= _gdi
.LANGUAGE_FAEROESE
1651 LANGUAGE_FARSI
= _gdi
.LANGUAGE_FARSI
1652 LANGUAGE_FIJI
= _gdi
.LANGUAGE_FIJI
1653 LANGUAGE_FINNISH
= _gdi
.LANGUAGE_FINNISH
1654 LANGUAGE_FRENCH
= _gdi
.LANGUAGE_FRENCH
1655 LANGUAGE_FRENCH_BELGIAN
= _gdi
.LANGUAGE_FRENCH_BELGIAN
1656 LANGUAGE_FRENCH_CANADIAN
= _gdi
.LANGUAGE_FRENCH_CANADIAN
1657 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi
.LANGUAGE_FRENCH_LUXEMBOURG
1658 LANGUAGE_FRENCH_MONACO
= _gdi
.LANGUAGE_FRENCH_MONACO
1659 LANGUAGE_FRENCH_SWISS
= _gdi
.LANGUAGE_FRENCH_SWISS
1660 LANGUAGE_FRISIAN
= _gdi
.LANGUAGE_FRISIAN
1661 LANGUAGE_GALICIAN
= _gdi
.LANGUAGE_GALICIAN
1662 LANGUAGE_GEORGIAN
= _gdi
.LANGUAGE_GEORGIAN
1663 LANGUAGE_GERMAN
= _gdi
.LANGUAGE_GERMAN
1664 LANGUAGE_GERMAN_AUSTRIAN
= _gdi
.LANGUAGE_GERMAN_AUSTRIAN
1665 LANGUAGE_GERMAN_BELGIUM
= _gdi
.LANGUAGE_GERMAN_BELGIUM
1666 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi
.LANGUAGE_GERMAN_LIECHTENSTEIN
1667 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi
.LANGUAGE_GERMAN_LUXEMBOURG
1668 LANGUAGE_GERMAN_SWISS
= _gdi
.LANGUAGE_GERMAN_SWISS
1669 LANGUAGE_GREEK
= _gdi
.LANGUAGE_GREEK
1670 LANGUAGE_GREENLANDIC
= _gdi
.LANGUAGE_GREENLANDIC
1671 LANGUAGE_GUARANI
= _gdi
.LANGUAGE_GUARANI
1672 LANGUAGE_GUJARATI
= _gdi
.LANGUAGE_GUJARATI
1673 LANGUAGE_HAUSA
= _gdi
.LANGUAGE_HAUSA
1674 LANGUAGE_HEBREW
= _gdi
.LANGUAGE_HEBREW
1675 LANGUAGE_HINDI
= _gdi
.LANGUAGE_HINDI
1676 LANGUAGE_HUNGARIAN
= _gdi
.LANGUAGE_HUNGARIAN
1677 LANGUAGE_ICELANDIC
= _gdi
.LANGUAGE_ICELANDIC
1678 LANGUAGE_INDONESIAN
= _gdi
.LANGUAGE_INDONESIAN
1679 LANGUAGE_INTERLINGUA
= _gdi
.LANGUAGE_INTERLINGUA
1680 LANGUAGE_INTERLINGUE
= _gdi
.LANGUAGE_INTERLINGUE
1681 LANGUAGE_INUKTITUT
= _gdi
.LANGUAGE_INUKTITUT
1682 LANGUAGE_INUPIAK
= _gdi
.LANGUAGE_INUPIAK
1683 LANGUAGE_IRISH
= _gdi
.LANGUAGE_IRISH
1684 LANGUAGE_ITALIAN
= _gdi
.LANGUAGE_ITALIAN
1685 LANGUAGE_ITALIAN_SWISS
= _gdi
.LANGUAGE_ITALIAN_SWISS
1686 LANGUAGE_JAPANESE
= _gdi
.LANGUAGE_JAPANESE
1687 LANGUAGE_JAVANESE
= _gdi
.LANGUAGE_JAVANESE
1688 LANGUAGE_KANNADA
= _gdi
.LANGUAGE_KANNADA
1689 LANGUAGE_KASHMIRI
= _gdi
.LANGUAGE_KASHMIRI
1690 LANGUAGE_KASHMIRI_INDIA
= _gdi
.LANGUAGE_KASHMIRI_INDIA
1691 LANGUAGE_KAZAKH
= _gdi
.LANGUAGE_KAZAKH
1692 LANGUAGE_KERNEWEK
= _gdi
.LANGUAGE_KERNEWEK
1693 LANGUAGE_KINYARWANDA
= _gdi
.LANGUAGE_KINYARWANDA
1694 LANGUAGE_KIRGHIZ
= _gdi
.LANGUAGE_KIRGHIZ
1695 LANGUAGE_KIRUNDI
= _gdi
.LANGUAGE_KIRUNDI
1696 LANGUAGE_KONKANI
= _gdi
.LANGUAGE_KONKANI
1697 LANGUAGE_KOREAN
= _gdi
.LANGUAGE_KOREAN
1698 LANGUAGE_KURDISH
= _gdi
.LANGUAGE_KURDISH
1699 LANGUAGE_LAOTHIAN
= _gdi
.LANGUAGE_LAOTHIAN
1700 LANGUAGE_LATIN
= _gdi
.LANGUAGE_LATIN
1701 LANGUAGE_LATVIAN
= _gdi
.LANGUAGE_LATVIAN
1702 LANGUAGE_LINGALA
= _gdi
.LANGUAGE_LINGALA
1703 LANGUAGE_LITHUANIAN
= _gdi
.LANGUAGE_LITHUANIAN
1704 LANGUAGE_MACEDONIAN
= _gdi
.LANGUAGE_MACEDONIAN
1705 LANGUAGE_MALAGASY
= _gdi
.LANGUAGE_MALAGASY
1706 LANGUAGE_MALAY
= _gdi
.LANGUAGE_MALAY
1707 LANGUAGE_MALAYALAM
= _gdi
.LANGUAGE_MALAYALAM
1708 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1709 LANGUAGE_MALAY_MALAYSIA
= _gdi
.LANGUAGE_MALAY_MALAYSIA
1710 LANGUAGE_MALTESE
= _gdi
.LANGUAGE_MALTESE
1711 LANGUAGE_MANIPURI
= _gdi
.LANGUAGE_MANIPURI
1712 LANGUAGE_MAORI
= _gdi
.LANGUAGE_MAORI
1713 LANGUAGE_MARATHI
= _gdi
.LANGUAGE_MARATHI
1714 LANGUAGE_MOLDAVIAN
= _gdi
.LANGUAGE_MOLDAVIAN
1715 LANGUAGE_MONGOLIAN
= _gdi
.LANGUAGE_MONGOLIAN
1716 LANGUAGE_NAURU
= _gdi
.LANGUAGE_NAURU
1717 LANGUAGE_NEPALI
= _gdi
.LANGUAGE_NEPALI
1718 LANGUAGE_NEPALI_INDIA
= _gdi
.LANGUAGE_NEPALI_INDIA
1719 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi
.LANGUAGE_NORWEGIAN_BOKMAL
1720 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi
.LANGUAGE_NORWEGIAN_NYNORSK
1721 LANGUAGE_OCCITAN
= _gdi
.LANGUAGE_OCCITAN
1722 LANGUAGE_ORIYA
= _gdi
.LANGUAGE_ORIYA
1723 LANGUAGE_OROMO
= _gdi
.LANGUAGE_OROMO
1724 LANGUAGE_PASHTO
= _gdi
.LANGUAGE_PASHTO
1725 LANGUAGE_POLISH
= _gdi
.LANGUAGE_POLISH
1726 LANGUAGE_PORTUGUESE
= _gdi
.LANGUAGE_PORTUGUESE
1727 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi
.LANGUAGE_PORTUGUESE_BRAZILIAN
1728 LANGUAGE_PUNJABI
= _gdi
.LANGUAGE_PUNJABI
1729 LANGUAGE_QUECHUA
= _gdi
.LANGUAGE_QUECHUA
1730 LANGUAGE_RHAETO_ROMANCE
= _gdi
.LANGUAGE_RHAETO_ROMANCE
1731 LANGUAGE_ROMANIAN
= _gdi
.LANGUAGE_ROMANIAN
1732 LANGUAGE_RUSSIAN
= _gdi
.LANGUAGE_RUSSIAN
1733 LANGUAGE_RUSSIAN_UKRAINE
= _gdi
.LANGUAGE_RUSSIAN_UKRAINE
1734 LANGUAGE_SAMOAN
= _gdi
.LANGUAGE_SAMOAN
1735 LANGUAGE_SANGHO
= _gdi
.LANGUAGE_SANGHO
1736 LANGUAGE_SANSKRIT
= _gdi
.LANGUAGE_SANSKRIT
1737 LANGUAGE_SCOTS_GAELIC
= _gdi
.LANGUAGE_SCOTS_GAELIC
1738 LANGUAGE_SERBIAN
= _gdi
.LANGUAGE_SERBIAN
1739 LANGUAGE_SERBIAN_CYRILLIC
= _gdi
.LANGUAGE_SERBIAN_CYRILLIC
1740 LANGUAGE_SERBIAN_LATIN
= _gdi
.LANGUAGE_SERBIAN_LATIN
1741 LANGUAGE_SERBO_CROATIAN
= _gdi
.LANGUAGE_SERBO_CROATIAN
1742 LANGUAGE_SESOTHO
= _gdi
.LANGUAGE_SESOTHO
1743 LANGUAGE_SETSWANA
= _gdi
.LANGUAGE_SETSWANA
1744 LANGUAGE_SHONA
= _gdi
.LANGUAGE_SHONA
1745 LANGUAGE_SINDHI
= _gdi
.LANGUAGE_SINDHI
1746 LANGUAGE_SINHALESE
= _gdi
.LANGUAGE_SINHALESE
1747 LANGUAGE_SISWATI
= _gdi
.LANGUAGE_SISWATI
1748 LANGUAGE_SLOVAK
= _gdi
.LANGUAGE_SLOVAK
1749 LANGUAGE_SLOVENIAN
= _gdi
.LANGUAGE_SLOVENIAN
1750 LANGUAGE_SOMALI
= _gdi
.LANGUAGE_SOMALI
1751 LANGUAGE_SPANISH
= _gdi
.LANGUAGE_SPANISH
1752 LANGUAGE_SPANISH_ARGENTINA
= _gdi
.LANGUAGE_SPANISH_ARGENTINA
1753 LANGUAGE_SPANISH_BOLIVIA
= _gdi
.LANGUAGE_SPANISH_BOLIVIA
1754 LANGUAGE_SPANISH_CHILE
= _gdi
.LANGUAGE_SPANISH_CHILE
1755 LANGUAGE_SPANISH_COLOMBIA
= _gdi
.LANGUAGE_SPANISH_COLOMBIA
1756 LANGUAGE_SPANISH_COSTA_RICA
= _gdi
.LANGUAGE_SPANISH_COSTA_RICA
1757 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
1758 LANGUAGE_SPANISH_ECUADOR
= _gdi
.LANGUAGE_SPANISH_ECUADOR
1759 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi
.LANGUAGE_SPANISH_EL_SALVADOR
1760 LANGUAGE_SPANISH_GUATEMALA
= _gdi
.LANGUAGE_SPANISH_GUATEMALA
1761 LANGUAGE_SPANISH_HONDURAS
= _gdi
.LANGUAGE_SPANISH_HONDURAS
1762 LANGUAGE_SPANISH_MEXICAN
= _gdi
.LANGUAGE_SPANISH_MEXICAN
1763 LANGUAGE_SPANISH_MODERN
= _gdi
.LANGUAGE_SPANISH_MODERN
1764 LANGUAGE_SPANISH_NICARAGUA
= _gdi
.LANGUAGE_SPANISH_NICARAGUA
1765 LANGUAGE_SPANISH_PANAMA
= _gdi
.LANGUAGE_SPANISH_PANAMA
1766 LANGUAGE_SPANISH_PARAGUAY
= _gdi
.LANGUAGE_SPANISH_PARAGUAY
1767 LANGUAGE_SPANISH_PERU
= _gdi
.LANGUAGE_SPANISH_PERU
1768 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi
.LANGUAGE_SPANISH_PUERTO_RICO
1769 LANGUAGE_SPANISH_URUGUAY
= _gdi
.LANGUAGE_SPANISH_URUGUAY
1770 LANGUAGE_SPANISH_US
= _gdi
.LANGUAGE_SPANISH_US
1771 LANGUAGE_SPANISH_VENEZUELA
= _gdi
.LANGUAGE_SPANISH_VENEZUELA
1772 LANGUAGE_SUNDANESE
= _gdi
.LANGUAGE_SUNDANESE
1773 LANGUAGE_SWAHILI
= _gdi
.LANGUAGE_SWAHILI
1774 LANGUAGE_SWEDISH
= _gdi
.LANGUAGE_SWEDISH
1775 LANGUAGE_SWEDISH_FINLAND
= _gdi
.LANGUAGE_SWEDISH_FINLAND
1776 LANGUAGE_TAGALOG
= _gdi
.LANGUAGE_TAGALOG
1777 LANGUAGE_TAJIK
= _gdi
.LANGUAGE_TAJIK
1778 LANGUAGE_TAMIL
= _gdi
.LANGUAGE_TAMIL
1779 LANGUAGE_TATAR
= _gdi
.LANGUAGE_TATAR
1780 LANGUAGE_TELUGU
= _gdi
.LANGUAGE_TELUGU
1781 LANGUAGE_THAI
= _gdi
.LANGUAGE_THAI
1782 LANGUAGE_TIBETAN
= _gdi
.LANGUAGE_TIBETAN
1783 LANGUAGE_TIGRINYA
= _gdi
.LANGUAGE_TIGRINYA
1784 LANGUAGE_TONGA
= _gdi
.LANGUAGE_TONGA
1785 LANGUAGE_TSONGA
= _gdi
.LANGUAGE_TSONGA
1786 LANGUAGE_TURKISH
= _gdi
.LANGUAGE_TURKISH
1787 LANGUAGE_TURKMEN
= _gdi
.LANGUAGE_TURKMEN
1788 LANGUAGE_TWI
= _gdi
.LANGUAGE_TWI
1789 LANGUAGE_UIGHUR
= _gdi
.LANGUAGE_UIGHUR
1790 LANGUAGE_UKRAINIAN
= _gdi
.LANGUAGE_UKRAINIAN
1791 LANGUAGE_URDU
= _gdi
.LANGUAGE_URDU
1792 LANGUAGE_URDU_INDIA
= _gdi
.LANGUAGE_URDU_INDIA
1793 LANGUAGE_URDU_PAKISTAN
= _gdi
.LANGUAGE_URDU_PAKISTAN
1794 LANGUAGE_UZBEK
= _gdi
.LANGUAGE_UZBEK
1795 LANGUAGE_UZBEK_CYRILLIC
= _gdi
.LANGUAGE_UZBEK_CYRILLIC
1796 LANGUAGE_UZBEK_LATIN
= _gdi
.LANGUAGE_UZBEK_LATIN
1797 LANGUAGE_VIETNAMESE
= _gdi
.LANGUAGE_VIETNAMESE
1798 LANGUAGE_VOLAPUK
= _gdi
.LANGUAGE_VOLAPUK
1799 LANGUAGE_WELSH
= _gdi
.LANGUAGE_WELSH
1800 LANGUAGE_WOLOF
= _gdi
.LANGUAGE_WOLOF
1801 LANGUAGE_XHOSA
= _gdi
.LANGUAGE_XHOSA
1802 LANGUAGE_YIDDISH
= _gdi
.LANGUAGE_YIDDISH
1803 LANGUAGE_YORUBA
= _gdi
.LANGUAGE_YORUBA
1804 LANGUAGE_ZHUANG
= _gdi
.LANGUAGE_ZHUANG
1805 LANGUAGE_ZULU
= _gdi
.LANGUAGE_ZULU
1806 LANGUAGE_USER_DEFINED
= _gdi
.LANGUAGE_USER_DEFINED
1807 class LanguageInfo(object):
1808 def __init__(self
): raise RuntimeError, "No constructor defined"
1810 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1811 Language
= property(_gdi
.LanguageInfo_Language_get
, _gdi
.LanguageInfo_Language_set
)
1812 CanonicalName
= property(_gdi
.LanguageInfo_CanonicalName_get
, _gdi
.LanguageInfo_CanonicalName_set
)
1813 Description
= property(_gdi
.LanguageInfo_Description_get
, _gdi
.LanguageInfo_Description_set
)
1815 class LanguageInfoPtr(LanguageInfo
):
1816 def __init__(self
, this
):
1818 if not hasattr(self
,"thisown"): self
.thisown
= 0
1819 self
.__class
__ = LanguageInfo
1820 _gdi
.LanguageInfo_swigregister(LanguageInfoPtr
)
1822 LOCALE_CAT_NUMBER
= _gdi
.LOCALE_CAT_NUMBER
1823 LOCALE_CAT_DATE
= _gdi
.LOCALE_CAT_DATE
1824 LOCALE_CAT_MONEY
= _gdi
.LOCALE_CAT_MONEY
1825 LOCALE_CAT_MAX
= _gdi
.LOCALE_CAT_MAX
1826 LOCALE_THOUSANDS_SEP
= _gdi
.LOCALE_THOUSANDS_SEP
1827 LOCALE_DECIMAL_POINT
= _gdi
.LOCALE_DECIMAL_POINT
1828 LOCALE_LOAD_DEFAULT
= _gdi
.LOCALE_LOAD_DEFAULT
1829 LOCALE_CONV_ENCODING
= _gdi
.LOCALE_CONV_ENCODING
1830 class Locale(object):
1832 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1833 def __init__(self
, *args
, **kwargs
):
1834 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
1835 newobj
= _gdi
.new_Locale(*args
, **kwargs
)
1836 self
.this
= newobj
.this
1839 def __del__(self
, destroy
=_gdi
.delete_Locale
):
1842 if self
.thisown
: destroy(self
)
1845 def Init1(*args
, **kwargs
):
1847 Init1(wxString szName, wxString szShort=wxPyEmptyString,
1848 wxString szLocale=wxPyEmptyString, bool bLoadDefault=True,
1849 bool bConvertEncoding=False) -> bool
1851 return _gdi
.Locale_Init1(*args
, **kwargs
)
1853 def Init2(*args
, **kwargs
):
1854 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
1855 return _gdi
.Locale_Init2(*args
, **kwargs
)
1857 def Init(self
, *_args
, **_kwargs
):
1858 if type(_args
[0]) in [type(''), type(u
'')]:
1859 val
= self
.Init1(*_args
, **_kwargs
)
1861 val
= self
.Init2(*_args
, **_kwargs
)
1864 def GetSystemLanguage(*args
, **kwargs
):
1865 """Locale.GetSystemLanguage() -> int"""
1866 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1868 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
1869 def GetSystemEncoding(*args
, **kwargs
):
1870 """Locale.GetSystemEncoding() -> wxFontEncoding"""
1871 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1873 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
1874 def GetSystemEncodingName(*args
, **kwargs
):
1875 """Locale.GetSystemEncodingName() -> wxString"""
1876 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1878 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
1879 def IsOk(*args
, **kwargs
):
1880 """IsOk() -> bool"""
1881 return _gdi
.Locale_IsOk(*args
, **kwargs
)
1883 def __nonzero__(self
): return self
.IsOk()
1884 def GetLocale(*args
, **kwargs
):
1885 """GetLocale() -> wxString"""
1886 return _gdi
.Locale_GetLocale(*args
, **kwargs
)
1888 def GetLanguage(*args
, **kwargs
):
1889 """GetLanguage() -> int"""
1890 return _gdi
.Locale_GetLanguage(*args
, **kwargs
)
1892 def GetSysName(*args
, **kwargs
):
1893 """GetSysName() -> wxString"""
1894 return _gdi
.Locale_GetSysName(*args
, **kwargs
)
1896 def GetCanonicalName(*args
, **kwargs
):
1897 """GetCanonicalName() -> wxString"""
1898 return _gdi
.Locale_GetCanonicalName(*args
, **kwargs
)
1900 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
1901 """Locale.AddCatalogLookupPathPrefix(wxString prefix)"""
1902 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1904 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
1905 def AddCatalog(*args
, **kwargs
):
1906 """AddCatalog(wxString szDomain) -> bool"""
1907 return _gdi
.Locale_AddCatalog(*args
, **kwargs
)
1909 def IsLoaded(*args
, **kwargs
):
1910 """IsLoaded(wxString szDomain) -> bool"""
1911 return _gdi
.Locale_IsLoaded(*args
, **kwargs
)
1913 def GetLanguageInfo(*args
, **kwargs
):
1914 """Locale.GetLanguageInfo(int lang) -> LanguageInfo"""
1915 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1917 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
1918 def GetLanguageName(*args
, **kwargs
):
1919 """Locale.GetLanguageName(int lang) -> wxString"""
1920 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1922 GetLanguageName
= staticmethod(GetLanguageName
)
1923 def FindLanguageInfo(*args
, **kwargs
):
1924 """Locale.FindLanguageInfo(wxString locale) -> LanguageInfo"""
1925 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1927 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
1928 def AddLanguage(*args
, **kwargs
):
1929 """Locale.AddLanguage(LanguageInfo info)"""
1930 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1932 AddLanguage
= staticmethod(AddLanguage
)
1933 def GetString(*args
, **kwargs
):
1934 """GetString(wxString szOrigString, wxString szDomain=wxPyEmptyString) -> wxString"""
1935 return _gdi
.Locale_GetString(*args
, **kwargs
)
1937 def GetName(*args
, **kwargs
):
1938 """GetName() -> wxString"""
1939 return _gdi
.Locale_GetName(*args
, **kwargs
)
1942 class LocalePtr(Locale
):
1943 def __init__(self
, this
):
1945 if not hasattr(self
,"thisown"): self
.thisown
= 0
1946 self
.__class
__ = Locale
1947 _gdi
.Locale_swigregister(LocalePtr
)
1949 def Locale_GetSystemLanguage(*args
, **kwargs
):
1950 """Locale_GetSystemLanguage() -> int"""
1951 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1953 def Locale_GetSystemEncoding(*args
, **kwargs
):
1954 """Locale_GetSystemEncoding() -> wxFontEncoding"""
1955 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1957 def Locale_GetSystemEncodingName(*args
, **kwargs
):
1958 """Locale_GetSystemEncodingName() -> wxString"""
1959 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1961 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
1962 """Locale_AddCatalogLookupPathPrefix(wxString prefix)"""
1963 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1965 def Locale_GetLanguageInfo(*args
, **kwargs
):
1966 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
1967 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1969 def Locale_GetLanguageName(*args
, **kwargs
):
1970 """Locale_GetLanguageName(int lang) -> wxString"""
1971 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1973 def Locale_FindLanguageInfo(*args
, **kwargs
):
1974 """Locale_FindLanguageInfo(wxString locale) -> LanguageInfo"""
1975 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1977 def Locale_AddLanguage(*args
, **kwargs
):
1978 """Locale_AddLanguage(LanguageInfo info)"""
1979 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1982 def GetLocale(*args
, **kwargs
):
1983 """GetLocale() -> Locale"""
1984 return _gdi
.GetLocale(*args
, **kwargs
)
1985 #---------------------------------------------------------------------------
1987 CONVERT_STRICT
= _gdi
.CONVERT_STRICT
1988 CONVERT_SUBSTITUTE
= _gdi
.CONVERT_SUBSTITUTE
1989 PLATFORM_CURRENT
= _gdi
.PLATFORM_CURRENT
1990 PLATFORM_UNIX
= _gdi
.PLATFORM_UNIX
1991 PLATFORM_WINDOWS
= _gdi
.PLATFORM_WINDOWS
1992 PLATFORM_OS2
= _gdi
.PLATFORM_OS2
1993 PLATFORM_MAC
= _gdi
.PLATFORM_MAC
1994 class EncodingConverter(core
.Object
):
1996 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1997 def __init__(self
, *args
, **kwargs
):
1998 """__init__() -> EncodingConverter"""
1999 newobj
= _gdi
.new_EncodingConverter(*args
, **kwargs
)
2000 self
.this
= newobj
.this
2003 def __del__(self
, destroy
=_gdi
.delete_EncodingConverter
):
2006 if self
.thisown
: destroy(self
)
2009 def Init(*args
, **kwargs
):
2011 Init(wxFontEncoding input_enc, wxFontEncoding output_enc,
2012 int method=CONVERT_STRICT) -> bool
2014 return _gdi
.EncodingConverter_Init(*args
, **kwargs
)
2016 def Convert(*args
, **kwargs
):
2017 """Convert(wxString input) -> wxString"""
2018 return _gdi
.EncodingConverter_Convert(*args
, **kwargs
)
2020 def GetPlatformEquivalents(*args
, **kwargs
):
2021 """EncodingConverter.GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2022 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2024 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2025 def GetAllEquivalents(*args
, **kwargs
):
2026 """EncodingConverter.GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
2027 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2029 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2030 def CanConvert(*args
, **kwargs
):
2031 """EncodingConverter.CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
2032 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2034 CanConvert
= staticmethod(CanConvert
)
2035 def __nonzero__(self
): return self
.IsOk()
2037 class EncodingConverterPtr(EncodingConverter
):
2038 def __init__(self
, this
):
2040 if not hasattr(self
,"thisown"): self
.thisown
= 0
2041 self
.__class
__ = EncodingConverter
2042 _gdi
.EncodingConverter_swigregister(EncodingConverterPtr
)
2044 def GetTranslation(*args
):
2046 GetTranslation(wxString sz) -> wxString
2047 GetTranslation(wxString sz1, wxString sz2, size_t n) -> wxString
2049 return _gdi
.GetTranslation(*args
)
2051 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2052 """EncodingConverter_GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2053 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2055 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2056 """EncodingConverter_GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
2057 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2059 def EncodingConverter_CanConvert(*args
, **kwargs
):
2060 """EncodingConverter_CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
2061 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2063 #----------------------------------------------------------------------------
2064 # wxGTK sets the locale when initialized. Doing this at the Python
2065 # level should set it up to match what GTK is doing at the C level.
2066 if wx
.Platform
== "__WXGTK__":
2069 locale
.setlocale(locale
.LC_ALL
, "")
2073 # On MSW add the directory where the wxWindows catalogs were installed
2074 # to the default catalog path.
2075 if wx
.Platform
== "__WXMSW__":
2077 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2078 Locale_AddCatalogLookupPathPrefix(localedir
)
2081 #----------------------------------------------------------------------------
2083 #---------------------------------------------------------------------------
2085 class DC(core
.Object
):
2086 def __init__(self
): raise RuntimeError, "No constructor defined"
2088 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2089 def __del__(self
, destroy
=_gdi
.delete_DC
):
2092 if self
.thisown
: destroy(self
)
2095 def BeginDrawing(*args
, **kwargs
):
2096 """BeginDrawing()"""
2097 return _gdi
.DC_BeginDrawing(*args
, **kwargs
)
2099 def EndDrawing(*args
, **kwargs
):
2101 return _gdi
.DC_EndDrawing(*args
, **kwargs
)
2103 def FloodFillXY(*args
, **kwargs
):
2104 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2105 return _gdi
.DC_FloodFillXY(*args
, **kwargs
)
2107 def FloodFill(*args
, **kwargs
):
2108 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2109 return _gdi
.DC_FloodFill(*args
, **kwargs
)
2111 def GetPixelXY(*args
, **kwargs
):
2112 """GetPixelXY(int x, int y) -> Colour"""
2113 return _gdi
.DC_GetPixelXY(*args
, **kwargs
)
2115 def GetPixel(*args
, **kwargs
):
2116 """GetPixel(Point pt) -> Colour"""
2117 return _gdi
.DC_GetPixel(*args
, **kwargs
)
2119 def DrawLineXY(*args
, **kwargs
):
2120 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2121 return _gdi
.DC_DrawLineXY(*args
, **kwargs
)
2123 def DrawLine(*args
, **kwargs
):
2124 """DrawLine(Point pt1, Point pt2)"""
2125 return _gdi
.DC_DrawLine(*args
, **kwargs
)
2127 def CrossHairXY(*args
, **kwargs
):
2128 """CrossHairXY(int x, int y)"""
2129 return _gdi
.DC_CrossHairXY(*args
, **kwargs
)
2131 def CrossHair(*args
, **kwargs
):
2132 """CrossHair(Point pt)"""
2133 return _gdi
.DC_CrossHair(*args
, **kwargs
)
2135 def DrawArcXY(*args
, **kwargs
):
2136 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2137 return _gdi
.DC_DrawArcXY(*args
, **kwargs
)
2139 def DrawArc(*args
, **kwargs
):
2140 """DrawArc(Point pt1, Point pt2, Point centre)"""
2141 return _gdi
.DC_DrawArc(*args
, **kwargs
)
2143 def DrawCheckMarkXY(*args
, **kwargs
):
2144 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2145 return _gdi
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2147 def DrawCheckMark(*args
, **kwargs
):
2148 """DrawCheckMark(Rect rect)"""
2149 return _gdi
.DC_DrawCheckMark(*args
, **kwargs
)
2151 def DrawEllipticArcXY(*args
, **kwargs
):
2152 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2153 return _gdi
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2155 def DrawEllipticArc(*args
, **kwargs
):
2156 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2157 return _gdi
.DC_DrawEllipticArc(*args
, **kwargs
)
2159 def DrawPointXY(*args
, **kwargs
):
2160 """DrawPointXY(int x, int y)"""
2161 return _gdi
.DC_DrawPointXY(*args
, **kwargs
)
2163 def DrawPoint(*args
, **kwargs
):
2164 """DrawPoint(Point pt)"""
2165 return _gdi
.DC_DrawPoint(*args
, **kwargs
)
2167 def DrawRectangleXY(*args
, **kwargs
):
2168 """DrawRectangleXY(int x, int y, int width, int height)"""
2169 return _gdi
.DC_DrawRectangleXY(*args
, **kwargs
)
2171 def DrawRectangle(*args
, **kwargs
):
2172 """DrawRectangle(Point pt, Size sz)"""
2173 return _gdi
.DC_DrawRectangle(*args
, **kwargs
)
2175 def DrawRectangleRect(*args
, **kwargs
):
2176 """DrawRectangleRect(Rect rect)"""
2177 return _gdi
.DC_DrawRectangleRect(*args
, **kwargs
)
2179 def DrawRoundedRectangleXY(*args
, **kwargs
):
2180 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2181 return _gdi
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2183 def DrawRoundedRectangle(*args
, **kwargs
):
2184 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2185 return _gdi
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2187 def DrawRoundedRectangleRect(*args
, **kwargs
):
2188 """DrawRoundedRectangleRect(Rect r, double radius)"""
2189 return _gdi
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2191 def DrawCircleXY(*args
, **kwargs
):
2192 """DrawCircleXY(int x, int y, int radius)"""
2193 return _gdi
.DC_DrawCircleXY(*args
, **kwargs
)
2195 def DrawCircle(*args
, **kwargs
):
2196 """DrawCircle(Point pt, int radius)"""
2197 return _gdi
.DC_DrawCircle(*args
, **kwargs
)
2199 def DrawEllipseXY(*args
, **kwargs
):
2200 """DrawEllipseXY(int x, int y, int width, int height)"""
2201 return _gdi
.DC_DrawEllipseXY(*args
, **kwargs
)
2203 def DrawEllipse(*args
, **kwargs
):
2204 """DrawEllipse(Point pt, Size sz)"""
2205 return _gdi
.DC_DrawEllipse(*args
, **kwargs
)
2207 def DrawEllipseRect(*args
, **kwargs
):
2208 """DrawEllipseRect(Rect rect)"""
2209 return _gdi
.DC_DrawEllipseRect(*args
, **kwargs
)
2211 def DrawIconXY(*args
, **kwargs
):
2212 """DrawIconXY(Icon icon, int x, int y)"""
2213 return _gdi
.DC_DrawIconXY(*args
, **kwargs
)
2215 def DrawIcon(*args
, **kwargs
):
2216 """DrawIcon(Icon icon, Point pt)"""
2217 return _gdi
.DC_DrawIcon(*args
, **kwargs
)
2219 def DrawBitmapXY(*args
, **kwargs
):
2220 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2221 return _gdi
.DC_DrawBitmapXY(*args
, **kwargs
)
2223 def DrawBitmap(*args
, **kwargs
):
2224 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2225 return _gdi
.DC_DrawBitmap(*args
, **kwargs
)
2227 def DrawTextXY(*args
, **kwargs
):
2228 """DrawTextXY(wxString text, int x, int y)"""
2229 return _gdi
.DC_DrawTextXY(*args
, **kwargs
)
2231 def DrawText(*args
, **kwargs
):
2232 """DrawText(wxString text, Point pt)"""
2233 return _gdi
.DC_DrawText(*args
, **kwargs
)
2235 def DrawRotatedTextXY(*args
, **kwargs
):
2236 """DrawRotatedTextXY(wxString text, int x, int y, double angle)"""
2237 return _gdi
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2239 def DrawRotatedText(*args
, **kwargs
):
2240 """DrawRotatedText(wxString text, Point pt, double angle)"""
2241 return _gdi
.DC_DrawRotatedText(*args
, **kwargs
)
2243 def BlitXY(*args
, **kwargs
):
2245 BlitXY(int xdest, int ydest, int width, int height, DC source,
2246 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2247 int xsrcMask=-1, int ysrcMask=-1) -> bool
2249 return _gdi
.DC_BlitXY(*args
, **kwargs
)
2251 def Blit(*args
, **kwargs
):
2253 Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2254 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
2256 return _gdi
.DC_Blit(*args
, **kwargs
)
2258 def DrawLines(*args
, **kwargs
):
2259 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2260 return _gdi
.DC_DrawLines(*args
, **kwargs
)
2262 def DrawPolygon(*args
, **kwargs
):
2264 DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2265 int fillStyle=ODDEVEN_RULE)
2267 return _gdi
.DC_DrawPolygon(*args
, **kwargs
)
2269 def DrawLabel(*args
, **kwargs
):
2271 DrawLabel(wxString text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2274 return _gdi
.DC_DrawLabel(*args
, **kwargs
)
2276 def DrawImageLabel(*args
, **kwargs
):
2278 DrawImageLabel(wxString text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2279 int indexAccel=-1) -> Rect
2281 return _gdi
.DC_DrawImageLabel(*args
, **kwargs
)
2283 def DrawSpline(*args
, **kwargs
):
2284 """DrawSpline(int points, Point points_array)"""
2285 return _gdi
.DC_DrawSpline(*args
, **kwargs
)
2287 def Clear(*args
, **kwargs
):
2289 return _gdi
.DC_Clear(*args
, **kwargs
)
2291 def StartDoc(*args
, **kwargs
):
2292 """StartDoc(wxString message) -> bool"""
2293 return _gdi
.DC_StartDoc(*args
, **kwargs
)
2295 def EndDoc(*args
, **kwargs
):
2297 return _gdi
.DC_EndDoc(*args
, **kwargs
)
2299 def StartPage(*args
, **kwargs
):
2301 return _gdi
.DC_StartPage(*args
, **kwargs
)
2303 def EndPage(*args
, **kwargs
):
2305 return _gdi
.DC_EndPage(*args
, **kwargs
)
2307 def SetFont(*args
, **kwargs
):
2308 """SetFont(Font font)"""
2309 return _gdi
.DC_SetFont(*args
, **kwargs
)
2311 def SetPen(*args
, **kwargs
):
2312 """SetPen(Pen pen)"""
2313 return _gdi
.DC_SetPen(*args
, **kwargs
)
2315 def SetBrush(*args
, **kwargs
):
2316 """SetBrush(Brush brush)"""
2317 return _gdi
.DC_SetBrush(*args
, **kwargs
)
2319 def SetBackground(*args
, **kwargs
):
2320 """SetBackground(Brush brush)"""
2321 return _gdi
.DC_SetBackground(*args
, **kwargs
)
2323 def SetBackgroundMode(*args
, **kwargs
):
2324 """SetBackgroundMode(int mode)"""
2325 return _gdi
.DC_SetBackgroundMode(*args
, **kwargs
)
2327 def SetPalette(*args
, **kwargs
):
2328 """SetPalette(Palette palette)"""
2329 return _gdi
.DC_SetPalette(*args
, **kwargs
)
2331 def SetClippingRegion(*args
, **kwargs
):
2332 """SetClippingRegion(int x, int y, int width, int height)"""
2333 return _gdi
.DC_SetClippingRegion(*args
, **kwargs
)
2335 def SetClippingRect(*args
, **kwargs
):
2336 """SetClippingRect(Rect rect)"""
2337 return _gdi
.DC_SetClippingRect(*args
, **kwargs
)
2339 def SetClippingRegionAsRegion(*args
, **kwargs
):
2340 """SetClippingRegionAsRegion(Region region)"""
2341 return _gdi
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2343 def DestroyClippingRegion(*args
, **kwargs
):
2344 """DestroyClippingRegion()"""
2345 return _gdi
.DC_DestroyClippingRegion(*args
, **kwargs
)
2347 def GetClippingBox(*args
, **kwargs
):
2348 """GetClippingBox() -> (x, y, width, height)"""
2349 return _gdi
.DC_GetClippingBox(*args
, **kwargs
)
2351 def GetClippingRect(*args
, **kwargs
):
2352 """GetClippingRect() -> Rect"""
2353 return _gdi
.DC_GetClippingRect(*args
, **kwargs
)
2355 def GetCharHeight(*args
, **kwargs
):
2356 """GetCharHeight() -> int"""
2357 return _gdi
.DC_GetCharHeight(*args
, **kwargs
)
2359 def GetCharWidth(*args
, **kwargs
):
2360 """GetCharWidth() -> int"""
2361 return _gdi
.DC_GetCharWidth(*args
, **kwargs
)
2363 def GetTextExtent(*args
, **kwargs
):
2365 GetTextExtent(wxString string) -> (width, height)
2367 Get the width and height of the text using the current font.
2368 Only works for single line strings.
2370 return _gdi
.DC_GetTextExtent(*args
, **kwargs
)
2372 def GetFullTextExtent(*args
, **kwargs
):
2374 GetFullTextExtent(wxString string, Font font=None) ->
2375 (width, height, descent, externalLeading)
2377 Get the width, height, decent and leading of the text using the current or specified font.
2378 Only works for single line strings.
2380 return _gdi
.DC_GetFullTextExtent(*args
, **kwargs
)
2382 def GetMultiLineTextExtent(*args
, **kwargs
):
2384 GetMultiLineTextExtent(wxString string, Font font=None) ->
2385 (width, height, descent, externalLeading)
2387 Get the width, height, decent and leading of the text using the current or specified font.
2388 Works for single as well as multi-line strings.
2390 return _gdi
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2392 def GetSize(*args
, **kwargs
):
2396 Get the DC size in device units.
2398 return _gdi
.DC_GetSize(*args
, **kwargs
)
2400 def GetSizeTuple(*args
, **kwargs
):
2402 GetSizeTuple() -> (width, height)
2404 Get the DC size in device units.
2406 return _gdi
.DC_GetSizeTuple(*args
, **kwargs
)
2408 def GetSizeMM(*args
, **kwargs
):
2412 Get the DC size in milimeters.
2414 return _gdi
.DC_GetSizeMM(*args
, **kwargs
)
2416 def GetSizeMMTuple(*args
, **kwargs
):
2418 GetSizeMMTuple() -> (width, height)
2420 Get the DC size in milimeters.
2422 return _gdi
.DC_GetSizeMMTuple(*args
, **kwargs
)
2424 def DeviceToLogicalX(*args
, **kwargs
):
2425 """DeviceToLogicalX(int x) -> int"""
2426 return _gdi
.DC_DeviceToLogicalX(*args
, **kwargs
)
2428 def DeviceToLogicalY(*args
, **kwargs
):
2429 """DeviceToLogicalY(int y) -> int"""
2430 return _gdi
.DC_DeviceToLogicalY(*args
, **kwargs
)
2432 def DeviceToLogicalXRel(*args
, **kwargs
):
2433 """DeviceToLogicalXRel(int x) -> int"""
2434 return _gdi
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2436 def DeviceToLogicalYRel(*args
, **kwargs
):
2437 """DeviceToLogicalYRel(int y) -> int"""
2438 return _gdi
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2440 def LogicalToDeviceX(*args
, **kwargs
):
2441 """LogicalToDeviceX(int x) -> int"""
2442 return _gdi
.DC_LogicalToDeviceX(*args
, **kwargs
)
2444 def LogicalToDeviceY(*args
, **kwargs
):
2445 """LogicalToDeviceY(int y) -> int"""
2446 return _gdi
.DC_LogicalToDeviceY(*args
, **kwargs
)
2448 def LogicalToDeviceXRel(*args
, **kwargs
):
2449 """LogicalToDeviceXRel(int x) -> int"""
2450 return _gdi
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2452 def LogicalToDeviceYRel(*args
, **kwargs
):
2453 """LogicalToDeviceYRel(int y) -> int"""
2454 return _gdi
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2456 def CanDrawBitmap(*args
, **kwargs
):
2457 """CanDrawBitmap() -> bool"""
2458 return _gdi
.DC_CanDrawBitmap(*args
, **kwargs
)
2460 def CanGetTextExtent(*args
, **kwargs
):
2461 """CanGetTextExtent() -> bool"""
2462 return _gdi
.DC_CanGetTextExtent(*args
, **kwargs
)
2464 def GetDepth(*args
, **kwargs
):
2465 """GetDepth() -> int"""
2466 return _gdi
.DC_GetDepth(*args
, **kwargs
)
2468 def GetPPI(*args
, **kwargs
):
2469 """GetPPI() -> Size"""
2470 return _gdi
.DC_GetPPI(*args
, **kwargs
)
2472 def Ok(*args
, **kwargs
):
2474 return _gdi
.DC_Ok(*args
, **kwargs
)
2476 def GetBackgroundMode(*args
, **kwargs
):
2477 """GetBackgroundMode() -> int"""
2478 return _gdi
.DC_GetBackgroundMode(*args
, **kwargs
)
2480 def GetBackground(*args
, **kwargs
):
2481 """GetBackground() -> Brush"""
2482 return _gdi
.DC_GetBackground(*args
, **kwargs
)
2484 def GetBrush(*args
, **kwargs
):
2485 """GetBrush() -> Brush"""
2486 return _gdi
.DC_GetBrush(*args
, **kwargs
)
2488 def GetFont(*args
, **kwargs
):
2489 """GetFont() -> Font"""
2490 return _gdi
.DC_GetFont(*args
, **kwargs
)
2492 def GetPen(*args
, **kwargs
):
2493 """GetPen() -> Pen"""
2494 return _gdi
.DC_GetPen(*args
, **kwargs
)
2496 def GetTextBackground(*args
, **kwargs
):
2497 """GetTextBackground() -> Colour"""
2498 return _gdi
.DC_GetTextBackground(*args
, **kwargs
)
2500 def GetTextForeground(*args
, **kwargs
):
2501 """GetTextForeground() -> Colour"""
2502 return _gdi
.DC_GetTextForeground(*args
, **kwargs
)
2504 def SetTextForeground(*args
, **kwargs
):
2505 """SetTextForeground(Colour colour)"""
2506 return _gdi
.DC_SetTextForeground(*args
, **kwargs
)
2508 def SetTextBackground(*args
, **kwargs
):
2509 """SetTextBackground(Colour colour)"""
2510 return _gdi
.DC_SetTextBackground(*args
, **kwargs
)
2512 def GetMapMode(*args
, **kwargs
):
2513 """GetMapMode() -> int"""
2514 return _gdi
.DC_GetMapMode(*args
, **kwargs
)
2516 def SetMapMode(*args
, **kwargs
):
2517 """SetMapMode(int mode)"""
2518 return _gdi
.DC_SetMapMode(*args
, **kwargs
)
2520 def GetUserScale(*args
, **kwargs
):
2521 """GetUserScale() -> (xScale, yScale)"""
2522 return _gdi
.DC_GetUserScale(*args
, **kwargs
)
2524 def SetUserScale(*args
, **kwargs
):
2525 """SetUserScale(double x, double y)"""
2526 return _gdi
.DC_SetUserScale(*args
, **kwargs
)
2528 def GetLogicalScale(*args
, **kwargs
):
2529 """GetLogicalScale() -> (xScale, yScale)"""
2530 return _gdi
.DC_GetLogicalScale(*args
, **kwargs
)
2532 def SetLogicalScale(*args
, **kwargs
):
2533 """SetLogicalScale(double x, double y)"""
2534 return _gdi
.DC_SetLogicalScale(*args
, **kwargs
)
2536 def GetLogicalOrigin(*args
, **kwargs
):
2537 """GetLogicalOrigin() -> Point"""
2538 return _gdi
.DC_GetLogicalOrigin(*args
, **kwargs
)
2540 def GetLogicalOriginTuple(*args
, **kwargs
):
2541 """GetLogicalOriginTuple() -> (x,y)"""
2542 return _gdi
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2544 def SetLogicalOrigin(*args
, **kwargs
):
2545 """SetLogicalOrigin(int x, int y)"""
2546 return _gdi
.DC_SetLogicalOrigin(*args
, **kwargs
)
2548 def GetDeviceOrigin(*args
, **kwargs
):
2549 """GetDeviceOrigin() -> Point"""
2550 return _gdi
.DC_GetDeviceOrigin(*args
, **kwargs
)
2552 def GetDeviceOriginTuple(*args
, **kwargs
):
2553 """GetDeviceOriginTuple() -> (x,y)"""
2554 return _gdi
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2556 def SetDeviceOrigin(*args
, **kwargs
):
2557 """SetDeviceOrigin(int x, int y)"""
2558 return _gdi
.DC_SetDeviceOrigin(*args
, **kwargs
)
2560 def SetAxisOrientation(*args
, **kwargs
):
2561 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2562 return _gdi
.DC_SetAxisOrientation(*args
, **kwargs
)
2564 def GetLogicalFunction(*args
, **kwargs
):
2565 """GetLogicalFunction() -> int"""
2566 return _gdi
.DC_GetLogicalFunction(*args
, **kwargs
)
2568 def SetLogicalFunction(*args
, **kwargs
):
2569 """SetLogicalFunction(int function)"""
2570 return _gdi
.DC_SetLogicalFunction(*args
, **kwargs
)
2572 def SetOptimization(*args
, **kwargs
):
2573 """SetOptimization(bool opt)"""
2574 return _gdi
.DC_SetOptimization(*args
, **kwargs
)
2576 def GetOptimization(*args
, **kwargs
):
2577 """GetOptimization() -> bool"""
2578 return _gdi
.DC_GetOptimization(*args
, **kwargs
)
2580 def CalcBoundingBox(*args
, **kwargs
):
2581 """CalcBoundingBox(int x, int y)"""
2582 return _gdi
.DC_CalcBoundingBox(*args
, **kwargs
)
2584 def ResetBoundingBox(*args
, **kwargs
):
2585 """ResetBoundingBox()"""
2586 return _gdi
.DC_ResetBoundingBox(*args
, **kwargs
)
2588 def MinX(*args
, **kwargs
):
2590 return _gdi
.DC_MinX(*args
, **kwargs
)
2592 def MaxX(*args
, **kwargs
):
2594 return _gdi
.DC_MaxX(*args
, **kwargs
)
2596 def MinY(*args
, **kwargs
):
2598 return _gdi
.DC_MinY(*args
, **kwargs
)
2600 def MaxY(*args
, **kwargs
):
2602 return _gdi
.DC_MaxY(*args
, **kwargs
)
2604 def GetBoundingBox(*args
, **kwargs
):
2605 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2606 return _gdi
.DC_GetBoundingBox(*args
, **kwargs
)
2608 def __nonzero__(self
): return self
.Ok()
2609 def _DrawPointList(*args
, **kwargs
):
2610 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2611 return _gdi
.DC__DrawPointList(*args
, **kwargs
)
2613 def _DrawLineList(*args
, **kwargs
):
2614 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2615 return _gdi
.DC__DrawLineList(*args
, **kwargs
)
2617 def _DrawRectangleList(*args
, **kwargs
):
2618 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2619 return _gdi
.DC__DrawRectangleList(*args
, **kwargs
)
2621 def _DrawEllipseList(*args
, **kwargs
):
2622 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2623 return _gdi
.DC__DrawEllipseList(*args
, **kwargs
)
2625 def _DrawPolygonList(*args
, **kwargs
):
2626 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2627 return _gdi
.DC__DrawPolygonList(*args
, **kwargs
)
2629 def _DrawTextList(*args
, **kwargs
):
2631 _DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2632 PyObject backgroundList) -> PyObject
2634 return _gdi
.DC__DrawTextList(*args
, **kwargs
)
2636 def DrawPointList(self
, points
, pens
=None):
2639 elif isinstance(pens
, wx
.Pen
):
2641 elif len(pens
) != len(points
):
2642 raise ValueError('points and pens must have same length')
2643 return self
._DrawPointList
(points
, pens
, [])
2646 def DrawLineList(self
, lines
, pens
=None):
2649 elif isinstance(pens
, wx
.Pen
):
2651 elif len(pens
) != len(lines
):
2652 raise ValueError('lines and pens must have same length')
2653 return self
._DrawLineList
(lines
, pens
, [])
2656 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2659 elif isinstance(pens
, wx
.Pen
):
2661 elif len(pens
) != len(rectangles
):
2662 raise ValueError('rectangles and pens must have same length')
2665 elif isinstance(brushes
, wx
.Brush
):
2667 elif len(brushes
) != len(rectangles
):
2668 raise ValueError('rectangles and brushes must have same length')
2669 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2672 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2675 elif isinstance(pens
, wx
.Pen
):
2677 elif len(pens
) != len(ellipses
):
2678 raise ValueError('ellipses and pens must have same length')
2681 elif isinstance(brushes
, wx
.Brush
):
2683 elif len(brushes
) != len(ellipses
):
2684 raise ValueError('ellipses and brushes must have same length')
2685 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2688 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2693 elif isinstance(pens
, wx
.Pen
):
2695 elif len(pens
) != len(polygons
):
2696 raise ValueError('polygons and pens must have same length')
2699 elif isinstance(brushes
, wx
.Brush
):
2701 elif len(brushes
) != len(polygons
):
2702 raise ValueError('polygons and brushes must have same length')
2703 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2706 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2710 if type(textList
) == type(''):
2711 textList
= [textList
]
2712 elif len(textList
) != len(coords
):
2713 raise ValueError('textlist and coords must have same length')
2714 if foregrounds
is None:
2716 elif isinstance(foregrounds
, wx
.Colour
):
2717 foregrounds
= [foregrounds
]
2718 elif len(foregrounds
) != len(coords
):
2719 raise ValueError('foregrounds and coords must have same length')
2720 if backgrounds
is None:
2722 elif isinstance(backgrounds
, wx
.Colour
):
2723 backgrounds
= [backgrounds
]
2724 elif len(backgrounds
) != len(coords
):
2725 raise ValueError('backgrounds and coords must have same length')
2726 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2730 def __init__(self
, this
):
2732 if not hasattr(self
,"thisown"): self
.thisown
= 0
2734 _gdi
.DC_swigregister(DCPtr
)
2736 #---------------------------------------------------------------------------
2740 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2741 def __init__(self
, *args
, **kwargs
):
2742 """__init__() -> MemoryDC"""
2743 newobj
= _gdi
.new_MemoryDC(*args
, **kwargs
)
2744 self
.this
= newobj
.this
2747 def SelectObject(*args
, **kwargs
):
2748 """SelectObject(Bitmap bitmap)"""
2749 return _gdi
.MemoryDC_SelectObject(*args
, **kwargs
)
2752 class MemoryDCPtr(MemoryDC
):
2753 def __init__(self
, this
):
2755 if not hasattr(self
,"thisown"): self
.thisown
= 0
2756 self
.__class
__ = MemoryDC
2757 _gdi
.MemoryDC_swigregister(MemoryDCPtr
)
2759 def MemoryDCFromDC(*args
, **kwargs
):
2760 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
2761 val
= _gdi
.new_MemoryDCFromDC(*args
, **kwargs
)
2765 #---------------------------------------------------------------------------
2767 class BufferedDC(MemoryDC
):
2769 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2770 def __init__(self
, *args
, **kwargs
):
2771 """__init__(DC dc, Bitmap buffer) -> BufferedDC"""
2772 newobj
= _gdi
.new_BufferedDC(*args
, **kwargs
)
2773 self
.this
= newobj
.this
2776 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2778 def UnMask(*args
, **kwargs
):
2780 return _gdi
.BufferedDC_UnMask(*args
, **kwargs
)
2783 class BufferedDCPtr(BufferedDC
):
2784 def __init__(self
, this
):
2786 if not hasattr(self
,"thisown"): self
.thisown
= 0
2787 self
.__class
__ = BufferedDC
2788 _gdi
.BufferedDC_swigregister(BufferedDCPtr
)
2790 def BufferedDCInternalBuffer(*args
, **kwargs
):
2791 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
2792 val
= _gdi
.new_BufferedDCInternalBuffer(*args
, **kwargs
)
2794 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2797 class BufferedPaintDC(BufferedDC
):
2799 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2800 def __init__(self
, *args
, **kwargs
):
2801 """__init__(Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
2802 newobj
= _gdi
.new_BufferedPaintDC(*args
, **kwargs
)
2803 self
.this
= newobj
.this
2807 class BufferedPaintDCPtr(BufferedPaintDC
):
2808 def __init__(self
, this
):
2810 if not hasattr(self
,"thisown"): self
.thisown
= 0
2811 self
.__class
__ = BufferedPaintDC
2812 _gdi
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
2814 #---------------------------------------------------------------------------
2818 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2819 def __init__(self
, *args
, **kwargs
):
2820 """__init__() -> ScreenDC"""
2821 newobj
= _gdi
.new_ScreenDC(*args
, **kwargs
)
2822 self
.this
= newobj
.this
2825 def StartDrawingOnTopWin(*args
, **kwargs
):
2826 """StartDrawingOnTopWin(Window window) -> bool"""
2827 return _gdi
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
2829 def StartDrawingOnTop(*args
, **kwargs
):
2830 """StartDrawingOnTop(Rect rect=None) -> bool"""
2831 return _gdi
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
2833 def EndDrawingOnTop(*args
, **kwargs
):
2834 """EndDrawingOnTop() -> bool"""
2835 return _gdi
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
2838 class ScreenDCPtr(ScreenDC
):
2839 def __init__(self
, this
):
2841 if not hasattr(self
,"thisown"): self
.thisown
= 0
2842 self
.__class
__ = ScreenDC
2843 _gdi
.ScreenDC_swigregister(ScreenDCPtr
)
2845 #---------------------------------------------------------------------------
2849 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2850 def __init__(self
, *args
, **kwargs
):
2851 """__init__(Window win) -> ClientDC"""
2852 newobj
= _gdi
.new_ClientDC(*args
, **kwargs
)
2853 self
.this
= newobj
.this
2857 class ClientDCPtr(ClientDC
):
2858 def __init__(self
, this
):
2860 if not hasattr(self
,"thisown"): self
.thisown
= 0
2861 self
.__class
__ = ClientDC
2862 _gdi
.ClientDC_swigregister(ClientDCPtr
)
2864 #---------------------------------------------------------------------------
2868 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2869 def __init__(self
, *args
, **kwargs
):
2870 """__init__(Window win) -> PaintDC"""
2871 newobj
= _gdi
.new_PaintDC(*args
, **kwargs
)
2872 self
.this
= newobj
.this
2876 class PaintDCPtr(PaintDC
):
2877 def __init__(self
, this
):
2879 if not hasattr(self
,"thisown"): self
.thisown
= 0
2880 self
.__class
__ = PaintDC
2881 _gdi
.PaintDC_swigregister(PaintDCPtr
)
2883 #---------------------------------------------------------------------------
2887 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2888 def __init__(self
, *args
, **kwargs
):
2889 """__init__(Window win) -> WindowDC"""
2890 newobj
= _gdi
.new_WindowDC(*args
, **kwargs
)
2891 self
.this
= newobj
.this
2895 class WindowDCPtr(WindowDC
):
2896 def __init__(self
, this
):
2898 if not hasattr(self
,"thisown"): self
.thisown
= 0
2899 self
.__class
__ = WindowDC
2900 _gdi
.WindowDC_swigregister(WindowDCPtr
)
2902 #---------------------------------------------------------------------------
2906 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2907 def __init__(self
, *args
, **kwargs
):
2908 """__init__(DC dc, bool mirror) -> MirrorDC"""
2909 newobj
= _gdi
.new_MirrorDC(*args
, **kwargs
)
2910 self
.this
= newobj
.this
2914 class MirrorDCPtr(MirrorDC
):
2915 def __init__(self
, this
):
2917 if not hasattr(self
,"thisown"): self
.thisown
= 0
2918 self
.__class
__ = MirrorDC
2919 _gdi
.MirrorDC_swigregister(MirrorDCPtr
)
2921 #---------------------------------------------------------------------------
2923 class PostScriptDC(DC
):
2925 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2926 def __init__(self
, *args
, **kwargs
):
2927 """__init__(wxPrintData printData) -> PostScriptDC"""
2928 newobj
= _gdi
.new_PostScriptDC(*args
, **kwargs
)
2929 self
.this
= newobj
.this
2932 def GetPrintData(*args
, **kwargs
):
2933 """GetPrintData() -> wxPrintData"""
2934 return _gdi
.PostScriptDC_GetPrintData(*args
, **kwargs
)
2936 def SetPrintData(*args
, **kwargs
):
2937 """SetPrintData(wxPrintData data)"""
2938 return _gdi
.PostScriptDC_SetPrintData(*args
, **kwargs
)
2940 def SetResolution(*args
, **kwargs
):
2941 """PostScriptDC.SetResolution(int ppi)"""
2942 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
2944 SetResolution
= staticmethod(SetResolution
)
2945 def GetResolution(*args
, **kwargs
):
2946 """PostScriptDC.GetResolution() -> int"""
2947 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
2949 GetResolution
= staticmethod(GetResolution
)
2951 class PostScriptDCPtr(PostScriptDC
):
2952 def __init__(self
, this
):
2954 if not hasattr(self
,"thisown"): self
.thisown
= 0
2955 self
.__class
__ = PostScriptDC
2956 _gdi
.PostScriptDC_swigregister(PostScriptDCPtr
)
2958 def PostScriptDC_SetResolution(*args
, **kwargs
):
2959 """PostScriptDC_SetResolution(int ppi)"""
2960 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
2962 def PostScriptDC_GetResolution(*args
, **kwargs
):
2963 """PostScriptDC_GetResolution() -> int"""
2964 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
2966 #---------------------------------------------------------------------------
2968 class MetaFile(core
.Object
):
2970 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2971 def __init__(self
, *args
, **kwargs
):
2972 """__init__(wxString filename=wxPyEmptyString) -> MetaFile"""
2973 newobj
= _gdi
.new_MetaFile(*args
, **kwargs
)
2974 self
.this
= newobj
.this
2978 class MetaFilePtr(MetaFile
):
2979 def __init__(self
, this
):
2981 if not hasattr(self
,"thisown"): self
.thisown
= 0
2982 self
.__class
__ = MetaFile
2983 _gdi
.MetaFile_swigregister(MetaFilePtr
)
2985 class MetaFileDC(DC
):
2987 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2988 def __init__(self
, *args
, **kwargs
):
2990 __init__(wxString filename=wxPyEmptyString, int width=0, int height=0,
2991 wxString description=wxPyEmptyString) -> MetaFileDC
2993 newobj
= _gdi
.new_MetaFileDC(*args
, **kwargs
)
2994 self
.this
= newobj
.this
2998 class MetaFileDCPtr(MetaFileDC
):
2999 def __init__(self
, this
):
3001 if not hasattr(self
,"thisown"): self
.thisown
= 0
3002 self
.__class
__ = MetaFileDC
3003 _gdi
.MetaFileDC_swigregister(MetaFileDCPtr
)
3005 class PrinterDC(DC
):
3007 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3008 def __init__(self
, *args
, **kwargs
):
3009 """__init__(wxPrintData printData) -> PrinterDC"""
3010 newobj
= _gdi
.new_PrinterDC(*args
, **kwargs
)
3011 self
.this
= newobj
.this
3015 class PrinterDCPtr(PrinterDC
):
3016 def __init__(self
, this
):
3018 if not hasattr(self
,"thisown"): self
.thisown
= 0
3019 self
.__class
__ = PrinterDC
3020 _gdi
.PrinterDC_swigregister(PrinterDCPtr
)
3022 #---------------------------------------------------------------------------
3024 IMAGELIST_DRAW_NORMAL
= _gdi
.IMAGELIST_DRAW_NORMAL
3025 IMAGELIST_DRAW_TRANSPARENT
= _gdi
.IMAGELIST_DRAW_TRANSPARENT
3026 IMAGELIST_DRAW_SELECTED
= _gdi
.IMAGELIST_DRAW_SELECTED
3027 IMAGELIST_DRAW_FOCUSED
= _gdi
.IMAGELIST_DRAW_FOCUSED
3028 IMAGE_LIST_NORMAL
= _gdi
.IMAGE_LIST_NORMAL
3029 IMAGE_LIST_SMALL
= _gdi
.IMAGE_LIST_SMALL
3030 IMAGE_LIST_STATE
= _gdi
.IMAGE_LIST_STATE
3031 class ImageList(core
.Object
):
3033 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3034 def __init__(self
, *args
, **kwargs
):
3035 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3036 newobj
= _gdi
.new_ImageList(*args
, **kwargs
)
3037 self
.this
= newobj
.this
3040 def __del__(self
, destroy
=_gdi
.delete_ImageList
):
3043 if self
.thisown
: destroy(self
)
3046 def Add(*args
, **kwargs
):
3047 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3048 return _gdi
.ImageList_Add(*args
, **kwargs
)
3050 def AddWithColourMask(*args
, **kwargs
):
3051 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
3052 return _gdi
.ImageList_AddWithColourMask(*args
, **kwargs
)
3054 def AddIcon(*args
, **kwargs
):
3055 """AddIcon(Icon icon) -> int"""
3056 return _gdi
.ImageList_AddIcon(*args
, **kwargs
)
3058 def Replace(*args
, **kwargs
):
3059 """Replace(int index, Bitmap bitmap) -> bool"""
3060 return _gdi
.ImageList_Replace(*args
, **kwargs
)
3062 def Draw(*args
, **kwargs
):
3064 Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3065 bool solidBackground=False) -> bool
3067 return _gdi
.ImageList_Draw(*args
, **kwargs
)
3069 def GetImageCount(*args
, **kwargs
):
3070 """GetImageCount() -> int"""
3071 return _gdi
.ImageList_GetImageCount(*args
, **kwargs
)
3073 def Remove(*args
, **kwargs
):
3074 """Remove(int index) -> bool"""
3075 return _gdi
.ImageList_Remove(*args
, **kwargs
)
3077 def RemoveAll(*args
, **kwargs
):
3078 """RemoveAll() -> bool"""
3079 return _gdi
.ImageList_RemoveAll(*args
, **kwargs
)
3081 def GetSize(*args
, **kwargs
):
3082 """GetSize() -> (width,height)"""
3083 return _gdi
.ImageList_GetSize(*args
, **kwargs
)
3086 class ImageListPtr(ImageList
):
3087 def __init__(self
, this
):
3089 if not hasattr(self
,"thisown"): self
.thisown
= 0
3090 self
.__class
__ = ImageList
3091 _gdi
.ImageList_swigregister(ImageListPtr
)
3093 #---------------------------------------------------------------------------
3095 class PenList(core
.Object
):
3096 def __init__(self
): raise RuntimeError, "No constructor defined"
3098 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3099 def AddPen(*args
, **kwargs
):
3100 """AddPen(Pen pen)"""
3101 return _gdi
.PenList_AddPen(*args
, **kwargs
)
3103 def FindOrCreatePen(*args
, **kwargs
):
3104 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
3105 return _gdi
.PenList_FindOrCreatePen(*args
, **kwargs
)
3107 def RemovePen(*args
, **kwargs
):
3108 """RemovePen(Pen pen)"""
3109 return _gdi
.PenList_RemovePen(*args
, **kwargs
)
3111 def GetCount(*args
, **kwargs
):
3112 """GetCount() -> int"""
3113 return _gdi
.PenList_GetCount(*args
, **kwargs
)
3116 class PenListPtr(PenList
):
3117 def __init__(self
, this
):
3119 if not hasattr(self
,"thisown"): self
.thisown
= 0
3120 self
.__class
__ = PenList
3121 _gdi
.PenList_swigregister(PenListPtr
)
3123 class BrushList(core
.Object
):
3124 def __init__(self
): raise RuntimeError, "No constructor defined"
3126 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3127 def AddBrush(*args
, **kwargs
):
3128 """AddBrush(Brush brush)"""
3129 return _gdi
.BrushList_AddBrush(*args
, **kwargs
)
3131 def FindOrCreateBrush(*args
, **kwargs
):
3132 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
3133 return _gdi
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3135 def RemoveBrush(*args
, **kwargs
):
3136 """RemoveBrush(Brush brush)"""
3137 return _gdi
.BrushList_RemoveBrush(*args
, **kwargs
)
3139 def GetCount(*args
, **kwargs
):
3140 """GetCount() -> int"""
3141 return _gdi
.BrushList_GetCount(*args
, **kwargs
)
3144 class BrushListPtr(BrushList
):
3145 def __init__(self
, this
):
3147 if not hasattr(self
,"thisown"): self
.thisown
= 0
3148 self
.__class
__ = BrushList
3149 _gdi
.BrushList_swigregister(BrushListPtr
)
3151 class ColourDatabase(core
.Object
):
3153 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3154 def __init__(self
, *args
, **kwargs
):
3155 """__init__() -> ColourDatabase"""
3156 newobj
= _gdi
.new_ColourDatabase(*args
, **kwargs
)
3157 self
.this
= newobj
.this
3160 def __del__(self
, destroy
=_gdi
.delete_ColourDatabase
):
3163 if self
.thisown
: destroy(self
)
3166 def Find(*args
, **kwargs
):
3167 """Find(wxString name) -> Colour"""
3168 return _gdi
.ColourDatabase_Find(*args
, **kwargs
)
3170 def FindName(*args
, **kwargs
):
3171 """FindName(Colour colour) -> wxString"""
3172 return _gdi
.ColourDatabase_FindName(*args
, **kwargs
)
3175 def AddColour(*args
, **kwargs
):
3176 """AddColour(wxString name, Colour colour)"""
3177 return _gdi
.ColourDatabase_AddColour(*args
, **kwargs
)
3179 def Append(*args
, **kwargs
):
3180 """Append(wxString name, int red, int green, int blue)"""
3181 return _gdi
.ColourDatabase_Append(*args
, **kwargs
)
3184 class ColourDatabasePtr(ColourDatabase
):
3185 def __init__(self
, this
):
3187 if not hasattr(self
,"thisown"): self
.thisown
= 0
3188 self
.__class
__ = ColourDatabase
3189 _gdi
.ColourDatabase_swigregister(ColourDatabasePtr
)
3191 class FontList(core
.Object
):
3192 def __init__(self
): raise RuntimeError, "No constructor defined"
3194 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3195 def AddFont(*args
, **kwargs
):
3196 """AddFont(Font font)"""
3197 return _gdi
.FontList_AddFont(*args
, **kwargs
)
3199 def FindOrCreateFont(*args
, **kwargs
):
3201 FindOrCreateFont(int point_size, int family, int style, int weight,
3202 bool underline=False, wxString facename=wxPyEmptyString,
3203 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font
3205 return _gdi
.FontList_FindOrCreateFont(*args
, **kwargs
)
3207 def RemoveFont(*args
, **kwargs
):
3208 """RemoveFont(Font font)"""
3209 return _gdi
.FontList_RemoveFont(*args
, **kwargs
)
3211 def GetCount(*args
, **kwargs
):
3212 """GetCount() -> int"""
3213 return _gdi
.FontList_GetCount(*args
, **kwargs
)
3216 class FontListPtr(FontList
):
3217 def __init__(self
, this
):
3219 if not hasattr(self
,"thisown"): self
.thisown
= 0
3220 self
.__class
__ = FontList
3221 _gdi
.FontList_swigregister(FontListPtr
)
3223 #---------------------------------------------------------------------------
3225 #---------------------------------------------------------------------------
3227 class Effects(core
.Object
):
3229 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3230 def __init__(self
, *args
, **kwargs
):
3231 """__init__() -> Effects"""
3232 newobj
= _gdi
.new_Effects(*args
, **kwargs
)
3233 self
.this
= newobj
.this
3236 def GetHighlightColour(*args
, **kwargs
):
3237 """GetHighlightColour() -> Colour"""
3238 return _gdi
.Effects_GetHighlightColour(*args
, **kwargs
)
3240 def GetLightShadow(*args
, **kwargs
):
3241 """GetLightShadow() -> Colour"""
3242 return _gdi
.Effects_GetLightShadow(*args
, **kwargs
)
3244 def GetFaceColour(*args
, **kwargs
):
3245 """GetFaceColour() -> Colour"""
3246 return _gdi
.Effects_GetFaceColour(*args
, **kwargs
)
3248 def GetMediumShadow(*args
, **kwargs
):
3249 """GetMediumShadow() -> Colour"""
3250 return _gdi
.Effects_GetMediumShadow(*args
, **kwargs
)
3252 def GetDarkShadow(*args
, **kwargs
):
3253 """GetDarkShadow() -> Colour"""
3254 return _gdi
.Effects_GetDarkShadow(*args
, **kwargs
)
3256 def SetHighlightColour(*args
, **kwargs
):
3257 """SetHighlightColour(Colour c)"""
3258 return _gdi
.Effects_SetHighlightColour(*args
, **kwargs
)
3260 def SetLightShadow(*args
, **kwargs
):
3261 """SetLightShadow(Colour c)"""
3262 return _gdi
.Effects_SetLightShadow(*args
, **kwargs
)
3264 def SetFaceColour(*args
, **kwargs
):
3265 """SetFaceColour(Colour c)"""
3266 return _gdi
.Effects_SetFaceColour(*args
, **kwargs
)
3268 def SetMediumShadow(*args
, **kwargs
):
3269 """SetMediumShadow(Colour c)"""
3270 return _gdi
.Effects_SetMediumShadow(*args
, **kwargs
)
3272 def SetDarkShadow(*args
, **kwargs
):
3273 """SetDarkShadow(Colour c)"""
3274 return _gdi
.Effects_SetDarkShadow(*args
, **kwargs
)
3276 def Set(*args
, **kwargs
):
3278 Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3279 Colour mediumShadow, Colour darkShadow)
3281 return _gdi
.Effects_Set(*args
, **kwargs
)
3283 def DrawSunkenEdge(*args
, **kwargs
):
3284 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3285 return _gdi
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3287 def TileBitmap(*args
, **kwargs
):
3288 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3289 return _gdi
.Effects_TileBitmap(*args
, **kwargs
)
3292 class EffectsPtr(Effects
):
3293 def __init__(self
, this
):
3295 if not hasattr(self
,"thisown"): self
.thisown
= 0
3296 self
.__class
__ = Effects
3297 _gdi
.Effects_swigregister(EffectsPtr
)
3299 NORMAL_FONT
= cvar
.NORMAL_FONT
3300 SMALL_FONT
= cvar
.SMALL_FONT
3301 ITALIC_FONT
= cvar
.ITALIC_FONT
3302 SWISS_FONT
= cvar
.SWISS_FONT
3303 RED_PEN
= cvar
.RED_PEN
3304 CYAN_PEN
= cvar
.CYAN_PEN
3305 GREEN_PEN
= cvar
.GREEN_PEN
3306 BLACK_PEN
= cvar
.BLACK_PEN
3307 WHITE_PEN
= cvar
.WHITE_PEN
3308 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3309 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3310 GREY_PEN
= cvar
.GREY_PEN
3311 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3312 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3313 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3314 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3315 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3316 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3317 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3318 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3319 RED_BRUSH
= cvar
.RED_BRUSH
3320 GREY_BRUSH
= cvar
.GREY_BRUSH
3321 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3322 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3329 LIGHT_GREY
= cvar
.LIGHT_GREY
3330 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3331 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3332 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3333 NullBitmap
= cvar
.NullBitmap
3334 NullIcon
= cvar
.NullIcon
3335 NullCursor
= cvar
.NullCursor
3336 NullPen
= cvar
.NullPen
3337 NullBrush
= cvar
.NullBrush
3338 NullPalette
= cvar
.NullPalette
3339 NullFont
= cvar
.NullFont
3340 NullColour
= cvar
.NullColour
3341 TheFontList
= cvar
.TheFontList
3342 ThePenList
= cvar
.ThePenList
3343 TheBrushList
= cvar
.TheBrushList
3344 TheColourDatabase
= cvar
.TheColourDatabase