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 GetStipple(*args
, **kwargs
):
243 """GetStipple() -> Bitmap"""
244 return _gdi
.Pen_GetStipple(*args
, **kwargs
)
246 def SetStipple(*args
, **kwargs
):
247 """SetStipple(Bitmap stipple)"""
248 return _gdi
.Pen_SetStipple(*args
, **kwargs
)
250 def __nonzero__(self
): return self
.Ok()
253 def __init__(self
, this
):
255 if not hasattr(self
,"thisown"): self
.thisown
= 0
257 _gdi
.Pen_swigregister(PenPtr
)
261 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
262 def __init__(self
, *args
, **kwargs
):
263 """__init__(Colour colour, int width=1, int style=SOLID) -> PyPen"""
264 newobj
= _gdi
.new_PyPen(*args
, **kwargs
)
265 self
.this
= newobj
.this
268 def __del__(self
, destroy
=_gdi
.delete_PyPen
):
271 if self
.thisown
: destroy(self
)
274 def SetDashes(*args
, **kwargs
):
275 """SetDashes(int dashes, wxDash dashes_array)"""
276 return _gdi
.PyPen_SetDashes(*args
, **kwargs
)
279 class PyPenPtr(PyPen
):
280 def __init__(self
, this
):
282 if not hasattr(self
,"thisown"): self
.thisown
= 0
283 self
.__class
__ = PyPen
284 _gdi
.PyPen_swigregister(PyPenPtr
)
287 #---------------------------------------------------------------------------
289 class Brush(GDIObject
):
291 A brush is a drawing tool for filling in areas. It is used for painting the
292 background of rectangles, ellipses, etc. It has a colour and a style.
295 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
296 def __init__(self
, *args
, **kwargs
):
298 __init__(Colour colour, int style=SOLID) -> Brush
300 Constructs a brush from a colour object and style.
302 newobj
= _gdi
.new_Brush(*args
, **kwargs
)
303 self
.this
= newobj
.this
306 def __del__(self
, destroy
=_gdi
.delete_Brush
):
309 if self
.thisown
: destroy(self
)
312 def SetColour(*args
, **kwargs
):
313 """SetColour(Colour col)"""
314 return _gdi
.Brush_SetColour(*args
, **kwargs
)
316 def SetStyle(*args
, **kwargs
):
317 """SetStyle(int style)"""
318 return _gdi
.Brush_SetStyle(*args
, **kwargs
)
320 def SetStipple(*args
, **kwargs
):
321 """SetStipple(Bitmap stipple)"""
322 return _gdi
.Brush_SetStipple(*args
, **kwargs
)
324 def GetColour(*args
, **kwargs
):
325 """GetColour() -> Colour"""
326 return _gdi
.Brush_GetColour(*args
, **kwargs
)
328 def GetStyle(*args
, **kwargs
):
329 """GetStyle() -> int"""
330 return _gdi
.Brush_GetStyle(*args
, **kwargs
)
332 def GetStipple(*args
, **kwargs
):
333 """GetStipple() -> Bitmap"""
334 return _gdi
.Brush_GetStipple(*args
, **kwargs
)
336 def Ok(*args
, **kwargs
):
338 return _gdi
.Brush_Ok(*args
, **kwargs
)
340 def __nonzero__(self
): return self
.Ok()
342 class BrushPtr(Brush
):
343 def __init__(self
, this
):
345 if not hasattr(self
,"thisown"): self
.thisown
= 0
346 self
.__class
__ = Brush
347 _gdi
.Brush_swigregister(BrushPtr
)
349 class Bitmap(GDIObject
):
351 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
352 def __init__(self
, *args
, **kwargs
):
354 __init__(wxString name, wxBitmapType type=BITMAP_TYPE_ANY) -> Bitmap
356 Loads a bitmap from a file.
358 newobj
= _gdi
.new_Bitmap(*args
, **kwargs
)
359 self
.this
= newobj
.this
362 def __del__(self
, destroy
=_gdi
.delete_Bitmap
):
365 if self
.thisown
: destroy(self
)
368 def SetPalette(*args
, **kwargs
):
369 """SetPalette(Palette palette)"""
370 return _gdi
.Bitmap_SetPalette(*args
, **kwargs
)
372 def GetHandle(*args
, **kwargs
):
373 """GetHandle() -> long"""
374 return _gdi
.Bitmap_GetHandle(*args
, **kwargs
)
376 def SetHandle(*args
, **kwargs
):
377 """SetHandle(long handle)"""
378 return _gdi
.Bitmap_SetHandle(*args
, **kwargs
)
380 def Ok(*args
, **kwargs
):
382 return _gdi
.Bitmap_Ok(*args
, **kwargs
)
384 def GetWidth(*args
, **kwargs
):
388 Gets the width of the bitmap in pixels.
390 return _gdi
.Bitmap_GetWidth(*args
, **kwargs
)
392 def GetHeight(*args
, **kwargs
):
396 Gets the height of the bitmap in pixels.
398 return _gdi
.Bitmap_GetHeight(*args
, **kwargs
)
400 def GetDepth(*args
, **kwargs
):
404 Gets the colour depth of the bitmap. A value of 1 indicates a
407 return _gdi
.Bitmap_GetDepth(*args
, **kwargs
)
409 def ConvertToImage(*args
, **kwargs
):
411 ConvertToImage() -> Image
413 Creates a platform-independent image from a platform-dependent bitmap. This
414 preserves mask information so that bitmaps and images can be converted back
415 and forth without loss in that respect.
417 return _gdi
.Bitmap_ConvertToImage(*args
, **kwargs
)
419 def GetMask(*args
, **kwargs
):
423 Gets the associated mask (if any) which may have been loaded from a file
424 or explpicitly set for the bitmap.
426 return _gdi
.Bitmap_GetMask(*args
, **kwargs
)
428 def SetMask(*args
, **kwargs
):
432 Sets the mask for this bitmap.
434 return _gdi
.Bitmap_SetMask(*args
, **kwargs
)
436 def SetMaskColour(*args
, **kwargs
):
438 SetMaskColour(Colour colour)
440 Create a Mask based on a specified colour in the Bitmap.
442 return _gdi
.Bitmap_SetMaskColour(*args
, **kwargs
)
444 def GetSubBitmap(*args
, **kwargs
):
446 GetSubBitmap(Rect rect) -> Bitmap
448 Returns a sub bitmap of the current one as long as the rect belongs entirely
449 to the bitmap. This function preserves bit depth and mask information.
451 return _gdi
.Bitmap_GetSubBitmap(*args
, **kwargs
)
453 def SaveFile(*args
, **kwargs
):
455 SaveFile(wxString name, wxBitmapType type, Palette palette=(wxPalette *) NULL) -> bool
457 Saves a bitmap in the named file.
459 return _gdi
.Bitmap_SaveFile(*args
, **kwargs
)
461 def LoadFile(*args
, **kwargs
):
463 LoadFile(wxString name, wxBitmapType type) -> bool
465 Loads a bitmap from a file
467 return _gdi
.Bitmap_LoadFile(*args
, **kwargs
)
469 def CopyFromIcon(*args
, **kwargs
):
470 """CopyFromIcon(Icon icon) -> bool"""
471 return _gdi
.Bitmap_CopyFromIcon(*args
, **kwargs
)
473 def SetHeight(*args
, **kwargs
):
475 SetHeight(int height)
477 Set the height property (does not affect the bitmap data).
479 return _gdi
.Bitmap_SetHeight(*args
, **kwargs
)
481 def SetWidth(*args
, **kwargs
):
485 Set the width property (does not affect the bitmap data).
487 return _gdi
.Bitmap_SetWidth(*args
, **kwargs
)
489 def SetDepth(*args
, **kwargs
):
493 Set the depth property (does not affect the bitmap data).
495 return _gdi
.Bitmap_SetDepth(*args
, **kwargs
)
497 def CopyFromCursor(*args
, **kwargs
):
498 """CopyFromCursor(Cursor cursor) -> bool"""
499 return _gdi
.Bitmap_CopyFromCursor(*args
, **kwargs
)
501 def GetQuality(*args
, **kwargs
):
502 """GetQuality() -> int"""
503 return _gdi
.Bitmap_GetQuality(*args
, **kwargs
)
505 def SetQuality(*args
, **kwargs
):
506 """SetQuality(int q)"""
507 return _gdi
.Bitmap_SetQuality(*args
, **kwargs
)
509 def __nonzero__(self
): return self
.Ok()
511 class BitmapPtr(Bitmap
):
512 def __init__(self
, this
):
514 if not hasattr(self
,"thisown"): self
.thisown
= 0
515 self
.__class
__ = Bitmap
516 _gdi
.Bitmap_swigregister(BitmapPtr
)
518 def EmptyBitmap(*args
, **kwargs
):
520 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
522 Creates a new bitmap of the given size. A depth of -1 indicates the depth of
523 the current screen or visual. Some platforms only support 1 for monochrome and
524 -1 for the current colour setting.
526 val
= _gdi
.new_EmptyBitmap(*args
, **kwargs
)
530 def BitmapFromIcon(*args
, **kwargs
):
532 BitmapFromIcon(Icon icon) -> Bitmap
534 Create a new bitmap from an Icon object.
536 val
= _gdi
.new_BitmapFromIcon(*args
, **kwargs
)
540 def BitmapFromImage(*args
, **kwargs
):
542 BitmapFromImage(Image image, int depth=-1) -> Bitmap
544 Creates bitmap object from the image. This has to be done to actually display
545 an image as you cannot draw an image directly on a window. The resulting
546 bitmap will use the provided colour depth (or that of the current system if
547 depth is -1) which entails that a colour reduction has to take place.
549 val
= _gdi
.new_BitmapFromImage(*args
, **kwargs
)
553 def BitmapFromXPMData(*args
, **kwargs
):
555 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
557 Construct a Bitmap from a list of strings formatted as XPM data.
559 val
= _gdi
.new_BitmapFromXPMData(*args
, **kwargs
)
563 def BitmapFromBits(*args
, **kwargs
):
565 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
567 Creates a bitmap from an array of bits. You should only use this function for
568 monochrome bitmaps (depth 1) in portable programs: in this case the bits
569 parameter should contain an XBM image. For other bit depths, the behaviour is
572 val
= _gdi
.new_BitmapFromBits(*args
, **kwargs
)
576 class Mask(core
.Object
):
578 This class encapsulates a monochrome mask bitmap, where the masked area is
579 black and the unmasked area is white. When associated with a bitmap and drawn
580 in a device context, the unmasked area of the bitmap will be drawn, and the
581 masked area will not be drawn.
584 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
585 def __init__(self
, *args
, **kwargs
):
587 __init__(Bitmap bitmap) -> Mask
589 Constructs a mask from a monochrome bitmap.
591 newobj
= _gdi
.new_Mask(*args
, **kwargs
)
592 self
.this
= newobj
.this
597 def __init__(self
, this
):
599 if not hasattr(self
,"thisown"): self
.thisown
= 0
600 self
.__class
__ = Mask
601 _gdi
.Mask_swigregister(MaskPtr
)
603 def MaskColour(*args
, **kwargs
):
605 MaskColour(Bitmap bitmap, Colour colour) -> Mask
607 Constructs a mask from a bitmap and a colour in that bitmap that indicates the
610 val
= _gdi
.new_MaskColour(*args
, **kwargs
)
614 class Icon(GDIObject
):
616 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
617 def __init__(self
, *args
, **kwargs
):
618 """__init__(wxString name, long flags, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
619 newobj
= _gdi
.new_Icon(*args
, **kwargs
)
620 self
.this
= newobj
.this
623 def __del__(self
, destroy
=_gdi
.delete_Icon
):
626 if self
.thisown
: destroy(self
)
629 def LoadFile(*args
, **kwargs
):
630 """LoadFile(wxString name, long flags) -> bool"""
631 return _gdi
.Icon_LoadFile(*args
, **kwargs
)
633 def GetHandle(*args
, **kwargs
):
634 """GetHandle() -> long"""
635 return _gdi
.Icon_GetHandle(*args
, **kwargs
)
637 def SetHandle(*args
, **kwargs
):
638 """SetHandle(long handle)"""
639 return _gdi
.Icon_SetHandle(*args
, **kwargs
)
641 def Ok(*args
, **kwargs
):
643 return _gdi
.Icon_Ok(*args
, **kwargs
)
645 def GetWidth(*args
, **kwargs
):
646 """GetWidth() -> int"""
647 return _gdi
.Icon_GetWidth(*args
, **kwargs
)
649 def GetHeight(*args
, **kwargs
):
650 """GetHeight() -> int"""
651 return _gdi
.Icon_GetHeight(*args
, **kwargs
)
653 def GetDepth(*args
, **kwargs
):
654 """GetDepth() -> int"""
655 return _gdi
.Icon_GetDepth(*args
, **kwargs
)
657 def SetWidth(*args
, **kwargs
):
658 """SetWidth(int w)"""
659 return _gdi
.Icon_SetWidth(*args
, **kwargs
)
661 def SetHeight(*args
, **kwargs
):
662 """SetHeight(int h)"""
663 return _gdi
.Icon_SetHeight(*args
, **kwargs
)
665 def SetDepth(*args
, **kwargs
):
666 """SetDepth(int d)"""
667 return _gdi
.Icon_SetDepth(*args
, **kwargs
)
669 def SetSize(*args
, **kwargs
):
670 """SetSize(Size size)"""
671 return _gdi
.Icon_SetSize(*args
, **kwargs
)
673 def CopyFromBitmap(*args
, **kwargs
):
674 """CopyFromBitmap(Bitmap bmp)"""
675 return _gdi
.Icon_CopyFromBitmap(*args
, **kwargs
)
677 def __nonzero__(self
): return self
.Ok()
680 def __init__(self
, this
):
682 if not hasattr(self
,"thisown"): self
.thisown
= 0
683 self
.__class
__ = Icon
684 _gdi
.Icon_swigregister(IconPtr
)
686 def EmptyIcon(*args
, **kwargs
):
687 """EmptyIcon() -> Icon"""
688 val
= _gdi
.new_EmptyIcon(*args
, **kwargs
)
692 def IconFromLocation(*args
, **kwargs
):
693 """IconFromLocation(IconLocation loc) -> Icon"""
694 val
= _gdi
.new_IconFromLocation(*args
, **kwargs
)
698 def IconFromBitmap(*args
, **kwargs
):
699 """IconFromBitmap(Bitmap bmp) -> Icon"""
700 val
= _gdi
.new_IconFromBitmap(*args
, **kwargs
)
704 def IconFromXPMData(*args
, **kwargs
):
705 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
706 val
= _gdi
.new_IconFromXPMData(*args
, **kwargs
)
710 class IconLocation(object):
712 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
713 def __init__(self
, *args
, **kwargs
):
714 """__init__(wxString filename=&wxPyEmptyString, int num=0) -> IconLocation"""
715 newobj
= _gdi
.new_IconLocation(*args
, **kwargs
)
716 self
.this
= newobj
.this
719 def __del__(self
, destroy
=_gdi
.delete_IconLocation
):
722 if self
.thisown
: destroy(self
)
725 def IsOk(*args
, **kwargs
):
727 return _gdi
.IconLocation_IsOk(*args
, **kwargs
)
729 def __nonzero__(self
): return self
.Ok()
730 def SetFileName(*args
, **kwargs
):
731 """SetFileName(wxString filename)"""
732 return _gdi
.IconLocation_SetFileName(*args
, **kwargs
)
734 def GetFileName(*args
, **kwargs
):
735 """GetFileName() -> wxString"""
736 return _gdi
.IconLocation_GetFileName(*args
, **kwargs
)
738 def SetIndex(*args
, **kwargs
):
739 """SetIndex(int num)"""
740 return _gdi
.IconLocation_SetIndex(*args
, **kwargs
)
742 def GetIndex(*args
, **kwargs
):
743 """GetIndex() -> int"""
744 return _gdi
.IconLocation_GetIndex(*args
, **kwargs
)
747 class IconLocationPtr(IconLocation
):
748 def __init__(self
, this
):
750 if not hasattr(self
,"thisown"): self
.thisown
= 0
751 self
.__class
__ = IconLocation
752 _gdi
.IconLocation_swigregister(IconLocationPtr
)
754 class IconBundle(object):
756 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
757 def __init__(self
, *args
, **kwargs
):
758 """__init__() -> IconBundle"""
759 newobj
= _gdi
.new_IconBundle(*args
, **kwargs
)
760 self
.this
= newobj
.this
763 def __del__(self
, destroy
=_gdi
.delete_IconBundle
):
766 if self
.thisown
: destroy(self
)
769 def AddIcon(*args
, **kwargs
):
770 """AddIcon(Icon icon)"""
771 return _gdi
.IconBundle_AddIcon(*args
, **kwargs
)
773 def AddIconFromFile(*args
, **kwargs
):
774 """AddIconFromFile(wxString file, long type)"""
775 return _gdi
.IconBundle_AddIconFromFile(*args
, **kwargs
)
777 def GetIcon(*args
, **kwargs
):
778 """GetIcon(Size size) -> Icon"""
779 return _gdi
.IconBundle_GetIcon(*args
, **kwargs
)
782 class IconBundlePtr(IconBundle
):
783 def __init__(self
, this
):
785 if not hasattr(self
,"thisown"): self
.thisown
= 0
786 self
.__class
__ = IconBundle
787 _gdi
.IconBundle_swigregister(IconBundlePtr
)
789 def IconBundleFromFile(*args
, **kwargs
):
790 """IconBundleFromFile(wxString file, long type) -> IconBundle"""
791 val
= _gdi
.new_IconBundleFromFile(*args
, **kwargs
)
795 def IconBundleFromIcon(*args
, **kwargs
):
796 """IconBundleFromIcon(Icon icon) -> IconBundle"""
797 val
= _gdi
.new_IconBundleFromIcon(*args
, **kwargs
)
801 class Cursor(GDIObject
):
803 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
804 def __init__(self
, *args
, **kwargs
):
805 """__init__(wxString cursorName, long flags, int hotSpotX=0, int hotSpotY=0) -> Cursor"""
806 newobj
= _gdi
.new_Cursor(*args
, **kwargs
)
807 self
.this
= newobj
.this
810 def __del__(self
, destroy
=_gdi
.delete_Cursor
):
813 if self
.thisown
: destroy(self
)
816 def GetHandle(*args
, **kwargs
):
817 """GetHandle() -> long"""
818 return _gdi
.Cursor_GetHandle(*args
, **kwargs
)
820 def SetHandle(*args
, **kwargs
):
821 """SetHandle(long handle)"""
822 return _gdi
.Cursor_SetHandle(*args
, **kwargs
)
824 def Ok(*args
, **kwargs
):
826 return _gdi
.Cursor_Ok(*args
, **kwargs
)
828 def GetWidth(*args
, **kwargs
):
829 """GetWidth() -> int"""
830 return _gdi
.Cursor_GetWidth(*args
, **kwargs
)
832 def GetHeight(*args
, **kwargs
):
833 """GetHeight() -> int"""
834 return _gdi
.Cursor_GetHeight(*args
, **kwargs
)
836 def GetDepth(*args
, **kwargs
):
837 """GetDepth() -> int"""
838 return _gdi
.Cursor_GetDepth(*args
, **kwargs
)
840 def SetWidth(*args
, **kwargs
):
841 """SetWidth(int w)"""
842 return _gdi
.Cursor_SetWidth(*args
, **kwargs
)
844 def SetHeight(*args
, **kwargs
):
845 """SetHeight(int h)"""
846 return _gdi
.Cursor_SetHeight(*args
, **kwargs
)
848 def SetDepth(*args
, **kwargs
):
849 """SetDepth(int d)"""
850 return _gdi
.Cursor_SetDepth(*args
, **kwargs
)
852 def SetSize(*args
, **kwargs
):
853 """SetSize(Size size)"""
854 return _gdi
.Cursor_SetSize(*args
, **kwargs
)
856 def __nonzero__(self
): return self
.Ok()
858 class CursorPtr(Cursor
):
859 def __init__(self
, this
):
861 if not hasattr(self
,"thisown"): self
.thisown
= 0
862 self
.__class
__ = Cursor
863 _gdi
.Cursor_swigregister(CursorPtr
)
865 def StockCursor(*args
, **kwargs
):
866 """StockCursor(int id) -> Cursor"""
867 val
= _gdi
.new_StockCursor(*args
, **kwargs
)
871 def CursorFromImage(*args
, **kwargs
):
872 """CursorFromImage(Image image) -> Cursor"""
873 val
= _gdi
.new_CursorFromImage(*args
, **kwargs
)
877 def CursorFromBits(*args
, **kwargs
):
879 CursorFromBits(PyObject bits, int width, int height, int hotSpotX=-1,
880 int hotSpotY=-1, PyObject maskBits=0) -> Cursor
882 val
= _gdi
.new_CursorFromBits(*args
, **kwargs
)
886 #---------------------------------------------------------------------------
888 OutRegion
= _gdi
.OutRegion
889 PartRegion
= _gdi
.PartRegion
890 InRegion
= _gdi
.InRegion
891 class Region(GDIObject
):
893 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
894 def __init__(self
, *args
, **kwargs
):
895 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
896 newobj
= _gdi
.new_Region(*args
, **kwargs
)
897 self
.this
= newobj
.this
900 def __del__(self
, destroy
=_gdi
.delete_Region
):
903 if self
.thisown
: destroy(self
)
906 def Clear(*args
, **kwargs
):
908 return _gdi
.Region_Clear(*args
, **kwargs
)
910 def Offset(*args
, **kwargs
):
911 """Offset(int x, int y) -> bool"""
912 return _gdi
.Region_Offset(*args
, **kwargs
)
914 def Contains(*args
, **kwargs
):
915 """Contains(int x, int y) -> wxRegionContain"""
916 return _gdi
.Region_Contains(*args
, **kwargs
)
918 def ContainsPoint(*args
, **kwargs
):
919 """ContainsPoint(Point pt) -> wxRegionContain"""
920 return _gdi
.Region_ContainsPoint(*args
, **kwargs
)
922 def ContainsRect(*args
, **kwargs
):
923 """ContainsRect(Rect rect) -> wxRegionContain"""
924 return _gdi
.Region_ContainsRect(*args
, **kwargs
)
926 def ContainsRectDim(*args
, **kwargs
):
927 """ContainsRectDim(int x, int y, int w, int h) -> wxRegionContain"""
928 return _gdi
.Region_ContainsRectDim(*args
, **kwargs
)
930 def GetBox(*args
, **kwargs
):
931 """GetBox() -> Rect"""
932 return _gdi
.Region_GetBox(*args
, **kwargs
)
934 def Intersect(*args
, **kwargs
):
935 """Intersect(int x, int y, int width, int height) -> bool"""
936 return _gdi
.Region_Intersect(*args
, **kwargs
)
938 def IntersectRect(*args
, **kwargs
):
939 """IntersectRect(Rect rect) -> bool"""
940 return _gdi
.Region_IntersectRect(*args
, **kwargs
)
942 def IntersectRegion(*args
, **kwargs
):
943 """IntersectRegion(Region region) -> bool"""
944 return _gdi
.Region_IntersectRegion(*args
, **kwargs
)
946 def IsEmpty(*args
, **kwargs
):
947 """IsEmpty() -> bool"""
948 return _gdi
.Region_IsEmpty(*args
, **kwargs
)
950 def Union(*args
, **kwargs
):
951 """Union(int x, int y, int width, int height) -> bool"""
952 return _gdi
.Region_Union(*args
, **kwargs
)
954 def UnionRect(*args
, **kwargs
):
955 """UnionRect(Rect rect) -> bool"""
956 return _gdi
.Region_UnionRect(*args
, **kwargs
)
958 def UnionRegion(*args
, **kwargs
):
959 """UnionRegion(Region region) -> bool"""
960 return _gdi
.Region_UnionRegion(*args
, **kwargs
)
962 def Subtract(*args
, **kwargs
):
963 """Subtract(int x, int y, int width, int height) -> bool"""
964 return _gdi
.Region_Subtract(*args
, **kwargs
)
966 def SubtractRect(*args
, **kwargs
):
967 """SubtractRect(Rect rect) -> bool"""
968 return _gdi
.Region_SubtractRect(*args
, **kwargs
)
970 def SubtractRegion(*args
, **kwargs
):
971 """SubtractRegion(Region region) -> bool"""
972 return _gdi
.Region_SubtractRegion(*args
, **kwargs
)
974 def Xor(*args
, **kwargs
):
975 """Xor(int x, int y, int width, int height) -> bool"""
976 return _gdi
.Region_Xor(*args
, **kwargs
)
978 def XorRect(*args
, **kwargs
):
979 """XorRect(Rect rect) -> bool"""
980 return _gdi
.Region_XorRect(*args
, **kwargs
)
982 def XorRegion(*args
, **kwargs
):
983 """XorRegion(Region region) -> bool"""
984 return _gdi
.Region_XorRegion(*args
, **kwargs
)
986 def ConvertToBitmap(*args
, **kwargs
):
987 """ConvertToBitmap() -> Bitmap"""
988 return _gdi
.Region_ConvertToBitmap(*args
, **kwargs
)
990 def UnionBitmap(*args
, **kwargs
):
991 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
992 return _gdi
.Region_UnionBitmap(*args
, **kwargs
)
995 class RegionPtr(Region
):
996 def __init__(self
, this
):
998 if not hasattr(self
,"thisown"): self
.thisown
= 0
999 self
.__class
__ = Region
1000 _gdi
.Region_swigregister(RegionPtr
)
1002 def RegionFromBitmap(*args
, **kwargs
):
1003 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
1004 val
= _gdi
.new_RegionFromBitmap(*args
, **kwargs
)
1008 def RegionFromPoints(*args
, **kwargs
):
1009 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
1010 val
= _gdi
.new_RegionFromPoints(*args
, **kwargs
)
1014 class RegionIterator(core
.Object
):
1016 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1017 def __init__(self
, *args
, **kwargs
):
1018 """__init__(Region region) -> RegionIterator"""
1019 newobj
= _gdi
.new_RegionIterator(*args
, **kwargs
)
1020 self
.this
= newobj
.this
1023 def __del__(self
, destroy
=_gdi
.delete_RegionIterator
):
1026 if self
.thisown
: destroy(self
)
1029 def GetX(*args
, **kwargs
):
1031 return _gdi
.RegionIterator_GetX(*args
, **kwargs
)
1033 def GetY(*args
, **kwargs
):
1035 return _gdi
.RegionIterator_GetY(*args
, **kwargs
)
1037 def GetW(*args
, **kwargs
):
1039 return _gdi
.RegionIterator_GetW(*args
, **kwargs
)
1041 def GetWidth(*args
, **kwargs
):
1042 """GetWidth() -> int"""
1043 return _gdi
.RegionIterator_GetWidth(*args
, **kwargs
)
1045 def GetH(*args
, **kwargs
):
1047 return _gdi
.RegionIterator_GetH(*args
, **kwargs
)
1049 def GetHeight(*args
, **kwargs
):
1050 """GetHeight() -> int"""
1051 return _gdi
.RegionIterator_GetHeight(*args
, **kwargs
)
1053 def GetRect(*args
, **kwargs
):
1054 """GetRect() -> Rect"""
1055 return _gdi
.RegionIterator_GetRect(*args
, **kwargs
)
1057 def HaveRects(*args
, **kwargs
):
1058 """HaveRects() -> bool"""
1059 return _gdi
.RegionIterator_HaveRects(*args
, **kwargs
)
1061 def Reset(*args
, **kwargs
):
1063 return _gdi
.RegionIterator_Reset(*args
, **kwargs
)
1065 def Next(*args
, **kwargs
):
1067 return _gdi
.RegionIterator_Next(*args
, **kwargs
)
1069 def __nonzero__(*args
, **kwargs
):
1070 """__nonzero__() -> bool"""
1071 return _gdi
.RegionIterator___nonzero__(*args
, **kwargs
)
1074 class RegionIteratorPtr(RegionIterator
):
1075 def __init__(self
, this
):
1077 if not hasattr(self
,"thisown"): self
.thisown
= 0
1078 self
.__class
__ = RegionIterator
1079 _gdi
.RegionIterator_swigregister(RegionIteratorPtr
)
1081 #---------------------------------------------------------------------------
1083 FONTFAMILY_DEFAULT
= _gdi
.FONTFAMILY_DEFAULT
1084 FONTFAMILY_DECORATIVE
= _gdi
.FONTFAMILY_DECORATIVE
1085 FONTFAMILY_ROMAN
= _gdi
.FONTFAMILY_ROMAN
1086 FONTFAMILY_SCRIPT
= _gdi
.FONTFAMILY_SCRIPT
1087 FONTFAMILY_SWISS
= _gdi
.FONTFAMILY_SWISS
1088 FONTFAMILY_MODERN
= _gdi
.FONTFAMILY_MODERN
1089 FONTFAMILY_TELETYPE
= _gdi
.FONTFAMILY_TELETYPE
1090 FONTFAMILY_MAX
= _gdi
.FONTFAMILY_MAX
1091 FONTFAMILY_UNKNOWN
= _gdi
.FONTFAMILY_UNKNOWN
1092 FONTSTYLE_NORMAL
= _gdi
.FONTSTYLE_NORMAL
1093 FONTSTYLE_ITALIC
= _gdi
.FONTSTYLE_ITALIC
1094 FONTSTYLE_SLANT
= _gdi
.FONTSTYLE_SLANT
1095 FONTSTYLE_MAX
= _gdi
.FONTSTYLE_MAX
1096 FONTWEIGHT_NORMAL
= _gdi
.FONTWEIGHT_NORMAL
1097 FONTWEIGHT_LIGHT
= _gdi
.FONTWEIGHT_LIGHT
1098 FONTWEIGHT_BOLD
= _gdi
.FONTWEIGHT_BOLD
1099 FONTWEIGHT_MAX
= _gdi
.FONTWEIGHT_MAX
1100 FONTFLAG_DEFAULT
= _gdi
.FONTFLAG_DEFAULT
1101 FONTFLAG_ITALIC
= _gdi
.FONTFLAG_ITALIC
1102 FONTFLAG_SLANT
= _gdi
.FONTFLAG_SLANT
1103 FONTFLAG_LIGHT
= _gdi
.FONTFLAG_LIGHT
1104 FONTFLAG_BOLD
= _gdi
.FONTFLAG_BOLD
1105 FONTFLAG_ANTIALIASED
= _gdi
.FONTFLAG_ANTIALIASED
1106 FONTFLAG_NOT_ANTIALIASED
= _gdi
.FONTFLAG_NOT_ANTIALIASED
1107 FONTFLAG_UNDERLINED
= _gdi
.FONTFLAG_UNDERLINED
1108 FONTFLAG_STRIKETHROUGH
= _gdi
.FONTFLAG_STRIKETHROUGH
1109 FONTFLAG_MASK
= _gdi
.FONTFLAG_MASK
1110 FONTENCODING_SYSTEM
= _gdi
.FONTENCODING_SYSTEM
1111 FONTENCODING_DEFAULT
= _gdi
.FONTENCODING_DEFAULT
1112 FONTENCODING_ISO8859_1
= _gdi
.FONTENCODING_ISO8859_1
1113 FONTENCODING_ISO8859_2
= _gdi
.FONTENCODING_ISO8859_2
1114 FONTENCODING_ISO8859_3
= _gdi
.FONTENCODING_ISO8859_3
1115 FONTENCODING_ISO8859_4
= _gdi
.FONTENCODING_ISO8859_4
1116 FONTENCODING_ISO8859_5
= _gdi
.FONTENCODING_ISO8859_5
1117 FONTENCODING_ISO8859_6
= _gdi
.FONTENCODING_ISO8859_6
1118 FONTENCODING_ISO8859_7
= _gdi
.FONTENCODING_ISO8859_7
1119 FONTENCODING_ISO8859_8
= _gdi
.FONTENCODING_ISO8859_8
1120 FONTENCODING_ISO8859_9
= _gdi
.FONTENCODING_ISO8859_9
1121 FONTENCODING_ISO8859_10
= _gdi
.FONTENCODING_ISO8859_10
1122 FONTENCODING_ISO8859_11
= _gdi
.FONTENCODING_ISO8859_11
1123 FONTENCODING_ISO8859_12
= _gdi
.FONTENCODING_ISO8859_12
1124 FONTENCODING_ISO8859_13
= _gdi
.FONTENCODING_ISO8859_13
1125 FONTENCODING_ISO8859_14
= _gdi
.FONTENCODING_ISO8859_14
1126 FONTENCODING_ISO8859_15
= _gdi
.FONTENCODING_ISO8859_15
1127 FONTENCODING_ISO8859_MAX
= _gdi
.FONTENCODING_ISO8859_MAX
1128 FONTENCODING_KOI8
= _gdi
.FONTENCODING_KOI8
1129 FONTENCODING_ALTERNATIVE
= _gdi
.FONTENCODING_ALTERNATIVE
1130 FONTENCODING_BULGARIAN
= _gdi
.FONTENCODING_BULGARIAN
1131 FONTENCODING_CP437
= _gdi
.FONTENCODING_CP437
1132 FONTENCODING_CP850
= _gdi
.FONTENCODING_CP850
1133 FONTENCODING_CP852
= _gdi
.FONTENCODING_CP852
1134 FONTENCODING_CP855
= _gdi
.FONTENCODING_CP855
1135 FONTENCODING_CP866
= _gdi
.FONTENCODING_CP866
1136 FONTENCODING_CP874
= _gdi
.FONTENCODING_CP874
1137 FONTENCODING_CP932
= _gdi
.FONTENCODING_CP932
1138 FONTENCODING_CP936
= _gdi
.FONTENCODING_CP936
1139 FONTENCODING_CP949
= _gdi
.FONTENCODING_CP949
1140 FONTENCODING_CP950
= _gdi
.FONTENCODING_CP950
1141 FONTENCODING_CP1250
= _gdi
.FONTENCODING_CP1250
1142 FONTENCODING_CP1251
= _gdi
.FONTENCODING_CP1251
1143 FONTENCODING_CP1252
= _gdi
.FONTENCODING_CP1252
1144 FONTENCODING_CP1253
= _gdi
.FONTENCODING_CP1253
1145 FONTENCODING_CP1254
= _gdi
.FONTENCODING_CP1254
1146 FONTENCODING_CP1255
= _gdi
.FONTENCODING_CP1255
1147 FONTENCODING_CP1256
= _gdi
.FONTENCODING_CP1256
1148 FONTENCODING_CP1257
= _gdi
.FONTENCODING_CP1257
1149 FONTENCODING_CP12_MAX
= _gdi
.FONTENCODING_CP12_MAX
1150 FONTENCODING_UTF7
= _gdi
.FONTENCODING_UTF7
1151 FONTENCODING_UTF8
= _gdi
.FONTENCODING_UTF8
1152 FONTENCODING_EUC_JP
= _gdi
.FONTENCODING_EUC_JP
1153 FONTENCODING_UTF16BE
= _gdi
.FONTENCODING_UTF16BE
1154 FONTENCODING_UTF16LE
= _gdi
.FONTENCODING_UTF16LE
1155 FONTENCODING_UTF32BE
= _gdi
.FONTENCODING_UTF32BE
1156 FONTENCODING_UTF32LE
= _gdi
.FONTENCODING_UTF32LE
1157 FONTENCODING_MAX
= _gdi
.FONTENCODING_MAX
1158 FONTENCODING_UTF16
= _gdi
.FONTENCODING_UTF16
1159 FONTENCODING_UTF32
= _gdi
.FONTENCODING_UTF32
1160 FONTENCODING_UNICODE
= _gdi
.FONTENCODING_UNICODE
1161 FONTENCODING_GB2312
= _gdi
.FONTENCODING_GB2312
1162 FONTENCODING_BIG5
= _gdi
.FONTENCODING_BIG5
1163 FONTENCODING_SHIFT_JIS
= _gdi
.FONTENCODING_SHIFT_JIS
1164 #---------------------------------------------------------------------------
1166 class NativeFontInfo(object):
1168 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1169 def __init__(self
, *args
, **kwargs
):
1170 """__init__() -> NativeFontInfo"""
1171 newobj
= _gdi
.new_NativeFontInfo(*args
, **kwargs
)
1172 self
.this
= newobj
.this
1175 def __del__(self
, destroy
=_gdi
.delete_NativeFontInfo
):
1178 if self
.thisown
: destroy(self
)
1181 def Init(*args
, **kwargs
):
1183 return _gdi
.NativeFontInfo_Init(*args
, **kwargs
)
1185 def InitFromFont(*args
, **kwargs
):
1186 """InitFromFont(Font font)"""
1187 return _gdi
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1189 def GetPointSize(*args
, **kwargs
):
1190 """GetPointSize() -> int"""
1191 return _gdi
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1193 def GetStyle(*args
, **kwargs
):
1194 """GetStyle() -> wxFontStyle"""
1195 return _gdi
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1197 def GetWeight(*args
, **kwargs
):
1198 """GetWeight() -> wxFontWeight"""
1199 return _gdi
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1201 def GetUnderlined(*args
, **kwargs
):
1202 """GetUnderlined() -> bool"""
1203 return _gdi
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1205 def GetFaceName(*args
, **kwargs
):
1206 """GetFaceName() -> wxString"""
1207 return _gdi
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1209 def GetFamily(*args
, **kwargs
):
1210 """GetFamily() -> wxFontFamily"""
1211 return _gdi
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1213 def GetEncoding(*args
, **kwargs
):
1214 """GetEncoding() -> wxFontEncoding"""
1215 return _gdi
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1217 def SetPointSize(*args
, **kwargs
):
1218 """SetPointSize(int pointsize)"""
1219 return _gdi
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1221 def SetStyle(*args
, **kwargs
):
1222 """SetStyle(wxFontStyle style)"""
1223 return _gdi
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1225 def SetWeight(*args
, **kwargs
):
1226 """SetWeight(wxFontWeight weight)"""
1227 return _gdi
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1229 def SetUnderlined(*args
, **kwargs
):
1230 """SetUnderlined(bool underlined)"""
1231 return _gdi
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1233 def SetFaceName(*args
, **kwargs
):
1234 """SetFaceName(wxString facename)"""
1235 return _gdi
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1237 def SetFamily(*args
, **kwargs
):
1238 """SetFamily(wxFontFamily family)"""
1239 return _gdi
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1241 def SetEncoding(*args
, **kwargs
):
1242 """SetEncoding(wxFontEncoding encoding)"""
1243 return _gdi
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1245 def FromString(*args
, **kwargs
):
1246 """FromString(wxString s) -> bool"""
1247 return _gdi
.NativeFontInfo_FromString(*args
, **kwargs
)
1249 def ToString(*args
, **kwargs
):
1250 """ToString() -> wxString"""
1251 return _gdi
.NativeFontInfo_ToString(*args
, **kwargs
)
1253 def __str__(*args
, **kwargs
):
1254 """__str__() -> wxString"""
1255 return _gdi
.NativeFontInfo___str__(*args
, **kwargs
)
1257 def FromUserString(*args
, **kwargs
):
1258 """FromUserString(wxString s) -> bool"""
1259 return _gdi
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1261 def ToUserString(*args
, **kwargs
):
1262 """ToUserString() -> wxString"""
1263 return _gdi
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1266 class NativeFontInfoPtr(NativeFontInfo
):
1267 def __init__(self
, this
):
1269 if not hasattr(self
,"thisown"): self
.thisown
= 0
1270 self
.__class
__ = NativeFontInfo
1271 _gdi
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1273 class NativeEncodingInfo(object):
1275 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1276 facename
= property(_gdi
.NativeEncodingInfo_facename_get
, _gdi
.NativeEncodingInfo_facename_set
)
1277 encoding
= property(_gdi
.NativeEncodingInfo_encoding_get
, _gdi
.NativeEncodingInfo_encoding_set
)
1278 def __init__(self
, *args
, **kwargs
):
1279 """__init__() -> NativeEncodingInfo"""
1280 newobj
= _gdi
.new_NativeEncodingInfo(*args
, **kwargs
)
1281 self
.this
= newobj
.this
1284 def __del__(self
, destroy
=_gdi
.delete_NativeEncodingInfo
):
1287 if self
.thisown
: destroy(self
)
1290 def FromString(*args
, **kwargs
):
1291 """FromString(wxString s) -> bool"""
1292 return _gdi
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1294 def ToString(*args
, **kwargs
):
1295 """ToString() -> wxString"""
1296 return _gdi
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1299 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1300 def __init__(self
, this
):
1302 if not hasattr(self
,"thisown"): self
.thisown
= 0
1303 self
.__class
__ = NativeEncodingInfo
1304 _gdi
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1307 def GetNativeFontEncoding(*args
, **kwargs
):
1308 """GetNativeFontEncoding(wxFontEncoding encoding) -> NativeEncodingInfo"""
1309 return _gdi
.GetNativeFontEncoding(*args
, **kwargs
)
1311 def TestFontEncoding(*args
, **kwargs
):
1312 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1313 return _gdi
.TestFontEncoding(*args
, **kwargs
)
1314 #---------------------------------------------------------------------------
1316 class FontMapper(object):
1318 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1319 def __init__(self
, *args
, **kwargs
):
1320 """__init__() -> FontMapper"""
1321 newobj
= _gdi
.new_FontMapper(*args
, **kwargs
)
1322 self
.this
= newobj
.this
1325 def __del__(self
, destroy
=_gdi
.delete_FontMapper
):
1328 if self
.thisown
: destroy(self
)
1331 def Get(*args
, **kwargs
):
1332 """FontMapper.Get() -> FontMapper"""
1333 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1335 Get
= staticmethod(Get
)
1336 def Set(*args
, **kwargs
):
1337 """FontMapper.Set(FontMapper mapper) -> FontMapper"""
1338 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1340 Set
= staticmethod(Set
)
1341 def CharsetToEncoding(*args
, **kwargs
):
1342 """CharsetToEncoding(wxString charset, bool interactive=True) -> wxFontEncoding"""
1343 return _gdi
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1345 def GetSupportedEncodingsCount(*args
, **kwargs
):
1346 """FontMapper.GetSupportedEncodingsCount() -> size_t"""
1347 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1349 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1350 def GetEncoding(*args
, **kwargs
):
1351 """FontMapper.GetEncoding(size_t n) -> wxFontEncoding"""
1352 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1354 GetEncoding
= staticmethod(GetEncoding
)
1355 def GetEncodingName(*args
, **kwargs
):
1356 """FontMapper.GetEncodingName(wxFontEncoding encoding) -> wxString"""
1357 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1359 GetEncodingName
= staticmethod(GetEncodingName
)
1360 def GetEncodingDescription(*args
, **kwargs
):
1361 """FontMapper.GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1362 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1364 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1365 def SetConfig(*args
, **kwargs
):
1366 """SetConfig(wxConfigBase config)"""
1367 return _gdi
.FontMapper_SetConfig(*args
, **kwargs
)
1369 def SetConfigPath(*args
, **kwargs
):
1370 """SetConfigPath(wxString prefix)"""
1371 return _gdi
.FontMapper_SetConfigPath(*args
, **kwargs
)
1373 def GetDefaultConfigPath(*args
, **kwargs
):
1374 """FontMapper.GetDefaultConfigPath() -> wxString"""
1375 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1377 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1378 def GetAltForEncoding(*args
, **kwargs
):
1380 GetAltForEncoding(wxFontEncoding encoding, wxString facename=wxPyEmptyString,
1381 bool interactive=True) -> PyObject
1383 return _gdi
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1385 def IsEncodingAvailable(*args
, **kwargs
):
1386 """IsEncodingAvailable(wxFontEncoding encoding, wxString facename=wxPyEmptyString) -> bool"""
1387 return _gdi
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1389 def SetDialogParent(*args
, **kwargs
):
1390 """SetDialogParent(Window parent)"""
1391 return _gdi
.FontMapper_SetDialogParent(*args
, **kwargs
)
1393 def SetDialogTitle(*args
, **kwargs
):
1394 """SetDialogTitle(wxString title)"""
1395 return _gdi
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1398 class FontMapperPtr(FontMapper
):
1399 def __init__(self
, this
):
1401 if not hasattr(self
,"thisown"): self
.thisown
= 0
1402 self
.__class
__ = FontMapper
1403 _gdi
.FontMapper_swigregister(FontMapperPtr
)
1405 def FontMapper_Get(*args
, **kwargs
):
1406 """FontMapper_Get() -> FontMapper"""
1407 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1409 def FontMapper_Set(*args
, **kwargs
):
1410 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1411 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1413 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1414 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1415 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1417 def FontMapper_GetEncoding(*args
, **kwargs
):
1418 """FontMapper_GetEncoding(size_t n) -> wxFontEncoding"""
1419 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1421 def FontMapper_GetEncodingName(*args
, **kwargs
):
1422 """FontMapper_GetEncodingName(wxFontEncoding encoding) -> wxString"""
1423 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1425 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1426 """FontMapper_GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1427 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1429 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1430 """FontMapper_GetDefaultConfigPath() -> wxString"""
1431 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1433 #---------------------------------------------------------------------------
1435 class Font(GDIObject
):
1437 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1438 def __init__(self
, *args
, **kwargs
):
1440 __init__(int pointSize, int family, int style, int weight, bool underline=False,
1441 wxString face=wxPyEmptyString,
1442 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font
1444 newobj
= _gdi
.new_Font(*args
, **kwargs
)
1445 self
.this
= newobj
.this
1448 def __del__(self
, destroy
=_gdi
.delete_Font
):
1451 if self
.thisown
: destroy(self
)
1454 def Ok(*args
, **kwargs
):
1456 return _gdi
.Font_Ok(*args
, **kwargs
)
1458 def __nonzero__(self
): return self
.Ok()
1459 def __eq__(*args
, **kwargs
):
1460 """__eq__(Font font) -> bool"""
1461 return _gdi
.Font___eq__(*args
, **kwargs
)
1463 def __ne__(*args
, **kwargs
):
1464 """__ne__(Font font) -> bool"""
1465 return _gdi
.Font___ne__(*args
, **kwargs
)
1467 def GetPointSize(*args
, **kwargs
):
1468 """GetPointSize() -> int"""
1469 return _gdi
.Font_GetPointSize(*args
, **kwargs
)
1471 def GetFamily(*args
, **kwargs
):
1472 """GetFamily() -> int"""
1473 return _gdi
.Font_GetFamily(*args
, **kwargs
)
1475 def GetStyle(*args
, **kwargs
):
1476 """GetStyle() -> int"""
1477 return _gdi
.Font_GetStyle(*args
, **kwargs
)
1479 def GetWeight(*args
, **kwargs
):
1480 """GetWeight() -> int"""
1481 return _gdi
.Font_GetWeight(*args
, **kwargs
)
1483 def GetUnderlined(*args
, **kwargs
):
1484 """GetUnderlined() -> bool"""
1485 return _gdi
.Font_GetUnderlined(*args
, **kwargs
)
1487 def GetFaceName(*args
, **kwargs
):
1488 """GetFaceName() -> wxString"""
1489 return _gdi
.Font_GetFaceName(*args
, **kwargs
)
1491 def GetEncoding(*args
, **kwargs
):
1492 """GetEncoding() -> wxFontEncoding"""
1493 return _gdi
.Font_GetEncoding(*args
, **kwargs
)
1495 def GetNativeFontInfo(*args
, **kwargs
):
1496 """GetNativeFontInfo() -> NativeFontInfo"""
1497 return _gdi
.Font_GetNativeFontInfo(*args
, **kwargs
)
1499 def IsFixedWidth(*args
, **kwargs
):
1500 """IsFixedWidth() -> bool"""
1501 return _gdi
.Font_IsFixedWidth(*args
, **kwargs
)
1503 def GetNativeFontInfoDesc(*args
, **kwargs
):
1504 """GetNativeFontInfoDesc() -> wxString"""
1505 return _gdi
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1507 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1508 """GetNativeFontInfoUserDesc() -> wxString"""
1509 return _gdi
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1511 def SetPointSize(*args
, **kwargs
):
1512 """SetPointSize(int pointSize)"""
1513 return _gdi
.Font_SetPointSize(*args
, **kwargs
)
1515 def SetFamily(*args
, **kwargs
):
1516 """SetFamily(int family)"""
1517 return _gdi
.Font_SetFamily(*args
, **kwargs
)
1519 def SetStyle(*args
, **kwargs
):
1520 """SetStyle(int style)"""
1521 return _gdi
.Font_SetStyle(*args
, **kwargs
)
1523 def SetWeight(*args
, **kwargs
):
1524 """SetWeight(int weight)"""
1525 return _gdi
.Font_SetWeight(*args
, **kwargs
)
1527 def SetFaceName(*args
, **kwargs
):
1528 """SetFaceName(wxString faceName)"""
1529 return _gdi
.Font_SetFaceName(*args
, **kwargs
)
1531 def SetUnderlined(*args
, **kwargs
):
1532 """SetUnderlined(bool underlined)"""
1533 return _gdi
.Font_SetUnderlined(*args
, **kwargs
)
1535 def SetEncoding(*args
, **kwargs
):
1536 """SetEncoding(wxFontEncoding encoding)"""
1537 return _gdi
.Font_SetEncoding(*args
, **kwargs
)
1539 def SetNativeFontInfo(*args
, **kwargs
):
1540 """SetNativeFontInfo(NativeFontInfo info)"""
1541 return _gdi
.Font_SetNativeFontInfo(*args
, **kwargs
)
1543 def SetNativeFontInfoFromString(*args
, **kwargs
):
1544 """SetNativeFontInfoFromString(wxString info)"""
1545 return _gdi
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1547 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1548 """SetNativeFontInfoUserDesc(wxString info)"""
1549 return _gdi
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1551 def GetFamilyString(*args
, **kwargs
):
1552 """GetFamilyString() -> wxString"""
1553 return _gdi
.Font_GetFamilyString(*args
, **kwargs
)
1555 def GetStyleString(*args
, **kwargs
):
1556 """GetStyleString() -> wxString"""
1557 return _gdi
.Font_GetStyleString(*args
, **kwargs
)
1559 def GetWeightString(*args
, **kwargs
):
1560 """GetWeightString() -> wxString"""
1561 return _gdi
.Font_GetWeightString(*args
, **kwargs
)
1563 def SetNoAntiAliasing(*args
, **kwargs
):
1564 """SetNoAntiAliasing(bool no=True)"""
1565 return _gdi
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1567 def GetNoAntiAliasing(*args
, **kwargs
):
1568 """GetNoAntiAliasing() -> bool"""
1569 return _gdi
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1571 def GetDefaultEncoding(*args
, **kwargs
):
1572 """Font.GetDefaultEncoding() -> wxFontEncoding"""
1573 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1575 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1576 def SetDefaultEncoding(*args
, **kwargs
):
1577 """Font.SetDefaultEncoding(wxFontEncoding encoding)"""
1578 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1580 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1582 class FontPtr(Font
):
1583 def __init__(self
, this
):
1585 if not hasattr(self
,"thisown"): self
.thisown
= 0
1586 self
.__class
__ = Font
1587 _gdi
.Font_swigregister(FontPtr
)
1589 def FontFromNativeInfo(*args
, **kwargs
):
1590 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1591 val
= _gdi
.new_FontFromNativeInfo(*args
, **kwargs
)
1595 def FontFromNativeInfoString(*args
, **kwargs
):
1596 """FontFromNativeInfoString(wxString info) -> Font"""
1597 val
= _gdi
.new_FontFromNativeInfoString(*args
, **kwargs
)
1601 def Font2(*args
, **kwargs
):
1603 Font2(int pointSize, wxFontFamily family, int flags=FONTFLAG_DEFAULT,
1604 wxString face=wxPyEmptyString, wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font
1606 val
= _gdi
.new_Font2(*args
, **kwargs
)
1610 def Font_GetDefaultEncoding(*args
, **kwargs
):
1611 """Font_GetDefaultEncoding() -> wxFontEncoding"""
1612 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1614 def Font_SetDefaultEncoding(*args
, **kwargs
):
1615 """Font_SetDefaultEncoding(wxFontEncoding encoding)"""
1616 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1618 #---------------------------------------------------------------------------
1620 class FontEnumerator(object):
1622 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1623 def __init__(self
, *args
, **kwargs
):
1624 """__init__() -> FontEnumerator"""
1625 newobj
= _gdi
.new_FontEnumerator(*args
, **kwargs
)
1626 self
.this
= newobj
.this
1629 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1631 def __del__(self
, destroy
=_gdi
.delete_FontEnumerator
):
1634 if self
.thisown
: destroy(self
)
1637 def _setCallbackInfo(*args
, **kwargs
):
1638 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1639 return _gdi
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1641 def EnumerateFacenames(*args
, **kwargs
):
1642 """EnumerateFacenames(wxFontEncoding encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1643 return _gdi
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1645 def EnumerateEncodings(*args
, **kwargs
):
1646 """EnumerateEncodings(wxString facename=wxPyEmptyString) -> bool"""
1647 return _gdi
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1649 def GetEncodings(*args
, **kwargs
):
1650 """GetEncodings() -> PyObject"""
1651 return _gdi
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1653 def GetFacenames(*args
, **kwargs
):
1654 """GetFacenames() -> PyObject"""
1655 return _gdi
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1658 class FontEnumeratorPtr(FontEnumerator
):
1659 def __init__(self
, this
):
1661 if not hasattr(self
,"thisown"): self
.thisown
= 0
1662 self
.__class
__ = FontEnumerator
1663 _gdi
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1665 #---------------------------------------------------------------------------
1667 LANGUAGE_DEFAULT
= _gdi
.LANGUAGE_DEFAULT
1668 LANGUAGE_UNKNOWN
= _gdi
.LANGUAGE_UNKNOWN
1669 LANGUAGE_ABKHAZIAN
= _gdi
.LANGUAGE_ABKHAZIAN
1670 LANGUAGE_AFAR
= _gdi
.LANGUAGE_AFAR
1671 LANGUAGE_AFRIKAANS
= _gdi
.LANGUAGE_AFRIKAANS
1672 LANGUAGE_ALBANIAN
= _gdi
.LANGUAGE_ALBANIAN
1673 LANGUAGE_AMHARIC
= _gdi
.LANGUAGE_AMHARIC
1674 LANGUAGE_ARABIC
= _gdi
.LANGUAGE_ARABIC
1675 LANGUAGE_ARABIC_ALGERIA
= _gdi
.LANGUAGE_ARABIC_ALGERIA
1676 LANGUAGE_ARABIC_BAHRAIN
= _gdi
.LANGUAGE_ARABIC_BAHRAIN
1677 LANGUAGE_ARABIC_EGYPT
= _gdi
.LANGUAGE_ARABIC_EGYPT
1678 LANGUAGE_ARABIC_IRAQ
= _gdi
.LANGUAGE_ARABIC_IRAQ
1679 LANGUAGE_ARABIC_JORDAN
= _gdi
.LANGUAGE_ARABIC_JORDAN
1680 LANGUAGE_ARABIC_KUWAIT
= _gdi
.LANGUAGE_ARABIC_KUWAIT
1681 LANGUAGE_ARABIC_LEBANON
= _gdi
.LANGUAGE_ARABIC_LEBANON
1682 LANGUAGE_ARABIC_LIBYA
= _gdi
.LANGUAGE_ARABIC_LIBYA
1683 LANGUAGE_ARABIC_MOROCCO
= _gdi
.LANGUAGE_ARABIC_MOROCCO
1684 LANGUAGE_ARABIC_OMAN
= _gdi
.LANGUAGE_ARABIC_OMAN
1685 LANGUAGE_ARABIC_QATAR
= _gdi
.LANGUAGE_ARABIC_QATAR
1686 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi
.LANGUAGE_ARABIC_SAUDI_ARABIA
1687 LANGUAGE_ARABIC_SUDAN
= _gdi
.LANGUAGE_ARABIC_SUDAN
1688 LANGUAGE_ARABIC_SYRIA
= _gdi
.LANGUAGE_ARABIC_SYRIA
1689 LANGUAGE_ARABIC_TUNISIA
= _gdi
.LANGUAGE_ARABIC_TUNISIA
1690 LANGUAGE_ARABIC_UAE
= _gdi
.LANGUAGE_ARABIC_UAE
1691 LANGUAGE_ARABIC_YEMEN
= _gdi
.LANGUAGE_ARABIC_YEMEN
1692 LANGUAGE_ARMENIAN
= _gdi
.LANGUAGE_ARMENIAN
1693 LANGUAGE_ASSAMESE
= _gdi
.LANGUAGE_ASSAMESE
1694 LANGUAGE_AYMARA
= _gdi
.LANGUAGE_AYMARA
1695 LANGUAGE_AZERI
= _gdi
.LANGUAGE_AZERI
1696 LANGUAGE_AZERI_CYRILLIC
= _gdi
.LANGUAGE_AZERI_CYRILLIC
1697 LANGUAGE_AZERI_LATIN
= _gdi
.LANGUAGE_AZERI_LATIN
1698 LANGUAGE_BASHKIR
= _gdi
.LANGUAGE_BASHKIR
1699 LANGUAGE_BASQUE
= _gdi
.LANGUAGE_BASQUE
1700 LANGUAGE_BELARUSIAN
= _gdi
.LANGUAGE_BELARUSIAN
1701 LANGUAGE_BENGALI
= _gdi
.LANGUAGE_BENGALI
1702 LANGUAGE_BHUTANI
= _gdi
.LANGUAGE_BHUTANI
1703 LANGUAGE_BIHARI
= _gdi
.LANGUAGE_BIHARI
1704 LANGUAGE_BISLAMA
= _gdi
.LANGUAGE_BISLAMA
1705 LANGUAGE_BRETON
= _gdi
.LANGUAGE_BRETON
1706 LANGUAGE_BULGARIAN
= _gdi
.LANGUAGE_BULGARIAN
1707 LANGUAGE_BURMESE
= _gdi
.LANGUAGE_BURMESE
1708 LANGUAGE_CAMBODIAN
= _gdi
.LANGUAGE_CAMBODIAN
1709 LANGUAGE_CATALAN
= _gdi
.LANGUAGE_CATALAN
1710 LANGUAGE_CHINESE
= _gdi
.LANGUAGE_CHINESE
1711 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi
.LANGUAGE_CHINESE_SIMPLIFIED
1712 LANGUAGE_CHINESE_TRADITIONAL
= _gdi
.LANGUAGE_CHINESE_TRADITIONAL
1713 LANGUAGE_CHINESE_HONGKONG
= _gdi
.LANGUAGE_CHINESE_HONGKONG
1714 LANGUAGE_CHINESE_MACAU
= _gdi
.LANGUAGE_CHINESE_MACAU
1715 LANGUAGE_CHINESE_SINGAPORE
= _gdi
.LANGUAGE_CHINESE_SINGAPORE
1716 LANGUAGE_CHINESE_TAIWAN
= _gdi
.LANGUAGE_CHINESE_TAIWAN
1717 LANGUAGE_CORSICAN
= _gdi
.LANGUAGE_CORSICAN
1718 LANGUAGE_CROATIAN
= _gdi
.LANGUAGE_CROATIAN
1719 LANGUAGE_CZECH
= _gdi
.LANGUAGE_CZECH
1720 LANGUAGE_DANISH
= _gdi
.LANGUAGE_DANISH
1721 LANGUAGE_DUTCH
= _gdi
.LANGUAGE_DUTCH
1722 LANGUAGE_DUTCH_BELGIAN
= _gdi
.LANGUAGE_DUTCH_BELGIAN
1723 LANGUAGE_ENGLISH
= _gdi
.LANGUAGE_ENGLISH
1724 LANGUAGE_ENGLISH_UK
= _gdi
.LANGUAGE_ENGLISH_UK
1725 LANGUAGE_ENGLISH_US
= _gdi
.LANGUAGE_ENGLISH_US
1726 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi
.LANGUAGE_ENGLISH_AUSTRALIA
1727 LANGUAGE_ENGLISH_BELIZE
= _gdi
.LANGUAGE_ENGLISH_BELIZE
1728 LANGUAGE_ENGLISH_BOTSWANA
= _gdi
.LANGUAGE_ENGLISH_BOTSWANA
1729 LANGUAGE_ENGLISH_CANADA
= _gdi
.LANGUAGE_ENGLISH_CANADA
1730 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi
.LANGUAGE_ENGLISH_CARIBBEAN
1731 LANGUAGE_ENGLISH_DENMARK
= _gdi
.LANGUAGE_ENGLISH_DENMARK
1732 LANGUAGE_ENGLISH_EIRE
= _gdi
.LANGUAGE_ENGLISH_EIRE
1733 LANGUAGE_ENGLISH_JAMAICA
= _gdi
.LANGUAGE_ENGLISH_JAMAICA
1734 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi
.LANGUAGE_ENGLISH_NEW_ZEALAND
1735 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi
.LANGUAGE_ENGLISH_PHILIPPINES
1736 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1737 LANGUAGE_ENGLISH_TRINIDAD
= _gdi
.LANGUAGE_ENGLISH_TRINIDAD
1738 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi
.LANGUAGE_ENGLISH_ZIMBABWE
1739 LANGUAGE_ESPERANTO
= _gdi
.LANGUAGE_ESPERANTO
1740 LANGUAGE_ESTONIAN
= _gdi
.LANGUAGE_ESTONIAN
1741 LANGUAGE_FAEROESE
= _gdi
.LANGUAGE_FAEROESE
1742 LANGUAGE_FARSI
= _gdi
.LANGUAGE_FARSI
1743 LANGUAGE_FIJI
= _gdi
.LANGUAGE_FIJI
1744 LANGUAGE_FINNISH
= _gdi
.LANGUAGE_FINNISH
1745 LANGUAGE_FRENCH
= _gdi
.LANGUAGE_FRENCH
1746 LANGUAGE_FRENCH_BELGIAN
= _gdi
.LANGUAGE_FRENCH_BELGIAN
1747 LANGUAGE_FRENCH_CANADIAN
= _gdi
.LANGUAGE_FRENCH_CANADIAN
1748 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi
.LANGUAGE_FRENCH_LUXEMBOURG
1749 LANGUAGE_FRENCH_MONACO
= _gdi
.LANGUAGE_FRENCH_MONACO
1750 LANGUAGE_FRENCH_SWISS
= _gdi
.LANGUAGE_FRENCH_SWISS
1751 LANGUAGE_FRISIAN
= _gdi
.LANGUAGE_FRISIAN
1752 LANGUAGE_GALICIAN
= _gdi
.LANGUAGE_GALICIAN
1753 LANGUAGE_GEORGIAN
= _gdi
.LANGUAGE_GEORGIAN
1754 LANGUAGE_GERMAN
= _gdi
.LANGUAGE_GERMAN
1755 LANGUAGE_GERMAN_AUSTRIAN
= _gdi
.LANGUAGE_GERMAN_AUSTRIAN
1756 LANGUAGE_GERMAN_BELGIUM
= _gdi
.LANGUAGE_GERMAN_BELGIUM
1757 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi
.LANGUAGE_GERMAN_LIECHTENSTEIN
1758 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi
.LANGUAGE_GERMAN_LUXEMBOURG
1759 LANGUAGE_GERMAN_SWISS
= _gdi
.LANGUAGE_GERMAN_SWISS
1760 LANGUAGE_GREEK
= _gdi
.LANGUAGE_GREEK
1761 LANGUAGE_GREENLANDIC
= _gdi
.LANGUAGE_GREENLANDIC
1762 LANGUAGE_GUARANI
= _gdi
.LANGUAGE_GUARANI
1763 LANGUAGE_GUJARATI
= _gdi
.LANGUAGE_GUJARATI
1764 LANGUAGE_HAUSA
= _gdi
.LANGUAGE_HAUSA
1765 LANGUAGE_HEBREW
= _gdi
.LANGUAGE_HEBREW
1766 LANGUAGE_HINDI
= _gdi
.LANGUAGE_HINDI
1767 LANGUAGE_HUNGARIAN
= _gdi
.LANGUAGE_HUNGARIAN
1768 LANGUAGE_ICELANDIC
= _gdi
.LANGUAGE_ICELANDIC
1769 LANGUAGE_INDONESIAN
= _gdi
.LANGUAGE_INDONESIAN
1770 LANGUAGE_INTERLINGUA
= _gdi
.LANGUAGE_INTERLINGUA
1771 LANGUAGE_INTERLINGUE
= _gdi
.LANGUAGE_INTERLINGUE
1772 LANGUAGE_INUKTITUT
= _gdi
.LANGUAGE_INUKTITUT
1773 LANGUAGE_INUPIAK
= _gdi
.LANGUAGE_INUPIAK
1774 LANGUAGE_IRISH
= _gdi
.LANGUAGE_IRISH
1775 LANGUAGE_ITALIAN
= _gdi
.LANGUAGE_ITALIAN
1776 LANGUAGE_ITALIAN_SWISS
= _gdi
.LANGUAGE_ITALIAN_SWISS
1777 LANGUAGE_JAPANESE
= _gdi
.LANGUAGE_JAPANESE
1778 LANGUAGE_JAVANESE
= _gdi
.LANGUAGE_JAVANESE
1779 LANGUAGE_KANNADA
= _gdi
.LANGUAGE_KANNADA
1780 LANGUAGE_KASHMIRI
= _gdi
.LANGUAGE_KASHMIRI
1781 LANGUAGE_KASHMIRI_INDIA
= _gdi
.LANGUAGE_KASHMIRI_INDIA
1782 LANGUAGE_KAZAKH
= _gdi
.LANGUAGE_KAZAKH
1783 LANGUAGE_KERNEWEK
= _gdi
.LANGUAGE_KERNEWEK
1784 LANGUAGE_KINYARWANDA
= _gdi
.LANGUAGE_KINYARWANDA
1785 LANGUAGE_KIRGHIZ
= _gdi
.LANGUAGE_KIRGHIZ
1786 LANGUAGE_KIRUNDI
= _gdi
.LANGUAGE_KIRUNDI
1787 LANGUAGE_KONKANI
= _gdi
.LANGUAGE_KONKANI
1788 LANGUAGE_KOREAN
= _gdi
.LANGUAGE_KOREAN
1789 LANGUAGE_KURDISH
= _gdi
.LANGUAGE_KURDISH
1790 LANGUAGE_LAOTHIAN
= _gdi
.LANGUAGE_LAOTHIAN
1791 LANGUAGE_LATIN
= _gdi
.LANGUAGE_LATIN
1792 LANGUAGE_LATVIAN
= _gdi
.LANGUAGE_LATVIAN
1793 LANGUAGE_LINGALA
= _gdi
.LANGUAGE_LINGALA
1794 LANGUAGE_LITHUANIAN
= _gdi
.LANGUAGE_LITHUANIAN
1795 LANGUAGE_MACEDONIAN
= _gdi
.LANGUAGE_MACEDONIAN
1796 LANGUAGE_MALAGASY
= _gdi
.LANGUAGE_MALAGASY
1797 LANGUAGE_MALAY
= _gdi
.LANGUAGE_MALAY
1798 LANGUAGE_MALAYALAM
= _gdi
.LANGUAGE_MALAYALAM
1799 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1800 LANGUAGE_MALAY_MALAYSIA
= _gdi
.LANGUAGE_MALAY_MALAYSIA
1801 LANGUAGE_MALTESE
= _gdi
.LANGUAGE_MALTESE
1802 LANGUAGE_MANIPURI
= _gdi
.LANGUAGE_MANIPURI
1803 LANGUAGE_MAORI
= _gdi
.LANGUAGE_MAORI
1804 LANGUAGE_MARATHI
= _gdi
.LANGUAGE_MARATHI
1805 LANGUAGE_MOLDAVIAN
= _gdi
.LANGUAGE_MOLDAVIAN
1806 LANGUAGE_MONGOLIAN
= _gdi
.LANGUAGE_MONGOLIAN
1807 LANGUAGE_NAURU
= _gdi
.LANGUAGE_NAURU
1808 LANGUAGE_NEPALI
= _gdi
.LANGUAGE_NEPALI
1809 LANGUAGE_NEPALI_INDIA
= _gdi
.LANGUAGE_NEPALI_INDIA
1810 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi
.LANGUAGE_NORWEGIAN_BOKMAL
1811 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi
.LANGUAGE_NORWEGIAN_NYNORSK
1812 LANGUAGE_OCCITAN
= _gdi
.LANGUAGE_OCCITAN
1813 LANGUAGE_ORIYA
= _gdi
.LANGUAGE_ORIYA
1814 LANGUAGE_OROMO
= _gdi
.LANGUAGE_OROMO
1815 LANGUAGE_PASHTO
= _gdi
.LANGUAGE_PASHTO
1816 LANGUAGE_POLISH
= _gdi
.LANGUAGE_POLISH
1817 LANGUAGE_PORTUGUESE
= _gdi
.LANGUAGE_PORTUGUESE
1818 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi
.LANGUAGE_PORTUGUESE_BRAZILIAN
1819 LANGUAGE_PUNJABI
= _gdi
.LANGUAGE_PUNJABI
1820 LANGUAGE_QUECHUA
= _gdi
.LANGUAGE_QUECHUA
1821 LANGUAGE_RHAETO_ROMANCE
= _gdi
.LANGUAGE_RHAETO_ROMANCE
1822 LANGUAGE_ROMANIAN
= _gdi
.LANGUAGE_ROMANIAN
1823 LANGUAGE_RUSSIAN
= _gdi
.LANGUAGE_RUSSIAN
1824 LANGUAGE_RUSSIAN_UKRAINE
= _gdi
.LANGUAGE_RUSSIAN_UKRAINE
1825 LANGUAGE_SAMOAN
= _gdi
.LANGUAGE_SAMOAN
1826 LANGUAGE_SANGHO
= _gdi
.LANGUAGE_SANGHO
1827 LANGUAGE_SANSKRIT
= _gdi
.LANGUAGE_SANSKRIT
1828 LANGUAGE_SCOTS_GAELIC
= _gdi
.LANGUAGE_SCOTS_GAELIC
1829 LANGUAGE_SERBIAN
= _gdi
.LANGUAGE_SERBIAN
1830 LANGUAGE_SERBIAN_CYRILLIC
= _gdi
.LANGUAGE_SERBIAN_CYRILLIC
1831 LANGUAGE_SERBIAN_LATIN
= _gdi
.LANGUAGE_SERBIAN_LATIN
1832 LANGUAGE_SERBO_CROATIAN
= _gdi
.LANGUAGE_SERBO_CROATIAN
1833 LANGUAGE_SESOTHO
= _gdi
.LANGUAGE_SESOTHO
1834 LANGUAGE_SETSWANA
= _gdi
.LANGUAGE_SETSWANA
1835 LANGUAGE_SHONA
= _gdi
.LANGUAGE_SHONA
1836 LANGUAGE_SINDHI
= _gdi
.LANGUAGE_SINDHI
1837 LANGUAGE_SINHALESE
= _gdi
.LANGUAGE_SINHALESE
1838 LANGUAGE_SISWATI
= _gdi
.LANGUAGE_SISWATI
1839 LANGUAGE_SLOVAK
= _gdi
.LANGUAGE_SLOVAK
1840 LANGUAGE_SLOVENIAN
= _gdi
.LANGUAGE_SLOVENIAN
1841 LANGUAGE_SOMALI
= _gdi
.LANGUAGE_SOMALI
1842 LANGUAGE_SPANISH
= _gdi
.LANGUAGE_SPANISH
1843 LANGUAGE_SPANISH_ARGENTINA
= _gdi
.LANGUAGE_SPANISH_ARGENTINA
1844 LANGUAGE_SPANISH_BOLIVIA
= _gdi
.LANGUAGE_SPANISH_BOLIVIA
1845 LANGUAGE_SPANISH_CHILE
= _gdi
.LANGUAGE_SPANISH_CHILE
1846 LANGUAGE_SPANISH_COLOMBIA
= _gdi
.LANGUAGE_SPANISH_COLOMBIA
1847 LANGUAGE_SPANISH_COSTA_RICA
= _gdi
.LANGUAGE_SPANISH_COSTA_RICA
1848 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
1849 LANGUAGE_SPANISH_ECUADOR
= _gdi
.LANGUAGE_SPANISH_ECUADOR
1850 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi
.LANGUAGE_SPANISH_EL_SALVADOR
1851 LANGUAGE_SPANISH_GUATEMALA
= _gdi
.LANGUAGE_SPANISH_GUATEMALA
1852 LANGUAGE_SPANISH_HONDURAS
= _gdi
.LANGUAGE_SPANISH_HONDURAS
1853 LANGUAGE_SPANISH_MEXICAN
= _gdi
.LANGUAGE_SPANISH_MEXICAN
1854 LANGUAGE_SPANISH_MODERN
= _gdi
.LANGUAGE_SPANISH_MODERN
1855 LANGUAGE_SPANISH_NICARAGUA
= _gdi
.LANGUAGE_SPANISH_NICARAGUA
1856 LANGUAGE_SPANISH_PANAMA
= _gdi
.LANGUAGE_SPANISH_PANAMA
1857 LANGUAGE_SPANISH_PARAGUAY
= _gdi
.LANGUAGE_SPANISH_PARAGUAY
1858 LANGUAGE_SPANISH_PERU
= _gdi
.LANGUAGE_SPANISH_PERU
1859 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi
.LANGUAGE_SPANISH_PUERTO_RICO
1860 LANGUAGE_SPANISH_URUGUAY
= _gdi
.LANGUAGE_SPANISH_URUGUAY
1861 LANGUAGE_SPANISH_US
= _gdi
.LANGUAGE_SPANISH_US
1862 LANGUAGE_SPANISH_VENEZUELA
= _gdi
.LANGUAGE_SPANISH_VENEZUELA
1863 LANGUAGE_SUNDANESE
= _gdi
.LANGUAGE_SUNDANESE
1864 LANGUAGE_SWAHILI
= _gdi
.LANGUAGE_SWAHILI
1865 LANGUAGE_SWEDISH
= _gdi
.LANGUAGE_SWEDISH
1866 LANGUAGE_SWEDISH_FINLAND
= _gdi
.LANGUAGE_SWEDISH_FINLAND
1867 LANGUAGE_TAGALOG
= _gdi
.LANGUAGE_TAGALOG
1868 LANGUAGE_TAJIK
= _gdi
.LANGUAGE_TAJIK
1869 LANGUAGE_TAMIL
= _gdi
.LANGUAGE_TAMIL
1870 LANGUAGE_TATAR
= _gdi
.LANGUAGE_TATAR
1871 LANGUAGE_TELUGU
= _gdi
.LANGUAGE_TELUGU
1872 LANGUAGE_THAI
= _gdi
.LANGUAGE_THAI
1873 LANGUAGE_TIBETAN
= _gdi
.LANGUAGE_TIBETAN
1874 LANGUAGE_TIGRINYA
= _gdi
.LANGUAGE_TIGRINYA
1875 LANGUAGE_TONGA
= _gdi
.LANGUAGE_TONGA
1876 LANGUAGE_TSONGA
= _gdi
.LANGUAGE_TSONGA
1877 LANGUAGE_TURKISH
= _gdi
.LANGUAGE_TURKISH
1878 LANGUAGE_TURKMEN
= _gdi
.LANGUAGE_TURKMEN
1879 LANGUAGE_TWI
= _gdi
.LANGUAGE_TWI
1880 LANGUAGE_UIGHUR
= _gdi
.LANGUAGE_UIGHUR
1881 LANGUAGE_UKRAINIAN
= _gdi
.LANGUAGE_UKRAINIAN
1882 LANGUAGE_URDU
= _gdi
.LANGUAGE_URDU
1883 LANGUAGE_URDU_INDIA
= _gdi
.LANGUAGE_URDU_INDIA
1884 LANGUAGE_URDU_PAKISTAN
= _gdi
.LANGUAGE_URDU_PAKISTAN
1885 LANGUAGE_UZBEK
= _gdi
.LANGUAGE_UZBEK
1886 LANGUAGE_UZBEK_CYRILLIC
= _gdi
.LANGUAGE_UZBEK_CYRILLIC
1887 LANGUAGE_UZBEK_LATIN
= _gdi
.LANGUAGE_UZBEK_LATIN
1888 LANGUAGE_VIETNAMESE
= _gdi
.LANGUAGE_VIETNAMESE
1889 LANGUAGE_VOLAPUK
= _gdi
.LANGUAGE_VOLAPUK
1890 LANGUAGE_WELSH
= _gdi
.LANGUAGE_WELSH
1891 LANGUAGE_WOLOF
= _gdi
.LANGUAGE_WOLOF
1892 LANGUAGE_XHOSA
= _gdi
.LANGUAGE_XHOSA
1893 LANGUAGE_YIDDISH
= _gdi
.LANGUAGE_YIDDISH
1894 LANGUAGE_YORUBA
= _gdi
.LANGUAGE_YORUBA
1895 LANGUAGE_ZHUANG
= _gdi
.LANGUAGE_ZHUANG
1896 LANGUAGE_ZULU
= _gdi
.LANGUAGE_ZULU
1897 LANGUAGE_USER_DEFINED
= _gdi
.LANGUAGE_USER_DEFINED
1898 class LanguageInfo(object):
1899 def __init__(self
): raise RuntimeError, "No constructor defined"
1901 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1902 Language
= property(_gdi
.LanguageInfo_Language_get
, _gdi
.LanguageInfo_Language_set
)
1903 CanonicalName
= property(_gdi
.LanguageInfo_CanonicalName_get
, _gdi
.LanguageInfo_CanonicalName_set
)
1904 Description
= property(_gdi
.LanguageInfo_Description_get
, _gdi
.LanguageInfo_Description_set
)
1906 class LanguageInfoPtr(LanguageInfo
):
1907 def __init__(self
, this
):
1909 if not hasattr(self
,"thisown"): self
.thisown
= 0
1910 self
.__class
__ = LanguageInfo
1911 _gdi
.LanguageInfo_swigregister(LanguageInfoPtr
)
1913 LOCALE_CAT_NUMBER
= _gdi
.LOCALE_CAT_NUMBER
1914 LOCALE_CAT_DATE
= _gdi
.LOCALE_CAT_DATE
1915 LOCALE_CAT_MONEY
= _gdi
.LOCALE_CAT_MONEY
1916 LOCALE_CAT_MAX
= _gdi
.LOCALE_CAT_MAX
1917 LOCALE_THOUSANDS_SEP
= _gdi
.LOCALE_THOUSANDS_SEP
1918 LOCALE_DECIMAL_POINT
= _gdi
.LOCALE_DECIMAL_POINT
1919 LOCALE_LOAD_DEFAULT
= _gdi
.LOCALE_LOAD_DEFAULT
1920 LOCALE_CONV_ENCODING
= _gdi
.LOCALE_CONV_ENCODING
1921 class Locale(object):
1923 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1924 def __init__(self
, *args
, **kwargs
):
1925 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
1926 newobj
= _gdi
.new_Locale(*args
, **kwargs
)
1927 self
.this
= newobj
.this
1930 def __del__(self
, destroy
=_gdi
.delete_Locale
):
1933 if self
.thisown
: destroy(self
)
1936 def Init1(*args
, **kwargs
):
1938 Init1(wxString szName, wxString szShort=wxPyEmptyString,
1939 wxString szLocale=wxPyEmptyString, bool bLoadDefault=True,
1940 bool bConvertEncoding=False) -> bool
1942 return _gdi
.Locale_Init1(*args
, **kwargs
)
1944 def Init2(*args
, **kwargs
):
1945 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
1946 return _gdi
.Locale_Init2(*args
, **kwargs
)
1948 def Init(self
, *_args
, **_kwargs
):
1949 if type(_args
[0]) in [type(''), type(u
'')]:
1950 val
= self
.Init1(*_args
, **_kwargs
)
1952 val
= self
.Init2(*_args
, **_kwargs
)
1955 def GetSystemLanguage(*args
, **kwargs
):
1956 """Locale.GetSystemLanguage() -> int"""
1957 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1959 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
1960 def GetSystemEncoding(*args
, **kwargs
):
1961 """Locale.GetSystemEncoding() -> wxFontEncoding"""
1962 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1964 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
1965 def GetSystemEncodingName(*args
, **kwargs
):
1966 """Locale.GetSystemEncodingName() -> wxString"""
1967 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1969 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
1970 def IsOk(*args
, **kwargs
):
1971 """IsOk() -> bool"""
1972 return _gdi
.Locale_IsOk(*args
, **kwargs
)
1974 def __nonzero__(self
): return self
.IsOk()
1975 def GetLocale(*args
, **kwargs
):
1976 """GetLocale() -> wxString"""
1977 return _gdi
.Locale_GetLocale(*args
, **kwargs
)
1979 def GetLanguage(*args
, **kwargs
):
1980 """GetLanguage() -> int"""
1981 return _gdi
.Locale_GetLanguage(*args
, **kwargs
)
1983 def GetSysName(*args
, **kwargs
):
1984 """GetSysName() -> wxString"""
1985 return _gdi
.Locale_GetSysName(*args
, **kwargs
)
1987 def GetCanonicalName(*args
, **kwargs
):
1988 """GetCanonicalName() -> wxString"""
1989 return _gdi
.Locale_GetCanonicalName(*args
, **kwargs
)
1991 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
1992 """Locale.AddCatalogLookupPathPrefix(wxString prefix)"""
1993 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1995 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
1996 def AddCatalog(*args
, **kwargs
):
1997 """AddCatalog(wxString szDomain) -> bool"""
1998 return _gdi
.Locale_AddCatalog(*args
, **kwargs
)
2000 def IsLoaded(*args
, **kwargs
):
2001 """IsLoaded(wxString szDomain) -> bool"""
2002 return _gdi
.Locale_IsLoaded(*args
, **kwargs
)
2004 def GetLanguageInfo(*args
, **kwargs
):
2005 """Locale.GetLanguageInfo(int lang) -> LanguageInfo"""
2006 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
2008 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
2009 def GetLanguageName(*args
, **kwargs
):
2010 """Locale.GetLanguageName(int lang) -> wxString"""
2011 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
2013 GetLanguageName
= staticmethod(GetLanguageName
)
2014 def FindLanguageInfo(*args
, **kwargs
):
2015 """Locale.FindLanguageInfo(wxString locale) -> LanguageInfo"""
2016 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
2018 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
2019 def AddLanguage(*args
, **kwargs
):
2020 """Locale.AddLanguage(LanguageInfo info)"""
2021 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
2023 AddLanguage
= staticmethod(AddLanguage
)
2024 def GetString(*args
, **kwargs
):
2025 """GetString(wxString szOrigString, wxString szDomain=wxPyEmptyString) -> wxString"""
2026 return _gdi
.Locale_GetString(*args
, **kwargs
)
2028 def GetName(*args
, **kwargs
):
2029 """GetName() -> wxString"""
2030 return _gdi
.Locale_GetName(*args
, **kwargs
)
2033 class LocalePtr(Locale
):
2034 def __init__(self
, this
):
2036 if not hasattr(self
,"thisown"): self
.thisown
= 0
2037 self
.__class
__ = Locale
2038 _gdi
.Locale_swigregister(LocalePtr
)
2040 def Locale_GetSystemLanguage(*args
, **kwargs
):
2041 """Locale_GetSystemLanguage() -> int"""
2042 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
2044 def Locale_GetSystemEncoding(*args
, **kwargs
):
2045 """Locale_GetSystemEncoding() -> wxFontEncoding"""
2046 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
2048 def Locale_GetSystemEncodingName(*args
, **kwargs
):
2049 """Locale_GetSystemEncodingName() -> wxString"""
2050 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2052 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
2053 """Locale_AddCatalogLookupPathPrefix(wxString prefix)"""
2054 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2056 def Locale_GetLanguageInfo(*args
, **kwargs
):
2057 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
2058 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
2060 def Locale_GetLanguageName(*args
, **kwargs
):
2061 """Locale_GetLanguageName(int lang) -> wxString"""
2062 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
2064 def Locale_FindLanguageInfo(*args
, **kwargs
):
2065 """Locale_FindLanguageInfo(wxString locale) -> LanguageInfo"""
2066 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
2068 def Locale_AddLanguage(*args
, **kwargs
):
2069 """Locale_AddLanguage(LanguageInfo info)"""
2070 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
2073 def GetLocale(*args
, **kwargs
):
2074 """GetLocale() -> Locale"""
2075 return _gdi
.GetLocale(*args
, **kwargs
)
2076 #---------------------------------------------------------------------------
2078 CONVERT_STRICT
= _gdi
.CONVERT_STRICT
2079 CONVERT_SUBSTITUTE
= _gdi
.CONVERT_SUBSTITUTE
2080 PLATFORM_CURRENT
= _gdi
.PLATFORM_CURRENT
2081 PLATFORM_UNIX
= _gdi
.PLATFORM_UNIX
2082 PLATFORM_WINDOWS
= _gdi
.PLATFORM_WINDOWS
2083 PLATFORM_OS2
= _gdi
.PLATFORM_OS2
2084 PLATFORM_MAC
= _gdi
.PLATFORM_MAC
2085 class EncodingConverter(core
.Object
):
2087 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2088 def __init__(self
, *args
, **kwargs
):
2089 """__init__() -> EncodingConverter"""
2090 newobj
= _gdi
.new_EncodingConverter(*args
, **kwargs
)
2091 self
.this
= newobj
.this
2094 def __del__(self
, destroy
=_gdi
.delete_EncodingConverter
):
2097 if self
.thisown
: destroy(self
)
2100 def Init(*args
, **kwargs
):
2102 Init(wxFontEncoding input_enc, wxFontEncoding output_enc,
2103 int method=CONVERT_STRICT) -> bool
2105 return _gdi
.EncodingConverter_Init(*args
, **kwargs
)
2107 def Convert(*args
, **kwargs
):
2108 """Convert(wxString input) -> wxString"""
2109 return _gdi
.EncodingConverter_Convert(*args
, **kwargs
)
2111 def GetPlatformEquivalents(*args
, **kwargs
):
2112 """EncodingConverter.GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2113 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2115 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2116 def GetAllEquivalents(*args
, **kwargs
):
2117 """EncodingConverter.GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
2118 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2120 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2121 def CanConvert(*args
, **kwargs
):
2122 """EncodingConverter.CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
2123 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2125 CanConvert
= staticmethod(CanConvert
)
2126 def __nonzero__(self
): return self
.IsOk()
2128 class EncodingConverterPtr(EncodingConverter
):
2129 def __init__(self
, this
):
2131 if not hasattr(self
,"thisown"): self
.thisown
= 0
2132 self
.__class
__ = EncodingConverter
2133 _gdi
.EncodingConverter_swigregister(EncodingConverterPtr
)
2135 def GetTranslation(*args
):
2137 GetTranslation(wxString sz) -> wxString
2138 GetTranslation(wxString sz1, wxString sz2, size_t n) -> wxString
2140 return _gdi
.GetTranslation(*args
)
2142 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2143 """EncodingConverter_GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2144 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2146 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2147 """EncodingConverter_GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
2148 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2150 def EncodingConverter_CanConvert(*args
, **kwargs
):
2151 """EncodingConverter_CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
2152 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2154 #----------------------------------------------------------------------------
2155 # wxGTK sets the locale when initialized. Doing this at the Python
2156 # level should set it up to match what GTK is doing at the C level.
2157 if wx
.Platform
== "__WXGTK__":
2160 locale
.setlocale(locale
.LC_ALL
, "")
2164 # On MSW add the directory where the wxWindows catalogs were installed
2165 # to the default catalog path.
2166 if wx
.Platform
== "__WXMSW__":
2168 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2169 Locale_AddCatalogLookupPathPrefix(localedir
)
2172 #----------------------------------------------------------------------------
2174 #---------------------------------------------------------------------------
2176 class DC(core
.Object
):
2177 def __init__(self
): raise RuntimeError, "No constructor defined"
2179 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2180 def __del__(self
, destroy
=_gdi
.delete_DC
):
2183 if self
.thisown
: destroy(self
)
2186 def BeginDrawing(*args
, **kwargs
):
2187 """BeginDrawing()"""
2188 return _gdi
.DC_BeginDrawing(*args
, **kwargs
)
2190 def EndDrawing(*args
, **kwargs
):
2192 return _gdi
.DC_EndDrawing(*args
, **kwargs
)
2194 def FloodFillXY(*args
, **kwargs
):
2195 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2196 return _gdi
.DC_FloodFillXY(*args
, **kwargs
)
2198 def FloodFill(*args
, **kwargs
):
2199 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2200 return _gdi
.DC_FloodFill(*args
, **kwargs
)
2202 def GetPixelXY(*args
, **kwargs
):
2203 """GetPixelXY(int x, int y) -> Colour"""
2204 return _gdi
.DC_GetPixelXY(*args
, **kwargs
)
2206 def GetPixel(*args
, **kwargs
):
2207 """GetPixel(Point pt) -> Colour"""
2208 return _gdi
.DC_GetPixel(*args
, **kwargs
)
2210 def DrawLineXY(*args
, **kwargs
):
2211 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2212 return _gdi
.DC_DrawLineXY(*args
, **kwargs
)
2214 def DrawLine(*args
, **kwargs
):
2215 """DrawLine(Point pt1, Point pt2)"""
2216 return _gdi
.DC_DrawLine(*args
, **kwargs
)
2218 def CrossHairXY(*args
, **kwargs
):
2219 """CrossHairXY(int x, int y)"""
2220 return _gdi
.DC_CrossHairXY(*args
, **kwargs
)
2222 def CrossHair(*args
, **kwargs
):
2223 """CrossHair(Point pt)"""
2224 return _gdi
.DC_CrossHair(*args
, **kwargs
)
2226 def DrawArcXY(*args
, **kwargs
):
2227 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2228 return _gdi
.DC_DrawArcXY(*args
, **kwargs
)
2230 def DrawArc(*args
, **kwargs
):
2231 """DrawArc(Point pt1, Point pt2, Point centre)"""
2232 return _gdi
.DC_DrawArc(*args
, **kwargs
)
2234 def DrawCheckMarkXY(*args
, **kwargs
):
2235 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2236 return _gdi
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2238 def DrawCheckMark(*args
, **kwargs
):
2239 """DrawCheckMark(Rect rect)"""
2240 return _gdi
.DC_DrawCheckMark(*args
, **kwargs
)
2242 def DrawEllipticArcXY(*args
, **kwargs
):
2243 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2244 return _gdi
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2246 def DrawEllipticArc(*args
, **kwargs
):
2247 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2248 return _gdi
.DC_DrawEllipticArc(*args
, **kwargs
)
2250 def DrawPointXY(*args
, **kwargs
):
2251 """DrawPointXY(int x, int y)"""
2252 return _gdi
.DC_DrawPointXY(*args
, **kwargs
)
2254 def DrawPoint(*args
, **kwargs
):
2255 """DrawPoint(Point pt)"""
2256 return _gdi
.DC_DrawPoint(*args
, **kwargs
)
2258 def DrawRectangleXY(*args
, **kwargs
):
2259 """DrawRectangleXY(int x, int y, int width, int height)"""
2260 return _gdi
.DC_DrawRectangleXY(*args
, **kwargs
)
2262 def DrawRectangle(*args
, **kwargs
):
2263 """DrawRectangle(Point pt, Size sz)"""
2264 return _gdi
.DC_DrawRectangle(*args
, **kwargs
)
2266 def DrawRectangleRect(*args
, **kwargs
):
2267 """DrawRectangleRect(Rect rect)"""
2268 return _gdi
.DC_DrawRectangleRect(*args
, **kwargs
)
2270 def DrawRoundedRectangleXY(*args
, **kwargs
):
2271 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2272 return _gdi
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2274 def DrawRoundedRectangle(*args
, **kwargs
):
2275 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2276 return _gdi
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2278 def DrawRoundedRectangleRect(*args
, **kwargs
):
2279 """DrawRoundedRectangleRect(Rect r, double radius)"""
2280 return _gdi
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2282 def DrawCircleXY(*args
, **kwargs
):
2283 """DrawCircleXY(int x, int y, int radius)"""
2284 return _gdi
.DC_DrawCircleXY(*args
, **kwargs
)
2286 def DrawCircle(*args
, **kwargs
):
2287 """DrawCircle(Point pt, int radius)"""
2288 return _gdi
.DC_DrawCircle(*args
, **kwargs
)
2290 def DrawEllipseXY(*args
, **kwargs
):
2291 """DrawEllipseXY(int x, int y, int width, int height)"""
2292 return _gdi
.DC_DrawEllipseXY(*args
, **kwargs
)
2294 def DrawEllipse(*args
, **kwargs
):
2295 """DrawEllipse(Point pt, Size sz)"""
2296 return _gdi
.DC_DrawEllipse(*args
, **kwargs
)
2298 def DrawEllipseRect(*args
, **kwargs
):
2299 """DrawEllipseRect(Rect rect)"""
2300 return _gdi
.DC_DrawEllipseRect(*args
, **kwargs
)
2302 def DrawIconXY(*args
, **kwargs
):
2303 """DrawIconXY(Icon icon, int x, int y)"""
2304 return _gdi
.DC_DrawIconXY(*args
, **kwargs
)
2306 def DrawIcon(*args
, **kwargs
):
2307 """DrawIcon(Icon icon, Point pt)"""
2308 return _gdi
.DC_DrawIcon(*args
, **kwargs
)
2310 def DrawBitmapXY(*args
, **kwargs
):
2311 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2312 return _gdi
.DC_DrawBitmapXY(*args
, **kwargs
)
2314 def DrawBitmap(*args
, **kwargs
):
2315 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2316 return _gdi
.DC_DrawBitmap(*args
, **kwargs
)
2318 def DrawTextXY(*args
, **kwargs
):
2319 """DrawTextXY(wxString text, int x, int y)"""
2320 return _gdi
.DC_DrawTextXY(*args
, **kwargs
)
2322 def DrawText(*args
, **kwargs
):
2323 """DrawText(wxString text, Point pt)"""
2324 return _gdi
.DC_DrawText(*args
, **kwargs
)
2326 def DrawRotatedTextXY(*args
, **kwargs
):
2327 """DrawRotatedTextXY(wxString text, int x, int y, double angle)"""
2328 return _gdi
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2330 def DrawRotatedText(*args
, **kwargs
):
2331 """DrawRotatedText(wxString text, Point pt, double angle)"""
2332 return _gdi
.DC_DrawRotatedText(*args
, **kwargs
)
2334 def BlitXY(*args
, **kwargs
):
2336 BlitXY(int xdest, int ydest, int width, int height, DC source,
2337 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2338 int xsrcMask=-1, int ysrcMask=-1) -> bool
2340 return _gdi
.DC_BlitXY(*args
, **kwargs
)
2342 def Blit(*args
, **kwargs
):
2344 Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2345 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
2347 return _gdi
.DC_Blit(*args
, **kwargs
)
2349 def DrawLines(*args
, **kwargs
):
2350 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2351 return _gdi
.DC_DrawLines(*args
, **kwargs
)
2353 def DrawPolygon(*args
, **kwargs
):
2355 DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2356 int fillStyle=ODDEVEN_RULE)
2358 return _gdi
.DC_DrawPolygon(*args
, **kwargs
)
2360 def DrawLabel(*args
, **kwargs
):
2362 DrawLabel(wxString text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2365 return _gdi
.DC_DrawLabel(*args
, **kwargs
)
2367 def DrawImageLabel(*args
, **kwargs
):
2369 DrawImageLabel(wxString text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2370 int indexAccel=-1) -> Rect
2372 return _gdi
.DC_DrawImageLabel(*args
, **kwargs
)
2374 def DrawSpline(*args
, **kwargs
):
2375 """DrawSpline(int points, Point points_array)"""
2376 return _gdi
.DC_DrawSpline(*args
, **kwargs
)
2378 def Clear(*args
, **kwargs
):
2380 return _gdi
.DC_Clear(*args
, **kwargs
)
2382 def StartDoc(*args
, **kwargs
):
2383 """StartDoc(wxString message) -> bool"""
2384 return _gdi
.DC_StartDoc(*args
, **kwargs
)
2386 def EndDoc(*args
, **kwargs
):
2388 return _gdi
.DC_EndDoc(*args
, **kwargs
)
2390 def StartPage(*args
, **kwargs
):
2392 return _gdi
.DC_StartPage(*args
, **kwargs
)
2394 def EndPage(*args
, **kwargs
):
2396 return _gdi
.DC_EndPage(*args
, **kwargs
)
2398 def SetFont(*args
, **kwargs
):
2399 """SetFont(Font font)"""
2400 return _gdi
.DC_SetFont(*args
, **kwargs
)
2402 def SetPen(*args
, **kwargs
):
2403 """SetPen(Pen pen)"""
2404 return _gdi
.DC_SetPen(*args
, **kwargs
)
2406 def SetBrush(*args
, **kwargs
):
2407 """SetBrush(Brush brush)"""
2408 return _gdi
.DC_SetBrush(*args
, **kwargs
)
2410 def SetBackground(*args
, **kwargs
):
2411 """SetBackground(Brush brush)"""
2412 return _gdi
.DC_SetBackground(*args
, **kwargs
)
2414 def SetBackgroundMode(*args
, **kwargs
):
2415 """SetBackgroundMode(int mode)"""
2416 return _gdi
.DC_SetBackgroundMode(*args
, **kwargs
)
2418 def SetPalette(*args
, **kwargs
):
2419 """SetPalette(Palette palette)"""
2420 return _gdi
.DC_SetPalette(*args
, **kwargs
)
2422 def SetClippingRegionXY(*args
, **kwargs
):
2423 """SetClippingRegionXY(int x, int y, int width, int height)"""
2424 return _gdi
.DC_SetClippingRegionXY(*args
, **kwargs
)
2426 def SetClippingRegion(*args
, **kwargs
):
2427 """SetClippingRegion(Point pt, Size sz)"""
2428 return _gdi
.DC_SetClippingRegion(*args
, **kwargs
)
2430 def SetClippingRect(*args
, **kwargs
):
2431 """SetClippingRect(Rect rect)"""
2432 return _gdi
.DC_SetClippingRect(*args
, **kwargs
)
2434 def SetClippingRegionAsRegion(*args
, **kwargs
):
2435 """SetClippingRegionAsRegion(Region region)"""
2436 return _gdi
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2438 def DestroyClippingRegion(*args
, **kwargs
):
2439 """DestroyClippingRegion()"""
2440 return _gdi
.DC_DestroyClippingRegion(*args
, **kwargs
)
2442 def GetClippingBox(*args
, **kwargs
):
2443 """GetClippingBox() -> (x, y, width, height)"""
2444 return _gdi
.DC_GetClippingBox(*args
, **kwargs
)
2446 def GetClippingRect(*args
, **kwargs
):
2447 """GetClippingRect() -> Rect"""
2448 return _gdi
.DC_GetClippingRect(*args
, **kwargs
)
2450 def GetCharHeight(*args
, **kwargs
):
2451 """GetCharHeight() -> int"""
2452 return _gdi
.DC_GetCharHeight(*args
, **kwargs
)
2454 def GetCharWidth(*args
, **kwargs
):
2455 """GetCharWidth() -> int"""
2456 return _gdi
.DC_GetCharWidth(*args
, **kwargs
)
2458 def GetTextExtent(*args
, **kwargs
):
2460 GetTextExtent(wxString string) -> (width, height)
2462 Get the width and height of the text using the current font.
2463 Only works for single line strings.
2465 return _gdi
.DC_GetTextExtent(*args
, **kwargs
)
2467 def GetFullTextExtent(*args
, **kwargs
):
2469 GetFullTextExtent(wxString string, Font font=None) ->
2470 (width, height, descent, externalLeading)
2472 Get the width, height, decent and leading of the text using the current or specified font.
2473 Only works for single line strings.
2475 return _gdi
.DC_GetFullTextExtent(*args
, **kwargs
)
2477 def GetMultiLineTextExtent(*args
, **kwargs
):
2479 GetMultiLineTextExtent(wxString string, Font font=None) ->
2480 (width, height, descent, externalLeading)
2482 Get the width, height, decent and leading of the text using the current or specified font.
2483 Works for single as well as multi-line strings.
2485 return _gdi
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2487 def GetSize(*args
, **kwargs
):
2491 Get the DC size in device units.
2493 return _gdi
.DC_GetSize(*args
, **kwargs
)
2495 def GetSizeTuple(*args
, **kwargs
):
2497 GetSizeTuple() -> (width, height)
2499 Get the DC size in device units.
2501 return _gdi
.DC_GetSizeTuple(*args
, **kwargs
)
2503 def GetSizeMM(*args
, **kwargs
):
2507 Get the DC size in milimeters.
2509 return _gdi
.DC_GetSizeMM(*args
, **kwargs
)
2511 def GetSizeMMTuple(*args
, **kwargs
):
2513 GetSizeMMTuple() -> (width, height)
2515 Get the DC size in milimeters.
2517 return _gdi
.DC_GetSizeMMTuple(*args
, **kwargs
)
2519 def DeviceToLogicalX(*args
, **kwargs
):
2520 """DeviceToLogicalX(int x) -> int"""
2521 return _gdi
.DC_DeviceToLogicalX(*args
, **kwargs
)
2523 def DeviceToLogicalY(*args
, **kwargs
):
2524 """DeviceToLogicalY(int y) -> int"""
2525 return _gdi
.DC_DeviceToLogicalY(*args
, **kwargs
)
2527 def DeviceToLogicalXRel(*args
, **kwargs
):
2528 """DeviceToLogicalXRel(int x) -> int"""
2529 return _gdi
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2531 def DeviceToLogicalYRel(*args
, **kwargs
):
2532 """DeviceToLogicalYRel(int y) -> int"""
2533 return _gdi
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2535 def LogicalToDeviceX(*args
, **kwargs
):
2536 """LogicalToDeviceX(int x) -> int"""
2537 return _gdi
.DC_LogicalToDeviceX(*args
, **kwargs
)
2539 def LogicalToDeviceY(*args
, **kwargs
):
2540 """LogicalToDeviceY(int y) -> int"""
2541 return _gdi
.DC_LogicalToDeviceY(*args
, **kwargs
)
2543 def LogicalToDeviceXRel(*args
, **kwargs
):
2544 """LogicalToDeviceXRel(int x) -> int"""
2545 return _gdi
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2547 def LogicalToDeviceYRel(*args
, **kwargs
):
2548 """LogicalToDeviceYRel(int y) -> int"""
2549 return _gdi
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2551 def CanDrawBitmap(*args
, **kwargs
):
2552 """CanDrawBitmap() -> bool"""
2553 return _gdi
.DC_CanDrawBitmap(*args
, **kwargs
)
2555 def CanGetTextExtent(*args
, **kwargs
):
2556 """CanGetTextExtent() -> bool"""
2557 return _gdi
.DC_CanGetTextExtent(*args
, **kwargs
)
2559 def GetDepth(*args
, **kwargs
):
2560 """GetDepth() -> int"""
2561 return _gdi
.DC_GetDepth(*args
, **kwargs
)
2563 def GetPPI(*args
, **kwargs
):
2564 """GetPPI() -> Size"""
2565 return _gdi
.DC_GetPPI(*args
, **kwargs
)
2567 def Ok(*args
, **kwargs
):
2569 return _gdi
.DC_Ok(*args
, **kwargs
)
2571 def GetBackgroundMode(*args
, **kwargs
):
2572 """GetBackgroundMode() -> int"""
2573 return _gdi
.DC_GetBackgroundMode(*args
, **kwargs
)
2575 def GetBackground(*args
, **kwargs
):
2576 """GetBackground() -> Brush"""
2577 return _gdi
.DC_GetBackground(*args
, **kwargs
)
2579 def GetBrush(*args
, **kwargs
):
2580 """GetBrush() -> Brush"""
2581 return _gdi
.DC_GetBrush(*args
, **kwargs
)
2583 def GetFont(*args
, **kwargs
):
2584 """GetFont() -> Font"""
2585 return _gdi
.DC_GetFont(*args
, **kwargs
)
2587 def GetPen(*args
, **kwargs
):
2588 """GetPen() -> Pen"""
2589 return _gdi
.DC_GetPen(*args
, **kwargs
)
2591 def GetTextBackground(*args
, **kwargs
):
2592 """GetTextBackground() -> Colour"""
2593 return _gdi
.DC_GetTextBackground(*args
, **kwargs
)
2595 def GetTextForeground(*args
, **kwargs
):
2596 """GetTextForeground() -> Colour"""
2597 return _gdi
.DC_GetTextForeground(*args
, **kwargs
)
2599 def SetTextForeground(*args
, **kwargs
):
2600 """SetTextForeground(Colour colour)"""
2601 return _gdi
.DC_SetTextForeground(*args
, **kwargs
)
2603 def SetTextBackground(*args
, **kwargs
):
2604 """SetTextBackground(Colour colour)"""
2605 return _gdi
.DC_SetTextBackground(*args
, **kwargs
)
2607 def GetMapMode(*args
, **kwargs
):
2608 """GetMapMode() -> int"""
2609 return _gdi
.DC_GetMapMode(*args
, **kwargs
)
2611 def SetMapMode(*args
, **kwargs
):
2612 """SetMapMode(int mode)"""
2613 return _gdi
.DC_SetMapMode(*args
, **kwargs
)
2615 def GetUserScale(*args
, **kwargs
):
2616 """GetUserScale() -> (xScale, yScale)"""
2617 return _gdi
.DC_GetUserScale(*args
, **kwargs
)
2619 def SetUserScale(*args
, **kwargs
):
2620 """SetUserScale(double x, double y)"""
2621 return _gdi
.DC_SetUserScale(*args
, **kwargs
)
2623 def GetLogicalScale(*args
, **kwargs
):
2624 """GetLogicalScale() -> (xScale, yScale)"""
2625 return _gdi
.DC_GetLogicalScale(*args
, **kwargs
)
2627 def SetLogicalScale(*args
, **kwargs
):
2628 """SetLogicalScale(double x, double y)"""
2629 return _gdi
.DC_SetLogicalScale(*args
, **kwargs
)
2631 def GetLogicalOrigin(*args
, **kwargs
):
2632 """GetLogicalOrigin() -> Point"""
2633 return _gdi
.DC_GetLogicalOrigin(*args
, **kwargs
)
2635 def GetLogicalOriginTuple(*args
, **kwargs
):
2636 """GetLogicalOriginTuple() -> (x,y)"""
2637 return _gdi
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2639 def SetLogicalOrigin(*args
, **kwargs
):
2640 """SetLogicalOrigin(int x, int y)"""
2641 return _gdi
.DC_SetLogicalOrigin(*args
, **kwargs
)
2643 def GetDeviceOrigin(*args
, **kwargs
):
2644 """GetDeviceOrigin() -> Point"""
2645 return _gdi
.DC_GetDeviceOrigin(*args
, **kwargs
)
2647 def GetDeviceOriginTuple(*args
, **kwargs
):
2648 """GetDeviceOriginTuple() -> (x,y)"""
2649 return _gdi
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2651 def SetDeviceOrigin(*args
, **kwargs
):
2652 """SetDeviceOrigin(int x, int y)"""
2653 return _gdi
.DC_SetDeviceOrigin(*args
, **kwargs
)
2655 def SetAxisOrientation(*args
, **kwargs
):
2656 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2657 return _gdi
.DC_SetAxisOrientation(*args
, **kwargs
)
2659 def GetLogicalFunction(*args
, **kwargs
):
2660 """GetLogicalFunction() -> int"""
2661 return _gdi
.DC_GetLogicalFunction(*args
, **kwargs
)
2663 def SetLogicalFunction(*args
, **kwargs
):
2664 """SetLogicalFunction(int function)"""
2665 return _gdi
.DC_SetLogicalFunction(*args
, **kwargs
)
2667 def SetOptimization(*args
, **kwargs
):
2668 """SetOptimization(bool opt)"""
2669 return _gdi
.DC_SetOptimization(*args
, **kwargs
)
2671 def GetOptimization(*args
, **kwargs
):
2672 """GetOptimization() -> bool"""
2673 return _gdi
.DC_GetOptimization(*args
, **kwargs
)
2675 def CalcBoundingBox(*args
, **kwargs
):
2676 """CalcBoundingBox(int x, int y)"""
2677 return _gdi
.DC_CalcBoundingBox(*args
, **kwargs
)
2679 def ResetBoundingBox(*args
, **kwargs
):
2680 """ResetBoundingBox()"""
2681 return _gdi
.DC_ResetBoundingBox(*args
, **kwargs
)
2683 def MinX(*args
, **kwargs
):
2685 return _gdi
.DC_MinX(*args
, **kwargs
)
2687 def MaxX(*args
, **kwargs
):
2689 return _gdi
.DC_MaxX(*args
, **kwargs
)
2691 def MinY(*args
, **kwargs
):
2693 return _gdi
.DC_MinY(*args
, **kwargs
)
2695 def MaxY(*args
, **kwargs
):
2697 return _gdi
.DC_MaxY(*args
, **kwargs
)
2699 def GetBoundingBox(*args
, **kwargs
):
2700 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2701 return _gdi
.DC_GetBoundingBox(*args
, **kwargs
)
2703 def __nonzero__(self
): return self
.Ok()
2704 def _DrawPointList(*args
, **kwargs
):
2705 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2706 return _gdi
.DC__DrawPointList(*args
, **kwargs
)
2708 def _DrawLineList(*args
, **kwargs
):
2709 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2710 return _gdi
.DC__DrawLineList(*args
, **kwargs
)
2712 def _DrawRectangleList(*args
, **kwargs
):
2713 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2714 return _gdi
.DC__DrawRectangleList(*args
, **kwargs
)
2716 def _DrawEllipseList(*args
, **kwargs
):
2717 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2718 return _gdi
.DC__DrawEllipseList(*args
, **kwargs
)
2720 def _DrawPolygonList(*args
, **kwargs
):
2721 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2722 return _gdi
.DC__DrawPolygonList(*args
, **kwargs
)
2724 def _DrawTextList(*args
, **kwargs
):
2726 _DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2727 PyObject backgroundList) -> PyObject
2729 return _gdi
.DC__DrawTextList(*args
, **kwargs
)
2731 def DrawPointList(self
, points
, pens
=None):
2734 elif isinstance(pens
, wx
.Pen
):
2736 elif len(pens
) != len(points
):
2737 raise ValueError('points and pens must have same length')
2738 return self
._DrawPointList
(points
, pens
, [])
2741 def DrawLineList(self
, lines
, pens
=None):
2744 elif isinstance(pens
, wx
.Pen
):
2746 elif len(pens
) != len(lines
):
2747 raise ValueError('lines and pens must have same length')
2748 return self
._DrawLineList
(lines
, pens
, [])
2751 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2754 elif isinstance(pens
, wx
.Pen
):
2756 elif len(pens
) != len(rectangles
):
2757 raise ValueError('rectangles and pens must have same length')
2760 elif isinstance(brushes
, wx
.Brush
):
2762 elif len(brushes
) != len(rectangles
):
2763 raise ValueError('rectangles and brushes must have same length')
2764 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2767 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2770 elif isinstance(pens
, wx
.Pen
):
2772 elif len(pens
) != len(ellipses
):
2773 raise ValueError('ellipses and pens must have same length')
2776 elif isinstance(brushes
, wx
.Brush
):
2778 elif len(brushes
) != len(ellipses
):
2779 raise ValueError('ellipses and brushes must have same length')
2780 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2783 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2788 elif isinstance(pens
, wx
.Pen
):
2790 elif len(pens
) != len(polygons
):
2791 raise ValueError('polygons and pens must have same length')
2794 elif isinstance(brushes
, wx
.Brush
):
2796 elif len(brushes
) != len(polygons
):
2797 raise ValueError('polygons and brushes must have same length')
2798 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2801 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2805 if type(textList
) == type(''):
2806 textList
= [textList
]
2807 elif len(textList
) != len(coords
):
2808 raise ValueError('textlist and coords must have same length')
2809 if foregrounds
is None:
2811 elif isinstance(foregrounds
, wx
.Colour
):
2812 foregrounds
= [foregrounds
]
2813 elif len(foregrounds
) != len(coords
):
2814 raise ValueError('foregrounds and coords must have same length')
2815 if backgrounds
is None:
2817 elif isinstance(backgrounds
, wx
.Colour
):
2818 backgrounds
= [backgrounds
]
2819 elif len(backgrounds
) != len(coords
):
2820 raise ValueError('backgrounds and coords must have same length')
2821 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2825 def __init__(self
, this
):
2827 if not hasattr(self
,"thisown"): self
.thisown
= 0
2829 _gdi
.DC_swigregister(DCPtr
)
2831 #---------------------------------------------------------------------------
2835 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2836 def __init__(self
, *args
, **kwargs
):
2837 """__init__() -> MemoryDC"""
2838 newobj
= _gdi
.new_MemoryDC(*args
, **kwargs
)
2839 self
.this
= newobj
.this
2842 def SelectObject(*args
, **kwargs
):
2843 """SelectObject(Bitmap bitmap)"""
2844 return _gdi
.MemoryDC_SelectObject(*args
, **kwargs
)
2847 class MemoryDCPtr(MemoryDC
):
2848 def __init__(self
, this
):
2850 if not hasattr(self
,"thisown"): self
.thisown
= 0
2851 self
.__class
__ = MemoryDC
2852 _gdi
.MemoryDC_swigregister(MemoryDCPtr
)
2854 def MemoryDCFromDC(*args
, **kwargs
):
2855 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
2856 val
= _gdi
.new_MemoryDCFromDC(*args
, **kwargs
)
2860 #---------------------------------------------------------------------------
2862 class BufferedDC(MemoryDC
):
2864 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2865 def __init__(self
, *args
, **kwargs
):
2866 """__init__(DC dc, Bitmap buffer) -> BufferedDC"""
2867 newobj
= _gdi
.new_BufferedDC(*args
, **kwargs
)
2868 self
.this
= newobj
.this
2871 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2873 def UnMask(*args
, **kwargs
):
2875 return _gdi
.BufferedDC_UnMask(*args
, **kwargs
)
2878 class BufferedDCPtr(BufferedDC
):
2879 def __init__(self
, this
):
2881 if not hasattr(self
,"thisown"): self
.thisown
= 0
2882 self
.__class
__ = BufferedDC
2883 _gdi
.BufferedDC_swigregister(BufferedDCPtr
)
2885 def BufferedDCInternalBuffer(*args
, **kwargs
):
2886 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
2887 val
= _gdi
.new_BufferedDCInternalBuffer(*args
, **kwargs
)
2889 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2892 class BufferedPaintDC(BufferedDC
):
2894 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2895 def __init__(self
, *args
, **kwargs
):
2896 """__init__(Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
2897 newobj
= _gdi
.new_BufferedPaintDC(*args
, **kwargs
)
2898 self
.this
= newobj
.this
2902 class BufferedPaintDCPtr(BufferedPaintDC
):
2903 def __init__(self
, this
):
2905 if not hasattr(self
,"thisown"): self
.thisown
= 0
2906 self
.__class
__ = BufferedPaintDC
2907 _gdi
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
2909 #---------------------------------------------------------------------------
2913 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2914 def __init__(self
, *args
, **kwargs
):
2915 """__init__() -> ScreenDC"""
2916 newobj
= _gdi
.new_ScreenDC(*args
, **kwargs
)
2917 self
.this
= newobj
.this
2920 def StartDrawingOnTopWin(*args
, **kwargs
):
2921 """StartDrawingOnTopWin(Window window) -> bool"""
2922 return _gdi
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
2924 def StartDrawingOnTop(*args
, **kwargs
):
2925 """StartDrawingOnTop(Rect rect=None) -> bool"""
2926 return _gdi
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
2928 def EndDrawingOnTop(*args
, **kwargs
):
2929 """EndDrawingOnTop() -> bool"""
2930 return _gdi
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
2933 class ScreenDCPtr(ScreenDC
):
2934 def __init__(self
, this
):
2936 if not hasattr(self
,"thisown"): self
.thisown
= 0
2937 self
.__class
__ = ScreenDC
2938 _gdi
.ScreenDC_swigregister(ScreenDCPtr
)
2940 #---------------------------------------------------------------------------
2944 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2945 def __init__(self
, *args
, **kwargs
):
2946 """__init__(Window win) -> ClientDC"""
2947 newobj
= _gdi
.new_ClientDC(*args
, **kwargs
)
2948 self
.this
= newobj
.this
2952 class ClientDCPtr(ClientDC
):
2953 def __init__(self
, this
):
2955 if not hasattr(self
,"thisown"): self
.thisown
= 0
2956 self
.__class
__ = ClientDC
2957 _gdi
.ClientDC_swigregister(ClientDCPtr
)
2959 #---------------------------------------------------------------------------
2963 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2964 def __init__(self
, *args
, **kwargs
):
2965 """__init__(Window win) -> PaintDC"""
2966 newobj
= _gdi
.new_PaintDC(*args
, **kwargs
)
2967 self
.this
= newobj
.this
2971 class PaintDCPtr(PaintDC
):
2972 def __init__(self
, this
):
2974 if not hasattr(self
,"thisown"): self
.thisown
= 0
2975 self
.__class
__ = PaintDC
2976 _gdi
.PaintDC_swigregister(PaintDCPtr
)
2978 #---------------------------------------------------------------------------
2982 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2983 def __init__(self
, *args
, **kwargs
):
2984 """__init__(Window win) -> WindowDC"""
2985 newobj
= _gdi
.new_WindowDC(*args
, **kwargs
)
2986 self
.this
= newobj
.this
2990 class WindowDCPtr(WindowDC
):
2991 def __init__(self
, this
):
2993 if not hasattr(self
,"thisown"): self
.thisown
= 0
2994 self
.__class
__ = WindowDC
2995 _gdi
.WindowDC_swigregister(WindowDCPtr
)
2997 #---------------------------------------------------------------------------
3001 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3002 def __init__(self
, *args
, **kwargs
):
3003 """__init__(DC dc, bool mirror) -> MirrorDC"""
3004 newobj
= _gdi
.new_MirrorDC(*args
, **kwargs
)
3005 self
.this
= newobj
.this
3009 class MirrorDCPtr(MirrorDC
):
3010 def __init__(self
, this
):
3012 if not hasattr(self
,"thisown"): self
.thisown
= 0
3013 self
.__class
__ = MirrorDC
3014 _gdi
.MirrorDC_swigregister(MirrorDCPtr
)
3016 #---------------------------------------------------------------------------
3018 class PostScriptDC(DC
):
3020 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3021 def __init__(self
, *args
, **kwargs
):
3022 """__init__(wxPrintData printData) -> PostScriptDC"""
3023 newobj
= _gdi
.new_PostScriptDC(*args
, **kwargs
)
3024 self
.this
= newobj
.this
3027 def GetPrintData(*args
, **kwargs
):
3028 """GetPrintData() -> wxPrintData"""
3029 return _gdi
.PostScriptDC_GetPrintData(*args
, **kwargs
)
3031 def SetPrintData(*args
, **kwargs
):
3032 """SetPrintData(wxPrintData data)"""
3033 return _gdi
.PostScriptDC_SetPrintData(*args
, **kwargs
)
3035 def SetResolution(*args
, **kwargs
):
3036 """PostScriptDC.SetResolution(int ppi)"""
3037 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
3039 SetResolution
= staticmethod(SetResolution
)
3040 def GetResolution(*args
, **kwargs
):
3041 """PostScriptDC.GetResolution() -> int"""
3042 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
3044 GetResolution
= staticmethod(GetResolution
)
3046 class PostScriptDCPtr(PostScriptDC
):
3047 def __init__(self
, this
):
3049 if not hasattr(self
,"thisown"): self
.thisown
= 0
3050 self
.__class
__ = PostScriptDC
3051 _gdi
.PostScriptDC_swigregister(PostScriptDCPtr
)
3053 def PostScriptDC_SetResolution(*args
, **kwargs
):
3054 """PostScriptDC_SetResolution(int ppi)"""
3055 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
3057 def PostScriptDC_GetResolution(*args
, **kwargs
):
3058 """PostScriptDC_GetResolution() -> int"""
3059 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
3061 #---------------------------------------------------------------------------
3063 class MetaFile(core
.Object
):
3065 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3066 def __init__(self
, *args
, **kwargs
):
3067 """__init__(wxString filename=wxPyEmptyString) -> MetaFile"""
3068 newobj
= _gdi
.new_MetaFile(*args
, **kwargs
)
3069 self
.this
= newobj
.this
3072 def __del__(self
, destroy
=_gdi
.delete_MetaFile
):
3075 if self
.thisown
: destroy(self
)
3078 def Ok(*args
, **kwargs
):
3080 return _gdi
.MetaFile_Ok(*args
, **kwargs
)
3082 def SetClipboard(*args
, **kwargs
):
3083 """SetClipboard(int width=0, int height=0) -> bool"""
3084 return _gdi
.MetaFile_SetClipboard(*args
, **kwargs
)
3086 def GetSize(*args
, **kwargs
):
3087 """GetSize() -> Size"""
3088 return _gdi
.MetaFile_GetSize(*args
, **kwargs
)
3090 def GetWidth(*args
, **kwargs
):
3091 """GetWidth() -> int"""
3092 return _gdi
.MetaFile_GetWidth(*args
, **kwargs
)
3094 def GetHeight(*args
, **kwargs
):
3095 """GetHeight() -> int"""
3096 return _gdi
.MetaFile_GetHeight(*args
, **kwargs
)
3098 def GetFileName(*args
, **kwargs
):
3099 """GetFileName() -> wxString"""
3100 return _gdi
.MetaFile_GetFileName(*args
, **kwargs
)
3102 def __nonzero__(self
): return self
.Ok()
3104 class MetaFilePtr(MetaFile
):
3105 def __init__(self
, this
):
3107 if not hasattr(self
,"thisown"): self
.thisown
= 0
3108 self
.__class
__ = MetaFile
3109 _gdi
.MetaFile_swigregister(MetaFilePtr
)
3111 class MetaFileDC(DC
):
3113 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3114 def __init__(self
, *args
, **kwargs
):
3116 __init__(wxString filename=wxPyEmptyString, int width=0, int height=0,
3117 wxString description=wxPyEmptyString) -> MetaFileDC
3119 newobj
= _gdi
.new_MetaFileDC(*args
, **kwargs
)
3120 self
.this
= newobj
.this
3123 def Close(*args
, **kwargs
):
3124 """Close() -> MetaFile"""
3125 return _gdi
.MetaFileDC_Close(*args
, **kwargs
)
3128 class MetaFileDCPtr(MetaFileDC
):
3129 def __init__(self
, this
):
3131 if not hasattr(self
,"thisown"): self
.thisown
= 0
3132 self
.__class
__ = MetaFileDC
3133 _gdi
.MetaFileDC_swigregister(MetaFileDCPtr
)
3135 class PrinterDC(DC
):
3137 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3138 def __init__(self
, *args
, **kwargs
):
3139 """__init__(wxPrintData printData) -> PrinterDC"""
3140 newobj
= _gdi
.new_PrinterDC(*args
, **kwargs
)
3141 self
.this
= newobj
.this
3145 class PrinterDCPtr(PrinterDC
):
3146 def __init__(self
, this
):
3148 if not hasattr(self
,"thisown"): self
.thisown
= 0
3149 self
.__class
__ = PrinterDC
3150 _gdi
.PrinterDC_swigregister(PrinterDCPtr
)
3152 #---------------------------------------------------------------------------
3154 IMAGELIST_DRAW_NORMAL
= _gdi
.IMAGELIST_DRAW_NORMAL
3155 IMAGELIST_DRAW_TRANSPARENT
= _gdi
.IMAGELIST_DRAW_TRANSPARENT
3156 IMAGELIST_DRAW_SELECTED
= _gdi
.IMAGELIST_DRAW_SELECTED
3157 IMAGELIST_DRAW_FOCUSED
= _gdi
.IMAGELIST_DRAW_FOCUSED
3158 IMAGE_LIST_NORMAL
= _gdi
.IMAGE_LIST_NORMAL
3159 IMAGE_LIST_SMALL
= _gdi
.IMAGE_LIST_SMALL
3160 IMAGE_LIST_STATE
= _gdi
.IMAGE_LIST_STATE
3161 class ImageList(core
.Object
):
3163 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3164 def __init__(self
, *args
, **kwargs
):
3165 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3166 newobj
= _gdi
.new_ImageList(*args
, **kwargs
)
3167 self
.this
= newobj
.this
3170 def __del__(self
, destroy
=_gdi
.delete_ImageList
):
3173 if self
.thisown
: destroy(self
)
3176 def Add(*args
, **kwargs
):
3177 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3178 return _gdi
.ImageList_Add(*args
, **kwargs
)
3180 def AddWithColourMask(*args
, **kwargs
):
3181 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
3182 return _gdi
.ImageList_AddWithColourMask(*args
, **kwargs
)
3184 def AddIcon(*args
, **kwargs
):
3185 """AddIcon(Icon icon) -> int"""
3186 return _gdi
.ImageList_AddIcon(*args
, **kwargs
)
3188 def Replace(*args
, **kwargs
):
3189 """Replace(int index, Bitmap bitmap, Bitmap mask=NullBitmap) -> bool"""
3190 return _gdi
.ImageList_Replace(*args
, **kwargs
)
3192 def Draw(*args
, **kwargs
):
3194 Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3195 bool solidBackground=False) -> bool
3197 return _gdi
.ImageList_Draw(*args
, **kwargs
)
3199 def GetImageCount(*args
, **kwargs
):
3200 """GetImageCount() -> int"""
3201 return _gdi
.ImageList_GetImageCount(*args
, **kwargs
)
3203 def Remove(*args
, **kwargs
):
3204 """Remove(int index) -> bool"""
3205 return _gdi
.ImageList_Remove(*args
, **kwargs
)
3207 def RemoveAll(*args
, **kwargs
):
3208 """RemoveAll() -> bool"""
3209 return _gdi
.ImageList_RemoveAll(*args
, **kwargs
)
3211 def GetSize(*args
, **kwargs
):
3212 """GetSize() -> (width,height)"""
3213 return _gdi
.ImageList_GetSize(*args
, **kwargs
)
3216 class ImageListPtr(ImageList
):
3217 def __init__(self
, this
):
3219 if not hasattr(self
,"thisown"): self
.thisown
= 0
3220 self
.__class
__ = ImageList
3221 _gdi
.ImageList_swigregister(ImageListPtr
)
3223 #---------------------------------------------------------------------------
3225 class PenList(core
.Object
):
3226 def __init__(self
): raise RuntimeError, "No constructor defined"
3228 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3229 def AddPen(*args
, **kwargs
):
3230 """AddPen(Pen pen)"""
3231 return _gdi
.PenList_AddPen(*args
, **kwargs
)
3233 def FindOrCreatePen(*args
, **kwargs
):
3234 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
3235 return _gdi
.PenList_FindOrCreatePen(*args
, **kwargs
)
3237 def RemovePen(*args
, **kwargs
):
3238 """RemovePen(Pen pen)"""
3239 return _gdi
.PenList_RemovePen(*args
, **kwargs
)
3241 def GetCount(*args
, **kwargs
):
3242 """GetCount() -> int"""
3243 return _gdi
.PenList_GetCount(*args
, **kwargs
)
3246 class PenListPtr(PenList
):
3247 def __init__(self
, this
):
3249 if not hasattr(self
,"thisown"): self
.thisown
= 0
3250 self
.__class
__ = PenList
3251 _gdi
.PenList_swigregister(PenListPtr
)
3253 class BrushList(core
.Object
):
3254 def __init__(self
): raise RuntimeError, "No constructor defined"
3256 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3257 def AddBrush(*args
, **kwargs
):
3258 """AddBrush(Brush brush)"""
3259 return _gdi
.BrushList_AddBrush(*args
, **kwargs
)
3261 def FindOrCreateBrush(*args
, **kwargs
):
3262 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
3263 return _gdi
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3265 def RemoveBrush(*args
, **kwargs
):
3266 """RemoveBrush(Brush brush)"""
3267 return _gdi
.BrushList_RemoveBrush(*args
, **kwargs
)
3269 def GetCount(*args
, **kwargs
):
3270 """GetCount() -> int"""
3271 return _gdi
.BrushList_GetCount(*args
, **kwargs
)
3274 class BrushListPtr(BrushList
):
3275 def __init__(self
, this
):
3277 if not hasattr(self
,"thisown"): self
.thisown
= 0
3278 self
.__class
__ = BrushList
3279 _gdi
.BrushList_swigregister(BrushListPtr
)
3281 class ColourDatabase(core
.Object
):
3283 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3284 def __init__(self
, *args
, **kwargs
):
3285 """__init__() -> ColourDatabase"""
3286 newobj
= _gdi
.new_ColourDatabase(*args
, **kwargs
)
3287 self
.this
= newobj
.this
3290 def __del__(self
, destroy
=_gdi
.delete_ColourDatabase
):
3293 if self
.thisown
: destroy(self
)
3296 def Find(*args
, **kwargs
):
3297 """Find(wxString name) -> Colour"""
3298 return _gdi
.ColourDatabase_Find(*args
, **kwargs
)
3300 def FindName(*args
, **kwargs
):
3301 """FindName(Colour colour) -> wxString"""
3302 return _gdi
.ColourDatabase_FindName(*args
, **kwargs
)
3305 def AddColour(*args
, **kwargs
):
3306 """AddColour(wxString name, Colour colour)"""
3307 return _gdi
.ColourDatabase_AddColour(*args
, **kwargs
)
3309 def Append(*args
, **kwargs
):
3310 """Append(wxString name, int red, int green, int blue)"""
3311 return _gdi
.ColourDatabase_Append(*args
, **kwargs
)
3314 class ColourDatabasePtr(ColourDatabase
):
3315 def __init__(self
, this
):
3317 if not hasattr(self
,"thisown"): self
.thisown
= 0
3318 self
.__class
__ = ColourDatabase
3319 _gdi
.ColourDatabase_swigregister(ColourDatabasePtr
)
3321 class FontList(core
.Object
):
3322 def __init__(self
): raise RuntimeError, "No constructor defined"
3324 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3325 def AddFont(*args
, **kwargs
):
3326 """AddFont(Font font)"""
3327 return _gdi
.FontList_AddFont(*args
, **kwargs
)
3329 def FindOrCreateFont(*args
, **kwargs
):
3331 FindOrCreateFont(int point_size, int family, int style, int weight,
3332 bool underline=False, wxString facename=wxPyEmptyString,
3333 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font
3335 return _gdi
.FontList_FindOrCreateFont(*args
, **kwargs
)
3337 def RemoveFont(*args
, **kwargs
):
3338 """RemoveFont(Font font)"""
3339 return _gdi
.FontList_RemoveFont(*args
, **kwargs
)
3341 def GetCount(*args
, **kwargs
):
3342 """GetCount() -> int"""
3343 return _gdi
.FontList_GetCount(*args
, **kwargs
)
3346 class FontListPtr(FontList
):
3347 def __init__(self
, this
):
3349 if not hasattr(self
,"thisown"): self
.thisown
= 0
3350 self
.__class
__ = FontList
3351 _gdi
.FontList_swigregister(FontListPtr
)
3353 #---------------------------------------------------------------------------
3355 #---------------------------------------------------------------------------
3357 class Effects(core
.Object
):
3359 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3360 def __init__(self
, *args
, **kwargs
):
3361 """__init__() -> Effects"""
3362 newobj
= _gdi
.new_Effects(*args
, **kwargs
)
3363 self
.this
= newobj
.this
3366 def GetHighlightColour(*args
, **kwargs
):
3367 """GetHighlightColour() -> Colour"""
3368 return _gdi
.Effects_GetHighlightColour(*args
, **kwargs
)
3370 def GetLightShadow(*args
, **kwargs
):
3371 """GetLightShadow() -> Colour"""
3372 return _gdi
.Effects_GetLightShadow(*args
, **kwargs
)
3374 def GetFaceColour(*args
, **kwargs
):
3375 """GetFaceColour() -> Colour"""
3376 return _gdi
.Effects_GetFaceColour(*args
, **kwargs
)
3378 def GetMediumShadow(*args
, **kwargs
):
3379 """GetMediumShadow() -> Colour"""
3380 return _gdi
.Effects_GetMediumShadow(*args
, **kwargs
)
3382 def GetDarkShadow(*args
, **kwargs
):
3383 """GetDarkShadow() -> Colour"""
3384 return _gdi
.Effects_GetDarkShadow(*args
, **kwargs
)
3386 def SetHighlightColour(*args
, **kwargs
):
3387 """SetHighlightColour(Colour c)"""
3388 return _gdi
.Effects_SetHighlightColour(*args
, **kwargs
)
3390 def SetLightShadow(*args
, **kwargs
):
3391 """SetLightShadow(Colour c)"""
3392 return _gdi
.Effects_SetLightShadow(*args
, **kwargs
)
3394 def SetFaceColour(*args
, **kwargs
):
3395 """SetFaceColour(Colour c)"""
3396 return _gdi
.Effects_SetFaceColour(*args
, **kwargs
)
3398 def SetMediumShadow(*args
, **kwargs
):
3399 """SetMediumShadow(Colour c)"""
3400 return _gdi
.Effects_SetMediumShadow(*args
, **kwargs
)
3402 def SetDarkShadow(*args
, **kwargs
):
3403 """SetDarkShadow(Colour c)"""
3404 return _gdi
.Effects_SetDarkShadow(*args
, **kwargs
)
3406 def Set(*args
, **kwargs
):
3408 Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3409 Colour mediumShadow, Colour darkShadow)
3411 return _gdi
.Effects_Set(*args
, **kwargs
)
3413 def DrawSunkenEdge(*args
, **kwargs
):
3414 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3415 return _gdi
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3417 def TileBitmap(*args
, **kwargs
):
3418 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3419 return _gdi
.Effects_TileBitmap(*args
, **kwargs
)
3422 class EffectsPtr(Effects
):
3423 def __init__(self
, this
):
3425 if not hasattr(self
,"thisown"): self
.thisown
= 0
3426 self
.__class
__ = Effects
3427 _gdi
.Effects_swigregister(EffectsPtr
)
3429 NORMAL_FONT
= cvar
.NORMAL_FONT
3430 SMALL_FONT
= cvar
.SMALL_FONT
3431 ITALIC_FONT
= cvar
.ITALIC_FONT
3432 SWISS_FONT
= cvar
.SWISS_FONT
3433 RED_PEN
= cvar
.RED_PEN
3434 CYAN_PEN
= cvar
.CYAN_PEN
3435 GREEN_PEN
= cvar
.GREEN_PEN
3436 BLACK_PEN
= cvar
.BLACK_PEN
3437 WHITE_PEN
= cvar
.WHITE_PEN
3438 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3439 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3440 GREY_PEN
= cvar
.GREY_PEN
3441 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3442 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3443 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3444 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3445 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3446 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3447 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3448 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3449 RED_BRUSH
= cvar
.RED_BRUSH
3450 GREY_BRUSH
= cvar
.GREY_BRUSH
3451 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3452 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3459 LIGHT_GREY
= cvar
.LIGHT_GREY
3460 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3461 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3462 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3463 NullBitmap
= cvar
.NullBitmap
3464 NullIcon
= cvar
.NullIcon
3465 NullCursor
= cvar
.NullCursor
3466 NullPen
= cvar
.NullPen
3467 NullBrush
= cvar
.NullBrush
3468 NullPalette
= cvar
.NullPalette
3469 NullFont
= cvar
.NullFont
3470 NullColour
= cvar
.NullColour
3471 TheFontList
= cvar
.TheFontList
3472 ThePenList
= cvar
.ThePenList
3473 TheBrushList
= cvar
.TheBrushList
3474 TheColourDatabase
= cvar
.TheColourDatabase