1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 class GDIObject(core
.Object
):
12 return "<%s.%s; proxy of C++ wxGDIObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
13 def __init__(self
, *args
, **kwargs
):
14 """__init__() -> GDIObject"""
15 newobj
= _gdi
.new_GDIObject(*args
, **kwargs
)
16 self
.this
= newobj
.this
19 def __del__(self
, destroy
=_gdi
.delete_GDIObject
):
22 if self
.thisown
: destroy(self
)
25 def GetVisible(*args
, **kwargs
):
26 """GetVisible() -> bool"""
27 return _gdi
.GDIObject_GetVisible(*args
, **kwargs
)
29 def SetVisible(*args
, **kwargs
):
30 """SetVisible(bool visible)"""
31 return _gdi
.GDIObject_SetVisible(*args
, **kwargs
)
33 def IsNull(*args
, **kwargs
):
34 """IsNull() -> bool"""
35 return _gdi
.GDIObject_IsNull(*args
, **kwargs
)
38 class GDIObjectPtr(GDIObject
):
39 def __init__(self
, this
):
41 if not hasattr(self
,"thisown"): self
.thisown
= 0
42 self
.__class
__ = GDIObject
43 _gdi
.GDIObject_swigregister(GDIObjectPtr
)
45 #---------------------------------------------------------------------------
47 class Colour(core
.Object
):
49 return "<%s.%s; proxy of C++ wxColour instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
50 def __init__(self
, *args
, **kwargs
):
51 """__init__(unsigned char red=0, unsigned char green=0, unsigned char blue=0) -> Colour"""
52 newobj
= _gdi
.new_Colour(*args
, **kwargs
)
53 self
.this
= newobj
.this
56 def __del__(self
, destroy
=_gdi
.delete_Colour
):
59 if self
.thisown
: destroy(self
)
62 def Red(*args
, **kwargs
):
63 """Red() -> unsigned char"""
64 return _gdi
.Colour_Red(*args
, **kwargs
)
66 def Green(*args
, **kwargs
):
67 """Green() -> unsigned char"""
68 return _gdi
.Colour_Green(*args
, **kwargs
)
70 def Blue(*args
, **kwargs
):
71 """Blue() -> unsigned char"""
72 return _gdi
.Colour_Blue(*args
, **kwargs
)
74 def Ok(*args
, **kwargs
):
76 return _gdi
.Colour_Ok(*args
, **kwargs
)
78 def Set(*args
, **kwargs
):
79 """Set(unsigned char red, unsigned char green, unsigned char blue)"""
80 return _gdi
.Colour_Set(*args
, **kwargs
)
82 def SetRGB(*args
, **kwargs
):
83 """SetRGB(unsigned long colRGB)"""
84 return _gdi
.Colour_SetRGB(*args
, **kwargs
)
86 def __eq__(*args
, **kwargs
):
87 """__eq__(Colour colour) -> bool"""
88 return _gdi
.Colour___eq__(*args
, **kwargs
)
90 def __ne__(*args
, **kwargs
):
91 """__ne__(Colour colour) -> bool"""
92 return _gdi
.Colour___ne__(*args
, **kwargs
)
94 def InitFromName(*args
, **kwargs
):
95 """InitFromName(String colourName)"""
96 return _gdi
.Colour_InitFromName(*args
, **kwargs
)
98 def Get(*args
, **kwargs
):
99 """Get() -> PyObject"""
100 return _gdi
.Colour_Get(*args
, **kwargs
)
103 def __str__(self
): return str(self
.asTuple())
104 def __repr__(self
): return 'wx.Colour' + str(self
.asTuple())
105 def __nonzero__(self
): return self
.Ok()
106 def __getinitargs__(self
): return ()
107 def __getstate__(self
): return self
.asTuple()
108 def __setstate__(self
, state
): self
.Set(*state
)
111 class ColourPtr(Colour
):
112 def __init__(self
, this
):
114 if not hasattr(self
,"thisown"): self
.thisown
= 0
115 self
.__class
__ = Colour
116 _gdi
.Colour_swigregister(ColourPtr
)
118 def NamedColour(*args
, **kwargs
):
119 """NamedColour(String colorName) -> Colour"""
120 val
= _gdi
.new_NamedColour(*args
, **kwargs
)
124 def ColourRGB(*args
, **kwargs
):
125 """ColourRGB(unsigned long colRGB) -> Colour"""
126 val
= _gdi
.new_ColourRGB(*args
, **kwargs
)
130 class Palette(GDIObject
):
132 return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
133 def __init__(self
, *args
, **kwargs
):
134 """__init__(int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette"""
135 newobj
= _gdi
.new_Palette(*args
, **kwargs
)
136 self
.this
= newobj
.this
139 def __del__(self
, destroy
=_gdi
.delete_Palette
):
142 if self
.thisown
: destroy(self
)
145 def GetPixel(*args
, **kwargs
):
146 """GetPixel(byte red, byte green, byte blue) -> int"""
147 return _gdi
.Palette_GetPixel(*args
, **kwargs
)
149 def GetRGB(*args
, **kwargs
):
150 """GetRGB(int pixel) -> (R,G,B)"""
151 return _gdi
.Palette_GetRGB(*args
, **kwargs
)
153 def Ok(*args
, **kwargs
):
155 return _gdi
.Palette_Ok(*args
, **kwargs
)
157 def __nonzero__(self
): return self
.Ok()
159 class PalettePtr(Palette
):
160 def __init__(self
, this
):
162 if not hasattr(self
,"thisown"): self
.thisown
= 0
163 self
.__class
__ = Palette
164 _gdi
.Palette_swigregister(PalettePtr
)
166 #---------------------------------------------------------------------------
168 class Pen(GDIObject
):
170 return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
171 def __init__(self
, *args
, **kwargs
):
172 """__init__(Colour colour, int width=1, int style=SOLID) -> Pen"""
173 newobj
= _gdi
.new_Pen(*args
, **kwargs
)
174 self
.this
= newobj
.this
177 def __del__(self
, destroy
=_gdi
.delete_Pen
):
180 if self
.thisown
: destroy(self
)
183 def GetCap(*args
, **kwargs
):
184 """GetCap() -> int"""
185 return _gdi
.Pen_GetCap(*args
, **kwargs
)
187 def GetColour(*args
, **kwargs
):
188 """GetColour() -> Colour"""
189 return _gdi
.Pen_GetColour(*args
, **kwargs
)
191 def GetJoin(*args
, **kwargs
):
192 """GetJoin() -> int"""
193 return _gdi
.Pen_GetJoin(*args
, **kwargs
)
195 def GetStyle(*args
, **kwargs
):
196 """GetStyle() -> int"""
197 return _gdi
.Pen_GetStyle(*args
, **kwargs
)
199 def GetWidth(*args
, **kwargs
):
200 """GetWidth() -> int"""
201 return _gdi
.Pen_GetWidth(*args
, **kwargs
)
203 def Ok(*args
, **kwargs
):
205 return _gdi
.Pen_Ok(*args
, **kwargs
)
207 def SetCap(*args
, **kwargs
):
208 """SetCap(int cap_style)"""
209 return _gdi
.Pen_SetCap(*args
, **kwargs
)
211 def SetColour(*args
, **kwargs
):
212 """SetColour(Colour colour)"""
213 return _gdi
.Pen_SetColour(*args
, **kwargs
)
215 def SetJoin(*args
, **kwargs
):
216 """SetJoin(int join_style)"""
217 return _gdi
.Pen_SetJoin(*args
, **kwargs
)
219 def SetStyle(*args
, **kwargs
):
220 """SetStyle(int style)"""
221 return _gdi
.Pen_SetStyle(*args
, **kwargs
)
223 def SetWidth(*args
, **kwargs
):
224 """SetWidth(int width)"""
225 return _gdi
.Pen_SetWidth(*args
, **kwargs
)
227 def SetDashes(*args
, **kwargs
):
228 """SetDashes(int dashes, wxDash dashes_array)"""
229 return _gdi
.Pen_SetDashes(*args
, **kwargs
)
231 def GetDashes(*args
, **kwargs
):
232 """GetDashes() -> PyObject"""
233 return _gdi
.Pen_GetDashes(*args
, **kwargs
)
235 def GetDashCount(*args
, **kwargs
):
236 """GetDashCount() -> int"""
237 return _gdi
.Pen_GetDashCount(*args
, **kwargs
)
239 def GetStipple(*args
, **kwargs
):
240 """GetStipple() -> Bitmap"""
241 return _gdi
.Pen_GetStipple(*args
, **kwargs
)
243 def SetStipple(*args
, **kwargs
):
244 """SetStipple(Bitmap stipple)"""
245 return _gdi
.Pen_SetStipple(*args
, **kwargs
)
247 def __nonzero__(self
): return self
.Ok()
250 def __init__(self
, this
):
252 if not hasattr(self
,"thisown"): self
.thisown
= 0
254 _gdi
.Pen_swigregister(PenPtr
)
258 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
259 def __init__(self
, *args
, **kwargs
):
260 """__init__(Colour colour, int width=1, int style=SOLID) -> PyPen"""
261 newobj
= _gdi
.new_PyPen(*args
, **kwargs
)
262 self
.this
= newobj
.this
265 def __del__(self
, destroy
=_gdi
.delete_PyPen
):
268 if self
.thisown
: destroy(self
)
271 def SetDashes(*args
, **kwargs
):
272 """SetDashes(int dashes, wxDash dashes_array)"""
273 return _gdi
.PyPen_SetDashes(*args
, **kwargs
)
276 class PyPenPtr(PyPen
):
277 def __init__(self
, this
):
279 if not hasattr(self
,"thisown"): self
.thisown
= 0
280 self
.__class
__ = PyPen
281 _gdi
.PyPen_swigregister(PyPenPtr
)
284 #---------------------------------------------------------------------------
286 class Brush(GDIObject
):
288 A brush is a drawing tool for filling in areas. It is used for painting the
289 background of rectangles, ellipses, etc. It has a colour and a style.
292 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
293 def __init__(self
, *args
, **kwargs
):
295 __init__(Colour colour, int style=SOLID) -> Brush
297 Constructs a brush from a colour object and style.
299 newobj
= _gdi
.new_Brush(*args
, **kwargs
)
300 self
.this
= newobj
.this
303 def __del__(self
, destroy
=_gdi
.delete_Brush
):
306 if self
.thisown
: destroy(self
)
309 def SetColour(*args
, **kwargs
):
310 """SetColour(Colour col)"""
311 return _gdi
.Brush_SetColour(*args
, **kwargs
)
313 def SetStyle(*args
, **kwargs
):
314 """SetStyle(int style)"""
315 return _gdi
.Brush_SetStyle(*args
, **kwargs
)
317 def SetStipple(*args
, **kwargs
):
318 """SetStipple(Bitmap stipple)"""
319 return _gdi
.Brush_SetStipple(*args
, **kwargs
)
321 def GetColour(*args
, **kwargs
):
322 """GetColour() -> Colour"""
323 return _gdi
.Brush_GetColour(*args
, **kwargs
)
325 def GetStyle(*args
, **kwargs
):
326 """GetStyle() -> int"""
327 return _gdi
.Brush_GetStyle(*args
, **kwargs
)
329 def GetStipple(*args
, **kwargs
):
330 """GetStipple() -> Bitmap"""
331 return _gdi
.Brush_GetStipple(*args
, **kwargs
)
333 def Ok(*args
, **kwargs
):
335 return _gdi
.Brush_Ok(*args
, **kwargs
)
337 def __nonzero__(self
): return self
.Ok()
339 class BrushPtr(Brush
):
340 def __init__(self
, this
):
342 if not hasattr(self
,"thisown"): self
.thisown
= 0
343 self
.__class
__ = Brush
344 _gdi
.Brush_swigregister(BrushPtr
)
346 class Bitmap(GDIObject
):
348 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
349 def __init__(self
, *args
, **kwargs
):
351 __init__(String name, int type=BITMAP_TYPE_ANY) -> Bitmap
353 Loads a bitmap from a file.
355 newobj
= _gdi
.new_Bitmap(*args
, **kwargs
)
356 self
.this
= newobj
.this
359 def __del__(self
, destroy
=_gdi
.delete_Bitmap
):
362 if self
.thisown
: destroy(self
)
365 def SetPalette(*args
, **kwargs
):
366 """SetPalette(Palette palette)"""
367 return _gdi
.Bitmap_SetPalette(*args
, **kwargs
)
369 def GetHandle(*args
, **kwargs
):
370 """GetHandle() -> long"""
371 return _gdi
.Bitmap_GetHandle(*args
, **kwargs
)
373 def SetHandle(*args
, **kwargs
):
374 """SetHandle(long handle)"""
375 return _gdi
.Bitmap_SetHandle(*args
, **kwargs
)
377 def Ok(*args
, **kwargs
):
379 return _gdi
.Bitmap_Ok(*args
, **kwargs
)
381 def GetWidth(*args
, **kwargs
):
385 Gets the width of the bitmap in pixels.
387 return _gdi
.Bitmap_GetWidth(*args
, **kwargs
)
389 def GetHeight(*args
, **kwargs
):
393 Gets the height of the bitmap in pixels.
395 return _gdi
.Bitmap_GetHeight(*args
, **kwargs
)
397 def GetDepth(*args
, **kwargs
):
401 Gets the colour depth of the bitmap. A value of 1 indicates a
404 return _gdi
.Bitmap_GetDepth(*args
, **kwargs
)
406 def ConvertToImage(*args
, **kwargs
):
408 ConvertToImage() -> Image
410 Creates a platform-independent image from a platform-dependent bitmap. This
411 preserves mask information so that bitmaps and images can be converted back
412 and forth without loss in that respect.
414 return _gdi
.Bitmap_ConvertToImage(*args
, **kwargs
)
416 def GetMask(*args
, **kwargs
):
420 Gets the associated mask (if any) which may have been loaded from a file
421 or explpicitly set for the bitmap.
423 return _gdi
.Bitmap_GetMask(*args
, **kwargs
)
425 def SetMask(*args
, **kwargs
):
429 Sets the mask for this bitmap.
431 return _gdi
.Bitmap_SetMask(*args
, **kwargs
)
433 def SetMaskColour(*args
, **kwargs
):
435 SetMaskColour(Colour colour)
437 Create a Mask based on a specified colour in the Bitmap.
439 return _gdi
.Bitmap_SetMaskColour(*args
, **kwargs
)
441 def GetSubBitmap(*args
, **kwargs
):
443 GetSubBitmap(Rect rect) -> Bitmap
445 Returns a sub bitmap of the current one as long as the rect belongs entirely
446 to the bitmap. This function preserves bit depth and mask information.
448 return _gdi
.Bitmap_GetSubBitmap(*args
, **kwargs
)
450 def SaveFile(*args
, **kwargs
):
452 SaveFile(String name, int type, Palette palette=(wxPalette *) NULL) -> bool
454 Saves a bitmap in the named file.
456 return _gdi
.Bitmap_SaveFile(*args
, **kwargs
)
458 def LoadFile(*args
, **kwargs
):
460 LoadFile(String name, int type) -> bool
462 Loads a bitmap from a file
464 return _gdi
.Bitmap_LoadFile(*args
, **kwargs
)
466 def CopyFromIcon(*args
, **kwargs
):
467 """CopyFromIcon(Icon icon) -> bool"""
468 return _gdi
.Bitmap_CopyFromIcon(*args
, **kwargs
)
470 def SetHeight(*args
, **kwargs
):
472 SetHeight(int height)
474 Set the height property (does not affect the bitmap data).
476 return _gdi
.Bitmap_SetHeight(*args
, **kwargs
)
478 def SetWidth(*args
, **kwargs
):
482 Set the width property (does not affect the bitmap data).
484 return _gdi
.Bitmap_SetWidth(*args
, **kwargs
)
486 def SetDepth(*args
, **kwargs
):
490 Set the depth property (does not affect the bitmap data).
492 return _gdi
.Bitmap_SetDepth(*args
, **kwargs
)
494 def CopyFromCursor(*args
, **kwargs
):
495 """CopyFromCursor(Cursor cursor) -> bool"""
496 return _gdi
.Bitmap_CopyFromCursor(*args
, **kwargs
)
498 def GetQuality(*args
, **kwargs
):
499 """GetQuality() -> int"""
500 return _gdi
.Bitmap_GetQuality(*args
, **kwargs
)
502 def SetQuality(*args
, **kwargs
):
503 """SetQuality(int q)"""
504 return _gdi
.Bitmap_SetQuality(*args
, **kwargs
)
506 def __nonzero__(self
): return self
.Ok()
508 class BitmapPtr(Bitmap
):
509 def __init__(self
, this
):
511 if not hasattr(self
,"thisown"): self
.thisown
= 0
512 self
.__class
__ = Bitmap
513 _gdi
.Bitmap_swigregister(BitmapPtr
)
515 def EmptyBitmap(*args
, **kwargs
):
517 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
519 Creates a new bitmap of the given size. A depth of -1 indicates the depth of
520 the current screen or visual. Some platforms only support 1 for monochrome and
521 -1 for the current colour setting.
523 val
= _gdi
.new_EmptyBitmap(*args
, **kwargs
)
527 def BitmapFromIcon(*args
, **kwargs
):
529 BitmapFromIcon(Icon icon) -> Bitmap
531 Create a new bitmap from an Icon object.
533 val
= _gdi
.new_BitmapFromIcon(*args
, **kwargs
)
537 def BitmapFromImage(*args
, **kwargs
):
539 BitmapFromImage(Image image, int depth=-1) -> Bitmap
541 Creates bitmap object from the image. This has to be done to actually display
542 an image as you cannot draw an image directly on a window. The resulting
543 bitmap will use the provided colour depth (or that of the current system if
544 depth is -1) which entails that a colour reduction has to take place.
546 val
= _gdi
.new_BitmapFromImage(*args
, **kwargs
)
550 def BitmapFromXPMData(*args
, **kwargs
):
552 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
554 Construct a Bitmap from a list of strings formatted as XPM data.
556 val
= _gdi
.new_BitmapFromXPMData(*args
, **kwargs
)
560 def BitmapFromBits(*args
, **kwargs
):
562 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
564 Creates a bitmap from an array of bits. You should only use this function for
565 monochrome bitmaps (depth 1) in portable programs: in this case the bits
566 parameter should contain an XBM image. For other bit depths, the behaviour is
569 val
= _gdi
.new_BitmapFromBits(*args
, **kwargs
)
573 class Mask(core
.Object
):
575 This class encapsulates a monochrome mask bitmap, where the masked area is
576 black and the unmasked area is white. When associated with a bitmap and drawn
577 in a device context, the unmasked area of the bitmap will be drawn, and the
578 masked area will not be drawn.
581 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
582 def __init__(self
, *args
, **kwargs
):
584 __init__(Bitmap bitmap) -> Mask
586 Constructs a mask from a monochrome bitmap.
588 newobj
= _gdi
.new_Mask(*args
, **kwargs
)
589 self
.this
= newobj
.this
594 def __init__(self
, this
):
596 if not hasattr(self
,"thisown"): self
.thisown
= 0
597 self
.__class
__ = Mask
598 _gdi
.Mask_swigregister(MaskPtr
)
600 def MaskColour(*args
, **kwargs
):
602 MaskColour(Bitmap bitmap, Colour colour) -> Mask
604 Constructs a mask from a bitmap and a colour in that bitmap that indicates the
607 val
= _gdi
.new_MaskColour(*args
, **kwargs
)
611 class Icon(GDIObject
):
613 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
614 def __init__(self
, *args
, **kwargs
):
615 """__init__(String name, long flags, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
616 newobj
= _gdi
.new_Icon(*args
, **kwargs
)
617 self
.this
= newobj
.this
620 def __del__(self
, destroy
=_gdi
.delete_Icon
):
623 if self
.thisown
: destroy(self
)
626 def LoadFile(*args
, **kwargs
):
627 """LoadFile(String name, long flags) -> bool"""
628 return _gdi
.Icon_LoadFile(*args
, **kwargs
)
630 def GetHandle(*args
, **kwargs
):
631 """GetHandle() -> long"""
632 return _gdi
.Icon_GetHandle(*args
, **kwargs
)
634 def SetHandle(*args
, **kwargs
):
635 """SetHandle(long handle)"""
636 return _gdi
.Icon_SetHandle(*args
, **kwargs
)
638 def Ok(*args
, **kwargs
):
640 return _gdi
.Icon_Ok(*args
, **kwargs
)
642 def GetWidth(*args
, **kwargs
):
643 """GetWidth() -> int"""
644 return _gdi
.Icon_GetWidth(*args
, **kwargs
)
646 def GetHeight(*args
, **kwargs
):
647 """GetHeight() -> int"""
648 return _gdi
.Icon_GetHeight(*args
, **kwargs
)
650 def GetDepth(*args
, **kwargs
):
651 """GetDepth() -> int"""
652 return _gdi
.Icon_GetDepth(*args
, **kwargs
)
654 def SetWidth(*args
, **kwargs
):
655 """SetWidth(int w)"""
656 return _gdi
.Icon_SetWidth(*args
, **kwargs
)
658 def SetHeight(*args
, **kwargs
):
659 """SetHeight(int h)"""
660 return _gdi
.Icon_SetHeight(*args
, **kwargs
)
662 def SetDepth(*args
, **kwargs
):
663 """SetDepth(int d)"""
664 return _gdi
.Icon_SetDepth(*args
, **kwargs
)
666 def SetSize(*args
, **kwargs
):
667 """SetSize(Size size)"""
668 return _gdi
.Icon_SetSize(*args
, **kwargs
)
670 def CopyFromBitmap(*args
, **kwargs
):
671 """CopyFromBitmap(Bitmap bmp)"""
672 return _gdi
.Icon_CopyFromBitmap(*args
, **kwargs
)
674 def __nonzero__(self
): return self
.Ok()
677 def __init__(self
, this
):
679 if not hasattr(self
,"thisown"): self
.thisown
= 0
680 self
.__class
__ = Icon
681 _gdi
.Icon_swigregister(IconPtr
)
683 def EmptyIcon(*args
, **kwargs
):
684 """EmptyIcon() -> Icon"""
685 val
= _gdi
.new_EmptyIcon(*args
, **kwargs
)
689 def IconFromLocation(*args
, **kwargs
):
690 """IconFromLocation(IconLocation loc) -> Icon"""
691 val
= _gdi
.new_IconFromLocation(*args
, **kwargs
)
695 def IconFromBitmap(*args
, **kwargs
):
696 """IconFromBitmap(Bitmap bmp) -> Icon"""
697 val
= _gdi
.new_IconFromBitmap(*args
, **kwargs
)
701 def IconFromXPMData(*args
, **kwargs
):
702 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
703 val
= _gdi
.new_IconFromXPMData(*args
, **kwargs
)
707 class IconLocation(object):
709 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
710 def __init__(self
, *args
, **kwargs
):
711 """__init__(String filename=&wxPyEmptyString, int num=0) -> IconLocation"""
712 newobj
= _gdi
.new_IconLocation(*args
, **kwargs
)
713 self
.this
= newobj
.this
716 def __del__(self
, destroy
=_gdi
.delete_IconLocation
):
719 if self
.thisown
: destroy(self
)
722 def IsOk(*args
, **kwargs
):
724 return _gdi
.IconLocation_IsOk(*args
, **kwargs
)
726 def __nonzero__(self
): return self
.Ok()
727 def SetFileName(*args
, **kwargs
):
728 """SetFileName(String filename)"""
729 return _gdi
.IconLocation_SetFileName(*args
, **kwargs
)
731 def GetFileName(*args
, **kwargs
):
732 """GetFileName() -> String"""
733 return _gdi
.IconLocation_GetFileName(*args
, **kwargs
)
735 def SetIndex(*args
, **kwargs
):
736 """SetIndex(int num)"""
737 return _gdi
.IconLocation_SetIndex(*args
, **kwargs
)
739 def GetIndex(*args
, **kwargs
):
740 """GetIndex() -> int"""
741 return _gdi
.IconLocation_GetIndex(*args
, **kwargs
)
744 class IconLocationPtr(IconLocation
):
745 def __init__(self
, this
):
747 if not hasattr(self
,"thisown"): self
.thisown
= 0
748 self
.__class
__ = IconLocation
749 _gdi
.IconLocation_swigregister(IconLocationPtr
)
751 class IconBundle(object):
753 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
754 def __init__(self
, *args
, **kwargs
):
755 """__init__() -> IconBundle"""
756 newobj
= _gdi
.new_IconBundle(*args
, **kwargs
)
757 self
.this
= newobj
.this
760 def __del__(self
, destroy
=_gdi
.delete_IconBundle
):
763 if self
.thisown
: destroy(self
)
766 def AddIcon(*args
, **kwargs
):
767 """AddIcon(Icon icon)"""
768 return _gdi
.IconBundle_AddIcon(*args
, **kwargs
)
770 def AddIconFromFile(*args
, **kwargs
):
771 """AddIconFromFile(String file, long type)"""
772 return _gdi
.IconBundle_AddIconFromFile(*args
, **kwargs
)
774 def GetIcon(*args
, **kwargs
):
775 """GetIcon(Size size) -> Icon"""
776 return _gdi
.IconBundle_GetIcon(*args
, **kwargs
)
779 class IconBundlePtr(IconBundle
):
780 def __init__(self
, this
):
782 if not hasattr(self
,"thisown"): self
.thisown
= 0
783 self
.__class
__ = IconBundle
784 _gdi
.IconBundle_swigregister(IconBundlePtr
)
786 def IconBundleFromFile(*args
, **kwargs
):
787 """IconBundleFromFile(String file, long type) -> IconBundle"""
788 val
= _gdi
.new_IconBundleFromFile(*args
, **kwargs
)
792 def IconBundleFromIcon(*args
, **kwargs
):
793 """IconBundleFromIcon(Icon icon) -> IconBundle"""
794 val
= _gdi
.new_IconBundleFromIcon(*args
, **kwargs
)
798 class Cursor(GDIObject
):
800 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
801 def __init__(self
, *args
, **kwargs
):
802 """__init__(String cursorName, long flags, int hotSpotX=0, int hotSpotY=0) -> Cursor"""
803 newobj
= _gdi
.new_Cursor(*args
, **kwargs
)
804 self
.this
= newobj
.this
807 def __del__(self
, destroy
=_gdi
.delete_Cursor
):
810 if self
.thisown
: destroy(self
)
813 def GetHandle(*args
, **kwargs
):
814 """GetHandle() -> long"""
815 return _gdi
.Cursor_GetHandle(*args
, **kwargs
)
817 def SetHandle(*args
, **kwargs
):
818 """SetHandle(long handle)"""
819 return _gdi
.Cursor_SetHandle(*args
, **kwargs
)
821 def Ok(*args
, **kwargs
):
823 return _gdi
.Cursor_Ok(*args
, **kwargs
)
825 def GetWidth(*args
, **kwargs
):
826 """GetWidth() -> int"""
827 return _gdi
.Cursor_GetWidth(*args
, **kwargs
)
829 def GetHeight(*args
, **kwargs
):
830 """GetHeight() -> int"""
831 return _gdi
.Cursor_GetHeight(*args
, **kwargs
)
833 def GetDepth(*args
, **kwargs
):
834 """GetDepth() -> int"""
835 return _gdi
.Cursor_GetDepth(*args
, **kwargs
)
837 def SetWidth(*args
, **kwargs
):
838 """SetWidth(int w)"""
839 return _gdi
.Cursor_SetWidth(*args
, **kwargs
)
841 def SetHeight(*args
, **kwargs
):
842 """SetHeight(int h)"""
843 return _gdi
.Cursor_SetHeight(*args
, **kwargs
)
845 def SetDepth(*args
, **kwargs
):
846 """SetDepth(int d)"""
847 return _gdi
.Cursor_SetDepth(*args
, **kwargs
)
849 def SetSize(*args
, **kwargs
):
850 """SetSize(Size size)"""
851 return _gdi
.Cursor_SetSize(*args
, **kwargs
)
853 def __nonzero__(self
): return self
.Ok()
855 class CursorPtr(Cursor
):
856 def __init__(self
, this
):
858 if not hasattr(self
,"thisown"): self
.thisown
= 0
859 self
.__class
__ = Cursor
860 _gdi
.Cursor_swigregister(CursorPtr
)
862 def StockCursor(*args
, **kwargs
):
863 """StockCursor(int id) -> Cursor"""
864 val
= _gdi
.new_StockCursor(*args
, **kwargs
)
868 def CursorFromImage(*args
, **kwargs
):
869 """CursorFromImage(Image image) -> Cursor"""
870 val
= _gdi
.new_CursorFromImage(*args
, **kwargs
)
874 def CursorFromBits(*args
, **kwargs
):
876 CursorFromBits(PyObject bits, int width, int height, int hotSpotX=-1,
877 int hotSpotY=-1, PyObject maskBits=0) -> Cursor
879 val
= _gdi
.new_CursorFromBits(*args
, **kwargs
)
883 #---------------------------------------------------------------------------
885 OutRegion
= _gdi
.OutRegion
886 PartRegion
= _gdi
.PartRegion
887 InRegion
= _gdi
.InRegion
888 class Region(GDIObject
):
890 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
891 def __init__(self
, *args
, **kwargs
):
892 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
893 newobj
= _gdi
.new_Region(*args
, **kwargs
)
894 self
.this
= newobj
.this
897 def __del__(self
, destroy
=_gdi
.delete_Region
):
900 if self
.thisown
: destroy(self
)
903 def Clear(*args
, **kwargs
):
905 return _gdi
.Region_Clear(*args
, **kwargs
)
907 def Offset(*args
, **kwargs
):
908 """Offset(int x, int y) -> bool"""
909 return _gdi
.Region_Offset(*args
, **kwargs
)
911 def Contains(*args
, **kwargs
):
912 """Contains(int x, int y) -> int"""
913 return _gdi
.Region_Contains(*args
, **kwargs
)
915 def ContainsPoint(*args
, **kwargs
):
916 """ContainsPoint(Point pt) -> int"""
917 return _gdi
.Region_ContainsPoint(*args
, **kwargs
)
919 def ContainsRect(*args
, **kwargs
):
920 """ContainsRect(Rect rect) -> int"""
921 return _gdi
.Region_ContainsRect(*args
, **kwargs
)
923 def ContainsRectDim(*args
, **kwargs
):
924 """ContainsRectDim(int x, int y, int w, int h) -> int"""
925 return _gdi
.Region_ContainsRectDim(*args
, **kwargs
)
927 def GetBox(*args
, **kwargs
):
928 """GetBox() -> Rect"""
929 return _gdi
.Region_GetBox(*args
, **kwargs
)
931 def Intersect(*args
, **kwargs
):
932 """Intersect(int x, int y, int width, int height) -> bool"""
933 return _gdi
.Region_Intersect(*args
, **kwargs
)
935 def IntersectRect(*args
, **kwargs
):
936 """IntersectRect(Rect rect) -> bool"""
937 return _gdi
.Region_IntersectRect(*args
, **kwargs
)
939 def IntersectRegion(*args
, **kwargs
):
940 """IntersectRegion(Region region) -> bool"""
941 return _gdi
.Region_IntersectRegion(*args
, **kwargs
)
943 def IsEmpty(*args
, **kwargs
):
944 """IsEmpty() -> bool"""
945 return _gdi
.Region_IsEmpty(*args
, **kwargs
)
947 def Union(*args
, **kwargs
):
948 """Union(int x, int y, int width, int height) -> bool"""
949 return _gdi
.Region_Union(*args
, **kwargs
)
951 def UnionRect(*args
, **kwargs
):
952 """UnionRect(Rect rect) -> bool"""
953 return _gdi
.Region_UnionRect(*args
, **kwargs
)
955 def UnionRegion(*args
, **kwargs
):
956 """UnionRegion(Region region) -> bool"""
957 return _gdi
.Region_UnionRegion(*args
, **kwargs
)
959 def Subtract(*args
, **kwargs
):
960 """Subtract(int x, int y, int width, int height) -> bool"""
961 return _gdi
.Region_Subtract(*args
, **kwargs
)
963 def SubtractRect(*args
, **kwargs
):
964 """SubtractRect(Rect rect) -> bool"""
965 return _gdi
.Region_SubtractRect(*args
, **kwargs
)
967 def SubtractRegion(*args
, **kwargs
):
968 """SubtractRegion(Region region) -> bool"""
969 return _gdi
.Region_SubtractRegion(*args
, **kwargs
)
971 def Xor(*args
, **kwargs
):
972 """Xor(int x, int y, int width, int height) -> bool"""
973 return _gdi
.Region_Xor(*args
, **kwargs
)
975 def XorRect(*args
, **kwargs
):
976 """XorRect(Rect rect) -> bool"""
977 return _gdi
.Region_XorRect(*args
, **kwargs
)
979 def XorRegion(*args
, **kwargs
):
980 """XorRegion(Region region) -> bool"""
981 return _gdi
.Region_XorRegion(*args
, **kwargs
)
983 def ConvertToBitmap(*args
, **kwargs
):
984 """ConvertToBitmap() -> Bitmap"""
985 return _gdi
.Region_ConvertToBitmap(*args
, **kwargs
)
987 def UnionBitmap(*args
, **kwargs
):
988 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
989 return _gdi
.Region_UnionBitmap(*args
, **kwargs
)
992 class RegionPtr(Region
):
993 def __init__(self
, this
):
995 if not hasattr(self
,"thisown"): self
.thisown
= 0
996 self
.__class
__ = Region
997 _gdi
.Region_swigregister(RegionPtr
)
999 def RegionFromBitmap(*args
, **kwargs
):
1000 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
1001 val
= _gdi
.new_RegionFromBitmap(*args
, **kwargs
)
1005 def RegionFromPoints(*args
, **kwargs
):
1006 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
1007 val
= _gdi
.new_RegionFromPoints(*args
, **kwargs
)
1011 class RegionIterator(core
.Object
):
1013 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1014 def __init__(self
, *args
, **kwargs
):
1015 """__init__(Region region) -> RegionIterator"""
1016 newobj
= _gdi
.new_RegionIterator(*args
, **kwargs
)
1017 self
.this
= newobj
.this
1020 def __del__(self
, destroy
=_gdi
.delete_RegionIterator
):
1023 if self
.thisown
: destroy(self
)
1026 def GetX(*args
, **kwargs
):
1028 return _gdi
.RegionIterator_GetX(*args
, **kwargs
)
1030 def GetY(*args
, **kwargs
):
1032 return _gdi
.RegionIterator_GetY(*args
, **kwargs
)
1034 def GetW(*args
, **kwargs
):
1036 return _gdi
.RegionIterator_GetW(*args
, **kwargs
)
1038 def GetWidth(*args
, **kwargs
):
1039 """GetWidth() -> int"""
1040 return _gdi
.RegionIterator_GetWidth(*args
, **kwargs
)
1042 def GetH(*args
, **kwargs
):
1044 return _gdi
.RegionIterator_GetH(*args
, **kwargs
)
1046 def GetHeight(*args
, **kwargs
):
1047 """GetHeight() -> int"""
1048 return _gdi
.RegionIterator_GetHeight(*args
, **kwargs
)
1050 def GetRect(*args
, **kwargs
):
1051 """GetRect() -> Rect"""
1052 return _gdi
.RegionIterator_GetRect(*args
, **kwargs
)
1054 def HaveRects(*args
, **kwargs
):
1055 """HaveRects() -> bool"""
1056 return _gdi
.RegionIterator_HaveRects(*args
, **kwargs
)
1058 def Reset(*args
, **kwargs
):
1060 return _gdi
.RegionIterator_Reset(*args
, **kwargs
)
1062 def Next(*args
, **kwargs
):
1064 return _gdi
.RegionIterator_Next(*args
, **kwargs
)
1066 def __nonzero__(*args
, **kwargs
):
1067 """__nonzero__() -> bool"""
1068 return _gdi
.RegionIterator___nonzero__(*args
, **kwargs
)
1071 class RegionIteratorPtr(RegionIterator
):
1072 def __init__(self
, this
):
1074 if not hasattr(self
,"thisown"): self
.thisown
= 0
1075 self
.__class
__ = RegionIterator
1076 _gdi
.RegionIterator_swigregister(RegionIteratorPtr
)
1078 #---------------------------------------------------------------------------
1080 FONTFAMILY_DEFAULT
= _gdi
.FONTFAMILY_DEFAULT
1081 FONTFAMILY_DECORATIVE
= _gdi
.FONTFAMILY_DECORATIVE
1082 FONTFAMILY_ROMAN
= _gdi
.FONTFAMILY_ROMAN
1083 FONTFAMILY_SCRIPT
= _gdi
.FONTFAMILY_SCRIPT
1084 FONTFAMILY_SWISS
= _gdi
.FONTFAMILY_SWISS
1085 FONTFAMILY_MODERN
= _gdi
.FONTFAMILY_MODERN
1086 FONTFAMILY_TELETYPE
= _gdi
.FONTFAMILY_TELETYPE
1087 FONTFAMILY_MAX
= _gdi
.FONTFAMILY_MAX
1088 FONTFAMILY_UNKNOWN
= _gdi
.FONTFAMILY_UNKNOWN
1089 FONTSTYLE_NORMAL
= _gdi
.FONTSTYLE_NORMAL
1090 FONTSTYLE_ITALIC
= _gdi
.FONTSTYLE_ITALIC
1091 FONTSTYLE_SLANT
= _gdi
.FONTSTYLE_SLANT
1092 FONTSTYLE_MAX
= _gdi
.FONTSTYLE_MAX
1093 FONTWEIGHT_NORMAL
= _gdi
.FONTWEIGHT_NORMAL
1094 FONTWEIGHT_LIGHT
= _gdi
.FONTWEIGHT_LIGHT
1095 FONTWEIGHT_BOLD
= _gdi
.FONTWEIGHT_BOLD
1096 FONTWEIGHT_MAX
= _gdi
.FONTWEIGHT_MAX
1097 FONTFLAG_DEFAULT
= _gdi
.FONTFLAG_DEFAULT
1098 FONTFLAG_ITALIC
= _gdi
.FONTFLAG_ITALIC
1099 FONTFLAG_SLANT
= _gdi
.FONTFLAG_SLANT
1100 FONTFLAG_LIGHT
= _gdi
.FONTFLAG_LIGHT
1101 FONTFLAG_BOLD
= _gdi
.FONTFLAG_BOLD
1102 FONTFLAG_ANTIALIASED
= _gdi
.FONTFLAG_ANTIALIASED
1103 FONTFLAG_NOT_ANTIALIASED
= _gdi
.FONTFLAG_NOT_ANTIALIASED
1104 FONTFLAG_UNDERLINED
= _gdi
.FONTFLAG_UNDERLINED
1105 FONTFLAG_STRIKETHROUGH
= _gdi
.FONTFLAG_STRIKETHROUGH
1106 FONTFLAG_MASK
= _gdi
.FONTFLAG_MASK
1107 FONTENCODING_SYSTEM
= _gdi
.FONTENCODING_SYSTEM
1108 FONTENCODING_DEFAULT
= _gdi
.FONTENCODING_DEFAULT
1109 FONTENCODING_ISO8859_1
= _gdi
.FONTENCODING_ISO8859_1
1110 FONTENCODING_ISO8859_2
= _gdi
.FONTENCODING_ISO8859_2
1111 FONTENCODING_ISO8859_3
= _gdi
.FONTENCODING_ISO8859_3
1112 FONTENCODING_ISO8859_4
= _gdi
.FONTENCODING_ISO8859_4
1113 FONTENCODING_ISO8859_5
= _gdi
.FONTENCODING_ISO8859_5
1114 FONTENCODING_ISO8859_6
= _gdi
.FONTENCODING_ISO8859_6
1115 FONTENCODING_ISO8859_7
= _gdi
.FONTENCODING_ISO8859_7
1116 FONTENCODING_ISO8859_8
= _gdi
.FONTENCODING_ISO8859_8
1117 FONTENCODING_ISO8859_9
= _gdi
.FONTENCODING_ISO8859_9
1118 FONTENCODING_ISO8859_10
= _gdi
.FONTENCODING_ISO8859_10
1119 FONTENCODING_ISO8859_11
= _gdi
.FONTENCODING_ISO8859_11
1120 FONTENCODING_ISO8859_12
= _gdi
.FONTENCODING_ISO8859_12
1121 FONTENCODING_ISO8859_13
= _gdi
.FONTENCODING_ISO8859_13
1122 FONTENCODING_ISO8859_14
= _gdi
.FONTENCODING_ISO8859_14
1123 FONTENCODING_ISO8859_15
= _gdi
.FONTENCODING_ISO8859_15
1124 FONTENCODING_ISO8859_MAX
= _gdi
.FONTENCODING_ISO8859_MAX
1125 FONTENCODING_KOI8
= _gdi
.FONTENCODING_KOI8
1126 FONTENCODING_ALTERNATIVE
= _gdi
.FONTENCODING_ALTERNATIVE
1127 FONTENCODING_BULGARIAN
= _gdi
.FONTENCODING_BULGARIAN
1128 FONTENCODING_CP437
= _gdi
.FONTENCODING_CP437
1129 FONTENCODING_CP850
= _gdi
.FONTENCODING_CP850
1130 FONTENCODING_CP852
= _gdi
.FONTENCODING_CP852
1131 FONTENCODING_CP855
= _gdi
.FONTENCODING_CP855
1132 FONTENCODING_CP866
= _gdi
.FONTENCODING_CP866
1133 FONTENCODING_CP874
= _gdi
.FONTENCODING_CP874
1134 FONTENCODING_CP932
= _gdi
.FONTENCODING_CP932
1135 FONTENCODING_CP936
= _gdi
.FONTENCODING_CP936
1136 FONTENCODING_CP949
= _gdi
.FONTENCODING_CP949
1137 FONTENCODING_CP950
= _gdi
.FONTENCODING_CP950
1138 FONTENCODING_CP1250
= _gdi
.FONTENCODING_CP1250
1139 FONTENCODING_CP1251
= _gdi
.FONTENCODING_CP1251
1140 FONTENCODING_CP1252
= _gdi
.FONTENCODING_CP1252
1141 FONTENCODING_CP1253
= _gdi
.FONTENCODING_CP1253
1142 FONTENCODING_CP1254
= _gdi
.FONTENCODING_CP1254
1143 FONTENCODING_CP1255
= _gdi
.FONTENCODING_CP1255
1144 FONTENCODING_CP1256
= _gdi
.FONTENCODING_CP1256
1145 FONTENCODING_CP1257
= _gdi
.FONTENCODING_CP1257
1146 FONTENCODING_CP12_MAX
= _gdi
.FONTENCODING_CP12_MAX
1147 FONTENCODING_UTF7
= _gdi
.FONTENCODING_UTF7
1148 FONTENCODING_UTF8
= _gdi
.FONTENCODING_UTF8
1149 FONTENCODING_EUC_JP
= _gdi
.FONTENCODING_EUC_JP
1150 FONTENCODING_UTF16BE
= _gdi
.FONTENCODING_UTF16BE
1151 FONTENCODING_UTF16LE
= _gdi
.FONTENCODING_UTF16LE
1152 FONTENCODING_UTF32BE
= _gdi
.FONTENCODING_UTF32BE
1153 FONTENCODING_UTF32LE
= _gdi
.FONTENCODING_UTF32LE
1154 FONTENCODING_MAX
= _gdi
.FONTENCODING_MAX
1155 FONTENCODING_UTF16
= _gdi
.FONTENCODING_UTF16
1156 FONTENCODING_UTF32
= _gdi
.FONTENCODING_UTF32
1157 FONTENCODING_UNICODE
= _gdi
.FONTENCODING_UNICODE
1158 FONTENCODING_GB2312
= _gdi
.FONTENCODING_GB2312
1159 FONTENCODING_BIG5
= _gdi
.FONTENCODING_BIG5
1160 FONTENCODING_SHIFT_JIS
= _gdi
.FONTENCODING_SHIFT_JIS
1161 #---------------------------------------------------------------------------
1163 class NativeFontInfo(object):
1165 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1166 def __init__(self
, *args
, **kwargs
):
1167 """__init__() -> NativeFontInfo"""
1168 newobj
= _gdi
.new_NativeFontInfo(*args
, **kwargs
)
1169 self
.this
= newobj
.this
1172 def __del__(self
, destroy
=_gdi
.delete_NativeFontInfo
):
1175 if self
.thisown
: destroy(self
)
1178 def Init(*args
, **kwargs
):
1180 return _gdi
.NativeFontInfo_Init(*args
, **kwargs
)
1182 def InitFromFont(*args
, **kwargs
):
1183 """InitFromFont(Font font)"""
1184 return _gdi
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1186 def GetPointSize(*args
, **kwargs
):
1187 """GetPointSize() -> int"""
1188 return _gdi
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1190 def GetStyle(*args
, **kwargs
):
1191 """GetStyle() -> int"""
1192 return _gdi
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1194 def GetWeight(*args
, **kwargs
):
1195 """GetWeight() -> int"""
1196 return _gdi
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1198 def GetUnderlined(*args
, **kwargs
):
1199 """GetUnderlined() -> bool"""
1200 return _gdi
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1202 def GetFaceName(*args
, **kwargs
):
1203 """GetFaceName() -> String"""
1204 return _gdi
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1206 def GetFamily(*args
, **kwargs
):
1207 """GetFamily() -> int"""
1208 return _gdi
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1210 def GetEncoding(*args
, **kwargs
):
1211 """GetEncoding() -> int"""
1212 return _gdi
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1214 def SetPointSize(*args
, **kwargs
):
1215 """SetPointSize(int pointsize)"""
1216 return _gdi
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1218 def SetStyle(*args
, **kwargs
):
1219 """SetStyle(int style)"""
1220 return _gdi
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1222 def SetWeight(*args
, **kwargs
):
1223 """SetWeight(int weight)"""
1224 return _gdi
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1226 def SetUnderlined(*args
, **kwargs
):
1227 """SetUnderlined(bool underlined)"""
1228 return _gdi
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1230 def SetFaceName(*args
, **kwargs
):
1231 """SetFaceName(String facename)"""
1232 return _gdi
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1234 def SetFamily(*args
, **kwargs
):
1235 """SetFamily(int family)"""
1236 return _gdi
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1238 def SetEncoding(*args
, **kwargs
):
1239 """SetEncoding(int encoding)"""
1240 return _gdi
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1242 def FromString(*args
, **kwargs
):
1243 """FromString(String s) -> bool"""
1244 return _gdi
.NativeFontInfo_FromString(*args
, **kwargs
)
1246 def ToString(*args
, **kwargs
):
1247 """ToString() -> String"""
1248 return _gdi
.NativeFontInfo_ToString(*args
, **kwargs
)
1250 def __str__(*args
, **kwargs
):
1251 """__str__() -> String"""
1252 return _gdi
.NativeFontInfo___str__(*args
, **kwargs
)
1254 def FromUserString(*args
, **kwargs
):
1255 """FromUserString(String s) -> bool"""
1256 return _gdi
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1258 def ToUserString(*args
, **kwargs
):
1259 """ToUserString() -> String"""
1260 return _gdi
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1263 class NativeFontInfoPtr(NativeFontInfo
):
1264 def __init__(self
, this
):
1266 if not hasattr(self
,"thisown"): self
.thisown
= 0
1267 self
.__class
__ = NativeFontInfo
1268 _gdi
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1270 class NativeEncodingInfo(object):
1272 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1273 facename
= property(_gdi
.NativeEncodingInfo_facename_get
, _gdi
.NativeEncodingInfo_facename_set
)
1274 encoding
= property(_gdi
.NativeEncodingInfo_encoding_get
, _gdi
.NativeEncodingInfo_encoding_set
)
1275 def __init__(self
, *args
, **kwargs
):
1276 """__init__() -> NativeEncodingInfo"""
1277 newobj
= _gdi
.new_NativeEncodingInfo(*args
, **kwargs
)
1278 self
.this
= newobj
.this
1281 def __del__(self
, destroy
=_gdi
.delete_NativeEncodingInfo
):
1284 if self
.thisown
: destroy(self
)
1287 def FromString(*args
, **kwargs
):
1288 """FromString(String s) -> bool"""
1289 return _gdi
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1291 def ToString(*args
, **kwargs
):
1292 """ToString() -> String"""
1293 return _gdi
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1296 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1297 def __init__(self
, this
):
1299 if not hasattr(self
,"thisown"): self
.thisown
= 0
1300 self
.__class
__ = NativeEncodingInfo
1301 _gdi
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1304 def GetNativeFontEncoding(*args
, **kwargs
):
1305 """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo"""
1306 return _gdi
.GetNativeFontEncoding(*args
, **kwargs
)
1308 def TestFontEncoding(*args
, **kwargs
):
1309 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1310 return _gdi
.TestFontEncoding(*args
, **kwargs
)
1311 #---------------------------------------------------------------------------
1313 class FontMapper(object):
1315 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1316 def __init__(self
, *args
, **kwargs
):
1317 """__init__() -> FontMapper"""
1318 newobj
= _gdi
.new_FontMapper(*args
, **kwargs
)
1319 self
.this
= newobj
.this
1322 def __del__(self
, destroy
=_gdi
.delete_FontMapper
):
1325 if self
.thisown
: destroy(self
)
1328 def Get(*args
, **kwargs
):
1329 """FontMapper.Get() -> FontMapper"""
1330 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1332 Get
= staticmethod(Get
)
1333 def Set(*args
, **kwargs
):
1334 """FontMapper.Set(FontMapper mapper) -> FontMapper"""
1335 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1337 Set
= staticmethod(Set
)
1338 def CharsetToEncoding(*args
, **kwargs
):
1339 """CharsetToEncoding(String charset, bool interactive=True) -> int"""
1340 return _gdi
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1342 def GetSupportedEncodingsCount(*args
, **kwargs
):
1343 """FontMapper.GetSupportedEncodingsCount() -> size_t"""
1344 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1346 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1347 def GetEncoding(*args
, **kwargs
):
1348 """FontMapper.GetEncoding(size_t n) -> int"""
1349 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1351 GetEncoding
= staticmethod(GetEncoding
)
1352 def GetEncodingName(*args
, **kwargs
):
1353 """FontMapper.GetEncodingName(int encoding) -> String"""
1354 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1356 GetEncodingName
= staticmethod(GetEncodingName
)
1357 def GetEncodingDescription(*args
, **kwargs
):
1358 """FontMapper.GetEncodingDescription(int encoding) -> String"""
1359 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1361 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1362 def SetConfig(*args
, **kwargs
):
1363 """SetConfig(ConfigBase config)"""
1364 return _gdi
.FontMapper_SetConfig(*args
, **kwargs
)
1366 def SetConfigPath(*args
, **kwargs
):
1367 """SetConfigPath(String prefix)"""
1368 return _gdi
.FontMapper_SetConfigPath(*args
, **kwargs
)
1370 def GetDefaultConfigPath(*args
, **kwargs
):
1371 """FontMapper.GetDefaultConfigPath() -> String"""
1372 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1374 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1375 def GetAltForEncoding(*args
, **kwargs
):
1376 """GetAltForEncoding(int encoding, String facename=EmptyString, bool interactive=True) -> PyObject"""
1377 return _gdi
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1379 def IsEncodingAvailable(*args
, **kwargs
):
1380 """IsEncodingAvailable(int encoding, String facename=EmptyString) -> bool"""
1381 return _gdi
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1383 def SetDialogParent(*args
, **kwargs
):
1384 """SetDialogParent(Window parent)"""
1385 return _gdi
.FontMapper_SetDialogParent(*args
, **kwargs
)
1387 def SetDialogTitle(*args
, **kwargs
):
1388 """SetDialogTitle(String title)"""
1389 return _gdi
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1392 class FontMapperPtr(FontMapper
):
1393 def __init__(self
, this
):
1395 if not hasattr(self
,"thisown"): self
.thisown
= 0
1396 self
.__class
__ = FontMapper
1397 _gdi
.FontMapper_swigregister(FontMapperPtr
)
1399 def FontMapper_Get(*args
, **kwargs
):
1400 """FontMapper_Get() -> FontMapper"""
1401 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1403 def FontMapper_Set(*args
, **kwargs
):
1404 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1405 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1407 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1408 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1409 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1411 def FontMapper_GetEncoding(*args
, **kwargs
):
1412 """FontMapper_GetEncoding(size_t n) -> int"""
1413 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1415 def FontMapper_GetEncodingName(*args
, **kwargs
):
1416 """FontMapper_GetEncodingName(int encoding) -> String"""
1417 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1419 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1420 """FontMapper_GetEncodingDescription(int encoding) -> String"""
1421 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1423 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1424 """FontMapper_GetDefaultConfigPath() -> String"""
1425 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1427 #---------------------------------------------------------------------------
1429 class Font(GDIObject
):
1431 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1432 def __init__(self
, *args
, **kwargs
):
1434 __init__(int pointSize, int family, int style, int weight, bool underline=False,
1435 String face=EmptyString,
1436 int encoding=FONTENCODING_DEFAULT) -> Font
1438 newobj
= _gdi
.new_Font(*args
, **kwargs
)
1439 self
.this
= newobj
.this
1442 def __del__(self
, destroy
=_gdi
.delete_Font
):
1445 if self
.thisown
: destroy(self
)
1448 def Ok(*args
, **kwargs
):
1450 return _gdi
.Font_Ok(*args
, **kwargs
)
1452 def __nonzero__(self
): return self
.Ok()
1453 def __eq__(*args
, **kwargs
):
1454 """__eq__(Font font) -> bool"""
1455 return _gdi
.Font___eq__(*args
, **kwargs
)
1457 def __ne__(*args
, **kwargs
):
1458 """__ne__(Font font) -> bool"""
1459 return _gdi
.Font___ne__(*args
, **kwargs
)
1461 def GetPointSize(*args
, **kwargs
):
1462 """GetPointSize() -> int"""
1463 return _gdi
.Font_GetPointSize(*args
, **kwargs
)
1465 def GetFamily(*args
, **kwargs
):
1466 """GetFamily() -> int"""
1467 return _gdi
.Font_GetFamily(*args
, **kwargs
)
1469 def GetStyle(*args
, **kwargs
):
1470 """GetStyle() -> int"""
1471 return _gdi
.Font_GetStyle(*args
, **kwargs
)
1473 def GetWeight(*args
, **kwargs
):
1474 """GetWeight() -> int"""
1475 return _gdi
.Font_GetWeight(*args
, **kwargs
)
1477 def GetUnderlined(*args
, **kwargs
):
1478 """GetUnderlined() -> bool"""
1479 return _gdi
.Font_GetUnderlined(*args
, **kwargs
)
1481 def GetFaceName(*args
, **kwargs
):
1482 """GetFaceName() -> String"""
1483 return _gdi
.Font_GetFaceName(*args
, **kwargs
)
1485 def GetEncoding(*args
, **kwargs
):
1486 """GetEncoding() -> int"""
1487 return _gdi
.Font_GetEncoding(*args
, **kwargs
)
1489 def GetNativeFontInfo(*args
, **kwargs
):
1490 """GetNativeFontInfo() -> NativeFontInfo"""
1491 return _gdi
.Font_GetNativeFontInfo(*args
, **kwargs
)
1493 def IsFixedWidth(*args
, **kwargs
):
1494 """IsFixedWidth() -> bool"""
1495 return _gdi
.Font_IsFixedWidth(*args
, **kwargs
)
1497 def GetNativeFontInfoDesc(*args
, **kwargs
):
1498 """GetNativeFontInfoDesc() -> String"""
1499 return _gdi
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1501 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1502 """GetNativeFontInfoUserDesc() -> String"""
1503 return _gdi
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1505 def SetPointSize(*args
, **kwargs
):
1506 """SetPointSize(int pointSize)"""
1507 return _gdi
.Font_SetPointSize(*args
, **kwargs
)
1509 def SetFamily(*args
, **kwargs
):
1510 """SetFamily(int family)"""
1511 return _gdi
.Font_SetFamily(*args
, **kwargs
)
1513 def SetStyle(*args
, **kwargs
):
1514 """SetStyle(int style)"""
1515 return _gdi
.Font_SetStyle(*args
, **kwargs
)
1517 def SetWeight(*args
, **kwargs
):
1518 """SetWeight(int weight)"""
1519 return _gdi
.Font_SetWeight(*args
, **kwargs
)
1521 def SetFaceName(*args
, **kwargs
):
1522 """SetFaceName(String faceName)"""
1523 return _gdi
.Font_SetFaceName(*args
, **kwargs
)
1525 def SetUnderlined(*args
, **kwargs
):
1526 """SetUnderlined(bool underlined)"""
1527 return _gdi
.Font_SetUnderlined(*args
, **kwargs
)
1529 def SetEncoding(*args
, **kwargs
):
1530 """SetEncoding(int encoding)"""
1531 return _gdi
.Font_SetEncoding(*args
, **kwargs
)
1533 def SetNativeFontInfo(*args
, **kwargs
):
1534 """SetNativeFontInfo(NativeFontInfo info)"""
1535 return _gdi
.Font_SetNativeFontInfo(*args
, **kwargs
)
1537 def SetNativeFontInfoFromString(*args
, **kwargs
):
1538 """SetNativeFontInfoFromString(String info)"""
1539 return _gdi
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1541 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1542 """SetNativeFontInfoUserDesc(String info)"""
1543 return _gdi
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1545 def GetFamilyString(*args
, **kwargs
):
1546 """GetFamilyString() -> String"""
1547 return _gdi
.Font_GetFamilyString(*args
, **kwargs
)
1549 def GetStyleString(*args
, **kwargs
):
1550 """GetStyleString() -> String"""
1551 return _gdi
.Font_GetStyleString(*args
, **kwargs
)
1553 def GetWeightString(*args
, **kwargs
):
1554 """GetWeightString() -> String"""
1555 return _gdi
.Font_GetWeightString(*args
, **kwargs
)
1557 def SetNoAntiAliasing(*args
, **kwargs
):
1558 """SetNoAntiAliasing(bool no=True)"""
1559 return _gdi
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1561 def GetNoAntiAliasing(*args
, **kwargs
):
1562 """GetNoAntiAliasing() -> bool"""
1563 return _gdi
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1565 def GetDefaultEncoding(*args
, **kwargs
):
1566 """Font.GetDefaultEncoding() -> int"""
1567 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1569 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1570 def SetDefaultEncoding(*args
, **kwargs
):
1571 """Font.SetDefaultEncoding(int encoding)"""
1572 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1574 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1576 class FontPtr(Font
):
1577 def __init__(self
, this
):
1579 if not hasattr(self
,"thisown"): self
.thisown
= 0
1580 self
.__class
__ = Font
1581 _gdi
.Font_swigregister(FontPtr
)
1583 def FontFromNativeInfo(*args
, **kwargs
):
1584 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1585 val
= _gdi
.new_FontFromNativeInfo(*args
, **kwargs
)
1589 def FontFromNativeInfoString(*args
, **kwargs
):
1590 """FontFromNativeInfoString(String info) -> Font"""
1591 val
= _gdi
.new_FontFromNativeInfoString(*args
, **kwargs
)
1595 def Font2(*args
, **kwargs
):
1597 Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT,
1598 String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font
1600 val
= _gdi
.new_Font2(*args
, **kwargs
)
1604 def Font_GetDefaultEncoding(*args
, **kwargs
):
1605 """Font_GetDefaultEncoding() -> int"""
1606 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1608 def Font_SetDefaultEncoding(*args
, **kwargs
):
1609 """Font_SetDefaultEncoding(int encoding)"""
1610 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1612 #---------------------------------------------------------------------------
1614 class FontEnumerator(object):
1616 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1617 def __init__(self
, *args
, **kwargs
):
1618 """__init__() -> FontEnumerator"""
1619 newobj
= _gdi
.new_FontEnumerator(*args
, **kwargs
)
1620 self
.this
= newobj
.this
1623 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1625 def __del__(self
, destroy
=_gdi
.delete_FontEnumerator
):
1628 if self
.thisown
: destroy(self
)
1631 def _setCallbackInfo(*args
, **kwargs
):
1632 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1633 return _gdi
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1635 def EnumerateFacenames(*args
, **kwargs
):
1636 """EnumerateFacenames(int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1637 return _gdi
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1639 def EnumerateEncodings(*args
, **kwargs
):
1640 """EnumerateEncodings(String facename=EmptyString) -> bool"""
1641 return _gdi
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1643 def GetEncodings(*args
, **kwargs
):
1644 """GetEncodings() -> PyObject"""
1645 return _gdi
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1647 def GetFacenames(*args
, **kwargs
):
1648 """GetFacenames() -> PyObject"""
1649 return _gdi
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1652 class FontEnumeratorPtr(FontEnumerator
):
1653 def __init__(self
, this
):
1655 if not hasattr(self
,"thisown"): self
.thisown
= 0
1656 self
.__class
__ = FontEnumerator
1657 _gdi
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1659 #---------------------------------------------------------------------------
1661 LANGUAGE_DEFAULT
= _gdi
.LANGUAGE_DEFAULT
1662 LANGUAGE_UNKNOWN
= _gdi
.LANGUAGE_UNKNOWN
1663 LANGUAGE_ABKHAZIAN
= _gdi
.LANGUAGE_ABKHAZIAN
1664 LANGUAGE_AFAR
= _gdi
.LANGUAGE_AFAR
1665 LANGUAGE_AFRIKAANS
= _gdi
.LANGUAGE_AFRIKAANS
1666 LANGUAGE_ALBANIAN
= _gdi
.LANGUAGE_ALBANIAN
1667 LANGUAGE_AMHARIC
= _gdi
.LANGUAGE_AMHARIC
1668 LANGUAGE_ARABIC
= _gdi
.LANGUAGE_ARABIC
1669 LANGUAGE_ARABIC_ALGERIA
= _gdi
.LANGUAGE_ARABIC_ALGERIA
1670 LANGUAGE_ARABIC_BAHRAIN
= _gdi
.LANGUAGE_ARABIC_BAHRAIN
1671 LANGUAGE_ARABIC_EGYPT
= _gdi
.LANGUAGE_ARABIC_EGYPT
1672 LANGUAGE_ARABIC_IRAQ
= _gdi
.LANGUAGE_ARABIC_IRAQ
1673 LANGUAGE_ARABIC_JORDAN
= _gdi
.LANGUAGE_ARABIC_JORDAN
1674 LANGUAGE_ARABIC_KUWAIT
= _gdi
.LANGUAGE_ARABIC_KUWAIT
1675 LANGUAGE_ARABIC_LEBANON
= _gdi
.LANGUAGE_ARABIC_LEBANON
1676 LANGUAGE_ARABIC_LIBYA
= _gdi
.LANGUAGE_ARABIC_LIBYA
1677 LANGUAGE_ARABIC_MOROCCO
= _gdi
.LANGUAGE_ARABIC_MOROCCO
1678 LANGUAGE_ARABIC_OMAN
= _gdi
.LANGUAGE_ARABIC_OMAN
1679 LANGUAGE_ARABIC_QATAR
= _gdi
.LANGUAGE_ARABIC_QATAR
1680 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi
.LANGUAGE_ARABIC_SAUDI_ARABIA
1681 LANGUAGE_ARABIC_SUDAN
= _gdi
.LANGUAGE_ARABIC_SUDAN
1682 LANGUAGE_ARABIC_SYRIA
= _gdi
.LANGUAGE_ARABIC_SYRIA
1683 LANGUAGE_ARABIC_TUNISIA
= _gdi
.LANGUAGE_ARABIC_TUNISIA
1684 LANGUAGE_ARABIC_UAE
= _gdi
.LANGUAGE_ARABIC_UAE
1685 LANGUAGE_ARABIC_YEMEN
= _gdi
.LANGUAGE_ARABIC_YEMEN
1686 LANGUAGE_ARMENIAN
= _gdi
.LANGUAGE_ARMENIAN
1687 LANGUAGE_ASSAMESE
= _gdi
.LANGUAGE_ASSAMESE
1688 LANGUAGE_AYMARA
= _gdi
.LANGUAGE_AYMARA
1689 LANGUAGE_AZERI
= _gdi
.LANGUAGE_AZERI
1690 LANGUAGE_AZERI_CYRILLIC
= _gdi
.LANGUAGE_AZERI_CYRILLIC
1691 LANGUAGE_AZERI_LATIN
= _gdi
.LANGUAGE_AZERI_LATIN
1692 LANGUAGE_BASHKIR
= _gdi
.LANGUAGE_BASHKIR
1693 LANGUAGE_BASQUE
= _gdi
.LANGUAGE_BASQUE
1694 LANGUAGE_BELARUSIAN
= _gdi
.LANGUAGE_BELARUSIAN
1695 LANGUAGE_BENGALI
= _gdi
.LANGUAGE_BENGALI
1696 LANGUAGE_BHUTANI
= _gdi
.LANGUAGE_BHUTANI
1697 LANGUAGE_BIHARI
= _gdi
.LANGUAGE_BIHARI
1698 LANGUAGE_BISLAMA
= _gdi
.LANGUAGE_BISLAMA
1699 LANGUAGE_BRETON
= _gdi
.LANGUAGE_BRETON
1700 LANGUAGE_BULGARIAN
= _gdi
.LANGUAGE_BULGARIAN
1701 LANGUAGE_BURMESE
= _gdi
.LANGUAGE_BURMESE
1702 LANGUAGE_CAMBODIAN
= _gdi
.LANGUAGE_CAMBODIAN
1703 LANGUAGE_CATALAN
= _gdi
.LANGUAGE_CATALAN
1704 LANGUAGE_CHINESE
= _gdi
.LANGUAGE_CHINESE
1705 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi
.LANGUAGE_CHINESE_SIMPLIFIED
1706 LANGUAGE_CHINESE_TRADITIONAL
= _gdi
.LANGUAGE_CHINESE_TRADITIONAL
1707 LANGUAGE_CHINESE_HONGKONG
= _gdi
.LANGUAGE_CHINESE_HONGKONG
1708 LANGUAGE_CHINESE_MACAU
= _gdi
.LANGUAGE_CHINESE_MACAU
1709 LANGUAGE_CHINESE_SINGAPORE
= _gdi
.LANGUAGE_CHINESE_SINGAPORE
1710 LANGUAGE_CHINESE_TAIWAN
= _gdi
.LANGUAGE_CHINESE_TAIWAN
1711 LANGUAGE_CORSICAN
= _gdi
.LANGUAGE_CORSICAN
1712 LANGUAGE_CROATIAN
= _gdi
.LANGUAGE_CROATIAN
1713 LANGUAGE_CZECH
= _gdi
.LANGUAGE_CZECH
1714 LANGUAGE_DANISH
= _gdi
.LANGUAGE_DANISH
1715 LANGUAGE_DUTCH
= _gdi
.LANGUAGE_DUTCH
1716 LANGUAGE_DUTCH_BELGIAN
= _gdi
.LANGUAGE_DUTCH_BELGIAN
1717 LANGUAGE_ENGLISH
= _gdi
.LANGUAGE_ENGLISH
1718 LANGUAGE_ENGLISH_UK
= _gdi
.LANGUAGE_ENGLISH_UK
1719 LANGUAGE_ENGLISH_US
= _gdi
.LANGUAGE_ENGLISH_US
1720 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi
.LANGUAGE_ENGLISH_AUSTRALIA
1721 LANGUAGE_ENGLISH_BELIZE
= _gdi
.LANGUAGE_ENGLISH_BELIZE
1722 LANGUAGE_ENGLISH_BOTSWANA
= _gdi
.LANGUAGE_ENGLISH_BOTSWANA
1723 LANGUAGE_ENGLISH_CANADA
= _gdi
.LANGUAGE_ENGLISH_CANADA
1724 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi
.LANGUAGE_ENGLISH_CARIBBEAN
1725 LANGUAGE_ENGLISH_DENMARK
= _gdi
.LANGUAGE_ENGLISH_DENMARK
1726 LANGUAGE_ENGLISH_EIRE
= _gdi
.LANGUAGE_ENGLISH_EIRE
1727 LANGUAGE_ENGLISH_JAMAICA
= _gdi
.LANGUAGE_ENGLISH_JAMAICA
1728 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi
.LANGUAGE_ENGLISH_NEW_ZEALAND
1729 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi
.LANGUAGE_ENGLISH_PHILIPPINES
1730 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1731 LANGUAGE_ENGLISH_TRINIDAD
= _gdi
.LANGUAGE_ENGLISH_TRINIDAD
1732 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi
.LANGUAGE_ENGLISH_ZIMBABWE
1733 LANGUAGE_ESPERANTO
= _gdi
.LANGUAGE_ESPERANTO
1734 LANGUAGE_ESTONIAN
= _gdi
.LANGUAGE_ESTONIAN
1735 LANGUAGE_FAEROESE
= _gdi
.LANGUAGE_FAEROESE
1736 LANGUAGE_FARSI
= _gdi
.LANGUAGE_FARSI
1737 LANGUAGE_FIJI
= _gdi
.LANGUAGE_FIJI
1738 LANGUAGE_FINNISH
= _gdi
.LANGUAGE_FINNISH
1739 LANGUAGE_FRENCH
= _gdi
.LANGUAGE_FRENCH
1740 LANGUAGE_FRENCH_BELGIAN
= _gdi
.LANGUAGE_FRENCH_BELGIAN
1741 LANGUAGE_FRENCH_CANADIAN
= _gdi
.LANGUAGE_FRENCH_CANADIAN
1742 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi
.LANGUAGE_FRENCH_LUXEMBOURG
1743 LANGUAGE_FRENCH_MONACO
= _gdi
.LANGUAGE_FRENCH_MONACO
1744 LANGUAGE_FRENCH_SWISS
= _gdi
.LANGUAGE_FRENCH_SWISS
1745 LANGUAGE_FRISIAN
= _gdi
.LANGUAGE_FRISIAN
1746 LANGUAGE_GALICIAN
= _gdi
.LANGUAGE_GALICIAN
1747 LANGUAGE_GEORGIAN
= _gdi
.LANGUAGE_GEORGIAN
1748 LANGUAGE_GERMAN
= _gdi
.LANGUAGE_GERMAN
1749 LANGUAGE_GERMAN_AUSTRIAN
= _gdi
.LANGUAGE_GERMAN_AUSTRIAN
1750 LANGUAGE_GERMAN_BELGIUM
= _gdi
.LANGUAGE_GERMAN_BELGIUM
1751 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi
.LANGUAGE_GERMAN_LIECHTENSTEIN
1752 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi
.LANGUAGE_GERMAN_LUXEMBOURG
1753 LANGUAGE_GERMAN_SWISS
= _gdi
.LANGUAGE_GERMAN_SWISS
1754 LANGUAGE_GREEK
= _gdi
.LANGUAGE_GREEK
1755 LANGUAGE_GREENLANDIC
= _gdi
.LANGUAGE_GREENLANDIC
1756 LANGUAGE_GUARANI
= _gdi
.LANGUAGE_GUARANI
1757 LANGUAGE_GUJARATI
= _gdi
.LANGUAGE_GUJARATI
1758 LANGUAGE_HAUSA
= _gdi
.LANGUAGE_HAUSA
1759 LANGUAGE_HEBREW
= _gdi
.LANGUAGE_HEBREW
1760 LANGUAGE_HINDI
= _gdi
.LANGUAGE_HINDI
1761 LANGUAGE_HUNGARIAN
= _gdi
.LANGUAGE_HUNGARIAN
1762 LANGUAGE_ICELANDIC
= _gdi
.LANGUAGE_ICELANDIC
1763 LANGUAGE_INDONESIAN
= _gdi
.LANGUAGE_INDONESIAN
1764 LANGUAGE_INTERLINGUA
= _gdi
.LANGUAGE_INTERLINGUA
1765 LANGUAGE_INTERLINGUE
= _gdi
.LANGUAGE_INTERLINGUE
1766 LANGUAGE_INUKTITUT
= _gdi
.LANGUAGE_INUKTITUT
1767 LANGUAGE_INUPIAK
= _gdi
.LANGUAGE_INUPIAK
1768 LANGUAGE_IRISH
= _gdi
.LANGUAGE_IRISH
1769 LANGUAGE_ITALIAN
= _gdi
.LANGUAGE_ITALIAN
1770 LANGUAGE_ITALIAN_SWISS
= _gdi
.LANGUAGE_ITALIAN_SWISS
1771 LANGUAGE_JAPANESE
= _gdi
.LANGUAGE_JAPANESE
1772 LANGUAGE_JAVANESE
= _gdi
.LANGUAGE_JAVANESE
1773 LANGUAGE_KANNADA
= _gdi
.LANGUAGE_KANNADA
1774 LANGUAGE_KASHMIRI
= _gdi
.LANGUAGE_KASHMIRI
1775 LANGUAGE_KASHMIRI_INDIA
= _gdi
.LANGUAGE_KASHMIRI_INDIA
1776 LANGUAGE_KAZAKH
= _gdi
.LANGUAGE_KAZAKH
1777 LANGUAGE_KERNEWEK
= _gdi
.LANGUAGE_KERNEWEK
1778 LANGUAGE_KINYARWANDA
= _gdi
.LANGUAGE_KINYARWANDA
1779 LANGUAGE_KIRGHIZ
= _gdi
.LANGUAGE_KIRGHIZ
1780 LANGUAGE_KIRUNDI
= _gdi
.LANGUAGE_KIRUNDI
1781 LANGUAGE_KONKANI
= _gdi
.LANGUAGE_KONKANI
1782 LANGUAGE_KOREAN
= _gdi
.LANGUAGE_KOREAN
1783 LANGUAGE_KURDISH
= _gdi
.LANGUAGE_KURDISH
1784 LANGUAGE_LAOTHIAN
= _gdi
.LANGUAGE_LAOTHIAN
1785 LANGUAGE_LATIN
= _gdi
.LANGUAGE_LATIN
1786 LANGUAGE_LATVIAN
= _gdi
.LANGUAGE_LATVIAN
1787 LANGUAGE_LINGALA
= _gdi
.LANGUAGE_LINGALA
1788 LANGUAGE_LITHUANIAN
= _gdi
.LANGUAGE_LITHUANIAN
1789 LANGUAGE_MACEDONIAN
= _gdi
.LANGUAGE_MACEDONIAN
1790 LANGUAGE_MALAGASY
= _gdi
.LANGUAGE_MALAGASY
1791 LANGUAGE_MALAY
= _gdi
.LANGUAGE_MALAY
1792 LANGUAGE_MALAYALAM
= _gdi
.LANGUAGE_MALAYALAM
1793 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1794 LANGUAGE_MALAY_MALAYSIA
= _gdi
.LANGUAGE_MALAY_MALAYSIA
1795 LANGUAGE_MALTESE
= _gdi
.LANGUAGE_MALTESE
1796 LANGUAGE_MANIPURI
= _gdi
.LANGUAGE_MANIPURI
1797 LANGUAGE_MAORI
= _gdi
.LANGUAGE_MAORI
1798 LANGUAGE_MARATHI
= _gdi
.LANGUAGE_MARATHI
1799 LANGUAGE_MOLDAVIAN
= _gdi
.LANGUAGE_MOLDAVIAN
1800 LANGUAGE_MONGOLIAN
= _gdi
.LANGUAGE_MONGOLIAN
1801 LANGUAGE_NAURU
= _gdi
.LANGUAGE_NAURU
1802 LANGUAGE_NEPALI
= _gdi
.LANGUAGE_NEPALI
1803 LANGUAGE_NEPALI_INDIA
= _gdi
.LANGUAGE_NEPALI_INDIA
1804 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi
.LANGUAGE_NORWEGIAN_BOKMAL
1805 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi
.LANGUAGE_NORWEGIAN_NYNORSK
1806 LANGUAGE_OCCITAN
= _gdi
.LANGUAGE_OCCITAN
1807 LANGUAGE_ORIYA
= _gdi
.LANGUAGE_ORIYA
1808 LANGUAGE_OROMO
= _gdi
.LANGUAGE_OROMO
1809 LANGUAGE_PASHTO
= _gdi
.LANGUAGE_PASHTO
1810 LANGUAGE_POLISH
= _gdi
.LANGUAGE_POLISH
1811 LANGUAGE_PORTUGUESE
= _gdi
.LANGUAGE_PORTUGUESE
1812 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi
.LANGUAGE_PORTUGUESE_BRAZILIAN
1813 LANGUAGE_PUNJABI
= _gdi
.LANGUAGE_PUNJABI
1814 LANGUAGE_QUECHUA
= _gdi
.LANGUAGE_QUECHUA
1815 LANGUAGE_RHAETO_ROMANCE
= _gdi
.LANGUAGE_RHAETO_ROMANCE
1816 LANGUAGE_ROMANIAN
= _gdi
.LANGUAGE_ROMANIAN
1817 LANGUAGE_RUSSIAN
= _gdi
.LANGUAGE_RUSSIAN
1818 LANGUAGE_RUSSIAN_UKRAINE
= _gdi
.LANGUAGE_RUSSIAN_UKRAINE
1819 LANGUAGE_SAMOAN
= _gdi
.LANGUAGE_SAMOAN
1820 LANGUAGE_SANGHO
= _gdi
.LANGUAGE_SANGHO
1821 LANGUAGE_SANSKRIT
= _gdi
.LANGUAGE_SANSKRIT
1822 LANGUAGE_SCOTS_GAELIC
= _gdi
.LANGUAGE_SCOTS_GAELIC
1823 LANGUAGE_SERBIAN
= _gdi
.LANGUAGE_SERBIAN
1824 LANGUAGE_SERBIAN_CYRILLIC
= _gdi
.LANGUAGE_SERBIAN_CYRILLIC
1825 LANGUAGE_SERBIAN_LATIN
= _gdi
.LANGUAGE_SERBIAN_LATIN
1826 LANGUAGE_SERBO_CROATIAN
= _gdi
.LANGUAGE_SERBO_CROATIAN
1827 LANGUAGE_SESOTHO
= _gdi
.LANGUAGE_SESOTHO
1828 LANGUAGE_SETSWANA
= _gdi
.LANGUAGE_SETSWANA
1829 LANGUAGE_SHONA
= _gdi
.LANGUAGE_SHONA
1830 LANGUAGE_SINDHI
= _gdi
.LANGUAGE_SINDHI
1831 LANGUAGE_SINHALESE
= _gdi
.LANGUAGE_SINHALESE
1832 LANGUAGE_SISWATI
= _gdi
.LANGUAGE_SISWATI
1833 LANGUAGE_SLOVAK
= _gdi
.LANGUAGE_SLOVAK
1834 LANGUAGE_SLOVENIAN
= _gdi
.LANGUAGE_SLOVENIAN
1835 LANGUAGE_SOMALI
= _gdi
.LANGUAGE_SOMALI
1836 LANGUAGE_SPANISH
= _gdi
.LANGUAGE_SPANISH
1837 LANGUAGE_SPANISH_ARGENTINA
= _gdi
.LANGUAGE_SPANISH_ARGENTINA
1838 LANGUAGE_SPANISH_BOLIVIA
= _gdi
.LANGUAGE_SPANISH_BOLIVIA
1839 LANGUAGE_SPANISH_CHILE
= _gdi
.LANGUAGE_SPANISH_CHILE
1840 LANGUAGE_SPANISH_COLOMBIA
= _gdi
.LANGUAGE_SPANISH_COLOMBIA
1841 LANGUAGE_SPANISH_COSTA_RICA
= _gdi
.LANGUAGE_SPANISH_COSTA_RICA
1842 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
1843 LANGUAGE_SPANISH_ECUADOR
= _gdi
.LANGUAGE_SPANISH_ECUADOR
1844 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi
.LANGUAGE_SPANISH_EL_SALVADOR
1845 LANGUAGE_SPANISH_GUATEMALA
= _gdi
.LANGUAGE_SPANISH_GUATEMALA
1846 LANGUAGE_SPANISH_HONDURAS
= _gdi
.LANGUAGE_SPANISH_HONDURAS
1847 LANGUAGE_SPANISH_MEXICAN
= _gdi
.LANGUAGE_SPANISH_MEXICAN
1848 LANGUAGE_SPANISH_MODERN
= _gdi
.LANGUAGE_SPANISH_MODERN
1849 LANGUAGE_SPANISH_NICARAGUA
= _gdi
.LANGUAGE_SPANISH_NICARAGUA
1850 LANGUAGE_SPANISH_PANAMA
= _gdi
.LANGUAGE_SPANISH_PANAMA
1851 LANGUAGE_SPANISH_PARAGUAY
= _gdi
.LANGUAGE_SPANISH_PARAGUAY
1852 LANGUAGE_SPANISH_PERU
= _gdi
.LANGUAGE_SPANISH_PERU
1853 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi
.LANGUAGE_SPANISH_PUERTO_RICO
1854 LANGUAGE_SPANISH_URUGUAY
= _gdi
.LANGUAGE_SPANISH_URUGUAY
1855 LANGUAGE_SPANISH_US
= _gdi
.LANGUAGE_SPANISH_US
1856 LANGUAGE_SPANISH_VENEZUELA
= _gdi
.LANGUAGE_SPANISH_VENEZUELA
1857 LANGUAGE_SUNDANESE
= _gdi
.LANGUAGE_SUNDANESE
1858 LANGUAGE_SWAHILI
= _gdi
.LANGUAGE_SWAHILI
1859 LANGUAGE_SWEDISH
= _gdi
.LANGUAGE_SWEDISH
1860 LANGUAGE_SWEDISH_FINLAND
= _gdi
.LANGUAGE_SWEDISH_FINLAND
1861 LANGUAGE_TAGALOG
= _gdi
.LANGUAGE_TAGALOG
1862 LANGUAGE_TAJIK
= _gdi
.LANGUAGE_TAJIK
1863 LANGUAGE_TAMIL
= _gdi
.LANGUAGE_TAMIL
1864 LANGUAGE_TATAR
= _gdi
.LANGUAGE_TATAR
1865 LANGUAGE_TELUGU
= _gdi
.LANGUAGE_TELUGU
1866 LANGUAGE_THAI
= _gdi
.LANGUAGE_THAI
1867 LANGUAGE_TIBETAN
= _gdi
.LANGUAGE_TIBETAN
1868 LANGUAGE_TIGRINYA
= _gdi
.LANGUAGE_TIGRINYA
1869 LANGUAGE_TONGA
= _gdi
.LANGUAGE_TONGA
1870 LANGUAGE_TSONGA
= _gdi
.LANGUAGE_TSONGA
1871 LANGUAGE_TURKISH
= _gdi
.LANGUAGE_TURKISH
1872 LANGUAGE_TURKMEN
= _gdi
.LANGUAGE_TURKMEN
1873 LANGUAGE_TWI
= _gdi
.LANGUAGE_TWI
1874 LANGUAGE_UIGHUR
= _gdi
.LANGUAGE_UIGHUR
1875 LANGUAGE_UKRAINIAN
= _gdi
.LANGUAGE_UKRAINIAN
1876 LANGUAGE_URDU
= _gdi
.LANGUAGE_URDU
1877 LANGUAGE_URDU_INDIA
= _gdi
.LANGUAGE_URDU_INDIA
1878 LANGUAGE_URDU_PAKISTAN
= _gdi
.LANGUAGE_URDU_PAKISTAN
1879 LANGUAGE_UZBEK
= _gdi
.LANGUAGE_UZBEK
1880 LANGUAGE_UZBEK_CYRILLIC
= _gdi
.LANGUAGE_UZBEK_CYRILLIC
1881 LANGUAGE_UZBEK_LATIN
= _gdi
.LANGUAGE_UZBEK_LATIN
1882 LANGUAGE_VIETNAMESE
= _gdi
.LANGUAGE_VIETNAMESE
1883 LANGUAGE_VOLAPUK
= _gdi
.LANGUAGE_VOLAPUK
1884 LANGUAGE_WELSH
= _gdi
.LANGUAGE_WELSH
1885 LANGUAGE_WOLOF
= _gdi
.LANGUAGE_WOLOF
1886 LANGUAGE_XHOSA
= _gdi
.LANGUAGE_XHOSA
1887 LANGUAGE_YIDDISH
= _gdi
.LANGUAGE_YIDDISH
1888 LANGUAGE_YORUBA
= _gdi
.LANGUAGE_YORUBA
1889 LANGUAGE_ZHUANG
= _gdi
.LANGUAGE_ZHUANG
1890 LANGUAGE_ZULU
= _gdi
.LANGUAGE_ZULU
1891 LANGUAGE_USER_DEFINED
= _gdi
.LANGUAGE_USER_DEFINED
1892 class LanguageInfo(object):
1893 def __init__(self
): raise RuntimeError, "No constructor defined"
1895 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1896 Language
= property(_gdi
.LanguageInfo_Language_get
, _gdi
.LanguageInfo_Language_set
)
1897 CanonicalName
= property(_gdi
.LanguageInfo_CanonicalName_get
, _gdi
.LanguageInfo_CanonicalName_set
)
1898 Description
= property(_gdi
.LanguageInfo_Description_get
, _gdi
.LanguageInfo_Description_set
)
1900 class LanguageInfoPtr(LanguageInfo
):
1901 def __init__(self
, this
):
1903 if not hasattr(self
,"thisown"): self
.thisown
= 0
1904 self
.__class
__ = LanguageInfo
1905 _gdi
.LanguageInfo_swigregister(LanguageInfoPtr
)
1907 LOCALE_CAT_NUMBER
= _gdi
.LOCALE_CAT_NUMBER
1908 LOCALE_CAT_DATE
= _gdi
.LOCALE_CAT_DATE
1909 LOCALE_CAT_MONEY
= _gdi
.LOCALE_CAT_MONEY
1910 LOCALE_CAT_MAX
= _gdi
.LOCALE_CAT_MAX
1911 LOCALE_THOUSANDS_SEP
= _gdi
.LOCALE_THOUSANDS_SEP
1912 LOCALE_DECIMAL_POINT
= _gdi
.LOCALE_DECIMAL_POINT
1913 LOCALE_LOAD_DEFAULT
= _gdi
.LOCALE_LOAD_DEFAULT
1914 LOCALE_CONV_ENCODING
= _gdi
.LOCALE_CONV_ENCODING
1915 class Locale(object):
1917 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1918 def __init__(self
, *args
, **kwargs
):
1919 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
1920 newobj
= _gdi
.new_Locale(*args
, **kwargs
)
1921 self
.this
= newobj
.this
1924 def __del__(self
, destroy
=_gdi
.delete_Locale
):
1927 if self
.thisown
: destroy(self
)
1930 def Init1(*args
, **kwargs
):
1932 Init1(String szName, String szShort=EmptyString, String szLocale=EmptyString,
1933 bool bLoadDefault=True,
1934 bool bConvertEncoding=False) -> bool
1936 return _gdi
.Locale_Init1(*args
, **kwargs
)
1938 def Init2(*args
, **kwargs
):
1939 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
1940 return _gdi
.Locale_Init2(*args
, **kwargs
)
1942 def Init(self
, *_args
, **_kwargs
):
1943 if type(_args
[0]) in [type(''), type(u
'')]:
1944 val
= self
.Init1(*_args
, **_kwargs
)
1946 val
= self
.Init2(*_args
, **_kwargs
)
1949 def GetSystemLanguage(*args
, **kwargs
):
1950 """Locale.GetSystemLanguage() -> int"""
1951 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1953 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
1954 def GetSystemEncoding(*args
, **kwargs
):
1955 """Locale.GetSystemEncoding() -> int"""
1956 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1958 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
1959 def GetSystemEncodingName(*args
, **kwargs
):
1960 """Locale.GetSystemEncodingName() -> String"""
1961 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1963 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
1964 def IsOk(*args
, **kwargs
):
1965 """IsOk() -> bool"""
1966 return _gdi
.Locale_IsOk(*args
, **kwargs
)
1968 def __nonzero__(self
): return self
.IsOk()
1969 def GetLocale(*args
, **kwargs
):
1970 """GetLocale() -> String"""
1971 return _gdi
.Locale_GetLocale(*args
, **kwargs
)
1973 def GetLanguage(*args
, **kwargs
):
1974 """GetLanguage() -> int"""
1975 return _gdi
.Locale_GetLanguage(*args
, **kwargs
)
1977 def GetSysName(*args
, **kwargs
):
1978 """GetSysName() -> String"""
1979 return _gdi
.Locale_GetSysName(*args
, **kwargs
)
1981 def GetCanonicalName(*args
, **kwargs
):
1982 """GetCanonicalName() -> String"""
1983 return _gdi
.Locale_GetCanonicalName(*args
, **kwargs
)
1985 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
1986 """Locale.AddCatalogLookupPathPrefix(String prefix)"""
1987 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1989 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
1990 def AddCatalog(*args
, **kwargs
):
1991 """AddCatalog(String szDomain) -> bool"""
1992 return _gdi
.Locale_AddCatalog(*args
, **kwargs
)
1994 def IsLoaded(*args
, **kwargs
):
1995 """IsLoaded(String szDomain) -> bool"""
1996 return _gdi
.Locale_IsLoaded(*args
, **kwargs
)
1998 def GetLanguageInfo(*args
, **kwargs
):
1999 """Locale.GetLanguageInfo(int lang) -> LanguageInfo"""
2000 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
2002 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
2003 def GetLanguageName(*args
, **kwargs
):
2004 """Locale.GetLanguageName(int lang) -> String"""
2005 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
2007 GetLanguageName
= staticmethod(GetLanguageName
)
2008 def FindLanguageInfo(*args
, **kwargs
):
2009 """Locale.FindLanguageInfo(String locale) -> LanguageInfo"""
2010 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
2012 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
2013 def AddLanguage(*args
, **kwargs
):
2014 """Locale.AddLanguage(LanguageInfo info)"""
2015 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
2017 AddLanguage
= staticmethod(AddLanguage
)
2018 def GetString(*args
, **kwargs
):
2019 """GetString(String szOrigString, String szDomain=EmptyString) -> String"""
2020 return _gdi
.Locale_GetString(*args
, **kwargs
)
2022 def GetName(*args
, **kwargs
):
2023 """GetName() -> String"""
2024 return _gdi
.Locale_GetName(*args
, **kwargs
)
2027 class LocalePtr(Locale
):
2028 def __init__(self
, this
):
2030 if not hasattr(self
,"thisown"): self
.thisown
= 0
2031 self
.__class
__ = Locale
2032 _gdi
.Locale_swigregister(LocalePtr
)
2034 def Locale_GetSystemLanguage(*args
, **kwargs
):
2035 """Locale_GetSystemLanguage() -> int"""
2036 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
2038 def Locale_GetSystemEncoding(*args
, **kwargs
):
2039 """Locale_GetSystemEncoding() -> int"""
2040 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
2042 def Locale_GetSystemEncodingName(*args
, **kwargs
):
2043 """Locale_GetSystemEncodingName() -> String"""
2044 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2046 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
2047 """Locale_AddCatalogLookupPathPrefix(String prefix)"""
2048 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2050 def Locale_GetLanguageInfo(*args
, **kwargs
):
2051 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
2052 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
2054 def Locale_GetLanguageName(*args
, **kwargs
):
2055 """Locale_GetLanguageName(int lang) -> String"""
2056 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
2058 def Locale_FindLanguageInfo(*args
, **kwargs
):
2059 """Locale_FindLanguageInfo(String locale) -> LanguageInfo"""
2060 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
2062 def Locale_AddLanguage(*args
, **kwargs
):
2063 """Locale_AddLanguage(LanguageInfo info)"""
2064 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
2067 def GetLocale(*args
, **kwargs
):
2068 """GetLocale() -> Locale"""
2069 return _gdi
.GetLocale(*args
, **kwargs
)
2070 #---------------------------------------------------------------------------
2072 CONVERT_STRICT
= _gdi
.CONVERT_STRICT
2073 CONVERT_SUBSTITUTE
= _gdi
.CONVERT_SUBSTITUTE
2074 PLATFORM_CURRENT
= _gdi
.PLATFORM_CURRENT
2075 PLATFORM_UNIX
= _gdi
.PLATFORM_UNIX
2076 PLATFORM_WINDOWS
= _gdi
.PLATFORM_WINDOWS
2077 PLATFORM_OS2
= _gdi
.PLATFORM_OS2
2078 PLATFORM_MAC
= _gdi
.PLATFORM_MAC
2079 class EncodingConverter(core
.Object
):
2081 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2082 def __init__(self
, *args
, **kwargs
):
2083 """__init__() -> EncodingConverter"""
2084 newobj
= _gdi
.new_EncodingConverter(*args
, **kwargs
)
2085 self
.this
= newobj
.this
2088 def __del__(self
, destroy
=_gdi
.delete_EncodingConverter
):
2091 if self
.thisown
: destroy(self
)
2094 def Init(*args
, **kwargs
):
2095 """Init(int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool"""
2096 return _gdi
.EncodingConverter_Init(*args
, **kwargs
)
2098 def Convert(*args
, **kwargs
):
2099 """Convert(String input) -> String"""
2100 return _gdi
.EncodingConverter_Convert(*args
, **kwargs
)
2102 def GetPlatformEquivalents(*args
, **kwargs
):
2103 """EncodingConverter.GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2104 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2106 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2107 def GetAllEquivalents(*args
, **kwargs
):
2108 """EncodingConverter.GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2109 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2111 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2112 def CanConvert(*args
, **kwargs
):
2113 """EncodingConverter.CanConvert(int encIn, int encOut) -> bool"""
2114 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2116 CanConvert
= staticmethod(CanConvert
)
2117 def __nonzero__(self
): return self
.IsOk()
2119 class EncodingConverterPtr(EncodingConverter
):
2120 def __init__(self
, this
):
2122 if not hasattr(self
,"thisown"): self
.thisown
= 0
2123 self
.__class
__ = EncodingConverter
2124 _gdi
.EncodingConverter_swigregister(EncodingConverterPtr
)
2126 def GetTranslation(*args
):
2128 GetTranslation(String sz) -> String
2129 GetTranslation(String sz1, String sz2, size_t n) -> String
2131 return _gdi
.GetTranslation(*args
)
2133 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2134 """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2135 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2137 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2138 """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2139 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2141 def EncodingConverter_CanConvert(*args
, **kwargs
):
2142 """EncodingConverter_CanConvert(int encIn, int encOut) -> bool"""
2143 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2145 #----------------------------------------------------------------------------
2146 # wxGTK sets the locale when initialized. Doing this at the Python
2147 # level should set it up to match what GTK is doing at the C level.
2148 if wx
.Platform
== "__WXGTK__":
2151 locale
.setlocale(locale
.LC_ALL
, "")
2155 # On MSW add the directory where the wxWindows catalogs were installed
2156 # to the default catalog path.
2157 if wx
.Platform
== "__WXMSW__":
2159 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2160 Locale_AddCatalogLookupPathPrefix(localedir
)
2163 #----------------------------------------------------------------------------
2165 #---------------------------------------------------------------------------
2167 class DC(core
.Object
):
2168 def __init__(self
): raise RuntimeError, "No constructor defined"
2170 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2171 def __del__(self
, destroy
=_gdi
.delete_DC
):
2174 if self
.thisown
: destroy(self
)
2177 def BeginDrawing(*args
, **kwargs
):
2178 """BeginDrawing()"""
2179 return _gdi
.DC_BeginDrawing(*args
, **kwargs
)
2181 def EndDrawing(*args
, **kwargs
):
2183 return _gdi
.DC_EndDrawing(*args
, **kwargs
)
2185 def FloodFillXY(*args
, **kwargs
):
2186 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2187 return _gdi
.DC_FloodFillXY(*args
, **kwargs
)
2189 def FloodFill(*args
, **kwargs
):
2190 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2191 return _gdi
.DC_FloodFill(*args
, **kwargs
)
2193 def GetPixelXY(*args
, **kwargs
):
2194 """GetPixelXY(int x, int y) -> Colour"""
2195 return _gdi
.DC_GetPixelXY(*args
, **kwargs
)
2197 def GetPixel(*args
, **kwargs
):
2198 """GetPixel(Point pt) -> Colour"""
2199 return _gdi
.DC_GetPixel(*args
, **kwargs
)
2201 def DrawLineXY(*args
, **kwargs
):
2202 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2203 return _gdi
.DC_DrawLineXY(*args
, **kwargs
)
2205 def DrawLine(*args
, **kwargs
):
2206 """DrawLine(Point pt1, Point pt2)"""
2207 return _gdi
.DC_DrawLine(*args
, **kwargs
)
2209 def CrossHairXY(*args
, **kwargs
):
2210 """CrossHairXY(int x, int y)"""
2211 return _gdi
.DC_CrossHairXY(*args
, **kwargs
)
2213 def CrossHair(*args
, **kwargs
):
2214 """CrossHair(Point pt)"""
2215 return _gdi
.DC_CrossHair(*args
, **kwargs
)
2217 def DrawArcXY(*args
, **kwargs
):
2218 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2219 return _gdi
.DC_DrawArcXY(*args
, **kwargs
)
2221 def DrawArc(*args
, **kwargs
):
2222 """DrawArc(Point pt1, Point pt2, Point centre)"""
2223 return _gdi
.DC_DrawArc(*args
, **kwargs
)
2225 def DrawCheckMarkXY(*args
, **kwargs
):
2226 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2227 return _gdi
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2229 def DrawCheckMark(*args
, **kwargs
):
2230 """DrawCheckMark(Rect rect)"""
2231 return _gdi
.DC_DrawCheckMark(*args
, **kwargs
)
2233 def DrawEllipticArcXY(*args
, **kwargs
):
2234 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2235 return _gdi
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2237 def DrawEllipticArc(*args
, **kwargs
):
2238 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2239 return _gdi
.DC_DrawEllipticArc(*args
, **kwargs
)
2241 def DrawPointXY(*args
, **kwargs
):
2242 """DrawPointXY(int x, int y)"""
2243 return _gdi
.DC_DrawPointXY(*args
, **kwargs
)
2245 def DrawPoint(*args
, **kwargs
):
2246 """DrawPoint(Point pt)"""
2247 return _gdi
.DC_DrawPoint(*args
, **kwargs
)
2249 def DrawRectangleXY(*args
, **kwargs
):
2250 """DrawRectangleXY(int x, int y, int width, int height)"""
2251 return _gdi
.DC_DrawRectangleXY(*args
, **kwargs
)
2253 def DrawRectangle(*args
, **kwargs
):
2254 """DrawRectangle(Point pt, Size sz)"""
2255 return _gdi
.DC_DrawRectangle(*args
, **kwargs
)
2257 def DrawRectangleRect(*args
, **kwargs
):
2258 """DrawRectangleRect(Rect rect)"""
2259 return _gdi
.DC_DrawRectangleRect(*args
, **kwargs
)
2261 def DrawRoundedRectangleXY(*args
, **kwargs
):
2262 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2263 return _gdi
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2265 def DrawRoundedRectangle(*args
, **kwargs
):
2266 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2267 return _gdi
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2269 def DrawRoundedRectangleRect(*args
, **kwargs
):
2270 """DrawRoundedRectangleRect(Rect r, double radius)"""
2271 return _gdi
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2273 def DrawCircleXY(*args
, **kwargs
):
2274 """DrawCircleXY(int x, int y, int radius)"""
2275 return _gdi
.DC_DrawCircleXY(*args
, **kwargs
)
2277 def DrawCircle(*args
, **kwargs
):
2278 """DrawCircle(Point pt, int radius)"""
2279 return _gdi
.DC_DrawCircle(*args
, **kwargs
)
2281 def DrawEllipseXY(*args
, **kwargs
):
2282 """DrawEllipseXY(int x, int y, int width, int height)"""
2283 return _gdi
.DC_DrawEllipseXY(*args
, **kwargs
)
2285 def DrawEllipse(*args
, **kwargs
):
2286 """DrawEllipse(Point pt, Size sz)"""
2287 return _gdi
.DC_DrawEllipse(*args
, **kwargs
)
2289 def DrawEllipseRect(*args
, **kwargs
):
2290 """DrawEllipseRect(Rect rect)"""
2291 return _gdi
.DC_DrawEllipseRect(*args
, **kwargs
)
2293 def DrawIconXY(*args
, **kwargs
):
2294 """DrawIconXY(Icon icon, int x, int y)"""
2295 return _gdi
.DC_DrawIconXY(*args
, **kwargs
)
2297 def DrawIcon(*args
, **kwargs
):
2298 """DrawIcon(Icon icon, Point pt)"""
2299 return _gdi
.DC_DrawIcon(*args
, **kwargs
)
2301 def DrawBitmapXY(*args
, **kwargs
):
2302 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2303 return _gdi
.DC_DrawBitmapXY(*args
, **kwargs
)
2305 def DrawBitmap(*args
, **kwargs
):
2306 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2307 return _gdi
.DC_DrawBitmap(*args
, **kwargs
)
2309 def DrawTextXY(*args
, **kwargs
):
2310 """DrawTextXY(String text, int x, int y)"""
2311 return _gdi
.DC_DrawTextXY(*args
, **kwargs
)
2313 def DrawText(*args
, **kwargs
):
2314 """DrawText(String text, Point pt)"""
2315 return _gdi
.DC_DrawText(*args
, **kwargs
)
2317 def DrawRotatedTextXY(*args
, **kwargs
):
2318 """DrawRotatedTextXY(String text, int x, int y, double angle)"""
2319 return _gdi
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2321 def DrawRotatedText(*args
, **kwargs
):
2322 """DrawRotatedText(String text, Point pt, double angle)"""
2323 return _gdi
.DC_DrawRotatedText(*args
, **kwargs
)
2325 def BlitXY(*args
, **kwargs
):
2327 BlitXY(int xdest, int ydest, int width, int height, DC source,
2328 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2329 int xsrcMask=-1, int ysrcMask=-1) -> bool
2331 return _gdi
.DC_BlitXY(*args
, **kwargs
)
2333 def Blit(*args
, **kwargs
):
2335 Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2336 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
2338 return _gdi
.DC_Blit(*args
, **kwargs
)
2340 def DrawLines(*args
, **kwargs
):
2341 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2342 return _gdi
.DC_DrawLines(*args
, **kwargs
)
2344 def DrawPolygon(*args
, **kwargs
):
2346 DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2347 int fillStyle=ODDEVEN_RULE)
2349 return _gdi
.DC_DrawPolygon(*args
, **kwargs
)
2351 def DrawLabel(*args
, **kwargs
):
2353 DrawLabel(String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2356 return _gdi
.DC_DrawLabel(*args
, **kwargs
)
2358 def DrawImageLabel(*args
, **kwargs
):
2360 DrawImageLabel(String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2361 int indexAccel=-1) -> Rect
2363 return _gdi
.DC_DrawImageLabel(*args
, **kwargs
)
2365 def DrawSpline(*args
, **kwargs
):
2366 """DrawSpline(int points, Point points_array)"""
2367 return _gdi
.DC_DrawSpline(*args
, **kwargs
)
2369 def Clear(*args
, **kwargs
):
2371 return _gdi
.DC_Clear(*args
, **kwargs
)
2373 def StartDoc(*args
, **kwargs
):
2374 """StartDoc(String message) -> bool"""
2375 return _gdi
.DC_StartDoc(*args
, **kwargs
)
2377 def EndDoc(*args
, **kwargs
):
2379 return _gdi
.DC_EndDoc(*args
, **kwargs
)
2381 def StartPage(*args
, **kwargs
):
2383 return _gdi
.DC_StartPage(*args
, **kwargs
)
2385 def EndPage(*args
, **kwargs
):
2387 return _gdi
.DC_EndPage(*args
, **kwargs
)
2389 def SetFont(*args
, **kwargs
):
2390 """SetFont(Font font)"""
2391 return _gdi
.DC_SetFont(*args
, **kwargs
)
2393 def SetPen(*args
, **kwargs
):
2394 """SetPen(Pen pen)"""
2395 return _gdi
.DC_SetPen(*args
, **kwargs
)
2397 def SetBrush(*args
, **kwargs
):
2398 """SetBrush(Brush brush)"""
2399 return _gdi
.DC_SetBrush(*args
, **kwargs
)
2401 def SetBackground(*args
, **kwargs
):
2402 """SetBackground(Brush brush)"""
2403 return _gdi
.DC_SetBackground(*args
, **kwargs
)
2405 def SetBackgroundMode(*args
, **kwargs
):
2406 """SetBackgroundMode(int mode)"""
2407 return _gdi
.DC_SetBackgroundMode(*args
, **kwargs
)
2409 def SetPalette(*args
, **kwargs
):
2410 """SetPalette(Palette palette)"""
2411 return _gdi
.DC_SetPalette(*args
, **kwargs
)
2413 def SetClippingRegionXY(*args
, **kwargs
):
2414 """SetClippingRegionXY(int x, int y, int width, int height)"""
2415 return _gdi
.DC_SetClippingRegionXY(*args
, **kwargs
)
2417 def SetClippingRegion(*args
, **kwargs
):
2418 """SetClippingRegion(Point pt, Size sz)"""
2419 return _gdi
.DC_SetClippingRegion(*args
, **kwargs
)
2421 def SetClippingRect(*args
, **kwargs
):
2422 """SetClippingRect(Rect rect)"""
2423 return _gdi
.DC_SetClippingRect(*args
, **kwargs
)
2425 def SetClippingRegionAsRegion(*args
, **kwargs
):
2426 """SetClippingRegionAsRegion(Region region)"""
2427 return _gdi
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2429 def DestroyClippingRegion(*args
, **kwargs
):
2430 """DestroyClippingRegion()"""
2431 return _gdi
.DC_DestroyClippingRegion(*args
, **kwargs
)
2433 def GetClippingBox(*args
, **kwargs
):
2434 """GetClippingBox() -> (x, y, width, height)"""
2435 return _gdi
.DC_GetClippingBox(*args
, **kwargs
)
2437 def GetClippingRect(*args
, **kwargs
):
2438 """GetClippingRect() -> Rect"""
2439 return _gdi
.DC_GetClippingRect(*args
, **kwargs
)
2441 def GetCharHeight(*args
, **kwargs
):
2442 """GetCharHeight() -> int"""
2443 return _gdi
.DC_GetCharHeight(*args
, **kwargs
)
2445 def GetCharWidth(*args
, **kwargs
):
2446 """GetCharWidth() -> int"""
2447 return _gdi
.DC_GetCharWidth(*args
, **kwargs
)
2449 def GetTextExtent(*args
, **kwargs
):
2451 GetTextExtent(wxString string) -> (width, height)
2453 Get the width and height of the text using the current font.
2454 Only works for single line strings.
2456 return _gdi
.DC_GetTextExtent(*args
, **kwargs
)
2458 def GetFullTextExtent(*args
, **kwargs
):
2460 GetFullTextExtent(wxString string, Font font=None) ->
2461 (width, height, descent, externalLeading)
2463 Get the width, height, decent and leading of the text using the current or specified font.
2464 Only works for single line strings.
2466 return _gdi
.DC_GetFullTextExtent(*args
, **kwargs
)
2468 def GetMultiLineTextExtent(*args
, **kwargs
):
2470 GetMultiLineTextExtent(wxString string, Font font=None) ->
2471 (width, height, descent, externalLeading)
2473 Get the width, height, decent and leading of the text using the current or specified font.
2474 Works for single as well as multi-line strings.
2476 return _gdi
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2478 def GetSize(*args
, **kwargs
):
2482 Get the DC size in device units.
2484 return _gdi
.DC_GetSize(*args
, **kwargs
)
2486 def GetSizeTuple(*args
, **kwargs
):
2488 GetSizeTuple() -> (width, height)
2490 Get the DC size in device units.
2492 return _gdi
.DC_GetSizeTuple(*args
, **kwargs
)
2494 def GetSizeMM(*args
, **kwargs
):
2498 Get the DC size in milimeters.
2500 return _gdi
.DC_GetSizeMM(*args
, **kwargs
)
2502 def GetSizeMMTuple(*args
, **kwargs
):
2504 GetSizeMMTuple() -> (width, height)
2506 Get the DC size in milimeters.
2508 return _gdi
.DC_GetSizeMMTuple(*args
, **kwargs
)
2510 def DeviceToLogicalX(*args
, **kwargs
):
2511 """DeviceToLogicalX(int x) -> int"""
2512 return _gdi
.DC_DeviceToLogicalX(*args
, **kwargs
)
2514 def DeviceToLogicalY(*args
, **kwargs
):
2515 """DeviceToLogicalY(int y) -> int"""
2516 return _gdi
.DC_DeviceToLogicalY(*args
, **kwargs
)
2518 def DeviceToLogicalXRel(*args
, **kwargs
):
2519 """DeviceToLogicalXRel(int x) -> int"""
2520 return _gdi
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2522 def DeviceToLogicalYRel(*args
, **kwargs
):
2523 """DeviceToLogicalYRel(int y) -> int"""
2524 return _gdi
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2526 def LogicalToDeviceX(*args
, **kwargs
):
2527 """LogicalToDeviceX(int x) -> int"""
2528 return _gdi
.DC_LogicalToDeviceX(*args
, **kwargs
)
2530 def LogicalToDeviceY(*args
, **kwargs
):
2531 """LogicalToDeviceY(int y) -> int"""
2532 return _gdi
.DC_LogicalToDeviceY(*args
, **kwargs
)
2534 def LogicalToDeviceXRel(*args
, **kwargs
):
2535 """LogicalToDeviceXRel(int x) -> int"""
2536 return _gdi
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2538 def LogicalToDeviceYRel(*args
, **kwargs
):
2539 """LogicalToDeviceYRel(int y) -> int"""
2540 return _gdi
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2542 def CanDrawBitmap(*args
, **kwargs
):
2543 """CanDrawBitmap() -> bool"""
2544 return _gdi
.DC_CanDrawBitmap(*args
, **kwargs
)
2546 def CanGetTextExtent(*args
, **kwargs
):
2547 """CanGetTextExtent() -> bool"""
2548 return _gdi
.DC_CanGetTextExtent(*args
, **kwargs
)
2550 def GetDepth(*args
, **kwargs
):
2551 """GetDepth() -> int"""
2552 return _gdi
.DC_GetDepth(*args
, **kwargs
)
2554 def GetPPI(*args
, **kwargs
):
2555 """GetPPI() -> Size"""
2556 return _gdi
.DC_GetPPI(*args
, **kwargs
)
2558 def Ok(*args
, **kwargs
):
2560 return _gdi
.DC_Ok(*args
, **kwargs
)
2562 def GetBackgroundMode(*args
, **kwargs
):
2563 """GetBackgroundMode() -> int"""
2564 return _gdi
.DC_GetBackgroundMode(*args
, **kwargs
)
2566 def GetBackground(*args
, **kwargs
):
2567 """GetBackground() -> Brush"""
2568 return _gdi
.DC_GetBackground(*args
, **kwargs
)
2570 def GetBrush(*args
, **kwargs
):
2571 """GetBrush() -> Brush"""
2572 return _gdi
.DC_GetBrush(*args
, **kwargs
)
2574 def GetFont(*args
, **kwargs
):
2575 """GetFont() -> Font"""
2576 return _gdi
.DC_GetFont(*args
, **kwargs
)
2578 def GetPen(*args
, **kwargs
):
2579 """GetPen() -> Pen"""
2580 return _gdi
.DC_GetPen(*args
, **kwargs
)
2582 def GetTextBackground(*args
, **kwargs
):
2583 """GetTextBackground() -> Colour"""
2584 return _gdi
.DC_GetTextBackground(*args
, **kwargs
)
2586 def GetTextForeground(*args
, **kwargs
):
2587 """GetTextForeground() -> Colour"""
2588 return _gdi
.DC_GetTextForeground(*args
, **kwargs
)
2590 def SetTextForeground(*args
, **kwargs
):
2591 """SetTextForeground(Colour colour)"""
2592 return _gdi
.DC_SetTextForeground(*args
, **kwargs
)
2594 def SetTextBackground(*args
, **kwargs
):
2595 """SetTextBackground(Colour colour)"""
2596 return _gdi
.DC_SetTextBackground(*args
, **kwargs
)
2598 def GetMapMode(*args
, **kwargs
):
2599 """GetMapMode() -> int"""
2600 return _gdi
.DC_GetMapMode(*args
, **kwargs
)
2602 def SetMapMode(*args
, **kwargs
):
2603 """SetMapMode(int mode)"""
2604 return _gdi
.DC_SetMapMode(*args
, **kwargs
)
2606 def GetUserScale(*args
, **kwargs
):
2607 """GetUserScale() -> (xScale, yScale)"""
2608 return _gdi
.DC_GetUserScale(*args
, **kwargs
)
2610 def SetUserScale(*args
, **kwargs
):
2611 """SetUserScale(double x, double y)"""
2612 return _gdi
.DC_SetUserScale(*args
, **kwargs
)
2614 def GetLogicalScale(*args
, **kwargs
):
2615 """GetLogicalScale() -> (xScale, yScale)"""
2616 return _gdi
.DC_GetLogicalScale(*args
, **kwargs
)
2618 def SetLogicalScale(*args
, **kwargs
):
2619 """SetLogicalScale(double x, double y)"""
2620 return _gdi
.DC_SetLogicalScale(*args
, **kwargs
)
2622 def GetLogicalOrigin(*args
, **kwargs
):
2623 """GetLogicalOrigin() -> Point"""
2624 return _gdi
.DC_GetLogicalOrigin(*args
, **kwargs
)
2626 def GetLogicalOriginTuple(*args
, **kwargs
):
2627 """GetLogicalOriginTuple() -> (x,y)"""
2628 return _gdi
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2630 def SetLogicalOrigin(*args
, **kwargs
):
2631 """SetLogicalOrigin(int x, int y)"""
2632 return _gdi
.DC_SetLogicalOrigin(*args
, **kwargs
)
2634 def GetDeviceOrigin(*args
, **kwargs
):
2635 """GetDeviceOrigin() -> Point"""
2636 return _gdi
.DC_GetDeviceOrigin(*args
, **kwargs
)
2638 def GetDeviceOriginTuple(*args
, **kwargs
):
2639 """GetDeviceOriginTuple() -> (x,y)"""
2640 return _gdi
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2642 def SetDeviceOrigin(*args
, **kwargs
):
2643 """SetDeviceOrigin(int x, int y)"""
2644 return _gdi
.DC_SetDeviceOrigin(*args
, **kwargs
)
2646 def SetAxisOrientation(*args
, **kwargs
):
2647 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2648 return _gdi
.DC_SetAxisOrientation(*args
, **kwargs
)
2650 def GetLogicalFunction(*args
, **kwargs
):
2651 """GetLogicalFunction() -> int"""
2652 return _gdi
.DC_GetLogicalFunction(*args
, **kwargs
)
2654 def SetLogicalFunction(*args
, **kwargs
):
2655 """SetLogicalFunction(int function)"""
2656 return _gdi
.DC_SetLogicalFunction(*args
, **kwargs
)
2658 def SetOptimization(*args
, **kwargs
):
2659 """SetOptimization(bool opt)"""
2660 return _gdi
.DC_SetOptimization(*args
, **kwargs
)
2662 def GetOptimization(*args
, **kwargs
):
2663 """GetOptimization() -> bool"""
2664 return _gdi
.DC_GetOptimization(*args
, **kwargs
)
2666 def CalcBoundingBox(*args
, **kwargs
):
2667 """CalcBoundingBox(int x, int y)"""
2668 return _gdi
.DC_CalcBoundingBox(*args
, **kwargs
)
2670 def ResetBoundingBox(*args
, **kwargs
):
2671 """ResetBoundingBox()"""
2672 return _gdi
.DC_ResetBoundingBox(*args
, **kwargs
)
2674 def MinX(*args
, **kwargs
):
2676 return _gdi
.DC_MinX(*args
, **kwargs
)
2678 def MaxX(*args
, **kwargs
):
2680 return _gdi
.DC_MaxX(*args
, **kwargs
)
2682 def MinY(*args
, **kwargs
):
2684 return _gdi
.DC_MinY(*args
, **kwargs
)
2686 def MaxY(*args
, **kwargs
):
2688 return _gdi
.DC_MaxY(*args
, **kwargs
)
2690 def GetBoundingBox(*args
, **kwargs
):
2691 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2692 return _gdi
.DC_GetBoundingBox(*args
, **kwargs
)
2694 def __nonzero__(self
): return self
.Ok()
2695 def _DrawPointList(*args
, **kwargs
):
2696 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2697 return _gdi
.DC__DrawPointList(*args
, **kwargs
)
2699 def _DrawLineList(*args
, **kwargs
):
2700 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2701 return _gdi
.DC__DrawLineList(*args
, **kwargs
)
2703 def _DrawRectangleList(*args
, **kwargs
):
2704 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2705 return _gdi
.DC__DrawRectangleList(*args
, **kwargs
)
2707 def _DrawEllipseList(*args
, **kwargs
):
2708 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2709 return _gdi
.DC__DrawEllipseList(*args
, **kwargs
)
2711 def _DrawPolygonList(*args
, **kwargs
):
2712 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2713 return _gdi
.DC__DrawPolygonList(*args
, **kwargs
)
2715 def _DrawTextList(*args
, **kwargs
):
2717 _DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2718 PyObject backgroundList) -> PyObject
2720 return _gdi
.DC__DrawTextList(*args
, **kwargs
)
2722 def DrawPointList(self
, points
, pens
=None):
2725 elif isinstance(pens
, wx
.Pen
):
2727 elif len(pens
) != len(points
):
2728 raise ValueError('points and pens must have same length')
2729 return self
._DrawPointList
(points
, pens
, [])
2732 def DrawLineList(self
, lines
, pens
=None):
2735 elif isinstance(pens
, wx
.Pen
):
2737 elif len(pens
) != len(lines
):
2738 raise ValueError('lines and pens must have same length')
2739 return self
._DrawLineList
(lines
, pens
, [])
2742 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2745 elif isinstance(pens
, wx
.Pen
):
2747 elif len(pens
) != len(rectangles
):
2748 raise ValueError('rectangles and pens must have same length')
2751 elif isinstance(brushes
, wx
.Brush
):
2753 elif len(brushes
) != len(rectangles
):
2754 raise ValueError('rectangles and brushes must have same length')
2755 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2758 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2761 elif isinstance(pens
, wx
.Pen
):
2763 elif len(pens
) != len(ellipses
):
2764 raise ValueError('ellipses and pens must have same length')
2767 elif isinstance(brushes
, wx
.Brush
):
2769 elif len(brushes
) != len(ellipses
):
2770 raise ValueError('ellipses and brushes must have same length')
2771 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2774 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2779 elif isinstance(pens
, wx
.Pen
):
2781 elif len(pens
) != len(polygons
):
2782 raise ValueError('polygons and pens must have same length')
2785 elif isinstance(brushes
, wx
.Brush
):
2787 elif len(brushes
) != len(polygons
):
2788 raise ValueError('polygons and brushes must have same length')
2789 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2792 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2796 if type(textList
) == type(''):
2797 textList
= [textList
]
2798 elif len(textList
) != len(coords
):
2799 raise ValueError('textlist and coords must have same length')
2800 if foregrounds
is None:
2802 elif isinstance(foregrounds
, wx
.Colour
):
2803 foregrounds
= [foregrounds
]
2804 elif len(foregrounds
) != len(coords
):
2805 raise ValueError('foregrounds and coords must have same length')
2806 if backgrounds
is None:
2808 elif isinstance(backgrounds
, wx
.Colour
):
2809 backgrounds
= [backgrounds
]
2810 elif len(backgrounds
) != len(coords
):
2811 raise ValueError('backgrounds and coords must have same length')
2812 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2816 def __init__(self
, this
):
2818 if not hasattr(self
,"thisown"): self
.thisown
= 0
2820 _gdi
.DC_swigregister(DCPtr
)
2822 #---------------------------------------------------------------------------
2826 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2827 def __init__(self
, *args
, **kwargs
):
2828 """__init__() -> MemoryDC"""
2829 newobj
= _gdi
.new_MemoryDC(*args
, **kwargs
)
2830 self
.this
= newobj
.this
2833 def SelectObject(*args
, **kwargs
):
2834 """SelectObject(Bitmap bitmap)"""
2835 return _gdi
.MemoryDC_SelectObject(*args
, **kwargs
)
2838 class MemoryDCPtr(MemoryDC
):
2839 def __init__(self
, this
):
2841 if not hasattr(self
,"thisown"): self
.thisown
= 0
2842 self
.__class
__ = MemoryDC
2843 _gdi
.MemoryDC_swigregister(MemoryDCPtr
)
2845 def MemoryDCFromDC(*args
, **kwargs
):
2846 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
2847 val
= _gdi
.new_MemoryDCFromDC(*args
, **kwargs
)
2851 #---------------------------------------------------------------------------
2853 class BufferedDC(MemoryDC
):
2855 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2856 def __init__(self
, *args
, **kwargs
):
2857 """__init__(DC dc, Bitmap buffer) -> BufferedDC"""
2858 newobj
= _gdi
.new_BufferedDC(*args
, **kwargs
)
2859 self
.this
= newobj
.this
2862 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2864 def UnMask(*args
, **kwargs
):
2866 return _gdi
.BufferedDC_UnMask(*args
, **kwargs
)
2869 class BufferedDCPtr(BufferedDC
):
2870 def __init__(self
, this
):
2872 if not hasattr(self
,"thisown"): self
.thisown
= 0
2873 self
.__class
__ = BufferedDC
2874 _gdi
.BufferedDC_swigregister(BufferedDCPtr
)
2876 def BufferedDCInternalBuffer(*args
, **kwargs
):
2877 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
2878 val
= _gdi
.new_BufferedDCInternalBuffer(*args
, **kwargs
)
2880 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2883 class BufferedPaintDC(BufferedDC
):
2885 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2886 def __init__(self
, *args
, **kwargs
):
2887 """__init__(Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
2888 newobj
= _gdi
.new_BufferedPaintDC(*args
, **kwargs
)
2889 self
.this
= newobj
.this
2893 class BufferedPaintDCPtr(BufferedPaintDC
):
2894 def __init__(self
, this
):
2896 if not hasattr(self
,"thisown"): self
.thisown
= 0
2897 self
.__class
__ = BufferedPaintDC
2898 _gdi
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
2900 #---------------------------------------------------------------------------
2904 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2905 def __init__(self
, *args
, **kwargs
):
2906 """__init__() -> ScreenDC"""
2907 newobj
= _gdi
.new_ScreenDC(*args
, **kwargs
)
2908 self
.this
= newobj
.this
2911 def StartDrawingOnTopWin(*args
, **kwargs
):
2912 """StartDrawingOnTopWin(Window window) -> bool"""
2913 return _gdi
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
2915 def StartDrawingOnTop(*args
, **kwargs
):
2916 """StartDrawingOnTop(Rect rect=None) -> bool"""
2917 return _gdi
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
2919 def EndDrawingOnTop(*args
, **kwargs
):
2920 """EndDrawingOnTop() -> bool"""
2921 return _gdi
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
2924 class ScreenDCPtr(ScreenDC
):
2925 def __init__(self
, this
):
2927 if not hasattr(self
,"thisown"): self
.thisown
= 0
2928 self
.__class
__ = ScreenDC
2929 _gdi
.ScreenDC_swigregister(ScreenDCPtr
)
2931 #---------------------------------------------------------------------------
2935 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2936 def __init__(self
, *args
, **kwargs
):
2937 """__init__(Window win) -> ClientDC"""
2938 newobj
= _gdi
.new_ClientDC(*args
, **kwargs
)
2939 self
.this
= newobj
.this
2943 class ClientDCPtr(ClientDC
):
2944 def __init__(self
, this
):
2946 if not hasattr(self
,"thisown"): self
.thisown
= 0
2947 self
.__class
__ = ClientDC
2948 _gdi
.ClientDC_swigregister(ClientDCPtr
)
2950 #---------------------------------------------------------------------------
2954 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2955 def __init__(self
, *args
, **kwargs
):
2956 """__init__(Window win) -> PaintDC"""
2957 newobj
= _gdi
.new_PaintDC(*args
, **kwargs
)
2958 self
.this
= newobj
.this
2962 class PaintDCPtr(PaintDC
):
2963 def __init__(self
, this
):
2965 if not hasattr(self
,"thisown"): self
.thisown
= 0
2966 self
.__class
__ = PaintDC
2967 _gdi
.PaintDC_swigregister(PaintDCPtr
)
2969 #---------------------------------------------------------------------------
2973 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2974 def __init__(self
, *args
, **kwargs
):
2975 """__init__(Window win) -> WindowDC"""
2976 newobj
= _gdi
.new_WindowDC(*args
, **kwargs
)
2977 self
.this
= newobj
.this
2981 class WindowDCPtr(WindowDC
):
2982 def __init__(self
, this
):
2984 if not hasattr(self
,"thisown"): self
.thisown
= 0
2985 self
.__class
__ = WindowDC
2986 _gdi
.WindowDC_swigregister(WindowDCPtr
)
2988 #---------------------------------------------------------------------------
2992 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2993 def __init__(self
, *args
, **kwargs
):
2994 """__init__(DC dc, bool mirror) -> MirrorDC"""
2995 newobj
= _gdi
.new_MirrorDC(*args
, **kwargs
)
2996 self
.this
= newobj
.this
3000 class MirrorDCPtr(MirrorDC
):
3001 def __init__(self
, this
):
3003 if not hasattr(self
,"thisown"): self
.thisown
= 0
3004 self
.__class
__ = MirrorDC
3005 _gdi
.MirrorDC_swigregister(MirrorDCPtr
)
3007 #---------------------------------------------------------------------------
3009 class PostScriptDC(DC
):
3011 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3012 def __init__(self
, *args
, **kwargs
):
3013 """__init__(wxPrintData printData) -> PostScriptDC"""
3014 newobj
= _gdi
.new_PostScriptDC(*args
, **kwargs
)
3015 self
.this
= newobj
.this
3018 def GetPrintData(*args
, **kwargs
):
3019 """GetPrintData() -> wxPrintData"""
3020 return _gdi
.PostScriptDC_GetPrintData(*args
, **kwargs
)
3022 def SetPrintData(*args
, **kwargs
):
3023 """SetPrintData(wxPrintData data)"""
3024 return _gdi
.PostScriptDC_SetPrintData(*args
, **kwargs
)
3026 def SetResolution(*args
, **kwargs
):
3027 """PostScriptDC.SetResolution(int ppi)"""
3028 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
3030 SetResolution
= staticmethod(SetResolution
)
3031 def GetResolution(*args
, **kwargs
):
3032 """PostScriptDC.GetResolution() -> int"""
3033 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
3035 GetResolution
= staticmethod(GetResolution
)
3037 class PostScriptDCPtr(PostScriptDC
):
3038 def __init__(self
, this
):
3040 if not hasattr(self
,"thisown"): self
.thisown
= 0
3041 self
.__class
__ = PostScriptDC
3042 _gdi
.PostScriptDC_swigregister(PostScriptDCPtr
)
3044 def PostScriptDC_SetResolution(*args
, **kwargs
):
3045 """PostScriptDC_SetResolution(int ppi)"""
3046 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
3048 def PostScriptDC_GetResolution(*args
, **kwargs
):
3049 """PostScriptDC_GetResolution() -> int"""
3050 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
3052 #---------------------------------------------------------------------------
3054 class MetaFile(core
.Object
):
3056 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3057 def __init__(self
, *args
, **kwargs
):
3058 """__init__(String filename=EmptyString) -> MetaFile"""
3059 newobj
= _gdi
.new_MetaFile(*args
, **kwargs
)
3060 self
.this
= newobj
.this
3063 def __del__(self
, destroy
=_gdi
.delete_MetaFile
):
3066 if self
.thisown
: destroy(self
)
3069 def Ok(*args
, **kwargs
):
3071 return _gdi
.MetaFile_Ok(*args
, **kwargs
)
3073 def SetClipboard(*args
, **kwargs
):
3074 """SetClipboard(int width=0, int height=0) -> bool"""
3075 return _gdi
.MetaFile_SetClipboard(*args
, **kwargs
)
3077 def GetSize(*args
, **kwargs
):
3078 """GetSize() -> Size"""
3079 return _gdi
.MetaFile_GetSize(*args
, **kwargs
)
3081 def GetWidth(*args
, **kwargs
):
3082 """GetWidth() -> int"""
3083 return _gdi
.MetaFile_GetWidth(*args
, **kwargs
)
3085 def GetHeight(*args
, **kwargs
):
3086 """GetHeight() -> int"""
3087 return _gdi
.MetaFile_GetHeight(*args
, **kwargs
)
3089 def GetFileName(*args
, **kwargs
):
3090 """GetFileName() -> String"""
3091 return _gdi
.MetaFile_GetFileName(*args
, **kwargs
)
3093 def __nonzero__(self
): return self
.Ok()
3095 class MetaFilePtr(MetaFile
):
3096 def __init__(self
, this
):
3098 if not hasattr(self
,"thisown"): self
.thisown
= 0
3099 self
.__class
__ = MetaFile
3100 _gdi
.MetaFile_swigregister(MetaFilePtr
)
3102 class MetaFileDC(DC
):
3104 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3105 def __init__(self
, *args
, **kwargs
):
3107 __init__(String filename=EmptyString, int width=0, int height=0,
3108 String description=EmptyString) -> MetaFileDC
3110 newobj
= _gdi
.new_MetaFileDC(*args
, **kwargs
)
3111 self
.this
= newobj
.this
3114 def Close(*args
, **kwargs
):
3115 """Close() -> MetaFile"""
3116 return _gdi
.MetaFileDC_Close(*args
, **kwargs
)
3119 class MetaFileDCPtr(MetaFileDC
):
3120 def __init__(self
, this
):
3122 if not hasattr(self
,"thisown"): self
.thisown
= 0
3123 self
.__class
__ = MetaFileDC
3124 _gdi
.MetaFileDC_swigregister(MetaFileDCPtr
)
3126 class PrinterDC(DC
):
3128 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3129 def __init__(self
, *args
, **kwargs
):
3130 """__init__(wxPrintData printData) -> PrinterDC"""
3131 newobj
= _gdi
.new_PrinterDC(*args
, **kwargs
)
3132 self
.this
= newobj
.this
3136 class PrinterDCPtr(PrinterDC
):
3137 def __init__(self
, this
):
3139 if not hasattr(self
,"thisown"): self
.thisown
= 0
3140 self
.__class
__ = PrinterDC
3141 _gdi
.PrinterDC_swigregister(PrinterDCPtr
)
3143 #---------------------------------------------------------------------------
3145 IMAGELIST_DRAW_NORMAL
= _gdi
.IMAGELIST_DRAW_NORMAL
3146 IMAGELIST_DRAW_TRANSPARENT
= _gdi
.IMAGELIST_DRAW_TRANSPARENT
3147 IMAGELIST_DRAW_SELECTED
= _gdi
.IMAGELIST_DRAW_SELECTED
3148 IMAGELIST_DRAW_FOCUSED
= _gdi
.IMAGELIST_DRAW_FOCUSED
3149 IMAGE_LIST_NORMAL
= _gdi
.IMAGE_LIST_NORMAL
3150 IMAGE_LIST_SMALL
= _gdi
.IMAGE_LIST_SMALL
3151 IMAGE_LIST_STATE
= _gdi
.IMAGE_LIST_STATE
3152 class ImageList(core
.Object
):
3154 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3155 def __init__(self
, *args
, **kwargs
):
3156 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3157 newobj
= _gdi
.new_ImageList(*args
, **kwargs
)
3158 self
.this
= newobj
.this
3161 def __del__(self
, destroy
=_gdi
.delete_ImageList
):
3164 if self
.thisown
: destroy(self
)
3167 def Add(*args
, **kwargs
):
3168 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3169 return _gdi
.ImageList_Add(*args
, **kwargs
)
3171 def AddWithColourMask(*args
, **kwargs
):
3172 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
3173 return _gdi
.ImageList_AddWithColourMask(*args
, **kwargs
)
3175 def AddIcon(*args
, **kwargs
):
3176 """AddIcon(Icon icon) -> int"""
3177 return _gdi
.ImageList_AddIcon(*args
, **kwargs
)
3179 def Replace(*args
, **kwargs
):
3180 """Replace(int index, Bitmap bitmap, Bitmap mask=NullBitmap) -> bool"""
3181 return _gdi
.ImageList_Replace(*args
, **kwargs
)
3183 def Draw(*args
, **kwargs
):
3185 Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3186 bool solidBackground=False) -> bool
3188 return _gdi
.ImageList_Draw(*args
, **kwargs
)
3190 def GetImageCount(*args
, **kwargs
):
3191 """GetImageCount() -> int"""
3192 return _gdi
.ImageList_GetImageCount(*args
, **kwargs
)
3194 def Remove(*args
, **kwargs
):
3195 """Remove(int index) -> bool"""
3196 return _gdi
.ImageList_Remove(*args
, **kwargs
)
3198 def RemoveAll(*args
, **kwargs
):
3199 """RemoveAll() -> bool"""
3200 return _gdi
.ImageList_RemoveAll(*args
, **kwargs
)
3202 def GetSize(*args
, **kwargs
):
3203 """GetSize() -> (width,height)"""
3204 return _gdi
.ImageList_GetSize(*args
, **kwargs
)
3207 class ImageListPtr(ImageList
):
3208 def __init__(self
, this
):
3210 if not hasattr(self
,"thisown"): self
.thisown
= 0
3211 self
.__class
__ = ImageList
3212 _gdi
.ImageList_swigregister(ImageListPtr
)
3214 #---------------------------------------------------------------------------
3216 class PenList(core
.Object
):
3217 def __init__(self
): raise RuntimeError, "No constructor defined"
3219 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3220 def AddPen(*args
, **kwargs
):
3221 """AddPen(Pen pen)"""
3222 return _gdi
.PenList_AddPen(*args
, **kwargs
)
3224 def FindOrCreatePen(*args
, **kwargs
):
3225 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
3226 return _gdi
.PenList_FindOrCreatePen(*args
, **kwargs
)
3228 def RemovePen(*args
, **kwargs
):
3229 """RemovePen(Pen pen)"""
3230 return _gdi
.PenList_RemovePen(*args
, **kwargs
)
3232 def GetCount(*args
, **kwargs
):
3233 """GetCount() -> int"""
3234 return _gdi
.PenList_GetCount(*args
, **kwargs
)
3237 class PenListPtr(PenList
):
3238 def __init__(self
, this
):
3240 if not hasattr(self
,"thisown"): self
.thisown
= 0
3241 self
.__class
__ = PenList
3242 _gdi
.PenList_swigregister(PenListPtr
)
3244 class BrushList(core
.Object
):
3245 def __init__(self
): raise RuntimeError, "No constructor defined"
3247 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3248 def AddBrush(*args
, **kwargs
):
3249 """AddBrush(Brush brush)"""
3250 return _gdi
.BrushList_AddBrush(*args
, **kwargs
)
3252 def FindOrCreateBrush(*args
, **kwargs
):
3253 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
3254 return _gdi
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3256 def RemoveBrush(*args
, **kwargs
):
3257 """RemoveBrush(Brush brush)"""
3258 return _gdi
.BrushList_RemoveBrush(*args
, **kwargs
)
3260 def GetCount(*args
, **kwargs
):
3261 """GetCount() -> int"""
3262 return _gdi
.BrushList_GetCount(*args
, **kwargs
)
3265 class BrushListPtr(BrushList
):
3266 def __init__(self
, this
):
3268 if not hasattr(self
,"thisown"): self
.thisown
= 0
3269 self
.__class
__ = BrushList
3270 _gdi
.BrushList_swigregister(BrushListPtr
)
3272 class ColourDatabase(core
.Object
):
3274 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3275 def __init__(self
, *args
, **kwargs
):
3276 """__init__() -> ColourDatabase"""
3277 newobj
= _gdi
.new_ColourDatabase(*args
, **kwargs
)
3278 self
.this
= newobj
.this
3281 def __del__(self
, destroy
=_gdi
.delete_ColourDatabase
):
3284 if self
.thisown
: destroy(self
)
3287 def Find(*args
, **kwargs
):
3288 """Find(String name) -> Colour"""
3289 return _gdi
.ColourDatabase_Find(*args
, **kwargs
)
3291 def FindName(*args
, **kwargs
):
3292 """FindName(Colour colour) -> String"""
3293 return _gdi
.ColourDatabase_FindName(*args
, **kwargs
)
3296 def AddColour(*args
, **kwargs
):
3297 """AddColour(String name, Colour colour)"""
3298 return _gdi
.ColourDatabase_AddColour(*args
, **kwargs
)
3300 def Append(*args
, **kwargs
):
3301 """Append(String name, int red, int green, int blue)"""
3302 return _gdi
.ColourDatabase_Append(*args
, **kwargs
)
3305 class ColourDatabasePtr(ColourDatabase
):
3306 def __init__(self
, this
):
3308 if not hasattr(self
,"thisown"): self
.thisown
= 0
3309 self
.__class
__ = ColourDatabase
3310 _gdi
.ColourDatabase_swigregister(ColourDatabasePtr
)
3312 class FontList(core
.Object
):
3313 def __init__(self
): raise RuntimeError, "No constructor defined"
3315 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3316 def AddFont(*args
, **kwargs
):
3317 """AddFont(Font font)"""
3318 return _gdi
.FontList_AddFont(*args
, **kwargs
)
3320 def FindOrCreateFont(*args
, **kwargs
):
3322 FindOrCreateFont(int point_size, int family, int style, int weight,
3323 bool underline=False, String facename=EmptyString,
3324 int encoding=FONTENCODING_DEFAULT) -> Font
3326 return _gdi
.FontList_FindOrCreateFont(*args
, **kwargs
)
3328 def RemoveFont(*args
, **kwargs
):
3329 """RemoveFont(Font font)"""
3330 return _gdi
.FontList_RemoveFont(*args
, **kwargs
)
3332 def GetCount(*args
, **kwargs
):
3333 """GetCount() -> int"""
3334 return _gdi
.FontList_GetCount(*args
, **kwargs
)
3337 class FontListPtr(FontList
):
3338 def __init__(self
, this
):
3340 if not hasattr(self
,"thisown"): self
.thisown
= 0
3341 self
.__class
__ = FontList
3342 _gdi
.FontList_swigregister(FontListPtr
)
3344 #---------------------------------------------------------------------------
3346 #---------------------------------------------------------------------------
3348 class Effects(core
.Object
):
3350 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3351 def __init__(self
, *args
, **kwargs
):
3352 """__init__() -> Effects"""
3353 newobj
= _gdi
.new_Effects(*args
, **kwargs
)
3354 self
.this
= newobj
.this
3357 def GetHighlightColour(*args
, **kwargs
):
3358 """GetHighlightColour() -> Colour"""
3359 return _gdi
.Effects_GetHighlightColour(*args
, **kwargs
)
3361 def GetLightShadow(*args
, **kwargs
):
3362 """GetLightShadow() -> Colour"""
3363 return _gdi
.Effects_GetLightShadow(*args
, **kwargs
)
3365 def GetFaceColour(*args
, **kwargs
):
3366 """GetFaceColour() -> Colour"""
3367 return _gdi
.Effects_GetFaceColour(*args
, **kwargs
)
3369 def GetMediumShadow(*args
, **kwargs
):
3370 """GetMediumShadow() -> Colour"""
3371 return _gdi
.Effects_GetMediumShadow(*args
, **kwargs
)
3373 def GetDarkShadow(*args
, **kwargs
):
3374 """GetDarkShadow() -> Colour"""
3375 return _gdi
.Effects_GetDarkShadow(*args
, **kwargs
)
3377 def SetHighlightColour(*args
, **kwargs
):
3378 """SetHighlightColour(Colour c)"""
3379 return _gdi
.Effects_SetHighlightColour(*args
, **kwargs
)
3381 def SetLightShadow(*args
, **kwargs
):
3382 """SetLightShadow(Colour c)"""
3383 return _gdi
.Effects_SetLightShadow(*args
, **kwargs
)
3385 def SetFaceColour(*args
, **kwargs
):
3386 """SetFaceColour(Colour c)"""
3387 return _gdi
.Effects_SetFaceColour(*args
, **kwargs
)
3389 def SetMediumShadow(*args
, **kwargs
):
3390 """SetMediumShadow(Colour c)"""
3391 return _gdi
.Effects_SetMediumShadow(*args
, **kwargs
)
3393 def SetDarkShadow(*args
, **kwargs
):
3394 """SetDarkShadow(Colour c)"""
3395 return _gdi
.Effects_SetDarkShadow(*args
, **kwargs
)
3397 def Set(*args
, **kwargs
):
3399 Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3400 Colour mediumShadow, Colour darkShadow)
3402 return _gdi
.Effects_Set(*args
, **kwargs
)
3404 def DrawSunkenEdge(*args
, **kwargs
):
3405 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3406 return _gdi
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3408 def TileBitmap(*args
, **kwargs
):
3409 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3410 return _gdi
.Effects_TileBitmap(*args
, **kwargs
)
3413 class EffectsPtr(Effects
):
3414 def __init__(self
, this
):
3416 if not hasattr(self
,"thisown"): self
.thisown
= 0
3417 self
.__class
__ = Effects
3418 _gdi
.Effects_swigregister(EffectsPtr
)
3420 NORMAL_FONT
= cvar
.NORMAL_FONT
3421 SMALL_FONT
= cvar
.SMALL_FONT
3422 ITALIC_FONT
= cvar
.ITALIC_FONT
3423 SWISS_FONT
= cvar
.SWISS_FONT
3424 RED_PEN
= cvar
.RED_PEN
3425 CYAN_PEN
= cvar
.CYAN_PEN
3426 GREEN_PEN
= cvar
.GREEN_PEN
3427 BLACK_PEN
= cvar
.BLACK_PEN
3428 WHITE_PEN
= cvar
.WHITE_PEN
3429 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3430 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3431 GREY_PEN
= cvar
.GREY_PEN
3432 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3433 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3434 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3435 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3436 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3437 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3438 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3439 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3440 RED_BRUSH
= cvar
.RED_BRUSH
3441 GREY_BRUSH
= cvar
.GREY_BRUSH
3442 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3443 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3450 LIGHT_GREY
= cvar
.LIGHT_GREY
3451 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3452 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3453 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3454 NullBitmap
= cvar
.NullBitmap
3455 NullIcon
= cvar
.NullIcon
3456 NullCursor
= cvar
.NullCursor
3457 NullPen
= cvar
.NullPen
3458 NullBrush
= cvar
.NullBrush
3459 NullPalette
= cvar
.NullPalette
3460 NullFont
= cvar
.NullFont
3461 NullColour
= cvar
.NullColour
3462 TheFontList
= cvar
.TheFontList
3463 ThePenList
= cvar
.ThePenList
3464 TheBrushList
= cvar
.TheBrushList
3465 TheColourDatabase
= cvar
.TheColourDatabase