1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 class GDIObject(core
.Object
):
12 return "<%s.%s; proxy of C++ wxGDIObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
13 def __init__(self
, *args
, **kwargs
):
14 """__init__() -> GDIObject"""
15 newobj
= _gdi
.new_GDIObject(*args
, **kwargs
)
16 self
.this
= newobj
.this
19 def __del__(self
, destroy
=_gdi
.delete_GDIObject
):
22 if self
.thisown
: destroy(self
)
25 def GetVisible(*args
, **kwargs
):
26 """GetVisible() -> bool"""
27 return _gdi
.GDIObject_GetVisible(*args
, **kwargs
)
29 def SetVisible(*args
, **kwargs
):
30 """SetVisible(bool visible)"""
31 return _gdi
.GDIObject_SetVisible(*args
, **kwargs
)
33 def IsNull(*args
, **kwargs
):
34 """IsNull() -> bool"""
35 return _gdi
.GDIObject_IsNull(*args
, **kwargs
)
38 class GDIObjectPtr(GDIObject
):
39 def __init__(self
, this
):
41 if not hasattr(self
,"thisown"): self
.thisown
= 0
42 self
.__class
__ = GDIObject
43 _gdi
.GDIObject_swigregister(GDIObjectPtr
)
45 #---------------------------------------------------------------------------
47 class Colour(core
.Object
):
49 return "<%s.%s; proxy of C++ wxColour instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
50 def __init__(self
, *args
, **kwargs
):
51 """__init__(unsigned char red=0, unsigned char green=0, unsigned char blue=0) -> Colour"""
52 newobj
= _gdi
.new_Colour(*args
, **kwargs
)
53 self
.this
= newobj
.this
56 def __del__(self
, destroy
=_gdi
.delete_Colour
):
59 if self
.thisown
: destroy(self
)
62 def Red(*args
, **kwargs
):
63 """Red() -> unsigned char"""
64 return _gdi
.Colour_Red(*args
, **kwargs
)
66 def Green(*args
, **kwargs
):
67 """Green() -> unsigned char"""
68 return _gdi
.Colour_Green(*args
, **kwargs
)
70 def Blue(*args
, **kwargs
):
71 """Blue() -> unsigned char"""
72 return _gdi
.Colour_Blue(*args
, **kwargs
)
74 def Ok(*args
, **kwargs
):
76 return _gdi
.Colour_Ok(*args
, **kwargs
)
78 def Set(*args
, **kwargs
):
79 """Set(unsigned char red, unsigned char green, unsigned char blue)"""
80 return _gdi
.Colour_Set(*args
, **kwargs
)
82 def SetRGB(*args
, **kwargs
):
83 """SetRGB(unsigned long colRGB)"""
84 return _gdi
.Colour_SetRGB(*args
, **kwargs
)
86 def __eq__(*args
, **kwargs
):
87 """__eq__(Colour colour) -> bool"""
88 return _gdi
.Colour___eq__(*args
, **kwargs
)
90 def __ne__(*args
, **kwargs
):
91 """__ne__(Colour colour) -> bool"""
92 return _gdi
.Colour___ne__(*args
, **kwargs
)
94 def InitFromName(*args
, **kwargs
):
95 """InitFromName(wxString colourName)"""
96 return _gdi
.Colour_InitFromName(*args
, **kwargs
)
98 def Get(*args
, **kwargs
):
99 """Get() -> PyObject"""
100 return _gdi
.Colour_Get(*args
, **kwargs
)
103 def __str__(self
): return str(self
.asTuple())
104 def __repr__(self
): return 'wxColour' + str(self
.asTuple())
105 def __nonzero__(self
): return self
.Ok()
106 def __getinitargs__(self
): return ()
107 def __getstate__(self
): return self
.asTuple()
108 def __setstate__(self
, state
): self
.Set(*state
)
111 class ColourPtr(Colour
):
112 def __init__(self
, this
):
114 if not hasattr(self
,"thisown"): self
.thisown
= 0
115 self
.__class
__ = Colour
116 _gdi
.Colour_swigregister(ColourPtr
)
118 def NamedColour(*args
, **kwargs
):
119 """NamedColour(wxString colorName) -> Colour"""
120 val
= _gdi
.new_NamedColour(*args
, **kwargs
)
124 def ColourRGB(*args
, **kwargs
):
125 """ColourRGB(unsigned long colRGB) -> Colour"""
126 val
= _gdi
.new_ColourRGB(*args
, **kwargs
)
131 NamedColor
= NamedColour
133 class Palette(GDIObject
):
135 return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
136 def __init__(self
, *args
, **kwargs
):
137 """__init__(int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette"""
138 newobj
= _gdi
.new_Palette(*args
, **kwargs
)
139 self
.this
= newobj
.this
142 def __del__(self
, destroy
=_gdi
.delete_Palette
):
145 if self
.thisown
: destroy(self
)
148 def GetPixel(*args
, **kwargs
):
149 """GetPixel(byte red, byte green, byte blue) -> int"""
150 return _gdi
.Palette_GetPixel(*args
, **kwargs
)
152 def GetRGB(*args
, **kwargs
):
153 """GetRGB(int pixel) -> (R,G,B)"""
154 return _gdi
.Palette_GetRGB(*args
, **kwargs
)
156 def Ok(*args
, **kwargs
):
158 return _gdi
.Palette_Ok(*args
, **kwargs
)
160 def __nonzero__(self
): return self
.Ok()
162 class PalettePtr(Palette
):
163 def __init__(self
, this
):
165 if not hasattr(self
,"thisown"): self
.thisown
= 0
166 self
.__class
__ = Palette
167 _gdi
.Palette_swigregister(PalettePtr
)
169 #---------------------------------------------------------------------------
171 class Pen(GDIObject
):
173 return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
174 def __init__(self
, *args
, **kwargs
):
175 """__init__(Colour colour, int width=1, int style=SOLID) -> Pen"""
176 newobj
= _gdi
.new_Pen(*args
, **kwargs
)
177 self
.this
= newobj
.this
180 def __del__(self
, destroy
=_gdi
.delete_Pen
):
183 if self
.thisown
: destroy(self
)
186 def GetCap(*args
, **kwargs
):
187 """GetCap() -> int"""
188 return _gdi
.Pen_GetCap(*args
, **kwargs
)
190 def GetColour(*args
, **kwargs
):
191 """GetColour() -> Colour"""
192 return _gdi
.Pen_GetColour(*args
, **kwargs
)
194 def GetJoin(*args
, **kwargs
):
195 """GetJoin() -> int"""
196 return _gdi
.Pen_GetJoin(*args
, **kwargs
)
198 def GetStyle(*args
, **kwargs
):
199 """GetStyle() -> int"""
200 return _gdi
.Pen_GetStyle(*args
, **kwargs
)
202 def GetWidth(*args
, **kwargs
):
203 """GetWidth() -> int"""
204 return _gdi
.Pen_GetWidth(*args
, **kwargs
)
206 def Ok(*args
, **kwargs
):
208 return _gdi
.Pen_Ok(*args
, **kwargs
)
210 def SetCap(*args
, **kwargs
):
211 """SetCap(int cap_style)"""
212 return _gdi
.Pen_SetCap(*args
, **kwargs
)
214 def SetColour(*args
, **kwargs
):
215 """SetColour(Colour colour)"""
216 return _gdi
.Pen_SetColour(*args
, **kwargs
)
218 def SetJoin(*args
, **kwargs
):
219 """SetJoin(int join_style)"""
220 return _gdi
.Pen_SetJoin(*args
, **kwargs
)
222 def SetStyle(*args
, **kwargs
):
223 """SetStyle(int style)"""
224 return _gdi
.Pen_SetStyle(*args
, **kwargs
)
226 def SetWidth(*args
, **kwargs
):
227 """SetWidth(int width)"""
228 return _gdi
.Pen_SetWidth(*args
, **kwargs
)
230 def SetDashes(*args
, **kwargs
):
231 """SetDashes(int dashes, wxDash dashes_array)"""
232 return _gdi
.Pen_SetDashes(*args
, **kwargs
)
234 def GetDashes(*args
, **kwargs
):
235 """GetDashes() -> PyObject"""
236 return _gdi
.Pen_GetDashes(*args
, **kwargs
)
238 def GetDashCount(*args
, **kwargs
):
239 """GetDashCount() -> int"""
240 return _gdi
.Pen_GetDashCount(*args
, **kwargs
)
242 def __nonzero__(self
): return self
.Ok()
245 def __init__(self
, this
):
247 if not hasattr(self
,"thisown"): self
.thisown
= 0
249 _gdi
.Pen_swigregister(PenPtr
)
253 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
254 def __init__(self
, *args
, **kwargs
):
255 """__init__(Colour colour, int width=1, int style=SOLID) -> PyPen"""
256 newobj
= _gdi
.new_PyPen(*args
, **kwargs
)
257 self
.this
= newobj
.this
260 def __del__(self
, destroy
=_gdi
.delete_PyPen
):
263 if self
.thisown
: destroy(self
)
266 def SetDashes(*args
, **kwargs
):
267 """SetDashes(int dashes, wxDash dashes_array)"""
268 return _gdi
.PyPen_SetDashes(*args
, **kwargs
)
271 class PyPenPtr(PyPen
):
272 def __init__(self
, this
):
274 if not hasattr(self
,"thisown"): self
.thisown
= 0
275 self
.__class
__ = PyPen
276 _gdi
.PyPen_swigregister(PyPenPtr
)
279 #---------------------------------------------------------------------------
281 class Brush(GDIObject
):
283 A brush is a drawing tool for filling in areas. It is used for painting the
284 background of rectangles, ellipses, etc. It has a colour and a style.
287 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
288 def __init__(self
, *args
, **kwargs
):
290 __init__(Colour colour, int style=SOLID) -> Brush
292 Constructs a brush from a colour object and style.
294 newobj
= _gdi
.new_Brush(*args
, **kwargs
)
295 self
.this
= newobj
.this
298 def __del__(self
, destroy
=_gdi
.delete_Brush
):
301 if self
.thisown
: destroy(self
)
304 def SetColour(*args
, **kwargs
):
305 """SetColour(Colour col)"""
306 return _gdi
.Brush_SetColour(*args
, **kwargs
)
308 def SetStyle(*args
, **kwargs
):
309 """SetStyle(int style)"""
310 return _gdi
.Brush_SetStyle(*args
, **kwargs
)
312 def SetStipple(*args
, **kwargs
):
313 """SetStipple(Bitmap stipple)"""
314 return _gdi
.Brush_SetStipple(*args
, **kwargs
)
316 def GetColour(*args
, **kwargs
):
317 """GetColour() -> Colour"""
318 return _gdi
.Brush_GetColour(*args
, **kwargs
)
320 def GetStyle(*args
, **kwargs
):
321 """GetStyle() -> int"""
322 return _gdi
.Brush_GetStyle(*args
, **kwargs
)
324 def GetStipple(*args
, **kwargs
):
325 """GetStipple() -> Bitmap"""
326 return _gdi
.Brush_GetStipple(*args
, **kwargs
)
328 def Ok(*args
, **kwargs
):
330 return _gdi
.Brush_Ok(*args
, **kwargs
)
332 def __nonzero__(self
): return self
.Ok()
334 class BrushPtr(Brush
):
335 def __init__(self
, this
):
337 if not hasattr(self
,"thisown"): self
.thisown
= 0
338 self
.__class
__ = Brush
339 _gdi
.Brush_swigregister(BrushPtr
)
341 class Bitmap(GDIObject
):
343 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
344 def __init__(self
, *args
, **kwargs
):
346 __init__(wxString name, wxBitmapType type=BITMAP_TYPE_ANY) -> Bitmap
348 Loads a bitmap from a file.
350 newobj
= _gdi
.new_Bitmap(*args
, **kwargs
)
351 self
.this
= newobj
.this
354 def __del__(self
, destroy
=_gdi
.delete_Bitmap
):
357 if self
.thisown
: destroy(self
)
360 def Ok(*args
, **kwargs
):
362 return _gdi
.Bitmap_Ok(*args
, **kwargs
)
364 def GetWidth(*args
, **kwargs
):
368 Gets the width of the bitmap in pixels.
370 return _gdi
.Bitmap_GetWidth(*args
, **kwargs
)
372 def GetHeight(*args
, **kwargs
):
376 Gets the height of the bitmap in pixels.
378 return _gdi
.Bitmap_GetHeight(*args
, **kwargs
)
380 def GetDepth(*args
, **kwargs
):
384 Gets the colour depth of the bitmap. A value of 1 indicates a
387 return _gdi
.Bitmap_GetDepth(*args
, **kwargs
)
389 def ConvertToImage(*args
, **kwargs
):
391 ConvertToImage() -> Image
393 Creates a platform-independent image from a platform-dependent bitmap. This
394 preserves mask information so that bitmaps and images can be converted back
395 and forth without loss in that respect.
397 return _gdi
.Bitmap_ConvertToImage(*args
, **kwargs
)
399 def GetMask(*args
, **kwargs
):
403 Gets the associated mask (if any) which may have been loaded from a file
404 or explpicitly set for the bitmap.
406 return _gdi
.Bitmap_GetMask(*args
, **kwargs
)
408 def SetMask(*args
, **kwargs
):
412 Sets the mask for this bitmap.
414 return _gdi
.Bitmap_SetMask(*args
, **kwargs
)
416 def SetMaskColour(*args
, **kwargs
):
418 SetMaskColour(Colour colour)
420 Create a Mask based on a specified colour in the Bitmap.
422 return _gdi
.Bitmap_SetMaskColour(*args
, **kwargs
)
424 def GetSubBitmap(*args
, **kwargs
):
426 GetSubBitmap(Rect rect) -> Bitmap
428 Returns a sub bitmap of the current one as long as the rect belongs entirely
429 to the bitmap. This function preserves bit depth and mask information.
431 return _gdi
.Bitmap_GetSubBitmap(*args
, **kwargs
)
433 def SaveFile(*args
, **kwargs
):
435 SaveFile(wxString name, wxBitmapType type, Palette palette=(wxPalette *) NULL) -> bool
437 Saves a bitmap in the named file.
439 return _gdi
.Bitmap_SaveFile(*args
, **kwargs
)
441 def LoadFile(*args
, **kwargs
):
443 LoadFile(wxString name, wxBitmapType type) -> bool
445 Loads a bitmap from a file
447 return _gdi
.Bitmap_LoadFile(*args
, **kwargs
)
449 def CopyFromIcon(*args
, **kwargs
):
450 """CopyFromIcon(Icon icon) -> bool"""
451 return _gdi
.Bitmap_CopyFromIcon(*args
, **kwargs
)
453 def SetHeight(*args
, **kwargs
):
455 SetHeight(int height)
457 Set the height property (does not affect the bitmap data).
459 return _gdi
.Bitmap_SetHeight(*args
, **kwargs
)
461 def SetWidth(*args
, **kwargs
):
465 Set the width property (does not affect the bitmap data).
467 return _gdi
.Bitmap_SetWidth(*args
, **kwargs
)
469 def SetDepth(*args
, **kwargs
):
473 Set the depth property (does not affect the bitmap data).
475 return _gdi
.Bitmap_SetDepth(*args
, **kwargs
)
477 def __nonzero__(self
): return self
.Ok()
479 class BitmapPtr(Bitmap
):
480 def __init__(self
, this
):
482 if not hasattr(self
,"thisown"): self
.thisown
= 0
483 self
.__class
__ = Bitmap
484 _gdi
.Bitmap_swigregister(BitmapPtr
)
486 def EmptyBitmap(*args
, **kwargs
):
488 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
490 Creates a new bitmap of the given size. A depth of -1 indicates the depth of
491 the current screen or visual. Some platforms only support 1 for monochrome and
492 -1 for the current colour setting.
494 val
= _gdi
.new_EmptyBitmap(*args
, **kwargs
)
498 def BitmapFromIcon(*args
, **kwargs
):
500 BitmapFromIcon(Icon icon) -> Bitmap
502 Create a new bitmap from an Icon object.
504 val
= _gdi
.new_BitmapFromIcon(*args
, **kwargs
)
508 def BitmapFromImage(*args
, **kwargs
):
510 BitmapFromImage(Image image, int depth=-1) -> Bitmap
512 Creates bitmap object from the image. This has to be done to actually display
513 an image as you cannot draw an image directly on a window. The resulting
514 bitmap will use the provided colour depth (or that of the current system if
515 depth is -1) which entails that a colour reduction has to take place.
517 val
= _gdi
.new_BitmapFromImage(*args
, **kwargs
)
521 def BitmapFromXPMData(*args
, **kwargs
):
523 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
525 Construct a Bitmap from a list of strings formatted as XPM data.
527 val
= _gdi
.new_BitmapFromXPMData(*args
, **kwargs
)
531 def BitmapFromBits(*args
, **kwargs
):
533 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
535 Creates a bitmap from an array of bits. You should only use this function for
536 monochrome bitmaps (depth 1) in portable programs: in this case the bits
537 parameter should contain an XBM image. For other bit depths, the behaviour is
540 val
= _gdi
.new_BitmapFromBits(*args
, **kwargs
)
544 class Mask(core
.Object
):
546 This class encapsulates a monochrome mask bitmap, where the masked area is
547 black and the unmasked area is white. When associated with a bitmap and drawn
548 in a device context, the unmasked area of the bitmap will be drawn, and the
549 masked area will not be drawn.
552 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
553 def __init__(self
, *args
, **kwargs
):
555 __init__(Bitmap bitmap) -> Mask
557 Constructs a mask from a monochrome bitmap.
559 newobj
= _gdi
.new_Mask(*args
, **kwargs
)
560 self
.this
= newobj
.this
565 def __init__(self
, this
):
567 if not hasattr(self
,"thisown"): self
.thisown
= 0
568 self
.__class
__ = Mask
569 _gdi
.Mask_swigregister(MaskPtr
)
571 def MaskColour(*args
, **kwargs
):
573 MaskColour(Bitmap bitmap, Colour colour) -> Mask
575 Constructs a mask from a bitmap and a colour in that bitmap that indicates the
578 val
= _gdi
.new_MaskColour(*args
, **kwargs
)
582 class Icon(GDIObject
):
584 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
585 def __init__(self
, *args
, **kwargs
):
586 """__init__(wxString name, long flags, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
587 newobj
= _gdi
.new_Icon(*args
, **kwargs
)
588 self
.this
= newobj
.this
591 def __del__(self
, destroy
=_gdi
.delete_Icon
):
594 if self
.thisown
: destroy(self
)
597 def LoadFile(*args
, **kwargs
):
598 """LoadFile(wxString name, long flags) -> bool"""
599 return _gdi
.Icon_LoadFile(*args
, **kwargs
)
601 def Ok(*args
, **kwargs
):
603 return _gdi
.Icon_Ok(*args
, **kwargs
)
605 def GetWidth(*args
, **kwargs
):
606 """GetWidth() -> int"""
607 return _gdi
.Icon_GetWidth(*args
, **kwargs
)
609 def GetHeight(*args
, **kwargs
):
610 """GetHeight() -> int"""
611 return _gdi
.Icon_GetHeight(*args
, **kwargs
)
613 def GetDepth(*args
, **kwargs
):
614 """GetDepth() -> int"""
615 return _gdi
.Icon_GetDepth(*args
, **kwargs
)
617 def SetWidth(*args
, **kwargs
):
618 """SetWidth(int w)"""
619 return _gdi
.Icon_SetWidth(*args
, **kwargs
)
621 def SetHeight(*args
, **kwargs
):
622 """SetHeight(int h)"""
623 return _gdi
.Icon_SetHeight(*args
, **kwargs
)
625 def SetDepth(*args
, **kwargs
):
626 """SetDepth(int d)"""
627 return _gdi
.Icon_SetDepth(*args
, **kwargs
)
629 def CopyFromBitmap(*args
, **kwargs
):
630 """CopyFromBitmap(Bitmap bmp)"""
631 return _gdi
.Icon_CopyFromBitmap(*args
, **kwargs
)
633 def __nonzero__(self
): return self
.Ok()
636 def __init__(self
, this
):
638 if not hasattr(self
,"thisown"): self
.thisown
= 0
639 self
.__class
__ = Icon
640 _gdi
.Icon_swigregister(IconPtr
)
642 def EmptyIcon(*args
, **kwargs
):
643 """EmptyIcon() -> Icon"""
644 val
= _gdi
.new_EmptyIcon(*args
, **kwargs
)
648 def IconFromLocation(*args
, **kwargs
):
649 """IconFromLocation(IconLocation loc) -> Icon"""
650 val
= _gdi
.new_IconFromLocation(*args
, **kwargs
)
654 def IconFromBitmap(*args
, **kwargs
):
655 """IconFromBitmap(Bitmap bmp) -> Icon"""
656 val
= _gdi
.new_IconFromBitmap(*args
, **kwargs
)
660 def IconFromXPMData(*args
, **kwargs
):
661 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
662 val
= _gdi
.new_IconFromXPMData(*args
, **kwargs
)
666 class IconLocation(object):
668 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
669 def __init__(self
, *args
, **kwargs
):
670 """__init__(wxString filename=&wxPyEmptyString, int num=0) -> IconLocation"""
671 newobj
= _gdi
.new_IconLocation(*args
, **kwargs
)
672 self
.this
= newobj
.this
675 def __del__(self
, destroy
=_gdi
.delete_IconLocation
):
678 if self
.thisown
: destroy(self
)
681 def IsOk(*args
, **kwargs
):
683 return _gdi
.IconLocation_IsOk(*args
, **kwargs
)
685 def __nonzero__(self
): return self
.Ok()
686 def SetFileName(*args
, **kwargs
):
687 """SetFileName(wxString filename)"""
688 return _gdi
.IconLocation_SetFileName(*args
, **kwargs
)
690 def GetFileName(*args
, **kwargs
):
691 """GetFileName() -> wxString"""
692 return _gdi
.IconLocation_GetFileName(*args
, **kwargs
)
694 def SetIndex(*args
, **kwargs
):
695 """SetIndex(int num)"""
696 return _gdi
.IconLocation_SetIndex(*args
, **kwargs
)
698 def GetIndex(*args
, **kwargs
):
699 """GetIndex() -> int"""
700 return _gdi
.IconLocation_GetIndex(*args
, **kwargs
)
703 class IconLocationPtr(IconLocation
):
704 def __init__(self
, this
):
706 if not hasattr(self
,"thisown"): self
.thisown
= 0
707 self
.__class
__ = IconLocation
708 _gdi
.IconLocation_swigregister(IconLocationPtr
)
710 class IconBundle(object):
712 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
713 def __init__(self
, *args
, **kwargs
):
714 """__init__() -> IconBundle"""
715 newobj
= _gdi
.new_IconBundle(*args
, **kwargs
)
716 self
.this
= newobj
.this
719 def __del__(self
, destroy
=_gdi
.delete_IconBundle
):
722 if self
.thisown
: destroy(self
)
725 def AddIcon(*args
, **kwargs
):
726 """AddIcon(Icon icon)"""
727 return _gdi
.IconBundle_AddIcon(*args
, **kwargs
)
729 def AddIconFromFile(*args
, **kwargs
):
730 """AddIconFromFile(wxString file, long type)"""
731 return _gdi
.IconBundle_AddIconFromFile(*args
, **kwargs
)
733 def GetIcon(*args
, **kwargs
):
734 """GetIcon(Size size) -> Icon"""
735 return _gdi
.IconBundle_GetIcon(*args
, **kwargs
)
738 class IconBundlePtr(IconBundle
):
739 def __init__(self
, this
):
741 if not hasattr(self
,"thisown"): self
.thisown
= 0
742 self
.__class
__ = IconBundle
743 _gdi
.IconBundle_swigregister(IconBundlePtr
)
745 def IconBundleFromFile(*args
, **kwargs
):
746 """IconBundleFromFile(wxString file, long type) -> IconBundle"""
747 val
= _gdi
.new_IconBundleFromFile(*args
, **kwargs
)
751 def IconBundleFromIcon(*args
, **kwargs
):
752 """IconBundleFromIcon(Icon icon) -> IconBundle"""
753 val
= _gdi
.new_IconBundleFromIcon(*args
, **kwargs
)
757 class Cursor(GDIObject
):
759 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
760 def __init__(self
, *args
, **kwargs
):
761 """__init__(wxString cursorName, long flags, int hotSpotX=0, int hotSpotY=0) -> Cursor"""
762 newobj
= _gdi
.new_Cursor(*args
, **kwargs
)
763 self
.this
= newobj
.this
766 def __del__(self
, destroy
=_gdi
.delete_Cursor
):
769 if self
.thisown
: destroy(self
)
772 def Ok(*args
, **kwargs
):
774 return _gdi
.Cursor_Ok(*args
, **kwargs
)
776 def __nonzero__(self
): return self
.Ok()
778 class CursorPtr(Cursor
):
779 def __init__(self
, this
):
781 if not hasattr(self
,"thisown"): self
.thisown
= 0
782 self
.__class
__ = Cursor
783 _gdi
.Cursor_swigregister(CursorPtr
)
785 def StockCursor(*args
, **kwargs
):
786 """StockCursor(int id) -> Cursor"""
787 val
= _gdi
.new_StockCursor(*args
, **kwargs
)
791 def CursorFromImage(*args
, **kwargs
):
792 """CursorFromImage(Image image) -> Cursor"""
793 val
= _gdi
.new_CursorFromImage(*args
, **kwargs
)
797 def CursorFromBits(*args
, **kwargs
):
799 CursorFromBits(PyObject bits, int width, int height, int hotSpotX=-1,
800 int hotSpotY=-1, PyObject maskBits=0) -> Cursor
802 val
= _gdi
.new_CursorFromBits(*args
, **kwargs
)
806 #---------------------------------------------------------------------------
808 OutRegion
= _gdi
.OutRegion
809 PartRegion
= _gdi
.PartRegion
810 InRegion
= _gdi
.InRegion
811 class Region(GDIObject
):
813 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
814 def __init__(self
, *args
, **kwargs
):
815 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
816 newobj
= _gdi
.new_Region(*args
, **kwargs
)
817 self
.this
= newobj
.this
820 def __del__(self
, destroy
=_gdi
.delete_Region
):
823 if self
.thisown
: destroy(self
)
826 def Clear(*args
, **kwargs
):
828 return _gdi
.Region_Clear(*args
, **kwargs
)
830 def Offset(*args
, **kwargs
):
831 """Offset(int x, int y) -> bool"""
832 return _gdi
.Region_Offset(*args
, **kwargs
)
834 def Contains(*args
, **kwargs
):
835 """Contains(int x, int y) -> wxRegionContain"""
836 return _gdi
.Region_Contains(*args
, **kwargs
)
838 def ContainsPoint(*args
, **kwargs
):
839 """ContainsPoint(Point pt) -> wxRegionContain"""
840 return _gdi
.Region_ContainsPoint(*args
, **kwargs
)
842 def ContainsRect(*args
, **kwargs
):
843 """ContainsRect(Rect rect) -> wxRegionContain"""
844 return _gdi
.Region_ContainsRect(*args
, **kwargs
)
846 def ContainsRectDim(*args
, **kwargs
):
847 """ContainsRectDim(int x, int y, int w, int h) -> wxRegionContain"""
848 return _gdi
.Region_ContainsRectDim(*args
, **kwargs
)
850 def GetBox(*args
, **kwargs
):
851 """GetBox() -> Rect"""
852 return _gdi
.Region_GetBox(*args
, **kwargs
)
854 def Intersect(*args
, **kwargs
):
855 """Intersect(int x, int y, int width, int height) -> bool"""
856 return _gdi
.Region_Intersect(*args
, **kwargs
)
858 def IntersectRect(*args
, **kwargs
):
859 """IntersectRect(Rect rect) -> bool"""
860 return _gdi
.Region_IntersectRect(*args
, **kwargs
)
862 def IntersectRegion(*args
, **kwargs
):
863 """IntersectRegion(Region region) -> bool"""
864 return _gdi
.Region_IntersectRegion(*args
, **kwargs
)
866 def IsEmpty(*args
, **kwargs
):
867 """IsEmpty() -> bool"""
868 return _gdi
.Region_IsEmpty(*args
, **kwargs
)
870 def Union(*args
, **kwargs
):
871 """Union(int x, int y, int width, int height) -> bool"""
872 return _gdi
.Region_Union(*args
, **kwargs
)
874 def UnionRect(*args
, **kwargs
):
875 """UnionRect(Rect rect) -> bool"""
876 return _gdi
.Region_UnionRect(*args
, **kwargs
)
878 def UnionRegion(*args
, **kwargs
):
879 """UnionRegion(Region region) -> bool"""
880 return _gdi
.Region_UnionRegion(*args
, **kwargs
)
882 def Subtract(*args
, **kwargs
):
883 """Subtract(int x, int y, int width, int height) -> bool"""
884 return _gdi
.Region_Subtract(*args
, **kwargs
)
886 def SubtractRect(*args
, **kwargs
):
887 """SubtractRect(Rect rect) -> bool"""
888 return _gdi
.Region_SubtractRect(*args
, **kwargs
)
890 def SubtractRegion(*args
, **kwargs
):
891 """SubtractRegion(Region region) -> bool"""
892 return _gdi
.Region_SubtractRegion(*args
, **kwargs
)
894 def Xor(*args
, **kwargs
):
895 """Xor(int x, int y, int width, int height) -> bool"""
896 return _gdi
.Region_Xor(*args
, **kwargs
)
898 def XorRect(*args
, **kwargs
):
899 """XorRect(Rect rect) -> bool"""
900 return _gdi
.Region_XorRect(*args
, **kwargs
)
902 def XorRegion(*args
, **kwargs
):
903 """XorRegion(Region region) -> bool"""
904 return _gdi
.Region_XorRegion(*args
, **kwargs
)
906 def ConvertToBitmap(*args
, **kwargs
):
907 """ConvertToBitmap() -> Bitmap"""
908 return _gdi
.Region_ConvertToBitmap(*args
, **kwargs
)
910 def UnionBitmap(*args
, **kwargs
):
911 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
912 return _gdi
.Region_UnionBitmap(*args
, **kwargs
)
915 class RegionPtr(Region
):
916 def __init__(self
, this
):
918 if not hasattr(self
,"thisown"): self
.thisown
= 0
919 self
.__class
__ = Region
920 _gdi
.Region_swigregister(RegionPtr
)
922 def RegionFromBitmap(*args
, **kwargs
):
923 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
924 val
= _gdi
.new_RegionFromBitmap(*args
, **kwargs
)
928 def RegionFromPoints(*args
, **kwargs
):
929 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
930 val
= _gdi
.new_RegionFromPoints(*args
, **kwargs
)
934 class RegionIterator(core
.Object
):
936 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
937 def __init__(self
, *args
, **kwargs
):
938 """__init__(Region region) -> RegionIterator"""
939 newobj
= _gdi
.new_RegionIterator(*args
, **kwargs
)
940 self
.this
= newobj
.this
943 def __del__(self
, destroy
=_gdi
.delete_RegionIterator
):
946 if self
.thisown
: destroy(self
)
949 def GetX(*args
, **kwargs
):
951 return _gdi
.RegionIterator_GetX(*args
, **kwargs
)
953 def GetY(*args
, **kwargs
):
955 return _gdi
.RegionIterator_GetY(*args
, **kwargs
)
957 def GetW(*args
, **kwargs
):
959 return _gdi
.RegionIterator_GetW(*args
, **kwargs
)
961 def GetWidth(*args
, **kwargs
):
962 """GetWidth() -> int"""
963 return _gdi
.RegionIterator_GetWidth(*args
, **kwargs
)
965 def GetH(*args
, **kwargs
):
967 return _gdi
.RegionIterator_GetH(*args
, **kwargs
)
969 def GetHeight(*args
, **kwargs
):
970 """GetHeight() -> int"""
971 return _gdi
.RegionIterator_GetHeight(*args
, **kwargs
)
973 def GetRect(*args
, **kwargs
):
974 """GetRect() -> Rect"""
975 return _gdi
.RegionIterator_GetRect(*args
, **kwargs
)
977 def HaveRects(*args
, **kwargs
):
978 """HaveRects() -> bool"""
979 return _gdi
.RegionIterator_HaveRects(*args
, **kwargs
)
981 def Reset(*args
, **kwargs
):
983 return _gdi
.RegionIterator_Reset(*args
, **kwargs
)
985 def Next(*args
, **kwargs
):
987 return _gdi
.RegionIterator_Next(*args
, **kwargs
)
989 def __nonzero__(*args
, **kwargs
):
990 """__nonzero__() -> bool"""
991 return _gdi
.RegionIterator___nonzero__(*args
, **kwargs
)
994 class RegionIteratorPtr(RegionIterator
):
995 def __init__(self
, this
):
997 if not hasattr(self
,"thisown"): self
.thisown
= 0
998 self
.__class
__ = RegionIterator
999 _gdi
.RegionIterator_swigregister(RegionIteratorPtr
)
1001 #---------------------------------------------------------------------------
1003 FONTFAMILY_DEFAULT
= _gdi
.FONTFAMILY_DEFAULT
1004 FONTFAMILY_DECORATIVE
= _gdi
.FONTFAMILY_DECORATIVE
1005 FONTFAMILY_ROMAN
= _gdi
.FONTFAMILY_ROMAN
1006 FONTFAMILY_SCRIPT
= _gdi
.FONTFAMILY_SCRIPT
1007 FONTFAMILY_SWISS
= _gdi
.FONTFAMILY_SWISS
1008 FONTFAMILY_MODERN
= _gdi
.FONTFAMILY_MODERN
1009 FONTFAMILY_TELETYPE
= _gdi
.FONTFAMILY_TELETYPE
1010 FONTFAMILY_MAX
= _gdi
.FONTFAMILY_MAX
1011 FONTFAMILY_UNKNOWN
= _gdi
.FONTFAMILY_UNKNOWN
1012 FONTSTYLE_NORMAL
= _gdi
.FONTSTYLE_NORMAL
1013 FONTSTYLE_ITALIC
= _gdi
.FONTSTYLE_ITALIC
1014 FONTSTYLE_SLANT
= _gdi
.FONTSTYLE_SLANT
1015 FONTSTYLE_MAX
= _gdi
.FONTSTYLE_MAX
1016 FONTWEIGHT_NORMAL
= _gdi
.FONTWEIGHT_NORMAL
1017 FONTWEIGHT_LIGHT
= _gdi
.FONTWEIGHT_LIGHT
1018 FONTWEIGHT_BOLD
= _gdi
.FONTWEIGHT_BOLD
1019 FONTWEIGHT_MAX
= _gdi
.FONTWEIGHT_MAX
1020 FONTFLAG_DEFAULT
= _gdi
.FONTFLAG_DEFAULT
1021 FONTFLAG_ITALIC
= _gdi
.FONTFLAG_ITALIC
1022 FONTFLAG_SLANT
= _gdi
.FONTFLAG_SLANT
1023 FONTFLAG_LIGHT
= _gdi
.FONTFLAG_LIGHT
1024 FONTFLAG_BOLD
= _gdi
.FONTFLAG_BOLD
1025 FONTFLAG_ANTIALIASED
= _gdi
.FONTFLAG_ANTIALIASED
1026 FONTFLAG_NOT_ANTIALIASED
= _gdi
.FONTFLAG_NOT_ANTIALIASED
1027 FONTFLAG_UNDERLINED
= _gdi
.FONTFLAG_UNDERLINED
1028 FONTFLAG_STRIKETHROUGH
= _gdi
.FONTFLAG_STRIKETHROUGH
1029 FONTFLAG_MASK
= _gdi
.FONTFLAG_MASK
1030 FONTENCODING_SYSTEM
= _gdi
.FONTENCODING_SYSTEM
1031 FONTENCODING_DEFAULT
= _gdi
.FONTENCODING_DEFAULT
1032 FONTENCODING_ISO8859_1
= _gdi
.FONTENCODING_ISO8859_1
1033 FONTENCODING_ISO8859_2
= _gdi
.FONTENCODING_ISO8859_2
1034 FONTENCODING_ISO8859_3
= _gdi
.FONTENCODING_ISO8859_3
1035 FONTENCODING_ISO8859_4
= _gdi
.FONTENCODING_ISO8859_4
1036 FONTENCODING_ISO8859_5
= _gdi
.FONTENCODING_ISO8859_5
1037 FONTENCODING_ISO8859_6
= _gdi
.FONTENCODING_ISO8859_6
1038 FONTENCODING_ISO8859_7
= _gdi
.FONTENCODING_ISO8859_7
1039 FONTENCODING_ISO8859_8
= _gdi
.FONTENCODING_ISO8859_8
1040 FONTENCODING_ISO8859_9
= _gdi
.FONTENCODING_ISO8859_9
1041 FONTENCODING_ISO8859_10
= _gdi
.FONTENCODING_ISO8859_10
1042 FONTENCODING_ISO8859_11
= _gdi
.FONTENCODING_ISO8859_11
1043 FONTENCODING_ISO8859_12
= _gdi
.FONTENCODING_ISO8859_12
1044 FONTENCODING_ISO8859_13
= _gdi
.FONTENCODING_ISO8859_13
1045 FONTENCODING_ISO8859_14
= _gdi
.FONTENCODING_ISO8859_14
1046 FONTENCODING_ISO8859_15
= _gdi
.FONTENCODING_ISO8859_15
1047 FONTENCODING_ISO8859_MAX
= _gdi
.FONTENCODING_ISO8859_MAX
1048 FONTENCODING_KOI8
= _gdi
.FONTENCODING_KOI8
1049 FONTENCODING_ALTERNATIVE
= _gdi
.FONTENCODING_ALTERNATIVE
1050 FONTENCODING_BULGARIAN
= _gdi
.FONTENCODING_BULGARIAN
1051 FONTENCODING_CP437
= _gdi
.FONTENCODING_CP437
1052 FONTENCODING_CP850
= _gdi
.FONTENCODING_CP850
1053 FONTENCODING_CP852
= _gdi
.FONTENCODING_CP852
1054 FONTENCODING_CP855
= _gdi
.FONTENCODING_CP855
1055 FONTENCODING_CP866
= _gdi
.FONTENCODING_CP866
1056 FONTENCODING_CP874
= _gdi
.FONTENCODING_CP874
1057 FONTENCODING_CP932
= _gdi
.FONTENCODING_CP932
1058 FONTENCODING_CP936
= _gdi
.FONTENCODING_CP936
1059 FONTENCODING_CP949
= _gdi
.FONTENCODING_CP949
1060 FONTENCODING_CP950
= _gdi
.FONTENCODING_CP950
1061 FONTENCODING_CP1250
= _gdi
.FONTENCODING_CP1250
1062 FONTENCODING_CP1251
= _gdi
.FONTENCODING_CP1251
1063 FONTENCODING_CP1252
= _gdi
.FONTENCODING_CP1252
1064 FONTENCODING_CP1253
= _gdi
.FONTENCODING_CP1253
1065 FONTENCODING_CP1254
= _gdi
.FONTENCODING_CP1254
1066 FONTENCODING_CP1255
= _gdi
.FONTENCODING_CP1255
1067 FONTENCODING_CP1256
= _gdi
.FONTENCODING_CP1256
1068 FONTENCODING_CP1257
= _gdi
.FONTENCODING_CP1257
1069 FONTENCODING_CP12_MAX
= _gdi
.FONTENCODING_CP12_MAX
1070 FONTENCODING_UTF7
= _gdi
.FONTENCODING_UTF7
1071 FONTENCODING_UTF8
= _gdi
.FONTENCODING_UTF8
1072 FONTENCODING_EUC_JP
= _gdi
.FONTENCODING_EUC_JP
1073 FONTENCODING_UTF16BE
= _gdi
.FONTENCODING_UTF16BE
1074 FONTENCODING_UTF16LE
= _gdi
.FONTENCODING_UTF16LE
1075 FONTENCODING_UTF32BE
= _gdi
.FONTENCODING_UTF32BE
1076 FONTENCODING_UTF32LE
= _gdi
.FONTENCODING_UTF32LE
1077 FONTENCODING_MAX
= _gdi
.FONTENCODING_MAX
1078 FONTENCODING_UTF16
= _gdi
.FONTENCODING_UTF16
1079 FONTENCODING_UTF32
= _gdi
.FONTENCODING_UTF32
1080 FONTENCODING_UNICODE
= _gdi
.FONTENCODING_UNICODE
1081 FONTENCODING_GB2312
= _gdi
.FONTENCODING_GB2312
1082 FONTENCODING_BIG5
= _gdi
.FONTENCODING_BIG5
1083 FONTENCODING_SHIFT_JIS
= _gdi
.FONTENCODING_SHIFT_JIS
1084 #---------------------------------------------------------------------------
1086 class NativeFontInfo(object):
1088 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1089 def __init__(self
, *args
, **kwargs
):
1090 """__init__() -> NativeFontInfo"""
1091 newobj
= _gdi
.new_NativeFontInfo(*args
, **kwargs
)
1092 self
.this
= newobj
.this
1095 def __del__(self
, destroy
=_gdi
.delete_NativeFontInfo
):
1098 if self
.thisown
: destroy(self
)
1101 def Init(*args
, **kwargs
):
1103 return _gdi
.NativeFontInfo_Init(*args
, **kwargs
)
1105 def InitFromFont(*args
, **kwargs
):
1106 """InitFromFont(Font font)"""
1107 return _gdi
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1109 def GetPointSize(*args
, **kwargs
):
1110 """GetPointSize() -> int"""
1111 return _gdi
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1113 def GetStyle(*args
, **kwargs
):
1114 """GetStyle() -> wxFontStyle"""
1115 return _gdi
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1117 def GetWeight(*args
, **kwargs
):
1118 """GetWeight() -> wxFontWeight"""
1119 return _gdi
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1121 def GetUnderlined(*args
, **kwargs
):
1122 """GetUnderlined() -> bool"""
1123 return _gdi
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1125 def GetFaceName(*args
, **kwargs
):
1126 """GetFaceName() -> wxString"""
1127 return _gdi
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1129 def GetFamily(*args
, **kwargs
):
1130 """GetFamily() -> wxFontFamily"""
1131 return _gdi
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1133 def GetEncoding(*args
, **kwargs
):
1134 """GetEncoding() -> wxFontEncoding"""
1135 return _gdi
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1137 def SetPointSize(*args
, **kwargs
):
1138 """SetPointSize(int pointsize)"""
1139 return _gdi
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1141 def SetStyle(*args
, **kwargs
):
1142 """SetStyle(wxFontStyle style)"""
1143 return _gdi
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1145 def SetWeight(*args
, **kwargs
):
1146 """SetWeight(wxFontWeight weight)"""
1147 return _gdi
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1149 def SetUnderlined(*args
, **kwargs
):
1150 """SetUnderlined(bool underlined)"""
1151 return _gdi
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1153 def SetFaceName(*args
, **kwargs
):
1154 """SetFaceName(wxString facename)"""
1155 return _gdi
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1157 def SetFamily(*args
, **kwargs
):
1158 """SetFamily(wxFontFamily family)"""
1159 return _gdi
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1161 def SetEncoding(*args
, **kwargs
):
1162 """SetEncoding(wxFontEncoding encoding)"""
1163 return _gdi
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1165 def FromString(*args
, **kwargs
):
1166 """FromString(wxString s) -> bool"""
1167 return _gdi
.NativeFontInfo_FromString(*args
, **kwargs
)
1169 def ToString(*args
, **kwargs
):
1170 """ToString() -> wxString"""
1171 return _gdi
.NativeFontInfo_ToString(*args
, **kwargs
)
1173 def __str__(*args
, **kwargs
):
1174 """__str__() -> wxString"""
1175 return _gdi
.NativeFontInfo___str__(*args
, **kwargs
)
1177 def FromUserString(*args
, **kwargs
):
1178 """FromUserString(wxString s) -> bool"""
1179 return _gdi
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1181 def ToUserString(*args
, **kwargs
):
1182 """ToUserString() -> wxString"""
1183 return _gdi
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1186 class NativeFontInfoPtr(NativeFontInfo
):
1187 def __init__(self
, this
):
1189 if not hasattr(self
,"thisown"): self
.thisown
= 0
1190 self
.__class
__ = NativeFontInfo
1191 _gdi
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1193 class NativeEncodingInfo(object):
1195 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1196 facename
= property(_gdi
.NativeEncodingInfo_facename_get
, _gdi
.NativeEncodingInfo_facename_set
)
1197 encoding
= property(_gdi
.NativeEncodingInfo_encoding_get
, _gdi
.NativeEncodingInfo_encoding_set
)
1198 def __init__(self
, *args
, **kwargs
):
1199 """__init__() -> NativeEncodingInfo"""
1200 newobj
= _gdi
.new_NativeEncodingInfo(*args
, **kwargs
)
1201 self
.this
= newobj
.this
1204 def __del__(self
, destroy
=_gdi
.delete_NativeEncodingInfo
):
1207 if self
.thisown
: destroy(self
)
1210 def FromString(*args
, **kwargs
):
1211 """FromString(wxString s) -> bool"""
1212 return _gdi
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1214 def ToString(*args
, **kwargs
):
1215 """ToString() -> wxString"""
1216 return _gdi
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1219 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1220 def __init__(self
, this
):
1222 if not hasattr(self
,"thisown"): self
.thisown
= 0
1223 self
.__class
__ = NativeEncodingInfo
1224 _gdi
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1227 def GetNativeFontEncoding(*args
, **kwargs
):
1228 """GetNativeFontEncoding(wxFontEncoding encoding) -> NativeEncodingInfo"""
1229 return _gdi
.GetNativeFontEncoding(*args
, **kwargs
)
1231 def TestFontEncoding(*args
, **kwargs
):
1232 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1233 return _gdi
.TestFontEncoding(*args
, **kwargs
)
1234 #---------------------------------------------------------------------------
1236 class FontMapper(object):
1238 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1239 def __init__(self
, *args
, **kwargs
):
1240 """__init__() -> FontMapper"""
1241 newobj
= _gdi
.new_FontMapper(*args
, **kwargs
)
1242 self
.this
= newobj
.this
1245 def __del__(self
, destroy
=_gdi
.delete_FontMapper
):
1248 if self
.thisown
: destroy(self
)
1251 def Get(*args
, **kwargs
):
1252 """FontMapper.Get() -> FontMapper"""
1253 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1255 Get
= staticmethod(Get
)
1256 def Set(*args
, **kwargs
):
1257 """FontMapper.Set(FontMapper mapper) -> FontMapper"""
1258 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1260 Set
= staticmethod(Set
)
1261 def CharsetToEncoding(*args
, **kwargs
):
1262 """CharsetToEncoding(wxString charset, bool interactive=True) -> wxFontEncoding"""
1263 return _gdi
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1265 def GetSupportedEncodingsCount(*args
, **kwargs
):
1266 """FontMapper.GetSupportedEncodingsCount() -> size_t"""
1267 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1269 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1270 def GetEncoding(*args
, **kwargs
):
1271 """FontMapper.GetEncoding(size_t n) -> wxFontEncoding"""
1272 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1274 GetEncoding
= staticmethod(GetEncoding
)
1275 def GetEncodingName(*args
, **kwargs
):
1276 """FontMapper.GetEncodingName(wxFontEncoding encoding) -> wxString"""
1277 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1279 GetEncodingName
= staticmethod(GetEncodingName
)
1280 def GetEncodingDescription(*args
, **kwargs
):
1281 """FontMapper.GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1282 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1284 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1285 def SetConfig(*args
, **kwargs
):
1286 """SetConfig(wxConfigBase config)"""
1287 return _gdi
.FontMapper_SetConfig(*args
, **kwargs
)
1289 def SetConfigPath(*args
, **kwargs
):
1290 """SetConfigPath(wxString prefix)"""
1291 return _gdi
.FontMapper_SetConfigPath(*args
, **kwargs
)
1293 def GetDefaultConfigPath(*args
, **kwargs
):
1294 """FontMapper.GetDefaultConfigPath() -> wxString"""
1295 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1297 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1298 def GetAltForEncoding(*args
, **kwargs
):
1300 GetAltForEncoding(wxFontEncoding encoding, wxString facename=wxPyEmptyString,
1301 bool interactive=True) -> PyObject
1303 return _gdi
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1305 def IsEncodingAvailable(*args
, **kwargs
):
1306 """IsEncodingAvailable(wxFontEncoding encoding, wxString facename=wxPyEmptyString) -> bool"""
1307 return _gdi
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1309 def SetDialogParent(*args
, **kwargs
):
1310 """SetDialogParent(Window parent)"""
1311 return _gdi
.FontMapper_SetDialogParent(*args
, **kwargs
)
1313 def SetDialogTitle(*args
, **kwargs
):
1314 """SetDialogTitle(wxString title)"""
1315 return _gdi
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1318 class FontMapperPtr(FontMapper
):
1319 def __init__(self
, this
):
1321 if not hasattr(self
,"thisown"): self
.thisown
= 0
1322 self
.__class
__ = FontMapper
1323 _gdi
.FontMapper_swigregister(FontMapperPtr
)
1325 def FontMapper_Get(*args
, **kwargs
):
1326 """FontMapper_Get() -> FontMapper"""
1327 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1329 def FontMapper_Set(*args
, **kwargs
):
1330 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1331 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1333 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1334 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1335 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1337 def FontMapper_GetEncoding(*args
, **kwargs
):
1338 """FontMapper_GetEncoding(size_t n) -> wxFontEncoding"""
1339 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1341 def FontMapper_GetEncodingName(*args
, **kwargs
):
1342 """FontMapper_GetEncodingName(wxFontEncoding encoding) -> wxString"""
1343 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1345 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1346 """FontMapper_GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1347 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1349 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1350 """FontMapper_GetDefaultConfigPath() -> wxString"""
1351 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1353 #---------------------------------------------------------------------------
1355 class Font(GDIObject
):
1357 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1358 def __init__(self
, *args
, **kwargs
):
1360 __init__(int pointSize, int family, int style, int weight, bool underline=False,
1361 wxString face=wxPyEmptyString,
1362 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font
1364 newobj
= _gdi
.new_Font(*args
, **kwargs
)
1365 self
.this
= newobj
.this
1368 def __del__(self
, destroy
=_gdi
.delete_Font
):
1371 if self
.thisown
: destroy(self
)
1374 def Ok(*args
, **kwargs
):
1376 return _gdi
.Font_Ok(*args
, **kwargs
)
1378 def __nonzero__(self
): return self
.Ok()
1379 def __eq__(*args
, **kwargs
):
1380 """__eq__(Font font) -> bool"""
1381 return _gdi
.Font___eq__(*args
, **kwargs
)
1383 def __ne__(*args
, **kwargs
):
1384 """__ne__(Font font) -> bool"""
1385 return _gdi
.Font___ne__(*args
, **kwargs
)
1387 def GetPointSize(*args
, **kwargs
):
1388 """GetPointSize() -> int"""
1389 return _gdi
.Font_GetPointSize(*args
, **kwargs
)
1391 def GetFamily(*args
, **kwargs
):
1392 """GetFamily() -> int"""
1393 return _gdi
.Font_GetFamily(*args
, **kwargs
)
1395 def GetStyle(*args
, **kwargs
):
1396 """GetStyle() -> int"""
1397 return _gdi
.Font_GetStyle(*args
, **kwargs
)
1399 def GetWeight(*args
, **kwargs
):
1400 """GetWeight() -> int"""
1401 return _gdi
.Font_GetWeight(*args
, **kwargs
)
1403 def GetUnderlined(*args
, **kwargs
):
1404 """GetUnderlined() -> bool"""
1405 return _gdi
.Font_GetUnderlined(*args
, **kwargs
)
1407 def GetFaceName(*args
, **kwargs
):
1408 """GetFaceName() -> wxString"""
1409 return _gdi
.Font_GetFaceName(*args
, **kwargs
)
1411 def GetEncoding(*args
, **kwargs
):
1412 """GetEncoding() -> wxFontEncoding"""
1413 return _gdi
.Font_GetEncoding(*args
, **kwargs
)
1415 def GetNativeFontInfo(*args
, **kwargs
):
1416 """GetNativeFontInfo() -> NativeFontInfo"""
1417 return _gdi
.Font_GetNativeFontInfo(*args
, **kwargs
)
1419 def IsFixedWidth(*args
, **kwargs
):
1420 """IsFixedWidth() -> bool"""
1421 return _gdi
.Font_IsFixedWidth(*args
, **kwargs
)
1423 def GetNativeFontInfoDesc(*args
, **kwargs
):
1424 """GetNativeFontInfoDesc() -> wxString"""
1425 return _gdi
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1427 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1428 """GetNativeFontInfoUserDesc() -> wxString"""
1429 return _gdi
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1431 def SetPointSize(*args
, **kwargs
):
1432 """SetPointSize(int pointSize)"""
1433 return _gdi
.Font_SetPointSize(*args
, **kwargs
)
1435 def SetFamily(*args
, **kwargs
):
1436 """SetFamily(int family)"""
1437 return _gdi
.Font_SetFamily(*args
, **kwargs
)
1439 def SetStyle(*args
, **kwargs
):
1440 """SetStyle(int style)"""
1441 return _gdi
.Font_SetStyle(*args
, **kwargs
)
1443 def SetWeight(*args
, **kwargs
):
1444 """SetWeight(int weight)"""
1445 return _gdi
.Font_SetWeight(*args
, **kwargs
)
1447 def SetFaceName(*args
, **kwargs
):
1448 """SetFaceName(wxString faceName)"""
1449 return _gdi
.Font_SetFaceName(*args
, **kwargs
)
1451 def SetUnderlined(*args
, **kwargs
):
1452 """SetUnderlined(bool underlined)"""
1453 return _gdi
.Font_SetUnderlined(*args
, **kwargs
)
1455 def SetEncoding(*args
, **kwargs
):
1456 """SetEncoding(wxFontEncoding encoding)"""
1457 return _gdi
.Font_SetEncoding(*args
, **kwargs
)
1459 def SetNativeFontInfo(*args
, **kwargs
):
1460 """SetNativeFontInfo(NativeFontInfo info)"""
1461 return _gdi
.Font_SetNativeFontInfo(*args
, **kwargs
)
1463 def SetNativeFontInfoFromString(*args
, **kwargs
):
1464 """SetNativeFontInfoFromString(wxString info)"""
1465 return _gdi
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1467 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1468 """SetNativeFontInfoUserDesc(wxString info)"""
1469 return _gdi
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1471 def GetFamilyString(*args
, **kwargs
):
1472 """GetFamilyString() -> wxString"""
1473 return _gdi
.Font_GetFamilyString(*args
, **kwargs
)
1475 def GetStyleString(*args
, **kwargs
):
1476 """GetStyleString() -> wxString"""
1477 return _gdi
.Font_GetStyleString(*args
, **kwargs
)
1479 def GetWeightString(*args
, **kwargs
):
1480 """GetWeightString() -> wxString"""
1481 return _gdi
.Font_GetWeightString(*args
, **kwargs
)
1483 def SetNoAntiAliasing(*args
, **kwargs
):
1484 """SetNoAntiAliasing(bool no=True)"""
1485 return _gdi
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1487 def GetNoAntiAliasing(*args
, **kwargs
):
1488 """GetNoAntiAliasing() -> bool"""
1489 return _gdi
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1491 def GetDefaultEncoding(*args
, **kwargs
):
1492 """Font.GetDefaultEncoding() -> wxFontEncoding"""
1493 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1495 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1496 def SetDefaultEncoding(*args
, **kwargs
):
1497 """Font.SetDefaultEncoding(wxFontEncoding encoding)"""
1498 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1500 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1502 class FontPtr(Font
):
1503 def __init__(self
, this
):
1505 if not hasattr(self
,"thisown"): self
.thisown
= 0
1506 self
.__class
__ = Font
1507 _gdi
.Font_swigregister(FontPtr
)
1509 def FontFromNativeInfo(*args
, **kwargs
):
1510 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1511 val
= _gdi
.new_FontFromNativeInfo(*args
, **kwargs
)
1515 def FontFromNativeInfoString(*args
, **kwargs
):
1516 """FontFromNativeInfoString(wxString info) -> Font"""
1517 val
= _gdi
.new_FontFromNativeInfoString(*args
, **kwargs
)
1521 def Font2(*args
, **kwargs
):
1523 Font2(int pointSize, wxFontFamily family, int flags=FONTFLAG_DEFAULT,
1524 wxString face=wxPyEmptyString, wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font
1526 val
= _gdi
.new_Font2(*args
, **kwargs
)
1530 def Font_GetDefaultEncoding(*args
, **kwargs
):
1531 """Font_GetDefaultEncoding() -> wxFontEncoding"""
1532 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1534 def Font_SetDefaultEncoding(*args
, **kwargs
):
1535 """Font_SetDefaultEncoding(wxFontEncoding encoding)"""
1536 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1538 #---------------------------------------------------------------------------
1540 class FontEnumerator(object):
1542 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1543 def __init__(self
, *args
, **kwargs
):
1544 """__init__() -> FontEnumerator"""
1545 newobj
= _gdi
.new_FontEnumerator(*args
, **kwargs
)
1546 self
.this
= newobj
.this
1549 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1551 def __del__(self
, destroy
=_gdi
.delete_FontEnumerator
):
1554 if self
.thisown
: destroy(self
)
1557 def _setCallbackInfo(*args
, **kwargs
):
1558 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1559 return _gdi
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1561 def EnumerateFacenames(*args
, **kwargs
):
1562 """EnumerateFacenames(wxFontEncoding encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1563 return _gdi
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1565 def EnumerateEncodings(*args
, **kwargs
):
1566 """EnumerateEncodings(wxString facename=wxPyEmptyString) -> bool"""
1567 return _gdi
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1569 def GetEncodings(*args
, **kwargs
):
1570 """GetEncodings() -> PyObject"""
1571 return _gdi
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1573 def GetFacenames(*args
, **kwargs
):
1574 """GetFacenames() -> PyObject"""
1575 return _gdi
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1578 class FontEnumeratorPtr(FontEnumerator
):
1579 def __init__(self
, this
):
1581 if not hasattr(self
,"thisown"): self
.thisown
= 0
1582 self
.__class
__ = FontEnumerator
1583 _gdi
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1585 #---------------------------------------------------------------------------
1587 LANGUAGE_DEFAULT
= _gdi
.LANGUAGE_DEFAULT
1588 LANGUAGE_UNKNOWN
= _gdi
.LANGUAGE_UNKNOWN
1589 LANGUAGE_ABKHAZIAN
= _gdi
.LANGUAGE_ABKHAZIAN
1590 LANGUAGE_AFAR
= _gdi
.LANGUAGE_AFAR
1591 LANGUAGE_AFRIKAANS
= _gdi
.LANGUAGE_AFRIKAANS
1592 LANGUAGE_ALBANIAN
= _gdi
.LANGUAGE_ALBANIAN
1593 LANGUAGE_AMHARIC
= _gdi
.LANGUAGE_AMHARIC
1594 LANGUAGE_ARABIC
= _gdi
.LANGUAGE_ARABIC
1595 LANGUAGE_ARABIC_ALGERIA
= _gdi
.LANGUAGE_ARABIC_ALGERIA
1596 LANGUAGE_ARABIC_BAHRAIN
= _gdi
.LANGUAGE_ARABIC_BAHRAIN
1597 LANGUAGE_ARABIC_EGYPT
= _gdi
.LANGUAGE_ARABIC_EGYPT
1598 LANGUAGE_ARABIC_IRAQ
= _gdi
.LANGUAGE_ARABIC_IRAQ
1599 LANGUAGE_ARABIC_JORDAN
= _gdi
.LANGUAGE_ARABIC_JORDAN
1600 LANGUAGE_ARABIC_KUWAIT
= _gdi
.LANGUAGE_ARABIC_KUWAIT
1601 LANGUAGE_ARABIC_LEBANON
= _gdi
.LANGUAGE_ARABIC_LEBANON
1602 LANGUAGE_ARABIC_LIBYA
= _gdi
.LANGUAGE_ARABIC_LIBYA
1603 LANGUAGE_ARABIC_MOROCCO
= _gdi
.LANGUAGE_ARABIC_MOROCCO
1604 LANGUAGE_ARABIC_OMAN
= _gdi
.LANGUAGE_ARABIC_OMAN
1605 LANGUAGE_ARABIC_QATAR
= _gdi
.LANGUAGE_ARABIC_QATAR
1606 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi
.LANGUAGE_ARABIC_SAUDI_ARABIA
1607 LANGUAGE_ARABIC_SUDAN
= _gdi
.LANGUAGE_ARABIC_SUDAN
1608 LANGUAGE_ARABIC_SYRIA
= _gdi
.LANGUAGE_ARABIC_SYRIA
1609 LANGUAGE_ARABIC_TUNISIA
= _gdi
.LANGUAGE_ARABIC_TUNISIA
1610 LANGUAGE_ARABIC_UAE
= _gdi
.LANGUAGE_ARABIC_UAE
1611 LANGUAGE_ARABIC_YEMEN
= _gdi
.LANGUAGE_ARABIC_YEMEN
1612 LANGUAGE_ARMENIAN
= _gdi
.LANGUAGE_ARMENIAN
1613 LANGUAGE_ASSAMESE
= _gdi
.LANGUAGE_ASSAMESE
1614 LANGUAGE_AYMARA
= _gdi
.LANGUAGE_AYMARA
1615 LANGUAGE_AZERI
= _gdi
.LANGUAGE_AZERI
1616 LANGUAGE_AZERI_CYRILLIC
= _gdi
.LANGUAGE_AZERI_CYRILLIC
1617 LANGUAGE_AZERI_LATIN
= _gdi
.LANGUAGE_AZERI_LATIN
1618 LANGUAGE_BASHKIR
= _gdi
.LANGUAGE_BASHKIR
1619 LANGUAGE_BASQUE
= _gdi
.LANGUAGE_BASQUE
1620 LANGUAGE_BELARUSIAN
= _gdi
.LANGUAGE_BELARUSIAN
1621 LANGUAGE_BENGALI
= _gdi
.LANGUAGE_BENGALI
1622 LANGUAGE_BHUTANI
= _gdi
.LANGUAGE_BHUTANI
1623 LANGUAGE_BIHARI
= _gdi
.LANGUAGE_BIHARI
1624 LANGUAGE_BISLAMA
= _gdi
.LANGUAGE_BISLAMA
1625 LANGUAGE_BRETON
= _gdi
.LANGUAGE_BRETON
1626 LANGUAGE_BULGARIAN
= _gdi
.LANGUAGE_BULGARIAN
1627 LANGUAGE_BURMESE
= _gdi
.LANGUAGE_BURMESE
1628 LANGUAGE_CAMBODIAN
= _gdi
.LANGUAGE_CAMBODIAN
1629 LANGUAGE_CATALAN
= _gdi
.LANGUAGE_CATALAN
1630 LANGUAGE_CHINESE
= _gdi
.LANGUAGE_CHINESE
1631 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi
.LANGUAGE_CHINESE_SIMPLIFIED
1632 LANGUAGE_CHINESE_TRADITIONAL
= _gdi
.LANGUAGE_CHINESE_TRADITIONAL
1633 LANGUAGE_CHINESE_HONGKONG
= _gdi
.LANGUAGE_CHINESE_HONGKONG
1634 LANGUAGE_CHINESE_MACAU
= _gdi
.LANGUAGE_CHINESE_MACAU
1635 LANGUAGE_CHINESE_SINGAPORE
= _gdi
.LANGUAGE_CHINESE_SINGAPORE
1636 LANGUAGE_CHINESE_TAIWAN
= _gdi
.LANGUAGE_CHINESE_TAIWAN
1637 LANGUAGE_CORSICAN
= _gdi
.LANGUAGE_CORSICAN
1638 LANGUAGE_CROATIAN
= _gdi
.LANGUAGE_CROATIAN
1639 LANGUAGE_CZECH
= _gdi
.LANGUAGE_CZECH
1640 LANGUAGE_DANISH
= _gdi
.LANGUAGE_DANISH
1641 LANGUAGE_DUTCH
= _gdi
.LANGUAGE_DUTCH
1642 LANGUAGE_DUTCH_BELGIAN
= _gdi
.LANGUAGE_DUTCH_BELGIAN
1643 LANGUAGE_ENGLISH
= _gdi
.LANGUAGE_ENGLISH
1644 LANGUAGE_ENGLISH_UK
= _gdi
.LANGUAGE_ENGLISH_UK
1645 LANGUAGE_ENGLISH_US
= _gdi
.LANGUAGE_ENGLISH_US
1646 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi
.LANGUAGE_ENGLISH_AUSTRALIA
1647 LANGUAGE_ENGLISH_BELIZE
= _gdi
.LANGUAGE_ENGLISH_BELIZE
1648 LANGUAGE_ENGLISH_BOTSWANA
= _gdi
.LANGUAGE_ENGLISH_BOTSWANA
1649 LANGUAGE_ENGLISH_CANADA
= _gdi
.LANGUAGE_ENGLISH_CANADA
1650 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi
.LANGUAGE_ENGLISH_CARIBBEAN
1651 LANGUAGE_ENGLISH_DENMARK
= _gdi
.LANGUAGE_ENGLISH_DENMARK
1652 LANGUAGE_ENGLISH_EIRE
= _gdi
.LANGUAGE_ENGLISH_EIRE
1653 LANGUAGE_ENGLISH_JAMAICA
= _gdi
.LANGUAGE_ENGLISH_JAMAICA
1654 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi
.LANGUAGE_ENGLISH_NEW_ZEALAND
1655 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi
.LANGUAGE_ENGLISH_PHILIPPINES
1656 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1657 LANGUAGE_ENGLISH_TRINIDAD
= _gdi
.LANGUAGE_ENGLISH_TRINIDAD
1658 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi
.LANGUAGE_ENGLISH_ZIMBABWE
1659 LANGUAGE_ESPERANTO
= _gdi
.LANGUAGE_ESPERANTO
1660 LANGUAGE_ESTONIAN
= _gdi
.LANGUAGE_ESTONIAN
1661 LANGUAGE_FAEROESE
= _gdi
.LANGUAGE_FAEROESE
1662 LANGUAGE_FARSI
= _gdi
.LANGUAGE_FARSI
1663 LANGUAGE_FIJI
= _gdi
.LANGUAGE_FIJI
1664 LANGUAGE_FINNISH
= _gdi
.LANGUAGE_FINNISH
1665 LANGUAGE_FRENCH
= _gdi
.LANGUAGE_FRENCH
1666 LANGUAGE_FRENCH_BELGIAN
= _gdi
.LANGUAGE_FRENCH_BELGIAN
1667 LANGUAGE_FRENCH_CANADIAN
= _gdi
.LANGUAGE_FRENCH_CANADIAN
1668 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi
.LANGUAGE_FRENCH_LUXEMBOURG
1669 LANGUAGE_FRENCH_MONACO
= _gdi
.LANGUAGE_FRENCH_MONACO
1670 LANGUAGE_FRENCH_SWISS
= _gdi
.LANGUAGE_FRENCH_SWISS
1671 LANGUAGE_FRISIAN
= _gdi
.LANGUAGE_FRISIAN
1672 LANGUAGE_GALICIAN
= _gdi
.LANGUAGE_GALICIAN
1673 LANGUAGE_GEORGIAN
= _gdi
.LANGUAGE_GEORGIAN
1674 LANGUAGE_GERMAN
= _gdi
.LANGUAGE_GERMAN
1675 LANGUAGE_GERMAN_AUSTRIAN
= _gdi
.LANGUAGE_GERMAN_AUSTRIAN
1676 LANGUAGE_GERMAN_BELGIUM
= _gdi
.LANGUAGE_GERMAN_BELGIUM
1677 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi
.LANGUAGE_GERMAN_LIECHTENSTEIN
1678 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi
.LANGUAGE_GERMAN_LUXEMBOURG
1679 LANGUAGE_GERMAN_SWISS
= _gdi
.LANGUAGE_GERMAN_SWISS
1680 LANGUAGE_GREEK
= _gdi
.LANGUAGE_GREEK
1681 LANGUAGE_GREENLANDIC
= _gdi
.LANGUAGE_GREENLANDIC
1682 LANGUAGE_GUARANI
= _gdi
.LANGUAGE_GUARANI
1683 LANGUAGE_GUJARATI
= _gdi
.LANGUAGE_GUJARATI
1684 LANGUAGE_HAUSA
= _gdi
.LANGUAGE_HAUSA
1685 LANGUAGE_HEBREW
= _gdi
.LANGUAGE_HEBREW
1686 LANGUAGE_HINDI
= _gdi
.LANGUAGE_HINDI
1687 LANGUAGE_HUNGARIAN
= _gdi
.LANGUAGE_HUNGARIAN
1688 LANGUAGE_ICELANDIC
= _gdi
.LANGUAGE_ICELANDIC
1689 LANGUAGE_INDONESIAN
= _gdi
.LANGUAGE_INDONESIAN
1690 LANGUAGE_INTERLINGUA
= _gdi
.LANGUAGE_INTERLINGUA
1691 LANGUAGE_INTERLINGUE
= _gdi
.LANGUAGE_INTERLINGUE
1692 LANGUAGE_INUKTITUT
= _gdi
.LANGUAGE_INUKTITUT
1693 LANGUAGE_INUPIAK
= _gdi
.LANGUAGE_INUPIAK
1694 LANGUAGE_IRISH
= _gdi
.LANGUAGE_IRISH
1695 LANGUAGE_ITALIAN
= _gdi
.LANGUAGE_ITALIAN
1696 LANGUAGE_ITALIAN_SWISS
= _gdi
.LANGUAGE_ITALIAN_SWISS
1697 LANGUAGE_JAPANESE
= _gdi
.LANGUAGE_JAPANESE
1698 LANGUAGE_JAVANESE
= _gdi
.LANGUAGE_JAVANESE
1699 LANGUAGE_KANNADA
= _gdi
.LANGUAGE_KANNADA
1700 LANGUAGE_KASHMIRI
= _gdi
.LANGUAGE_KASHMIRI
1701 LANGUAGE_KASHMIRI_INDIA
= _gdi
.LANGUAGE_KASHMIRI_INDIA
1702 LANGUAGE_KAZAKH
= _gdi
.LANGUAGE_KAZAKH
1703 LANGUAGE_KERNEWEK
= _gdi
.LANGUAGE_KERNEWEK
1704 LANGUAGE_KINYARWANDA
= _gdi
.LANGUAGE_KINYARWANDA
1705 LANGUAGE_KIRGHIZ
= _gdi
.LANGUAGE_KIRGHIZ
1706 LANGUAGE_KIRUNDI
= _gdi
.LANGUAGE_KIRUNDI
1707 LANGUAGE_KONKANI
= _gdi
.LANGUAGE_KONKANI
1708 LANGUAGE_KOREAN
= _gdi
.LANGUAGE_KOREAN
1709 LANGUAGE_KURDISH
= _gdi
.LANGUAGE_KURDISH
1710 LANGUAGE_LAOTHIAN
= _gdi
.LANGUAGE_LAOTHIAN
1711 LANGUAGE_LATIN
= _gdi
.LANGUAGE_LATIN
1712 LANGUAGE_LATVIAN
= _gdi
.LANGUAGE_LATVIAN
1713 LANGUAGE_LINGALA
= _gdi
.LANGUAGE_LINGALA
1714 LANGUAGE_LITHUANIAN
= _gdi
.LANGUAGE_LITHUANIAN
1715 LANGUAGE_MACEDONIAN
= _gdi
.LANGUAGE_MACEDONIAN
1716 LANGUAGE_MALAGASY
= _gdi
.LANGUAGE_MALAGASY
1717 LANGUAGE_MALAY
= _gdi
.LANGUAGE_MALAY
1718 LANGUAGE_MALAYALAM
= _gdi
.LANGUAGE_MALAYALAM
1719 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1720 LANGUAGE_MALAY_MALAYSIA
= _gdi
.LANGUAGE_MALAY_MALAYSIA
1721 LANGUAGE_MALTESE
= _gdi
.LANGUAGE_MALTESE
1722 LANGUAGE_MANIPURI
= _gdi
.LANGUAGE_MANIPURI
1723 LANGUAGE_MAORI
= _gdi
.LANGUAGE_MAORI
1724 LANGUAGE_MARATHI
= _gdi
.LANGUAGE_MARATHI
1725 LANGUAGE_MOLDAVIAN
= _gdi
.LANGUAGE_MOLDAVIAN
1726 LANGUAGE_MONGOLIAN
= _gdi
.LANGUAGE_MONGOLIAN
1727 LANGUAGE_NAURU
= _gdi
.LANGUAGE_NAURU
1728 LANGUAGE_NEPALI
= _gdi
.LANGUAGE_NEPALI
1729 LANGUAGE_NEPALI_INDIA
= _gdi
.LANGUAGE_NEPALI_INDIA
1730 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi
.LANGUAGE_NORWEGIAN_BOKMAL
1731 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi
.LANGUAGE_NORWEGIAN_NYNORSK
1732 LANGUAGE_OCCITAN
= _gdi
.LANGUAGE_OCCITAN
1733 LANGUAGE_ORIYA
= _gdi
.LANGUAGE_ORIYA
1734 LANGUAGE_OROMO
= _gdi
.LANGUAGE_OROMO
1735 LANGUAGE_PASHTO
= _gdi
.LANGUAGE_PASHTO
1736 LANGUAGE_POLISH
= _gdi
.LANGUAGE_POLISH
1737 LANGUAGE_PORTUGUESE
= _gdi
.LANGUAGE_PORTUGUESE
1738 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi
.LANGUAGE_PORTUGUESE_BRAZILIAN
1739 LANGUAGE_PUNJABI
= _gdi
.LANGUAGE_PUNJABI
1740 LANGUAGE_QUECHUA
= _gdi
.LANGUAGE_QUECHUA
1741 LANGUAGE_RHAETO_ROMANCE
= _gdi
.LANGUAGE_RHAETO_ROMANCE
1742 LANGUAGE_ROMANIAN
= _gdi
.LANGUAGE_ROMANIAN
1743 LANGUAGE_RUSSIAN
= _gdi
.LANGUAGE_RUSSIAN
1744 LANGUAGE_RUSSIAN_UKRAINE
= _gdi
.LANGUAGE_RUSSIAN_UKRAINE
1745 LANGUAGE_SAMOAN
= _gdi
.LANGUAGE_SAMOAN
1746 LANGUAGE_SANGHO
= _gdi
.LANGUAGE_SANGHO
1747 LANGUAGE_SANSKRIT
= _gdi
.LANGUAGE_SANSKRIT
1748 LANGUAGE_SCOTS_GAELIC
= _gdi
.LANGUAGE_SCOTS_GAELIC
1749 LANGUAGE_SERBIAN
= _gdi
.LANGUAGE_SERBIAN
1750 LANGUAGE_SERBIAN_CYRILLIC
= _gdi
.LANGUAGE_SERBIAN_CYRILLIC
1751 LANGUAGE_SERBIAN_LATIN
= _gdi
.LANGUAGE_SERBIAN_LATIN
1752 LANGUAGE_SERBO_CROATIAN
= _gdi
.LANGUAGE_SERBO_CROATIAN
1753 LANGUAGE_SESOTHO
= _gdi
.LANGUAGE_SESOTHO
1754 LANGUAGE_SETSWANA
= _gdi
.LANGUAGE_SETSWANA
1755 LANGUAGE_SHONA
= _gdi
.LANGUAGE_SHONA
1756 LANGUAGE_SINDHI
= _gdi
.LANGUAGE_SINDHI
1757 LANGUAGE_SINHALESE
= _gdi
.LANGUAGE_SINHALESE
1758 LANGUAGE_SISWATI
= _gdi
.LANGUAGE_SISWATI
1759 LANGUAGE_SLOVAK
= _gdi
.LANGUAGE_SLOVAK
1760 LANGUAGE_SLOVENIAN
= _gdi
.LANGUAGE_SLOVENIAN
1761 LANGUAGE_SOMALI
= _gdi
.LANGUAGE_SOMALI
1762 LANGUAGE_SPANISH
= _gdi
.LANGUAGE_SPANISH
1763 LANGUAGE_SPANISH_ARGENTINA
= _gdi
.LANGUAGE_SPANISH_ARGENTINA
1764 LANGUAGE_SPANISH_BOLIVIA
= _gdi
.LANGUAGE_SPANISH_BOLIVIA
1765 LANGUAGE_SPANISH_CHILE
= _gdi
.LANGUAGE_SPANISH_CHILE
1766 LANGUAGE_SPANISH_COLOMBIA
= _gdi
.LANGUAGE_SPANISH_COLOMBIA
1767 LANGUAGE_SPANISH_COSTA_RICA
= _gdi
.LANGUAGE_SPANISH_COSTA_RICA
1768 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
1769 LANGUAGE_SPANISH_ECUADOR
= _gdi
.LANGUAGE_SPANISH_ECUADOR
1770 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi
.LANGUAGE_SPANISH_EL_SALVADOR
1771 LANGUAGE_SPANISH_GUATEMALA
= _gdi
.LANGUAGE_SPANISH_GUATEMALA
1772 LANGUAGE_SPANISH_HONDURAS
= _gdi
.LANGUAGE_SPANISH_HONDURAS
1773 LANGUAGE_SPANISH_MEXICAN
= _gdi
.LANGUAGE_SPANISH_MEXICAN
1774 LANGUAGE_SPANISH_MODERN
= _gdi
.LANGUAGE_SPANISH_MODERN
1775 LANGUAGE_SPANISH_NICARAGUA
= _gdi
.LANGUAGE_SPANISH_NICARAGUA
1776 LANGUAGE_SPANISH_PANAMA
= _gdi
.LANGUAGE_SPANISH_PANAMA
1777 LANGUAGE_SPANISH_PARAGUAY
= _gdi
.LANGUAGE_SPANISH_PARAGUAY
1778 LANGUAGE_SPANISH_PERU
= _gdi
.LANGUAGE_SPANISH_PERU
1779 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi
.LANGUAGE_SPANISH_PUERTO_RICO
1780 LANGUAGE_SPANISH_URUGUAY
= _gdi
.LANGUAGE_SPANISH_URUGUAY
1781 LANGUAGE_SPANISH_US
= _gdi
.LANGUAGE_SPANISH_US
1782 LANGUAGE_SPANISH_VENEZUELA
= _gdi
.LANGUAGE_SPANISH_VENEZUELA
1783 LANGUAGE_SUNDANESE
= _gdi
.LANGUAGE_SUNDANESE
1784 LANGUAGE_SWAHILI
= _gdi
.LANGUAGE_SWAHILI
1785 LANGUAGE_SWEDISH
= _gdi
.LANGUAGE_SWEDISH
1786 LANGUAGE_SWEDISH_FINLAND
= _gdi
.LANGUAGE_SWEDISH_FINLAND
1787 LANGUAGE_TAGALOG
= _gdi
.LANGUAGE_TAGALOG
1788 LANGUAGE_TAJIK
= _gdi
.LANGUAGE_TAJIK
1789 LANGUAGE_TAMIL
= _gdi
.LANGUAGE_TAMIL
1790 LANGUAGE_TATAR
= _gdi
.LANGUAGE_TATAR
1791 LANGUAGE_TELUGU
= _gdi
.LANGUAGE_TELUGU
1792 LANGUAGE_THAI
= _gdi
.LANGUAGE_THAI
1793 LANGUAGE_TIBETAN
= _gdi
.LANGUAGE_TIBETAN
1794 LANGUAGE_TIGRINYA
= _gdi
.LANGUAGE_TIGRINYA
1795 LANGUAGE_TONGA
= _gdi
.LANGUAGE_TONGA
1796 LANGUAGE_TSONGA
= _gdi
.LANGUAGE_TSONGA
1797 LANGUAGE_TURKISH
= _gdi
.LANGUAGE_TURKISH
1798 LANGUAGE_TURKMEN
= _gdi
.LANGUAGE_TURKMEN
1799 LANGUAGE_TWI
= _gdi
.LANGUAGE_TWI
1800 LANGUAGE_UIGHUR
= _gdi
.LANGUAGE_UIGHUR
1801 LANGUAGE_UKRAINIAN
= _gdi
.LANGUAGE_UKRAINIAN
1802 LANGUAGE_URDU
= _gdi
.LANGUAGE_URDU
1803 LANGUAGE_URDU_INDIA
= _gdi
.LANGUAGE_URDU_INDIA
1804 LANGUAGE_URDU_PAKISTAN
= _gdi
.LANGUAGE_URDU_PAKISTAN
1805 LANGUAGE_UZBEK
= _gdi
.LANGUAGE_UZBEK
1806 LANGUAGE_UZBEK_CYRILLIC
= _gdi
.LANGUAGE_UZBEK_CYRILLIC
1807 LANGUAGE_UZBEK_LATIN
= _gdi
.LANGUAGE_UZBEK_LATIN
1808 LANGUAGE_VIETNAMESE
= _gdi
.LANGUAGE_VIETNAMESE
1809 LANGUAGE_VOLAPUK
= _gdi
.LANGUAGE_VOLAPUK
1810 LANGUAGE_WELSH
= _gdi
.LANGUAGE_WELSH
1811 LANGUAGE_WOLOF
= _gdi
.LANGUAGE_WOLOF
1812 LANGUAGE_XHOSA
= _gdi
.LANGUAGE_XHOSA
1813 LANGUAGE_YIDDISH
= _gdi
.LANGUAGE_YIDDISH
1814 LANGUAGE_YORUBA
= _gdi
.LANGUAGE_YORUBA
1815 LANGUAGE_ZHUANG
= _gdi
.LANGUAGE_ZHUANG
1816 LANGUAGE_ZULU
= _gdi
.LANGUAGE_ZULU
1817 LANGUAGE_USER_DEFINED
= _gdi
.LANGUAGE_USER_DEFINED
1818 class LanguageInfo(object):
1819 def __init__(self
): raise RuntimeError, "No constructor defined"
1821 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1822 Language
= property(_gdi
.LanguageInfo_Language_get
, _gdi
.LanguageInfo_Language_set
)
1823 CanonicalName
= property(_gdi
.LanguageInfo_CanonicalName_get
, _gdi
.LanguageInfo_CanonicalName_set
)
1824 Description
= property(_gdi
.LanguageInfo_Description_get
, _gdi
.LanguageInfo_Description_set
)
1826 class LanguageInfoPtr(LanguageInfo
):
1827 def __init__(self
, this
):
1829 if not hasattr(self
,"thisown"): self
.thisown
= 0
1830 self
.__class
__ = LanguageInfo
1831 _gdi
.LanguageInfo_swigregister(LanguageInfoPtr
)
1833 LOCALE_CAT_NUMBER
= _gdi
.LOCALE_CAT_NUMBER
1834 LOCALE_CAT_DATE
= _gdi
.LOCALE_CAT_DATE
1835 LOCALE_CAT_MONEY
= _gdi
.LOCALE_CAT_MONEY
1836 LOCALE_CAT_MAX
= _gdi
.LOCALE_CAT_MAX
1837 LOCALE_THOUSANDS_SEP
= _gdi
.LOCALE_THOUSANDS_SEP
1838 LOCALE_DECIMAL_POINT
= _gdi
.LOCALE_DECIMAL_POINT
1839 LOCALE_LOAD_DEFAULT
= _gdi
.LOCALE_LOAD_DEFAULT
1840 LOCALE_CONV_ENCODING
= _gdi
.LOCALE_CONV_ENCODING
1841 class Locale(object):
1843 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1844 def __init__(self
, *args
, **kwargs
):
1845 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
1846 newobj
= _gdi
.new_Locale(*args
, **kwargs
)
1847 self
.this
= newobj
.this
1850 def __del__(self
, destroy
=_gdi
.delete_Locale
):
1853 if self
.thisown
: destroy(self
)
1856 def Init1(*args
, **kwargs
):
1858 Init1(wxString szName, wxString szShort=wxPyEmptyString,
1859 wxString szLocale=wxPyEmptyString, bool bLoadDefault=True,
1860 bool bConvertEncoding=False) -> bool
1862 return _gdi
.Locale_Init1(*args
, **kwargs
)
1864 def Init2(*args
, **kwargs
):
1865 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
1866 return _gdi
.Locale_Init2(*args
, **kwargs
)
1868 def Init(self
, *_args
, **_kwargs
):
1869 if type(_args
[0]) in [type(''), type(u
'')]:
1870 val
= self
.Init1(*_args
, **_kwargs
)
1872 val
= self
.Init2(*_args
, **_kwargs
)
1875 def GetSystemLanguage(*args
, **kwargs
):
1876 """Locale.GetSystemLanguage() -> int"""
1877 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1879 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
1880 def GetSystemEncoding(*args
, **kwargs
):
1881 """Locale.GetSystemEncoding() -> wxFontEncoding"""
1882 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1884 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
1885 def GetSystemEncodingName(*args
, **kwargs
):
1886 """Locale.GetSystemEncodingName() -> wxString"""
1887 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1889 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
1890 def IsOk(*args
, **kwargs
):
1891 """IsOk() -> bool"""
1892 return _gdi
.Locale_IsOk(*args
, **kwargs
)
1894 def __nonzero__(self
): return self
.IsOk()
1895 def GetLocale(*args
, **kwargs
):
1896 """GetLocale() -> wxString"""
1897 return _gdi
.Locale_GetLocale(*args
, **kwargs
)
1899 def GetLanguage(*args
, **kwargs
):
1900 """GetLanguage() -> int"""
1901 return _gdi
.Locale_GetLanguage(*args
, **kwargs
)
1903 def GetSysName(*args
, **kwargs
):
1904 """GetSysName() -> wxString"""
1905 return _gdi
.Locale_GetSysName(*args
, **kwargs
)
1907 def GetCanonicalName(*args
, **kwargs
):
1908 """GetCanonicalName() -> wxString"""
1909 return _gdi
.Locale_GetCanonicalName(*args
, **kwargs
)
1911 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
1912 """Locale.AddCatalogLookupPathPrefix(wxString prefix)"""
1913 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1915 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
1916 def AddCatalog(*args
, **kwargs
):
1917 """AddCatalog(wxString szDomain) -> bool"""
1918 return _gdi
.Locale_AddCatalog(*args
, **kwargs
)
1920 def IsLoaded(*args
, **kwargs
):
1921 """IsLoaded(wxString szDomain) -> bool"""
1922 return _gdi
.Locale_IsLoaded(*args
, **kwargs
)
1924 def GetLanguageInfo(*args
, **kwargs
):
1925 """Locale.GetLanguageInfo(int lang) -> LanguageInfo"""
1926 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1928 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
1929 def GetLanguageName(*args
, **kwargs
):
1930 """Locale.GetLanguageName(int lang) -> wxString"""
1931 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1933 GetLanguageName
= staticmethod(GetLanguageName
)
1934 def FindLanguageInfo(*args
, **kwargs
):
1935 """Locale.FindLanguageInfo(wxString locale) -> LanguageInfo"""
1936 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1938 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
1939 def AddLanguage(*args
, **kwargs
):
1940 """Locale.AddLanguage(LanguageInfo info)"""
1941 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1943 AddLanguage
= staticmethod(AddLanguage
)
1944 def GetString(*args
, **kwargs
):
1945 """GetString(wxString szOrigString, wxString szDomain=wxPyEmptyString) -> wxString"""
1946 return _gdi
.Locale_GetString(*args
, **kwargs
)
1948 def GetName(*args
, **kwargs
):
1949 """GetName() -> wxString"""
1950 return _gdi
.Locale_GetName(*args
, **kwargs
)
1953 class LocalePtr(Locale
):
1954 def __init__(self
, this
):
1956 if not hasattr(self
,"thisown"): self
.thisown
= 0
1957 self
.__class
__ = Locale
1958 _gdi
.Locale_swigregister(LocalePtr
)
1960 def Locale_GetSystemLanguage(*args
, **kwargs
):
1961 """Locale_GetSystemLanguage() -> int"""
1962 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1964 def Locale_GetSystemEncoding(*args
, **kwargs
):
1965 """Locale_GetSystemEncoding() -> wxFontEncoding"""
1966 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1968 def Locale_GetSystemEncodingName(*args
, **kwargs
):
1969 """Locale_GetSystemEncodingName() -> wxString"""
1970 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1972 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
1973 """Locale_AddCatalogLookupPathPrefix(wxString prefix)"""
1974 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1976 def Locale_GetLanguageInfo(*args
, **kwargs
):
1977 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
1978 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1980 def Locale_GetLanguageName(*args
, **kwargs
):
1981 """Locale_GetLanguageName(int lang) -> wxString"""
1982 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1984 def Locale_FindLanguageInfo(*args
, **kwargs
):
1985 """Locale_FindLanguageInfo(wxString locale) -> LanguageInfo"""
1986 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1988 def Locale_AddLanguage(*args
, **kwargs
):
1989 """Locale_AddLanguage(LanguageInfo info)"""
1990 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1993 def GetLocale(*args
, **kwargs
):
1994 """GetLocale() -> Locale"""
1995 return _gdi
.GetLocale(*args
, **kwargs
)
1996 #---------------------------------------------------------------------------
1998 CONVERT_STRICT
= _gdi
.CONVERT_STRICT
1999 CONVERT_SUBSTITUTE
= _gdi
.CONVERT_SUBSTITUTE
2000 PLATFORM_CURRENT
= _gdi
.PLATFORM_CURRENT
2001 PLATFORM_UNIX
= _gdi
.PLATFORM_UNIX
2002 PLATFORM_WINDOWS
= _gdi
.PLATFORM_WINDOWS
2003 PLATFORM_OS2
= _gdi
.PLATFORM_OS2
2004 PLATFORM_MAC
= _gdi
.PLATFORM_MAC
2005 class EncodingConverter(core
.Object
):
2007 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2008 def __init__(self
, *args
, **kwargs
):
2009 """__init__() -> EncodingConverter"""
2010 newobj
= _gdi
.new_EncodingConverter(*args
, **kwargs
)
2011 self
.this
= newobj
.this
2014 def __del__(self
, destroy
=_gdi
.delete_EncodingConverter
):
2017 if self
.thisown
: destroy(self
)
2020 def Init(*args
, **kwargs
):
2022 Init(wxFontEncoding input_enc, wxFontEncoding output_enc,
2023 int method=CONVERT_STRICT) -> bool
2025 return _gdi
.EncodingConverter_Init(*args
, **kwargs
)
2027 def Convert(*args
, **kwargs
):
2028 """Convert(wxString input) -> wxString"""
2029 return _gdi
.EncodingConverter_Convert(*args
, **kwargs
)
2031 def GetPlatformEquivalents(*args
, **kwargs
):
2032 """EncodingConverter.GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2033 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2035 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2036 def GetAllEquivalents(*args
, **kwargs
):
2037 """EncodingConverter.GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
2038 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2040 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2041 def CanConvert(*args
, **kwargs
):
2042 """EncodingConverter.CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
2043 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2045 CanConvert
= staticmethod(CanConvert
)
2046 def __nonzero__(self
): return self
.IsOk()
2048 class EncodingConverterPtr(EncodingConverter
):
2049 def __init__(self
, this
):
2051 if not hasattr(self
,"thisown"): self
.thisown
= 0
2052 self
.__class
__ = EncodingConverter
2053 _gdi
.EncodingConverter_swigregister(EncodingConverterPtr
)
2055 def GetTranslation(*args
):
2057 GetTranslation(wxString sz) -> wxString
2058 GetTranslation(wxString sz1, wxString sz2, size_t n) -> wxString
2060 return _gdi
.GetTranslation(*args
)
2062 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2063 """EncodingConverter_GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2064 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2066 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2067 """EncodingConverter_GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
2068 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2070 def EncodingConverter_CanConvert(*args
, **kwargs
):
2071 """EncodingConverter_CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
2072 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2074 #----------------------------------------------------------------------------
2075 # wxGTK sets the locale when initialized. Doing this at the Python
2076 # level should set it up to match what GTK is doing at the C level.
2077 if wx
.Platform
== "__WXGTK__":
2080 locale
.setlocale(locale
.LC_ALL
, "")
2084 # On MSW add the directory where the wxWindows catalogs were installed
2085 # to the default catalog path.
2086 if wx
.Platform
== "__WXMSW__":
2088 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2089 Locale_AddCatalogLookupPathPrefix(localedir
)
2092 #----------------------------------------------------------------------------
2094 #---------------------------------------------------------------------------
2096 class DC(core
.Object
):
2097 def __init__(self
): raise RuntimeError, "No constructor defined"
2099 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2100 def __del__(self
, destroy
=_gdi
.delete_DC
):
2103 if self
.thisown
: destroy(self
)
2106 def BeginDrawing(*args
, **kwargs
):
2107 """BeginDrawing()"""
2108 return _gdi
.DC_BeginDrawing(*args
, **kwargs
)
2110 def EndDrawing(*args
, **kwargs
):
2112 return _gdi
.DC_EndDrawing(*args
, **kwargs
)
2114 def FloodFillXY(*args
, **kwargs
):
2115 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2116 return _gdi
.DC_FloodFillXY(*args
, **kwargs
)
2118 def FloodFill(*args
, **kwargs
):
2119 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2120 return _gdi
.DC_FloodFill(*args
, **kwargs
)
2122 def GetPixelXY(*args
, **kwargs
):
2123 """GetPixelXY(int x, int y) -> Colour"""
2124 return _gdi
.DC_GetPixelXY(*args
, **kwargs
)
2126 def GetPixel(*args
, **kwargs
):
2127 """GetPixel(Point pt) -> Colour"""
2128 return _gdi
.DC_GetPixel(*args
, **kwargs
)
2130 def DrawLineXY(*args
, **kwargs
):
2131 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2132 return _gdi
.DC_DrawLineXY(*args
, **kwargs
)
2134 def DrawLine(*args
, **kwargs
):
2135 """DrawLine(Point pt1, Point pt2)"""
2136 return _gdi
.DC_DrawLine(*args
, **kwargs
)
2138 def CrossHairXY(*args
, **kwargs
):
2139 """CrossHairXY(int x, int y)"""
2140 return _gdi
.DC_CrossHairXY(*args
, **kwargs
)
2142 def CrossHair(*args
, **kwargs
):
2143 """CrossHair(Point pt)"""
2144 return _gdi
.DC_CrossHair(*args
, **kwargs
)
2146 def DrawArcXY(*args
, **kwargs
):
2147 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2148 return _gdi
.DC_DrawArcXY(*args
, **kwargs
)
2150 def DrawArc(*args
, **kwargs
):
2151 """DrawArc(Point pt1, Point pt2, Point centre)"""
2152 return _gdi
.DC_DrawArc(*args
, **kwargs
)
2154 def DrawCheckMarkXY(*args
, **kwargs
):
2155 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2156 return _gdi
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2158 def DrawCheckMark(*args
, **kwargs
):
2159 """DrawCheckMark(Rect rect)"""
2160 return _gdi
.DC_DrawCheckMark(*args
, **kwargs
)
2162 def DrawEllipticArcXY(*args
, **kwargs
):
2163 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2164 return _gdi
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2166 def DrawEllipticArc(*args
, **kwargs
):
2167 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2168 return _gdi
.DC_DrawEllipticArc(*args
, **kwargs
)
2170 def DrawPointXY(*args
, **kwargs
):
2171 """DrawPointXY(int x, int y)"""
2172 return _gdi
.DC_DrawPointXY(*args
, **kwargs
)
2174 def DrawPoint(*args
, **kwargs
):
2175 """DrawPoint(Point pt)"""
2176 return _gdi
.DC_DrawPoint(*args
, **kwargs
)
2178 def DrawRectangleXY(*args
, **kwargs
):
2179 """DrawRectangleXY(int x, int y, int width, int height)"""
2180 return _gdi
.DC_DrawRectangleXY(*args
, **kwargs
)
2182 def DrawRectangle(*args
, **kwargs
):
2183 """DrawRectangle(Point pt, Size sz)"""
2184 return _gdi
.DC_DrawRectangle(*args
, **kwargs
)
2186 def DrawRectangleRect(*args
, **kwargs
):
2187 """DrawRectangleRect(Rect rect)"""
2188 return _gdi
.DC_DrawRectangleRect(*args
, **kwargs
)
2190 def DrawRoundedRectangleXY(*args
, **kwargs
):
2191 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2192 return _gdi
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2194 def DrawRoundedRectangle(*args
, **kwargs
):
2195 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2196 return _gdi
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2198 def DrawRoundedRectangleRect(*args
, **kwargs
):
2199 """DrawRoundedRectangleRect(Rect r, double radius)"""
2200 return _gdi
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2202 def DrawCircleXY(*args
, **kwargs
):
2203 """DrawCircleXY(int x, int y, int radius)"""
2204 return _gdi
.DC_DrawCircleXY(*args
, **kwargs
)
2206 def DrawCircle(*args
, **kwargs
):
2207 """DrawCircle(Point pt, int radius)"""
2208 return _gdi
.DC_DrawCircle(*args
, **kwargs
)
2210 def DrawEllipseXY(*args
, **kwargs
):
2211 """DrawEllipseXY(int x, int y, int width, int height)"""
2212 return _gdi
.DC_DrawEllipseXY(*args
, **kwargs
)
2214 def DrawEllipse(*args
, **kwargs
):
2215 """DrawEllipse(Point pt, Size sz)"""
2216 return _gdi
.DC_DrawEllipse(*args
, **kwargs
)
2218 def DrawEllipseRect(*args
, **kwargs
):
2219 """DrawEllipseRect(Rect rect)"""
2220 return _gdi
.DC_DrawEllipseRect(*args
, **kwargs
)
2222 def DrawIconXY(*args
, **kwargs
):
2223 """DrawIconXY(Icon icon, int x, int y)"""
2224 return _gdi
.DC_DrawIconXY(*args
, **kwargs
)
2226 def DrawIcon(*args
, **kwargs
):
2227 """DrawIcon(Icon icon, Point pt)"""
2228 return _gdi
.DC_DrawIcon(*args
, **kwargs
)
2230 def DrawBitmapXY(*args
, **kwargs
):
2231 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2232 return _gdi
.DC_DrawBitmapXY(*args
, **kwargs
)
2234 def DrawBitmap(*args
, **kwargs
):
2235 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2236 return _gdi
.DC_DrawBitmap(*args
, **kwargs
)
2238 def DrawTextXY(*args
, **kwargs
):
2239 """DrawTextXY(wxString text, int x, int y)"""
2240 return _gdi
.DC_DrawTextXY(*args
, **kwargs
)
2242 def DrawText(*args
, **kwargs
):
2243 """DrawText(wxString text, Point pt)"""
2244 return _gdi
.DC_DrawText(*args
, **kwargs
)
2246 def DrawRotatedTextXY(*args
, **kwargs
):
2247 """DrawRotatedTextXY(wxString text, int x, int y, double angle)"""
2248 return _gdi
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2250 def DrawRotatedText(*args
, **kwargs
):
2251 """DrawRotatedText(wxString text, Point pt, double angle)"""
2252 return _gdi
.DC_DrawRotatedText(*args
, **kwargs
)
2254 def BlitXY(*args
, **kwargs
):
2256 BlitXY(int xdest, int ydest, int width, int height, DC source,
2257 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2258 int xsrcMask=-1, int ysrcMask=-1) -> bool
2260 return _gdi
.DC_BlitXY(*args
, **kwargs
)
2262 def Blit(*args
, **kwargs
):
2264 Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2265 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
2267 return _gdi
.DC_Blit(*args
, **kwargs
)
2269 def DrawLines(*args
, **kwargs
):
2270 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2271 return _gdi
.DC_DrawLines(*args
, **kwargs
)
2273 def DrawPolygon(*args
, **kwargs
):
2275 DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2276 int fillStyle=ODDEVEN_RULE)
2278 return _gdi
.DC_DrawPolygon(*args
, **kwargs
)
2280 def DrawLabel(*args
, **kwargs
):
2282 DrawLabel(wxString text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2285 return _gdi
.DC_DrawLabel(*args
, **kwargs
)
2287 def DrawImageLabel(*args
, **kwargs
):
2289 DrawImageLabel(wxString text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2290 int indexAccel=-1) -> Rect
2292 return _gdi
.DC_DrawImageLabel(*args
, **kwargs
)
2294 def DrawSpline(*args
, **kwargs
):
2295 """DrawSpline(int points, Point points_array)"""
2296 return _gdi
.DC_DrawSpline(*args
, **kwargs
)
2298 def Clear(*args
, **kwargs
):
2300 return _gdi
.DC_Clear(*args
, **kwargs
)
2302 def StartDoc(*args
, **kwargs
):
2303 """StartDoc(wxString message) -> bool"""
2304 return _gdi
.DC_StartDoc(*args
, **kwargs
)
2306 def EndDoc(*args
, **kwargs
):
2308 return _gdi
.DC_EndDoc(*args
, **kwargs
)
2310 def StartPage(*args
, **kwargs
):
2312 return _gdi
.DC_StartPage(*args
, **kwargs
)
2314 def EndPage(*args
, **kwargs
):
2316 return _gdi
.DC_EndPage(*args
, **kwargs
)
2318 def SetFont(*args
, **kwargs
):
2319 """SetFont(Font font)"""
2320 return _gdi
.DC_SetFont(*args
, **kwargs
)
2322 def SetPen(*args
, **kwargs
):
2323 """SetPen(Pen pen)"""
2324 return _gdi
.DC_SetPen(*args
, **kwargs
)
2326 def SetBrush(*args
, **kwargs
):
2327 """SetBrush(Brush brush)"""
2328 return _gdi
.DC_SetBrush(*args
, **kwargs
)
2330 def SetBackground(*args
, **kwargs
):
2331 """SetBackground(Brush brush)"""
2332 return _gdi
.DC_SetBackground(*args
, **kwargs
)
2334 def SetBackgroundMode(*args
, **kwargs
):
2335 """SetBackgroundMode(int mode)"""
2336 return _gdi
.DC_SetBackgroundMode(*args
, **kwargs
)
2338 def SetPalette(*args
, **kwargs
):
2339 """SetPalette(Palette palette)"""
2340 return _gdi
.DC_SetPalette(*args
, **kwargs
)
2342 def SetClippingRegionXY(*args
, **kwargs
):
2343 """SetClippingRegionXY(int x, int y, int width, int height)"""
2344 return _gdi
.DC_SetClippingRegionXY(*args
, **kwargs
)
2346 def SetClippingRegion(*args
, **kwargs
):
2347 """SetClippingRegion(Point pt, Size sz)"""
2348 return _gdi
.DC_SetClippingRegion(*args
, **kwargs
)
2350 def SetClippingRect(*args
, **kwargs
):
2351 """SetClippingRect(Rect rect)"""
2352 return _gdi
.DC_SetClippingRect(*args
, **kwargs
)
2354 def SetClippingRegionAsRegion(*args
, **kwargs
):
2355 """SetClippingRegionAsRegion(Region region)"""
2356 return _gdi
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2358 def DestroyClippingRegion(*args
, **kwargs
):
2359 """DestroyClippingRegion()"""
2360 return _gdi
.DC_DestroyClippingRegion(*args
, **kwargs
)
2362 def GetClippingBox(*args
, **kwargs
):
2363 """GetClippingBox() -> (x, y, width, height)"""
2364 return _gdi
.DC_GetClippingBox(*args
, **kwargs
)
2366 def GetClippingRect(*args
, **kwargs
):
2367 """GetClippingRect() -> Rect"""
2368 return _gdi
.DC_GetClippingRect(*args
, **kwargs
)
2370 def GetCharHeight(*args
, **kwargs
):
2371 """GetCharHeight() -> int"""
2372 return _gdi
.DC_GetCharHeight(*args
, **kwargs
)
2374 def GetCharWidth(*args
, **kwargs
):
2375 """GetCharWidth() -> int"""
2376 return _gdi
.DC_GetCharWidth(*args
, **kwargs
)
2378 def GetTextExtent(*args
, **kwargs
):
2380 GetTextExtent(wxString string) -> (width, height)
2382 Get the width and height of the text using the current font.
2383 Only works for single line strings.
2385 return _gdi
.DC_GetTextExtent(*args
, **kwargs
)
2387 def GetFullTextExtent(*args
, **kwargs
):
2389 GetFullTextExtent(wxString string, Font font=None) ->
2390 (width, height, descent, externalLeading)
2392 Get the width, height, decent and leading of the text using the current or specified font.
2393 Only works for single line strings.
2395 return _gdi
.DC_GetFullTextExtent(*args
, **kwargs
)
2397 def GetMultiLineTextExtent(*args
, **kwargs
):
2399 GetMultiLineTextExtent(wxString string, Font font=None) ->
2400 (width, height, descent, externalLeading)
2402 Get the width, height, decent and leading of the text using the current or specified font.
2403 Works for single as well as multi-line strings.
2405 return _gdi
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2407 def GetSize(*args
, **kwargs
):
2411 Get the DC size in device units.
2413 return _gdi
.DC_GetSize(*args
, **kwargs
)
2415 def GetSizeTuple(*args
, **kwargs
):
2417 GetSizeTuple() -> (width, height)
2419 Get the DC size in device units.
2421 return _gdi
.DC_GetSizeTuple(*args
, **kwargs
)
2423 def GetSizeMM(*args
, **kwargs
):
2427 Get the DC size in milimeters.
2429 return _gdi
.DC_GetSizeMM(*args
, **kwargs
)
2431 def GetSizeMMTuple(*args
, **kwargs
):
2433 GetSizeMMTuple() -> (width, height)
2435 Get the DC size in milimeters.
2437 return _gdi
.DC_GetSizeMMTuple(*args
, **kwargs
)
2439 def DeviceToLogicalX(*args
, **kwargs
):
2440 """DeviceToLogicalX(int x) -> int"""
2441 return _gdi
.DC_DeviceToLogicalX(*args
, **kwargs
)
2443 def DeviceToLogicalY(*args
, **kwargs
):
2444 """DeviceToLogicalY(int y) -> int"""
2445 return _gdi
.DC_DeviceToLogicalY(*args
, **kwargs
)
2447 def DeviceToLogicalXRel(*args
, **kwargs
):
2448 """DeviceToLogicalXRel(int x) -> int"""
2449 return _gdi
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2451 def DeviceToLogicalYRel(*args
, **kwargs
):
2452 """DeviceToLogicalYRel(int y) -> int"""
2453 return _gdi
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2455 def LogicalToDeviceX(*args
, **kwargs
):
2456 """LogicalToDeviceX(int x) -> int"""
2457 return _gdi
.DC_LogicalToDeviceX(*args
, **kwargs
)
2459 def LogicalToDeviceY(*args
, **kwargs
):
2460 """LogicalToDeviceY(int y) -> int"""
2461 return _gdi
.DC_LogicalToDeviceY(*args
, **kwargs
)
2463 def LogicalToDeviceXRel(*args
, **kwargs
):
2464 """LogicalToDeviceXRel(int x) -> int"""
2465 return _gdi
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2467 def LogicalToDeviceYRel(*args
, **kwargs
):
2468 """LogicalToDeviceYRel(int y) -> int"""
2469 return _gdi
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2471 def CanDrawBitmap(*args
, **kwargs
):
2472 """CanDrawBitmap() -> bool"""
2473 return _gdi
.DC_CanDrawBitmap(*args
, **kwargs
)
2475 def CanGetTextExtent(*args
, **kwargs
):
2476 """CanGetTextExtent() -> bool"""
2477 return _gdi
.DC_CanGetTextExtent(*args
, **kwargs
)
2479 def GetDepth(*args
, **kwargs
):
2480 """GetDepth() -> int"""
2481 return _gdi
.DC_GetDepth(*args
, **kwargs
)
2483 def GetPPI(*args
, **kwargs
):
2484 """GetPPI() -> Size"""
2485 return _gdi
.DC_GetPPI(*args
, **kwargs
)
2487 def Ok(*args
, **kwargs
):
2489 return _gdi
.DC_Ok(*args
, **kwargs
)
2491 def GetBackgroundMode(*args
, **kwargs
):
2492 """GetBackgroundMode() -> int"""
2493 return _gdi
.DC_GetBackgroundMode(*args
, **kwargs
)
2495 def GetBackground(*args
, **kwargs
):
2496 """GetBackground() -> Brush"""
2497 return _gdi
.DC_GetBackground(*args
, **kwargs
)
2499 def GetBrush(*args
, **kwargs
):
2500 """GetBrush() -> Brush"""
2501 return _gdi
.DC_GetBrush(*args
, **kwargs
)
2503 def GetFont(*args
, **kwargs
):
2504 """GetFont() -> Font"""
2505 return _gdi
.DC_GetFont(*args
, **kwargs
)
2507 def GetPen(*args
, **kwargs
):
2508 """GetPen() -> Pen"""
2509 return _gdi
.DC_GetPen(*args
, **kwargs
)
2511 def GetTextBackground(*args
, **kwargs
):
2512 """GetTextBackground() -> Colour"""
2513 return _gdi
.DC_GetTextBackground(*args
, **kwargs
)
2515 def GetTextForeground(*args
, **kwargs
):
2516 """GetTextForeground() -> Colour"""
2517 return _gdi
.DC_GetTextForeground(*args
, **kwargs
)
2519 def SetTextForeground(*args
, **kwargs
):
2520 """SetTextForeground(Colour colour)"""
2521 return _gdi
.DC_SetTextForeground(*args
, **kwargs
)
2523 def SetTextBackground(*args
, **kwargs
):
2524 """SetTextBackground(Colour colour)"""
2525 return _gdi
.DC_SetTextBackground(*args
, **kwargs
)
2527 def GetMapMode(*args
, **kwargs
):
2528 """GetMapMode() -> int"""
2529 return _gdi
.DC_GetMapMode(*args
, **kwargs
)
2531 def SetMapMode(*args
, **kwargs
):
2532 """SetMapMode(int mode)"""
2533 return _gdi
.DC_SetMapMode(*args
, **kwargs
)
2535 def GetUserScale(*args
, **kwargs
):
2536 """GetUserScale() -> (xScale, yScale)"""
2537 return _gdi
.DC_GetUserScale(*args
, **kwargs
)
2539 def SetUserScale(*args
, **kwargs
):
2540 """SetUserScale(double x, double y)"""
2541 return _gdi
.DC_SetUserScale(*args
, **kwargs
)
2543 def GetLogicalScale(*args
, **kwargs
):
2544 """GetLogicalScale() -> (xScale, yScale)"""
2545 return _gdi
.DC_GetLogicalScale(*args
, **kwargs
)
2547 def SetLogicalScale(*args
, **kwargs
):
2548 """SetLogicalScale(double x, double y)"""
2549 return _gdi
.DC_SetLogicalScale(*args
, **kwargs
)
2551 def GetLogicalOrigin(*args
, **kwargs
):
2552 """GetLogicalOrigin() -> Point"""
2553 return _gdi
.DC_GetLogicalOrigin(*args
, **kwargs
)
2555 def GetLogicalOriginTuple(*args
, **kwargs
):
2556 """GetLogicalOriginTuple() -> (x,y)"""
2557 return _gdi
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2559 def SetLogicalOrigin(*args
, **kwargs
):
2560 """SetLogicalOrigin(int x, int y)"""
2561 return _gdi
.DC_SetLogicalOrigin(*args
, **kwargs
)
2563 def GetDeviceOrigin(*args
, **kwargs
):
2564 """GetDeviceOrigin() -> Point"""
2565 return _gdi
.DC_GetDeviceOrigin(*args
, **kwargs
)
2567 def GetDeviceOriginTuple(*args
, **kwargs
):
2568 """GetDeviceOriginTuple() -> (x,y)"""
2569 return _gdi
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2571 def SetDeviceOrigin(*args
, **kwargs
):
2572 """SetDeviceOrigin(int x, int y)"""
2573 return _gdi
.DC_SetDeviceOrigin(*args
, **kwargs
)
2575 def SetAxisOrientation(*args
, **kwargs
):
2576 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2577 return _gdi
.DC_SetAxisOrientation(*args
, **kwargs
)
2579 def GetLogicalFunction(*args
, **kwargs
):
2580 """GetLogicalFunction() -> int"""
2581 return _gdi
.DC_GetLogicalFunction(*args
, **kwargs
)
2583 def SetLogicalFunction(*args
, **kwargs
):
2584 """SetLogicalFunction(int function)"""
2585 return _gdi
.DC_SetLogicalFunction(*args
, **kwargs
)
2587 def SetOptimization(*args
, **kwargs
):
2588 """SetOptimization(bool opt)"""
2589 return _gdi
.DC_SetOptimization(*args
, **kwargs
)
2591 def GetOptimization(*args
, **kwargs
):
2592 """GetOptimization() -> bool"""
2593 return _gdi
.DC_GetOptimization(*args
, **kwargs
)
2595 def CalcBoundingBox(*args
, **kwargs
):
2596 """CalcBoundingBox(int x, int y)"""
2597 return _gdi
.DC_CalcBoundingBox(*args
, **kwargs
)
2599 def ResetBoundingBox(*args
, **kwargs
):
2600 """ResetBoundingBox()"""
2601 return _gdi
.DC_ResetBoundingBox(*args
, **kwargs
)
2603 def MinX(*args
, **kwargs
):
2605 return _gdi
.DC_MinX(*args
, **kwargs
)
2607 def MaxX(*args
, **kwargs
):
2609 return _gdi
.DC_MaxX(*args
, **kwargs
)
2611 def MinY(*args
, **kwargs
):
2613 return _gdi
.DC_MinY(*args
, **kwargs
)
2615 def MaxY(*args
, **kwargs
):
2617 return _gdi
.DC_MaxY(*args
, **kwargs
)
2619 def GetBoundingBox(*args
, **kwargs
):
2620 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2621 return _gdi
.DC_GetBoundingBox(*args
, **kwargs
)
2623 def __nonzero__(self
): return self
.Ok()
2624 def _DrawPointList(*args
, **kwargs
):
2625 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2626 return _gdi
.DC__DrawPointList(*args
, **kwargs
)
2628 def _DrawLineList(*args
, **kwargs
):
2629 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2630 return _gdi
.DC__DrawLineList(*args
, **kwargs
)
2632 def _DrawRectangleList(*args
, **kwargs
):
2633 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2634 return _gdi
.DC__DrawRectangleList(*args
, **kwargs
)
2636 def _DrawEllipseList(*args
, **kwargs
):
2637 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2638 return _gdi
.DC__DrawEllipseList(*args
, **kwargs
)
2640 def _DrawPolygonList(*args
, **kwargs
):
2641 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2642 return _gdi
.DC__DrawPolygonList(*args
, **kwargs
)
2644 def _DrawTextList(*args
, **kwargs
):
2646 _DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2647 PyObject backgroundList) -> PyObject
2649 return _gdi
.DC__DrawTextList(*args
, **kwargs
)
2651 def DrawPointList(self
, points
, pens
=None):
2654 elif isinstance(pens
, wx
.Pen
):
2656 elif len(pens
) != len(points
):
2657 raise ValueError('points and pens must have same length')
2658 return self
._DrawPointList
(points
, pens
, [])
2661 def DrawLineList(self
, lines
, pens
=None):
2664 elif isinstance(pens
, wx
.Pen
):
2666 elif len(pens
) != len(lines
):
2667 raise ValueError('lines and pens must have same length')
2668 return self
._DrawLineList
(lines
, pens
, [])
2671 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2674 elif isinstance(pens
, wx
.Pen
):
2676 elif len(pens
) != len(rectangles
):
2677 raise ValueError('rectangles and pens must have same length')
2680 elif isinstance(brushes
, wx
.Brush
):
2682 elif len(brushes
) != len(rectangles
):
2683 raise ValueError('rectangles and brushes must have same length')
2684 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2687 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2690 elif isinstance(pens
, wx
.Pen
):
2692 elif len(pens
) != len(ellipses
):
2693 raise ValueError('ellipses and pens must have same length')
2696 elif isinstance(brushes
, wx
.Brush
):
2698 elif len(brushes
) != len(ellipses
):
2699 raise ValueError('ellipses and brushes must have same length')
2700 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2703 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2708 elif isinstance(pens
, wx
.Pen
):
2710 elif len(pens
) != len(polygons
):
2711 raise ValueError('polygons and pens must have same length')
2714 elif isinstance(brushes
, wx
.Brush
):
2716 elif len(brushes
) != len(polygons
):
2717 raise ValueError('polygons and brushes must have same length')
2718 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2721 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2725 if type(textList
) == type(''):
2726 textList
= [textList
]
2727 elif len(textList
) != len(coords
):
2728 raise ValueError('textlist and coords must have same length')
2729 if foregrounds
is None:
2731 elif isinstance(foregrounds
, wx
.Colour
):
2732 foregrounds
= [foregrounds
]
2733 elif len(foregrounds
) != len(coords
):
2734 raise ValueError('foregrounds and coords must have same length')
2735 if backgrounds
is None:
2737 elif isinstance(backgrounds
, wx
.Colour
):
2738 backgrounds
= [backgrounds
]
2739 elif len(backgrounds
) != len(coords
):
2740 raise ValueError('backgrounds and coords must have same length')
2741 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2745 def __init__(self
, this
):
2747 if not hasattr(self
,"thisown"): self
.thisown
= 0
2749 _gdi
.DC_swigregister(DCPtr
)
2751 #---------------------------------------------------------------------------
2755 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2756 def __init__(self
, *args
, **kwargs
):
2757 """__init__() -> MemoryDC"""
2758 newobj
= _gdi
.new_MemoryDC(*args
, **kwargs
)
2759 self
.this
= newobj
.this
2762 def SelectObject(*args
, **kwargs
):
2763 """SelectObject(Bitmap bitmap)"""
2764 return _gdi
.MemoryDC_SelectObject(*args
, **kwargs
)
2767 class MemoryDCPtr(MemoryDC
):
2768 def __init__(self
, this
):
2770 if not hasattr(self
,"thisown"): self
.thisown
= 0
2771 self
.__class
__ = MemoryDC
2772 _gdi
.MemoryDC_swigregister(MemoryDCPtr
)
2774 def MemoryDCFromDC(*args
, **kwargs
):
2775 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
2776 val
= _gdi
.new_MemoryDCFromDC(*args
, **kwargs
)
2780 #---------------------------------------------------------------------------
2782 class BufferedDC(MemoryDC
):
2784 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2785 def __init__(self
, *args
, **kwargs
):
2786 """__init__(DC dc, Bitmap buffer) -> BufferedDC"""
2787 newobj
= _gdi
.new_BufferedDC(*args
, **kwargs
)
2788 self
.this
= newobj
.this
2791 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2793 def UnMask(*args
, **kwargs
):
2795 return _gdi
.BufferedDC_UnMask(*args
, **kwargs
)
2798 class BufferedDCPtr(BufferedDC
):
2799 def __init__(self
, this
):
2801 if not hasattr(self
,"thisown"): self
.thisown
= 0
2802 self
.__class
__ = BufferedDC
2803 _gdi
.BufferedDC_swigregister(BufferedDCPtr
)
2805 def BufferedDCInternalBuffer(*args
, **kwargs
):
2806 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
2807 val
= _gdi
.new_BufferedDCInternalBuffer(*args
, **kwargs
)
2809 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2812 class BufferedPaintDC(BufferedDC
):
2814 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2815 def __init__(self
, *args
, **kwargs
):
2816 """__init__(Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
2817 newobj
= _gdi
.new_BufferedPaintDC(*args
, **kwargs
)
2818 self
.this
= newobj
.this
2822 class BufferedPaintDCPtr(BufferedPaintDC
):
2823 def __init__(self
, this
):
2825 if not hasattr(self
,"thisown"): self
.thisown
= 0
2826 self
.__class
__ = BufferedPaintDC
2827 _gdi
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
2829 #---------------------------------------------------------------------------
2833 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2834 def __init__(self
, *args
, **kwargs
):
2835 """__init__() -> ScreenDC"""
2836 newobj
= _gdi
.new_ScreenDC(*args
, **kwargs
)
2837 self
.this
= newobj
.this
2840 def StartDrawingOnTopWin(*args
, **kwargs
):
2841 """StartDrawingOnTopWin(Window window) -> bool"""
2842 return _gdi
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
2844 def StartDrawingOnTop(*args
, **kwargs
):
2845 """StartDrawingOnTop(Rect rect=None) -> bool"""
2846 return _gdi
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
2848 def EndDrawingOnTop(*args
, **kwargs
):
2849 """EndDrawingOnTop() -> bool"""
2850 return _gdi
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
2853 class ScreenDCPtr(ScreenDC
):
2854 def __init__(self
, this
):
2856 if not hasattr(self
,"thisown"): self
.thisown
= 0
2857 self
.__class
__ = ScreenDC
2858 _gdi
.ScreenDC_swigregister(ScreenDCPtr
)
2860 #---------------------------------------------------------------------------
2864 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2865 def __init__(self
, *args
, **kwargs
):
2866 """__init__(Window win) -> ClientDC"""
2867 newobj
= _gdi
.new_ClientDC(*args
, **kwargs
)
2868 self
.this
= newobj
.this
2872 class ClientDCPtr(ClientDC
):
2873 def __init__(self
, this
):
2875 if not hasattr(self
,"thisown"): self
.thisown
= 0
2876 self
.__class
__ = ClientDC
2877 _gdi
.ClientDC_swigregister(ClientDCPtr
)
2879 #---------------------------------------------------------------------------
2883 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2884 def __init__(self
, *args
, **kwargs
):
2885 """__init__(Window win) -> PaintDC"""
2886 newobj
= _gdi
.new_PaintDC(*args
, **kwargs
)
2887 self
.this
= newobj
.this
2891 class PaintDCPtr(PaintDC
):
2892 def __init__(self
, this
):
2894 if not hasattr(self
,"thisown"): self
.thisown
= 0
2895 self
.__class
__ = PaintDC
2896 _gdi
.PaintDC_swigregister(PaintDCPtr
)
2898 #---------------------------------------------------------------------------
2902 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2903 def __init__(self
, *args
, **kwargs
):
2904 """__init__(Window win) -> WindowDC"""
2905 newobj
= _gdi
.new_WindowDC(*args
, **kwargs
)
2906 self
.this
= newobj
.this
2910 class WindowDCPtr(WindowDC
):
2911 def __init__(self
, this
):
2913 if not hasattr(self
,"thisown"): self
.thisown
= 0
2914 self
.__class
__ = WindowDC
2915 _gdi
.WindowDC_swigregister(WindowDCPtr
)
2917 #---------------------------------------------------------------------------
2921 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2922 def __init__(self
, *args
, **kwargs
):
2923 """__init__(DC dc, bool mirror) -> MirrorDC"""
2924 newobj
= _gdi
.new_MirrorDC(*args
, **kwargs
)
2925 self
.this
= newobj
.this
2929 class MirrorDCPtr(MirrorDC
):
2930 def __init__(self
, this
):
2932 if not hasattr(self
,"thisown"): self
.thisown
= 0
2933 self
.__class
__ = MirrorDC
2934 _gdi
.MirrorDC_swigregister(MirrorDCPtr
)
2936 #---------------------------------------------------------------------------
2938 class PostScriptDC(DC
):
2940 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2941 def __init__(self
, *args
, **kwargs
):
2942 """__init__(wxPrintData printData) -> PostScriptDC"""
2943 newobj
= _gdi
.new_PostScriptDC(*args
, **kwargs
)
2944 self
.this
= newobj
.this
2947 def GetPrintData(*args
, **kwargs
):
2948 """GetPrintData() -> wxPrintData"""
2949 return _gdi
.PostScriptDC_GetPrintData(*args
, **kwargs
)
2951 def SetPrintData(*args
, **kwargs
):
2952 """SetPrintData(wxPrintData data)"""
2953 return _gdi
.PostScriptDC_SetPrintData(*args
, **kwargs
)
2955 def SetResolution(*args
, **kwargs
):
2956 """PostScriptDC.SetResolution(int ppi)"""
2957 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
2959 SetResolution
= staticmethod(SetResolution
)
2960 def GetResolution(*args
, **kwargs
):
2961 """PostScriptDC.GetResolution() -> int"""
2962 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
2964 GetResolution
= staticmethod(GetResolution
)
2966 class PostScriptDCPtr(PostScriptDC
):
2967 def __init__(self
, this
):
2969 if not hasattr(self
,"thisown"): self
.thisown
= 0
2970 self
.__class
__ = PostScriptDC
2971 _gdi
.PostScriptDC_swigregister(PostScriptDCPtr
)
2973 def PostScriptDC_SetResolution(*args
, **kwargs
):
2974 """PostScriptDC_SetResolution(int ppi)"""
2975 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
2977 def PostScriptDC_GetResolution(*args
, **kwargs
):
2978 """PostScriptDC_GetResolution() -> int"""
2979 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
2981 #---------------------------------------------------------------------------
2983 class MetaFile(core
.Object
):
2985 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2986 def __init__(self
, *args
, **kwargs
):
2987 """__init__(wxString filename=wxPyEmptyString) -> MetaFile"""
2988 newobj
= _gdi
.new_MetaFile(*args
, **kwargs
)
2989 self
.this
= newobj
.this
2993 class MetaFilePtr(MetaFile
):
2994 def __init__(self
, this
):
2996 if not hasattr(self
,"thisown"): self
.thisown
= 0
2997 self
.__class
__ = MetaFile
2998 _gdi
.MetaFile_swigregister(MetaFilePtr
)
3000 class MetaFileDC(DC
):
3002 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3003 def __init__(self
, *args
, **kwargs
):
3005 __init__(wxString filename=wxPyEmptyString, int width=0, int height=0,
3006 wxString description=wxPyEmptyString) -> MetaFileDC
3008 newobj
= _gdi
.new_MetaFileDC(*args
, **kwargs
)
3009 self
.this
= newobj
.this
3013 class MetaFileDCPtr(MetaFileDC
):
3014 def __init__(self
, this
):
3016 if not hasattr(self
,"thisown"): self
.thisown
= 0
3017 self
.__class
__ = MetaFileDC
3018 _gdi
.MetaFileDC_swigregister(MetaFileDCPtr
)
3020 class PrinterDC(DC
):
3022 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3023 def __init__(self
, *args
, **kwargs
):
3024 """__init__(wxPrintData printData) -> PrinterDC"""
3025 newobj
= _gdi
.new_PrinterDC(*args
, **kwargs
)
3026 self
.this
= newobj
.this
3030 class PrinterDCPtr(PrinterDC
):
3031 def __init__(self
, this
):
3033 if not hasattr(self
,"thisown"): self
.thisown
= 0
3034 self
.__class
__ = PrinterDC
3035 _gdi
.PrinterDC_swigregister(PrinterDCPtr
)
3037 #---------------------------------------------------------------------------
3039 IMAGELIST_DRAW_NORMAL
= _gdi
.IMAGELIST_DRAW_NORMAL
3040 IMAGELIST_DRAW_TRANSPARENT
= _gdi
.IMAGELIST_DRAW_TRANSPARENT
3041 IMAGELIST_DRAW_SELECTED
= _gdi
.IMAGELIST_DRAW_SELECTED
3042 IMAGELIST_DRAW_FOCUSED
= _gdi
.IMAGELIST_DRAW_FOCUSED
3043 IMAGE_LIST_NORMAL
= _gdi
.IMAGE_LIST_NORMAL
3044 IMAGE_LIST_SMALL
= _gdi
.IMAGE_LIST_SMALL
3045 IMAGE_LIST_STATE
= _gdi
.IMAGE_LIST_STATE
3046 class ImageList(core
.Object
):
3048 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3049 def __init__(self
, *args
, **kwargs
):
3050 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3051 newobj
= _gdi
.new_ImageList(*args
, **kwargs
)
3052 self
.this
= newobj
.this
3055 def __del__(self
, destroy
=_gdi
.delete_ImageList
):
3058 if self
.thisown
: destroy(self
)
3061 def Add(*args
, **kwargs
):
3062 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3063 return _gdi
.ImageList_Add(*args
, **kwargs
)
3065 def AddWithColourMask(*args
, **kwargs
):
3066 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
3067 return _gdi
.ImageList_AddWithColourMask(*args
, **kwargs
)
3069 def AddIcon(*args
, **kwargs
):
3070 """AddIcon(Icon icon) -> int"""
3071 return _gdi
.ImageList_AddIcon(*args
, **kwargs
)
3073 def Replace(*args
, **kwargs
):
3074 """Replace(int index, Bitmap bitmap) -> bool"""
3075 return _gdi
.ImageList_Replace(*args
, **kwargs
)
3077 def Draw(*args
, **kwargs
):
3079 Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3080 bool solidBackground=False) -> bool
3082 return _gdi
.ImageList_Draw(*args
, **kwargs
)
3084 def GetImageCount(*args
, **kwargs
):
3085 """GetImageCount() -> int"""
3086 return _gdi
.ImageList_GetImageCount(*args
, **kwargs
)
3088 def Remove(*args
, **kwargs
):
3089 """Remove(int index) -> bool"""
3090 return _gdi
.ImageList_Remove(*args
, **kwargs
)
3092 def RemoveAll(*args
, **kwargs
):
3093 """RemoveAll() -> bool"""
3094 return _gdi
.ImageList_RemoveAll(*args
, **kwargs
)
3096 def GetSize(*args
, **kwargs
):
3097 """GetSize() -> (width,height)"""
3098 return _gdi
.ImageList_GetSize(*args
, **kwargs
)
3101 class ImageListPtr(ImageList
):
3102 def __init__(self
, this
):
3104 if not hasattr(self
,"thisown"): self
.thisown
= 0
3105 self
.__class
__ = ImageList
3106 _gdi
.ImageList_swigregister(ImageListPtr
)
3108 #---------------------------------------------------------------------------
3110 class PenList(core
.Object
):
3111 def __init__(self
): raise RuntimeError, "No constructor defined"
3113 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3114 def AddPen(*args
, **kwargs
):
3115 """AddPen(Pen pen)"""
3116 return _gdi
.PenList_AddPen(*args
, **kwargs
)
3118 def FindOrCreatePen(*args
, **kwargs
):
3119 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
3120 return _gdi
.PenList_FindOrCreatePen(*args
, **kwargs
)
3122 def RemovePen(*args
, **kwargs
):
3123 """RemovePen(Pen pen)"""
3124 return _gdi
.PenList_RemovePen(*args
, **kwargs
)
3126 def GetCount(*args
, **kwargs
):
3127 """GetCount() -> int"""
3128 return _gdi
.PenList_GetCount(*args
, **kwargs
)
3131 class PenListPtr(PenList
):
3132 def __init__(self
, this
):
3134 if not hasattr(self
,"thisown"): self
.thisown
= 0
3135 self
.__class
__ = PenList
3136 _gdi
.PenList_swigregister(PenListPtr
)
3138 class BrushList(core
.Object
):
3139 def __init__(self
): raise RuntimeError, "No constructor defined"
3141 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3142 def AddBrush(*args
, **kwargs
):
3143 """AddBrush(Brush brush)"""
3144 return _gdi
.BrushList_AddBrush(*args
, **kwargs
)
3146 def FindOrCreateBrush(*args
, **kwargs
):
3147 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
3148 return _gdi
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3150 def RemoveBrush(*args
, **kwargs
):
3151 """RemoveBrush(Brush brush)"""
3152 return _gdi
.BrushList_RemoveBrush(*args
, **kwargs
)
3154 def GetCount(*args
, **kwargs
):
3155 """GetCount() -> int"""
3156 return _gdi
.BrushList_GetCount(*args
, **kwargs
)
3159 class BrushListPtr(BrushList
):
3160 def __init__(self
, this
):
3162 if not hasattr(self
,"thisown"): self
.thisown
= 0
3163 self
.__class
__ = BrushList
3164 _gdi
.BrushList_swigregister(BrushListPtr
)
3166 class ColourDatabase(core
.Object
):
3168 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3169 def __init__(self
, *args
, **kwargs
):
3170 """__init__() -> ColourDatabase"""
3171 newobj
= _gdi
.new_ColourDatabase(*args
, **kwargs
)
3172 self
.this
= newobj
.this
3175 def __del__(self
, destroy
=_gdi
.delete_ColourDatabase
):
3178 if self
.thisown
: destroy(self
)
3181 def Find(*args
, **kwargs
):
3182 """Find(wxString name) -> Colour"""
3183 return _gdi
.ColourDatabase_Find(*args
, **kwargs
)
3185 def FindName(*args
, **kwargs
):
3186 """FindName(Colour colour) -> wxString"""
3187 return _gdi
.ColourDatabase_FindName(*args
, **kwargs
)
3190 def AddColour(*args
, **kwargs
):
3191 """AddColour(wxString name, Colour colour)"""
3192 return _gdi
.ColourDatabase_AddColour(*args
, **kwargs
)
3194 def Append(*args
, **kwargs
):
3195 """Append(wxString name, int red, int green, int blue)"""
3196 return _gdi
.ColourDatabase_Append(*args
, **kwargs
)
3199 class ColourDatabasePtr(ColourDatabase
):
3200 def __init__(self
, this
):
3202 if not hasattr(self
,"thisown"): self
.thisown
= 0
3203 self
.__class
__ = ColourDatabase
3204 _gdi
.ColourDatabase_swigregister(ColourDatabasePtr
)
3206 class FontList(core
.Object
):
3207 def __init__(self
): raise RuntimeError, "No constructor defined"
3209 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3210 def AddFont(*args
, **kwargs
):
3211 """AddFont(Font font)"""
3212 return _gdi
.FontList_AddFont(*args
, **kwargs
)
3214 def FindOrCreateFont(*args
, **kwargs
):
3216 FindOrCreateFont(int point_size, int family, int style, int weight,
3217 bool underline=False, wxString facename=wxPyEmptyString,
3218 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font
3220 return _gdi
.FontList_FindOrCreateFont(*args
, **kwargs
)
3222 def RemoveFont(*args
, **kwargs
):
3223 """RemoveFont(Font font)"""
3224 return _gdi
.FontList_RemoveFont(*args
, **kwargs
)
3226 def GetCount(*args
, **kwargs
):
3227 """GetCount() -> int"""
3228 return _gdi
.FontList_GetCount(*args
, **kwargs
)
3231 class FontListPtr(FontList
):
3232 def __init__(self
, this
):
3234 if not hasattr(self
,"thisown"): self
.thisown
= 0
3235 self
.__class
__ = FontList
3236 _gdi
.FontList_swigregister(FontListPtr
)
3238 #---------------------------------------------------------------------------
3240 #---------------------------------------------------------------------------
3242 class Effects(core
.Object
):
3244 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3245 def __init__(self
, *args
, **kwargs
):
3246 """__init__() -> Effects"""
3247 newobj
= _gdi
.new_Effects(*args
, **kwargs
)
3248 self
.this
= newobj
.this
3251 def GetHighlightColour(*args
, **kwargs
):
3252 """GetHighlightColour() -> Colour"""
3253 return _gdi
.Effects_GetHighlightColour(*args
, **kwargs
)
3255 def GetLightShadow(*args
, **kwargs
):
3256 """GetLightShadow() -> Colour"""
3257 return _gdi
.Effects_GetLightShadow(*args
, **kwargs
)
3259 def GetFaceColour(*args
, **kwargs
):
3260 """GetFaceColour() -> Colour"""
3261 return _gdi
.Effects_GetFaceColour(*args
, **kwargs
)
3263 def GetMediumShadow(*args
, **kwargs
):
3264 """GetMediumShadow() -> Colour"""
3265 return _gdi
.Effects_GetMediumShadow(*args
, **kwargs
)
3267 def GetDarkShadow(*args
, **kwargs
):
3268 """GetDarkShadow() -> Colour"""
3269 return _gdi
.Effects_GetDarkShadow(*args
, **kwargs
)
3271 def SetHighlightColour(*args
, **kwargs
):
3272 """SetHighlightColour(Colour c)"""
3273 return _gdi
.Effects_SetHighlightColour(*args
, **kwargs
)
3275 def SetLightShadow(*args
, **kwargs
):
3276 """SetLightShadow(Colour c)"""
3277 return _gdi
.Effects_SetLightShadow(*args
, **kwargs
)
3279 def SetFaceColour(*args
, **kwargs
):
3280 """SetFaceColour(Colour c)"""
3281 return _gdi
.Effects_SetFaceColour(*args
, **kwargs
)
3283 def SetMediumShadow(*args
, **kwargs
):
3284 """SetMediumShadow(Colour c)"""
3285 return _gdi
.Effects_SetMediumShadow(*args
, **kwargs
)
3287 def SetDarkShadow(*args
, **kwargs
):
3288 """SetDarkShadow(Colour c)"""
3289 return _gdi
.Effects_SetDarkShadow(*args
, **kwargs
)
3291 def Set(*args
, **kwargs
):
3293 Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3294 Colour mediumShadow, Colour darkShadow)
3296 return _gdi
.Effects_Set(*args
, **kwargs
)
3298 def DrawSunkenEdge(*args
, **kwargs
):
3299 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3300 return _gdi
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3302 def TileBitmap(*args
, **kwargs
):
3303 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3304 return _gdi
.Effects_TileBitmap(*args
, **kwargs
)
3307 class EffectsPtr(Effects
):
3308 def __init__(self
, this
):
3310 if not hasattr(self
,"thisown"): self
.thisown
= 0
3311 self
.__class
__ = Effects
3312 _gdi
.Effects_swigregister(EffectsPtr
)
3314 NORMAL_FONT
= cvar
.NORMAL_FONT
3315 SMALL_FONT
= cvar
.SMALL_FONT
3316 ITALIC_FONT
= cvar
.ITALIC_FONT
3317 SWISS_FONT
= cvar
.SWISS_FONT
3318 RED_PEN
= cvar
.RED_PEN
3319 CYAN_PEN
= cvar
.CYAN_PEN
3320 GREEN_PEN
= cvar
.GREEN_PEN
3321 BLACK_PEN
= cvar
.BLACK_PEN
3322 WHITE_PEN
= cvar
.WHITE_PEN
3323 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3324 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3325 GREY_PEN
= cvar
.GREY_PEN
3326 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3327 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3328 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3329 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3330 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3331 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3332 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3333 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3334 RED_BRUSH
= cvar
.RED_BRUSH
3335 GREY_BRUSH
= cvar
.GREY_BRUSH
3336 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3337 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3344 LIGHT_GREY
= cvar
.LIGHT_GREY
3345 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3346 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3347 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3348 NullBitmap
= cvar
.NullBitmap
3349 NullIcon
= cvar
.NullIcon
3350 NullCursor
= cvar
.NullCursor
3351 NullPen
= cvar
.NullPen
3352 NullBrush
= cvar
.NullBrush
3353 NullPalette
= cvar
.NullPalette
3354 NullFont
= cvar
.NullFont
3355 NullColour
= cvar
.NullColour
3356 TheFontList
= cvar
.TheFontList
3357 ThePenList
= cvar
.ThePenList
3358 TheBrushList
= cvar
.TheBrushList
3359 TheColourDatabase
= cvar
.TheColourDatabase