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 __safe_for_unpickling__
= True
107 def __reduce__(self
): return (Colour
, self
.Get())
110 class ColourPtr(Colour
):
111 def __init__(self
, this
):
113 if not hasattr(self
,"thisown"): self
.thisown
= 0
114 self
.__class
__ = Colour
115 _gdi
.Colour_swigregister(ColourPtr
)
117 def NamedColour(*args
, **kwargs
):
118 """NamedColour(String colorName) -> Colour"""
119 val
= _gdi
.new_NamedColour(*args
, **kwargs
)
123 def ColourRGB(*args
, **kwargs
):
124 """ColourRGB(unsigned long colRGB) -> Colour"""
125 val
= _gdi
.new_ColourRGB(*args
, **kwargs
)
130 NamedColor
= NamedColour
133 class Palette(GDIObject
):
135 return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
136 def __init__(self
, *args
, **kwargs
):
137 """__init__(int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette"""
138 newobj
= _gdi
.new_Palette(*args
, **kwargs
)
139 self
.this
= newobj
.this
142 def __del__(self
, destroy
=_gdi
.delete_Palette
):
145 if self
.thisown
: destroy(self
)
148 def GetPixel(*args
, **kwargs
):
149 """GetPixel(byte red, byte green, byte blue) -> int"""
150 return _gdi
.Palette_GetPixel(*args
, **kwargs
)
152 def GetRGB(*args
, **kwargs
):
153 """GetRGB(int pixel) -> (R,G,B)"""
154 return _gdi
.Palette_GetRGB(*args
, **kwargs
)
156 def Ok(*args
, **kwargs
):
158 return _gdi
.Palette_Ok(*args
, **kwargs
)
160 def __nonzero__(self
): return self
.Ok()
162 class PalettePtr(Palette
):
163 def __init__(self
, this
):
165 if not hasattr(self
,"thisown"): self
.thisown
= 0
166 self
.__class
__ = Palette
167 _gdi
.Palette_swigregister(PalettePtr
)
169 #---------------------------------------------------------------------------
171 class Pen(GDIObject
):
173 return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
174 def __init__(self
, *args
, **kwargs
):
175 """__init__(Colour colour, int width=1, int style=SOLID) -> Pen"""
176 newobj
= _gdi
.new_Pen(*args
, **kwargs
)
177 self
.this
= newobj
.this
180 def __del__(self
, destroy
=_gdi
.delete_Pen
):
183 if self
.thisown
: destroy(self
)
186 def GetCap(*args
, **kwargs
):
187 """GetCap() -> int"""
188 return _gdi
.Pen_GetCap(*args
, **kwargs
)
190 def GetColour(*args
, **kwargs
):
191 """GetColour() -> Colour"""
192 return _gdi
.Pen_GetColour(*args
, **kwargs
)
194 def GetJoin(*args
, **kwargs
):
195 """GetJoin() -> int"""
196 return _gdi
.Pen_GetJoin(*args
, **kwargs
)
198 def GetStyle(*args
, **kwargs
):
199 """GetStyle() -> int"""
200 return _gdi
.Pen_GetStyle(*args
, **kwargs
)
202 def GetWidth(*args
, **kwargs
):
203 """GetWidth() -> int"""
204 return _gdi
.Pen_GetWidth(*args
, **kwargs
)
206 def Ok(*args
, **kwargs
):
208 return _gdi
.Pen_Ok(*args
, **kwargs
)
210 def SetCap(*args
, **kwargs
):
211 """SetCap(int cap_style)"""
212 return _gdi
.Pen_SetCap(*args
, **kwargs
)
214 def SetColour(*args
, **kwargs
):
215 """SetColour(Colour colour)"""
216 return _gdi
.Pen_SetColour(*args
, **kwargs
)
218 def SetJoin(*args
, **kwargs
):
219 """SetJoin(int join_style)"""
220 return _gdi
.Pen_SetJoin(*args
, **kwargs
)
222 def SetStyle(*args
, **kwargs
):
223 """SetStyle(int style)"""
224 return _gdi
.Pen_SetStyle(*args
, **kwargs
)
226 def SetWidth(*args
, **kwargs
):
227 """SetWidth(int width)"""
228 return _gdi
.Pen_SetWidth(*args
, **kwargs
)
230 def SetDashes(*args
, **kwargs
):
231 """SetDashes(int dashes, wxDash dashes_array)"""
232 return _gdi
.Pen_SetDashes(*args
, **kwargs
)
234 def GetDashes(*args
, **kwargs
):
235 """GetDashes() -> PyObject"""
236 return _gdi
.Pen_GetDashes(*args
, **kwargs
)
238 def __eq__(*args
, **kwargs
):
239 """__eq__(Pen pen) -> bool"""
240 return _gdi
.Pen___eq__(*args
, **kwargs
)
242 def GetDashCount(*args
, **kwargs
):
243 """GetDashCount() -> int"""
244 return _gdi
.Pen_GetDashCount(*args
, **kwargs
)
246 def GetStipple(*args
, **kwargs
):
247 """GetStipple() -> Bitmap"""
248 return _gdi
.Pen_GetStipple(*args
, **kwargs
)
250 def SetStipple(*args
, **kwargs
):
251 """SetStipple(Bitmap stipple)"""
252 return _gdi
.Pen_SetStipple(*args
, **kwargs
)
254 def __nonzero__(self
): return self
.Ok()
257 def __init__(self
, this
):
259 if not hasattr(self
,"thisown"): self
.thisown
= 0
261 _gdi
.Pen_swigregister(PenPtr
)
265 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
266 def __init__(self
, *args
, **kwargs
):
267 """__init__(Colour colour, int width=1, int style=SOLID) -> PyPen"""
268 newobj
= _gdi
.new_PyPen(*args
, **kwargs
)
269 self
.this
= newobj
.this
272 def __del__(self
, destroy
=_gdi
.delete_PyPen
):
275 if self
.thisown
: destroy(self
)
278 def SetDashes(*args
, **kwargs
):
279 """SetDashes(int dashes, wxDash dashes_array)"""
280 return _gdi
.PyPen_SetDashes(*args
, **kwargs
)
283 class PyPenPtr(PyPen
):
284 def __init__(self
, this
):
286 if not hasattr(self
,"thisown"): self
.thisown
= 0
287 self
.__class
__ = PyPen
288 _gdi
.PyPen_swigregister(PyPenPtr
)
291 #---------------------------------------------------------------------------
293 class Brush(GDIObject
):
295 A brush is a drawing tool for filling in areas. It is used for painting the
296 background of rectangles, ellipses, etc. It has a colour and a style.
299 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
300 def __init__(self
, *args
, **kwargs
):
302 __init__(Colour colour, int style=SOLID) -> Brush
304 Constructs a brush from a colour object and style.
306 newobj
= _gdi
.new_Brush(*args
, **kwargs
)
307 self
.this
= newobj
.this
310 def __del__(self
, destroy
=_gdi
.delete_Brush
):
313 if self
.thisown
: destroy(self
)
316 def SetColour(*args
, **kwargs
):
317 """SetColour(Colour col)"""
318 return _gdi
.Brush_SetColour(*args
, **kwargs
)
320 def SetStyle(*args
, **kwargs
):
321 """SetStyle(int style)"""
322 return _gdi
.Brush_SetStyle(*args
, **kwargs
)
324 def SetStipple(*args
, **kwargs
):
325 """SetStipple(Bitmap stipple)"""
326 return _gdi
.Brush_SetStipple(*args
, **kwargs
)
328 def GetColour(*args
, **kwargs
):
329 """GetColour() -> Colour"""
330 return _gdi
.Brush_GetColour(*args
, **kwargs
)
332 def GetStyle(*args
, **kwargs
):
333 """GetStyle() -> int"""
334 return _gdi
.Brush_GetStyle(*args
, **kwargs
)
336 def GetStipple(*args
, **kwargs
):
337 """GetStipple() -> Bitmap"""
338 return _gdi
.Brush_GetStipple(*args
, **kwargs
)
340 def Ok(*args
, **kwargs
):
342 return _gdi
.Brush_Ok(*args
, **kwargs
)
344 def __nonzero__(self
): return self
.Ok()
346 class BrushPtr(Brush
):
347 def __init__(self
, this
):
349 if not hasattr(self
,"thisown"): self
.thisown
= 0
350 self
.__class
__ = Brush
351 _gdi
.Brush_swigregister(BrushPtr
)
353 class Bitmap(GDIObject
):
355 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
356 def __init__(self
, *args
, **kwargs
):
358 __init__(String name, int type=BITMAP_TYPE_ANY) -> Bitmap
360 Loads a bitmap from a file.
362 newobj
= _gdi
.new_Bitmap(*args
, **kwargs
)
363 self
.this
= newobj
.this
366 def __del__(self
, destroy
=_gdi
.delete_Bitmap
):
369 if self
.thisown
: destroy(self
)
372 def SetPalette(*args
, **kwargs
):
373 """SetPalette(Palette palette)"""
374 return _gdi
.Bitmap_SetPalette(*args
, **kwargs
)
376 def GetHandle(*args
, **kwargs
):
377 """GetHandle() -> long"""
378 return _gdi
.Bitmap_GetHandle(*args
, **kwargs
)
380 def SetHandle(*args
, **kwargs
):
381 """SetHandle(long handle)"""
382 return _gdi
.Bitmap_SetHandle(*args
, **kwargs
)
384 def Ok(*args
, **kwargs
):
386 return _gdi
.Bitmap_Ok(*args
, **kwargs
)
388 def GetWidth(*args
, **kwargs
):
392 Gets the width of the bitmap in pixels.
394 return _gdi
.Bitmap_GetWidth(*args
, **kwargs
)
396 def GetHeight(*args
, **kwargs
):
400 Gets the height of the bitmap in pixels.
402 return _gdi
.Bitmap_GetHeight(*args
, **kwargs
)
404 def GetDepth(*args
, **kwargs
):
408 Gets the colour depth of the bitmap. A value of 1 indicates a
411 return _gdi
.Bitmap_GetDepth(*args
, **kwargs
)
413 def ConvertToImage(*args
, **kwargs
):
415 ConvertToImage() -> Image
417 Creates a platform-independent image from a platform-dependent bitmap. This
418 preserves mask information so that bitmaps and images can be converted back
419 and forth without loss in that respect.
421 return _gdi
.Bitmap_ConvertToImage(*args
, **kwargs
)
423 def GetMask(*args
, **kwargs
):
427 Gets the associated mask (if any) which may have been loaded from a file
428 or explpicitly set for the bitmap.
430 return _gdi
.Bitmap_GetMask(*args
, **kwargs
)
432 def SetMask(*args
, **kwargs
):
436 Sets the mask for this bitmap.
438 return _gdi
.Bitmap_SetMask(*args
, **kwargs
)
440 def SetMaskColour(*args
, **kwargs
):
442 SetMaskColour(Colour colour)
444 Create a Mask based on a specified colour in the Bitmap.
446 return _gdi
.Bitmap_SetMaskColour(*args
, **kwargs
)
448 def GetSubBitmap(*args
, **kwargs
):
450 GetSubBitmap(Rect rect) -> Bitmap
452 Returns a sub bitmap of the current one as long as the rect belongs entirely
453 to the bitmap. This function preserves bit depth and mask information.
455 return _gdi
.Bitmap_GetSubBitmap(*args
, **kwargs
)
457 def SaveFile(*args
, **kwargs
):
459 SaveFile(String name, int type, Palette palette=(wxPalette *) NULL) -> bool
461 Saves a bitmap in the named file.
463 return _gdi
.Bitmap_SaveFile(*args
, **kwargs
)
465 def LoadFile(*args
, **kwargs
):
467 LoadFile(String name, int type) -> bool
469 Loads a bitmap from a file
471 return _gdi
.Bitmap_LoadFile(*args
, **kwargs
)
473 def CopyFromIcon(*args
, **kwargs
):
474 """CopyFromIcon(Icon icon) -> bool"""
475 return _gdi
.Bitmap_CopyFromIcon(*args
, **kwargs
)
477 def SetHeight(*args
, **kwargs
):
479 SetHeight(int height)
481 Set the height property (does not affect the bitmap data).
483 return _gdi
.Bitmap_SetHeight(*args
, **kwargs
)
485 def SetWidth(*args
, **kwargs
):
489 Set the width property (does not affect the bitmap data).
491 return _gdi
.Bitmap_SetWidth(*args
, **kwargs
)
493 def SetDepth(*args
, **kwargs
):
497 Set the depth property (does not affect the bitmap data).
499 return _gdi
.Bitmap_SetDepth(*args
, **kwargs
)
501 def CopyFromCursor(*args
, **kwargs
):
502 """CopyFromCursor(Cursor cursor) -> bool"""
503 return _gdi
.Bitmap_CopyFromCursor(*args
, **kwargs
)
505 def GetQuality(*args
, **kwargs
):
506 """GetQuality() -> int"""
507 return _gdi
.Bitmap_GetQuality(*args
, **kwargs
)
509 def SetQuality(*args
, **kwargs
):
510 """SetQuality(int q)"""
511 return _gdi
.Bitmap_SetQuality(*args
, **kwargs
)
513 def __nonzero__(self
): return self
.Ok()
515 class BitmapPtr(Bitmap
):
516 def __init__(self
, this
):
518 if not hasattr(self
,"thisown"): self
.thisown
= 0
519 self
.__class
__ = Bitmap
520 _gdi
.Bitmap_swigregister(BitmapPtr
)
522 def EmptyBitmap(*args
, **kwargs
):
524 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
526 Creates a new bitmap of the given size. A depth of -1 indicates the depth of
527 the current screen or visual. Some platforms only support 1 for monochrome and
528 -1 for the current colour setting.
530 val
= _gdi
.new_EmptyBitmap(*args
, **kwargs
)
534 def BitmapFromIcon(*args
, **kwargs
):
536 BitmapFromIcon(Icon icon) -> Bitmap
538 Create a new bitmap from an Icon object.
540 val
= _gdi
.new_BitmapFromIcon(*args
, **kwargs
)
544 def BitmapFromImage(*args
, **kwargs
):
546 BitmapFromImage(Image image, int depth=-1) -> Bitmap
548 Creates bitmap object from the image. This has to be done to actually display
549 an image as you cannot draw an image directly on a window. The resulting
550 bitmap will use the provided colour depth (or that of the current system if
551 depth is -1) which entails that a colour reduction has to take place.
553 val
= _gdi
.new_BitmapFromImage(*args
, **kwargs
)
557 def BitmapFromXPMData(*args
, **kwargs
):
559 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
561 Construct a Bitmap from a list of strings formatted as XPM data.
563 val
= _gdi
.new_BitmapFromXPMData(*args
, **kwargs
)
567 def BitmapFromBits(*args
, **kwargs
):
569 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
571 Creates a bitmap from an array of bits. You should only use this function for
572 monochrome bitmaps (depth 1) in portable programs: in this case the bits
573 parameter should contain an XBM image. For other bit depths, the behaviour is
576 val
= _gdi
.new_BitmapFromBits(*args
, **kwargs
)
580 class Mask(core
.Object
):
582 This class encapsulates a monochrome mask bitmap, where the masked area is
583 black and the unmasked area is white. When associated with a bitmap and drawn
584 in a device context, the unmasked area of the bitmap will be drawn, and the
585 masked area will not be drawn.
588 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
589 def __init__(self
, *args
, **kwargs
):
591 __init__(Bitmap bitmap, Colour colour=NullColour) -> Mask
593 Constructs a mask from a bitmap and a colour in that bitmap that indicates
594 the transparent portions of the mask, by default BLACK is used.
596 newobj
= _gdi
.new_Mask(*args
, **kwargs
)
597 self
.this
= newobj
.this
602 def __init__(self
, this
):
604 if not hasattr(self
,"thisown"): self
.thisown
= 0
605 self
.__class
__ = Mask
606 _gdi
.Mask_swigregister(MaskPtr
)
609 class Icon(GDIObject
):
611 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
612 def __init__(self
, *args
, **kwargs
):
613 """__init__(String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
614 newobj
= _gdi
.new_Icon(*args
, **kwargs
)
615 self
.this
= newobj
.this
618 def __del__(self
, destroy
=_gdi
.delete_Icon
):
621 if self
.thisown
: destroy(self
)
624 def LoadFile(*args
, **kwargs
):
625 """LoadFile(String name, int type) -> bool"""
626 return _gdi
.Icon_LoadFile(*args
, **kwargs
)
628 def GetHandle(*args
, **kwargs
):
629 """GetHandle() -> long"""
630 return _gdi
.Icon_GetHandle(*args
, **kwargs
)
632 def SetHandle(*args
, **kwargs
):
633 """SetHandle(long handle)"""
634 return _gdi
.Icon_SetHandle(*args
, **kwargs
)
636 def Ok(*args
, **kwargs
):
638 return _gdi
.Icon_Ok(*args
, **kwargs
)
640 def GetWidth(*args
, **kwargs
):
641 """GetWidth() -> int"""
642 return _gdi
.Icon_GetWidth(*args
, **kwargs
)
644 def GetHeight(*args
, **kwargs
):
645 """GetHeight() -> int"""
646 return _gdi
.Icon_GetHeight(*args
, **kwargs
)
648 def GetDepth(*args
, **kwargs
):
649 """GetDepth() -> int"""
650 return _gdi
.Icon_GetDepth(*args
, **kwargs
)
652 def SetWidth(*args
, **kwargs
):
653 """SetWidth(int w)"""
654 return _gdi
.Icon_SetWidth(*args
, **kwargs
)
656 def SetHeight(*args
, **kwargs
):
657 """SetHeight(int h)"""
658 return _gdi
.Icon_SetHeight(*args
, **kwargs
)
660 def SetDepth(*args
, **kwargs
):
661 """SetDepth(int d)"""
662 return _gdi
.Icon_SetDepth(*args
, **kwargs
)
664 def SetSize(*args
, **kwargs
):
665 """SetSize(Size size)"""
666 return _gdi
.Icon_SetSize(*args
, **kwargs
)
668 def CopyFromBitmap(*args
, **kwargs
):
669 """CopyFromBitmap(Bitmap bmp)"""
670 return _gdi
.Icon_CopyFromBitmap(*args
, **kwargs
)
672 def __nonzero__(self
): return self
.Ok()
675 def __init__(self
, this
):
677 if not hasattr(self
,"thisown"): self
.thisown
= 0
678 self
.__class
__ = Icon
679 _gdi
.Icon_swigregister(IconPtr
)
681 def EmptyIcon(*args
, **kwargs
):
682 """EmptyIcon() -> Icon"""
683 val
= _gdi
.new_EmptyIcon(*args
, **kwargs
)
687 def IconFromLocation(*args
, **kwargs
):
688 """IconFromLocation(IconLocation loc) -> Icon"""
689 val
= _gdi
.new_IconFromLocation(*args
, **kwargs
)
693 def IconFromBitmap(*args
, **kwargs
):
694 """IconFromBitmap(Bitmap bmp) -> Icon"""
695 val
= _gdi
.new_IconFromBitmap(*args
, **kwargs
)
699 def IconFromXPMData(*args
, **kwargs
):
700 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
701 val
= _gdi
.new_IconFromXPMData(*args
, **kwargs
)
705 class IconLocation(object):
707 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
708 def __init__(self
, *args
, **kwargs
):
709 """__init__(String filename=&wxPyEmptyString, int num=0) -> IconLocation"""
710 newobj
= _gdi
.new_IconLocation(*args
, **kwargs
)
711 self
.this
= newobj
.this
714 def __del__(self
, destroy
=_gdi
.delete_IconLocation
):
717 if self
.thisown
: destroy(self
)
720 def IsOk(*args
, **kwargs
):
722 return _gdi
.IconLocation_IsOk(*args
, **kwargs
)
724 def __nonzero__(self
): return self
.Ok()
725 def SetFileName(*args
, **kwargs
):
726 """SetFileName(String filename)"""
727 return _gdi
.IconLocation_SetFileName(*args
, **kwargs
)
729 def GetFileName(*args
, **kwargs
):
730 """GetFileName() -> String"""
731 return _gdi
.IconLocation_GetFileName(*args
, **kwargs
)
733 def SetIndex(*args
, **kwargs
):
734 """SetIndex(int num)"""
735 return _gdi
.IconLocation_SetIndex(*args
, **kwargs
)
737 def GetIndex(*args
, **kwargs
):
738 """GetIndex() -> int"""
739 return _gdi
.IconLocation_GetIndex(*args
, **kwargs
)
742 class IconLocationPtr(IconLocation
):
743 def __init__(self
, this
):
745 if not hasattr(self
,"thisown"): self
.thisown
= 0
746 self
.__class
__ = IconLocation
747 _gdi
.IconLocation_swigregister(IconLocationPtr
)
749 class IconBundle(object):
751 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
752 def __init__(self
, *args
, **kwargs
):
753 """__init__() -> IconBundle"""
754 newobj
= _gdi
.new_IconBundle(*args
, **kwargs
)
755 self
.this
= newobj
.this
758 def __del__(self
, destroy
=_gdi
.delete_IconBundle
):
761 if self
.thisown
: destroy(self
)
764 def AddIcon(*args
, **kwargs
):
765 """AddIcon(Icon icon)"""
766 return _gdi
.IconBundle_AddIcon(*args
, **kwargs
)
768 def AddIconFromFile(*args
, **kwargs
):
769 """AddIconFromFile(String file, long type)"""
770 return _gdi
.IconBundle_AddIconFromFile(*args
, **kwargs
)
772 def GetIcon(*args
, **kwargs
):
773 """GetIcon(Size size) -> Icon"""
774 return _gdi
.IconBundle_GetIcon(*args
, **kwargs
)
777 class IconBundlePtr(IconBundle
):
778 def __init__(self
, this
):
780 if not hasattr(self
,"thisown"): self
.thisown
= 0
781 self
.__class
__ = IconBundle
782 _gdi
.IconBundle_swigregister(IconBundlePtr
)
784 def IconBundleFromFile(*args
, **kwargs
):
785 """IconBundleFromFile(String file, long type) -> IconBundle"""
786 val
= _gdi
.new_IconBundleFromFile(*args
, **kwargs
)
790 def IconBundleFromIcon(*args
, **kwargs
):
791 """IconBundleFromIcon(Icon icon) -> IconBundle"""
792 val
= _gdi
.new_IconBundleFromIcon(*args
, **kwargs
)
796 class Cursor(GDIObject
):
798 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
799 def __init__(self
, *args
, **kwargs
):
800 """__init__(String cursorName, long flags, int hotSpotX=0, int hotSpotY=0) -> Cursor"""
801 newobj
= _gdi
.new_Cursor(*args
, **kwargs
)
802 self
.this
= newobj
.this
805 def __del__(self
, destroy
=_gdi
.delete_Cursor
):
808 if self
.thisown
: destroy(self
)
811 def GetHandle(*args
, **kwargs
):
812 """GetHandle() -> long"""
813 return _gdi
.Cursor_GetHandle(*args
, **kwargs
)
815 def SetHandle(*args
, **kwargs
):
816 """SetHandle(long handle)"""
817 return _gdi
.Cursor_SetHandle(*args
, **kwargs
)
819 def Ok(*args
, **kwargs
):
821 return _gdi
.Cursor_Ok(*args
, **kwargs
)
823 def GetWidth(*args
, **kwargs
):
824 """GetWidth() -> int"""
825 return _gdi
.Cursor_GetWidth(*args
, **kwargs
)
827 def GetHeight(*args
, **kwargs
):
828 """GetHeight() -> int"""
829 return _gdi
.Cursor_GetHeight(*args
, **kwargs
)
831 def GetDepth(*args
, **kwargs
):
832 """GetDepth() -> int"""
833 return _gdi
.Cursor_GetDepth(*args
, **kwargs
)
835 def SetWidth(*args
, **kwargs
):
836 """SetWidth(int w)"""
837 return _gdi
.Cursor_SetWidth(*args
, **kwargs
)
839 def SetHeight(*args
, **kwargs
):
840 """SetHeight(int h)"""
841 return _gdi
.Cursor_SetHeight(*args
, **kwargs
)
843 def SetDepth(*args
, **kwargs
):
844 """SetDepth(int d)"""
845 return _gdi
.Cursor_SetDepth(*args
, **kwargs
)
847 def SetSize(*args
, **kwargs
):
848 """SetSize(Size size)"""
849 return _gdi
.Cursor_SetSize(*args
, **kwargs
)
851 def __nonzero__(self
): return self
.Ok()
853 class CursorPtr(Cursor
):
854 def __init__(self
, this
):
856 if not hasattr(self
,"thisown"): self
.thisown
= 0
857 self
.__class
__ = Cursor
858 _gdi
.Cursor_swigregister(CursorPtr
)
860 def StockCursor(*args
, **kwargs
):
861 """StockCursor(int id) -> Cursor"""
862 val
= _gdi
.new_StockCursor(*args
, **kwargs
)
866 def CursorFromImage(*args
, **kwargs
):
867 """CursorFromImage(Image image) -> Cursor"""
868 val
= _gdi
.new_CursorFromImage(*args
, **kwargs
)
872 def CursorFromBits(*args
, **kwargs
):
874 CursorFromBits(PyObject bits, int width, int height, int hotSpotX=-1,
875 int hotSpotY=-1, PyObject maskBits=0) -> Cursor
877 val
= _gdi
.new_CursorFromBits(*args
, **kwargs
)
881 #---------------------------------------------------------------------------
883 OutRegion
= _gdi
.OutRegion
884 PartRegion
= _gdi
.PartRegion
885 InRegion
= _gdi
.InRegion
886 class Region(GDIObject
):
888 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
889 def __init__(self
, *args
, **kwargs
):
890 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
891 newobj
= _gdi
.new_Region(*args
, **kwargs
)
892 self
.this
= newobj
.this
895 def __del__(self
, destroy
=_gdi
.delete_Region
):
898 if self
.thisown
: destroy(self
)
901 def Clear(*args
, **kwargs
):
903 return _gdi
.Region_Clear(*args
, **kwargs
)
905 def Offset(*args
, **kwargs
):
906 """Offset(int x, int y) -> bool"""
907 return _gdi
.Region_Offset(*args
, **kwargs
)
909 def Contains(*args
, **kwargs
):
910 """Contains(int x, int y) -> int"""
911 return _gdi
.Region_Contains(*args
, **kwargs
)
913 def ContainsPoint(*args
, **kwargs
):
914 """ContainsPoint(Point pt) -> int"""
915 return _gdi
.Region_ContainsPoint(*args
, **kwargs
)
917 def ContainsRect(*args
, **kwargs
):
918 """ContainsRect(Rect rect) -> int"""
919 return _gdi
.Region_ContainsRect(*args
, **kwargs
)
921 def ContainsRectDim(*args
, **kwargs
):
922 """ContainsRectDim(int x, int y, int w, int h) -> int"""
923 return _gdi
.Region_ContainsRectDim(*args
, **kwargs
)
925 def GetBox(*args
, **kwargs
):
926 """GetBox() -> Rect"""
927 return _gdi
.Region_GetBox(*args
, **kwargs
)
929 def Intersect(*args
, **kwargs
):
930 """Intersect(int x, int y, int width, int height) -> bool"""
931 return _gdi
.Region_Intersect(*args
, **kwargs
)
933 def IntersectRect(*args
, **kwargs
):
934 """IntersectRect(Rect rect) -> bool"""
935 return _gdi
.Region_IntersectRect(*args
, **kwargs
)
937 def IntersectRegion(*args
, **kwargs
):
938 """IntersectRegion(Region region) -> bool"""
939 return _gdi
.Region_IntersectRegion(*args
, **kwargs
)
941 def IsEmpty(*args
, **kwargs
):
942 """IsEmpty() -> bool"""
943 return _gdi
.Region_IsEmpty(*args
, **kwargs
)
945 def Union(*args
, **kwargs
):
946 """Union(int x, int y, int width, int height) -> bool"""
947 return _gdi
.Region_Union(*args
, **kwargs
)
949 def UnionRect(*args
, **kwargs
):
950 """UnionRect(Rect rect) -> bool"""
951 return _gdi
.Region_UnionRect(*args
, **kwargs
)
953 def UnionRegion(*args
, **kwargs
):
954 """UnionRegion(Region region) -> bool"""
955 return _gdi
.Region_UnionRegion(*args
, **kwargs
)
957 def Subtract(*args
, **kwargs
):
958 """Subtract(int x, int y, int width, int height) -> bool"""
959 return _gdi
.Region_Subtract(*args
, **kwargs
)
961 def SubtractRect(*args
, **kwargs
):
962 """SubtractRect(Rect rect) -> bool"""
963 return _gdi
.Region_SubtractRect(*args
, **kwargs
)
965 def SubtractRegion(*args
, **kwargs
):
966 """SubtractRegion(Region region) -> bool"""
967 return _gdi
.Region_SubtractRegion(*args
, **kwargs
)
969 def Xor(*args
, **kwargs
):
970 """Xor(int x, int y, int width, int height) -> bool"""
971 return _gdi
.Region_Xor(*args
, **kwargs
)
973 def XorRect(*args
, **kwargs
):
974 """XorRect(Rect rect) -> bool"""
975 return _gdi
.Region_XorRect(*args
, **kwargs
)
977 def XorRegion(*args
, **kwargs
):
978 """XorRegion(Region region) -> bool"""
979 return _gdi
.Region_XorRegion(*args
, **kwargs
)
981 def ConvertToBitmap(*args
, **kwargs
):
982 """ConvertToBitmap() -> Bitmap"""
983 return _gdi
.Region_ConvertToBitmap(*args
, **kwargs
)
985 def UnionBitmap(*args
, **kwargs
):
986 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
987 return _gdi
.Region_UnionBitmap(*args
, **kwargs
)
990 class RegionPtr(Region
):
991 def __init__(self
, this
):
993 if not hasattr(self
,"thisown"): self
.thisown
= 0
994 self
.__class
__ = Region
995 _gdi
.Region_swigregister(RegionPtr
)
997 def RegionFromBitmap(*args
, **kwargs
):
998 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
999 val
= _gdi
.new_RegionFromBitmap(*args
, **kwargs
)
1003 def RegionFromPoints(*args
, **kwargs
):
1004 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
1005 val
= _gdi
.new_RegionFromPoints(*args
, **kwargs
)
1009 class RegionIterator(core
.Object
):
1011 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1012 def __init__(self
, *args
, **kwargs
):
1013 """__init__(Region region) -> RegionIterator"""
1014 newobj
= _gdi
.new_RegionIterator(*args
, **kwargs
)
1015 self
.this
= newobj
.this
1018 def __del__(self
, destroy
=_gdi
.delete_RegionIterator
):
1021 if self
.thisown
: destroy(self
)
1024 def GetX(*args
, **kwargs
):
1026 return _gdi
.RegionIterator_GetX(*args
, **kwargs
)
1028 def GetY(*args
, **kwargs
):
1030 return _gdi
.RegionIterator_GetY(*args
, **kwargs
)
1032 def GetW(*args
, **kwargs
):
1034 return _gdi
.RegionIterator_GetW(*args
, **kwargs
)
1036 def GetWidth(*args
, **kwargs
):
1037 """GetWidth() -> int"""
1038 return _gdi
.RegionIterator_GetWidth(*args
, **kwargs
)
1040 def GetH(*args
, **kwargs
):
1042 return _gdi
.RegionIterator_GetH(*args
, **kwargs
)
1044 def GetHeight(*args
, **kwargs
):
1045 """GetHeight() -> int"""
1046 return _gdi
.RegionIterator_GetHeight(*args
, **kwargs
)
1048 def GetRect(*args
, **kwargs
):
1049 """GetRect() -> Rect"""
1050 return _gdi
.RegionIterator_GetRect(*args
, **kwargs
)
1052 def HaveRects(*args
, **kwargs
):
1053 """HaveRects() -> bool"""
1054 return _gdi
.RegionIterator_HaveRects(*args
, **kwargs
)
1056 def Reset(*args
, **kwargs
):
1058 return _gdi
.RegionIterator_Reset(*args
, **kwargs
)
1060 def Next(*args
, **kwargs
):
1062 return _gdi
.RegionIterator_Next(*args
, **kwargs
)
1064 def __nonzero__(*args
, **kwargs
):
1065 """__nonzero__() -> bool"""
1066 return _gdi
.RegionIterator___nonzero__(*args
, **kwargs
)
1069 class RegionIteratorPtr(RegionIterator
):
1070 def __init__(self
, this
):
1072 if not hasattr(self
,"thisown"): self
.thisown
= 0
1073 self
.__class
__ = RegionIterator
1074 _gdi
.RegionIterator_swigregister(RegionIteratorPtr
)
1076 #---------------------------------------------------------------------------
1078 FONTFAMILY_DEFAULT
= _gdi
.FONTFAMILY_DEFAULT
1079 FONTFAMILY_DECORATIVE
= _gdi
.FONTFAMILY_DECORATIVE
1080 FONTFAMILY_ROMAN
= _gdi
.FONTFAMILY_ROMAN
1081 FONTFAMILY_SCRIPT
= _gdi
.FONTFAMILY_SCRIPT
1082 FONTFAMILY_SWISS
= _gdi
.FONTFAMILY_SWISS
1083 FONTFAMILY_MODERN
= _gdi
.FONTFAMILY_MODERN
1084 FONTFAMILY_TELETYPE
= _gdi
.FONTFAMILY_TELETYPE
1085 FONTFAMILY_MAX
= _gdi
.FONTFAMILY_MAX
1086 FONTFAMILY_UNKNOWN
= _gdi
.FONTFAMILY_UNKNOWN
1087 FONTSTYLE_NORMAL
= _gdi
.FONTSTYLE_NORMAL
1088 FONTSTYLE_ITALIC
= _gdi
.FONTSTYLE_ITALIC
1089 FONTSTYLE_SLANT
= _gdi
.FONTSTYLE_SLANT
1090 FONTSTYLE_MAX
= _gdi
.FONTSTYLE_MAX
1091 FONTWEIGHT_NORMAL
= _gdi
.FONTWEIGHT_NORMAL
1092 FONTWEIGHT_LIGHT
= _gdi
.FONTWEIGHT_LIGHT
1093 FONTWEIGHT_BOLD
= _gdi
.FONTWEIGHT_BOLD
1094 FONTWEIGHT_MAX
= _gdi
.FONTWEIGHT_MAX
1095 FONTFLAG_DEFAULT
= _gdi
.FONTFLAG_DEFAULT
1096 FONTFLAG_ITALIC
= _gdi
.FONTFLAG_ITALIC
1097 FONTFLAG_SLANT
= _gdi
.FONTFLAG_SLANT
1098 FONTFLAG_LIGHT
= _gdi
.FONTFLAG_LIGHT
1099 FONTFLAG_BOLD
= _gdi
.FONTFLAG_BOLD
1100 FONTFLAG_ANTIALIASED
= _gdi
.FONTFLAG_ANTIALIASED
1101 FONTFLAG_NOT_ANTIALIASED
= _gdi
.FONTFLAG_NOT_ANTIALIASED
1102 FONTFLAG_UNDERLINED
= _gdi
.FONTFLAG_UNDERLINED
1103 FONTFLAG_STRIKETHROUGH
= _gdi
.FONTFLAG_STRIKETHROUGH
1104 FONTFLAG_MASK
= _gdi
.FONTFLAG_MASK
1105 FONTENCODING_SYSTEM
= _gdi
.FONTENCODING_SYSTEM
1106 FONTENCODING_DEFAULT
= _gdi
.FONTENCODING_DEFAULT
1107 FONTENCODING_ISO8859_1
= _gdi
.FONTENCODING_ISO8859_1
1108 FONTENCODING_ISO8859_2
= _gdi
.FONTENCODING_ISO8859_2
1109 FONTENCODING_ISO8859_3
= _gdi
.FONTENCODING_ISO8859_3
1110 FONTENCODING_ISO8859_4
= _gdi
.FONTENCODING_ISO8859_4
1111 FONTENCODING_ISO8859_5
= _gdi
.FONTENCODING_ISO8859_5
1112 FONTENCODING_ISO8859_6
= _gdi
.FONTENCODING_ISO8859_6
1113 FONTENCODING_ISO8859_7
= _gdi
.FONTENCODING_ISO8859_7
1114 FONTENCODING_ISO8859_8
= _gdi
.FONTENCODING_ISO8859_8
1115 FONTENCODING_ISO8859_9
= _gdi
.FONTENCODING_ISO8859_9
1116 FONTENCODING_ISO8859_10
= _gdi
.FONTENCODING_ISO8859_10
1117 FONTENCODING_ISO8859_11
= _gdi
.FONTENCODING_ISO8859_11
1118 FONTENCODING_ISO8859_12
= _gdi
.FONTENCODING_ISO8859_12
1119 FONTENCODING_ISO8859_13
= _gdi
.FONTENCODING_ISO8859_13
1120 FONTENCODING_ISO8859_14
= _gdi
.FONTENCODING_ISO8859_14
1121 FONTENCODING_ISO8859_15
= _gdi
.FONTENCODING_ISO8859_15
1122 FONTENCODING_ISO8859_MAX
= _gdi
.FONTENCODING_ISO8859_MAX
1123 FONTENCODING_KOI8
= _gdi
.FONTENCODING_KOI8
1124 FONTENCODING_ALTERNATIVE
= _gdi
.FONTENCODING_ALTERNATIVE
1125 FONTENCODING_BULGARIAN
= _gdi
.FONTENCODING_BULGARIAN
1126 FONTENCODING_CP437
= _gdi
.FONTENCODING_CP437
1127 FONTENCODING_CP850
= _gdi
.FONTENCODING_CP850
1128 FONTENCODING_CP852
= _gdi
.FONTENCODING_CP852
1129 FONTENCODING_CP855
= _gdi
.FONTENCODING_CP855
1130 FONTENCODING_CP866
= _gdi
.FONTENCODING_CP866
1131 FONTENCODING_CP874
= _gdi
.FONTENCODING_CP874
1132 FONTENCODING_CP932
= _gdi
.FONTENCODING_CP932
1133 FONTENCODING_CP936
= _gdi
.FONTENCODING_CP936
1134 FONTENCODING_CP949
= _gdi
.FONTENCODING_CP949
1135 FONTENCODING_CP950
= _gdi
.FONTENCODING_CP950
1136 FONTENCODING_CP1250
= _gdi
.FONTENCODING_CP1250
1137 FONTENCODING_CP1251
= _gdi
.FONTENCODING_CP1251
1138 FONTENCODING_CP1252
= _gdi
.FONTENCODING_CP1252
1139 FONTENCODING_CP1253
= _gdi
.FONTENCODING_CP1253
1140 FONTENCODING_CP1254
= _gdi
.FONTENCODING_CP1254
1141 FONTENCODING_CP1255
= _gdi
.FONTENCODING_CP1255
1142 FONTENCODING_CP1256
= _gdi
.FONTENCODING_CP1256
1143 FONTENCODING_CP1257
= _gdi
.FONTENCODING_CP1257
1144 FONTENCODING_CP12_MAX
= _gdi
.FONTENCODING_CP12_MAX
1145 FONTENCODING_UTF7
= _gdi
.FONTENCODING_UTF7
1146 FONTENCODING_UTF8
= _gdi
.FONTENCODING_UTF8
1147 FONTENCODING_EUC_JP
= _gdi
.FONTENCODING_EUC_JP
1148 FONTENCODING_UTF16BE
= _gdi
.FONTENCODING_UTF16BE
1149 FONTENCODING_UTF16LE
= _gdi
.FONTENCODING_UTF16LE
1150 FONTENCODING_UTF32BE
= _gdi
.FONTENCODING_UTF32BE
1151 FONTENCODING_UTF32LE
= _gdi
.FONTENCODING_UTF32LE
1152 FONTENCODING_MACROMAN
= _gdi
.FONTENCODING_MACROMAN
1153 FONTENCODING_MACJAPANESE
= _gdi
.FONTENCODING_MACJAPANESE
1154 FONTENCODING_MACCHINESETRAD
= _gdi
.FONTENCODING_MACCHINESETRAD
1155 FONTENCODING_MACKOREAN
= _gdi
.FONTENCODING_MACKOREAN
1156 FONTENCODING_MACARABIC
= _gdi
.FONTENCODING_MACARABIC
1157 FONTENCODING_MACHEBREW
= _gdi
.FONTENCODING_MACHEBREW
1158 FONTENCODING_MACGREEK
= _gdi
.FONTENCODING_MACGREEK
1159 FONTENCODING_MACCYRILLIC
= _gdi
.FONTENCODING_MACCYRILLIC
1160 FONTENCODING_MACDEVANAGARI
= _gdi
.FONTENCODING_MACDEVANAGARI
1161 FONTENCODING_MACGURMUKHI
= _gdi
.FONTENCODING_MACGURMUKHI
1162 FONTENCODING_MACGUJARATI
= _gdi
.FONTENCODING_MACGUJARATI
1163 FONTENCODING_MACORIYA
= _gdi
.FONTENCODING_MACORIYA
1164 FONTENCODING_MACBENGALI
= _gdi
.FONTENCODING_MACBENGALI
1165 FONTENCODING_MACTAMIL
= _gdi
.FONTENCODING_MACTAMIL
1166 FONTENCODING_MACTELUGU
= _gdi
.FONTENCODING_MACTELUGU
1167 FONTENCODING_MACKANNADA
= _gdi
.FONTENCODING_MACKANNADA
1168 FONTENCODING_MACMALAJALAM
= _gdi
.FONTENCODING_MACMALAJALAM
1169 FONTENCODING_MACSINHALESE
= _gdi
.FONTENCODING_MACSINHALESE
1170 FONTENCODING_MACBURMESE
= _gdi
.FONTENCODING_MACBURMESE
1171 FONTENCODING_MACKHMER
= _gdi
.FONTENCODING_MACKHMER
1172 FONTENCODING_MACTHAI
= _gdi
.FONTENCODING_MACTHAI
1173 FONTENCODING_MACLAOTIAN
= _gdi
.FONTENCODING_MACLAOTIAN
1174 FONTENCODING_MACGEORGIAN
= _gdi
.FONTENCODING_MACGEORGIAN
1175 FONTENCODING_MACARMENIAN
= _gdi
.FONTENCODING_MACARMENIAN
1176 FONTENCODING_MACCHINESESIMP
= _gdi
.FONTENCODING_MACCHINESESIMP
1177 FONTENCODING_MACTIBETAN
= _gdi
.FONTENCODING_MACTIBETAN
1178 FONTENCODING_MACMONGOLIAN
= _gdi
.FONTENCODING_MACMONGOLIAN
1179 FONTENCODING_MACETHIOPIC
= _gdi
.FONTENCODING_MACETHIOPIC
1180 FONTENCODING_MACCENTRALEUR
= _gdi
.FONTENCODING_MACCENTRALEUR
1181 FONTENCODING_MACVIATNAMESE
= _gdi
.FONTENCODING_MACVIATNAMESE
1182 FONTENCODING_MACARABICEXT
= _gdi
.FONTENCODING_MACARABICEXT
1183 FONTENCODING_MACSYMBOL
= _gdi
.FONTENCODING_MACSYMBOL
1184 FONTENCODING_MACDINGBATS
= _gdi
.FONTENCODING_MACDINGBATS
1185 FONTENCODING_MACTURKISH
= _gdi
.FONTENCODING_MACTURKISH
1186 FONTENCODING_MACCROATIAN
= _gdi
.FONTENCODING_MACCROATIAN
1187 FONTENCODING_MACICELANDIC
= _gdi
.FONTENCODING_MACICELANDIC
1188 FONTENCODING_MACROMANIAN
= _gdi
.FONTENCODING_MACROMANIAN
1189 FONTENCODING_MACCELTIC
= _gdi
.FONTENCODING_MACCELTIC
1190 FONTENCODING_MACGAELIC
= _gdi
.FONTENCODING_MACGAELIC
1191 FONTENCODING_MACKEYBOARD
= _gdi
.FONTENCODING_MACKEYBOARD
1192 FONTENCODING_MACMIN
= _gdi
.FONTENCODING_MACMIN
1193 FONTENCODING_MACMAX
= _gdi
.FONTENCODING_MACMAX
1194 FONTENCODING_MAX
= _gdi
.FONTENCODING_MAX
1195 FONTENCODING_UTF16
= _gdi
.FONTENCODING_UTF16
1196 FONTENCODING_UTF32
= _gdi
.FONTENCODING_UTF32
1197 FONTENCODING_UNICODE
= _gdi
.FONTENCODING_UNICODE
1198 FONTENCODING_GB2312
= _gdi
.FONTENCODING_GB2312
1199 FONTENCODING_BIG5
= _gdi
.FONTENCODING_BIG5
1200 FONTENCODING_SHIFT_JIS
= _gdi
.FONTENCODING_SHIFT_JIS
1201 #---------------------------------------------------------------------------
1203 class NativeFontInfo(object):
1205 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1206 def __init__(self
, *args
, **kwargs
):
1207 """__init__() -> NativeFontInfo"""
1208 newobj
= _gdi
.new_NativeFontInfo(*args
, **kwargs
)
1209 self
.this
= newobj
.this
1212 def __del__(self
, destroy
=_gdi
.delete_NativeFontInfo
):
1215 if self
.thisown
: destroy(self
)
1218 def Init(*args
, **kwargs
):
1220 return _gdi
.NativeFontInfo_Init(*args
, **kwargs
)
1222 def InitFromFont(*args
, **kwargs
):
1223 """InitFromFont(Font font)"""
1224 return _gdi
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1226 def GetPointSize(*args
, **kwargs
):
1227 """GetPointSize() -> int"""
1228 return _gdi
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1230 def GetStyle(*args
, **kwargs
):
1231 """GetStyle() -> int"""
1232 return _gdi
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1234 def GetWeight(*args
, **kwargs
):
1235 """GetWeight() -> int"""
1236 return _gdi
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1238 def GetUnderlined(*args
, **kwargs
):
1239 """GetUnderlined() -> bool"""
1240 return _gdi
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1242 def GetFaceName(*args
, **kwargs
):
1243 """GetFaceName() -> String"""
1244 return _gdi
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1246 def GetFamily(*args
, **kwargs
):
1247 """GetFamily() -> int"""
1248 return _gdi
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1250 def GetEncoding(*args
, **kwargs
):
1251 """GetEncoding() -> int"""
1252 return _gdi
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1254 def SetPointSize(*args
, **kwargs
):
1255 """SetPointSize(int pointsize)"""
1256 return _gdi
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1258 def SetStyle(*args
, **kwargs
):
1259 """SetStyle(int style)"""
1260 return _gdi
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1262 def SetWeight(*args
, **kwargs
):
1263 """SetWeight(int weight)"""
1264 return _gdi
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1266 def SetUnderlined(*args
, **kwargs
):
1267 """SetUnderlined(bool underlined)"""
1268 return _gdi
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1270 def SetFaceName(*args
, **kwargs
):
1271 """SetFaceName(String facename)"""
1272 return _gdi
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1274 def SetFamily(*args
, **kwargs
):
1275 """SetFamily(int family)"""
1276 return _gdi
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1278 def SetEncoding(*args
, **kwargs
):
1279 """SetEncoding(int encoding)"""
1280 return _gdi
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1282 def FromString(*args
, **kwargs
):
1283 """FromString(String s) -> bool"""
1284 return _gdi
.NativeFontInfo_FromString(*args
, **kwargs
)
1286 def ToString(*args
, **kwargs
):
1287 """ToString() -> String"""
1288 return _gdi
.NativeFontInfo_ToString(*args
, **kwargs
)
1290 def __str__(*args
, **kwargs
):
1291 """__str__() -> String"""
1292 return _gdi
.NativeFontInfo___str__(*args
, **kwargs
)
1294 def FromUserString(*args
, **kwargs
):
1295 """FromUserString(String s) -> bool"""
1296 return _gdi
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1298 def ToUserString(*args
, **kwargs
):
1299 """ToUserString() -> String"""
1300 return _gdi
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1303 class NativeFontInfoPtr(NativeFontInfo
):
1304 def __init__(self
, this
):
1306 if not hasattr(self
,"thisown"): self
.thisown
= 0
1307 self
.__class
__ = NativeFontInfo
1308 _gdi
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1310 class NativeEncodingInfo(object):
1312 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1313 facename
= property(_gdi
.NativeEncodingInfo_facename_get
, _gdi
.NativeEncodingInfo_facename_set
)
1314 encoding
= property(_gdi
.NativeEncodingInfo_encoding_get
, _gdi
.NativeEncodingInfo_encoding_set
)
1315 def __init__(self
, *args
, **kwargs
):
1316 """__init__() -> NativeEncodingInfo"""
1317 newobj
= _gdi
.new_NativeEncodingInfo(*args
, **kwargs
)
1318 self
.this
= newobj
.this
1321 def __del__(self
, destroy
=_gdi
.delete_NativeEncodingInfo
):
1324 if self
.thisown
: destroy(self
)
1327 def FromString(*args
, **kwargs
):
1328 """FromString(String s) -> bool"""
1329 return _gdi
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1331 def ToString(*args
, **kwargs
):
1332 """ToString() -> String"""
1333 return _gdi
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1336 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1337 def __init__(self
, this
):
1339 if not hasattr(self
,"thisown"): self
.thisown
= 0
1340 self
.__class
__ = NativeEncodingInfo
1341 _gdi
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1344 def GetNativeFontEncoding(*args
, **kwargs
):
1345 """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo"""
1346 return _gdi
.GetNativeFontEncoding(*args
, **kwargs
)
1348 def TestFontEncoding(*args
, **kwargs
):
1349 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1350 return _gdi
.TestFontEncoding(*args
, **kwargs
)
1351 #---------------------------------------------------------------------------
1353 class FontMapper(object):
1355 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1356 def __init__(self
, *args
, **kwargs
):
1357 """__init__() -> FontMapper"""
1358 newobj
= _gdi
.new_FontMapper(*args
, **kwargs
)
1359 self
.this
= newobj
.this
1362 def __del__(self
, destroy
=_gdi
.delete_FontMapper
):
1365 if self
.thisown
: destroy(self
)
1368 def Get(*args
, **kwargs
):
1369 """Get() -> FontMapper"""
1370 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1372 Get
= staticmethod(Get
)
1373 def Set(*args
, **kwargs
):
1374 """Set(FontMapper mapper) -> FontMapper"""
1375 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1377 Set
= staticmethod(Set
)
1378 def CharsetToEncoding(*args
, **kwargs
):
1379 """CharsetToEncoding(String charset, bool interactive=True) -> int"""
1380 return _gdi
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1382 def GetSupportedEncodingsCount(*args
, **kwargs
):
1383 """GetSupportedEncodingsCount() -> size_t"""
1384 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1386 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1387 def GetEncoding(*args
, **kwargs
):
1388 """GetEncoding(size_t n) -> int"""
1389 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1391 GetEncoding
= staticmethod(GetEncoding
)
1392 def GetEncodingName(*args
, **kwargs
):
1393 """GetEncodingName(int encoding) -> String"""
1394 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1396 GetEncodingName
= staticmethod(GetEncodingName
)
1397 def GetEncodingDescription(*args
, **kwargs
):
1398 """GetEncodingDescription(int encoding) -> String"""
1399 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1401 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1402 def SetConfig(*args
, **kwargs
):
1403 """SetConfig(ConfigBase config)"""
1404 return _gdi
.FontMapper_SetConfig(*args
, **kwargs
)
1406 def SetConfigPath(*args
, **kwargs
):
1407 """SetConfigPath(String prefix)"""
1408 return _gdi
.FontMapper_SetConfigPath(*args
, **kwargs
)
1410 def GetDefaultConfigPath(*args
, **kwargs
):
1411 """GetDefaultConfigPath() -> String"""
1412 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1414 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1415 def GetAltForEncoding(*args
, **kwargs
):
1416 """GetAltForEncoding(int encoding, String facename=EmptyString, bool interactive=True) -> PyObject"""
1417 return _gdi
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1419 def IsEncodingAvailable(*args
, **kwargs
):
1420 """IsEncodingAvailable(int encoding, String facename=EmptyString) -> bool"""
1421 return _gdi
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1423 def SetDialogParent(*args
, **kwargs
):
1424 """SetDialogParent(Window parent)"""
1425 return _gdi
.FontMapper_SetDialogParent(*args
, **kwargs
)
1427 def SetDialogTitle(*args
, **kwargs
):
1428 """SetDialogTitle(String title)"""
1429 return _gdi
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1432 class FontMapperPtr(FontMapper
):
1433 def __init__(self
, this
):
1435 if not hasattr(self
,"thisown"): self
.thisown
= 0
1436 self
.__class
__ = FontMapper
1437 _gdi
.FontMapper_swigregister(FontMapperPtr
)
1439 def FontMapper_Get(*args
, **kwargs
):
1440 """FontMapper_Get() -> FontMapper"""
1441 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1443 def FontMapper_Set(*args
, **kwargs
):
1444 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1445 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1447 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1448 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1449 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1451 def FontMapper_GetEncoding(*args
, **kwargs
):
1452 """FontMapper_GetEncoding(size_t n) -> int"""
1453 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1455 def FontMapper_GetEncodingName(*args
, **kwargs
):
1456 """FontMapper_GetEncodingName(int encoding) -> String"""
1457 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1459 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1460 """FontMapper_GetEncodingDescription(int encoding) -> String"""
1461 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1463 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1464 """FontMapper_GetDefaultConfigPath() -> String"""
1465 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1467 #---------------------------------------------------------------------------
1469 class Font(GDIObject
):
1471 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1472 def __init__(self
, *args
, **kwargs
):
1474 __init__(int pointSize, int family, int style, int weight, bool underline=False,
1475 String face=EmptyString,
1476 int encoding=FONTENCODING_DEFAULT) -> Font
1478 newobj
= _gdi
.new_Font(*args
, **kwargs
)
1479 self
.this
= newobj
.this
1482 def __del__(self
, destroy
=_gdi
.delete_Font
):
1485 if self
.thisown
: destroy(self
)
1488 def Ok(*args
, **kwargs
):
1490 return _gdi
.Font_Ok(*args
, **kwargs
)
1492 def __nonzero__(self
): return self
.Ok()
1493 def __eq__(*args
, **kwargs
):
1494 """__eq__(Font font) -> bool"""
1495 return _gdi
.Font___eq__(*args
, **kwargs
)
1497 def __ne__(*args
, **kwargs
):
1498 """__ne__(Font font) -> bool"""
1499 return _gdi
.Font___ne__(*args
, **kwargs
)
1501 def GetPointSize(*args
, **kwargs
):
1502 """GetPointSize() -> int"""
1503 return _gdi
.Font_GetPointSize(*args
, **kwargs
)
1505 def GetFamily(*args
, **kwargs
):
1506 """GetFamily() -> int"""
1507 return _gdi
.Font_GetFamily(*args
, **kwargs
)
1509 def GetStyle(*args
, **kwargs
):
1510 """GetStyle() -> int"""
1511 return _gdi
.Font_GetStyle(*args
, **kwargs
)
1513 def GetWeight(*args
, **kwargs
):
1514 """GetWeight() -> int"""
1515 return _gdi
.Font_GetWeight(*args
, **kwargs
)
1517 def GetUnderlined(*args
, **kwargs
):
1518 """GetUnderlined() -> bool"""
1519 return _gdi
.Font_GetUnderlined(*args
, **kwargs
)
1521 def GetFaceName(*args
, **kwargs
):
1522 """GetFaceName() -> String"""
1523 return _gdi
.Font_GetFaceName(*args
, **kwargs
)
1525 def GetEncoding(*args
, **kwargs
):
1526 """GetEncoding() -> int"""
1527 return _gdi
.Font_GetEncoding(*args
, **kwargs
)
1529 def GetNativeFontInfo(*args
, **kwargs
):
1530 """GetNativeFontInfo() -> NativeFontInfo"""
1531 return _gdi
.Font_GetNativeFontInfo(*args
, **kwargs
)
1533 def IsFixedWidth(*args
, **kwargs
):
1534 """IsFixedWidth() -> bool"""
1535 return _gdi
.Font_IsFixedWidth(*args
, **kwargs
)
1537 def GetNativeFontInfoDesc(*args
, **kwargs
):
1538 """GetNativeFontInfoDesc() -> String"""
1539 return _gdi
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1541 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1542 """GetNativeFontInfoUserDesc() -> String"""
1543 return _gdi
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1545 def SetPointSize(*args
, **kwargs
):
1546 """SetPointSize(int pointSize)"""
1547 return _gdi
.Font_SetPointSize(*args
, **kwargs
)
1549 def SetFamily(*args
, **kwargs
):
1550 """SetFamily(int family)"""
1551 return _gdi
.Font_SetFamily(*args
, **kwargs
)
1553 def SetStyle(*args
, **kwargs
):
1554 """SetStyle(int style)"""
1555 return _gdi
.Font_SetStyle(*args
, **kwargs
)
1557 def SetWeight(*args
, **kwargs
):
1558 """SetWeight(int weight)"""
1559 return _gdi
.Font_SetWeight(*args
, **kwargs
)
1561 def SetFaceName(*args
, **kwargs
):
1562 """SetFaceName(String faceName)"""
1563 return _gdi
.Font_SetFaceName(*args
, **kwargs
)
1565 def SetUnderlined(*args
, **kwargs
):
1566 """SetUnderlined(bool underlined)"""
1567 return _gdi
.Font_SetUnderlined(*args
, **kwargs
)
1569 def SetEncoding(*args
, **kwargs
):
1570 """SetEncoding(int encoding)"""
1571 return _gdi
.Font_SetEncoding(*args
, **kwargs
)
1573 def SetNativeFontInfo(*args
, **kwargs
):
1574 """SetNativeFontInfo(NativeFontInfo info)"""
1575 return _gdi
.Font_SetNativeFontInfo(*args
, **kwargs
)
1577 def SetNativeFontInfoFromString(*args
, **kwargs
):
1578 """SetNativeFontInfoFromString(String info)"""
1579 return _gdi
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1581 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1582 """SetNativeFontInfoUserDesc(String info)"""
1583 return _gdi
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1585 def GetFamilyString(*args
, **kwargs
):
1586 """GetFamilyString() -> String"""
1587 return _gdi
.Font_GetFamilyString(*args
, **kwargs
)
1589 def GetStyleString(*args
, **kwargs
):
1590 """GetStyleString() -> String"""
1591 return _gdi
.Font_GetStyleString(*args
, **kwargs
)
1593 def GetWeightString(*args
, **kwargs
):
1594 """GetWeightString() -> String"""
1595 return _gdi
.Font_GetWeightString(*args
, **kwargs
)
1597 def SetNoAntiAliasing(*args
, **kwargs
):
1598 """SetNoAntiAliasing(bool no=True)"""
1599 return _gdi
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1601 def GetNoAntiAliasing(*args
, **kwargs
):
1602 """GetNoAntiAliasing() -> bool"""
1603 return _gdi
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1605 def GetDefaultEncoding(*args
, **kwargs
):
1606 """GetDefaultEncoding() -> int"""
1607 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1609 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1610 def SetDefaultEncoding(*args
, **kwargs
):
1611 """SetDefaultEncoding(int encoding)"""
1612 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1614 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1616 class FontPtr(Font
):
1617 def __init__(self
, this
):
1619 if not hasattr(self
,"thisown"): self
.thisown
= 0
1620 self
.__class
__ = Font
1621 _gdi
.Font_swigregister(FontPtr
)
1623 def FontFromNativeInfo(*args
, **kwargs
):
1624 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1625 val
= _gdi
.new_FontFromNativeInfo(*args
, **kwargs
)
1629 def FontFromNativeInfoString(*args
, **kwargs
):
1630 """FontFromNativeInfoString(String info) -> Font"""
1631 val
= _gdi
.new_FontFromNativeInfoString(*args
, **kwargs
)
1635 def Font2(*args
, **kwargs
):
1637 Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT,
1638 String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font
1640 val
= _gdi
.new_Font2(*args
, **kwargs
)
1644 def Font_GetDefaultEncoding(*args
, **kwargs
):
1645 """Font_GetDefaultEncoding() -> int"""
1646 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1648 def Font_SetDefaultEncoding(*args
, **kwargs
):
1649 """Font_SetDefaultEncoding(int encoding)"""
1650 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1652 #---------------------------------------------------------------------------
1654 class FontEnumerator(object):
1656 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1657 def __init__(self
, *args
, **kwargs
):
1658 """__init__() -> FontEnumerator"""
1659 newobj
= _gdi
.new_FontEnumerator(*args
, **kwargs
)
1660 self
.this
= newobj
.this
1663 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1665 def __del__(self
, destroy
=_gdi
.delete_FontEnumerator
):
1668 if self
.thisown
: destroy(self
)
1671 def _setCallbackInfo(*args
, **kwargs
):
1672 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1673 return _gdi
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1675 def EnumerateFacenames(*args
, **kwargs
):
1676 """EnumerateFacenames(int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1677 return _gdi
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1679 def EnumerateEncodings(*args
, **kwargs
):
1680 """EnumerateEncodings(String facename=EmptyString) -> bool"""
1681 return _gdi
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1683 def GetEncodings(*args
, **kwargs
):
1684 """GetEncodings() -> PyObject"""
1685 return _gdi
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1687 def GetFacenames(*args
, **kwargs
):
1688 """GetFacenames() -> PyObject"""
1689 return _gdi
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1692 class FontEnumeratorPtr(FontEnumerator
):
1693 def __init__(self
, this
):
1695 if not hasattr(self
,"thisown"): self
.thisown
= 0
1696 self
.__class
__ = FontEnumerator
1697 _gdi
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1699 #---------------------------------------------------------------------------
1701 LANGUAGE_DEFAULT
= _gdi
.LANGUAGE_DEFAULT
1702 LANGUAGE_UNKNOWN
= _gdi
.LANGUAGE_UNKNOWN
1703 LANGUAGE_ABKHAZIAN
= _gdi
.LANGUAGE_ABKHAZIAN
1704 LANGUAGE_AFAR
= _gdi
.LANGUAGE_AFAR
1705 LANGUAGE_AFRIKAANS
= _gdi
.LANGUAGE_AFRIKAANS
1706 LANGUAGE_ALBANIAN
= _gdi
.LANGUAGE_ALBANIAN
1707 LANGUAGE_AMHARIC
= _gdi
.LANGUAGE_AMHARIC
1708 LANGUAGE_ARABIC
= _gdi
.LANGUAGE_ARABIC
1709 LANGUAGE_ARABIC_ALGERIA
= _gdi
.LANGUAGE_ARABIC_ALGERIA
1710 LANGUAGE_ARABIC_BAHRAIN
= _gdi
.LANGUAGE_ARABIC_BAHRAIN
1711 LANGUAGE_ARABIC_EGYPT
= _gdi
.LANGUAGE_ARABIC_EGYPT
1712 LANGUAGE_ARABIC_IRAQ
= _gdi
.LANGUAGE_ARABIC_IRAQ
1713 LANGUAGE_ARABIC_JORDAN
= _gdi
.LANGUAGE_ARABIC_JORDAN
1714 LANGUAGE_ARABIC_KUWAIT
= _gdi
.LANGUAGE_ARABIC_KUWAIT
1715 LANGUAGE_ARABIC_LEBANON
= _gdi
.LANGUAGE_ARABIC_LEBANON
1716 LANGUAGE_ARABIC_LIBYA
= _gdi
.LANGUAGE_ARABIC_LIBYA
1717 LANGUAGE_ARABIC_MOROCCO
= _gdi
.LANGUAGE_ARABIC_MOROCCO
1718 LANGUAGE_ARABIC_OMAN
= _gdi
.LANGUAGE_ARABIC_OMAN
1719 LANGUAGE_ARABIC_QATAR
= _gdi
.LANGUAGE_ARABIC_QATAR
1720 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi
.LANGUAGE_ARABIC_SAUDI_ARABIA
1721 LANGUAGE_ARABIC_SUDAN
= _gdi
.LANGUAGE_ARABIC_SUDAN
1722 LANGUAGE_ARABIC_SYRIA
= _gdi
.LANGUAGE_ARABIC_SYRIA
1723 LANGUAGE_ARABIC_TUNISIA
= _gdi
.LANGUAGE_ARABIC_TUNISIA
1724 LANGUAGE_ARABIC_UAE
= _gdi
.LANGUAGE_ARABIC_UAE
1725 LANGUAGE_ARABIC_YEMEN
= _gdi
.LANGUAGE_ARABIC_YEMEN
1726 LANGUAGE_ARMENIAN
= _gdi
.LANGUAGE_ARMENIAN
1727 LANGUAGE_ASSAMESE
= _gdi
.LANGUAGE_ASSAMESE
1728 LANGUAGE_AYMARA
= _gdi
.LANGUAGE_AYMARA
1729 LANGUAGE_AZERI
= _gdi
.LANGUAGE_AZERI
1730 LANGUAGE_AZERI_CYRILLIC
= _gdi
.LANGUAGE_AZERI_CYRILLIC
1731 LANGUAGE_AZERI_LATIN
= _gdi
.LANGUAGE_AZERI_LATIN
1732 LANGUAGE_BASHKIR
= _gdi
.LANGUAGE_BASHKIR
1733 LANGUAGE_BASQUE
= _gdi
.LANGUAGE_BASQUE
1734 LANGUAGE_BELARUSIAN
= _gdi
.LANGUAGE_BELARUSIAN
1735 LANGUAGE_BENGALI
= _gdi
.LANGUAGE_BENGALI
1736 LANGUAGE_BHUTANI
= _gdi
.LANGUAGE_BHUTANI
1737 LANGUAGE_BIHARI
= _gdi
.LANGUAGE_BIHARI
1738 LANGUAGE_BISLAMA
= _gdi
.LANGUAGE_BISLAMA
1739 LANGUAGE_BRETON
= _gdi
.LANGUAGE_BRETON
1740 LANGUAGE_BULGARIAN
= _gdi
.LANGUAGE_BULGARIAN
1741 LANGUAGE_BURMESE
= _gdi
.LANGUAGE_BURMESE
1742 LANGUAGE_CAMBODIAN
= _gdi
.LANGUAGE_CAMBODIAN
1743 LANGUAGE_CATALAN
= _gdi
.LANGUAGE_CATALAN
1744 LANGUAGE_CHINESE
= _gdi
.LANGUAGE_CHINESE
1745 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi
.LANGUAGE_CHINESE_SIMPLIFIED
1746 LANGUAGE_CHINESE_TRADITIONAL
= _gdi
.LANGUAGE_CHINESE_TRADITIONAL
1747 LANGUAGE_CHINESE_HONGKONG
= _gdi
.LANGUAGE_CHINESE_HONGKONG
1748 LANGUAGE_CHINESE_MACAU
= _gdi
.LANGUAGE_CHINESE_MACAU
1749 LANGUAGE_CHINESE_SINGAPORE
= _gdi
.LANGUAGE_CHINESE_SINGAPORE
1750 LANGUAGE_CHINESE_TAIWAN
= _gdi
.LANGUAGE_CHINESE_TAIWAN
1751 LANGUAGE_CORSICAN
= _gdi
.LANGUAGE_CORSICAN
1752 LANGUAGE_CROATIAN
= _gdi
.LANGUAGE_CROATIAN
1753 LANGUAGE_CZECH
= _gdi
.LANGUAGE_CZECH
1754 LANGUAGE_DANISH
= _gdi
.LANGUAGE_DANISH
1755 LANGUAGE_DUTCH
= _gdi
.LANGUAGE_DUTCH
1756 LANGUAGE_DUTCH_BELGIAN
= _gdi
.LANGUAGE_DUTCH_BELGIAN
1757 LANGUAGE_ENGLISH
= _gdi
.LANGUAGE_ENGLISH
1758 LANGUAGE_ENGLISH_UK
= _gdi
.LANGUAGE_ENGLISH_UK
1759 LANGUAGE_ENGLISH_US
= _gdi
.LANGUAGE_ENGLISH_US
1760 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi
.LANGUAGE_ENGLISH_AUSTRALIA
1761 LANGUAGE_ENGLISH_BELIZE
= _gdi
.LANGUAGE_ENGLISH_BELIZE
1762 LANGUAGE_ENGLISH_BOTSWANA
= _gdi
.LANGUAGE_ENGLISH_BOTSWANA
1763 LANGUAGE_ENGLISH_CANADA
= _gdi
.LANGUAGE_ENGLISH_CANADA
1764 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi
.LANGUAGE_ENGLISH_CARIBBEAN
1765 LANGUAGE_ENGLISH_DENMARK
= _gdi
.LANGUAGE_ENGLISH_DENMARK
1766 LANGUAGE_ENGLISH_EIRE
= _gdi
.LANGUAGE_ENGLISH_EIRE
1767 LANGUAGE_ENGLISH_JAMAICA
= _gdi
.LANGUAGE_ENGLISH_JAMAICA
1768 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi
.LANGUAGE_ENGLISH_NEW_ZEALAND
1769 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi
.LANGUAGE_ENGLISH_PHILIPPINES
1770 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1771 LANGUAGE_ENGLISH_TRINIDAD
= _gdi
.LANGUAGE_ENGLISH_TRINIDAD
1772 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi
.LANGUAGE_ENGLISH_ZIMBABWE
1773 LANGUAGE_ESPERANTO
= _gdi
.LANGUAGE_ESPERANTO
1774 LANGUAGE_ESTONIAN
= _gdi
.LANGUAGE_ESTONIAN
1775 LANGUAGE_FAEROESE
= _gdi
.LANGUAGE_FAEROESE
1776 LANGUAGE_FARSI
= _gdi
.LANGUAGE_FARSI
1777 LANGUAGE_FIJI
= _gdi
.LANGUAGE_FIJI
1778 LANGUAGE_FINNISH
= _gdi
.LANGUAGE_FINNISH
1779 LANGUAGE_FRENCH
= _gdi
.LANGUAGE_FRENCH
1780 LANGUAGE_FRENCH_BELGIAN
= _gdi
.LANGUAGE_FRENCH_BELGIAN
1781 LANGUAGE_FRENCH_CANADIAN
= _gdi
.LANGUAGE_FRENCH_CANADIAN
1782 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi
.LANGUAGE_FRENCH_LUXEMBOURG
1783 LANGUAGE_FRENCH_MONACO
= _gdi
.LANGUAGE_FRENCH_MONACO
1784 LANGUAGE_FRENCH_SWISS
= _gdi
.LANGUAGE_FRENCH_SWISS
1785 LANGUAGE_FRISIAN
= _gdi
.LANGUAGE_FRISIAN
1786 LANGUAGE_GALICIAN
= _gdi
.LANGUAGE_GALICIAN
1787 LANGUAGE_GEORGIAN
= _gdi
.LANGUAGE_GEORGIAN
1788 LANGUAGE_GERMAN
= _gdi
.LANGUAGE_GERMAN
1789 LANGUAGE_GERMAN_AUSTRIAN
= _gdi
.LANGUAGE_GERMAN_AUSTRIAN
1790 LANGUAGE_GERMAN_BELGIUM
= _gdi
.LANGUAGE_GERMAN_BELGIUM
1791 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi
.LANGUAGE_GERMAN_LIECHTENSTEIN
1792 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi
.LANGUAGE_GERMAN_LUXEMBOURG
1793 LANGUAGE_GERMAN_SWISS
= _gdi
.LANGUAGE_GERMAN_SWISS
1794 LANGUAGE_GREEK
= _gdi
.LANGUAGE_GREEK
1795 LANGUAGE_GREENLANDIC
= _gdi
.LANGUAGE_GREENLANDIC
1796 LANGUAGE_GUARANI
= _gdi
.LANGUAGE_GUARANI
1797 LANGUAGE_GUJARATI
= _gdi
.LANGUAGE_GUJARATI
1798 LANGUAGE_HAUSA
= _gdi
.LANGUAGE_HAUSA
1799 LANGUAGE_HEBREW
= _gdi
.LANGUAGE_HEBREW
1800 LANGUAGE_HINDI
= _gdi
.LANGUAGE_HINDI
1801 LANGUAGE_HUNGARIAN
= _gdi
.LANGUAGE_HUNGARIAN
1802 LANGUAGE_ICELANDIC
= _gdi
.LANGUAGE_ICELANDIC
1803 LANGUAGE_INDONESIAN
= _gdi
.LANGUAGE_INDONESIAN
1804 LANGUAGE_INTERLINGUA
= _gdi
.LANGUAGE_INTERLINGUA
1805 LANGUAGE_INTERLINGUE
= _gdi
.LANGUAGE_INTERLINGUE
1806 LANGUAGE_INUKTITUT
= _gdi
.LANGUAGE_INUKTITUT
1807 LANGUAGE_INUPIAK
= _gdi
.LANGUAGE_INUPIAK
1808 LANGUAGE_IRISH
= _gdi
.LANGUAGE_IRISH
1809 LANGUAGE_ITALIAN
= _gdi
.LANGUAGE_ITALIAN
1810 LANGUAGE_ITALIAN_SWISS
= _gdi
.LANGUAGE_ITALIAN_SWISS
1811 LANGUAGE_JAPANESE
= _gdi
.LANGUAGE_JAPANESE
1812 LANGUAGE_JAVANESE
= _gdi
.LANGUAGE_JAVANESE
1813 LANGUAGE_KANNADA
= _gdi
.LANGUAGE_KANNADA
1814 LANGUAGE_KASHMIRI
= _gdi
.LANGUAGE_KASHMIRI
1815 LANGUAGE_KASHMIRI_INDIA
= _gdi
.LANGUAGE_KASHMIRI_INDIA
1816 LANGUAGE_KAZAKH
= _gdi
.LANGUAGE_KAZAKH
1817 LANGUAGE_KERNEWEK
= _gdi
.LANGUAGE_KERNEWEK
1818 LANGUAGE_KINYARWANDA
= _gdi
.LANGUAGE_KINYARWANDA
1819 LANGUAGE_KIRGHIZ
= _gdi
.LANGUAGE_KIRGHIZ
1820 LANGUAGE_KIRUNDI
= _gdi
.LANGUAGE_KIRUNDI
1821 LANGUAGE_KONKANI
= _gdi
.LANGUAGE_KONKANI
1822 LANGUAGE_KOREAN
= _gdi
.LANGUAGE_KOREAN
1823 LANGUAGE_KURDISH
= _gdi
.LANGUAGE_KURDISH
1824 LANGUAGE_LAOTHIAN
= _gdi
.LANGUAGE_LAOTHIAN
1825 LANGUAGE_LATIN
= _gdi
.LANGUAGE_LATIN
1826 LANGUAGE_LATVIAN
= _gdi
.LANGUAGE_LATVIAN
1827 LANGUAGE_LINGALA
= _gdi
.LANGUAGE_LINGALA
1828 LANGUAGE_LITHUANIAN
= _gdi
.LANGUAGE_LITHUANIAN
1829 LANGUAGE_MACEDONIAN
= _gdi
.LANGUAGE_MACEDONIAN
1830 LANGUAGE_MALAGASY
= _gdi
.LANGUAGE_MALAGASY
1831 LANGUAGE_MALAY
= _gdi
.LANGUAGE_MALAY
1832 LANGUAGE_MALAYALAM
= _gdi
.LANGUAGE_MALAYALAM
1833 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1834 LANGUAGE_MALAY_MALAYSIA
= _gdi
.LANGUAGE_MALAY_MALAYSIA
1835 LANGUAGE_MALTESE
= _gdi
.LANGUAGE_MALTESE
1836 LANGUAGE_MANIPURI
= _gdi
.LANGUAGE_MANIPURI
1837 LANGUAGE_MAORI
= _gdi
.LANGUAGE_MAORI
1838 LANGUAGE_MARATHI
= _gdi
.LANGUAGE_MARATHI
1839 LANGUAGE_MOLDAVIAN
= _gdi
.LANGUAGE_MOLDAVIAN
1840 LANGUAGE_MONGOLIAN
= _gdi
.LANGUAGE_MONGOLIAN
1841 LANGUAGE_NAURU
= _gdi
.LANGUAGE_NAURU
1842 LANGUAGE_NEPALI
= _gdi
.LANGUAGE_NEPALI
1843 LANGUAGE_NEPALI_INDIA
= _gdi
.LANGUAGE_NEPALI_INDIA
1844 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi
.LANGUAGE_NORWEGIAN_BOKMAL
1845 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi
.LANGUAGE_NORWEGIAN_NYNORSK
1846 LANGUAGE_OCCITAN
= _gdi
.LANGUAGE_OCCITAN
1847 LANGUAGE_ORIYA
= _gdi
.LANGUAGE_ORIYA
1848 LANGUAGE_OROMO
= _gdi
.LANGUAGE_OROMO
1849 LANGUAGE_PASHTO
= _gdi
.LANGUAGE_PASHTO
1850 LANGUAGE_POLISH
= _gdi
.LANGUAGE_POLISH
1851 LANGUAGE_PORTUGUESE
= _gdi
.LANGUAGE_PORTUGUESE
1852 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi
.LANGUAGE_PORTUGUESE_BRAZILIAN
1853 LANGUAGE_PUNJABI
= _gdi
.LANGUAGE_PUNJABI
1854 LANGUAGE_QUECHUA
= _gdi
.LANGUAGE_QUECHUA
1855 LANGUAGE_RHAETO_ROMANCE
= _gdi
.LANGUAGE_RHAETO_ROMANCE
1856 LANGUAGE_ROMANIAN
= _gdi
.LANGUAGE_ROMANIAN
1857 LANGUAGE_RUSSIAN
= _gdi
.LANGUAGE_RUSSIAN
1858 LANGUAGE_RUSSIAN_UKRAINE
= _gdi
.LANGUAGE_RUSSIAN_UKRAINE
1859 LANGUAGE_SAMOAN
= _gdi
.LANGUAGE_SAMOAN
1860 LANGUAGE_SANGHO
= _gdi
.LANGUAGE_SANGHO
1861 LANGUAGE_SANSKRIT
= _gdi
.LANGUAGE_SANSKRIT
1862 LANGUAGE_SCOTS_GAELIC
= _gdi
.LANGUAGE_SCOTS_GAELIC
1863 LANGUAGE_SERBIAN
= _gdi
.LANGUAGE_SERBIAN
1864 LANGUAGE_SERBIAN_CYRILLIC
= _gdi
.LANGUAGE_SERBIAN_CYRILLIC
1865 LANGUAGE_SERBIAN_LATIN
= _gdi
.LANGUAGE_SERBIAN_LATIN
1866 LANGUAGE_SERBO_CROATIAN
= _gdi
.LANGUAGE_SERBO_CROATIAN
1867 LANGUAGE_SESOTHO
= _gdi
.LANGUAGE_SESOTHO
1868 LANGUAGE_SETSWANA
= _gdi
.LANGUAGE_SETSWANA
1869 LANGUAGE_SHONA
= _gdi
.LANGUAGE_SHONA
1870 LANGUAGE_SINDHI
= _gdi
.LANGUAGE_SINDHI
1871 LANGUAGE_SINHALESE
= _gdi
.LANGUAGE_SINHALESE
1872 LANGUAGE_SISWATI
= _gdi
.LANGUAGE_SISWATI
1873 LANGUAGE_SLOVAK
= _gdi
.LANGUAGE_SLOVAK
1874 LANGUAGE_SLOVENIAN
= _gdi
.LANGUAGE_SLOVENIAN
1875 LANGUAGE_SOMALI
= _gdi
.LANGUAGE_SOMALI
1876 LANGUAGE_SPANISH
= _gdi
.LANGUAGE_SPANISH
1877 LANGUAGE_SPANISH_ARGENTINA
= _gdi
.LANGUAGE_SPANISH_ARGENTINA
1878 LANGUAGE_SPANISH_BOLIVIA
= _gdi
.LANGUAGE_SPANISH_BOLIVIA
1879 LANGUAGE_SPANISH_CHILE
= _gdi
.LANGUAGE_SPANISH_CHILE
1880 LANGUAGE_SPANISH_COLOMBIA
= _gdi
.LANGUAGE_SPANISH_COLOMBIA
1881 LANGUAGE_SPANISH_COSTA_RICA
= _gdi
.LANGUAGE_SPANISH_COSTA_RICA
1882 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
1883 LANGUAGE_SPANISH_ECUADOR
= _gdi
.LANGUAGE_SPANISH_ECUADOR
1884 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi
.LANGUAGE_SPANISH_EL_SALVADOR
1885 LANGUAGE_SPANISH_GUATEMALA
= _gdi
.LANGUAGE_SPANISH_GUATEMALA
1886 LANGUAGE_SPANISH_HONDURAS
= _gdi
.LANGUAGE_SPANISH_HONDURAS
1887 LANGUAGE_SPANISH_MEXICAN
= _gdi
.LANGUAGE_SPANISH_MEXICAN
1888 LANGUAGE_SPANISH_MODERN
= _gdi
.LANGUAGE_SPANISH_MODERN
1889 LANGUAGE_SPANISH_NICARAGUA
= _gdi
.LANGUAGE_SPANISH_NICARAGUA
1890 LANGUAGE_SPANISH_PANAMA
= _gdi
.LANGUAGE_SPANISH_PANAMA
1891 LANGUAGE_SPANISH_PARAGUAY
= _gdi
.LANGUAGE_SPANISH_PARAGUAY
1892 LANGUAGE_SPANISH_PERU
= _gdi
.LANGUAGE_SPANISH_PERU
1893 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi
.LANGUAGE_SPANISH_PUERTO_RICO
1894 LANGUAGE_SPANISH_URUGUAY
= _gdi
.LANGUAGE_SPANISH_URUGUAY
1895 LANGUAGE_SPANISH_US
= _gdi
.LANGUAGE_SPANISH_US
1896 LANGUAGE_SPANISH_VENEZUELA
= _gdi
.LANGUAGE_SPANISH_VENEZUELA
1897 LANGUAGE_SUNDANESE
= _gdi
.LANGUAGE_SUNDANESE
1898 LANGUAGE_SWAHILI
= _gdi
.LANGUAGE_SWAHILI
1899 LANGUAGE_SWEDISH
= _gdi
.LANGUAGE_SWEDISH
1900 LANGUAGE_SWEDISH_FINLAND
= _gdi
.LANGUAGE_SWEDISH_FINLAND
1901 LANGUAGE_TAGALOG
= _gdi
.LANGUAGE_TAGALOG
1902 LANGUAGE_TAJIK
= _gdi
.LANGUAGE_TAJIK
1903 LANGUAGE_TAMIL
= _gdi
.LANGUAGE_TAMIL
1904 LANGUAGE_TATAR
= _gdi
.LANGUAGE_TATAR
1905 LANGUAGE_TELUGU
= _gdi
.LANGUAGE_TELUGU
1906 LANGUAGE_THAI
= _gdi
.LANGUAGE_THAI
1907 LANGUAGE_TIBETAN
= _gdi
.LANGUAGE_TIBETAN
1908 LANGUAGE_TIGRINYA
= _gdi
.LANGUAGE_TIGRINYA
1909 LANGUAGE_TONGA
= _gdi
.LANGUAGE_TONGA
1910 LANGUAGE_TSONGA
= _gdi
.LANGUAGE_TSONGA
1911 LANGUAGE_TURKISH
= _gdi
.LANGUAGE_TURKISH
1912 LANGUAGE_TURKMEN
= _gdi
.LANGUAGE_TURKMEN
1913 LANGUAGE_TWI
= _gdi
.LANGUAGE_TWI
1914 LANGUAGE_UIGHUR
= _gdi
.LANGUAGE_UIGHUR
1915 LANGUAGE_UKRAINIAN
= _gdi
.LANGUAGE_UKRAINIAN
1916 LANGUAGE_URDU
= _gdi
.LANGUAGE_URDU
1917 LANGUAGE_URDU_INDIA
= _gdi
.LANGUAGE_URDU_INDIA
1918 LANGUAGE_URDU_PAKISTAN
= _gdi
.LANGUAGE_URDU_PAKISTAN
1919 LANGUAGE_UZBEK
= _gdi
.LANGUAGE_UZBEK
1920 LANGUAGE_UZBEK_CYRILLIC
= _gdi
.LANGUAGE_UZBEK_CYRILLIC
1921 LANGUAGE_UZBEK_LATIN
= _gdi
.LANGUAGE_UZBEK_LATIN
1922 LANGUAGE_VIETNAMESE
= _gdi
.LANGUAGE_VIETNAMESE
1923 LANGUAGE_VOLAPUK
= _gdi
.LANGUAGE_VOLAPUK
1924 LANGUAGE_WELSH
= _gdi
.LANGUAGE_WELSH
1925 LANGUAGE_WOLOF
= _gdi
.LANGUAGE_WOLOF
1926 LANGUAGE_XHOSA
= _gdi
.LANGUAGE_XHOSA
1927 LANGUAGE_YIDDISH
= _gdi
.LANGUAGE_YIDDISH
1928 LANGUAGE_YORUBA
= _gdi
.LANGUAGE_YORUBA
1929 LANGUAGE_ZHUANG
= _gdi
.LANGUAGE_ZHUANG
1930 LANGUAGE_ZULU
= _gdi
.LANGUAGE_ZULU
1931 LANGUAGE_USER_DEFINED
= _gdi
.LANGUAGE_USER_DEFINED
1932 class LanguageInfo(object):
1933 def __init__(self
): raise RuntimeError, "No constructor defined"
1935 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1936 Language
= property(_gdi
.LanguageInfo_Language_get
, _gdi
.LanguageInfo_Language_set
)
1937 CanonicalName
= property(_gdi
.LanguageInfo_CanonicalName_get
, _gdi
.LanguageInfo_CanonicalName_set
)
1938 Description
= property(_gdi
.LanguageInfo_Description_get
, _gdi
.LanguageInfo_Description_set
)
1940 class LanguageInfoPtr(LanguageInfo
):
1941 def __init__(self
, this
):
1943 if not hasattr(self
,"thisown"): self
.thisown
= 0
1944 self
.__class
__ = LanguageInfo
1945 _gdi
.LanguageInfo_swigregister(LanguageInfoPtr
)
1947 LOCALE_CAT_NUMBER
= _gdi
.LOCALE_CAT_NUMBER
1948 LOCALE_CAT_DATE
= _gdi
.LOCALE_CAT_DATE
1949 LOCALE_CAT_MONEY
= _gdi
.LOCALE_CAT_MONEY
1950 LOCALE_CAT_MAX
= _gdi
.LOCALE_CAT_MAX
1951 LOCALE_THOUSANDS_SEP
= _gdi
.LOCALE_THOUSANDS_SEP
1952 LOCALE_DECIMAL_POINT
= _gdi
.LOCALE_DECIMAL_POINT
1953 LOCALE_LOAD_DEFAULT
= _gdi
.LOCALE_LOAD_DEFAULT
1954 LOCALE_CONV_ENCODING
= _gdi
.LOCALE_CONV_ENCODING
1955 class Locale(object):
1957 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1958 def __init__(self
, *args
, **kwargs
):
1959 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
1960 newobj
= _gdi
.new_Locale(*args
, **kwargs
)
1961 self
.this
= newobj
.this
1964 def __del__(self
, destroy
=_gdi
.delete_Locale
):
1967 if self
.thisown
: destroy(self
)
1970 def Init1(*args
, **kwargs
):
1972 Init1(String szName, String szShort=EmptyString, String szLocale=EmptyString,
1973 bool bLoadDefault=True,
1974 bool bConvertEncoding=False) -> bool
1976 return _gdi
.Locale_Init1(*args
, **kwargs
)
1978 def Init2(*args
, **kwargs
):
1979 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
1980 return _gdi
.Locale_Init2(*args
, **kwargs
)
1982 def Init(self
, *_args
, **_kwargs
):
1983 if type(_args
[0]) in [type(''), type(u
'')]:
1984 val
= self
.Init1(*_args
, **_kwargs
)
1986 val
= self
.Init2(*_args
, **_kwargs
)
1989 def GetSystemLanguage(*args
, **kwargs
):
1990 """GetSystemLanguage() -> int"""
1991 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1993 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
1994 def GetSystemEncoding(*args
, **kwargs
):
1995 """GetSystemEncoding() -> int"""
1996 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1998 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
1999 def GetSystemEncodingName(*args
, **kwargs
):
2000 """GetSystemEncodingName() -> String"""
2001 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2003 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
2004 def IsOk(*args
, **kwargs
):
2005 """IsOk() -> bool"""
2006 return _gdi
.Locale_IsOk(*args
, **kwargs
)
2008 def __nonzero__(self
): return self
.IsOk()
2009 def GetLocale(*args
, **kwargs
):
2010 """GetLocale() -> String"""
2011 return _gdi
.Locale_GetLocale(*args
, **kwargs
)
2013 def GetLanguage(*args
, **kwargs
):
2014 """GetLanguage() -> int"""
2015 return _gdi
.Locale_GetLanguage(*args
, **kwargs
)
2017 def GetSysName(*args
, **kwargs
):
2018 """GetSysName() -> String"""
2019 return _gdi
.Locale_GetSysName(*args
, **kwargs
)
2021 def GetCanonicalName(*args
, **kwargs
):
2022 """GetCanonicalName() -> String"""
2023 return _gdi
.Locale_GetCanonicalName(*args
, **kwargs
)
2025 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
2026 """AddCatalogLookupPathPrefix(String prefix)"""
2027 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2029 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
2030 def AddCatalog(*args
, **kwargs
):
2031 """AddCatalog(String szDomain) -> bool"""
2032 return _gdi
.Locale_AddCatalog(*args
, **kwargs
)
2034 def IsLoaded(*args
, **kwargs
):
2035 """IsLoaded(String szDomain) -> bool"""
2036 return _gdi
.Locale_IsLoaded(*args
, **kwargs
)
2038 def GetLanguageInfo(*args
, **kwargs
):
2039 """GetLanguageInfo(int lang) -> LanguageInfo"""
2040 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
2042 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
2043 def GetLanguageName(*args
, **kwargs
):
2044 """GetLanguageName(int lang) -> String"""
2045 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
2047 GetLanguageName
= staticmethod(GetLanguageName
)
2048 def FindLanguageInfo(*args
, **kwargs
):
2049 """FindLanguageInfo(String locale) -> LanguageInfo"""
2050 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
2052 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
2053 def AddLanguage(*args
, **kwargs
):
2054 """AddLanguage(LanguageInfo info)"""
2055 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
2057 AddLanguage
= staticmethod(AddLanguage
)
2058 def GetString(*args
, **kwargs
):
2059 """GetString(String szOrigString, String szDomain=EmptyString) -> String"""
2060 return _gdi
.Locale_GetString(*args
, **kwargs
)
2062 def GetName(*args
, **kwargs
):
2063 """GetName() -> String"""
2064 return _gdi
.Locale_GetName(*args
, **kwargs
)
2067 class LocalePtr(Locale
):
2068 def __init__(self
, this
):
2070 if not hasattr(self
,"thisown"): self
.thisown
= 0
2071 self
.__class
__ = Locale
2072 _gdi
.Locale_swigregister(LocalePtr
)
2074 def Locale_GetSystemLanguage(*args
, **kwargs
):
2075 """Locale_GetSystemLanguage() -> int"""
2076 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
2078 def Locale_GetSystemEncoding(*args
, **kwargs
):
2079 """Locale_GetSystemEncoding() -> int"""
2080 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
2082 def Locale_GetSystemEncodingName(*args
, **kwargs
):
2083 """Locale_GetSystemEncodingName() -> String"""
2084 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2086 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
2087 """Locale_AddCatalogLookupPathPrefix(String prefix)"""
2088 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2090 def Locale_GetLanguageInfo(*args
, **kwargs
):
2091 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
2092 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
2094 def Locale_GetLanguageName(*args
, **kwargs
):
2095 """Locale_GetLanguageName(int lang) -> String"""
2096 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
2098 def Locale_FindLanguageInfo(*args
, **kwargs
):
2099 """Locale_FindLanguageInfo(String locale) -> LanguageInfo"""
2100 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
2102 def Locale_AddLanguage(*args
, **kwargs
):
2103 """Locale_AddLanguage(LanguageInfo info)"""
2104 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
2107 def GetLocale(*args
, **kwargs
):
2108 """GetLocale() -> Locale"""
2109 return _gdi
.GetLocale(*args
, **kwargs
)
2110 #---------------------------------------------------------------------------
2112 CONVERT_STRICT
= _gdi
.CONVERT_STRICT
2113 CONVERT_SUBSTITUTE
= _gdi
.CONVERT_SUBSTITUTE
2114 PLATFORM_CURRENT
= _gdi
.PLATFORM_CURRENT
2115 PLATFORM_UNIX
= _gdi
.PLATFORM_UNIX
2116 PLATFORM_WINDOWS
= _gdi
.PLATFORM_WINDOWS
2117 PLATFORM_OS2
= _gdi
.PLATFORM_OS2
2118 PLATFORM_MAC
= _gdi
.PLATFORM_MAC
2119 class EncodingConverter(core
.Object
):
2121 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2122 def __init__(self
, *args
, **kwargs
):
2123 """__init__() -> EncodingConverter"""
2124 newobj
= _gdi
.new_EncodingConverter(*args
, **kwargs
)
2125 self
.this
= newobj
.this
2128 def __del__(self
, destroy
=_gdi
.delete_EncodingConverter
):
2131 if self
.thisown
: destroy(self
)
2134 def Init(*args
, **kwargs
):
2135 """Init(int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool"""
2136 return _gdi
.EncodingConverter_Init(*args
, **kwargs
)
2138 def Convert(*args
, **kwargs
):
2139 """Convert(String input) -> String"""
2140 return _gdi
.EncodingConverter_Convert(*args
, **kwargs
)
2142 def GetPlatformEquivalents(*args
, **kwargs
):
2143 """GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2144 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2146 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2147 def GetAllEquivalents(*args
, **kwargs
):
2148 """GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2149 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2151 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2152 def CanConvert(*args
, **kwargs
):
2153 """CanConvert(int encIn, int encOut) -> bool"""
2154 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2156 CanConvert
= staticmethod(CanConvert
)
2157 def __nonzero__(self
): return self
.IsOk()
2159 class EncodingConverterPtr(EncodingConverter
):
2160 def __init__(self
, this
):
2162 if not hasattr(self
,"thisown"): self
.thisown
= 0
2163 self
.__class
__ = EncodingConverter
2164 _gdi
.EncodingConverter_swigregister(EncodingConverterPtr
)
2166 def GetTranslation(*args
):
2168 GetTranslation(String str) -> String
2169 GetTranslation(String str, String strPlural, size_t n) -> String
2171 return _gdi
.GetTranslation(*args
)
2173 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2174 """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2175 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2177 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2178 """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2179 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2181 def EncodingConverter_CanConvert(*args
, **kwargs
):
2182 """EncodingConverter_CanConvert(int encIn, int encOut) -> bool"""
2183 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2185 #----------------------------------------------------------------------------
2186 # wxGTK sets the locale when initialized. Doing this at the Python
2187 # level should set it up to match what GTK is doing at the C level.
2188 if wx
.Platform
== "__WXGTK__":
2191 locale
.setlocale(locale
.LC_ALL
, "")
2195 # On MSW add the directory where the wxWindows catalogs were installed
2196 # to the default catalog path.
2197 if wx
.Platform
== "__WXMSW__":
2199 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2200 Locale_AddCatalogLookupPathPrefix(localedir
)
2203 #----------------------------------------------------------------------------
2205 #---------------------------------------------------------------------------
2207 class DC(core
.Object
):
2208 def __init__(self
): raise RuntimeError, "No constructor defined"
2210 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2211 def __del__(self
, destroy
=_gdi
.delete_DC
):
2214 if self
.thisown
: destroy(self
)
2217 def BeginDrawing(*args
, **kwargs
):
2218 """BeginDrawing()"""
2219 return _gdi
.DC_BeginDrawing(*args
, **kwargs
)
2221 def EndDrawing(*args
, **kwargs
):
2223 return _gdi
.DC_EndDrawing(*args
, **kwargs
)
2225 def FloodFillXY(*args
, **kwargs
):
2226 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2227 return _gdi
.DC_FloodFillXY(*args
, **kwargs
)
2229 def FloodFill(*args
, **kwargs
):
2230 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2231 return _gdi
.DC_FloodFill(*args
, **kwargs
)
2233 def GetPixelXY(*args
, **kwargs
):
2234 """GetPixelXY(int x, int y) -> Colour"""
2235 return _gdi
.DC_GetPixelXY(*args
, **kwargs
)
2237 def GetPixel(*args
, **kwargs
):
2238 """GetPixel(Point pt) -> Colour"""
2239 return _gdi
.DC_GetPixel(*args
, **kwargs
)
2241 def DrawLineXY(*args
, **kwargs
):
2242 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2243 return _gdi
.DC_DrawLineXY(*args
, **kwargs
)
2245 def DrawLine(*args
, **kwargs
):
2246 """DrawLine(Point pt1, Point pt2)"""
2247 return _gdi
.DC_DrawLine(*args
, **kwargs
)
2249 def CrossHairXY(*args
, **kwargs
):
2250 """CrossHairXY(int x, int y)"""
2251 return _gdi
.DC_CrossHairXY(*args
, **kwargs
)
2253 def CrossHair(*args
, **kwargs
):
2254 """CrossHair(Point pt)"""
2255 return _gdi
.DC_CrossHair(*args
, **kwargs
)
2257 def DrawArcXY(*args
, **kwargs
):
2258 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2259 return _gdi
.DC_DrawArcXY(*args
, **kwargs
)
2261 def DrawArc(*args
, **kwargs
):
2262 """DrawArc(Point pt1, Point pt2, Point centre)"""
2263 return _gdi
.DC_DrawArc(*args
, **kwargs
)
2265 def DrawCheckMarkXY(*args
, **kwargs
):
2266 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2267 return _gdi
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2269 def DrawCheckMark(*args
, **kwargs
):
2270 """DrawCheckMark(Rect rect)"""
2271 return _gdi
.DC_DrawCheckMark(*args
, **kwargs
)
2273 def DrawEllipticArcXY(*args
, **kwargs
):
2274 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2275 return _gdi
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2277 def DrawEllipticArc(*args
, **kwargs
):
2278 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2279 return _gdi
.DC_DrawEllipticArc(*args
, **kwargs
)
2281 def DrawPointXY(*args
, **kwargs
):
2282 """DrawPointXY(int x, int y)"""
2283 return _gdi
.DC_DrawPointXY(*args
, **kwargs
)
2285 def DrawPoint(*args
, **kwargs
):
2286 """DrawPoint(Point pt)"""
2287 return _gdi
.DC_DrawPoint(*args
, **kwargs
)
2289 def DrawRectangleXY(*args
, **kwargs
):
2290 """DrawRectangleXY(int x, int y, int width, int height)"""
2291 return _gdi
.DC_DrawRectangleXY(*args
, **kwargs
)
2293 def DrawRectangle(*args
, **kwargs
):
2294 """DrawRectangle(Point pt, Size sz)"""
2295 return _gdi
.DC_DrawRectangle(*args
, **kwargs
)
2297 def DrawRectangleRect(*args
, **kwargs
):
2298 """DrawRectangleRect(Rect rect)"""
2299 return _gdi
.DC_DrawRectangleRect(*args
, **kwargs
)
2301 def DrawRoundedRectangleXY(*args
, **kwargs
):
2302 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2303 return _gdi
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2305 def DrawRoundedRectangle(*args
, **kwargs
):
2306 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2307 return _gdi
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2309 def DrawRoundedRectangleRect(*args
, **kwargs
):
2310 """DrawRoundedRectangleRect(Rect r, double radius)"""
2311 return _gdi
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2313 def DrawCircleXY(*args
, **kwargs
):
2314 """DrawCircleXY(int x, int y, int radius)"""
2315 return _gdi
.DC_DrawCircleXY(*args
, **kwargs
)
2317 def DrawCircle(*args
, **kwargs
):
2318 """DrawCircle(Point pt, int radius)"""
2319 return _gdi
.DC_DrawCircle(*args
, **kwargs
)
2321 def DrawEllipseXY(*args
, **kwargs
):
2322 """DrawEllipseXY(int x, int y, int width, int height)"""
2323 return _gdi
.DC_DrawEllipseXY(*args
, **kwargs
)
2325 def DrawEllipse(*args
, **kwargs
):
2326 """DrawEllipse(Point pt, Size sz)"""
2327 return _gdi
.DC_DrawEllipse(*args
, **kwargs
)
2329 def DrawEllipseRect(*args
, **kwargs
):
2330 """DrawEllipseRect(Rect rect)"""
2331 return _gdi
.DC_DrawEllipseRect(*args
, **kwargs
)
2333 def DrawIconXY(*args
, **kwargs
):
2334 """DrawIconXY(Icon icon, int x, int y)"""
2335 return _gdi
.DC_DrawIconXY(*args
, **kwargs
)
2337 def DrawIcon(*args
, **kwargs
):
2338 """DrawIcon(Icon icon, Point pt)"""
2339 return _gdi
.DC_DrawIcon(*args
, **kwargs
)
2341 def DrawBitmapXY(*args
, **kwargs
):
2342 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2343 return _gdi
.DC_DrawBitmapXY(*args
, **kwargs
)
2345 def DrawBitmap(*args
, **kwargs
):
2346 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2347 return _gdi
.DC_DrawBitmap(*args
, **kwargs
)
2349 def DrawTextXY(*args
, **kwargs
):
2350 """DrawTextXY(String text, int x, int y)"""
2351 return _gdi
.DC_DrawTextXY(*args
, **kwargs
)
2353 def DrawText(*args
, **kwargs
):
2354 """DrawText(String text, Point pt)"""
2355 return _gdi
.DC_DrawText(*args
, **kwargs
)
2357 def DrawRotatedTextXY(*args
, **kwargs
):
2358 """DrawRotatedTextXY(String text, int x, int y, double angle)"""
2359 return _gdi
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2361 def DrawRotatedText(*args
, **kwargs
):
2362 """DrawRotatedText(String text, Point pt, double angle)"""
2363 return _gdi
.DC_DrawRotatedText(*args
, **kwargs
)
2365 def BlitXY(*args
, **kwargs
):
2367 BlitXY(int xdest, int ydest, int width, int height, DC source,
2368 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2369 int xsrcMask=-1, int ysrcMask=-1) -> bool
2371 return _gdi
.DC_BlitXY(*args
, **kwargs
)
2373 def Blit(*args
, **kwargs
):
2375 Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2376 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
2378 return _gdi
.DC_Blit(*args
, **kwargs
)
2380 def DrawLines(*args
, **kwargs
):
2381 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2382 return _gdi
.DC_DrawLines(*args
, **kwargs
)
2384 def DrawPolygon(*args
, **kwargs
):
2386 DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2387 int fillStyle=ODDEVEN_RULE)
2389 return _gdi
.DC_DrawPolygon(*args
, **kwargs
)
2391 def DrawLabel(*args
, **kwargs
):
2393 DrawLabel(String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2396 return _gdi
.DC_DrawLabel(*args
, **kwargs
)
2398 def DrawImageLabel(*args
, **kwargs
):
2400 DrawImageLabel(String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2401 int indexAccel=-1) -> Rect
2403 return _gdi
.DC_DrawImageLabel(*args
, **kwargs
)
2405 def DrawSpline(*args
, **kwargs
):
2406 """DrawSpline(int points, Point points_array)"""
2407 return _gdi
.DC_DrawSpline(*args
, **kwargs
)
2409 def Clear(*args
, **kwargs
):
2411 return _gdi
.DC_Clear(*args
, **kwargs
)
2413 def StartDoc(*args
, **kwargs
):
2414 """StartDoc(String message) -> bool"""
2415 return _gdi
.DC_StartDoc(*args
, **kwargs
)
2417 def EndDoc(*args
, **kwargs
):
2419 return _gdi
.DC_EndDoc(*args
, **kwargs
)
2421 def StartPage(*args
, **kwargs
):
2423 return _gdi
.DC_StartPage(*args
, **kwargs
)
2425 def EndPage(*args
, **kwargs
):
2427 return _gdi
.DC_EndPage(*args
, **kwargs
)
2429 def SetFont(*args
, **kwargs
):
2430 """SetFont(Font font)"""
2431 return _gdi
.DC_SetFont(*args
, **kwargs
)
2433 def SetPen(*args
, **kwargs
):
2434 """SetPen(Pen pen)"""
2435 return _gdi
.DC_SetPen(*args
, **kwargs
)
2437 def SetBrush(*args
, **kwargs
):
2438 """SetBrush(Brush brush)"""
2439 return _gdi
.DC_SetBrush(*args
, **kwargs
)
2441 def SetBackground(*args
, **kwargs
):
2442 """SetBackground(Brush brush)"""
2443 return _gdi
.DC_SetBackground(*args
, **kwargs
)
2445 def SetBackgroundMode(*args
, **kwargs
):
2446 """SetBackgroundMode(int mode)"""
2447 return _gdi
.DC_SetBackgroundMode(*args
, **kwargs
)
2449 def SetPalette(*args
, **kwargs
):
2450 """SetPalette(Palette palette)"""
2451 return _gdi
.DC_SetPalette(*args
, **kwargs
)
2453 def SetClippingRegionXY(*args
, **kwargs
):
2454 """SetClippingRegionXY(int x, int y, int width, int height)"""
2455 return _gdi
.DC_SetClippingRegionXY(*args
, **kwargs
)
2457 def SetClippingRegion(*args
, **kwargs
):
2458 """SetClippingRegion(Point pt, Size sz)"""
2459 return _gdi
.DC_SetClippingRegion(*args
, **kwargs
)
2461 def SetClippingRect(*args
, **kwargs
):
2462 """SetClippingRect(Rect rect)"""
2463 return _gdi
.DC_SetClippingRect(*args
, **kwargs
)
2465 def SetClippingRegionAsRegion(*args
, **kwargs
):
2466 """SetClippingRegionAsRegion(Region region)"""
2467 return _gdi
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2469 def DestroyClippingRegion(*args
, **kwargs
):
2470 """DestroyClippingRegion()"""
2471 return _gdi
.DC_DestroyClippingRegion(*args
, **kwargs
)
2473 def GetClippingBox(*args
, **kwargs
):
2474 """GetClippingBox() -> (x, y, width, height)"""
2475 return _gdi
.DC_GetClippingBox(*args
, **kwargs
)
2477 def GetClippingRect(*args
, **kwargs
):
2478 """GetClippingRect() -> Rect"""
2479 return _gdi
.DC_GetClippingRect(*args
, **kwargs
)
2481 def GetCharHeight(*args
, **kwargs
):
2482 """GetCharHeight() -> int"""
2483 return _gdi
.DC_GetCharHeight(*args
, **kwargs
)
2485 def GetCharWidth(*args
, **kwargs
):
2486 """GetCharWidth() -> int"""
2487 return _gdi
.DC_GetCharWidth(*args
, **kwargs
)
2489 def GetTextExtent(*args
, **kwargs
):
2491 GetTextExtent(wxString string) -> (width, height)
2493 Get the width and height of the text using the current font.
2494 Only works for single line strings.
2496 return _gdi
.DC_GetTextExtent(*args
, **kwargs
)
2498 def GetFullTextExtent(*args
, **kwargs
):
2500 GetFullTextExtent(wxString string, Font font=None) ->
2501 (width, height, descent, externalLeading)
2503 Get the width, height, decent and leading of the text using the current or specified font.
2504 Only works for single line strings.
2506 return _gdi
.DC_GetFullTextExtent(*args
, **kwargs
)
2508 def GetMultiLineTextExtent(*args
, **kwargs
):
2510 GetMultiLineTextExtent(wxString string, Font font=None) ->
2511 (width, height, descent, externalLeading)
2513 Get the width, height, decent and leading of the text using the current or specified font.
2514 Works for single as well as multi-line strings.
2516 return _gdi
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2518 def GetPartialTextExtents(*args
, **kwargs
):
2519 """GetPartialTextExtents(String text) -> wxArrayInt"""
2520 return _gdi
.DC_GetPartialTextExtents(*args
, **kwargs
)
2522 def GetSize(*args
, **kwargs
):
2526 Get the DC size in device units.
2528 return _gdi
.DC_GetSize(*args
, **kwargs
)
2530 def GetSizeTuple(*args
, **kwargs
):
2532 GetSizeTuple() -> (width, height)
2534 Get the DC size in device units.
2536 return _gdi
.DC_GetSizeTuple(*args
, **kwargs
)
2538 def GetSizeMM(*args
, **kwargs
):
2542 Get the DC size in milimeters.
2544 return _gdi
.DC_GetSizeMM(*args
, **kwargs
)
2546 def GetSizeMMTuple(*args
, **kwargs
):
2548 GetSizeMMTuple() -> (width, height)
2550 Get the DC size in milimeters.
2552 return _gdi
.DC_GetSizeMMTuple(*args
, **kwargs
)
2554 def DeviceToLogicalX(*args
, **kwargs
):
2555 """DeviceToLogicalX(int x) -> int"""
2556 return _gdi
.DC_DeviceToLogicalX(*args
, **kwargs
)
2558 def DeviceToLogicalY(*args
, **kwargs
):
2559 """DeviceToLogicalY(int y) -> int"""
2560 return _gdi
.DC_DeviceToLogicalY(*args
, **kwargs
)
2562 def DeviceToLogicalXRel(*args
, **kwargs
):
2563 """DeviceToLogicalXRel(int x) -> int"""
2564 return _gdi
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2566 def DeviceToLogicalYRel(*args
, **kwargs
):
2567 """DeviceToLogicalYRel(int y) -> int"""
2568 return _gdi
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2570 def LogicalToDeviceX(*args
, **kwargs
):
2571 """LogicalToDeviceX(int x) -> int"""
2572 return _gdi
.DC_LogicalToDeviceX(*args
, **kwargs
)
2574 def LogicalToDeviceY(*args
, **kwargs
):
2575 """LogicalToDeviceY(int y) -> int"""
2576 return _gdi
.DC_LogicalToDeviceY(*args
, **kwargs
)
2578 def LogicalToDeviceXRel(*args
, **kwargs
):
2579 """LogicalToDeviceXRel(int x) -> int"""
2580 return _gdi
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2582 def LogicalToDeviceYRel(*args
, **kwargs
):
2583 """LogicalToDeviceYRel(int y) -> int"""
2584 return _gdi
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2586 def CanDrawBitmap(*args
, **kwargs
):
2587 """CanDrawBitmap() -> bool"""
2588 return _gdi
.DC_CanDrawBitmap(*args
, **kwargs
)
2590 def CanGetTextExtent(*args
, **kwargs
):
2591 """CanGetTextExtent() -> bool"""
2592 return _gdi
.DC_CanGetTextExtent(*args
, **kwargs
)
2594 def GetDepth(*args
, **kwargs
):
2595 """GetDepth() -> int"""
2596 return _gdi
.DC_GetDepth(*args
, **kwargs
)
2598 def GetPPI(*args
, **kwargs
):
2599 """GetPPI() -> Size"""
2600 return _gdi
.DC_GetPPI(*args
, **kwargs
)
2602 def Ok(*args
, **kwargs
):
2604 return _gdi
.DC_Ok(*args
, **kwargs
)
2606 def GetBackgroundMode(*args
, **kwargs
):
2607 """GetBackgroundMode() -> int"""
2608 return _gdi
.DC_GetBackgroundMode(*args
, **kwargs
)
2610 def GetBackground(*args
, **kwargs
):
2611 """GetBackground() -> Brush"""
2612 return _gdi
.DC_GetBackground(*args
, **kwargs
)
2614 def GetBrush(*args
, **kwargs
):
2615 """GetBrush() -> Brush"""
2616 return _gdi
.DC_GetBrush(*args
, **kwargs
)
2618 def GetFont(*args
, **kwargs
):
2619 """GetFont() -> Font"""
2620 return _gdi
.DC_GetFont(*args
, **kwargs
)
2622 def GetPen(*args
, **kwargs
):
2623 """GetPen() -> Pen"""
2624 return _gdi
.DC_GetPen(*args
, **kwargs
)
2626 def GetTextBackground(*args
, **kwargs
):
2627 """GetTextBackground() -> Colour"""
2628 return _gdi
.DC_GetTextBackground(*args
, **kwargs
)
2630 def GetTextForeground(*args
, **kwargs
):
2631 """GetTextForeground() -> Colour"""
2632 return _gdi
.DC_GetTextForeground(*args
, **kwargs
)
2634 def SetTextForeground(*args
, **kwargs
):
2635 """SetTextForeground(Colour colour)"""
2636 return _gdi
.DC_SetTextForeground(*args
, **kwargs
)
2638 def SetTextBackground(*args
, **kwargs
):
2639 """SetTextBackground(Colour colour)"""
2640 return _gdi
.DC_SetTextBackground(*args
, **kwargs
)
2642 def GetMapMode(*args
, **kwargs
):
2643 """GetMapMode() -> int"""
2644 return _gdi
.DC_GetMapMode(*args
, **kwargs
)
2646 def SetMapMode(*args
, **kwargs
):
2647 """SetMapMode(int mode)"""
2648 return _gdi
.DC_SetMapMode(*args
, **kwargs
)
2650 def GetUserScale(*args
, **kwargs
):
2651 """GetUserScale() -> (xScale, yScale)"""
2652 return _gdi
.DC_GetUserScale(*args
, **kwargs
)
2654 def SetUserScale(*args
, **kwargs
):
2655 """SetUserScale(double x, double y)"""
2656 return _gdi
.DC_SetUserScale(*args
, **kwargs
)
2658 def GetLogicalScale(*args
, **kwargs
):
2659 """GetLogicalScale() -> (xScale, yScale)"""
2660 return _gdi
.DC_GetLogicalScale(*args
, **kwargs
)
2662 def SetLogicalScale(*args
, **kwargs
):
2663 """SetLogicalScale(double x, double y)"""
2664 return _gdi
.DC_SetLogicalScale(*args
, **kwargs
)
2666 def GetLogicalOrigin(*args
, **kwargs
):
2667 """GetLogicalOrigin() -> Point"""
2668 return _gdi
.DC_GetLogicalOrigin(*args
, **kwargs
)
2670 def GetLogicalOriginTuple(*args
, **kwargs
):
2671 """GetLogicalOriginTuple() -> (x,y)"""
2672 return _gdi
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2674 def SetLogicalOrigin(*args
, **kwargs
):
2675 """SetLogicalOrigin(int x, int y)"""
2676 return _gdi
.DC_SetLogicalOrigin(*args
, **kwargs
)
2678 def GetDeviceOrigin(*args
, **kwargs
):
2679 """GetDeviceOrigin() -> Point"""
2680 return _gdi
.DC_GetDeviceOrigin(*args
, **kwargs
)
2682 def GetDeviceOriginTuple(*args
, **kwargs
):
2683 """GetDeviceOriginTuple() -> (x,y)"""
2684 return _gdi
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2686 def SetDeviceOrigin(*args
, **kwargs
):
2687 """SetDeviceOrigin(int x, int y)"""
2688 return _gdi
.DC_SetDeviceOrigin(*args
, **kwargs
)
2690 def SetAxisOrientation(*args
, **kwargs
):
2691 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2692 return _gdi
.DC_SetAxisOrientation(*args
, **kwargs
)
2694 def GetLogicalFunction(*args
, **kwargs
):
2695 """GetLogicalFunction() -> int"""
2696 return _gdi
.DC_GetLogicalFunction(*args
, **kwargs
)
2698 def SetLogicalFunction(*args
, **kwargs
):
2699 """SetLogicalFunction(int function)"""
2700 return _gdi
.DC_SetLogicalFunction(*args
, **kwargs
)
2702 def SetOptimization(*args
, **kwargs
):
2703 """SetOptimization(bool opt)"""
2704 return _gdi
.DC_SetOptimization(*args
, **kwargs
)
2706 def GetOptimization(*args
, **kwargs
):
2707 """GetOptimization() -> bool"""
2708 return _gdi
.DC_GetOptimization(*args
, **kwargs
)
2710 def CalcBoundingBox(*args
, **kwargs
):
2711 """CalcBoundingBox(int x, int y)"""
2712 return _gdi
.DC_CalcBoundingBox(*args
, **kwargs
)
2714 def ResetBoundingBox(*args
, **kwargs
):
2715 """ResetBoundingBox()"""
2716 return _gdi
.DC_ResetBoundingBox(*args
, **kwargs
)
2718 def MinX(*args
, **kwargs
):
2720 return _gdi
.DC_MinX(*args
, **kwargs
)
2722 def MaxX(*args
, **kwargs
):
2724 return _gdi
.DC_MaxX(*args
, **kwargs
)
2726 def MinY(*args
, **kwargs
):
2728 return _gdi
.DC_MinY(*args
, **kwargs
)
2730 def MaxY(*args
, **kwargs
):
2732 return _gdi
.DC_MaxY(*args
, **kwargs
)
2734 def GetBoundingBox(*args
, **kwargs
):
2735 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2736 return _gdi
.DC_GetBoundingBox(*args
, **kwargs
)
2738 def __nonzero__(self
): return self
.Ok()
2739 def _DrawPointList(*args
, **kwargs
):
2740 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2741 return _gdi
.DC__DrawPointList(*args
, **kwargs
)
2743 def _DrawLineList(*args
, **kwargs
):
2744 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2745 return _gdi
.DC__DrawLineList(*args
, **kwargs
)
2747 def _DrawRectangleList(*args
, **kwargs
):
2748 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2749 return _gdi
.DC__DrawRectangleList(*args
, **kwargs
)
2751 def _DrawEllipseList(*args
, **kwargs
):
2752 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2753 return _gdi
.DC__DrawEllipseList(*args
, **kwargs
)
2755 def _DrawPolygonList(*args
, **kwargs
):
2756 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2757 return _gdi
.DC__DrawPolygonList(*args
, **kwargs
)
2759 def _DrawTextList(*args
, **kwargs
):
2761 _DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2762 PyObject backgroundList) -> PyObject
2764 return _gdi
.DC__DrawTextList(*args
, **kwargs
)
2766 def DrawPointList(self
, points
, pens
=None):
2769 elif isinstance(pens
, wx
.Pen
):
2771 elif len(pens
) != len(points
):
2772 raise ValueError('points and pens must have same length')
2773 return self
._DrawPointList
(points
, pens
, [])
2776 def DrawLineList(self
, lines
, pens
=None):
2779 elif isinstance(pens
, wx
.Pen
):
2781 elif len(pens
) != len(lines
):
2782 raise ValueError('lines and pens must have same length')
2783 return self
._DrawLineList
(lines
, pens
, [])
2786 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2789 elif isinstance(pens
, wx
.Pen
):
2791 elif len(pens
) != len(rectangles
):
2792 raise ValueError('rectangles and pens must have same length')
2795 elif isinstance(brushes
, wx
.Brush
):
2797 elif len(brushes
) != len(rectangles
):
2798 raise ValueError('rectangles and brushes must have same length')
2799 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2802 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2805 elif isinstance(pens
, wx
.Pen
):
2807 elif len(pens
) != len(ellipses
):
2808 raise ValueError('ellipses and pens must have same length')
2811 elif isinstance(brushes
, wx
.Brush
):
2813 elif len(brushes
) != len(ellipses
):
2814 raise ValueError('ellipses and brushes must have same length')
2815 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2818 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2819 ## Note: This does not currently support fill style or offset
2820 ## you can always use the non-List version if need be.
2823 elif isinstance(pens
, wx
.Pen
):
2825 elif len(pens
) != len(polygons
):
2826 raise ValueError('polygons and pens must have same length')
2829 elif isinstance(brushes
, wx
.Brush
):
2831 elif len(brushes
) != len(polygons
):
2832 raise ValueError('polygons and brushes must have same length')
2833 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2836 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2837 ## NOTE: this does not currently support changing the font
2838 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
2839 ## If you want backgounds to do anything.
2840 if type(textList
) == type(''):
2841 textList
= [textList
]
2842 elif len(textList
) != len(coords
):
2843 raise ValueError('textlist and coords must have same length')
2844 if foregrounds
is None:
2846 elif isinstance(foregrounds
, wx
.Colour
):
2847 foregrounds
= [foregrounds
]
2848 elif len(foregrounds
) != len(coords
):
2849 raise ValueError('foregrounds and coords must have same length')
2850 if backgrounds
is None:
2852 elif isinstance(backgrounds
, wx
.Colour
):
2853 backgrounds
= [backgrounds
]
2854 elif len(backgrounds
) != len(coords
):
2855 raise ValueError('backgrounds and coords must have same length')
2856 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2860 def __init__(self
, this
):
2862 if not hasattr(self
,"thisown"): self
.thisown
= 0
2864 _gdi
.DC_swigregister(DCPtr
)
2866 #---------------------------------------------------------------------------
2870 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2871 def __init__(self
, *args
, **kwargs
):
2872 """__init__() -> MemoryDC"""
2873 newobj
= _gdi
.new_MemoryDC(*args
, **kwargs
)
2874 self
.this
= newobj
.this
2877 def SelectObject(*args
, **kwargs
):
2878 """SelectObject(Bitmap bitmap)"""
2879 return _gdi
.MemoryDC_SelectObject(*args
, **kwargs
)
2882 class MemoryDCPtr(MemoryDC
):
2883 def __init__(self
, this
):
2885 if not hasattr(self
,"thisown"): self
.thisown
= 0
2886 self
.__class
__ = MemoryDC
2887 _gdi
.MemoryDC_swigregister(MemoryDCPtr
)
2889 def MemoryDCFromDC(*args
, **kwargs
):
2890 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
2891 val
= _gdi
.new_MemoryDCFromDC(*args
, **kwargs
)
2895 #---------------------------------------------------------------------------
2897 BUFFER_DC_OVERWRITE_BG
= _gdi
.BUFFER_DC_OVERWRITE_BG
2898 BUFFER_DC_PRESERVE_BG
= _gdi
.BUFFER_DC_PRESERVE_BG
2899 BUFFER_DC_DEFAULT
= _gdi
.BUFFER_DC_DEFAULT
2900 class BufferedDC(MemoryDC
):
2902 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2903 def __init__(self
, *args
):
2905 __init__(DC dc, Bitmap buffer) -> BufferedDC
2906 __init__(DC dc, Size area, int flags=BUFFER_DC_DEFAULT) -> BufferedDC
2908 newobj
= _gdi
.new_BufferedDC(*args
)
2909 self
.this
= newobj
.this
2912 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2914 def UnMask(*args
, **kwargs
):
2916 return _gdi
.BufferedDC_UnMask(*args
, **kwargs
)
2919 class BufferedDCPtr(BufferedDC
):
2920 def __init__(self
, this
):
2922 if not hasattr(self
,"thisown"): self
.thisown
= 0
2923 self
.__class
__ = BufferedDC
2924 _gdi
.BufferedDC_swigregister(BufferedDCPtr
)
2926 def BufferedDCInternalBuffer(*args
):
2927 """BufferedDCInternalBuffer(DC dc, Size area, int flags=BUFFER_DC_DEFAULT) -> BufferedDC"""
2928 val
= _gdi
.new_BufferedDCInternalBuffer(*args
)
2930 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2933 class BufferedPaintDC(BufferedDC
):
2935 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2936 def __init__(self
, *args
):
2938 __init__(Window window, Bitmap buffer) -> BufferedPaintDC
2939 __init__(Window window, int flags=BUFFER_DC_DEFAULT) -> BufferedPaintDC
2941 newobj
= _gdi
.new_BufferedPaintDC(*args
)
2942 self
.this
= newobj
.this
2946 class BufferedPaintDCPtr(BufferedPaintDC
):
2947 def __init__(self
, this
):
2949 if not hasattr(self
,"thisown"): self
.thisown
= 0
2950 self
.__class
__ = BufferedPaintDC
2951 _gdi
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
2953 #---------------------------------------------------------------------------
2957 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2958 def __init__(self
, *args
, **kwargs
):
2959 """__init__() -> ScreenDC"""
2960 newobj
= _gdi
.new_ScreenDC(*args
, **kwargs
)
2961 self
.this
= newobj
.this
2964 def StartDrawingOnTopWin(*args
, **kwargs
):
2965 """StartDrawingOnTopWin(Window window) -> bool"""
2966 return _gdi
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
2968 def StartDrawingOnTop(*args
, **kwargs
):
2969 """StartDrawingOnTop(Rect rect=None) -> bool"""
2970 return _gdi
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
2972 def EndDrawingOnTop(*args
, **kwargs
):
2973 """EndDrawingOnTop() -> bool"""
2974 return _gdi
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
2977 class ScreenDCPtr(ScreenDC
):
2978 def __init__(self
, this
):
2980 if not hasattr(self
,"thisown"): self
.thisown
= 0
2981 self
.__class
__ = ScreenDC
2982 _gdi
.ScreenDC_swigregister(ScreenDCPtr
)
2984 #---------------------------------------------------------------------------
2988 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2989 def __init__(self
, *args
, **kwargs
):
2990 """__init__(Window win) -> ClientDC"""
2991 newobj
= _gdi
.new_ClientDC(*args
, **kwargs
)
2992 self
.this
= newobj
.this
2996 class ClientDCPtr(ClientDC
):
2997 def __init__(self
, this
):
2999 if not hasattr(self
,"thisown"): self
.thisown
= 0
3000 self
.__class
__ = ClientDC
3001 _gdi
.ClientDC_swigregister(ClientDCPtr
)
3003 #---------------------------------------------------------------------------
3007 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3008 def __init__(self
, *args
, **kwargs
):
3009 """__init__(Window win) -> PaintDC"""
3010 newobj
= _gdi
.new_PaintDC(*args
, **kwargs
)
3011 self
.this
= newobj
.this
3015 class PaintDCPtr(PaintDC
):
3016 def __init__(self
, this
):
3018 if not hasattr(self
,"thisown"): self
.thisown
= 0
3019 self
.__class
__ = PaintDC
3020 _gdi
.PaintDC_swigregister(PaintDCPtr
)
3022 #---------------------------------------------------------------------------
3026 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3027 def __init__(self
, *args
, **kwargs
):
3028 """__init__(Window win) -> WindowDC"""
3029 newobj
= _gdi
.new_WindowDC(*args
, **kwargs
)
3030 self
.this
= newobj
.this
3034 class WindowDCPtr(WindowDC
):
3035 def __init__(self
, this
):
3037 if not hasattr(self
,"thisown"): self
.thisown
= 0
3038 self
.__class
__ = WindowDC
3039 _gdi
.WindowDC_swigregister(WindowDCPtr
)
3041 #---------------------------------------------------------------------------
3045 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3046 def __init__(self
, *args
, **kwargs
):
3047 """__init__(DC dc, bool mirror) -> MirrorDC"""
3048 newobj
= _gdi
.new_MirrorDC(*args
, **kwargs
)
3049 self
.this
= newobj
.this
3053 class MirrorDCPtr(MirrorDC
):
3054 def __init__(self
, this
):
3056 if not hasattr(self
,"thisown"): self
.thisown
= 0
3057 self
.__class
__ = MirrorDC
3058 _gdi
.MirrorDC_swigregister(MirrorDCPtr
)
3060 #---------------------------------------------------------------------------
3062 class PostScriptDC(DC
):
3064 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3065 def __init__(self
, *args
, **kwargs
):
3066 """__init__(wxPrintData printData) -> PostScriptDC"""
3067 newobj
= _gdi
.new_PostScriptDC(*args
, **kwargs
)
3068 self
.this
= newobj
.this
3071 def GetPrintData(*args
, **kwargs
):
3072 """GetPrintData() -> wxPrintData"""
3073 return _gdi
.PostScriptDC_GetPrintData(*args
, **kwargs
)
3075 def SetPrintData(*args
, **kwargs
):
3076 """SetPrintData(wxPrintData data)"""
3077 return _gdi
.PostScriptDC_SetPrintData(*args
, **kwargs
)
3079 def SetResolution(*args
, **kwargs
):
3080 """SetResolution(int ppi)"""
3081 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
3083 SetResolution
= staticmethod(SetResolution
)
3084 def GetResolution(*args
, **kwargs
):
3085 """GetResolution() -> int"""
3086 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
3088 GetResolution
= staticmethod(GetResolution
)
3090 class PostScriptDCPtr(PostScriptDC
):
3091 def __init__(self
, this
):
3093 if not hasattr(self
,"thisown"): self
.thisown
= 0
3094 self
.__class
__ = PostScriptDC
3095 _gdi
.PostScriptDC_swigregister(PostScriptDCPtr
)
3097 def PostScriptDC_SetResolution(*args
, **kwargs
):
3098 """PostScriptDC_SetResolution(int ppi)"""
3099 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
3101 def PostScriptDC_GetResolution(*args
, **kwargs
):
3102 """PostScriptDC_GetResolution() -> int"""
3103 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
3105 #---------------------------------------------------------------------------
3107 class MetaFile(core
.Object
):
3109 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3110 def __init__(self
, *args
, **kwargs
):
3111 """__init__(String filename=EmptyString) -> MetaFile"""
3112 newobj
= _gdi
.new_MetaFile(*args
, **kwargs
)
3113 self
.this
= newobj
.this
3116 def __del__(self
, destroy
=_gdi
.delete_MetaFile
):
3119 if self
.thisown
: destroy(self
)
3122 def Ok(*args
, **kwargs
):
3124 return _gdi
.MetaFile_Ok(*args
, **kwargs
)
3126 def SetClipboard(*args
, **kwargs
):
3127 """SetClipboard(int width=0, int height=0) -> bool"""
3128 return _gdi
.MetaFile_SetClipboard(*args
, **kwargs
)
3130 def GetSize(*args
, **kwargs
):
3131 """GetSize() -> Size"""
3132 return _gdi
.MetaFile_GetSize(*args
, **kwargs
)
3134 def GetWidth(*args
, **kwargs
):
3135 """GetWidth() -> int"""
3136 return _gdi
.MetaFile_GetWidth(*args
, **kwargs
)
3138 def GetHeight(*args
, **kwargs
):
3139 """GetHeight() -> int"""
3140 return _gdi
.MetaFile_GetHeight(*args
, **kwargs
)
3142 def GetFileName(*args
, **kwargs
):
3143 """GetFileName() -> String"""
3144 return _gdi
.MetaFile_GetFileName(*args
, **kwargs
)
3146 def __nonzero__(self
): return self
.Ok()
3148 class MetaFilePtr(MetaFile
):
3149 def __init__(self
, this
):
3151 if not hasattr(self
,"thisown"): self
.thisown
= 0
3152 self
.__class
__ = MetaFile
3153 _gdi
.MetaFile_swigregister(MetaFilePtr
)
3155 class MetaFileDC(DC
):
3157 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3158 def __init__(self
, *args
, **kwargs
):
3160 __init__(String filename=EmptyString, int width=0, int height=0,
3161 String description=EmptyString) -> MetaFileDC
3163 newobj
= _gdi
.new_MetaFileDC(*args
, **kwargs
)
3164 self
.this
= newobj
.this
3167 def Close(*args
, **kwargs
):
3168 """Close() -> MetaFile"""
3169 return _gdi
.MetaFileDC_Close(*args
, **kwargs
)
3172 class MetaFileDCPtr(MetaFileDC
):
3173 def __init__(self
, this
):
3175 if not hasattr(self
,"thisown"): self
.thisown
= 0
3176 self
.__class
__ = MetaFileDC
3177 _gdi
.MetaFileDC_swigregister(MetaFileDCPtr
)
3179 class PrinterDC(DC
):
3181 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3182 def __init__(self
, *args
, **kwargs
):
3183 """__init__(wxPrintData printData) -> PrinterDC"""
3184 newobj
= _gdi
.new_PrinterDC(*args
, **kwargs
)
3185 self
.this
= newobj
.this
3189 class PrinterDCPtr(PrinterDC
):
3190 def __init__(self
, this
):
3192 if not hasattr(self
,"thisown"): self
.thisown
= 0
3193 self
.__class
__ = PrinterDC
3194 _gdi
.PrinterDC_swigregister(PrinterDCPtr
)
3197 """DC class that has methods with 2.4 compatible parameters."""
3198 FloodFill
= DC
.FloodFillXY
3199 GetPixel
= DC
.GetPixelXY
3200 DrawLine
= DC
.DrawLineXY
3201 CrossHair
= DC
.CrossHairXY
3202 DrawArc
= DC
.DrawArcXY
3203 DrawCheckMark
= DC
.DrawCheckMarkXY
3204 DrawEllipticArc
= DC
.DrawEllipticArcXY
3205 DrawPoint
= DC
.DrawPointXY
3206 DrawRectangle
= DC
.DrawRectangleXY
3207 DrawRoundedRectangle
= DC
.DrawRoundedRectangleXY
3208 DrawCircle
= DC
.DrawCircleXY
3209 DrawEllipse
= DC
.DrawEllipseXY
3210 DrawIcon
= DC
.DrawIconXY
3211 DrawBitmap
= DC
.DrawBitmapXY
3212 DrawText
= DC
.DrawTextXY
3213 DrawRotatedText
= DC
.DrawRotatedTextXY
3216 class MemoryDC_old(MemoryDC
):
3217 """DC class that has methods with 2.4 compatible parameters."""
3218 FloodFill
= MemoryDC
.FloodFillXY
3219 GetPixel
= MemoryDC
.GetPixelXY
3220 DrawLine
= MemoryDC
.DrawLineXY
3221 CrossHair
= MemoryDC
.CrossHairXY
3222 DrawArc
= MemoryDC
.DrawArcXY
3223 DrawCheckMark
= MemoryDC
.DrawCheckMarkXY
3224 DrawEllipticArc
= MemoryDC
.DrawEllipticArcXY
3225 DrawPoint
= MemoryDC
.DrawPointXY
3226 DrawRectangle
= MemoryDC
.DrawRectangleXY
3227 DrawRoundedRectangle
= MemoryDC
.DrawRoundedRectangleXY
3228 DrawCircle
= MemoryDC
.DrawCircleXY
3229 DrawEllipse
= MemoryDC
.DrawEllipseXY
3230 DrawIcon
= MemoryDC
.DrawIconXY
3231 DrawBitmap
= MemoryDC
.DrawBitmapXY
3232 DrawText
= MemoryDC
.DrawTextXY
3233 DrawRotatedText
= MemoryDC
.DrawRotatedTextXY
3234 Blit
= MemoryDC
.BlitXY
3236 class BufferedDC_old(BufferedDC
):
3237 """DC class that has methods with 2.4 compatible parameters."""
3238 FloodFill
= BufferedDC
.FloodFillXY
3239 GetPixel
= BufferedDC
.GetPixelXY
3240 DrawLine
= BufferedDC
.DrawLineXY
3241 CrossHair
= BufferedDC
.CrossHairXY
3242 DrawArc
= BufferedDC
.DrawArcXY
3243 DrawCheckMark
= BufferedDC
.DrawCheckMarkXY
3244 DrawEllipticArc
= BufferedDC
.DrawEllipticArcXY
3245 DrawPoint
= BufferedDC
.DrawPointXY
3246 DrawRectangle
= BufferedDC
.DrawRectangleXY
3247 DrawRoundedRectangle
= BufferedDC
.DrawRoundedRectangleXY
3248 DrawCircle
= BufferedDC
.DrawCircleXY
3249 DrawEllipse
= BufferedDC
.DrawEllipseXY
3250 DrawIcon
= BufferedDC
.DrawIconXY
3251 DrawBitmap
= BufferedDC
.DrawBitmapXY
3252 DrawText
= BufferedDC
.DrawTextXY
3253 DrawRotatedText
= BufferedDC
.DrawRotatedTextXY
3254 Blit
= BufferedDC
.BlitXY
3256 class BufferedPaintDC_old(BufferedPaintDC
):
3257 """DC class that has methods with 2.4 compatible parameters."""
3258 FloodFill
= BufferedPaintDC
.FloodFillXY
3259 GetPixel
= BufferedPaintDC
.GetPixelXY
3260 DrawLine
= BufferedPaintDC
.DrawLineXY
3261 CrossHair
= BufferedPaintDC
.CrossHairXY
3262 DrawArc
= BufferedPaintDC
.DrawArcXY
3263 DrawCheckMark
= BufferedPaintDC
.DrawCheckMarkXY
3264 DrawEllipticArc
= BufferedPaintDC
.DrawEllipticArcXY
3265 DrawPoint
= BufferedPaintDC
.DrawPointXY
3266 DrawRectangle
= BufferedPaintDC
.DrawRectangleXY
3267 DrawRoundedRectangle
= BufferedPaintDC
.DrawRoundedRectangleXY
3268 DrawCircle
= BufferedPaintDC
.DrawCircleXY
3269 DrawEllipse
= BufferedPaintDC
.DrawEllipseXY
3270 DrawIcon
= BufferedPaintDC
.DrawIconXY
3271 DrawBitmap
= BufferedPaintDC
.DrawBitmapXY
3272 DrawText
= BufferedPaintDC
.DrawTextXY
3273 DrawRotatedText
= BufferedPaintDC
.DrawRotatedTextXY
3274 Blit
= BufferedPaintDC
.BlitXY
3276 class ScreenDC_old(ScreenDC
):
3277 """DC class that has methods with 2.4 compatible parameters."""
3278 FloodFill
= ScreenDC
.FloodFillXY
3279 GetPixel
= ScreenDC
.GetPixelXY
3280 DrawLine
= ScreenDC
.DrawLineXY
3281 CrossHair
= ScreenDC
.CrossHairXY
3282 DrawArc
= ScreenDC
.DrawArcXY
3283 DrawCheckMark
= ScreenDC
.DrawCheckMarkXY
3284 DrawEllipticArc
= ScreenDC
.DrawEllipticArcXY
3285 DrawPoint
= ScreenDC
.DrawPointXY
3286 DrawRectangle
= ScreenDC
.DrawRectangleXY
3287 DrawRoundedRectangle
= ScreenDC
.DrawRoundedRectangleXY
3288 DrawCircle
= ScreenDC
.DrawCircleXY
3289 DrawEllipse
= ScreenDC
.DrawEllipseXY
3290 DrawIcon
= ScreenDC
.DrawIconXY
3291 DrawBitmap
= ScreenDC
.DrawBitmapXY
3292 DrawText
= ScreenDC
.DrawTextXY
3293 DrawRotatedText
= ScreenDC
.DrawRotatedTextXY
3294 Blit
= ScreenDC
.BlitXY
3296 class ClientDC_old(ClientDC
):
3297 """DC class that has methods with 2.4 compatible parameters."""
3298 FloodFill
= ClientDC
.FloodFillXY
3299 GetPixel
= ClientDC
.GetPixelXY
3300 DrawLine
= ClientDC
.DrawLineXY
3301 CrossHair
= ClientDC
.CrossHairXY
3302 DrawArc
= ClientDC
.DrawArcXY
3303 DrawCheckMark
= ClientDC
.DrawCheckMarkXY
3304 DrawEllipticArc
= ClientDC
.DrawEllipticArcXY
3305 DrawPoint
= ClientDC
.DrawPointXY
3306 DrawRectangle
= ClientDC
.DrawRectangleXY
3307 DrawRoundedRectangle
= ClientDC
.DrawRoundedRectangleXY
3308 DrawCircle
= ClientDC
.DrawCircleXY
3309 DrawEllipse
= ClientDC
.DrawEllipseXY
3310 DrawIcon
= ClientDC
.DrawIconXY
3311 DrawBitmap
= ClientDC
.DrawBitmapXY
3312 DrawText
= ClientDC
.DrawTextXY
3313 DrawRotatedText
= ClientDC
.DrawRotatedTextXY
3314 Blit
= ClientDC
.BlitXY
3316 class PaintDC_old(PaintDC
):
3317 """DC class that has methods with 2.4 compatible parameters."""
3318 FloodFill
= PaintDC
.FloodFillXY
3319 GetPixel
= PaintDC
.GetPixelXY
3320 DrawLine
= PaintDC
.DrawLineXY
3321 CrossHair
= PaintDC
.CrossHairXY
3322 DrawArc
= PaintDC
.DrawArcXY
3323 DrawCheckMark
= PaintDC
.DrawCheckMarkXY
3324 DrawEllipticArc
= PaintDC
.DrawEllipticArcXY
3325 DrawPoint
= PaintDC
.DrawPointXY
3326 DrawRectangle
= PaintDC
.DrawRectangleXY
3327 DrawRoundedRectangle
= PaintDC
.DrawRoundedRectangleXY
3328 DrawCircle
= PaintDC
.DrawCircleXY
3329 DrawEllipse
= PaintDC
.DrawEllipseXY
3330 DrawIcon
= PaintDC
.DrawIconXY
3331 DrawBitmap
= PaintDC
.DrawBitmapXY
3332 DrawText
= PaintDC
.DrawTextXY
3333 DrawRotatedText
= PaintDC
.DrawRotatedTextXY
3334 Blit
= PaintDC
.BlitXY
3336 class WindowDC_old(WindowDC
):
3337 """DC class that has methods with 2.4 compatible parameters."""
3338 FloodFill
= WindowDC
.FloodFillXY
3339 GetPixel
= WindowDC
.GetPixelXY
3340 DrawLine
= WindowDC
.DrawLineXY
3341 CrossHair
= WindowDC
.CrossHairXY
3342 DrawArc
= WindowDC
.DrawArcXY
3343 DrawCheckMark
= WindowDC
.DrawCheckMarkXY
3344 DrawEllipticArc
= WindowDC
.DrawEllipticArcXY
3345 DrawPoint
= WindowDC
.DrawPointXY
3346 DrawRectangle
= WindowDC
.DrawRectangleXY
3347 DrawRoundedRectangle
= WindowDC
.DrawRoundedRectangleXY
3348 DrawCircle
= WindowDC
.DrawCircleXY
3349 DrawEllipse
= WindowDC
.DrawEllipseXY
3350 DrawIcon
= WindowDC
.DrawIconXY
3351 DrawBitmap
= WindowDC
.DrawBitmapXY
3352 DrawText
= WindowDC
.DrawTextXY
3353 DrawRotatedText
= WindowDC
.DrawRotatedTextXY
3354 Blit
= WindowDC
.BlitXY
3356 class MirrorDC_old(MirrorDC
):
3357 """DC class that has methods with 2.4 compatible parameters."""
3358 FloodFill
= MirrorDC
.FloodFillXY
3359 GetPixel
= MirrorDC
.GetPixelXY
3360 DrawLine
= MirrorDC
.DrawLineXY
3361 CrossHair
= MirrorDC
.CrossHairXY
3362 DrawArc
= MirrorDC
.DrawArcXY
3363 DrawCheckMark
= MirrorDC
.DrawCheckMarkXY
3364 DrawEllipticArc
= MirrorDC
.DrawEllipticArcXY
3365 DrawPoint
= MirrorDC
.DrawPointXY
3366 DrawRectangle
= MirrorDC
.DrawRectangleXY
3367 DrawRoundedRectangle
= MirrorDC
.DrawRoundedRectangleXY
3368 DrawCircle
= MirrorDC
.DrawCircleXY
3369 DrawEllipse
= MirrorDC
.DrawEllipseXY
3370 DrawIcon
= MirrorDC
.DrawIconXY
3371 DrawBitmap
= MirrorDC
.DrawBitmapXY
3372 DrawText
= MirrorDC
.DrawTextXY
3373 DrawRotatedText
= MirrorDC
.DrawRotatedTextXY
3374 Blit
= MirrorDC
.BlitXY
3376 class PostScriptDC_old(PostScriptDC
):
3377 """DC class that has methods with 2.4 compatible parameters."""
3378 FloodFill
= PostScriptDC
.FloodFillXY
3379 GetPixel
= PostScriptDC
.GetPixelXY
3380 DrawLine
= PostScriptDC
.DrawLineXY
3381 CrossHair
= PostScriptDC
.CrossHairXY
3382 DrawArc
= PostScriptDC
.DrawArcXY
3383 DrawCheckMark
= PostScriptDC
.DrawCheckMarkXY
3384 DrawEllipticArc
= PostScriptDC
.DrawEllipticArcXY
3385 DrawPoint
= PostScriptDC
.DrawPointXY
3386 DrawRectangle
= PostScriptDC
.DrawRectangleXY
3387 DrawRoundedRectangle
= PostScriptDC
.DrawRoundedRectangleXY
3388 DrawCircle
= PostScriptDC
.DrawCircleXY
3389 DrawEllipse
= PostScriptDC
.DrawEllipseXY
3390 DrawIcon
= PostScriptDC
.DrawIconXY
3391 DrawBitmap
= PostScriptDC
.DrawBitmapXY
3392 DrawText
= PostScriptDC
.DrawTextXY
3393 DrawRotatedText
= PostScriptDC
.DrawRotatedTextXY
3394 Blit
= PostScriptDC
.BlitXY
3396 class MetaFileDC_old(MetaFileDC
):
3397 """DC class that has methods with 2.4 compatible parameters."""
3398 FloodFill
= MetaFileDC
.FloodFillXY
3399 GetPixel
= MetaFileDC
.GetPixelXY
3400 DrawLine
= MetaFileDC
.DrawLineXY
3401 CrossHair
= MetaFileDC
.CrossHairXY
3402 DrawArc
= MetaFileDC
.DrawArcXY
3403 DrawCheckMark
= MetaFileDC
.DrawCheckMarkXY
3404 DrawEllipticArc
= MetaFileDC
.DrawEllipticArcXY
3405 DrawPoint
= MetaFileDC
.DrawPointXY
3406 DrawRectangle
= MetaFileDC
.DrawRectangleXY
3407 DrawRoundedRectangle
= MetaFileDC
.DrawRoundedRectangleXY
3408 DrawCircle
= MetaFileDC
.DrawCircleXY
3409 DrawEllipse
= MetaFileDC
.DrawEllipseXY
3410 DrawIcon
= MetaFileDC
.DrawIconXY
3411 DrawBitmap
= MetaFileDC
.DrawBitmapXY
3412 DrawText
= MetaFileDC
.DrawTextXY
3413 DrawRotatedText
= MetaFileDC
.DrawRotatedTextXY
3414 Blit
= MetaFileDC
.BlitXY
3416 class PrinterDC_old(PrinterDC
):
3417 """DC class that has methods with 2.4 compatible parameters."""
3418 FloodFill
= PrinterDC
.FloodFillXY
3419 GetPixel
= PrinterDC
.GetPixelXY
3420 DrawLine
= PrinterDC
.DrawLineXY
3421 CrossHair
= PrinterDC
.CrossHairXY
3422 DrawArc
= PrinterDC
.DrawArcXY
3423 DrawCheckMark
= PrinterDC
.DrawCheckMarkXY
3424 DrawEllipticArc
= PrinterDC
.DrawEllipticArcXY
3425 DrawPoint
= PrinterDC
.DrawPointXY
3426 DrawRectangle
= PrinterDC
.DrawRectangleXY
3427 DrawRoundedRectangle
= PrinterDC
.DrawRoundedRectangleXY
3428 DrawCircle
= PrinterDC
.DrawCircleXY
3429 DrawEllipse
= PrinterDC
.DrawEllipseXY
3430 DrawIcon
= PrinterDC
.DrawIconXY
3431 DrawBitmap
= PrinterDC
.DrawBitmapXY
3432 DrawText
= PrinterDC
.DrawTextXY
3433 DrawRotatedText
= PrinterDC
.DrawRotatedTextXY
3434 Blit
= PrinterDC
.BlitXY
3436 #---------------------------------------------------------------------------
3438 IMAGELIST_DRAW_NORMAL
= _gdi
.IMAGELIST_DRAW_NORMAL
3439 IMAGELIST_DRAW_TRANSPARENT
= _gdi
.IMAGELIST_DRAW_TRANSPARENT
3440 IMAGELIST_DRAW_SELECTED
= _gdi
.IMAGELIST_DRAW_SELECTED
3441 IMAGELIST_DRAW_FOCUSED
= _gdi
.IMAGELIST_DRAW_FOCUSED
3442 IMAGE_LIST_NORMAL
= _gdi
.IMAGE_LIST_NORMAL
3443 IMAGE_LIST_SMALL
= _gdi
.IMAGE_LIST_SMALL
3444 IMAGE_LIST_STATE
= _gdi
.IMAGE_LIST_STATE
3445 class ImageList(core
.Object
):
3447 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3448 def __init__(self
, *args
, **kwargs
):
3449 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3450 newobj
= _gdi
.new_ImageList(*args
, **kwargs
)
3451 self
.this
= newobj
.this
3454 def __del__(self
, destroy
=_gdi
.delete_ImageList
):
3457 if self
.thisown
: destroy(self
)
3460 def Add(*args
, **kwargs
):
3461 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3462 return _gdi
.ImageList_Add(*args
, **kwargs
)
3464 def AddWithColourMask(*args
, **kwargs
):
3465 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
3466 return _gdi
.ImageList_AddWithColourMask(*args
, **kwargs
)
3468 def AddIcon(*args
, **kwargs
):
3469 """AddIcon(Icon icon) -> int"""
3470 return _gdi
.ImageList_AddIcon(*args
, **kwargs
)
3472 def Replace(*args
, **kwargs
):
3473 """Replace(int index, Bitmap bitmap, Bitmap mask=NullBitmap) -> bool"""
3474 return _gdi
.ImageList_Replace(*args
, **kwargs
)
3476 def Draw(*args
, **kwargs
):
3478 Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3479 bool solidBackground=False) -> bool
3481 return _gdi
.ImageList_Draw(*args
, **kwargs
)
3483 def GetImageCount(*args
, **kwargs
):
3484 """GetImageCount() -> int"""
3485 return _gdi
.ImageList_GetImageCount(*args
, **kwargs
)
3487 def Remove(*args
, **kwargs
):
3488 """Remove(int index) -> bool"""
3489 return _gdi
.ImageList_Remove(*args
, **kwargs
)
3491 def RemoveAll(*args
, **kwargs
):
3492 """RemoveAll() -> bool"""
3493 return _gdi
.ImageList_RemoveAll(*args
, **kwargs
)
3495 def GetSize(*args
, **kwargs
):
3496 """GetSize() -> (width,height)"""
3497 return _gdi
.ImageList_GetSize(*args
, **kwargs
)
3500 class ImageListPtr(ImageList
):
3501 def __init__(self
, this
):
3503 if not hasattr(self
,"thisown"): self
.thisown
= 0
3504 self
.__class
__ = ImageList
3505 _gdi
.ImageList_swigregister(ImageListPtr
)
3507 #---------------------------------------------------------------------------
3509 class PenList(core
.Object
):
3510 def __init__(self
): raise RuntimeError, "No constructor defined"
3512 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3513 def AddPen(*args
, **kwargs
):
3514 """AddPen(Pen pen)"""
3515 return _gdi
.PenList_AddPen(*args
, **kwargs
)
3517 def FindOrCreatePen(*args
, **kwargs
):
3518 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
3519 return _gdi
.PenList_FindOrCreatePen(*args
, **kwargs
)
3521 def RemovePen(*args
, **kwargs
):
3522 """RemovePen(Pen pen)"""
3523 return _gdi
.PenList_RemovePen(*args
, **kwargs
)
3525 def GetCount(*args
, **kwargs
):
3526 """GetCount() -> int"""
3527 return _gdi
.PenList_GetCount(*args
, **kwargs
)
3530 class PenListPtr(PenList
):
3531 def __init__(self
, this
):
3533 if not hasattr(self
,"thisown"): self
.thisown
= 0
3534 self
.__class
__ = PenList
3535 _gdi
.PenList_swigregister(PenListPtr
)
3537 NORMAL_FONT
= cvar
.NORMAL_FONT
3538 SMALL_FONT
= cvar
.SMALL_FONT
3539 ITALIC_FONT
= cvar
.ITALIC_FONT
3540 SWISS_FONT
= cvar
.SWISS_FONT
3541 RED_PEN
= cvar
.RED_PEN
3542 CYAN_PEN
= cvar
.CYAN_PEN
3543 GREEN_PEN
= cvar
.GREEN_PEN
3544 BLACK_PEN
= cvar
.BLACK_PEN
3545 WHITE_PEN
= cvar
.WHITE_PEN
3546 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3547 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3548 GREY_PEN
= cvar
.GREY_PEN
3549 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3550 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3551 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3552 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3553 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3554 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3555 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3556 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3557 RED_BRUSH
= cvar
.RED_BRUSH
3558 GREY_BRUSH
= cvar
.GREY_BRUSH
3559 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3560 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3567 LIGHT_GREY
= cvar
.LIGHT_GREY
3568 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3569 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3570 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3571 NullBitmap
= cvar
.NullBitmap
3572 NullIcon
= cvar
.NullIcon
3573 NullCursor
= cvar
.NullCursor
3574 NullPen
= cvar
.NullPen
3575 NullBrush
= cvar
.NullBrush
3576 NullPalette
= cvar
.NullPalette
3577 NullFont
= cvar
.NullFont
3578 NullColour
= cvar
.NullColour
3580 class BrushList(core
.Object
):
3581 def __init__(self
): raise RuntimeError, "No constructor defined"
3583 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3584 def AddBrush(*args
, **kwargs
):
3585 """AddBrush(Brush brush)"""
3586 return _gdi
.BrushList_AddBrush(*args
, **kwargs
)
3588 def FindOrCreateBrush(*args
, **kwargs
):
3589 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
3590 return _gdi
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3592 def RemoveBrush(*args
, **kwargs
):
3593 """RemoveBrush(Brush brush)"""
3594 return _gdi
.BrushList_RemoveBrush(*args
, **kwargs
)
3596 def GetCount(*args
, **kwargs
):
3597 """GetCount() -> int"""
3598 return _gdi
.BrushList_GetCount(*args
, **kwargs
)
3601 class BrushListPtr(BrushList
):
3602 def __init__(self
, this
):
3604 if not hasattr(self
,"thisown"): self
.thisown
= 0
3605 self
.__class
__ = BrushList
3606 _gdi
.BrushList_swigregister(BrushListPtr
)
3608 class ColourDatabase(core
.Object
):
3610 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3611 def __init__(self
, *args
, **kwargs
):
3612 """__init__() -> ColourDatabase"""
3613 newobj
= _gdi
.new_ColourDatabase(*args
, **kwargs
)
3614 self
.this
= newobj
.this
3617 def __del__(self
, destroy
=_gdi
.delete_ColourDatabase
):
3620 if self
.thisown
: destroy(self
)
3623 def Find(*args
, **kwargs
):
3624 """Find(String name) -> Colour"""
3625 return _gdi
.ColourDatabase_Find(*args
, **kwargs
)
3627 def FindName(*args
, **kwargs
):
3628 """FindName(Colour colour) -> String"""
3629 return _gdi
.ColourDatabase_FindName(*args
, **kwargs
)
3632 def AddColour(*args
, **kwargs
):
3633 """AddColour(String name, Colour colour)"""
3634 return _gdi
.ColourDatabase_AddColour(*args
, **kwargs
)
3636 def Append(*args
, **kwargs
):
3637 """Append(String name, int red, int green, int blue)"""
3638 return _gdi
.ColourDatabase_Append(*args
, **kwargs
)
3641 class ColourDatabasePtr(ColourDatabase
):
3642 def __init__(self
, this
):
3644 if not hasattr(self
,"thisown"): self
.thisown
= 0
3645 self
.__class
__ = ColourDatabase
3646 _gdi
.ColourDatabase_swigregister(ColourDatabasePtr
)
3648 class FontList(core
.Object
):
3649 def __init__(self
): raise RuntimeError, "No constructor defined"
3651 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3652 def AddFont(*args
, **kwargs
):
3653 """AddFont(Font font)"""
3654 return _gdi
.FontList_AddFont(*args
, **kwargs
)
3656 def FindOrCreateFont(*args
, **kwargs
):
3658 FindOrCreateFont(int point_size, int family, int style, int weight,
3659 bool underline=False, String facename=EmptyString,
3660 int encoding=FONTENCODING_DEFAULT) -> Font
3662 return _gdi
.FontList_FindOrCreateFont(*args
, **kwargs
)
3664 def RemoveFont(*args
, **kwargs
):
3665 """RemoveFont(Font font)"""
3666 return _gdi
.FontList_RemoveFont(*args
, **kwargs
)
3668 def GetCount(*args
, **kwargs
):
3669 """GetCount() -> int"""
3670 return _gdi
.FontList_GetCount(*args
, **kwargs
)
3673 class FontListPtr(FontList
):
3674 def __init__(self
, this
):
3676 if not hasattr(self
,"thisown"): self
.thisown
= 0
3677 self
.__class
__ = FontList
3678 _gdi
.FontList_swigregister(FontListPtr
)
3680 #---------------------------------------------------------------------------
3682 NullColor
= NullColour
3683 #---------------------------------------------------------------------------
3685 class Effects(core
.Object
):
3687 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3688 def __init__(self
, *args
, **kwargs
):
3689 """__init__() -> Effects"""
3690 newobj
= _gdi
.new_Effects(*args
, **kwargs
)
3691 self
.this
= newobj
.this
3694 def GetHighlightColour(*args
, **kwargs
):
3695 """GetHighlightColour() -> Colour"""
3696 return _gdi
.Effects_GetHighlightColour(*args
, **kwargs
)
3698 def GetLightShadow(*args
, **kwargs
):
3699 """GetLightShadow() -> Colour"""
3700 return _gdi
.Effects_GetLightShadow(*args
, **kwargs
)
3702 def GetFaceColour(*args
, **kwargs
):
3703 """GetFaceColour() -> Colour"""
3704 return _gdi
.Effects_GetFaceColour(*args
, **kwargs
)
3706 def GetMediumShadow(*args
, **kwargs
):
3707 """GetMediumShadow() -> Colour"""
3708 return _gdi
.Effects_GetMediumShadow(*args
, **kwargs
)
3710 def GetDarkShadow(*args
, **kwargs
):
3711 """GetDarkShadow() -> Colour"""
3712 return _gdi
.Effects_GetDarkShadow(*args
, **kwargs
)
3714 def SetHighlightColour(*args
, **kwargs
):
3715 """SetHighlightColour(Colour c)"""
3716 return _gdi
.Effects_SetHighlightColour(*args
, **kwargs
)
3718 def SetLightShadow(*args
, **kwargs
):
3719 """SetLightShadow(Colour c)"""
3720 return _gdi
.Effects_SetLightShadow(*args
, **kwargs
)
3722 def SetFaceColour(*args
, **kwargs
):
3723 """SetFaceColour(Colour c)"""
3724 return _gdi
.Effects_SetFaceColour(*args
, **kwargs
)
3726 def SetMediumShadow(*args
, **kwargs
):
3727 """SetMediumShadow(Colour c)"""
3728 return _gdi
.Effects_SetMediumShadow(*args
, **kwargs
)
3730 def SetDarkShadow(*args
, **kwargs
):
3731 """SetDarkShadow(Colour c)"""
3732 return _gdi
.Effects_SetDarkShadow(*args
, **kwargs
)
3734 def Set(*args
, **kwargs
):
3736 Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3737 Colour mediumShadow, Colour darkShadow)
3739 return _gdi
.Effects_Set(*args
, **kwargs
)
3741 def DrawSunkenEdge(*args
, **kwargs
):
3742 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3743 return _gdi
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3745 def TileBitmap(*args
, **kwargs
):
3746 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3747 return _gdi
.Effects_TileBitmap(*args
, **kwargs
)
3750 class EffectsPtr(Effects
):
3751 def __init__(self
, this
):
3753 if not hasattr(self
,"thisown"): self
.thisown
= 0
3754 self
.__class
__ = Effects
3755 _gdi
.Effects_swigregister(EffectsPtr
)
3756 TheFontList
= cvar
.TheFontList
3757 ThePenList
= cvar
.ThePenList
3758 TheBrushList
= cvar
.TheBrushList
3759 TheColourDatabase
= cvar
.TheColourDatabase