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 __nonzero__(self
): return self
.Ok()
249 def __init__(self
, this
):
251 if not hasattr(self
,"thisown"): self
.thisown
= 0
253 _gdi
.Pen_swigregister(PenPtr
)
257 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
258 def __init__(self
, *args
, **kwargs
):
259 """__init__(Colour colour, int width=1, int style=SOLID) -> PyPen"""
260 newobj
= _gdi
.new_PyPen(*args
, **kwargs
)
261 self
.this
= newobj
.this
264 def __del__(self
, destroy
=_gdi
.delete_PyPen
):
267 if self
.thisown
: destroy(self
)
270 def SetDashes(*args
, **kwargs
):
271 """SetDashes(int dashes, wxDash dashes_array)"""
272 return _gdi
.PyPen_SetDashes(*args
, **kwargs
)
275 class PyPenPtr(PyPen
):
276 def __init__(self
, this
):
278 if not hasattr(self
,"thisown"): self
.thisown
= 0
279 self
.__class
__ = PyPen
280 _gdi
.PyPen_swigregister(PyPenPtr
)
283 #---------------------------------------------------------------------------
285 class Brush(GDIObject
):
287 A brush is a drawing tool for filling in areas. It is used for painting the
288 background of rectangles, ellipses, etc. It has a colour and a style.
291 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
292 def __init__(self
, *args
, **kwargs
):
294 __init__(Colour colour, int style=SOLID) -> Brush
296 Constructs a brush from a colour object and style.
298 newobj
= _gdi
.new_Brush(*args
, **kwargs
)
299 self
.this
= newobj
.this
302 def __del__(self
, destroy
=_gdi
.delete_Brush
):
305 if self
.thisown
: destroy(self
)
308 def SetColour(*args
, **kwargs
):
309 """SetColour(Colour col)"""
310 return _gdi
.Brush_SetColour(*args
, **kwargs
)
312 def SetStyle(*args
, **kwargs
):
313 """SetStyle(int style)"""
314 return _gdi
.Brush_SetStyle(*args
, **kwargs
)
316 def SetStipple(*args
, **kwargs
):
317 """SetStipple(Bitmap stipple)"""
318 return _gdi
.Brush_SetStipple(*args
, **kwargs
)
320 def GetColour(*args
, **kwargs
):
321 """GetColour() -> Colour"""
322 return _gdi
.Brush_GetColour(*args
, **kwargs
)
324 def GetStyle(*args
, **kwargs
):
325 """GetStyle() -> int"""
326 return _gdi
.Brush_GetStyle(*args
, **kwargs
)
328 def GetStipple(*args
, **kwargs
):
329 """GetStipple() -> Bitmap"""
330 return _gdi
.Brush_GetStipple(*args
, **kwargs
)
332 def Ok(*args
, **kwargs
):
334 return _gdi
.Brush_Ok(*args
, **kwargs
)
336 def __nonzero__(self
): return self
.Ok()
338 class BrushPtr(Brush
):
339 def __init__(self
, this
):
341 if not hasattr(self
,"thisown"): self
.thisown
= 0
342 self
.__class
__ = Brush
343 _gdi
.Brush_swigregister(BrushPtr
)
345 class Bitmap(GDIObject
):
347 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
348 def __init__(self
, *args
, **kwargs
):
350 __init__(String name, int type=BITMAP_TYPE_ANY) -> Bitmap
352 Loads a bitmap from a file.
354 newobj
= _gdi
.new_Bitmap(*args
, **kwargs
)
355 self
.this
= newobj
.this
358 def __del__(self
, destroy
=_gdi
.delete_Bitmap
):
361 if self
.thisown
: destroy(self
)
364 def Ok(*args
, **kwargs
):
366 return _gdi
.Bitmap_Ok(*args
, **kwargs
)
368 def GetWidth(*args
, **kwargs
):
372 Gets the width of the bitmap in pixels.
374 return _gdi
.Bitmap_GetWidth(*args
, **kwargs
)
376 def GetHeight(*args
, **kwargs
):
380 Gets the height of the bitmap in pixels.
382 return _gdi
.Bitmap_GetHeight(*args
, **kwargs
)
384 def GetDepth(*args
, **kwargs
):
388 Gets the colour depth of the bitmap. A value of 1 indicates a
391 return _gdi
.Bitmap_GetDepth(*args
, **kwargs
)
393 def ConvertToImage(*args
, **kwargs
):
395 ConvertToImage() -> Image
397 Creates a platform-independent image from a platform-dependent bitmap. This
398 preserves mask information so that bitmaps and images can be converted back
399 and forth without loss in that respect.
401 return _gdi
.Bitmap_ConvertToImage(*args
, **kwargs
)
403 def GetMask(*args
, **kwargs
):
407 Gets the associated mask (if any) which may have been loaded from a file
408 or explpicitly set for the bitmap.
410 return _gdi
.Bitmap_GetMask(*args
, **kwargs
)
412 def SetMask(*args
, **kwargs
):
416 Sets the mask for this bitmap.
418 return _gdi
.Bitmap_SetMask(*args
, **kwargs
)
420 def SetMaskColour(*args
, **kwargs
):
422 SetMaskColour(Colour colour)
424 Create a Mask based on a specified colour in the Bitmap.
426 return _gdi
.Bitmap_SetMaskColour(*args
, **kwargs
)
428 def GetSubBitmap(*args
, **kwargs
):
430 GetSubBitmap(Rect rect) -> Bitmap
432 Returns a sub bitmap of the current one as long as the rect belongs entirely
433 to the bitmap. This function preserves bit depth and mask information.
435 return _gdi
.Bitmap_GetSubBitmap(*args
, **kwargs
)
437 def SaveFile(*args
, **kwargs
):
439 SaveFile(String name, int type, Palette palette=(wxPalette *) NULL) -> bool
441 Saves a bitmap in the named file.
443 return _gdi
.Bitmap_SaveFile(*args
, **kwargs
)
445 def LoadFile(*args
, **kwargs
):
447 LoadFile(String name, int type) -> bool
449 Loads a bitmap from a file
451 return _gdi
.Bitmap_LoadFile(*args
, **kwargs
)
453 def CopyFromIcon(*args
, **kwargs
):
454 """CopyFromIcon(Icon icon) -> bool"""
455 return _gdi
.Bitmap_CopyFromIcon(*args
, **kwargs
)
457 def SetHeight(*args
, **kwargs
):
459 SetHeight(int height)
461 Set the height property (does not affect the bitmap data).
463 return _gdi
.Bitmap_SetHeight(*args
, **kwargs
)
465 def SetWidth(*args
, **kwargs
):
469 Set the width property (does not affect the bitmap data).
471 return _gdi
.Bitmap_SetWidth(*args
, **kwargs
)
473 def SetDepth(*args
, **kwargs
):
477 Set the depth property (does not affect the bitmap data).
479 return _gdi
.Bitmap_SetDepth(*args
, **kwargs
)
481 def __nonzero__(self
): return self
.Ok()
483 class BitmapPtr(Bitmap
):
484 def __init__(self
, this
):
486 if not hasattr(self
,"thisown"): self
.thisown
= 0
487 self
.__class
__ = Bitmap
488 _gdi
.Bitmap_swigregister(BitmapPtr
)
490 def EmptyBitmap(*args
, **kwargs
):
492 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
494 Creates a new bitmap of the given size. A depth of -1 indicates the depth of
495 the current screen or visual. Some platforms only support 1 for monochrome and
496 -1 for the current colour setting.
498 val
= _gdi
.new_EmptyBitmap(*args
, **kwargs
)
502 def BitmapFromIcon(*args
, **kwargs
):
504 BitmapFromIcon(Icon icon) -> Bitmap
506 Create a new bitmap from an Icon object.
508 val
= _gdi
.new_BitmapFromIcon(*args
, **kwargs
)
512 def BitmapFromImage(*args
, **kwargs
):
514 BitmapFromImage(Image image, int depth=-1) -> Bitmap
516 Creates bitmap object from the image. This has to be done to actually display
517 an image as you cannot draw an image directly on a window. The resulting
518 bitmap will use the provided colour depth (or that of the current system if
519 depth is -1) which entails that a colour reduction has to take place.
521 val
= _gdi
.new_BitmapFromImage(*args
, **kwargs
)
525 def BitmapFromXPMData(*args
, **kwargs
):
527 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
529 Construct a Bitmap from a list of strings formatted as XPM data.
531 val
= _gdi
.new_BitmapFromXPMData(*args
, **kwargs
)
535 def BitmapFromBits(*args
, **kwargs
):
537 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
539 Creates a bitmap from an array of bits. You should only use this function for
540 monochrome bitmaps (depth 1) in portable programs: in this case the bits
541 parameter should contain an XBM image. For other bit depths, the behaviour is
544 val
= _gdi
.new_BitmapFromBits(*args
, **kwargs
)
548 class Mask(core
.Object
):
550 This class encapsulates a monochrome mask bitmap, where the masked area is
551 black and the unmasked area is white. When associated with a bitmap and drawn
552 in a device context, the unmasked area of the bitmap will be drawn, and the
553 masked area will not be drawn.
556 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
557 def __init__(self
, *args
, **kwargs
):
559 __init__(Bitmap bitmap, Colour colour=NullColour) -> Mask
561 Constructs a mask from a bitmap and a colour in that bitmap that indicates
562 the transparent portions of the mask, by default BLACK is used.
564 newobj
= _gdi
.new_Mask(*args
, **kwargs
)
565 self
.this
= newobj
.this
570 def __init__(self
, this
):
572 if not hasattr(self
,"thisown"): self
.thisown
= 0
573 self
.__class
__ = Mask
574 _gdi
.Mask_swigregister(MaskPtr
)
577 class Icon(GDIObject
):
579 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
580 def __init__(self
, *args
, **kwargs
):
581 """__init__(String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
582 newobj
= _gdi
.new_Icon(*args
, **kwargs
)
583 self
.this
= newobj
.this
586 def __del__(self
, destroy
=_gdi
.delete_Icon
):
589 if self
.thisown
: destroy(self
)
592 def LoadFile(*args
, **kwargs
):
593 """LoadFile(String name, int type) -> bool"""
594 return _gdi
.Icon_LoadFile(*args
, **kwargs
)
596 def Ok(*args
, **kwargs
):
598 return _gdi
.Icon_Ok(*args
, **kwargs
)
600 def GetWidth(*args
, **kwargs
):
601 """GetWidth() -> int"""
602 return _gdi
.Icon_GetWidth(*args
, **kwargs
)
604 def GetHeight(*args
, **kwargs
):
605 """GetHeight() -> int"""
606 return _gdi
.Icon_GetHeight(*args
, **kwargs
)
608 def GetDepth(*args
, **kwargs
):
609 """GetDepth() -> int"""
610 return _gdi
.Icon_GetDepth(*args
, **kwargs
)
612 def SetWidth(*args
, **kwargs
):
613 """SetWidth(int w)"""
614 return _gdi
.Icon_SetWidth(*args
, **kwargs
)
616 def SetHeight(*args
, **kwargs
):
617 """SetHeight(int h)"""
618 return _gdi
.Icon_SetHeight(*args
, **kwargs
)
620 def SetDepth(*args
, **kwargs
):
621 """SetDepth(int d)"""
622 return _gdi
.Icon_SetDepth(*args
, **kwargs
)
624 def CopyFromBitmap(*args
, **kwargs
):
625 """CopyFromBitmap(Bitmap bmp)"""
626 return _gdi
.Icon_CopyFromBitmap(*args
, **kwargs
)
628 def __nonzero__(self
): return self
.Ok()
631 def __init__(self
, this
):
633 if not hasattr(self
,"thisown"): self
.thisown
= 0
634 self
.__class
__ = Icon
635 _gdi
.Icon_swigregister(IconPtr
)
637 def EmptyIcon(*args
, **kwargs
):
638 """EmptyIcon() -> Icon"""
639 val
= _gdi
.new_EmptyIcon(*args
, **kwargs
)
643 def IconFromLocation(*args
, **kwargs
):
644 """IconFromLocation(IconLocation loc) -> Icon"""
645 val
= _gdi
.new_IconFromLocation(*args
, **kwargs
)
649 def IconFromBitmap(*args
, **kwargs
):
650 """IconFromBitmap(Bitmap bmp) -> Icon"""
651 val
= _gdi
.new_IconFromBitmap(*args
, **kwargs
)
655 def IconFromXPMData(*args
, **kwargs
):
656 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
657 val
= _gdi
.new_IconFromXPMData(*args
, **kwargs
)
661 class IconLocation(object):
663 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
664 def __init__(self
, *args
, **kwargs
):
665 """__init__(String filename=&wxPyEmptyString, int num=0) -> IconLocation"""
666 newobj
= _gdi
.new_IconLocation(*args
, **kwargs
)
667 self
.this
= newobj
.this
670 def __del__(self
, destroy
=_gdi
.delete_IconLocation
):
673 if self
.thisown
: destroy(self
)
676 def IsOk(*args
, **kwargs
):
678 return _gdi
.IconLocation_IsOk(*args
, **kwargs
)
680 def __nonzero__(self
): return self
.Ok()
681 def SetFileName(*args
, **kwargs
):
682 """SetFileName(String filename)"""
683 return _gdi
.IconLocation_SetFileName(*args
, **kwargs
)
685 def GetFileName(*args
, **kwargs
):
686 """GetFileName() -> String"""
687 return _gdi
.IconLocation_GetFileName(*args
, **kwargs
)
689 def SetIndex(*args
, **kwargs
):
690 """SetIndex(int num)"""
691 return _gdi
.IconLocation_SetIndex(*args
, **kwargs
)
693 def GetIndex(*args
, **kwargs
):
694 """GetIndex() -> int"""
695 return _gdi
.IconLocation_GetIndex(*args
, **kwargs
)
698 class IconLocationPtr(IconLocation
):
699 def __init__(self
, this
):
701 if not hasattr(self
,"thisown"): self
.thisown
= 0
702 self
.__class
__ = IconLocation
703 _gdi
.IconLocation_swigregister(IconLocationPtr
)
705 class IconBundle(object):
707 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
708 def __init__(self
, *args
, **kwargs
):
709 """__init__() -> IconBundle"""
710 newobj
= _gdi
.new_IconBundle(*args
, **kwargs
)
711 self
.this
= newobj
.this
714 def __del__(self
, destroy
=_gdi
.delete_IconBundle
):
717 if self
.thisown
: destroy(self
)
720 def AddIcon(*args
, **kwargs
):
721 """AddIcon(Icon icon)"""
722 return _gdi
.IconBundle_AddIcon(*args
, **kwargs
)
724 def AddIconFromFile(*args
, **kwargs
):
725 """AddIconFromFile(String file, long type)"""
726 return _gdi
.IconBundle_AddIconFromFile(*args
, **kwargs
)
728 def GetIcon(*args
, **kwargs
):
729 """GetIcon(Size size) -> Icon"""
730 return _gdi
.IconBundle_GetIcon(*args
, **kwargs
)
733 class IconBundlePtr(IconBundle
):
734 def __init__(self
, this
):
736 if not hasattr(self
,"thisown"): self
.thisown
= 0
737 self
.__class
__ = IconBundle
738 _gdi
.IconBundle_swigregister(IconBundlePtr
)
740 def IconBundleFromFile(*args
, **kwargs
):
741 """IconBundleFromFile(String file, long type) -> IconBundle"""
742 val
= _gdi
.new_IconBundleFromFile(*args
, **kwargs
)
746 def IconBundleFromIcon(*args
, **kwargs
):
747 """IconBundleFromIcon(Icon icon) -> IconBundle"""
748 val
= _gdi
.new_IconBundleFromIcon(*args
, **kwargs
)
752 class Cursor(GDIObject
):
754 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
755 def __init__(self
, *args
, **kwargs
):
756 """__init__(String cursorName, long flags, int hotSpotX=0, int hotSpotY=0) -> Cursor"""
757 newobj
= _gdi
.new_Cursor(*args
, **kwargs
)
758 self
.this
= newobj
.this
761 def __del__(self
, destroy
=_gdi
.delete_Cursor
):
764 if self
.thisown
: destroy(self
)
767 def Ok(*args
, **kwargs
):
769 return _gdi
.Cursor_Ok(*args
, **kwargs
)
771 def __nonzero__(self
): return self
.Ok()
773 class CursorPtr(Cursor
):
774 def __init__(self
, this
):
776 if not hasattr(self
,"thisown"): self
.thisown
= 0
777 self
.__class
__ = Cursor
778 _gdi
.Cursor_swigregister(CursorPtr
)
780 def StockCursor(*args
, **kwargs
):
781 """StockCursor(int id) -> Cursor"""
782 val
= _gdi
.new_StockCursor(*args
, **kwargs
)
786 def CursorFromImage(*args
, **kwargs
):
787 """CursorFromImage(Image image) -> Cursor"""
788 val
= _gdi
.new_CursorFromImage(*args
, **kwargs
)
792 def CursorFromBits(*args
, **kwargs
):
794 CursorFromBits(PyObject bits, int width, int height, int hotSpotX=-1,
795 int hotSpotY=-1, PyObject maskBits=0) -> Cursor
797 val
= _gdi
.new_CursorFromBits(*args
, **kwargs
)
801 #---------------------------------------------------------------------------
803 OutRegion
= _gdi
.OutRegion
804 PartRegion
= _gdi
.PartRegion
805 InRegion
= _gdi
.InRegion
806 class Region(GDIObject
):
808 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
809 def __init__(self
, *args
, **kwargs
):
810 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
811 newobj
= _gdi
.new_Region(*args
, **kwargs
)
812 self
.this
= newobj
.this
815 def __del__(self
, destroy
=_gdi
.delete_Region
):
818 if self
.thisown
: destroy(self
)
821 def Clear(*args
, **kwargs
):
823 return _gdi
.Region_Clear(*args
, **kwargs
)
825 def Offset(*args
, **kwargs
):
826 """Offset(int x, int y) -> bool"""
827 return _gdi
.Region_Offset(*args
, **kwargs
)
829 def Contains(*args
, **kwargs
):
830 """Contains(int x, int y) -> int"""
831 return _gdi
.Region_Contains(*args
, **kwargs
)
833 def ContainsPoint(*args
, **kwargs
):
834 """ContainsPoint(Point pt) -> int"""
835 return _gdi
.Region_ContainsPoint(*args
, **kwargs
)
837 def ContainsRect(*args
, **kwargs
):
838 """ContainsRect(Rect rect) -> int"""
839 return _gdi
.Region_ContainsRect(*args
, **kwargs
)
841 def ContainsRectDim(*args
, **kwargs
):
842 """ContainsRectDim(int x, int y, int w, int h) -> int"""
843 return _gdi
.Region_ContainsRectDim(*args
, **kwargs
)
845 def GetBox(*args
, **kwargs
):
846 """GetBox() -> Rect"""
847 return _gdi
.Region_GetBox(*args
, **kwargs
)
849 def Intersect(*args
, **kwargs
):
850 """Intersect(int x, int y, int width, int height) -> bool"""
851 return _gdi
.Region_Intersect(*args
, **kwargs
)
853 def IntersectRect(*args
, **kwargs
):
854 """IntersectRect(Rect rect) -> bool"""
855 return _gdi
.Region_IntersectRect(*args
, **kwargs
)
857 def IntersectRegion(*args
, **kwargs
):
858 """IntersectRegion(Region region) -> bool"""
859 return _gdi
.Region_IntersectRegion(*args
, **kwargs
)
861 def IsEmpty(*args
, **kwargs
):
862 """IsEmpty() -> bool"""
863 return _gdi
.Region_IsEmpty(*args
, **kwargs
)
865 def Union(*args
, **kwargs
):
866 """Union(int x, int y, int width, int height) -> bool"""
867 return _gdi
.Region_Union(*args
, **kwargs
)
869 def UnionRect(*args
, **kwargs
):
870 """UnionRect(Rect rect) -> bool"""
871 return _gdi
.Region_UnionRect(*args
, **kwargs
)
873 def UnionRegion(*args
, **kwargs
):
874 """UnionRegion(Region region) -> bool"""
875 return _gdi
.Region_UnionRegion(*args
, **kwargs
)
877 def Subtract(*args
, **kwargs
):
878 """Subtract(int x, int y, int width, int height) -> bool"""
879 return _gdi
.Region_Subtract(*args
, **kwargs
)
881 def SubtractRect(*args
, **kwargs
):
882 """SubtractRect(Rect rect) -> bool"""
883 return _gdi
.Region_SubtractRect(*args
, **kwargs
)
885 def SubtractRegion(*args
, **kwargs
):
886 """SubtractRegion(Region region) -> bool"""
887 return _gdi
.Region_SubtractRegion(*args
, **kwargs
)
889 def Xor(*args
, **kwargs
):
890 """Xor(int x, int y, int width, int height) -> bool"""
891 return _gdi
.Region_Xor(*args
, **kwargs
)
893 def XorRect(*args
, **kwargs
):
894 """XorRect(Rect rect) -> bool"""
895 return _gdi
.Region_XorRect(*args
, **kwargs
)
897 def XorRegion(*args
, **kwargs
):
898 """XorRegion(Region region) -> bool"""
899 return _gdi
.Region_XorRegion(*args
, **kwargs
)
901 def ConvertToBitmap(*args
, **kwargs
):
902 """ConvertToBitmap() -> Bitmap"""
903 return _gdi
.Region_ConvertToBitmap(*args
, **kwargs
)
905 def UnionBitmap(*args
, **kwargs
):
906 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
907 return _gdi
.Region_UnionBitmap(*args
, **kwargs
)
910 class RegionPtr(Region
):
911 def __init__(self
, this
):
913 if not hasattr(self
,"thisown"): self
.thisown
= 0
914 self
.__class
__ = Region
915 _gdi
.Region_swigregister(RegionPtr
)
917 def RegionFromBitmap(*args
, **kwargs
):
918 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
919 val
= _gdi
.new_RegionFromBitmap(*args
, **kwargs
)
923 def RegionFromPoints(*args
, **kwargs
):
924 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
925 val
= _gdi
.new_RegionFromPoints(*args
, **kwargs
)
929 class RegionIterator(core
.Object
):
931 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
932 def __init__(self
, *args
, **kwargs
):
933 """__init__(Region region) -> RegionIterator"""
934 newobj
= _gdi
.new_RegionIterator(*args
, **kwargs
)
935 self
.this
= newobj
.this
938 def __del__(self
, destroy
=_gdi
.delete_RegionIterator
):
941 if self
.thisown
: destroy(self
)
944 def GetX(*args
, **kwargs
):
946 return _gdi
.RegionIterator_GetX(*args
, **kwargs
)
948 def GetY(*args
, **kwargs
):
950 return _gdi
.RegionIterator_GetY(*args
, **kwargs
)
952 def GetW(*args
, **kwargs
):
954 return _gdi
.RegionIterator_GetW(*args
, **kwargs
)
956 def GetWidth(*args
, **kwargs
):
957 """GetWidth() -> int"""
958 return _gdi
.RegionIterator_GetWidth(*args
, **kwargs
)
960 def GetH(*args
, **kwargs
):
962 return _gdi
.RegionIterator_GetH(*args
, **kwargs
)
964 def GetHeight(*args
, **kwargs
):
965 """GetHeight() -> int"""
966 return _gdi
.RegionIterator_GetHeight(*args
, **kwargs
)
968 def GetRect(*args
, **kwargs
):
969 """GetRect() -> Rect"""
970 return _gdi
.RegionIterator_GetRect(*args
, **kwargs
)
972 def HaveRects(*args
, **kwargs
):
973 """HaveRects() -> bool"""
974 return _gdi
.RegionIterator_HaveRects(*args
, **kwargs
)
976 def Reset(*args
, **kwargs
):
978 return _gdi
.RegionIterator_Reset(*args
, **kwargs
)
980 def Next(*args
, **kwargs
):
982 return _gdi
.RegionIterator_Next(*args
, **kwargs
)
984 def __nonzero__(*args
, **kwargs
):
985 """__nonzero__() -> bool"""
986 return _gdi
.RegionIterator___nonzero__(*args
, **kwargs
)
989 class RegionIteratorPtr(RegionIterator
):
990 def __init__(self
, this
):
992 if not hasattr(self
,"thisown"): self
.thisown
= 0
993 self
.__class
__ = RegionIterator
994 _gdi
.RegionIterator_swigregister(RegionIteratorPtr
)
996 #---------------------------------------------------------------------------
998 FONTFAMILY_DEFAULT
= _gdi
.FONTFAMILY_DEFAULT
999 FONTFAMILY_DECORATIVE
= _gdi
.FONTFAMILY_DECORATIVE
1000 FONTFAMILY_ROMAN
= _gdi
.FONTFAMILY_ROMAN
1001 FONTFAMILY_SCRIPT
= _gdi
.FONTFAMILY_SCRIPT
1002 FONTFAMILY_SWISS
= _gdi
.FONTFAMILY_SWISS
1003 FONTFAMILY_MODERN
= _gdi
.FONTFAMILY_MODERN
1004 FONTFAMILY_TELETYPE
= _gdi
.FONTFAMILY_TELETYPE
1005 FONTFAMILY_MAX
= _gdi
.FONTFAMILY_MAX
1006 FONTFAMILY_UNKNOWN
= _gdi
.FONTFAMILY_UNKNOWN
1007 FONTSTYLE_NORMAL
= _gdi
.FONTSTYLE_NORMAL
1008 FONTSTYLE_ITALIC
= _gdi
.FONTSTYLE_ITALIC
1009 FONTSTYLE_SLANT
= _gdi
.FONTSTYLE_SLANT
1010 FONTSTYLE_MAX
= _gdi
.FONTSTYLE_MAX
1011 FONTWEIGHT_NORMAL
= _gdi
.FONTWEIGHT_NORMAL
1012 FONTWEIGHT_LIGHT
= _gdi
.FONTWEIGHT_LIGHT
1013 FONTWEIGHT_BOLD
= _gdi
.FONTWEIGHT_BOLD
1014 FONTWEIGHT_MAX
= _gdi
.FONTWEIGHT_MAX
1015 FONTFLAG_DEFAULT
= _gdi
.FONTFLAG_DEFAULT
1016 FONTFLAG_ITALIC
= _gdi
.FONTFLAG_ITALIC
1017 FONTFLAG_SLANT
= _gdi
.FONTFLAG_SLANT
1018 FONTFLAG_LIGHT
= _gdi
.FONTFLAG_LIGHT
1019 FONTFLAG_BOLD
= _gdi
.FONTFLAG_BOLD
1020 FONTFLAG_ANTIALIASED
= _gdi
.FONTFLAG_ANTIALIASED
1021 FONTFLAG_NOT_ANTIALIASED
= _gdi
.FONTFLAG_NOT_ANTIALIASED
1022 FONTFLAG_UNDERLINED
= _gdi
.FONTFLAG_UNDERLINED
1023 FONTFLAG_STRIKETHROUGH
= _gdi
.FONTFLAG_STRIKETHROUGH
1024 FONTFLAG_MASK
= _gdi
.FONTFLAG_MASK
1025 FONTENCODING_SYSTEM
= _gdi
.FONTENCODING_SYSTEM
1026 FONTENCODING_DEFAULT
= _gdi
.FONTENCODING_DEFAULT
1027 FONTENCODING_ISO8859_1
= _gdi
.FONTENCODING_ISO8859_1
1028 FONTENCODING_ISO8859_2
= _gdi
.FONTENCODING_ISO8859_2
1029 FONTENCODING_ISO8859_3
= _gdi
.FONTENCODING_ISO8859_3
1030 FONTENCODING_ISO8859_4
= _gdi
.FONTENCODING_ISO8859_4
1031 FONTENCODING_ISO8859_5
= _gdi
.FONTENCODING_ISO8859_5
1032 FONTENCODING_ISO8859_6
= _gdi
.FONTENCODING_ISO8859_6
1033 FONTENCODING_ISO8859_7
= _gdi
.FONTENCODING_ISO8859_7
1034 FONTENCODING_ISO8859_8
= _gdi
.FONTENCODING_ISO8859_8
1035 FONTENCODING_ISO8859_9
= _gdi
.FONTENCODING_ISO8859_9
1036 FONTENCODING_ISO8859_10
= _gdi
.FONTENCODING_ISO8859_10
1037 FONTENCODING_ISO8859_11
= _gdi
.FONTENCODING_ISO8859_11
1038 FONTENCODING_ISO8859_12
= _gdi
.FONTENCODING_ISO8859_12
1039 FONTENCODING_ISO8859_13
= _gdi
.FONTENCODING_ISO8859_13
1040 FONTENCODING_ISO8859_14
= _gdi
.FONTENCODING_ISO8859_14
1041 FONTENCODING_ISO8859_15
= _gdi
.FONTENCODING_ISO8859_15
1042 FONTENCODING_ISO8859_MAX
= _gdi
.FONTENCODING_ISO8859_MAX
1043 FONTENCODING_KOI8
= _gdi
.FONTENCODING_KOI8
1044 FONTENCODING_ALTERNATIVE
= _gdi
.FONTENCODING_ALTERNATIVE
1045 FONTENCODING_BULGARIAN
= _gdi
.FONTENCODING_BULGARIAN
1046 FONTENCODING_CP437
= _gdi
.FONTENCODING_CP437
1047 FONTENCODING_CP850
= _gdi
.FONTENCODING_CP850
1048 FONTENCODING_CP852
= _gdi
.FONTENCODING_CP852
1049 FONTENCODING_CP855
= _gdi
.FONTENCODING_CP855
1050 FONTENCODING_CP866
= _gdi
.FONTENCODING_CP866
1051 FONTENCODING_CP874
= _gdi
.FONTENCODING_CP874
1052 FONTENCODING_CP932
= _gdi
.FONTENCODING_CP932
1053 FONTENCODING_CP936
= _gdi
.FONTENCODING_CP936
1054 FONTENCODING_CP949
= _gdi
.FONTENCODING_CP949
1055 FONTENCODING_CP950
= _gdi
.FONTENCODING_CP950
1056 FONTENCODING_CP1250
= _gdi
.FONTENCODING_CP1250
1057 FONTENCODING_CP1251
= _gdi
.FONTENCODING_CP1251
1058 FONTENCODING_CP1252
= _gdi
.FONTENCODING_CP1252
1059 FONTENCODING_CP1253
= _gdi
.FONTENCODING_CP1253
1060 FONTENCODING_CP1254
= _gdi
.FONTENCODING_CP1254
1061 FONTENCODING_CP1255
= _gdi
.FONTENCODING_CP1255
1062 FONTENCODING_CP1256
= _gdi
.FONTENCODING_CP1256
1063 FONTENCODING_CP1257
= _gdi
.FONTENCODING_CP1257
1064 FONTENCODING_CP12_MAX
= _gdi
.FONTENCODING_CP12_MAX
1065 FONTENCODING_UTF7
= _gdi
.FONTENCODING_UTF7
1066 FONTENCODING_UTF8
= _gdi
.FONTENCODING_UTF8
1067 FONTENCODING_EUC_JP
= _gdi
.FONTENCODING_EUC_JP
1068 FONTENCODING_UTF16BE
= _gdi
.FONTENCODING_UTF16BE
1069 FONTENCODING_UTF16LE
= _gdi
.FONTENCODING_UTF16LE
1070 FONTENCODING_UTF32BE
= _gdi
.FONTENCODING_UTF32BE
1071 FONTENCODING_UTF32LE
= _gdi
.FONTENCODING_UTF32LE
1072 FONTENCODING_MACROMAN
= _gdi
.FONTENCODING_MACROMAN
1073 FONTENCODING_MACJAPANESE
= _gdi
.FONTENCODING_MACJAPANESE
1074 FONTENCODING_MACCHINESETRAD
= _gdi
.FONTENCODING_MACCHINESETRAD
1075 FONTENCODING_MACKOREAN
= _gdi
.FONTENCODING_MACKOREAN
1076 FONTENCODING_MACARABIC
= _gdi
.FONTENCODING_MACARABIC
1077 FONTENCODING_MACHEBREW
= _gdi
.FONTENCODING_MACHEBREW
1078 FONTENCODING_MACGREEK
= _gdi
.FONTENCODING_MACGREEK
1079 FONTENCODING_MACCYRILLIC
= _gdi
.FONTENCODING_MACCYRILLIC
1080 FONTENCODING_MACDEVANAGARI
= _gdi
.FONTENCODING_MACDEVANAGARI
1081 FONTENCODING_MACGURMUKHI
= _gdi
.FONTENCODING_MACGURMUKHI
1082 FONTENCODING_MACGUJARATI
= _gdi
.FONTENCODING_MACGUJARATI
1083 FONTENCODING_MACORIYA
= _gdi
.FONTENCODING_MACORIYA
1084 FONTENCODING_MACBENGALI
= _gdi
.FONTENCODING_MACBENGALI
1085 FONTENCODING_MACTAMIL
= _gdi
.FONTENCODING_MACTAMIL
1086 FONTENCODING_MACTELUGU
= _gdi
.FONTENCODING_MACTELUGU
1087 FONTENCODING_MACKANNADA
= _gdi
.FONTENCODING_MACKANNADA
1088 FONTENCODING_MACMALAJALAM
= _gdi
.FONTENCODING_MACMALAJALAM
1089 FONTENCODING_MACSINHALESE
= _gdi
.FONTENCODING_MACSINHALESE
1090 FONTENCODING_MACBURMESE
= _gdi
.FONTENCODING_MACBURMESE
1091 FONTENCODING_MACKHMER
= _gdi
.FONTENCODING_MACKHMER
1092 FONTENCODING_MACTHAI
= _gdi
.FONTENCODING_MACTHAI
1093 FONTENCODING_MACLAOTIAN
= _gdi
.FONTENCODING_MACLAOTIAN
1094 FONTENCODING_MACGEORGIAN
= _gdi
.FONTENCODING_MACGEORGIAN
1095 FONTENCODING_MACARMENIAN
= _gdi
.FONTENCODING_MACARMENIAN
1096 FONTENCODING_MACCHINESESIMP
= _gdi
.FONTENCODING_MACCHINESESIMP
1097 FONTENCODING_MACTIBETAN
= _gdi
.FONTENCODING_MACTIBETAN
1098 FONTENCODING_MACMONGOLIAN
= _gdi
.FONTENCODING_MACMONGOLIAN
1099 FONTENCODING_MACETHIOPIC
= _gdi
.FONTENCODING_MACETHIOPIC
1100 FONTENCODING_MACCENTRALEUR
= _gdi
.FONTENCODING_MACCENTRALEUR
1101 FONTENCODING_MACVIATNAMESE
= _gdi
.FONTENCODING_MACVIATNAMESE
1102 FONTENCODING_MACARABICEXT
= _gdi
.FONTENCODING_MACARABICEXT
1103 FONTENCODING_MACSYMBOL
= _gdi
.FONTENCODING_MACSYMBOL
1104 FONTENCODING_MACDINGBATS
= _gdi
.FONTENCODING_MACDINGBATS
1105 FONTENCODING_MACTURKISH
= _gdi
.FONTENCODING_MACTURKISH
1106 FONTENCODING_MACCROATIAN
= _gdi
.FONTENCODING_MACCROATIAN
1107 FONTENCODING_MACICELANDIC
= _gdi
.FONTENCODING_MACICELANDIC
1108 FONTENCODING_MACROMANIAN
= _gdi
.FONTENCODING_MACROMANIAN
1109 FONTENCODING_MACCELTIC
= _gdi
.FONTENCODING_MACCELTIC
1110 FONTENCODING_MACGAELIC
= _gdi
.FONTENCODING_MACGAELIC
1111 FONTENCODING_MACKEYBOARD
= _gdi
.FONTENCODING_MACKEYBOARD
1112 FONTENCODING_MACMIN
= _gdi
.FONTENCODING_MACMIN
1113 FONTENCODING_MACMAX
= _gdi
.FONTENCODING_MACMAX
1114 FONTENCODING_MAX
= _gdi
.FONTENCODING_MAX
1115 FONTENCODING_UTF16
= _gdi
.FONTENCODING_UTF16
1116 FONTENCODING_UTF32
= _gdi
.FONTENCODING_UTF32
1117 FONTENCODING_UNICODE
= _gdi
.FONTENCODING_UNICODE
1118 FONTENCODING_GB2312
= _gdi
.FONTENCODING_GB2312
1119 FONTENCODING_BIG5
= _gdi
.FONTENCODING_BIG5
1120 FONTENCODING_SHIFT_JIS
= _gdi
.FONTENCODING_SHIFT_JIS
1121 #---------------------------------------------------------------------------
1123 class NativeFontInfo(object):
1125 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1126 def __init__(self
, *args
, **kwargs
):
1127 """__init__() -> NativeFontInfo"""
1128 newobj
= _gdi
.new_NativeFontInfo(*args
, **kwargs
)
1129 self
.this
= newobj
.this
1132 def __del__(self
, destroy
=_gdi
.delete_NativeFontInfo
):
1135 if self
.thisown
: destroy(self
)
1138 def Init(*args
, **kwargs
):
1140 return _gdi
.NativeFontInfo_Init(*args
, **kwargs
)
1142 def InitFromFont(*args
, **kwargs
):
1143 """InitFromFont(Font font)"""
1144 return _gdi
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1146 def GetPointSize(*args
, **kwargs
):
1147 """GetPointSize() -> int"""
1148 return _gdi
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1150 def GetStyle(*args
, **kwargs
):
1151 """GetStyle() -> int"""
1152 return _gdi
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1154 def GetWeight(*args
, **kwargs
):
1155 """GetWeight() -> int"""
1156 return _gdi
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1158 def GetUnderlined(*args
, **kwargs
):
1159 """GetUnderlined() -> bool"""
1160 return _gdi
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1162 def GetFaceName(*args
, **kwargs
):
1163 """GetFaceName() -> String"""
1164 return _gdi
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1166 def GetFamily(*args
, **kwargs
):
1167 """GetFamily() -> int"""
1168 return _gdi
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1170 def GetEncoding(*args
, **kwargs
):
1171 """GetEncoding() -> int"""
1172 return _gdi
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1174 def SetPointSize(*args
, **kwargs
):
1175 """SetPointSize(int pointsize)"""
1176 return _gdi
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1178 def SetStyle(*args
, **kwargs
):
1179 """SetStyle(int style)"""
1180 return _gdi
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1182 def SetWeight(*args
, **kwargs
):
1183 """SetWeight(int weight)"""
1184 return _gdi
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1186 def SetUnderlined(*args
, **kwargs
):
1187 """SetUnderlined(bool underlined)"""
1188 return _gdi
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1190 def SetFaceName(*args
, **kwargs
):
1191 """SetFaceName(String facename)"""
1192 return _gdi
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1194 def SetFamily(*args
, **kwargs
):
1195 """SetFamily(int family)"""
1196 return _gdi
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1198 def SetEncoding(*args
, **kwargs
):
1199 """SetEncoding(int encoding)"""
1200 return _gdi
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1202 def FromString(*args
, **kwargs
):
1203 """FromString(String s) -> bool"""
1204 return _gdi
.NativeFontInfo_FromString(*args
, **kwargs
)
1206 def ToString(*args
, **kwargs
):
1207 """ToString() -> String"""
1208 return _gdi
.NativeFontInfo_ToString(*args
, **kwargs
)
1210 def __str__(*args
, **kwargs
):
1211 """__str__() -> String"""
1212 return _gdi
.NativeFontInfo___str__(*args
, **kwargs
)
1214 def FromUserString(*args
, **kwargs
):
1215 """FromUserString(String s) -> bool"""
1216 return _gdi
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1218 def ToUserString(*args
, **kwargs
):
1219 """ToUserString() -> String"""
1220 return _gdi
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1223 class NativeFontInfoPtr(NativeFontInfo
):
1224 def __init__(self
, this
):
1226 if not hasattr(self
,"thisown"): self
.thisown
= 0
1227 self
.__class
__ = NativeFontInfo
1228 _gdi
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1230 class NativeEncodingInfo(object):
1232 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1233 facename
= property(_gdi
.NativeEncodingInfo_facename_get
, _gdi
.NativeEncodingInfo_facename_set
)
1234 encoding
= property(_gdi
.NativeEncodingInfo_encoding_get
, _gdi
.NativeEncodingInfo_encoding_set
)
1235 def __init__(self
, *args
, **kwargs
):
1236 """__init__() -> NativeEncodingInfo"""
1237 newobj
= _gdi
.new_NativeEncodingInfo(*args
, **kwargs
)
1238 self
.this
= newobj
.this
1241 def __del__(self
, destroy
=_gdi
.delete_NativeEncodingInfo
):
1244 if self
.thisown
: destroy(self
)
1247 def FromString(*args
, **kwargs
):
1248 """FromString(String s) -> bool"""
1249 return _gdi
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1251 def ToString(*args
, **kwargs
):
1252 """ToString() -> String"""
1253 return _gdi
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1256 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1257 def __init__(self
, this
):
1259 if not hasattr(self
,"thisown"): self
.thisown
= 0
1260 self
.__class
__ = NativeEncodingInfo
1261 _gdi
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1264 def GetNativeFontEncoding(*args
, **kwargs
):
1265 """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo"""
1266 return _gdi
.GetNativeFontEncoding(*args
, **kwargs
)
1268 def TestFontEncoding(*args
, **kwargs
):
1269 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1270 return _gdi
.TestFontEncoding(*args
, **kwargs
)
1271 #---------------------------------------------------------------------------
1273 class FontMapper(object):
1275 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1276 def __init__(self
, *args
, **kwargs
):
1277 """__init__() -> FontMapper"""
1278 newobj
= _gdi
.new_FontMapper(*args
, **kwargs
)
1279 self
.this
= newobj
.this
1282 def __del__(self
, destroy
=_gdi
.delete_FontMapper
):
1285 if self
.thisown
: destroy(self
)
1288 def Get(*args
, **kwargs
):
1289 """Get() -> FontMapper"""
1290 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1292 Get
= staticmethod(Get
)
1293 def Set(*args
, **kwargs
):
1294 """Set(FontMapper mapper) -> FontMapper"""
1295 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1297 Set
= staticmethod(Set
)
1298 def CharsetToEncoding(*args
, **kwargs
):
1299 """CharsetToEncoding(String charset, bool interactive=True) -> int"""
1300 return _gdi
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1302 def GetSupportedEncodingsCount(*args
, **kwargs
):
1303 """GetSupportedEncodingsCount() -> size_t"""
1304 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1306 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1307 def GetEncoding(*args
, **kwargs
):
1308 """GetEncoding(size_t n) -> int"""
1309 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1311 GetEncoding
= staticmethod(GetEncoding
)
1312 def GetEncodingName(*args
, **kwargs
):
1313 """GetEncodingName(int encoding) -> String"""
1314 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1316 GetEncodingName
= staticmethod(GetEncodingName
)
1317 def GetEncodingDescription(*args
, **kwargs
):
1318 """GetEncodingDescription(int encoding) -> String"""
1319 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1321 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1322 def SetConfig(*args
, **kwargs
):
1323 """SetConfig(ConfigBase config)"""
1324 return _gdi
.FontMapper_SetConfig(*args
, **kwargs
)
1326 def SetConfigPath(*args
, **kwargs
):
1327 """SetConfigPath(String prefix)"""
1328 return _gdi
.FontMapper_SetConfigPath(*args
, **kwargs
)
1330 def GetDefaultConfigPath(*args
, **kwargs
):
1331 """GetDefaultConfigPath() -> String"""
1332 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1334 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1335 def GetAltForEncoding(*args
, **kwargs
):
1336 """GetAltForEncoding(int encoding, String facename=EmptyString, bool interactive=True) -> PyObject"""
1337 return _gdi
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1339 def IsEncodingAvailable(*args
, **kwargs
):
1340 """IsEncodingAvailable(int encoding, String facename=EmptyString) -> bool"""
1341 return _gdi
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1343 def SetDialogParent(*args
, **kwargs
):
1344 """SetDialogParent(Window parent)"""
1345 return _gdi
.FontMapper_SetDialogParent(*args
, **kwargs
)
1347 def SetDialogTitle(*args
, **kwargs
):
1348 """SetDialogTitle(String title)"""
1349 return _gdi
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1352 class FontMapperPtr(FontMapper
):
1353 def __init__(self
, this
):
1355 if not hasattr(self
,"thisown"): self
.thisown
= 0
1356 self
.__class
__ = FontMapper
1357 _gdi
.FontMapper_swigregister(FontMapperPtr
)
1359 def FontMapper_Get(*args
, **kwargs
):
1360 """FontMapper_Get() -> FontMapper"""
1361 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1363 def FontMapper_Set(*args
, **kwargs
):
1364 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1365 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1367 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1368 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1369 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1371 def FontMapper_GetEncoding(*args
, **kwargs
):
1372 """FontMapper_GetEncoding(size_t n) -> int"""
1373 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1375 def FontMapper_GetEncodingName(*args
, **kwargs
):
1376 """FontMapper_GetEncodingName(int encoding) -> String"""
1377 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1379 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1380 """FontMapper_GetEncodingDescription(int encoding) -> String"""
1381 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1383 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1384 """FontMapper_GetDefaultConfigPath() -> String"""
1385 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1387 #---------------------------------------------------------------------------
1389 class Font(GDIObject
):
1391 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1392 def __init__(self
, *args
, **kwargs
):
1394 __init__(int pointSize, int family, int style, int weight, bool underline=False,
1395 String face=EmptyString,
1396 int encoding=FONTENCODING_DEFAULT) -> Font
1398 newobj
= _gdi
.new_Font(*args
, **kwargs
)
1399 self
.this
= newobj
.this
1402 def __del__(self
, destroy
=_gdi
.delete_Font
):
1405 if self
.thisown
: destroy(self
)
1408 def Ok(*args
, **kwargs
):
1410 return _gdi
.Font_Ok(*args
, **kwargs
)
1412 def __nonzero__(self
): return self
.Ok()
1413 def __eq__(*args
, **kwargs
):
1414 """__eq__(Font font) -> bool"""
1415 return _gdi
.Font___eq__(*args
, **kwargs
)
1417 def __ne__(*args
, **kwargs
):
1418 """__ne__(Font font) -> bool"""
1419 return _gdi
.Font___ne__(*args
, **kwargs
)
1421 def GetPointSize(*args
, **kwargs
):
1422 """GetPointSize() -> int"""
1423 return _gdi
.Font_GetPointSize(*args
, **kwargs
)
1425 def GetFamily(*args
, **kwargs
):
1426 """GetFamily() -> int"""
1427 return _gdi
.Font_GetFamily(*args
, **kwargs
)
1429 def GetStyle(*args
, **kwargs
):
1430 """GetStyle() -> int"""
1431 return _gdi
.Font_GetStyle(*args
, **kwargs
)
1433 def GetWeight(*args
, **kwargs
):
1434 """GetWeight() -> int"""
1435 return _gdi
.Font_GetWeight(*args
, **kwargs
)
1437 def GetUnderlined(*args
, **kwargs
):
1438 """GetUnderlined() -> bool"""
1439 return _gdi
.Font_GetUnderlined(*args
, **kwargs
)
1441 def GetFaceName(*args
, **kwargs
):
1442 """GetFaceName() -> String"""
1443 return _gdi
.Font_GetFaceName(*args
, **kwargs
)
1445 def GetEncoding(*args
, **kwargs
):
1446 """GetEncoding() -> int"""
1447 return _gdi
.Font_GetEncoding(*args
, **kwargs
)
1449 def GetNativeFontInfo(*args
, **kwargs
):
1450 """GetNativeFontInfo() -> NativeFontInfo"""
1451 return _gdi
.Font_GetNativeFontInfo(*args
, **kwargs
)
1453 def IsFixedWidth(*args
, **kwargs
):
1454 """IsFixedWidth() -> bool"""
1455 return _gdi
.Font_IsFixedWidth(*args
, **kwargs
)
1457 def GetNativeFontInfoDesc(*args
, **kwargs
):
1458 """GetNativeFontInfoDesc() -> String"""
1459 return _gdi
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1461 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1462 """GetNativeFontInfoUserDesc() -> String"""
1463 return _gdi
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1465 def SetPointSize(*args
, **kwargs
):
1466 """SetPointSize(int pointSize)"""
1467 return _gdi
.Font_SetPointSize(*args
, **kwargs
)
1469 def SetFamily(*args
, **kwargs
):
1470 """SetFamily(int family)"""
1471 return _gdi
.Font_SetFamily(*args
, **kwargs
)
1473 def SetStyle(*args
, **kwargs
):
1474 """SetStyle(int style)"""
1475 return _gdi
.Font_SetStyle(*args
, **kwargs
)
1477 def SetWeight(*args
, **kwargs
):
1478 """SetWeight(int weight)"""
1479 return _gdi
.Font_SetWeight(*args
, **kwargs
)
1481 def SetFaceName(*args
, **kwargs
):
1482 """SetFaceName(String faceName)"""
1483 return _gdi
.Font_SetFaceName(*args
, **kwargs
)
1485 def SetUnderlined(*args
, **kwargs
):
1486 """SetUnderlined(bool underlined)"""
1487 return _gdi
.Font_SetUnderlined(*args
, **kwargs
)
1489 def SetEncoding(*args
, **kwargs
):
1490 """SetEncoding(int encoding)"""
1491 return _gdi
.Font_SetEncoding(*args
, **kwargs
)
1493 def SetNativeFontInfo(*args
, **kwargs
):
1494 """SetNativeFontInfo(NativeFontInfo info)"""
1495 return _gdi
.Font_SetNativeFontInfo(*args
, **kwargs
)
1497 def SetNativeFontInfoFromString(*args
, **kwargs
):
1498 """SetNativeFontInfoFromString(String info)"""
1499 return _gdi
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1501 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1502 """SetNativeFontInfoUserDesc(String info)"""
1503 return _gdi
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1505 def GetFamilyString(*args
, **kwargs
):
1506 """GetFamilyString() -> String"""
1507 return _gdi
.Font_GetFamilyString(*args
, **kwargs
)
1509 def GetStyleString(*args
, **kwargs
):
1510 """GetStyleString() -> String"""
1511 return _gdi
.Font_GetStyleString(*args
, **kwargs
)
1513 def GetWeightString(*args
, **kwargs
):
1514 """GetWeightString() -> String"""
1515 return _gdi
.Font_GetWeightString(*args
, **kwargs
)
1517 def SetNoAntiAliasing(*args
, **kwargs
):
1518 """SetNoAntiAliasing(bool no=True)"""
1519 return _gdi
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1521 def GetNoAntiAliasing(*args
, **kwargs
):
1522 """GetNoAntiAliasing() -> bool"""
1523 return _gdi
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1525 def GetDefaultEncoding(*args
, **kwargs
):
1526 """GetDefaultEncoding() -> int"""
1527 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1529 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1530 def SetDefaultEncoding(*args
, **kwargs
):
1531 """SetDefaultEncoding(int encoding)"""
1532 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1534 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1536 class FontPtr(Font
):
1537 def __init__(self
, this
):
1539 if not hasattr(self
,"thisown"): self
.thisown
= 0
1540 self
.__class
__ = Font
1541 _gdi
.Font_swigregister(FontPtr
)
1543 def FontFromNativeInfo(*args
, **kwargs
):
1544 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1545 val
= _gdi
.new_FontFromNativeInfo(*args
, **kwargs
)
1549 def FontFromNativeInfoString(*args
, **kwargs
):
1550 """FontFromNativeInfoString(String info) -> Font"""
1551 val
= _gdi
.new_FontFromNativeInfoString(*args
, **kwargs
)
1555 def Font2(*args
, **kwargs
):
1557 Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT,
1558 String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font
1560 val
= _gdi
.new_Font2(*args
, **kwargs
)
1564 def Font_GetDefaultEncoding(*args
, **kwargs
):
1565 """Font_GetDefaultEncoding() -> int"""
1566 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1568 def Font_SetDefaultEncoding(*args
, **kwargs
):
1569 """Font_SetDefaultEncoding(int encoding)"""
1570 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1572 #---------------------------------------------------------------------------
1574 class FontEnumerator(object):
1576 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1577 def __init__(self
, *args
, **kwargs
):
1578 """__init__() -> FontEnumerator"""
1579 newobj
= _gdi
.new_FontEnumerator(*args
, **kwargs
)
1580 self
.this
= newobj
.this
1583 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1585 def __del__(self
, destroy
=_gdi
.delete_FontEnumerator
):
1588 if self
.thisown
: destroy(self
)
1591 def _setCallbackInfo(*args
, **kwargs
):
1592 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1593 return _gdi
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1595 def EnumerateFacenames(*args
, **kwargs
):
1596 """EnumerateFacenames(int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1597 return _gdi
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1599 def EnumerateEncodings(*args
, **kwargs
):
1600 """EnumerateEncodings(String facename=EmptyString) -> bool"""
1601 return _gdi
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1603 def GetEncodings(*args
, **kwargs
):
1604 """GetEncodings() -> PyObject"""
1605 return _gdi
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1607 def GetFacenames(*args
, **kwargs
):
1608 """GetFacenames() -> PyObject"""
1609 return _gdi
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1612 class FontEnumeratorPtr(FontEnumerator
):
1613 def __init__(self
, this
):
1615 if not hasattr(self
,"thisown"): self
.thisown
= 0
1616 self
.__class
__ = FontEnumerator
1617 _gdi
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1619 #---------------------------------------------------------------------------
1621 LANGUAGE_DEFAULT
= _gdi
.LANGUAGE_DEFAULT
1622 LANGUAGE_UNKNOWN
= _gdi
.LANGUAGE_UNKNOWN
1623 LANGUAGE_ABKHAZIAN
= _gdi
.LANGUAGE_ABKHAZIAN
1624 LANGUAGE_AFAR
= _gdi
.LANGUAGE_AFAR
1625 LANGUAGE_AFRIKAANS
= _gdi
.LANGUAGE_AFRIKAANS
1626 LANGUAGE_ALBANIAN
= _gdi
.LANGUAGE_ALBANIAN
1627 LANGUAGE_AMHARIC
= _gdi
.LANGUAGE_AMHARIC
1628 LANGUAGE_ARABIC
= _gdi
.LANGUAGE_ARABIC
1629 LANGUAGE_ARABIC_ALGERIA
= _gdi
.LANGUAGE_ARABIC_ALGERIA
1630 LANGUAGE_ARABIC_BAHRAIN
= _gdi
.LANGUAGE_ARABIC_BAHRAIN
1631 LANGUAGE_ARABIC_EGYPT
= _gdi
.LANGUAGE_ARABIC_EGYPT
1632 LANGUAGE_ARABIC_IRAQ
= _gdi
.LANGUAGE_ARABIC_IRAQ
1633 LANGUAGE_ARABIC_JORDAN
= _gdi
.LANGUAGE_ARABIC_JORDAN
1634 LANGUAGE_ARABIC_KUWAIT
= _gdi
.LANGUAGE_ARABIC_KUWAIT
1635 LANGUAGE_ARABIC_LEBANON
= _gdi
.LANGUAGE_ARABIC_LEBANON
1636 LANGUAGE_ARABIC_LIBYA
= _gdi
.LANGUAGE_ARABIC_LIBYA
1637 LANGUAGE_ARABIC_MOROCCO
= _gdi
.LANGUAGE_ARABIC_MOROCCO
1638 LANGUAGE_ARABIC_OMAN
= _gdi
.LANGUAGE_ARABIC_OMAN
1639 LANGUAGE_ARABIC_QATAR
= _gdi
.LANGUAGE_ARABIC_QATAR
1640 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi
.LANGUAGE_ARABIC_SAUDI_ARABIA
1641 LANGUAGE_ARABIC_SUDAN
= _gdi
.LANGUAGE_ARABIC_SUDAN
1642 LANGUAGE_ARABIC_SYRIA
= _gdi
.LANGUAGE_ARABIC_SYRIA
1643 LANGUAGE_ARABIC_TUNISIA
= _gdi
.LANGUAGE_ARABIC_TUNISIA
1644 LANGUAGE_ARABIC_UAE
= _gdi
.LANGUAGE_ARABIC_UAE
1645 LANGUAGE_ARABIC_YEMEN
= _gdi
.LANGUAGE_ARABIC_YEMEN
1646 LANGUAGE_ARMENIAN
= _gdi
.LANGUAGE_ARMENIAN
1647 LANGUAGE_ASSAMESE
= _gdi
.LANGUAGE_ASSAMESE
1648 LANGUAGE_AYMARA
= _gdi
.LANGUAGE_AYMARA
1649 LANGUAGE_AZERI
= _gdi
.LANGUAGE_AZERI
1650 LANGUAGE_AZERI_CYRILLIC
= _gdi
.LANGUAGE_AZERI_CYRILLIC
1651 LANGUAGE_AZERI_LATIN
= _gdi
.LANGUAGE_AZERI_LATIN
1652 LANGUAGE_BASHKIR
= _gdi
.LANGUAGE_BASHKIR
1653 LANGUAGE_BASQUE
= _gdi
.LANGUAGE_BASQUE
1654 LANGUAGE_BELARUSIAN
= _gdi
.LANGUAGE_BELARUSIAN
1655 LANGUAGE_BENGALI
= _gdi
.LANGUAGE_BENGALI
1656 LANGUAGE_BHUTANI
= _gdi
.LANGUAGE_BHUTANI
1657 LANGUAGE_BIHARI
= _gdi
.LANGUAGE_BIHARI
1658 LANGUAGE_BISLAMA
= _gdi
.LANGUAGE_BISLAMA
1659 LANGUAGE_BRETON
= _gdi
.LANGUAGE_BRETON
1660 LANGUAGE_BULGARIAN
= _gdi
.LANGUAGE_BULGARIAN
1661 LANGUAGE_BURMESE
= _gdi
.LANGUAGE_BURMESE
1662 LANGUAGE_CAMBODIAN
= _gdi
.LANGUAGE_CAMBODIAN
1663 LANGUAGE_CATALAN
= _gdi
.LANGUAGE_CATALAN
1664 LANGUAGE_CHINESE
= _gdi
.LANGUAGE_CHINESE
1665 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi
.LANGUAGE_CHINESE_SIMPLIFIED
1666 LANGUAGE_CHINESE_TRADITIONAL
= _gdi
.LANGUAGE_CHINESE_TRADITIONAL
1667 LANGUAGE_CHINESE_HONGKONG
= _gdi
.LANGUAGE_CHINESE_HONGKONG
1668 LANGUAGE_CHINESE_MACAU
= _gdi
.LANGUAGE_CHINESE_MACAU
1669 LANGUAGE_CHINESE_SINGAPORE
= _gdi
.LANGUAGE_CHINESE_SINGAPORE
1670 LANGUAGE_CHINESE_TAIWAN
= _gdi
.LANGUAGE_CHINESE_TAIWAN
1671 LANGUAGE_CORSICAN
= _gdi
.LANGUAGE_CORSICAN
1672 LANGUAGE_CROATIAN
= _gdi
.LANGUAGE_CROATIAN
1673 LANGUAGE_CZECH
= _gdi
.LANGUAGE_CZECH
1674 LANGUAGE_DANISH
= _gdi
.LANGUAGE_DANISH
1675 LANGUAGE_DUTCH
= _gdi
.LANGUAGE_DUTCH
1676 LANGUAGE_DUTCH_BELGIAN
= _gdi
.LANGUAGE_DUTCH_BELGIAN
1677 LANGUAGE_ENGLISH
= _gdi
.LANGUAGE_ENGLISH
1678 LANGUAGE_ENGLISH_UK
= _gdi
.LANGUAGE_ENGLISH_UK
1679 LANGUAGE_ENGLISH_US
= _gdi
.LANGUAGE_ENGLISH_US
1680 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi
.LANGUAGE_ENGLISH_AUSTRALIA
1681 LANGUAGE_ENGLISH_BELIZE
= _gdi
.LANGUAGE_ENGLISH_BELIZE
1682 LANGUAGE_ENGLISH_BOTSWANA
= _gdi
.LANGUAGE_ENGLISH_BOTSWANA
1683 LANGUAGE_ENGLISH_CANADA
= _gdi
.LANGUAGE_ENGLISH_CANADA
1684 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi
.LANGUAGE_ENGLISH_CARIBBEAN
1685 LANGUAGE_ENGLISH_DENMARK
= _gdi
.LANGUAGE_ENGLISH_DENMARK
1686 LANGUAGE_ENGLISH_EIRE
= _gdi
.LANGUAGE_ENGLISH_EIRE
1687 LANGUAGE_ENGLISH_JAMAICA
= _gdi
.LANGUAGE_ENGLISH_JAMAICA
1688 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi
.LANGUAGE_ENGLISH_NEW_ZEALAND
1689 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi
.LANGUAGE_ENGLISH_PHILIPPINES
1690 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1691 LANGUAGE_ENGLISH_TRINIDAD
= _gdi
.LANGUAGE_ENGLISH_TRINIDAD
1692 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi
.LANGUAGE_ENGLISH_ZIMBABWE
1693 LANGUAGE_ESPERANTO
= _gdi
.LANGUAGE_ESPERANTO
1694 LANGUAGE_ESTONIAN
= _gdi
.LANGUAGE_ESTONIAN
1695 LANGUAGE_FAEROESE
= _gdi
.LANGUAGE_FAEROESE
1696 LANGUAGE_FARSI
= _gdi
.LANGUAGE_FARSI
1697 LANGUAGE_FIJI
= _gdi
.LANGUAGE_FIJI
1698 LANGUAGE_FINNISH
= _gdi
.LANGUAGE_FINNISH
1699 LANGUAGE_FRENCH
= _gdi
.LANGUAGE_FRENCH
1700 LANGUAGE_FRENCH_BELGIAN
= _gdi
.LANGUAGE_FRENCH_BELGIAN
1701 LANGUAGE_FRENCH_CANADIAN
= _gdi
.LANGUAGE_FRENCH_CANADIAN
1702 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi
.LANGUAGE_FRENCH_LUXEMBOURG
1703 LANGUAGE_FRENCH_MONACO
= _gdi
.LANGUAGE_FRENCH_MONACO
1704 LANGUAGE_FRENCH_SWISS
= _gdi
.LANGUAGE_FRENCH_SWISS
1705 LANGUAGE_FRISIAN
= _gdi
.LANGUAGE_FRISIAN
1706 LANGUAGE_GALICIAN
= _gdi
.LANGUAGE_GALICIAN
1707 LANGUAGE_GEORGIAN
= _gdi
.LANGUAGE_GEORGIAN
1708 LANGUAGE_GERMAN
= _gdi
.LANGUAGE_GERMAN
1709 LANGUAGE_GERMAN_AUSTRIAN
= _gdi
.LANGUAGE_GERMAN_AUSTRIAN
1710 LANGUAGE_GERMAN_BELGIUM
= _gdi
.LANGUAGE_GERMAN_BELGIUM
1711 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi
.LANGUAGE_GERMAN_LIECHTENSTEIN
1712 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi
.LANGUAGE_GERMAN_LUXEMBOURG
1713 LANGUAGE_GERMAN_SWISS
= _gdi
.LANGUAGE_GERMAN_SWISS
1714 LANGUAGE_GREEK
= _gdi
.LANGUAGE_GREEK
1715 LANGUAGE_GREENLANDIC
= _gdi
.LANGUAGE_GREENLANDIC
1716 LANGUAGE_GUARANI
= _gdi
.LANGUAGE_GUARANI
1717 LANGUAGE_GUJARATI
= _gdi
.LANGUAGE_GUJARATI
1718 LANGUAGE_HAUSA
= _gdi
.LANGUAGE_HAUSA
1719 LANGUAGE_HEBREW
= _gdi
.LANGUAGE_HEBREW
1720 LANGUAGE_HINDI
= _gdi
.LANGUAGE_HINDI
1721 LANGUAGE_HUNGARIAN
= _gdi
.LANGUAGE_HUNGARIAN
1722 LANGUAGE_ICELANDIC
= _gdi
.LANGUAGE_ICELANDIC
1723 LANGUAGE_INDONESIAN
= _gdi
.LANGUAGE_INDONESIAN
1724 LANGUAGE_INTERLINGUA
= _gdi
.LANGUAGE_INTERLINGUA
1725 LANGUAGE_INTERLINGUE
= _gdi
.LANGUAGE_INTERLINGUE
1726 LANGUAGE_INUKTITUT
= _gdi
.LANGUAGE_INUKTITUT
1727 LANGUAGE_INUPIAK
= _gdi
.LANGUAGE_INUPIAK
1728 LANGUAGE_IRISH
= _gdi
.LANGUAGE_IRISH
1729 LANGUAGE_ITALIAN
= _gdi
.LANGUAGE_ITALIAN
1730 LANGUAGE_ITALIAN_SWISS
= _gdi
.LANGUAGE_ITALIAN_SWISS
1731 LANGUAGE_JAPANESE
= _gdi
.LANGUAGE_JAPANESE
1732 LANGUAGE_JAVANESE
= _gdi
.LANGUAGE_JAVANESE
1733 LANGUAGE_KANNADA
= _gdi
.LANGUAGE_KANNADA
1734 LANGUAGE_KASHMIRI
= _gdi
.LANGUAGE_KASHMIRI
1735 LANGUAGE_KASHMIRI_INDIA
= _gdi
.LANGUAGE_KASHMIRI_INDIA
1736 LANGUAGE_KAZAKH
= _gdi
.LANGUAGE_KAZAKH
1737 LANGUAGE_KERNEWEK
= _gdi
.LANGUAGE_KERNEWEK
1738 LANGUAGE_KINYARWANDA
= _gdi
.LANGUAGE_KINYARWANDA
1739 LANGUAGE_KIRGHIZ
= _gdi
.LANGUAGE_KIRGHIZ
1740 LANGUAGE_KIRUNDI
= _gdi
.LANGUAGE_KIRUNDI
1741 LANGUAGE_KONKANI
= _gdi
.LANGUAGE_KONKANI
1742 LANGUAGE_KOREAN
= _gdi
.LANGUAGE_KOREAN
1743 LANGUAGE_KURDISH
= _gdi
.LANGUAGE_KURDISH
1744 LANGUAGE_LAOTHIAN
= _gdi
.LANGUAGE_LAOTHIAN
1745 LANGUAGE_LATIN
= _gdi
.LANGUAGE_LATIN
1746 LANGUAGE_LATVIAN
= _gdi
.LANGUAGE_LATVIAN
1747 LANGUAGE_LINGALA
= _gdi
.LANGUAGE_LINGALA
1748 LANGUAGE_LITHUANIAN
= _gdi
.LANGUAGE_LITHUANIAN
1749 LANGUAGE_MACEDONIAN
= _gdi
.LANGUAGE_MACEDONIAN
1750 LANGUAGE_MALAGASY
= _gdi
.LANGUAGE_MALAGASY
1751 LANGUAGE_MALAY
= _gdi
.LANGUAGE_MALAY
1752 LANGUAGE_MALAYALAM
= _gdi
.LANGUAGE_MALAYALAM
1753 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1754 LANGUAGE_MALAY_MALAYSIA
= _gdi
.LANGUAGE_MALAY_MALAYSIA
1755 LANGUAGE_MALTESE
= _gdi
.LANGUAGE_MALTESE
1756 LANGUAGE_MANIPURI
= _gdi
.LANGUAGE_MANIPURI
1757 LANGUAGE_MAORI
= _gdi
.LANGUAGE_MAORI
1758 LANGUAGE_MARATHI
= _gdi
.LANGUAGE_MARATHI
1759 LANGUAGE_MOLDAVIAN
= _gdi
.LANGUAGE_MOLDAVIAN
1760 LANGUAGE_MONGOLIAN
= _gdi
.LANGUAGE_MONGOLIAN
1761 LANGUAGE_NAURU
= _gdi
.LANGUAGE_NAURU
1762 LANGUAGE_NEPALI
= _gdi
.LANGUAGE_NEPALI
1763 LANGUAGE_NEPALI_INDIA
= _gdi
.LANGUAGE_NEPALI_INDIA
1764 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi
.LANGUAGE_NORWEGIAN_BOKMAL
1765 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi
.LANGUAGE_NORWEGIAN_NYNORSK
1766 LANGUAGE_OCCITAN
= _gdi
.LANGUAGE_OCCITAN
1767 LANGUAGE_ORIYA
= _gdi
.LANGUAGE_ORIYA
1768 LANGUAGE_OROMO
= _gdi
.LANGUAGE_OROMO
1769 LANGUAGE_PASHTO
= _gdi
.LANGUAGE_PASHTO
1770 LANGUAGE_POLISH
= _gdi
.LANGUAGE_POLISH
1771 LANGUAGE_PORTUGUESE
= _gdi
.LANGUAGE_PORTUGUESE
1772 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi
.LANGUAGE_PORTUGUESE_BRAZILIAN
1773 LANGUAGE_PUNJABI
= _gdi
.LANGUAGE_PUNJABI
1774 LANGUAGE_QUECHUA
= _gdi
.LANGUAGE_QUECHUA
1775 LANGUAGE_RHAETO_ROMANCE
= _gdi
.LANGUAGE_RHAETO_ROMANCE
1776 LANGUAGE_ROMANIAN
= _gdi
.LANGUAGE_ROMANIAN
1777 LANGUAGE_RUSSIAN
= _gdi
.LANGUAGE_RUSSIAN
1778 LANGUAGE_RUSSIAN_UKRAINE
= _gdi
.LANGUAGE_RUSSIAN_UKRAINE
1779 LANGUAGE_SAMOAN
= _gdi
.LANGUAGE_SAMOAN
1780 LANGUAGE_SANGHO
= _gdi
.LANGUAGE_SANGHO
1781 LANGUAGE_SANSKRIT
= _gdi
.LANGUAGE_SANSKRIT
1782 LANGUAGE_SCOTS_GAELIC
= _gdi
.LANGUAGE_SCOTS_GAELIC
1783 LANGUAGE_SERBIAN
= _gdi
.LANGUAGE_SERBIAN
1784 LANGUAGE_SERBIAN_CYRILLIC
= _gdi
.LANGUAGE_SERBIAN_CYRILLIC
1785 LANGUAGE_SERBIAN_LATIN
= _gdi
.LANGUAGE_SERBIAN_LATIN
1786 LANGUAGE_SERBO_CROATIAN
= _gdi
.LANGUAGE_SERBO_CROATIAN
1787 LANGUAGE_SESOTHO
= _gdi
.LANGUAGE_SESOTHO
1788 LANGUAGE_SETSWANA
= _gdi
.LANGUAGE_SETSWANA
1789 LANGUAGE_SHONA
= _gdi
.LANGUAGE_SHONA
1790 LANGUAGE_SINDHI
= _gdi
.LANGUAGE_SINDHI
1791 LANGUAGE_SINHALESE
= _gdi
.LANGUAGE_SINHALESE
1792 LANGUAGE_SISWATI
= _gdi
.LANGUAGE_SISWATI
1793 LANGUAGE_SLOVAK
= _gdi
.LANGUAGE_SLOVAK
1794 LANGUAGE_SLOVENIAN
= _gdi
.LANGUAGE_SLOVENIAN
1795 LANGUAGE_SOMALI
= _gdi
.LANGUAGE_SOMALI
1796 LANGUAGE_SPANISH
= _gdi
.LANGUAGE_SPANISH
1797 LANGUAGE_SPANISH_ARGENTINA
= _gdi
.LANGUAGE_SPANISH_ARGENTINA
1798 LANGUAGE_SPANISH_BOLIVIA
= _gdi
.LANGUAGE_SPANISH_BOLIVIA
1799 LANGUAGE_SPANISH_CHILE
= _gdi
.LANGUAGE_SPANISH_CHILE
1800 LANGUAGE_SPANISH_COLOMBIA
= _gdi
.LANGUAGE_SPANISH_COLOMBIA
1801 LANGUAGE_SPANISH_COSTA_RICA
= _gdi
.LANGUAGE_SPANISH_COSTA_RICA
1802 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
1803 LANGUAGE_SPANISH_ECUADOR
= _gdi
.LANGUAGE_SPANISH_ECUADOR
1804 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi
.LANGUAGE_SPANISH_EL_SALVADOR
1805 LANGUAGE_SPANISH_GUATEMALA
= _gdi
.LANGUAGE_SPANISH_GUATEMALA
1806 LANGUAGE_SPANISH_HONDURAS
= _gdi
.LANGUAGE_SPANISH_HONDURAS
1807 LANGUAGE_SPANISH_MEXICAN
= _gdi
.LANGUAGE_SPANISH_MEXICAN
1808 LANGUAGE_SPANISH_MODERN
= _gdi
.LANGUAGE_SPANISH_MODERN
1809 LANGUAGE_SPANISH_NICARAGUA
= _gdi
.LANGUAGE_SPANISH_NICARAGUA
1810 LANGUAGE_SPANISH_PANAMA
= _gdi
.LANGUAGE_SPANISH_PANAMA
1811 LANGUAGE_SPANISH_PARAGUAY
= _gdi
.LANGUAGE_SPANISH_PARAGUAY
1812 LANGUAGE_SPANISH_PERU
= _gdi
.LANGUAGE_SPANISH_PERU
1813 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi
.LANGUAGE_SPANISH_PUERTO_RICO
1814 LANGUAGE_SPANISH_URUGUAY
= _gdi
.LANGUAGE_SPANISH_URUGUAY
1815 LANGUAGE_SPANISH_US
= _gdi
.LANGUAGE_SPANISH_US
1816 LANGUAGE_SPANISH_VENEZUELA
= _gdi
.LANGUAGE_SPANISH_VENEZUELA
1817 LANGUAGE_SUNDANESE
= _gdi
.LANGUAGE_SUNDANESE
1818 LANGUAGE_SWAHILI
= _gdi
.LANGUAGE_SWAHILI
1819 LANGUAGE_SWEDISH
= _gdi
.LANGUAGE_SWEDISH
1820 LANGUAGE_SWEDISH_FINLAND
= _gdi
.LANGUAGE_SWEDISH_FINLAND
1821 LANGUAGE_TAGALOG
= _gdi
.LANGUAGE_TAGALOG
1822 LANGUAGE_TAJIK
= _gdi
.LANGUAGE_TAJIK
1823 LANGUAGE_TAMIL
= _gdi
.LANGUAGE_TAMIL
1824 LANGUAGE_TATAR
= _gdi
.LANGUAGE_TATAR
1825 LANGUAGE_TELUGU
= _gdi
.LANGUAGE_TELUGU
1826 LANGUAGE_THAI
= _gdi
.LANGUAGE_THAI
1827 LANGUAGE_TIBETAN
= _gdi
.LANGUAGE_TIBETAN
1828 LANGUAGE_TIGRINYA
= _gdi
.LANGUAGE_TIGRINYA
1829 LANGUAGE_TONGA
= _gdi
.LANGUAGE_TONGA
1830 LANGUAGE_TSONGA
= _gdi
.LANGUAGE_TSONGA
1831 LANGUAGE_TURKISH
= _gdi
.LANGUAGE_TURKISH
1832 LANGUAGE_TURKMEN
= _gdi
.LANGUAGE_TURKMEN
1833 LANGUAGE_TWI
= _gdi
.LANGUAGE_TWI
1834 LANGUAGE_UIGHUR
= _gdi
.LANGUAGE_UIGHUR
1835 LANGUAGE_UKRAINIAN
= _gdi
.LANGUAGE_UKRAINIAN
1836 LANGUAGE_URDU
= _gdi
.LANGUAGE_URDU
1837 LANGUAGE_URDU_INDIA
= _gdi
.LANGUAGE_URDU_INDIA
1838 LANGUAGE_URDU_PAKISTAN
= _gdi
.LANGUAGE_URDU_PAKISTAN
1839 LANGUAGE_UZBEK
= _gdi
.LANGUAGE_UZBEK
1840 LANGUAGE_UZBEK_CYRILLIC
= _gdi
.LANGUAGE_UZBEK_CYRILLIC
1841 LANGUAGE_UZBEK_LATIN
= _gdi
.LANGUAGE_UZBEK_LATIN
1842 LANGUAGE_VIETNAMESE
= _gdi
.LANGUAGE_VIETNAMESE
1843 LANGUAGE_VOLAPUK
= _gdi
.LANGUAGE_VOLAPUK
1844 LANGUAGE_WELSH
= _gdi
.LANGUAGE_WELSH
1845 LANGUAGE_WOLOF
= _gdi
.LANGUAGE_WOLOF
1846 LANGUAGE_XHOSA
= _gdi
.LANGUAGE_XHOSA
1847 LANGUAGE_YIDDISH
= _gdi
.LANGUAGE_YIDDISH
1848 LANGUAGE_YORUBA
= _gdi
.LANGUAGE_YORUBA
1849 LANGUAGE_ZHUANG
= _gdi
.LANGUAGE_ZHUANG
1850 LANGUAGE_ZULU
= _gdi
.LANGUAGE_ZULU
1851 LANGUAGE_USER_DEFINED
= _gdi
.LANGUAGE_USER_DEFINED
1852 class LanguageInfo(object):
1853 def __init__(self
): raise RuntimeError, "No constructor defined"
1855 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1856 Language
= property(_gdi
.LanguageInfo_Language_get
, _gdi
.LanguageInfo_Language_set
)
1857 CanonicalName
= property(_gdi
.LanguageInfo_CanonicalName_get
, _gdi
.LanguageInfo_CanonicalName_set
)
1858 Description
= property(_gdi
.LanguageInfo_Description_get
, _gdi
.LanguageInfo_Description_set
)
1860 class LanguageInfoPtr(LanguageInfo
):
1861 def __init__(self
, this
):
1863 if not hasattr(self
,"thisown"): self
.thisown
= 0
1864 self
.__class
__ = LanguageInfo
1865 _gdi
.LanguageInfo_swigregister(LanguageInfoPtr
)
1867 LOCALE_CAT_NUMBER
= _gdi
.LOCALE_CAT_NUMBER
1868 LOCALE_CAT_DATE
= _gdi
.LOCALE_CAT_DATE
1869 LOCALE_CAT_MONEY
= _gdi
.LOCALE_CAT_MONEY
1870 LOCALE_CAT_MAX
= _gdi
.LOCALE_CAT_MAX
1871 LOCALE_THOUSANDS_SEP
= _gdi
.LOCALE_THOUSANDS_SEP
1872 LOCALE_DECIMAL_POINT
= _gdi
.LOCALE_DECIMAL_POINT
1873 LOCALE_LOAD_DEFAULT
= _gdi
.LOCALE_LOAD_DEFAULT
1874 LOCALE_CONV_ENCODING
= _gdi
.LOCALE_CONV_ENCODING
1875 class Locale(object):
1877 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1878 def __init__(self
, *args
, **kwargs
):
1879 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
1880 newobj
= _gdi
.new_Locale(*args
, **kwargs
)
1881 self
.this
= newobj
.this
1884 def __del__(self
, destroy
=_gdi
.delete_Locale
):
1887 if self
.thisown
: destroy(self
)
1890 def Init1(*args
, **kwargs
):
1892 Init1(String szName, String szShort=EmptyString, String szLocale=EmptyString,
1893 bool bLoadDefault=True,
1894 bool bConvertEncoding=False) -> bool
1896 return _gdi
.Locale_Init1(*args
, **kwargs
)
1898 def Init2(*args
, **kwargs
):
1899 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
1900 return _gdi
.Locale_Init2(*args
, **kwargs
)
1902 def Init(self
, *_args
, **_kwargs
):
1903 if type(_args
[0]) in [type(''), type(u
'')]:
1904 val
= self
.Init1(*_args
, **_kwargs
)
1906 val
= self
.Init2(*_args
, **_kwargs
)
1909 def GetSystemLanguage(*args
, **kwargs
):
1910 """GetSystemLanguage() -> int"""
1911 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1913 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
1914 def GetSystemEncoding(*args
, **kwargs
):
1915 """GetSystemEncoding() -> int"""
1916 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1918 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
1919 def GetSystemEncodingName(*args
, **kwargs
):
1920 """GetSystemEncodingName() -> String"""
1921 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1923 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
1924 def IsOk(*args
, **kwargs
):
1925 """IsOk() -> bool"""
1926 return _gdi
.Locale_IsOk(*args
, **kwargs
)
1928 def __nonzero__(self
): return self
.IsOk()
1929 def GetLocale(*args
, **kwargs
):
1930 """GetLocale() -> String"""
1931 return _gdi
.Locale_GetLocale(*args
, **kwargs
)
1933 def GetLanguage(*args
, **kwargs
):
1934 """GetLanguage() -> int"""
1935 return _gdi
.Locale_GetLanguage(*args
, **kwargs
)
1937 def GetSysName(*args
, **kwargs
):
1938 """GetSysName() -> String"""
1939 return _gdi
.Locale_GetSysName(*args
, **kwargs
)
1941 def GetCanonicalName(*args
, **kwargs
):
1942 """GetCanonicalName() -> String"""
1943 return _gdi
.Locale_GetCanonicalName(*args
, **kwargs
)
1945 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
1946 """AddCatalogLookupPathPrefix(String prefix)"""
1947 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1949 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
1950 def AddCatalog(*args
, **kwargs
):
1951 """AddCatalog(String szDomain) -> bool"""
1952 return _gdi
.Locale_AddCatalog(*args
, **kwargs
)
1954 def IsLoaded(*args
, **kwargs
):
1955 """IsLoaded(String szDomain) -> bool"""
1956 return _gdi
.Locale_IsLoaded(*args
, **kwargs
)
1958 def GetLanguageInfo(*args
, **kwargs
):
1959 """GetLanguageInfo(int lang) -> LanguageInfo"""
1960 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1962 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
1963 def GetLanguageName(*args
, **kwargs
):
1964 """GetLanguageName(int lang) -> String"""
1965 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1967 GetLanguageName
= staticmethod(GetLanguageName
)
1968 def FindLanguageInfo(*args
, **kwargs
):
1969 """FindLanguageInfo(String locale) -> LanguageInfo"""
1970 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1972 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
1973 def AddLanguage(*args
, **kwargs
):
1974 """AddLanguage(LanguageInfo info)"""
1975 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1977 AddLanguage
= staticmethod(AddLanguage
)
1978 def GetString(*args
, **kwargs
):
1979 """GetString(String szOrigString, String szDomain=EmptyString) -> String"""
1980 return _gdi
.Locale_GetString(*args
, **kwargs
)
1982 def GetName(*args
, **kwargs
):
1983 """GetName() -> String"""
1984 return _gdi
.Locale_GetName(*args
, **kwargs
)
1987 class LocalePtr(Locale
):
1988 def __init__(self
, this
):
1990 if not hasattr(self
,"thisown"): self
.thisown
= 0
1991 self
.__class
__ = Locale
1992 _gdi
.Locale_swigregister(LocalePtr
)
1994 def Locale_GetSystemLanguage(*args
, **kwargs
):
1995 """Locale_GetSystemLanguage() -> int"""
1996 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1998 def Locale_GetSystemEncoding(*args
, **kwargs
):
1999 """Locale_GetSystemEncoding() -> int"""
2000 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
2002 def Locale_GetSystemEncodingName(*args
, **kwargs
):
2003 """Locale_GetSystemEncodingName() -> String"""
2004 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2006 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
2007 """Locale_AddCatalogLookupPathPrefix(String prefix)"""
2008 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2010 def Locale_GetLanguageInfo(*args
, **kwargs
):
2011 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
2012 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
2014 def Locale_GetLanguageName(*args
, **kwargs
):
2015 """Locale_GetLanguageName(int lang) -> String"""
2016 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
2018 def Locale_FindLanguageInfo(*args
, **kwargs
):
2019 """Locale_FindLanguageInfo(String locale) -> LanguageInfo"""
2020 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
2022 def Locale_AddLanguage(*args
, **kwargs
):
2023 """Locale_AddLanguage(LanguageInfo info)"""
2024 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
2027 def GetLocale(*args
, **kwargs
):
2028 """GetLocale() -> Locale"""
2029 return _gdi
.GetLocale(*args
, **kwargs
)
2030 #---------------------------------------------------------------------------
2032 CONVERT_STRICT
= _gdi
.CONVERT_STRICT
2033 CONVERT_SUBSTITUTE
= _gdi
.CONVERT_SUBSTITUTE
2034 PLATFORM_CURRENT
= _gdi
.PLATFORM_CURRENT
2035 PLATFORM_UNIX
= _gdi
.PLATFORM_UNIX
2036 PLATFORM_WINDOWS
= _gdi
.PLATFORM_WINDOWS
2037 PLATFORM_OS2
= _gdi
.PLATFORM_OS2
2038 PLATFORM_MAC
= _gdi
.PLATFORM_MAC
2039 class EncodingConverter(core
.Object
):
2041 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2042 def __init__(self
, *args
, **kwargs
):
2043 """__init__() -> EncodingConverter"""
2044 newobj
= _gdi
.new_EncodingConverter(*args
, **kwargs
)
2045 self
.this
= newobj
.this
2048 def __del__(self
, destroy
=_gdi
.delete_EncodingConverter
):
2051 if self
.thisown
: destroy(self
)
2054 def Init(*args
, **kwargs
):
2055 """Init(int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool"""
2056 return _gdi
.EncodingConverter_Init(*args
, **kwargs
)
2058 def Convert(*args
, **kwargs
):
2059 """Convert(String input) -> String"""
2060 return _gdi
.EncodingConverter_Convert(*args
, **kwargs
)
2062 def GetPlatformEquivalents(*args
, **kwargs
):
2063 """GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2064 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2066 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2067 def GetAllEquivalents(*args
, **kwargs
):
2068 """GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2069 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2071 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2072 def CanConvert(*args
, **kwargs
):
2073 """CanConvert(int encIn, int encOut) -> bool"""
2074 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2076 CanConvert
= staticmethod(CanConvert
)
2077 def __nonzero__(self
): return self
.IsOk()
2079 class EncodingConverterPtr(EncodingConverter
):
2080 def __init__(self
, this
):
2082 if not hasattr(self
,"thisown"): self
.thisown
= 0
2083 self
.__class
__ = EncodingConverter
2084 _gdi
.EncodingConverter_swigregister(EncodingConverterPtr
)
2086 def GetTranslation(*args
):
2088 GetTranslation(String str) -> String
2089 GetTranslation(String str, String strPlural, size_t n) -> String
2091 return _gdi
.GetTranslation(*args
)
2093 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2094 """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2095 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2097 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2098 """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2099 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2101 def EncodingConverter_CanConvert(*args
, **kwargs
):
2102 """EncodingConverter_CanConvert(int encIn, int encOut) -> bool"""
2103 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2105 #----------------------------------------------------------------------------
2106 # wxGTK sets the locale when initialized. Doing this at the Python
2107 # level should set it up to match what GTK is doing at the C level.
2108 if wx
.Platform
== "__WXGTK__":
2111 locale
.setlocale(locale
.LC_ALL
, "")
2115 # On MSW add the directory where the wxWindows catalogs were installed
2116 # to the default catalog path.
2117 if wx
.Platform
== "__WXMSW__":
2119 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2120 Locale_AddCatalogLookupPathPrefix(localedir
)
2123 #----------------------------------------------------------------------------
2125 #---------------------------------------------------------------------------
2127 class DC(core
.Object
):
2128 def __init__(self
): raise RuntimeError, "No constructor defined"
2130 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2131 def __del__(self
, destroy
=_gdi
.delete_DC
):
2134 if self
.thisown
: destroy(self
)
2137 def BeginDrawing(*args
, **kwargs
):
2138 """BeginDrawing()"""
2139 return _gdi
.DC_BeginDrawing(*args
, **kwargs
)
2141 def EndDrawing(*args
, **kwargs
):
2143 return _gdi
.DC_EndDrawing(*args
, **kwargs
)
2145 def FloodFillXY(*args
, **kwargs
):
2146 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2147 return _gdi
.DC_FloodFillXY(*args
, **kwargs
)
2149 def FloodFill(*args
, **kwargs
):
2150 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2151 return _gdi
.DC_FloodFill(*args
, **kwargs
)
2153 def GetPixelXY(*args
, **kwargs
):
2154 """GetPixelXY(int x, int y) -> Colour"""
2155 return _gdi
.DC_GetPixelXY(*args
, **kwargs
)
2157 def GetPixel(*args
, **kwargs
):
2158 """GetPixel(Point pt) -> Colour"""
2159 return _gdi
.DC_GetPixel(*args
, **kwargs
)
2161 def DrawLineXY(*args
, **kwargs
):
2162 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2163 return _gdi
.DC_DrawLineXY(*args
, **kwargs
)
2165 def DrawLine(*args
, **kwargs
):
2166 """DrawLine(Point pt1, Point pt2)"""
2167 return _gdi
.DC_DrawLine(*args
, **kwargs
)
2169 def CrossHairXY(*args
, **kwargs
):
2170 """CrossHairXY(int x, int y)"""
2171 return _gdi
.DC_CrossHairXY(*args
, **kwargs
)
2173 def CrossHair(*args
, **kwargs
):
2174 """CrossHair(Point pt)"""
2175 return _gdi
.DC_CrossHair(*args
, **kwargs
)
2177 def DrawArcXY(*args
, **kwargs
):
2178 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2179 return _gdi
.DC_DrawArcXY(*args
, **kwargs
)
2181 def DrawArc(*args
, **kwargs
):
2182 """DrawArc(Point pt1, Point pt2, Point centre)"""
2183 return _gdi
.DC_DrawArc(*args
, **kwargs
)
2185 def DrawCheckMarkXY(*args
, **kwargs
):
2186 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2187 return _gdi
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2189 def DrawCheckMark(*args
, **kwargs
):
2190 """DrawCheckMark(Rect rect)"""
2191 return _gdi
.DC_DrawCheckMark(*args
, **kwargs
)
2193 def DrawEllipticArcXY(*args
, **kwargs
):
2194 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2195 return _gdi
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2197 def DrawEllipticArc(*args
, **kwargs
):
2198 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2199 return _gdi
.DC_DrawEllipticArc(*args
, **kwargs
)
2201 def DrawPointXY(*args
, **kwargs
):
2202 """DrawPointXY(int x, int y)"""
2203 return _gdi
.DC_DrawPointXY(*args
, **kwargs
)
2205 def DrawPoint(*args
, **kwargs
):
2206 """DrawPoint(Point pt)"""
2207 return _gdi
.DC_DrawPoint(*args
, **kwargs
)
2209 def DrawRectangleXY(*args
, **kwargs
):
2210 """DrawRectangleXY(int x, int y, int width, int height)"""
2211 return _gdi
.DC_DrawRectangleXY(*args
, **kwargs
)
2213 def DrawRectangle(*args
, **kwargs
):
2214 """DrawRectangle(Point pt, Size sz)"""
2215 return _gdi
.DC_DrawRectangle(*args
, **kwargs
)
2217 def DrawRectangleRect(*args
, **kwargs
):
2218 """DrawRectangleRect(Rect rect)"""
2219 return _gdi
.DC_DrawRectangleRect(*args
, **kwargs
)
2221 def DrawRoundedRectangleXY(*args
, **kwargs
):
2222 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2223 return _gdi
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2225 def DrawRoundedRectangle(*args
, **kwargs
):
2226 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2227 return _gdi
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2229 def DrawRoundedRectangleRect(*args
, **kwargs
):
2230 """DrawRoundedRectangleRect(Rect r, double radius)"""
2231 return _gdi
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2233 def DrawCircleXY(*args
, **kwargs
):
2234 """DrawCircleXY(int x, int y, int radius)"""
2235 return _gdi
.DC_DrawCircleXY(*args
, **kwargs
)
2237 def DrawCircle(*args
, **kwargs
):
2238 """DrawCircle(Point pt, int radius)"""
2239 return _gdi
.DC_DrawCircle(*args
, **kwargs
)
2241 def DrawEllipseXY(*args
, **kwargs
):
2242 """DrawEllipseXY(int x, int y, int width, int height)"""
2243 return _gdi
.DC_DrawEllipseXY(*args
, **kwargs
)
2245 def DrawEllipse(*args
, **kwargs
):
2246 """DrawEllipse(Point pt, Size sz)"""
2247 return _gdi
.DC_DrawEllipse(*args
, **kwargs
)
2249 def DrawEllipseRect(*args
, **kwargs
):
2250 """DrawEllipseRect(Rect rect)"""
2251 return _gdi
.DC_DrawEllipseRect(*args
, **kwargs
)
2253 def DrawIconXY(*args
, **kwargs
):
2254 """DrawIconXY(Icon icon, int x, int y)"""
2255 return _gdi
.DC_DrawIconXY(*args
, **kwargs
)
2257 def DrawIcon(*args
, **kwargs
):
2258 """DrawIcon(Icon icon, Point pt)"""
2259 return _gdi
.DC_DrawIcon(*args
, **kwargs
)
2261 def DrawBitmapXY(*args
, **kwargs
):
2262 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2263 return _gdi
.DC_DrawBitmapXY(*args
, **kwargs
)
2265 def DrawBitmap(*args
, **kwargs
):
2266 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2267 return _gdi
.DC_DrawBitmap(*args
, **kwargs
)
2269 def DrawTextXY(*args
, **kwargs
):
2270 """DrawTextXY(String text, int x, int y)"""
2271 return _gdi
.DC_DrawTextXY(*args
, **kwargs
)
2273 def DrawText(*args
, **kwargs
):
2274 """DrawText(String text, Point pt)"""
2275 return _gdi
.DC_DrawText(*args
, **kwargs
)
2277 def DrawRotatedTextXY(*args
, **kwargs
):
2278 """DrawRotatedTextXY(String text, int x, int y, double angle)"""
2279 return _gdi
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2281 def DrawRotatedText(*args
, **kwargs
):
2282 """DrawRotatedText(String text, Point pt, double angle)"""
2283 return _gdi
.DC_DrawRotatedText(*args
, **kwargs
)
2285 def BlitXY(*args
, **kwargs
):
2287 BlitXY(int xdest, int ydest, int width, int height, DC source,
2288 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2289 int xsrcMask=-1, int ysrcMask=-1) -> bool
2291 return _gdi
.DC_BlitXY(*args
, **kwargs
)
2293 def Blit(*args
, **kwargs
):
2295 Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2296 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
2298 return _gdi
.DC_Blit(*args
, **kwargs
)
2300 def DrawLines(*args
, **kwargs
):
2301 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2302 return _gdi
.DC_DrawLines(*args
, **kwargs
)
2304 def DrawPolygon(*args
, **kwargs
):
2306 DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2307 int fillStyle=ODDEVEN_RULE)
2309 return _gdi
.DC_DrawPolygon(*args
, **kwargs
)
2311 def DrawLabel(*args
, **kwargs
):
2313 DrawLabel(String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2316 return _gdi
.DC_DrawLabel(*args
, **kwargs
)
2318 def DrawImageLabel(*args
, **kwargs
):
2320 DrawImageLabel(String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2321 int indexAccel=-1) -> Rect
2323 return _gdi
.DC_DrawImageLabel(*args
, **kwargs
)
2325 def DrawSpline(*args
, **kwargs
):
2326 """DrawSpline(int points, Point points_array)"""
2327 return _gdi
.DC_DrawSpline(*args
, **kwargs
)
2329 def Clear(*args
, **kwargs
):
2331 return _gdi
.DC_Clear(*args
, **kwargs
)
2333 def StartDoc(*args
, **kwargs
):
2334 """StartDoc(String message) -> bool"""
2335 return _gdi
.DC_StartDoc(*args
, **kwargs
)
2337 def EndDoc(*args
, **kwargs
):
2339 return _gdi
.DC_EndDoc(*args
, **kwargs
)
2341 def StartPage(*args
, **kwargs
):
2343 return _gdi
.DC_StartPage(*args
, **kwargs
)
2345 def EndPage(*args
, **kwargs
):
2347 return _gdi
.DC_EndPage(*args
, **kwargs
)
2349 def SetFont(*args
, **kwargs
):
2350 """SetFont(Font font)"""
2351 return _gdi
.DC_SetFont(*args
, **kwargs
)
2353 def SetPen(*args
, **kwargs
):
2354 """SetPen(Pen pen)"""
2355 return _gdi
.DC_SetPen(*args
, **kwargs
)
2357 def SetBrush(*args
, **kwargs
):
2358 """SetBrush(Brush brush)"""
2359 return _gdi
.DC_SetBrush(*args
, **kwargs
)
2361 def SetBackground(*args
, **kwargs
):
2362 """SetBackground(Brush brush)"""
2363 return _gdi
.DC_SetBackground(*args
, **kwargs
)
2365 def SetBackgroundMode(*args
, **kwargs
):
2366 """SetBackgroundMode(int mode)"""
2367 return _gdi
.DC_SetBackgroundMode(*args
, **kwargs
)
2369 def SetPalette(*args
, **kwargs
):
2370 """SetPalette(Palette palette)"""
2371 return _gdi
.DC_SetPalette(*args
, **kwargs
)
2373 def SetClippingRegionXY(*args
, **kwargs
):
2374 """SetClippingRegionXY(int x, int y, int width, int height)"""
2375 return _gdi
.DC_SetClippingRegionXY(*args
, **kwargs
)
2377 def SetClippingRegion(*args
, **kwargs
):
2378 """SetClippingRegion(Point pt, Size sz)"""
2379 return _gdi
.DC_SetClippingRegion(*args
, **kwargs
)
2381 def SetClippingRect(*args
, **kwargs
):
2382 """SetClippingRect(Rect rect)"""
2383 return _gdi
.DC_SetClippingRect(*args
, **kwargs
)
2385 def SetClippingRegionAsRegion(*args
, **kwargs
):
2386 """SetClippingRegionAsRegion(Region region)"""
2387 return _gdi
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2389 def DestroyClippingRegion(*args
, **kwargs
):
2390 """DestroyClippingRegion()"""
2391 return _gdi
.DC_DestroyClippingRegion(*args
, **kwargs
)
2393 def GetClippingBox(*args
, **kwargs
):
2394 """GetClippingBox() -> (x, y, width, height)"""
2395 return _gdi
.DC_GetClippingBox(*args
, **kwargs
)
2397 def GetClippingRect(*args
, **kwargs
):
2398 """GetClippingRect() -> Rect"""
2399 return _gdi
.DC_GetClippingRect(*args
, **kwargs
)
2401 def GetCharHeight(*args
, **kwargs
):
2402 """GetCharHeight() -> int"""
2403 return _gdi
.DC_GetCharHeight(*args
, **kwargs
)
2405 def GetCharWidth(*args
, **kwargs
):
2406 """GetCharWidth() -> int"""
2407 return _gdi
.DC_GetCharWidth(*args
, **kwargs
)
2409 def GetTextExtent(*args
, **kwargs
):
2411 GetTextExtent(wxString string) -> (width, height)
2413 Get the width and height of the text using the current font.
2414 Only works for single line strings.
2416 return _gdi
.DC_GetTextExtent(*args
, **kwargs
)
2418 def GetFullTextExtent(*args
, **kwargs
):
2420 GetFullTextExtent(wxString string, Font font=None) ->
2421 (width, height, descent, externalLeading)
2423 Get the width, height, decent and leading of the text using the current or specified font.
2424 Only works for single line strings.
2426 return _gdi
.DC_GetFullTextExtent(*args
, **kwargs
)
2428 def GetMultiLineTextExtent(*args
, **kwargs
):
2430 GetMultiLineTextExtent(wxString string, Font font=None) ->
2431 (width, height, descent, externalLeading)
2433 Get the width, height, decent and leading of the text using the current or specified font.
2434 Works for single as well as multi-line strings.
2436 return _gdi
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2438 def GetPartialTextExtents(*args
, **kwargs
):
2439 """GetPartialTextExtents(String text) -> wxArrayInt"""
2440 return _gdi
.DC_GetPartialTextExtents(*args
, **kwargs
)
2442 def GetSize(*args
, **kwargs
):
2446 Get the DC size in device units.
2448 return _gdi
.DC_GetSize(*args
, **kwargs
)
2450 def GetSizeTuple(*args
, **kwargs
):
2452 GetSizeTuple() -> (width, height)
2454 Get the DC size in device units.
2456 return _gdi
.DC_GetSizeTuple(*args
, **kwargs
)
2458 def GetSizeMM(*args
, **kwargs
):
2462 Get the DC size in milimeters.
2464 return _gdi
.DC_GetSizeMM(*args
, **kwargs
)
2466 def GetSizeMMTuple(*args
, **kwargs
):
2468 GetSizeMMTuple() -> (width, height)
2470 Get the DC size in milimeters.
2472 return _gdi
.DC_GetSizeMMTuple(*args
, **kwargs
)
2474 def DeviceToLogicalX(*args
, **kwargs
):
2475 """DeviceToLogicalX(int x) -> int"""
2476 return _gdi
.DC_DeviceToLogicalX(*args
, **kwargs
)
2478 def DeviceToLogicalY(*args
, **kwargs
):
2479 """DeviceToLogicalY(int y) -> int"""
2480 return _gdi
.DC_DeviceToLogicalY(*args
, **kwargs
)
2482 def DeviceToLogicalXRel(*args
, **kwargs
):
2483 """DeviceToLogicalXRel(int x) -> int"""
2484 return _gdi
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2486 def DeviceToLogicalYRel(*args
, **kwargs
):
2487 """DeviceToLogicalYRel(int y) -> int"""
2488 return _gdi
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2490 def LogicalToDeviceX(*args
, **kwargs
):
2491 """LogicalToDeviceX(int x) -> int"""
2492 return _gdi
.DC_LogicalToDeviceX(*args
, **kwargs
)
2494 def LogicalToDeviceY(*args
, **kwargs
):
2495 """LogicalToDeviceY(int y) -> int"""
2496 return _gdi
.DC_LogicalToDeviceY(*args
, **kwargs
)
2498 def LogicalToDeviceXRel(*args
, **kwargs
):
2499 """LogicalToDeviceXRel(int x) -> int"""
2500 return _gdi
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2502 def LogicalToDeviceYRel(*args
, **kwargs
):
2503 """LogicalToDeviceYRel(int y) -> int"""
2504 return _gdi
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2506 def CanDrawBitmap(*args
, **kwargs
):
2507 """CanDrawBitmap() -> bool"""
2508 return _gdi
.DC_CanDrawBitmap(*args
, **kwargs
)
2510 def CanGetTextExtent(*args
, **kwargs
):
2511 """CanGetTextExtent() -> bool"""
2512 return _gdi
.DC_CanGetTextExtent(*args
, **kwargs
)
2514 def GetDepth(*args
, **kwargs
):
2515 """GetDepth() -> int"""
2516 return _gdi
.DC_GetDepth(*args
, **kwargs
)
2518 def GetPPI(*args
, **kwargs
):
2519 """GetPPI() -> Size"""
2520 return _gdi
.DC_GetPPI(*args
, **kwargs
)
2522 def Ok(*args
, **kwargs
):
2524 return _gdi
.DC_Ok(*args
, **kwargs
)
2526 def GetBackgroundMode(*args
, **kwargs
):
2527 """GetBackgroundMode() -> int"""
2528 return _gdi
.DC_GetBackgroundMode(*args
, **kwargs
)
2530 def GetBackground(*args
, **kwargs
):
2531 """GetBackground() -> Brush"""
2532 return _gdi
.DC_GetBackground(*args
, **kwargs
)
2534 def GetBrush(*args
, **kwargs
):
2535 """GetBrush() -> Brush"""
2536 return _gdi
.DC_GetBrush(*args
, **kwargs
)
2538 def GetFont(*args
, **kwargs
):
2539 """GetFont() -> Font"""
2540 return _gdi
.DC_GetFont(*args
, **kwargs
)
2542 def GetPen(*args
, **kwargs
):
2543 """GetPen() -> Pen"""
2544 return _gdi
.DC_GetPen(*args
, **kwargs
)
2546 def GetTextBackground(*args
, **kwargs
):
2547 """GetTextBackground() -> Colour"""
2548 return _gdi
.DC_GetTextBackground(*args
, **kwargs
)
2550 def GetTextForeground(*args
, **kwargs
):
2551 """GetTextForeground() -> Colour"""
2552 return _gdi
.DC_GetTextForeground(*args
, **kwargs
)
2554 def SetTextForeground(*args
, **kwargs
):
2555 """SetTextForeground(Colour colour)"""
2556 return _gdi
.DC_SetTextForeground(*args
, **kwargs
)
2558 def SetTextBackground(*args
, **kwargs
):
2559 """SetTextBackground(Colour colour)"""
2560 return _gdi
.DC_SetTextBackground(*args
, **kwargs
)
2562 def GetMapMode(*args
, **kwargs
):
2563 """GetMapMode() -> int"""
2564 return _gdi
.DC_GetMapMode(*args
, **kwargs
)
2566 def SetMapMode(*args
, **kwargs
):
2567 """SetMapMode(int mode)"""
2568 return _gdi
.DC_SetMapMode(*args
, **kwargs
)
2570 def GetUserScale(*args
, **kwargs
):
2571 """GetUserScale() -> (xScale, yScale)"""
2572 return _gdi
.DC_GetUserScale(*args
, **kwargs
)
2574 def SetUserScale(*args
, **kwargs
):
2575 """SetUserScale(double x, double y)"""
2576 return _gdi
.DC_SetUserScale(*args
, **kwargs
)
2578 def GetLogicalScale(*args
, **kwargs
):
2579 """GetLogicalScale() -> (xScale, yScale)"""
2580 return _gdi
.DC_GetLogicalScale(*args
, **kwargs
)
2582 def SetLogicalScale(*args
, **kwargs
):
2583 """SetLogicalScale(double x, double y)"""
2584 return _gdi
.DC_SetLogicalScale(*args
, **kwargs
)
2586 def GetLogicalOrigin(*args
, **kwargs
):
2587 """GetLogicalOrigin() -> Point"""
2588 return _gdi
.DC_GetLogicalOrigin(*args
, **kwargs
)
2590 def GetLogicalOriginTuple(*args
, **kwargs
):
2591 """GetLogicalOriginTuple() -> (x,y)"""
2592 return _gdi
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2594 def SetLogicalOrigin(*args
, **kwargs
):
2595 """SetLogicalOrigin(int x, int y)"""
2596 return _gdi
.DC_SetLogicalOrigin(*args
, **kwargs
)
2598 def GetDeviceOrigin(*args
, **kwargs
):
2599 """GetDeviceOrigin() -> Point"""
2600 return _gdi
.DC_GetDeviceOrigin(*args
, **kwargs
)
2602 def GetDeviceOriginTuple(*args
, **kwargs
):
2603 """GetDeviceOriginTuple() -> (x,y)"""
2604 return _gdi
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2606 def SetDeviceOrigin(*args
, **kwargs
):
2607 """SetDeviceOrigin(int x, int y)"""
2608 return _gdi
.DC_SetDeviceOrigin(*args
, **kwargs
)
2610 def SetAxisOrientation(*args
, **kwargs
):
2611 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2612 return _gdi
.DC_SetAxisOrientation(*args
, **kwargs
)
2614 def GetLogicalFunction(*args
, **kwargs
):
2615 """GetLogicalFunction() -> int"""
2616 return _gdi
.DC_GetLogicalFunction(*args
, **kwargs
)
2618 def SetLogicalFunction(*args
, **kwargs
):
2619 """SetLogicalFunction(int function)"""
2620 return _gdi
.DC_SetLogicalFunction(*args
, **kwargs
)
2622 def SetOptimization(*args
, **kwargs
):
2623 """SetOptimization(bool opt)"""
2624 return _gdi
.DC_SetOptimization(*args
, **kwargs
)
2626 def GetOptimization(*args
, **kwargs
):
2627 """GetOptimization() -> bool"""
2628 return _gdi
.DC_GetOptimization(*args
, **kwargs
)
2630 def CalcBoundingBox(*args
, **kwargs
):
2631 """CalcBoundingBox(int x, int y)"""
2632 return _gdi
.DC_CalcBoundingBox(*args
, **kwargs
)
2634 def ResetBoundingBox(*args
, **kwargs
):
2635 """ResetBoundingBox()"""
2636 return _gdi
.DC_ResetBoundingBox(*args
, **kwargs
)
2638 def MinX(*args
, **kwargs
):
2640 return _gdi
.DC_MinX(*args
, **kwargs
)
2642 def MaxX(*args
, **kwargs
):
2644 return _gdi
.DC_MaxX(*args
, **kwargs
)
2646 def MinY(*args
, **kwargs
):
2648 return _gdi
.DC_MinY(*args
, **kwargs
)
2650 def MaxY(*args
, **kwargs
):
2652 return _gdi
.DC_MaxY(*args
, **kwargs
)
2654 def GetBoundingBox(*args
, **kwargs
):
2655 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2656 return _gdi
.DC_GetBoundingBox(*args
, **kwargs
)
2658 def __nonzero__(self
): return self
.Ok()
2659 def _DrawPointList(*args
, **kwargs
):
2660 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2661 return _gdi
.DC__DrawPointList(*args
, **kwargs
)
2663 def _DrawLineList(*args
, **kwargs
):
2664 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2665 return _gdi
.DC__DrawLineList(*args
, **kwargs
)
2667 def _DrawRectangleList(*args
, **kwargs
):
2668 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2669 return _gdi
.DC__DrawRectangleList(*args
, **kwargs
)
2671 def _DrawEllipseList(*args
, **kwargs
):
2672 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2673 return _gdi
.DC__DrawEllipseList(*args
, **kwargs
)
2675 def _DrawPolygonList(*args
, **kwargs
):
2676 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2677 return _gdi
.DC__DrawPolygonList(*args
, **kwargs
)
2679 def _DrawTextList(*args
, **kwargs
):
2681 _DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2682 PyObject backgroundList) -> PyObject
2684 return _gdi
.DC__DrawTextList(*args
, **kwargs
)
2686 def DrawPointList(self
, points
, pens
=None):
2689 elif isinstance(pens
, wx
.Pen
):
2691 elif len(pens
) != len(points
):
2692 raise ValueError('points and pens must have same length')
2693 return self
._DrawPointList
(points
, pens
, [])
2696 def DrawLineList(self
, lines
, pens
=None):
2699 elif isinstance(pens
, wx
.Pen
):
2701 elif len(pens
) != len(lines
):
2702 raise ValueError('lines and pens must have same length')
2703 return self
._DrawLineList
(lines
, pens
, [])
2706 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2709 elif isinstance(pens
, wx
.Pen
):
2711 elif len(pens
) != len(rectangles
):
2712 raise ValueError('rectangles and pens must have same length')
2715 elif isinstance(brushes
, wx
.Brush
):
2717 elif len(brushes
) != len(rectangles
):
2718 raise ValueError('rectangles and brushes must have same length')
2719 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2722 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2725 elif isinstance(pens
, wx
.Pen
):
2727 elif len(pens
) != len(ellipses
):
2728 raise ValueError('ellipses and pens must have same length')
2731 elif isinstance(brushes
, wx
.Brush
):
2733 elif len(brushes
) != len(ellipses
):
2734 raise ValueError('ellipses and brushes must have same length')
2735 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2738 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2739 ## Note: This does not currently support fill style or offset
2740 ## you can always use the non-List version if need be.
2743 elif isinstance(pens
, wx
.Pen
):
2745 elif len(pens
) != len(polygons
):
2746 raise ValueError('polygons and pens must have same length')
2749 elif isinstance(brushes
, wx
.Brush
):
2751 elif len(brushes
) != len(polygons
):
2752 raise ValueError('polygons and brushes must have same length')
2753 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2756 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2757 ## NOTE: this does not currently support changing the font
2758 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
2759 ## If you want backgounds to do anything.
2760 if type(textList
) == type(''):
2761 textList
= [textList
]
2762 elif len(textList
) != len(coords
):
2763 raise ValueError('textlist and coords must have same length')
2764 if foregrounds
is None:
2766 elif isinstance(foregrounds
, wx
.Colour
):
2767 foregrounds
= [foregrounds
]
2768 elif len(foregrounds
) != len(coords
):
2769 raise ValueError('foregrounds and coords must have same length')
2770 if backgrounds
is None:
2772 elif isinstance(backgrounds
, wx
.Colour
):
2773 backgrounds
= [backgrounds
]
2774 elif len(backgrounds
) != len(coords
):
2775 raise ValueError('backgrounds and coords must have same length')
2776 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2780 def __init__(self
, this
):
2782 if not hasattr(self
,"thisown"): self
.thisown
= 0
2784 _gdi
.DC_swigregister(DCPtr
)
2786 #---------------------------------------------------------------------------
2790 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2791 def __init__(self
, *args
, **kwargs
):
2792 """__init__() -> MemoryDC"""
2793 newobj
= _gdi
.new_MemoryDC(*args
, **kwargs
)
2794 self
.this
= newobj
.this
2797 def SelectObject(*args
, **kwargs
):
2798 """SelectObject(Bitmap bitmap)"""
2799 return _gdi
.MemoryDC_SelectObject(*args
, **kwargs
)
2802 class MemoryDCPtr(MemoryDC
):
2803 def __init__(self
, this
):
2805 if not hasattr(self
,"thisown"): self
.thisown
= 0
2806 self
.__class
__ = MemoryDC
2807 _gdi
.MemoryDC_swigregister(MemoryDCPtr
)
2809 def MemoryDCFromDC(*args
, **kwargs
):
2810 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
2811 val
= _gdi
.new_MemoryDCFromDC(*args
, **kwargs
)
2815 #---------------------------------------------------------------------------
2817 BUFFER_DC_OVERWRITE_BG
= _gdi
.BUFFER_DC_OVERWRITE_BG
2818 BUFFER_DC_PRESERVE_BG
= _gdi
.BUFFER_DC_PRESERVE_BG
2819 BUFFER_DC_DEFAULT
= _gdi
.BUFFER_DC_DEFAULT
2820 class BufferedDC(MemoryDC
):
2822 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2823 def __init__(self
, *args
):
2825 __init__(DC dc, Bitmap buffer) -> BufferedDC
2826 __init__(DC dc, Size area, int flags=BUFFER_DC_DEFAULT) -> BufferedDC
2828 newobj
= _gdi
.new_BufferedDC(*args
)
2829 self
.this
= newobj
.this
2832 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2834 def UnMask(*args
, **kwargs
):
2836 return _gdi
.BufferedDC_UnMask(*args
, **kwargs
)
2839 class BufferedDCPtr(BufferedDC
):
2840 def __init__(self
, this
):
2842 if not hasattr(self
,"thisown"): self
.thisown
= 0
2843 self
.__class
__ = BufferedDC
2844 _gdi
.BufferedDC_swigregister(BufferedDCPtr
)
2846 def BufferedDCInternalBuffer(*args
):
2847 """BufferedDCInternalBuffer(DC dc, Size area, int flags=BUFFER_DC_DEFAULT) -> BufferedDC"""
2848 val
= _gdi
.new_BufferedDCInternalBuffer(*args
)
2850 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2853 class BufferedPaintDC(BufferedDC
):
2855 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2856 def __init__(self
, *args
):
2858 __init__(Window window, Bitmap buffer) -> BufferedPaintDC
2859 __init__(Window window, int flags=BUFFER_DC_DEFAULT) -> BufferedPaintDC
2861 newobj
= _gdi
.new_BufferedPaintDC(*args
)
2862 self
.this
= newobj
.this
2866 class BufferedPaintDCPtr(BufferedPaintDC
):
2867 def __init__(self
, this
):
2869 if not hasattr(self
,"thisown"): self
.thisown
= 0
2870 self
.__class
__ = BufferedPaintDC
2871 _gdi
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
2873 #---------------------------------------------------------------------------
2877 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2878 def __init__(self
, *args
, **kwargs
):
2879 """__init__() -> ScreenDC"""
2880 newobj
= _gdi
.new_ScreenDC(*args
, **kwargs
)
2881 self
.this
= newobj
.this
2884 def StartDrawingOnTopWin(*args
, **kwargs
):
2885 """StartDrawingOnTopWin(Window window) -> bool"""
2886 return _gdi
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
2888 def StartDrawingOnTop(*args
, **kwargs
):
2889 """StartDrawingOnTop(Rect rect=None) -> bool"""
2890 return _gdi
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
2892 def EndDrawingOnTop(*args
, **kwargs
):
2893 """EndDrawingOnTop() -> bool"""
2894 return _gdi
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
2897 class ScreenDCPtr(ScreenDC
):
2898 def __init__(self
, this
):
2900 if not hasattr(self
,"thisown"): self
.thisown
= 0
2901 self
.__class
__ = ScreenDC
2902 _gdi
.ScreenDC_swigregister(ScreenDCPtr
)
2904 #---------------------------------------------------------------------------
2908 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2909 def __init__(self
, *args
, **kwargs
):
2910 """__init__(Window win) -> ClientDC"""
2911 newobj
= _gdi
.new_ClientDC(*args
, **kwargs
)
2912 self
.this
= newobj
.this
2916 class ClientDCPtr(ClientDC
):
2917 def __init__(self
, this
):
2919 if not hasattr(self
,"thisown"): self
.thisown
= 0
2920 self
.__class
__ = ClientDC
2921 _gdi
.ClientDC_swigregister(ClientDCPtr
)
2923 #---------------------------------------------------------------------------
2927 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2928 def __init__(self
, *args
, **kwargs
):
2929 """__init__(Window win) -> PaintDC"""
2930 newobj
= _gdi
.new_PaintDC(*args
, **kwargs
)
2931 self
.this
= newobj
.this
2935 class PaintDCPtr(PaintDC
):
2936 def __init__(self
, this
):
2938 if not hasattr(self
,"thisown"): self
.thisown
= 0
2939 self
.__class
__ = PaintDC
2940 _gdi
.PaintDC_swigregister(PaintDCPtr
)
2942 #---------------------------------------------------------------------------
2946 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2947 def __init__(self
, *args
, **kwargs
):
2948 """__init__(Window win) -> WindowDC"""
2949 newobj
= _gdi
.new_WindowDC(*args
, **kwargs
)
2950 self
.this
= newobj
.this
2954 class WindowDCPtr(WindowDC
):
2955 def __init__(self
, this
):
2957 if not hasattr(self
,"thisown"): self
.thisown
= 0
2958 self
.__class
__ = WindowDC
2959 _gdi
.WindowDC_swigregister(WindowDCPtr
)
2961 #---------------------------------------------------------------------------
2965 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2966 def __init__(self
, *args
, **kwargs
):
2967 """__init__(DC dc, bool mirror) -> MirrorDC"""
2968 newobj
= _gdi
.new_MirrorDC(*args
, **kwargs
)
2969 self
.this
= newobj
.this
2973 class MirrorDCPtr(MirrorDC
):
2974 def __init__(self
, this
):
2976 if not hasattr(self
,"thisown"): self
.thisown
= 0
2977 self
.__class
__ = MirrorDC
2978 _gdi
.MirrorDC_swigregister(MirrorDCPtr
)
2980 #---------------------------------------------------------------------------
2982 class PostScriptDC(DC
):
2984 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2985 def __init__(self
, *args
, **kwargs
):
2986 """__init__(wxPrintData printData) -> PostScriptDC"""
2987 newobj
= _gdi
.new_PostScriptDC(*args
, **kwargs
)
2988 self
.this
= newobj
.this
2991 def GetPrintData(*args
, **kwargs
):
2992 """GetPrintData() -> wxPrintData"""
2993 return _gdi
.PostScriptDC_GetPrintData(*args
, **kwargs
)
2995 def SetPrintData(*args
, **kwargs
):
2996 """SetPrintData(wxPrintData data)"""
2997 return _gdi
.PostScriptDC_SetPrintData(*args
, **kwargs
)
2999 def SetResolution(*args
, **kwargs
):
3000 """SetResolution(int ppi)"""
3001 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
3003 SetResolution
= staticmethod(SetResolution
)
3004 def GetResolution(*args
, **kwargs
):
3005 """GetResolution() -> int"""
3006 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
3008 GetResolution
= staticmethod(GetResolution
)
3010 class PostScriptDCPtr(PostScriptDC
):
3011 def __init__(self
, this
):
3013 if not hasattr(self
,"thisown"): self
.thisown
= 0
3014 self
.__class
__ = PostScriptDC
3015 _gdi
.PostScriptDC_swigregister(PostScriptDCPtr
)
3017 def PostScriptDC_SetResolution(*args
, **kwargs
):
3018 """PostScriptDC_SetResolution(int ppi)"""
3019 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
3021 def PostScriptDC_GetResolution(*args
, **kwargs
):
3022 """PostScriptDC_GetResolution() -> int"""
3023 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
3025 #---------------------------------------------------------------------------
3027 class MetaFile(core
.Object
):
3029 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3030 def __init__(self
, *args
, **kwargs
):
3031 """__init__(String filename=EmptyString) -> MetaFile"""
3032 newobj
= _gdi
.new_MetaFile(*args
, **kwargs
)
3033 self
.this
= newobj
.this
3037 class MetaFilePtr(MetaFile
):
3038 def __init__(self
, this
):
3040 if not hasattr(self
,"thisown"): self
.thisown
= 0
3041 self
.__class
__ = MetaFile
3042 _gdi
.MetaFile_swigregister(MetaFilePtr
)
3044 class MetaFileDC(DC
):
3046 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3047 def __init__(self
, *args
, **kwargs
):
3049 __init__(String filename=EmptyString, int width=0, int height=0,
3050 String description=EmptyString) -> MetaFileDC
3052 newobj
= _gdi
.new_MetaFileDC(*args
, **kwargs
)
3053 self
.this
= newobj
.this
3057 class MetaFileDCPtr(MetaFileDC
):
3058 def __init__(self
, this
):
3060 if not hasattr(self
,"thisown"): self
.thisown
= 0
3061 self
.__class
__ = MetaFileDC
3062 _gdi
.MetaFileDC_swigregister(MetaFileDCPtr
)
3064 class PrinterDC(DC
):
3066 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3067 def __init__(self
, *args
, **kwargs
):
3068 """__init__(wxPrintData printData) -> PrinterDC"""
3069 newobj
= _gdi
.new_PrinterDC(*args
, **kwargs
)
3070 self
.this
= newobj
.this
3074 class PrinterDCPtr(PrinterDC
):
3075 def __init__(self
, this
):
3077 if not hasattr(self
,"thisown"): self
.thisown
= 0
3078 self
.__class
__ = PrinterDC
3079 _gdi
.PrinterDC_swigregister(PrinterDCPtr
)
3082 """DC class that has methods with 2.4 compatible parameters."""
3083 FloodFill
= DC
.FloodFillXY
3084 GetPixel
= DC
.GetPixelXY
3085 DrawLine
= DC
.DrawLineXY
3086 CrossHair
= DC
.CrossHairXY
3087 DrawArc
= DC
.DrawArcXY
3088 DrawCheckMark
= DC
.DrawCheckMarkXY
3089 DrawEllipticArc
= DC
.DrawEllipticArcXY
3090 DrawPoint
= DC
.DrawPointXY
3091 DrawRectangle
= DC
.DrawRectangleXY
3092 DrawRoundedRectangle
= DC
.DrawRoundedRectangleXY
3093 DrawCircle
= DC
.DrawCircleXY
3094 DrawEllipse
= DC
.DrawEllipseXY
3095 DrawIcon
= DC
.DrawIconXY
3096 DrawBitmap
= DC
.DrawBitmapXY
3097 DrawText
= DC
.DrawTextXY
3098 DrawRotatedText
= DC
.DrawRotatedTextXY
3101 class MemoryDC_old(MemoryDC
):
3102 """DC class that has methods with 2.4 compatible parameters."""
3103 FloodFill
= MemoryDC
.FloodFillXY
3104 GetPixel
= MemoryDC
.GetPixelXY
3105 DrawLine
= MemoryDC
.DrawLineXY
3106 CrossHair
= MemoryDC
.CrossHairXY
3107 DrawArc
= MemoryDC
.DrawArcXY
3108 DrawCheckMark
= MemoryDC
.DrawCheckMarkXY
3109 DrawEllipticArc
= MemoryDC
.DrawEllipticArcXY
3110 DrawPoint
= MemoryDC
.DrawPointXY
3111 DrawRectangle
= MemoryDC
.DrawRectangleXY
3112 DrawRoundedRectangle
= MemoryDC
.DrawRoundedRectangleXY
3113 DrawCircle
= MemoryDC
.DrawCircleXY
3114 DrawEllipse
= MemoryDC
.DrawEllipseXY
3115 DrawIcon
= MemoryDC
.DrawIconXY
3116 DrawBitmap
= MemoryDC
.DrawBitmapXY
3117 DrawText
= MemoryDC
.DrawTextXY
3118 DrawRotatedText
= MemoryDC
.DrawRotatedTextXY
3119 Blit
= MemoryDC
.BlitXY
3121 class BufferedDC_old(BufferedDC
):
3122 """DC class that has methods with 2.4 compatible parameters."""
3123 FloodFill
= BufferedDC
.FloodFillXY
3124 GetPixel
= BufferedDC
.GetPixelXY
3125 DrawLine
= BufferedDC
.DrawLineXY
3126 CrossHair
= BufferedDC
.CrossHairXY
3127 DrawArc
= BufferedDC
.DrawArcXY
3128 DrawCheckMark
= BufferedDC
.DrawCheckMarkXY
3129 DrawEllipticArc
= BufferedDC
.DrawEllipticArcXY
3130 DrawPoint
= BufferedDC
.DrawPointXY
3131 DrawRectangle
= BufferedDC
.DrawRectangleXY
3132 DrawRoundedRectangle
= BufferedDC
.DrawRoundedRectangleXY
3133 DrawCircle
= BufferedDC
.DrawCircleXY
3134 DrawEllipse
= BufferedDC
.DrawEllipseXY
3135 DrawIcon
= BufferedDC
.DrawIconXY
3136 DrawBitmap
= BufferedDC
.DrawBitmapXY
3137 DrawText
= BufferedDC
.DrawTextXY
3138 DrawRotatedText
= BufferedDC
.DrawRotatedTextXY
3139 Blit
= BufferedDC
.BlitXY
3141 class BufferedPaintDC_old(BufferedPaintDC
):
3142 """DC class that has methods with 2.4 compatible parameters."""
3143 FloodFill
= BufferedPaintDC
.FloodFillXY
3144 GetPixel
= BufferedPaintDC
.GetPixelXY
3145 DrawLine
= BufferedPaintDC
.DrawLineXY
3146 CrossHair
= BufferedPaintDC
.CrossHairXY
3147 DrawArc
= BufferedPaintDC
.DrawArcXY
3148 DrawCheckMark
= BufferedPaintDC
.DrawCheckMarkXY
3149 DrawEllipticArc
= BufferedPaintDC
.DrawEllipticArcXY
3150 DrawPoint
= BufferedPaintDC
.DrawPointXY
3151 DrawRectangle
= BufferedPaintDC
.DrawRectangleXY
3152 DrawRoundedRectangle
= BufferedPaintDC
.DrawRoundedRectangleXY
3153 DrawCircle
= BufferedPaintDC
.DrawCircleXY
3154 DrawEllipse
= BufferedPaintDC
.DrawEllipseXY
3155 DrawIcon
= BufferedPaintDC
.DrawIconXY
3156 DrawBitmap
= BufferedPaintDC
.DrawBitmapXY
3157 DrawText
= BufferedPaintDC
.DrawTextXY
3158 DrawRotatedText
= BufferedPaintDC
.DrawRotatedTextXY
3159 Blit
= BufferedPaintDC
.BlitXY
3161 class ScreenDC_old(ScreenDC
):
3162 """DC class that has methods with 2.4 compatible parameters."""
3163 FloodFill
= ScreenDC
.FloodFillXY
3164 GetPixel
= ScreenDC
.GetPixelXY
3165 DrawLine
= ScreenDC
.DrawLineXY
3166 CrossHair
= ScreenDC
.CrossHairXY
3167 DrawArc
= ScreenDC
.DrawArcXY
3168 DrawCheckMark
= ScreenDC
.DrawCheckMarkXY
3169 DrawEllipticArc
= ScreenDC
.DrawEllipticArcXY
3170 DrawPoint
= ScreenDC
.DrawPointXY
3171 DrawRectangle
= ScreenDC
.DrawRectangleXY
3172 DrawRoundedRectangle
= ScreenDC
.DrawRoundedRectangleXY
3173 DrawCircle
= ScreenDC
.DrawCircleXY
3174 DrawEllipse
= ScreenDC
.DrawEllipseXY
3175 DrawIcon
= ScreenDC
.DrawIconXY
3176 DrawBitmap
= ScreenDC
.DrawBitmapXY
3177 DrawText
= ScreenDC
.DrawTextXY
3178 DrawRotatedText
= ScreenDC
.DrawRotatedTextXY
3179 Blit
= ScreenDC
.BlitXY
3181 class ClientDC_old(ClientDC
):
3182 """DC class that has methods with 2.4 compatible parameters."""
3183 FloodFill
= ClientDC
.FloodFillXY
3184 GetPixel
= ClientDC
.GetPixelXY
3185 DrawLine
= ClientDC
.DrawLineXY
3186 CrossHair
= ClientDC
.CrossHairXY
3187 DrawArc
= ClientDC
.DrawArcXY
3188 DrawCheckMark
= ClientDC
.DrawCheckMarkXY
3189 DrawEllipticArc
= ClientDC
.DrawEllipticArcXY
3190 DrawPoint
= ClientDC
.DrawPointXY
3191 DrawRectangle
= ClientDC
.DrawRectangleXY
3192 DrawRoundedRectangle
= ClientDC
.DrawRoundedRectangleXY
3193 DrawCircle
= ClientDC
.DrawCircleXY
3194 DrawEllipse
= ClientDC
.DrawEllipseXY
3195 DrawIcon
= ClientDC
.DrawIconXY
3196 DrawBitmap
= ClientDC
.DrawBitmapXY
3197 DrawText
= ClientDC
.DrawTextXY
3198 DrawRotatedText
= ClientDC
.DrawRotatedTextXY
3199 Blit
= ClientDC
.BlitXY
3201 class PaintDC_old(PaintDC
):
3202 """DC class that has methods with 2.4 compatible parameters."""
3203 FloodFill
= PaintDC
.FloodFillXY
3204 GetPixel
= PaintDC
.GetPixelXY
3205 DrawLine
= PaintDC
.DrawLineXY
3206 CrossHair
= PaintDC
.CrossHairXY
3207 DrawArc
= PaintDC
.DrawArcXY
3208 DrawCheckMark
= PaintDC
.DrawCheckMarkXY
3209 DrawEllipticArc
= PaintDC
.DrawEllipticArcXY
3210 DrawPoint
= PaintDC
.DrawPointXY
3211 DrawRectangle
= PaintDC
.DrawRectangleXY
3212 DrawRoundedRectangle
= PaintDC
.DrawRoundedRectangleXY
3213 DrawCircle
= PaintDC
.DrawCircleXY
3214 DrawEllipse
= PaintDC
.DrawEllipseXY
3215 DrawIcon
= PaintDC
.DrawIconXY
3216 DrawBitmap
= PaintDC
.DrawBitmapXY
3217 DrawText
= PaintDC
.DrawTextXY
3218 DrawRotatedText
= PaintDC
.DrawRotatedTextXY
3219 Blit
= PaintDC
.BlitXY
3221 class WindowDC_old(WindowDC
):
3222 """DC class that has methods with 2.4 compatible parameters."""
3223 FloodFill
= WindowDC
.FloodFillXY
3224 GetPixel
= WindowDC
.GetPixelXY
3225 DrawLine
= WindowDC
.DrawLineXY
3226 CrossHair
= WindowDC
.CrossHairXY
3227 DrawArc
= WindowDC
.DrawArcXY
3228 DrawCheckMark
= WindowDC
.DrawCheckMarkXY
3229 DrawEllipticArc
= WindowDC
.DrawEllipticArcXY
3230 DrawPoint
= WindowDC
.DrawPointXY
3231 DrawRectangle
= WindowDC
.DrawRectangleXY
3232 DrawRoundedRectangle
= WindowDC
.DrawRoundedRectangleXY
3233 DrawCircle
= WindowDC
.DrawCircleXY
3234 DrawEllipse
= WindowDC
.DrawEllipseXY
3235 DrawIcon
= WindowDC
.DrawIconXY
3236 DrawBitmap
= WindowDC
.DrawBitmapXY
3237 DrawText
= WindowDC
.DrawTextXY
3238 DrawRotatedText
= WindowDC
.DrawRotatedTextXY
3239 Blit
= WindowDC
.BlitXY
3241 class MirrorDC_old(MirrorDC
):
3242 """DC class that has methods with 2.4 compatible parameters."""
3243 FloodFill
= MirrorDC
.FloodFillXY
3244 GetPixel
= MirrorDC
.GetPixelXY
3245 DrawLine
= MirrorDC
.DrawLineXY
3246 CrossHair
= MirrorDC
.CrossHairXY
3247 DrawArc
= MirrorDC
.DrawArcXY
3248 DrawCheckMark
= MirrorDC
.DrawCheckMarkXY
3249 DrawEllipticArc
= MirrorDC
.DrawEllipticArcXY
3250 DrawPoint
= MirrorDC
.DrawPointXY
3251 DrawRectangle
= MirrorDC
.DrawRectangleXY
3252 DrawRoundedRectangle
= MirrorDC
.DrawRoundedRectangleXY
3253 DrawCircle
= MirrorDC
.DrawCircleXY
3254 DrawEllipse
= MirrorDC
.DrawEllipseXY
3255 DrawIcon
= MirrorDC
.DrawIconXY
3256 DrawBitmap
= MirrorDC
.DrawBitmapXY
3257 DrawText
= MirrorDC
.DrawTextXY
3258 DrawRotatedText
= MirrorDC
.DrawRotatedTextXY
3259 Blit
= MirrorDC
.BlitXY
3261 class PostScriptDC_old(PostScriptDC
):
3262 """DC class that has methods with 2.4 compatible parameters."""
3263 FloodFill
= PostScriptDC
.FloodFillXY
3264 GetPixel
= PostScriptDC
.GetPixelXY
3265 DrawLine
= PostScriptDC
.DrawLineXY
3266 CrossHair
= PostScriptDC
.CrossHairXY
3267 DrawArc
= PostScriptDC
.DrawArcXY
3268 DrawCheckMark
= PostScriptDC
.DrawCheckMarkXY
3269 DrawEllipticArc
= PostScriptDC
.DrawEllipticArcXY
3270 DrawPoint
= PostScriptDC
.DrawPointXY
3271 DrawRectangle
= PostScriptDC
.DrawRectangleXY
3272 DrawRoundedRectangle
= PostScriptDC
.DrawRoundedRectangleXY
3273 DrawCircle
= PostScriptDC
.DrawCircleXY
3274 DrawEllipse
= PostScriptDC
.DrawEllipseXY
3275 DrawIcon
= PostScriptDC
.DrawIconXY
3276 DrawBitmap
= PostScriptDC
.DrawBitmapXY
3277 DrawText
= PostScriptDC
.DrawTextXY
3278 DrawRotatedText
= PostScriptDC
.DrawRotatedTextXY
3279 Blit
= PostScriptDC
.BlitXY
3281 class MetaFileDC_old(MetaFileDC
):
3282 """DC class that has methods with 2.4 compatible parameters."""
3283 FloodFill
= MetaFileDC
.FloodFillXY
3284 GetPixel
= MetaFileDC
.GetPixelXY
3285 DrawLine
= MetaFileDC
.DrawLineXY
3286 CrossHair
= MetaFileDC
.CrossHairXY
3287 DrawArc
= MetaFileDC
.DrawArcXY
3288 DrawCheckMark
= MetaFileDC
.DrawCheckMarkXY
3289 DrawEllipticArc
= MetaFileDC
.DrawEllipticArcXY
3290 DrawPoint
= MetaFileDC
.DrawPointXY
3291 DrawRectangle
= MetaFileDC
.DrawRectangleXY
3292 DrawRoundedRectangle
= MetaFileDC
.DrawRoundedRectangleXY
3293 DrawCircle
= MetaFileDC
.DrawCircleXY
3294 DrawEllipse
= MetaFileDC
.DrawEllipseXY
3295 DrawIcon
= MetaFileDC
.DrawIconXY
3296 DrawBitmap
= MetaFileDC
.DrawBitmapXY
3297 DrawText
= MetaFileDC
.DrawTextXY
3298 DrawRotatedText
= MetaFileDC
.DrawRotatedTextXY
3299 Blit
= MetaFileDC
.BlitXY
3301 class PrinterDC_old(PrinterDC
):
3302 """DC class that has methods with 2.4 compatible parameters."""
3303 FloodFill
= PrinterDC
.FloodFillXY
3304 GetPixel
= PrinterDC
.GetPixelXY
3305 DrawLine
= PrinterDC
.DrawLineXY
3306 CrossHair
= PrinterDC
.CrossHairXY
3307 DrawArc
= PrinterDC
.DrawArcXY
3308 DrawCheckMark
= PrinterDC
.DrawCheckMarkXY
3309 DrawEllipticArc
= PrinterDC
.DrawEllipticArcXY
3310 DrawPoint
= PrinterDC
.DrawPointXY
3311 DrawRectangle
= PrinterDC
.DrawRectangleXY
3312 DrawRoundedRectangle
= PrinterDC
.DrawRoundedRectangleXY
3313 DrawCircle
= PrinterDC
.DrawCircleXY
3314 DrawEllipse
= PrinterDC
.DrawEllipseXY
3315 DrawIcon
= PrinterDC
.DrawIconXY
3316 DrawBitmap
= PrinterDC
.DrawBitmapXY
3317 DrawText
= PrinterDC
.DrawTextXY
3318 DrawRotatedText
= PrinterDC
.DrawRotatedTextXY
3319 Blit
= PrinterDC
.BlitXY
3321 #---------------------------------------------------------------------------
3323 IMAGELIST_DRAW_NORMAL
= _gdi
.IMAGELIST_DRAW_NORMAL
3324 IMAGELIST_DRAW_TRANSPARENT
= _gdi
.IMAGELIST_DRAW_TRANSPARENT
3325 IMAGELIST_DRAW_SELECTED
= _gdi
.IMAGELIST_DRAW_SELECTED
3326 IMAGELIST_DRAW_FOCUSED
= _gdi
.IMAGELIST_DRAW_FOCUSED
3327 IMAGE_LIST_NORMAL
= _gdi
.IMAGE_LIST_NORMAL
3328 IMAGE_LIST_SMALL
= _gdi
.IMAGE_LIST_SMALL
3329 IMAGE_LIST_STATE
= _gdi
.IMAGE_LIST_STATE
3330 class ImageList(core
.Object
):
3332 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3333 def __init__(self
, *args
, **kwargs
):
3334 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3335 newobj
= _gdi
.new_ImageList(*args
, **kwargs
)
3336 self
.this
= newobj
.this
3339 def __del__(self
, destroy
=_gdi
.delete_ImageList
):
3342 if self
.thisown
: destroy(self
)
3345 def Add(*args
, **kwargs
):
3346 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3347 return _gdi
.ImageList_Add(*args
, **kwargs
)
3349 def AddWithColourMask(*args
, **kwargs
):
3350 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
3351 return _gdi
.ImageList_AddWithColourMask(*args
, **kwargs
)
3353 def AddIcon(*args
, **kwargs
):
3354 """AddIcon(Icon icon) -> int"""
3355 return _gdi
.ImageList_AddIcon(*args
, **kwargs
)
3357 def Replace(*args
, **kwargs
):
3358 """Replace(int index, Bitmap bitmap) -> bool"""
3359 return _gdi
.ImageList_Replace(*args
, **kwargs
)
3361 def Draw(*args
, **kwargs
):
3363 Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3364 bool solidBackground=False) -> bool
3366 return _gdi
.ImageList_Draw(*args
, **kwargs
)
3368 def GetImageCount(*args
, **kwargs
):
3369 """GetImageCount() -> int"""
3370 return _gdi
.ImageList_GetImageCount(*args
, **kwargs
)
3372 def Remove(*args
, **kwargs
):
3373 """Remove(int index) -> bool"""
3374 return _gdi
.ImageList_Remove(*args
, **kwargs
)
3376 def RemoveAll(*args
, **kwargs
):
3377 """RemoveAll() -> bool"""
3378 return _gdi
.ImageList_RemoveAll(*args
, **kwargs
)
3380 def GetSize(*args
, **kwargs
):
3381 """GetSize() -> (width,height)"""
3382 return _gdi
.ImageList_GetSize(*args
, **kwargs
)
3385 class ImageListPtr(ImageList
):
3386 def __init__(self
, this
):
3388 if not hasattr(self
,"thisown"): self
.thisown
= 0
3389 self
.__class
__ = ImageList
3390 _gdi
.ImageList_swigregister(ImageListPtr
)
3392 #---------------------------------------------------------------------------
3394 class PenList(core
.Object
):
3395 def __init__(self
): raise RuntimeError, "No constructor defined"
3397 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3398 def AddPen(*args
, **kwargs
):
3399 """AddPen(Pen pen)"""
3400 return _gdi
.PenList_AddPen(*args
, **kwargs
)
3402 def FindOrCreatePen(*args
, **kwargs
):
3403 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
3404 return _gdi
.PenList_FindOrCreatePen(*args
, **kwargs
)
3406 def RemovePen(*args
, **kwargs
):
3407 """RemovePen(Pen pen)"""
3408 return _gdi
.PenList_RemovePen(*args
, **kwargs
)
3410 def GetCount(*args
, **kwargs
):
3411 """GetCount() -> int"""
3412 return _gdi
.PenList_GetCount(*args
, **kwargs
)
3415 class PenListPtr(PenList
):
3416 def __init__(self
, this
):
3418 if not hasattr(self
,"thisown"): self
.thisown
= 0
3419 self
.__class
__ = PenList
3420 _gdi
.PenList_swigregister(PenListPtr
)
3422 NORMAL_FONT
= cvar
.NORMAL_FONT
3423 SMALL_FONT
= cvar
.SMALL_FONT
3424 ITALIC_FONT
= cvar
.ITALIC_FONT
3425 SWISS_FONT
= cvar
.SWISS_FONT
3426 RED_PEN
= cvar
.RED_PEN
3427 CYAN_PEN
= cvar
.CYAN_PEN
3428 GREEN_PEN
= cvar
.GREEN_PEN
3429 BLACK_PEN
= cvar
.BLACK_PEN
3430 WHITE_PEN
= cvar
.WHITE_PEN
3431 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3432 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3433 GREY_PEN
= cvar
.GREY_PEN
3434 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3435 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3436 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3437 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3438 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3439 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3440 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3441 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3442 RED_BRUSH
= cvar
.RED_BRUSH
3443 GREY_BRUSH
= cvar
.GREY_BRUSH
3444 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3445 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3452 LIGHT_GREY
= cvar
.LIGHT_GREY
3453 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3454 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3455 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3456 NullBitmap
= cvar
.NullBitmap
3457 NullIcon
= cvar
.NullIcon
3458 NullCursor
= cvar
.NullCursor
3459 NullPen
= cvar
.NullPen
3460 NullBrush
= cvar
.NullBrush
3461 NullPalette
= cvar
.NullPalette
3462 NullFont
= cvar
.NullFont
3463 NullColour
= cvar
.NullColour
3465 class BrushList(core
.Object
):
3466 def __init__(self
): raise RuntimeError, "No constructor defined"
3468 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3469 def AddBrush(*args
, **kwargs
):
3470 """AddBrush(Brush brush)"""
3471 return _gdi
.BrushList_AddBrush(*args
, **kwargs
)
3473 def FindOrCreateBrush(*args
, **kwargs
):
3474 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
3475 return _gdi
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3477 def RemoveBrush(*args
, **kwargs
):
3478 """RemoveBrush(Brush brush)"""
3479 return _gdi
.BrushList_RemoveBrush(*args
, **kwargs
)
3481 def GetCount(*args
, **kwargs
):
3482 """GetCount() -> int"""
3483 return _gdi
.BrushList_GetCount(*args
, **kwargs
)
3486 class BrushListPtr(BrushList
):
3487 def __init__(self
, this
):
3489 if not hasattr(self
,"thisown"): self
.thisown
= 0
3490 self
.__class
__ = BrushList
3491 _gdi
.BrushList_swigregister(BrushListPtr
)
3493 class ColourDatabase(core
.Object
):
3495 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3496 def __init__(self
, *args
, **kwargs
):
3497 """__init__() -> ColourDatabase"""
3498 newobj
= _gdi
.new_ColourDatabase(*args
, **kwargs
)
3499 self
.this
= newobj
.this
3502 def __del__(self
, destroy
=_gdi
.delete_ColourDatabase
):
3505 if self
.thisown
: destroy(self
)
3508 def Find(*args
, **kwargs
):
3509 """Find(String name) -> Colour"""
3510 return _gdi
.ColourDatabase_Find(*args
, **kwargs
)
3512 def FindName(*args
, **kwargs
):
3513 """FindName(Colour colour) -> String"""
3514 return _gdi
.ColourDatabase_FindName(*args
, **kwargs
)
3517 def AddColour(*args
, **kwargs
):
3518 """AddColour(String name, Colour colour)"""
3519 return _gdi
.ColourDatabase_AddColour(*args
, **kwargs
)
3521 def Append(*args
, **kwargs
):
3522 """Append(String name, int red, int green, int blue)"""
3523 return _gdi
.ColourDatabase_Append(*args
, **kwargs
)
3526 class ColourDatabasePtr(ColourDatabase
):
3527 def __init__(self
, this
):
3529 if not hasattr(self
,"thisown"): self
.thisown
= 0
3530 self
.__class
__ = ColourDatabase
3531 _gdi
.ColourDatabase_swigregister(ColourDatabasePtr
)
3533 class FontList(core
.Object
):
3534 def __init__(self
): raise RuntimeError, "No constructor defined"
3536 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3537 def AddFont(*args
, **kwargs
):
3538 """AddFont(Font font)"""
3539 return _gdi
.FontList_AddFont(*args
, **kwargs
)
3541 def FindOrCreateFont(*args
, **kwargs
):
3543 FindOrCreateFont(int point_size, int family, int style, int weight,
3544 bool underline=False, String facename=EmptyString,
3545 int encoding=FONTENCODING_DEFAULT) -> Font
3547 return _gdi
.FontList_FindOrCreateFont(*args
, **kwargs
)
3549 def RemoveFont(*args
, **kwargs
):
3550 """RemoveFont(Font font)"""
3551 return _gdi
.FontList_RemoveFont(*args
, **kwargs
)
3553 def GetCount(*args
, **kwargs
):
3554 """GetCount() -> int"""
3555 return _gdi
.FontList_GetCount(*args
, **kwargs
)
3558 class FontListPtr(FontList
):
3559 def __init__(self
, this
):
3561 if not hasattr(self
,"thisown"): self
.thisown
= 0
3562 self
.__class
__ = FontList
3563 _gdi
.FontList_swigregister(FontListPtr
)
3565 #---------------------------------------------------------------------------
3567 NullColor
= NullColour
3568 #---------------------------------------------------------------------------
3570 class Effects(core
.Object
):
3572 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3573 def __init__(self
, *args
, **kwargs
):
3574 """__init__() -> Effects"""
3575 newobj
= _gdi
.new_Effects(*args
, **kwargs
)
3576 self
.this
= newobj
.this
3579 def GetHighlightColour(*args
, **kwargs
):
3580 """GetHighlightColour() -> Colour"""
3581 return _gdi
.Effects_GetHighlightColour(*args
, **kwargs
)
3583 def GetLightShadow(*args
, **kwargs
):
3584 """GetLightShadow() -> Colour"""
3585 return _gdi
.Effects_GetLightShadow(*args
, **kwargs
)
3587 def GetFaceColour(*args
, **kwargs
):
3588 """GetFaceColour() -> Colour"""
3589 return _gdi
.Effects_GetFaceColour(*args
, **kwargs
)
3591 def GetMediumShadow(*args
, **kwargs
):
3592 """GetMediumShadow() -> Colour"""
3593 return _gdi
.Effects_GetMediumShadow(*args
, **kwargs
)
3595 def GetDarkShadow(*args
, **kwargs
):
3596 """GetDarkShadow() -> Colour"""
3597 return _gdi
.Effects_GetDarkShadow(*args
, **kwargs
)
3599 def SetHighlightColour(*args
, **kwargs
):
3600 """SetHighlightColour(Colour c)"""
3601 return _gdi
.Effects_SetHighlightColour(*args
, **kwargs
)
3603 def SetLightShadow(*args
, **kwargs
):
3604 """SetLightShadow(Colour c)"""
3605 return _gdi
.Effects_SetLightShadow(*args
, **kwargs
)
3607 def SetFaceColour(*args
, **kwargs
):
3608 """SetFaceColour(Colour c)"""
3609 return _gdi
.Effects_SetFaceColour(*args
, **kwargs
)
3611 def SetMediumShadow(*args
, **kwargs
):
3612 """SetMediumShadow(Colour c)"""
3613 return _gdi
.Effects_SetMediumShadow(*args
, **kwargs
)
3615 def SetDarkShadow(*args
, **kwargs
):
3616 """SetDarkShadow(Colour c)"""
3617 return _gdi
.Effects_SetDarkShadow(*args
, **kwargs
)
3619 def Set(*args
, **kwargs
):
3621 Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3622 Colour mediumShadow, Colour darkShadow)
3624 return _gdi
.Effects_Set(*args
, **kwargs
)
3626 def DrawSunkenEdge(*args
, **kwargs
):
3627 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3628 return _gdi
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3630 def TileBitmap(*args
, **kwargs
):
3631 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3632 return _gdi
.Effects_TileBitmap(*args
, **kwargs
)
3635 class EffectsPtr(Effects
):
3636 def __init__(self
, this
):
3638 if not hasattr(self
,"thisown"): self
.thisown
= 0
3639 self
.__class
__ = Effects
3640 _gdi
.Effects_swigregister(EffectsPtr
)
3641 TheFontList
= cvar
.TheFontList
3642 ThePenList
= cvar
.ThePenList
3643 TheBrushList
= cvar
.TheBrushList
3644 TheColourDatabase
= cvar
.TheColourDatabase