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 A colour is an object representing a combination of Red, Green, and Blue (RGB)
50 intensity values, and is used to determine drawing colours, window colours,
51 etc. Valid RGB values are in the range 0 to 255.
53 In wxPython there are typemaps that will automatically convert from a colour
54 name, or from a '#RRGGBB' colour hex value string to a wx.Colour object when
55 calling C++ methods that expect a wxColour. This means that the following are
58 win.SetBackgroundColour(wxColour(0,0,255))
59 win.SetBackgroundColour('BLUE')
60 win.SetBackgroundColour('#0000FF')
62 You can retrieve the various current system colour settings with
63 wx.SystemSettings.GetColour.
66 return "<%s.%s; proxy of C++ wxColour instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
67 def __init__(self
, *args
, **kwargs
):
69 __init__(unsigned char red=0, unsigned char green=0, unsigned char blue=0) -> Colour
71 Constructs a colour from red, green and blue values.
73 newobj
= _gdi
.new_Colour(*args
, **kwargs
)
74 self
.this
= newobj
.this
77 def __del__(self
, destroy
=_gdi
.delete_Colour
):
80 if self
.thisown
: destroy(self
)
83 def Red(*args
, **kwargs
):
85 Red() -> unsigned char
87 Returns the red intensity.
89 return _gdi
.Colour_Red(*args
, **kwargs
)
91 def Green(*args
, **kwargs
):
93 Green() -> unsigned char
95 Returns the green intensity.
97 return _gdi
.Colour_Green(*args
, **kwargs
)
99 def Blue(*args
, **kwargs
):
101 Blue() -> unsigned char
103 Returns the blue intensity.
105 return _gdi
.Colour_Blue(*args
, **kwargs
)
107 def Ok(*args
, **kwargs
):
111 Returns True if the colour object is valid (the colour has been
112 initialised with RGB values).
114 return _gdi
.Colour_Ok(*args
, **kwargs
)
116 def Set(*args
, **kwargs
):
118 Set(unsigned char red, unsigned char green, unsigned char blue)
120 Sets the RGB intensity values.
122 return _gdi
.Colour_Set(*args
, **kwargs
)
124 def SetRGB(*args
, **kwargs
):
126 SetRGB(unsigned long colRGB)
128 Sets the RGB intensity values from a packed RGB value.
130 return _gdi
.Colour_SetRGB(*args
, **kwargs
)
132 def SetFromName(*args
, **kwargs
):
134 SetFromName(String colourName)
136 Sets the RGB intensity values using a colour name listed in wx.TheColourDatabase.
138 return _gdi
.Colour_SetFromName(*args
, **kwargs
)
140 def GetPixel(*args
, **kwargs
):
144 Returns a pixel value which is platform-dependent. On Windows, a
145 COLORREF is returned. On X, an allocated pixel value is returned.
146 -1 is returned if the pixel is invalid (on X, unallocated).
148 return _gdi
.Colour_GetPixel(*args
, **kwargs
)
150 def __eq__(*args
, **kwargs
):
152 __eq__(Colour colour) -> bool
154 Compare colours for equality
156 return _gdi
.Colour___eq__(*args
, **kwargs
)
158 def __ne__(*args
, **kwargs
):
160 __ne__(Colour colour) -> bool
162 Compare colours for inequality
164 return _gdi
.Colour___ne__(*args
, **kwargs
)
166 def Get(*args
, **kwargs
):
170 Returns the RGB intensity values as a tuple.
172 return _gdi
.Colour_Get(*args
, **kwargs
)
174 def GetRGB(*args
, **kwargs
):
176 GetRGB() -> unsigned long
178 Return the colour as a packed RGB value
180 return _gdi
.Colour_GetRGB(*args
, **kwargs
)
183 def __str__(self
): return str(self
.asTuple())
184 def __repr__(self
): return 'wx.Colour' + str(self
.asTuple())
185 def __nonzero__(self
): return self
.Ok()
186 __safe_for_unpickling__
= True
187 def __reduce__(self
): return (Colour
, self
.Get())
190 class ColourPtr(Colour
):
191 def __init__(self
, this
):
193 if not hasattr(self
,"thisown"): self
.thisown
= 0
194 self
.__class
__ = Colour
195 _gdi
.Colour_swigregister(ColourPtr
)
197 def NamedColour(*args
, **kwargs
):
199 NamedColour(String colorName) -> Colour
201 Constructs a colour object using a colour name listed in wx.TheColourDatabase.
203 val
= _gdi
.new_NamedColour(*args
, **kwargs
)
207 def ColourRGB(*args
, **kwargs
):
209 ColourRGB(unsigned long colRGB) -> Colour
211 Constructs a colour from a packed RGB value.
213 val
= _gdi
.new_ColourRGB(*args
, **kwargs
)
218 NamedColor
= NamedColour
221 class Palette(GDIObject
):
223 return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
224 def __init__(self
, *args
, **kwargs
):
225 """__init__(int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette"""
226 newobj
= _gdi
.new_Palette(*args
, **kwargs
)
227 self
.this
= newobj
.this
230 def __del__(self
, destroy
=_gdi
.delete_Palette
):
233 if self
.thisown
: destroy(self
)
236 def GetPixel(*args
, **kwargs
):
237 """GetPixel(byte red, byte green, byte blue) -> int"""
238 return _gdi
.Palette_GetPixel(*args
, **kwargs
)
240 def GetRGB(*args
, **kwargs
):
241 """GetRGB(int pixel) -> (R,G,B)"""
242 return _gdi
.Palette_GetRGB(*args
, **kwargs
)
244 def Ok(*args
, **kwargs
):
246 return _gdi
.Palette_Ok(*args
, **kwargs
)
248 def __nonzero__(self
): return self
.Ok()
250 class PalettePtr(Palette
):
251 def __init__(self
, this
):
253 if not hasattr(self
,"thisown"): self
.thisown
= 0
254 self
.__class
__ = Palette
255 _gdi
.Palette_swigregister(PalettePtr
)
257 #---------------------------------------------------------------------------
259 class Pen(GDIObject
):
261 return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
262 def __init__(self
, *args
, **kwargs
):
263 """__init__(Colour colour, int width=1, int style=SOLID) -> Pen"""
264 newobj
= _gdi
.new_Pen(*args
, **kwargs
)
265 self
.this
= newobj
.this
268 def __del__(self
, destroy
=_gdi
.delete_Pen
):
271 if self
.thisown
: destroy(self
)
274 def GetCap(*args
, **kwargs
):
275 """GetCap() -> int"""
276 return _gdi
.Pen_GetCap(*args
, **kwargs
)
278 def GetColour(*args
, **kwargs
):
279 """GetColour() -> Colour"""
280 return _gdi
.Pen_GetColour(*args
, **kwargs
)
282 def GetJoin(*args
, **kwargs
):
283 """GetJoin() -> int"""
284 return _gdi
.Pen_GetJoin(*args
, **kwargs
)
286 def GetStyle(*args
, **kwargs
):
287 """GetStyle() -> int"""
288 return _gdi
.Pen_GetStyle(*args
, **kwargs
)
290 def GetWidth(*args
, **kwargs
):
291 """GetWidth() -> int"""
292 return _gdi
.Pen_GetWidth(*args
, **kwargs
)
294 def Ok(*args
, **kwargs
):
296 return _gdi
.Pen_Ok(*args
, **kwargs
)
298 def SetCap(*args
, **kwargs
):
299 """SetCap(int cap_style)"""
300 return _gdi
.Pen_SetCap(*args
, **kwargs
)
302 def SetColour(*args
, **kwargs
):
303 """SetColour(Colour colour)"""
304 return _gdi
.Pen_SetColour(*args
, **kwargs
)
306 def SetJoin(*args
, **kwargs
):
307 """SetJoin(int join_style)"""
308 return _gdi
.Pen_SetJoin(*args
, **kwargs
)
310 def SetStyle(*args
, **kwargs
):
311 """SetStyle(int style)"""
312 return _gdi
.Pen_SetStyle(*args
, **kwargs
)
314 def SetWidth(*args
, **kwargs
):
315 """SetWidth(int width)"""
316 return _gdi
.Pen_SetWidth(*args
, **kwargs
)
318 def SetDashes(*args
, **kwargs
):
319 """SetDashes(int dashes, wxDash dashes_array)"""
320 return _gdi
.Pen_SetDashes(*args
, **kwargs
)
322 def GetDashes(*args
, **kwargs
):
323 """GetDashes() -> PyObject"""
324 return _gdi
.Pen_GetDashes(*args
, **kwargs
)
326 def __eq__(*args
, **kwargs
):
327 """__eq__(Pen other) -> bool"""
328 return _gdi
.Pen___eq__(*args
, **kwargs
)
330 def __ne__(*args
, **kwargs
):
331 """__ne__(Pen other) -> bool"""
332 return _gdi
.Pen___ne__(*args
, **kwargs
)
334 def GetDashCount(*args
, **kwargs
):
335 """GetDashCount() -> int"""
336 return _gdi
.Pen_GetDashCount(*args
, **kwargs
)
338 def GetStipple(*args
, **kwargs
):
339 """GetStipple() -> Bitmap"""
340 return _gdi
.Pen_GetStipple(*args
, **kwargs
)
342 def SetStipple(*args
, **kwargs
):
343 """SetStipple(Bitmap stipple)"""
344 return _gdi
.Pen_SetStipple(*args
, **kwargs
)
346 def __nonzero__(self
): return self
.Ok()
349 def __init__(self
, this
):
351 if not hasattr(self
,"thisown"): self
.thisown
= 0
353 _gdi
.Pen_swigregister(PenPtr
)
357 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
358 def __init__(self
, *args
, **kwargs
):
359 """__init__(Colour colour, int width=1, int style=SOLID) -> PyPen"""
360 newobj
= _gdi
.new_PyPen(*args
, **kwargs
)
361 self
.this
= newobj
.this
364 def __del__(self
, destroy
=_gdi
.delete_PyPen
):
367 if self
.thisown
: destroy(self
)
370 def SetDashes(*args
, **kwargs
):
371 """SetDashes(int dashes, wxDash dashes_array)"""
372 return _gdi
.PyPen_SetDashes(*args
, **kwargs
)
375 class PyPenPtr(PyPen
):
376 def __init__(self
, this
):
378 if not hasattr(self
,"thisown"): self
.thisown
= 0
379 self
.__class
__ = PyPen
380 _gdi
.PyPen_swigregister(PyPenPtr
)
383 #---------------------------------------------------------------------------
385 class Brush(GDIObject
):
387 A brush is a drawing tool for filling in areas. It is used for painting the
388 background of rectangles, ellipses, etc. It has a colour and a style.
391 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
392 def __init__(self
, *args
, **kwargs
):
394 __init__(Colour colour, int style=SOLID) -> Brush
396 Constructs a brush from a colour object and style.
398 newobj
= _gdi
.new_Brush(*args
, **kwargs
)
399 self
.this
= newobj
.this
402 def __del__(self
, destroy
=_gdi
.delete_Brush
):
405 if self
.thisown
: destroy(self
)
408 def SetColour(*args
, **kwargs
):
409 """SetColour(Colour col)"""
410 return _gdi
.Brush_SetColour(*args
, **kwargs
)
412 def SetStyle(*args
, **kwargs
):
413 """SetStyle(int style)"""
414 return _gdi
.Brush_SetStyle(*args
, **kwargs
)
416 def SetStipple(*args
, **kwargs
):
417 """SetStipple(Bitmap stipple)"""
418 return _gdi
.Brush_SetStipple(*args
, **kwargs
)
420 def GetColour(*args
, **kwargs
):
421 """GetColour() -> Colour"""
422 return _gdi
.Brush_GetColour(*args
, **kwargs
)
424 def GetStyle(*args
, **kwargs
):
425 """GetStyle() -> int"""
426 return _gdi
.Brush_GetStyle(*args
, **kwargs
)
428 def GetStipple(*args
, **kwargs
):
429 """GetStipple() -> Bitmap"""
430 return _gdi
.Brush_GetStipple(*args
, **kwargs
)
432 def Ok(*args
, **kwargs
):
434 return _gdi
.Brush_Ok(*args
, **kwargs
)
436 def __nonzero__(self
): return self
.Ok()
438 class BrushPtr(Brush
):
439 def __init__(self
, this
):
441 if not hasattr(self
,"thisown"): self
.thisown
= 0
442 self
.__class
__ = Brush
443 _gdi
.Brush_swigregister(BrushPtr
)
445 class Bitmap(GDIObject
):
447 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
448 def __init__(self
, *args
, **kwargs
):
450 __init__(String name, int type=BITMAP_TYPE_ANY) -> Bitmap
452 Loads a bitmap from a file.
454 newobj
= _gdi
.new_Bitmap(*args
, **kwargs
)
455 self
.this
= newobj
.this
458 def __del__(self
, destroy
=_gdi
.delete_Bitmap
):
461 if self
.thisown
: destroy(self
)
464 def SetPalette(*args
, **kwargs
):
465 """SetPalette(Palette palette)"""
466 return _gdi
.Bitmap_SetPalette(*args
, **kwargs
)
468 def GetHandle(*args
, **kwargs
):
469 """GetHandle() -> long"""
470 return _gdi
.Bitmap_GetHandle(*args
, **kwargs
)
472 def SetHandle(*args
, **kwargs
):
473 """SetHandle(long handle)"""
474 return _gdi
.Bitmap_SetHandle(*args
, **kwargs
)
476 def Ok(*args
, **kwargs
):
478 return _gdi
.Bitmap_Ok(*args
, **kwargs
)
480 def GetWidth(*args
, **kwargs
):
484 Gets the width of the bitmap in pixels.
486 return _gdi
.Bitmap_GetWidth(*args
, **kwargs
)
488 def GetHeight(*args
, **kwargs
):
492 Gets the height of the bitmap in pixels.
494 return _gdi
.Bitmap_GetHeight(*args
, **kwargs
)
496 def GetDepth(*args
, **kwargs
):
500 Gets the colour depth of the bitmap. A value of 1 indicates a
503 return _gdi
.Bitmap_GetDepth(*args
, **kwargs
)
505 def GetSize(*args
, **kwargs
):
509 Get the size of the bitmap.
511 return _gdi
.Bitmap_GetSize(*args
, **kwargs
)
513 def ConvertToImage(*args
, **kwargs
):
515 ConvertToImage() -> Image
517 Creates a platform-independent image from a platform-dependent bitmap. This
518 preserves mask information so that bitmaps and images can be converted back
519 and forth without loss in that respect.
521 return _gdi
.Bitmap_ConvertToImage(*args
, **kwargs
)
523 def GetMask(*args
, **kwargs
):
527 Gets the associated mask (if any) which may have been loaded from a file
528 or explpicitly set for the bitmap.
530 return _gdi
.Bitmap_GetMask(*args
, **kwargs
)
532 def SetMask(*args
, **kwargs
):
536 Sets the mask for this bitmap.
538 return _gdi
.Bitmap_SetMask(*args
, **kwargs
)
540 def SetMaskColour(*args
, **kwargs
):
542 SetMaskColour(Colour colour)
544 Create a Mask based on a specified colour in the Bitmap.
546 return _gdi
.Bitmap_SetMaskColour(*args
, **kwargs
)
548 def GetSubBitmap(*args
, **kwargs
):
550 GetSubBitmap(Rect rect) -> Bitmap
552 Returns a sub bitmap of the current one as long as the rect belongs entirely
553 to the bitmap. This function preserves bit depth and mask information.
555 return _gdi
.Bitmap_GetSubBitmap(*args
, **kwargs
)
557 def SaveFile(*args
, **kwargs
):
559 SaveFile(String name, int type, Palette palette=(wxPalette *) NULL) -> bool
561 Saves a bitmap in the named file.
563 return _gdi
.Bitmap_SaveFile(*args
, **kwargs
)
565 def LoadFile(*args
, **kwargs
):
567 LoadFile(String name, int type) -> bool
569 Loads a bitmap from a file
571 return _gdi
.Bitmap_LoadFile(*args
, **kwargs
)
573 def CopyFromIcon(*args
, **kwargs
):
574 """CopyFromIcon(Icon icon) -> bool"""
575 return _gdi
.Bitmap_CopyFromIcon(*args
, **kwargs
)
577 def SetHeight(*args
, **kwargs
):
579 SetHeight(int height)
581 Set the height property (does not affect the bitmap data).
583 return _gdi
.Bitmap_SetHeight(*args
, **kwargs
)
585 def SetWidth(*args
, **kwargs
):
589 Set the width property (does not affect the bitmap data).
591 return _gdi
.Bitmap_SetWidth(*args
, **kwargs
)
593 def SetDepth(*args
, **kwargs
):
597 Set the depth property (does not affect the bitmap data).
599 return _gdi
.Bitmap_SetDepth(*args
, **kwargs
)
601 def SetSize(*args
, **kwargs
):
607 return _gdi
.Bitmap_SetSize(*args
, **kwargs
)
609 def CopyFromCursor(*args
, **kwargs
):
610 """CopyFromCursor(Cursor cursor) -> bool"""
611 return _gdi
.Bitmap_CopyFromCursor(*args
, **kwargs
)
613 def GetQuality(*args
, **kwargs
):
614 """GetQuality() -> int"""
615 return _gdi
.Bitmap_GetQuality(*args
, **kwargs
)
617 def SetQuality(*args
, **kwargs
):
618 """SetQuality(int q)"""
619 return _gdi
.Bitmap_SetQuality(*args
, **kwargs
)
621 def __nonzero__(self
): return self
.Ok()
622 def __eq__(*args
, **kwargs
):
623 """__eq__(Bitmap other) -> bool"""
624 return _gdi
.Bitmap___eq__(*args
, **kwargs
)
626 def __ne__(*args
, **kwargs
):
627 """__ne__(Bitmap other) -> bool"""
628 return _gdi
.Bitmap___ne__(*args
, **kwargs
)
631 class BitmapPtr(Bitmap
):
632 def __init__(self
, this
):
634 if not hasattr(self
,"thisown"): self
.thisown
= 0
635 self
.__class
__ = Bitmap
636 _gdi
.Bitmap_swigregister(BitmapPtr
)
638 def BitmapFromIcon(*args
, **kwargs
):
640 BitmapFromIcon(Icon icon) -> Bitmap
642 Create a new bitmap from an Icon object.
644 val
= _gdi
.new_BitmapFromIcon(*args
, **kwargs
)
648 def BitmapFromImage(*args
, **kwargs
):
650 BitmapFromImage(Image image, int depth=-1) -> Bitmap
652 Creates bitmap object from the image. This has to be done to actually display
653 an image as you cannot draw an image directly on a window. The resulting
654 bitmap will use the provided colour depth (or that of the current system if
655 depth is -1) which entails that a colour reduction has to take place.
657 val
= _gdi
.new_BitmapFromImage(*args
, **kwargs
)
661 def BitmapFromXPMData(*args
, **kwargs
):
663 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
665 Construct a Bitmap from a list of strings formatted as XPM data.
667 val
= _gdi
.new_BitmapFromXPMData(*args
, **kwargs
)
671 def BitmapFromBits(*args
, **kwargs
):
673 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
675 Creates a bitmap from an array of bits. You should only use this function for
676 monochrome bitmaps (depth 1) in portable programs: in this case the bits
677 parameter should contain an XBM image. For other bit depths, the behaviour is
680 val
= _gdi
.new_BitmapFromBits(*args
, **kwargs
)
684 def EmptyBitmap(*args
):
686 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
687 EmptyBitmap(Size size, int depth=-1) -> Bitmap
689 Creates a new bitmap of the given size. A depth of -1 indicates
690 the depth of the current screen or visual. Some platforms only
691 support 1 for monochrome and -1 for the current colour setting.
693 val
= _gdi
.new_EmptyBitmap(*args
)
697 class Mask(core
.Object
):
699 This class encapsulates a monochrome mask bitmap, where the masked area is
700 black and the unmasked area is white. When associated with a bitmap and drawn
701 in a device context, the unmasked area of the bitmap will be drawn, and the
702 masked area will not be drawn.
705 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
706 def __init__(self
, *args
, **kwargs
):
708 __init__(Bitmap bitmap, Colour colour=NullColour) -> Mask
710 Constructs a mask from a bitmap and a colour in that bitmap that indicates
711 the transparent portions of the mask, by default BLACK is used.
713 newobj
= _gdi
.new_Mask(*args
, **kwargs
)
714 self
.this
= newobj
.this
719 def __init__(self
, this
):
721 if not hasattr(self
,"thisown"): self
.thisown
= 0
722 self
.__class
__ = Mask
723 _gdi
.Mask_swigregister(MaskPtr
)
726 class Icon(GDIObject
):
728 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
729 def __init__(self
, *args
, **kwargs
):
730 """__init__(String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
731 newobj
= _gdi
.new_Icon(*args
, **kwargs
)
732 self
.this
= newobj
.this
735 def __del__(self
, destroy
=_gdi
.delete_Icon
):
738 if self
.thisown
: destroy(self
)
741 def LoadFile(*args
, **kwargs
):
742 """LoadFile(String name, int type) -> bool"""
743 return _gdi
.Icon_LoadFile(*args
, **kwargs
)
745 def GetHandle(*args
, **kwargs
):
746 """GetHandle() -> long"""
747 return _gdi
.Icon_GetHandle(*args
, **kwargs
)
749 def SetHandle(*args
, **kwargs
):
750 """SetHandle(long handle)"""
751 return _gdi
.Icon_SetHandle(*args
, **kwargs
)
753 def Ok(*args
, **kwargs
):
755 return _gdi
.Icon_Ok(*args
, **kwargs
)
757 def GetWidth(*args
, **kwargs
):
758 """GetWidth() -> int"""
759 return _gdi
.Icon_GetWidth(*args
, **kwargs
)
761 def GetHeight(*args
, **kwargs
):
762 """GetHeight() -> int"""
763 return _gdi
.Icon_GetHeight(*args
, **kwargs
)
765 def GetDepth(*args
, **kwargs
):
766 """GetDepth() -> int"""
767 return _gdi
.Icon_GetDepth(*args
, **kwargs
)
769 def SetWidth(*args
, **kwargs
):
770 """SetWidth(int w)"""
771 return _gdi
.Icon_SetWidth(*args
, **kwargs
)
773 def SetHeight(*args
, **kwargs
):
774 """SetHeight(int h)"""
775 return _gdi
.Icon_SetHeight(*args
, **kwargs
)
777 def SetDepth(*args
, **kwargs
):
778 """SetDepth(int d)"""
779 return _gdi
.Icon_SetDepth(*args
, **kwargs
)
781 def SetSize(*args
, **kwargs
):
782 """SetSize(Size size)"""
783 return _gdi
.Icon_SetSize(*args
, **kwargs
)
785 def CopyFromBitmap(*args
, **kwargs
):
786 """CopyFromBitmap(Bitmap bmp)"""
787 return _gdi
.Icon_CopyFromBitmap(*args
, **kwargs
)
789 def __nonzero__(self
): return self
.Ok()
792 def __init__(self
, this
):
794 if not hasattr(self
,"thisown"): self
.thisown
= 0
795 self
.__class
__ = Icon
796 _gdi
.Icon_swigregister(IconPtr
)
798 def EmptyIcon(*args
, **kwargs
):
799 """EmptyIcon() -> Icon"""
800 val
= _gdi
.new_EmptyIcon(*args
, **kwargs
)
804 def IconFromLocation(*args
, **kwargs
):
805 """IconFromLocation(IconLocation loc) -> Icon"""
806 val
= _gdi
.new_IconFromLocation(*args
, **kwargs
)
810 def IconFromBitmap(*args
, **kwargs
):
811 """IconFromBitmap(Bitmap bmp) -> Icon"""
812 val
= _gdi
.new_IconFromBitmap(*args
, **kwargs
)
816 def IconFromXPMData(*args
, **kwargs
):
817 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
818 val
= _gdi
.new_IconFromXPMData(*args
, **kwargs
)
822 class IconLocation(object):
824 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
825 def __init__(self
, *args
, **kwargs
):
826 """__init__(String filename=&wxPyEmptyString, int num=0) -> IconLocation"""
827 newobj
= _gdi
.new_IconLocation(*args
, **kwargs
)
828 self
.this
= newobj
.this
831 def __del__(self
, destroy
=_gdi
.delete_IconLocation
):
834 if self
.thisown
: destroy(self
)
837 def IsOk(*args
, **kwargs
):
839 return _gdi
.IconLocation_IsOk(*args
, **kwargs
)
841 def __nonzero__(self
): return self
.Ok()
842 def SetFileName(*args
, **kwargs
):
843 """SetFileName(String filename)"""
844 return _gdi
.IconLocation_SetFileName(*args
, **kwargs
)
846 def GetFileName(*args
, **kwargs
):
847 """GetFileName() -> String"""
848 return _gdi
.IconLocation_GetFileName(*args
, **kwargs
)
850 def SetIndex(*args
, **kwargs
):
851 """SetIndex(int num)"""
852 return _gdi
.IconLocation_SetIndex(*args
, **kwargs
)
854 def GetIndex(*args
, **kwargs
):
855 """GetIndex() -> int"""
856 return _gdi
.IconLocation_GetIndex(*args
, **kwargs
)
859 class IconLocationPtr(IconLocation
):
860 def __init__(self
, this
):
862 if not hasattr(self
,"thisown"): self
.thisown
= 0
863 self
.__class
__ = IconLocation
864 _gdi
.IconLocation_swigregister(IconLocationPtr
)
866 class IconBundle(object):
868 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
869 def __init__(self
, *args
, **kwargs
):
870 """__init__() -> IconBundle"""
871 newobj
= _gdi
.new_IconBundle(*args
, **kwargs
)
872 self
.this
= newobj
.this
875 def __del__(self
, destroy
=_gdi
.delete_IconBundle
):
878 if self
.thisown
: destroy(self
)
881 def AddIcon(*args
, **kwargs
):
882 """AddIcon(Icon icon)"""
883 return _gdi
.IconBundle_AddIcon(*args
, **kwargs
)
885 def AddIconFromFile(*args
, **kwargs
):
886 """AddIconFromFile(String file, long type)"""
887 return _gdi
.IconBundle_AddIconFromFile(*args
, **kwargs
)
889 def GetIcon(*args
, **kwargs
):
890 """GetIcon(Size size) -> Icon"""
891 return _gdi
.IconBundle_GetIcon(*args
, **kwargs
)
894 class IconBundlePtr(IconBundle
):
895 def __init__(self
, this
):
897 if not hasattr(self
,"thisown"): self
.thisown
= 0
898 self
.__class
__ = IconBundle
899 _gdi
.IconBundle_swigregister(IconBundlePtr
)
901 def IconBundleFromFile(*args
, **kwargs
):
902 """IconBundleFromFile(String file, long type) -> IconBundle"""
903 val
= _gdi
.new_IconBundleFromFile(*args
, **kwargs
)
907 def IconBundleFromIcon(*args
, **kwargs
):
908 """IconBundleFromIcon(Icon icon) -> IconBundle"""
909 val
= _gdi
.new_IconBundleFromIcon(*args
, **kwargs
)
913 class Cursor(GDIObject
):
915 A cursor is a small bitmap usually used for denoting where the
916 mouse pointer is, with a picture that might indicate the
917 interpretation of a mouse click.
919 A single cursor object may be used in many windows (any subwindow
920 type). The wxWindows convention is to set the cursor for a
921 window, as in X, rather than to set it globally as in MS Windows,
922 although a global wx.SetCursor function is also available for use
926 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
927 def __init__(self
, *args
, **kwargs
):
929 __init__(String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor
931 Construct a Cursor from a file. Specify the type of file using
932 wx.BITAMP_TYPE* constants, and specify the hotspot if not using a
935 This cursor is not available on wxGTK, use wx.StockCursor,
936 wx.CursorFromImage, or wx.CursorFromBits instead.
938 newobj
= _gdi
.new_Cursor(*args
, **kwargs
)
939 self
.this
= newobj
.this
942 def __del__(self
, destroy
=_gdi
.delete_Cursor
):
945 if self
.thisown
: destroy(self
)
948 def GetHandle(*args
, **kwargs
):
952 Get the MS Windows handle for the cursor
954 return _gdi
.Cursor_GetHandle(*args
, **kwargs
)
956 def SetHandle(*args
, **kwargs
):
958 SetHandle(long handle)
960 Set the MS Windows handle to use for the cursor
962 return _gdi
.Cursor_SetHandle(*args
, **kwargs
)
964 def Ok(*args
, **kwargs
):
966 return _gdi
.Cursor_Ok(*args
, **kwargs
)
968 def __nonzero__(self
): return self
.Ok()
969 def GetWidth(*args
, **kwargs
):
970 """GetWidth() -> int"""
971 return _gdi
.Cursor_GetWidth(*args
, **kwargs
)
973 def GetHeight(*args
, **kwargs
):
974 """GetHeight() -> int"""
975 return _gdi
.Cursor_GetHeight(*args
, **kwargs
)
977 def GetDepth(*args
, **kwargs
):
978 """GetDepth() -> int"""
979 return _gdi
.Cursor_GetDepth(*args
, **kwargs
)
981 def SetWidth(*args
, **kwargs
):
982 """SetWidth(int w)"""
983 return _gdi
.Cursor_SetWidth(*args
, **kwargs
)
985 def SetHeight(*args
, **kwargs
):
986 """SetHeight(int h)"""
987 return _gdi
.Cursor_SetHeight(*args
, **kwargs
)
989 def SetDepth(*args
, **kwargs
):
990 """SetDepth(int d)"""
991 return _gdi
.Cursor_SetDepth(*args
, **kwargs
)
993 def SetSize(*args
, **kwargs
):
994 """SetSize(Size size)"""
995 return _gdi
.Cursor_SetSize(*args
, **kwargs
)
998 class CursorPtr(Cursor
):
999 def __init__(self
, this
):
1001 if not hasattr(self
,"thisown"): self
.thisown
= 0
1002 self
.__class
__ = Cursor
1003 _gdi
.Cursor_swigregister(CursorPtr
)
1005 def StockCursor(*args
, **kwargs
):
1007 StockCursor(int id) -> Cursor
1009 Create a cursor using one of the stock cursors. Note that not
1010 all cursors are available on all platforms.
1012 val
= _gdi
.new_StockCursor(*args
, **kwargs
)
1016 def CursorFromImage(*args
, **kwargs
):
1018 CursorFromImage(Image image) -> Cursor
1020 Constructs a cursor from a wxImage. The cursor is monochrome,
1021 colors with the RGB elements all greater than 127 will be
1022 foreground, colors less than this background. The mask (if any)
1023 will be used as transparent.
1025 In MSW the foreground will be white and the background black. The
1026 cursor is resized to 32x32 In GTK, the two most frequent colors
1027 will be used for foreground and background. The cursor will be
1028 displayed at the size of the image. On MacOS the cursor is
1029 resized to 16x16 and currently only shown as black/white (mask
1032 val
= _gdi
.new_CursorFromImage(*args
, **kwargs
)
1036 #---------------------------------------------------------------------------
1038 OutRegion
= _gdi
.OutRegion
1039 PartRegion
= _gdi
.PartRegion
1040 InRegion
= _gdi
.InRegion
1041 class Region(GDIObject
):
1043 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1044 def __init__(self
, *args
, **kwargs
):
1045 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
1046 newobj
= _gdi
.new_Region(*args
, **kwargs
)
1047 self
.this
= newobj
.this
1050 def __del__(self
, destroy
=_gdi
.delete_Region
):
1053 if self
.thisown
: destroy(self
)
1056 def Clear(*args
, **kwargs
):
1058 return _gdi
.Region_Clear(*args
, **kwargs
)
1060 def Offset(*args
, **kwargs
):
1061 """Offset(int x, int y) -> bool"""
1062 return _gdi
.Region_Offset(*args
, **kwargs
)
1064 def Contains(*args
, **kwargs
):
1065 """Contains(int x, int y) -> int"""
1066 return _gdi
.Region_Contains(*args
, **kwargs
)
1068 def ContainsPoint(*args
, **kwargs
):
1069 """ContainsPoint(Point pt) -> int"""
1070 return _gdi
.Region_ContainsPoint(*args
, **kwargs
)
1072 def ContainsRect(*args
, **kwargs
):
1073 """ContainsRect(Rect rect) -> int"""
1074 return _gdi
.Region_ContainsRect(*args
, **kwargs
)
1076 def ContainsRectDim(*args
, **kwargs
):
1077 """ContainsRectDim(int x, int y, int w, int h) -> int"""
1078 return _gdi
.Region_ContainsRectDim(*args
, **kwargs
)
1080 def GetBox(*args
, **kwargs
):
1081 """GetBox() -> Rect"""
1082 return _gdi
.Region_GetBox(*args
, **kwargs
)
1084 def Intersect(*args
, **kwargs
):
1085 """Intersect(int x, int y, int width, int height) -> bool"""
1086 return _gdi
.Region_Intersect(*args
, **kwargs
)
1088 def IntersectRect(*args
, **kwargs
):
1089 """IntersectRect(Rect rect) -> bool"""
1090 return _gdi
.Region_IntersectRect(*args
, **kwargs
)
1092 def IntersectRegion(*args
, **kwargs
):
1093 """IntersectRegion(Region region) -> bool"""
1094 return _gdi
.Region_IntersectRegion(*args
, **kwargs
)
1096 def IsEmpty(*args
, **kwargs
):
1097 """IsEmpty() -> bool"""
1098 return _gdi
.Region_IsEmpty(*args
, **kwargs
)
1100 def Union(*args
, **kwargs
):
1101 """Union(int x, int y, int width, int height) -> bool"""
1102 return _gdi
.Region_Union(*args
, **kwargs
)
1104 def UnionRect(*args
, **kwargs
):
1105 """UnionRect(Rect rect) -> bool"""
1106 return _gdi
.Region_UnionRect(*args
, **kwargs
)
1108 def UnionRegion(*args
, **kwargs
):
1109 """UnionRegion(Region region) -> bool"""
1110 return _gdi
.Region_UnionRegion(*args
, **kwargs
)
1112 def Subtract(*args
, **kwargs
):
1113 """Subtract(int x, int y, int width, int height) -> bool"""
1114 return _gdi
.Region_Subtract(*args
, **kwargs
)
1116 def SubtractRect(*args
, **kwargs
):
1117 """SubtractRect(Rect rect) -> bool"""
1118 return _gdi
.Region_SubtractRect(*args
, **kwargs
)
1120 def SubtractRegion(*args
, **kwargs
):
1121 """SubtractRegion(Region region) -> bool"""
1122 return _gdi
.Region_SubtractRegion(*args
, **kwargs
)
1124 def Xor(*args
, **kwargs
):
1125 """Xor(int x, int y, int width, int height) -> bool"""
1126 return _gdi
.Region_Xor(*args
, **kwargs
)
1128 def XorRect(*args
, **kwargs
):
1129 """XorRect(Rect rect) -> bool"""
1130 return _gdi
.Region_XorRect(*args
, **kwargs
)
1132 def XorRegion(*args
, **kwargs
):
1133 """XorRegion(Region region) -> bool"""
1134 return _gdi
.Region_XorRegion(*args
, **kwargs
)
1136 def ConvertToBitmap(*args
, **kwargs
):
1137 """ConvertToBitmap() -> Bitmap"""
1138 return _gdi
.Region_ConvertToBitmap(*args
, **kwargs
)
1140 def UnionBitmap(*args
, **kwargs
):
1141 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
1142 return _gdi
.Region_UnionBitmap(*args
, **kwargs
)
1145 class RegionPtr(Region
):
1146 def __init__(self
, this
):
1148 if not hasattr(self
,"thisown"): self
.thisown
= 0
1149 self
.__class
__ = Region
1150 _gdi
.Region_swigregister(RegionPtr
)
1152 def RegionFromBitmap(*args
, **kwargs
):
1153 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
1154 val
= _gdi
.new_RegionFromBitmap(*args
, **kwargs
)
1158 def RegionFromPoints(*args
, **kwargs
):
1159 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
1160 val
= _gdi
.new_RegionFromPoints(*args
, **kwargs
)
1164 class RegionIterator(core
.Object
):
1166 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1167 def __init__(self
, *args
, **kwargs
):
1168 """__init__(Region region) -> RegionIterator"""
1169 newobj
= _gdi
.new_RegionIterator(*args
, **kwargs
)
1170 self
.this
= newobj
.this
1173 def __del__(self
, destroy
=_gdi
.delete_RegionIterator
):
1176 if self
.thisown
: destroy(self
)
1179 def GetX(*args
, **kwargs
):
1181 return _gdi
.RegionIterator_GetX(*args
, **kwargs
)
1183 def GetY(*args
, **kwargs
):
1185 return _gdi
.RegionIterator_GetY(*args
, **kwargs
)
1187 def GetW(*args
, **kwargs
):
1189 return _gdi
.RegionIterator_GetW(*args
, **kwargs
)
1191 def GetWidth(*args
, **kwargs
):
1192 """GetWidth() -> int"""
1193 return _gdi
.RegionIterator_GetWidth(*args
, **kwargs
)
1195 def GetH(*args
, **kwargs
):
1197 return _gdi
.RegionIterator_GetH(*args
, **kwargs
)
1199 def GetHeight(*args
, **kwargs
):
1200 """GetHeight() -> int"""
1201 return _gdi
.RegionIterator_GetHeight(*args
, **kwargs
)
1203 def GetRect(*args
, **kwargs
):
1204 """GetRect() -> Rect"""
1205 return _gdi
.RegionIterator_GetRect(*args
, **kwargs
)
1207 def HaveRects(*args
, **kwargs
):
1208 """HaveRects() -> bool"""
1209 return _gdi
.RegionIterator_HaveRects(*args
, **kwargs
)
1211 def Reset(*args
, **kwargs
):
1213 return _gdi
.RegionIterator_Reset(*args
, **kwargs
)
1215 def Next(*args
, **kwargs
):
1217 return _gdi
.RegionIterator_Next(*args
, **kwargs
)
1219 def __nonzero__(*args
, **kwargs
):
1220 """__nonzero__() -> bool"""
1221 return _gdi
.RegionIterator___nonzero__(*args
, **kwargs
)
1224 class RegionIteratorPtr(RegionIterator
):
1225 def __init__(self
, this
):
1227 if not hasattr(self
,"thisown"): self
.thisown
= 0
1228 self
.__class
__ = RegionIterator
1229 _gdi
.RegionIterator_swigregister(RegionIteratorPtr
)
1231 #---------------------------------------------------------------------------
1233 FONTFAMILY_DEFAULT
= _gdi
.FONTFAMILY_DEFAULT
1234 FONTFAMILY_DECORATIVE
= _gdi
.FONTFAMILY_DECORATIVE
1235 FONTFAMILY_ROMAN
= _gdi
.FONTFAMILY_ROMAN
1236 FONTFAMILY_SCRIPT
= _gdi
.FONTFAMILY_SCRIPT
1237 FONTFAMILY_SWISS
= _gdi
.FONTFAMILY_SWISS
1238 FONTFAMILY_MODERN
= _gdi
.FONTFAMILY_MODERN
1239 FONTFAMILY_TELETYPE
= _gdi
.FONTFAMILY_TELETYPE
1240 FONTFAMILY_MAX
= _gdi
.FONTFAMILY_MAX
1241 FONTFAMILY_UNKNOWN
= _gdi
.FONTFAMILY_UNKNOWN
1242 FONTSTYLE_NORMAL
= _gdi
.FONTSTYLE_NORMAL
1243 FONTSTYLE_ITALIC
= _gdi
.FONTSTYLE_ITALIC
1244 FONTSTYLE_SLANT
= _gdi
.FONTSTYLE_SLANT
1245 FONTSTYLE_MAX
= _gdi
.FONTSTYLE_MAX
1246 FONTWEIGHT_NORMAL
= _gdi
.FONTWEIGHT_NORMAL
1247 FONTWEIGHT_LIGHT
= _gdi
.FONTWEIGHT_LIGHT
1248 FONTWEIGHT_BOLD
= _gdi
.FONTWEIGHT_BOLD
1249 FONTWEIGHT_MAX
= _gdi
.FONTWEIGHT_MAX
1250 FONTFLAG_DEFAULT
= _gdi
.FONTFLAG_DEFAULT
1251 FONTFLAG_ITALIC
= _gdi
.FONTFLAG_ITALIC
1252 FONTFLAG_SLANT
= _gdi
.FONTFLAG_SLANT
1253 FONTFLAG_LIGHT
= _gdi
.FONTFLAG_LIGHT
1254 FONTFLAG_BOLD
= _gdi
.FONTFLAG_BOLD
1255 FONTFLAG_ANTIALIASED
= _gdi
.FONTFLAG_ANTIALIASED
1256 FONTFLAG_NOT_ANTIALIASED
= _gdi
.FONTFLAG_NOT_ANTIALIASED
1257 FONTFLAG_UNDERLINED
= _gdi
.FONTFLAG_UNDERLINED
1258 FONTFLAG_STRIKETHROUGH
= _gdi
.FONTFLAG_STRIKETHROUGH
1259 FONTFLAG_MASK
= _gdi
.FONTFLAG_MASK
1260 FONTENCODING_SYSTEM
= _gdi
.FONTENCODING_SYSTEM
1261 FONTENCODING_DEFAULT
= _gdi
.FONTENCODING_DEFAULT
1262 FONTENCODING_ISO8859_1
= _gdi
.FONTENCODING_ISO8859_1
1263 FONTENCODING_ISO8859_2
= _gdi
.FONTENCODING_ISO8859_2
1264 FONTENCODING_ISO8859_3
= _gdi
.FONTENCODING_ISO8859_3
1265 FONTENCODING_ISO8859_4
= _gdi
.FONTENCODING_ISO8859_4
1266 FONTENCODING_ISO8859_5
= _gdi
.FONTENCODING_ISO8859_5
1267 FONTENCODING_ISO8859_6
= _gdi
.FONTENCODING_ISO8859_6
1268 FONTENCODING_ISO8859_7
= _gdi
.FONTENCODING_ISO8859_7
1269 FONTENCODING_ISO8859_8
= _gdi
.FONTENCODING_ISO8859_8
1270 FONTENCODING_ISO8859_9
= _gdi
.FONTENCODING_ISO8859_9
1271 FONTENCODING_ISO8859_10
= _gdi
.FONTENCODING_ISO8859_10
1272 FONTENCODING_ISO8859_11
= _gdi
.FONTENCODING_ISO8859_11
1273 FONTENCODING_ISO8859_12
= _gdi
.FONTENCODING_ISO8859_12
1274 FONTENCODING_ISO8859_13
= _gdi
.FONTENCODING_ISO8859_13
1275 FONTENCODING_ISO8859_14
= _gdi
.FONTENCODING_ISO8859_14
1276 FONTENCODING_ISO8859_15
= _gdi
.FONTENCODING_ISO8859_15
1277 FONTENCODING_ISO8859_MAX
= _gdi
.FONTENCODING_ISO8859_MAX
1278 FONTENCODING_KOI8
= _gdi
.FONTENCODING_KOI8
1279 FONTENCODING_KOI8_U
= _gdi
.FONTENCODING_KOI8_U
1280 FONTENCODING_ALTERNATIVE
= _gdi
.FONTENCODING_ALTERNATIVE
1281 FONTENCODING_BULGARIAN
= _gdi
.FONTENCODING_BULGARIAN
1282 FONTENCODING_CP437
= _gdi
.FONTENCODING_CP437
1283 FONTENCODING_CP850
= _gdi
.FONTENCODING_CP850
1284 FONTENCODING_CP852
= _gdi
.FONTENCODING_CP852
1285 FONTENCODING_CP855
= _gdi
.FONTENCODING_CP855
1286 FONTENCODING_CP866
= _gdi
.FONTENCODING_CP866
1287 FONTENCODING_CP874
= _gdi
.FONTENCODING_CP874
1288 FONTENCODING_CP932
= _gdi
.FONTENCODING_CP932
1289 FONTENCODING_CP936
= _gdi
.FONTENCODING_CP936
1290 FONTENCODING_CP949
= _gdi
.FONTENCODING_CP949
1291 FONTENCODING_CP950
= _gdi
.FONTENCODING_CP950
1292 FONTENCODING_CP1250
= _gdi
.FONTENCODING_CP1250
1293 FONTENCODING_CP1251
= _gdi
.FONTENCODING_CP1251
1294 FONTENCODING_CP1252
= _gdi
.FONTENCODING_CP1252
1295 FONTENCODING_CP1253
= _gdi
.FONTENCODING_CP1253
1296 FONTENCODING_CP1254
= _gdi
.FONTENCODING_CP1254
1297 FONTENCODING_CP1255
= _gdi
.FONTENCODING_CP1255
1298 FONTENCODING_CP1256
= _gdi
.FONTENCODING_CP1256
1299 FONTENCODING_CP1257
= _gdi
.FONTENCODING_CP1257
1300 FONTENCODING_CP12_MAX
= _gdi
.FONTENCODING_CP12_MAX
1301 FONTENCODING_UTF7
= _gdi
.FONTENCODING_UTF7
1302 FONTENCODING_UTF8
= _gdi
.FONTENCODING_UTF8
1303 FONTENCODING_EUC_JP
= _gdi
.FONTENCODING_EUC_JP
1304 FONTENCODING_UTF16BE
= _gdi
.FONTENCODING_UTF16BE
1305 FONTENCODING_UTF16LE
= _gdi
.FONTENCODING_UTF16LE
1306 FONTENCODING_UTF32BE
= _gdi
.FONTENCODING_UTF32BE
1307 FONTENCODING_UTF32LE
= _gdi
.FONTENCODING_UTF32LE
1308 FONTENCODING_MACROMAN
= _gdi
.FONTENCODING_MACROMAN
1309 FONTENCODING_MACJAPANESE
= _gdi
.FONTENCODING_MACJAPANESE
1310 FONTENCODING_MACCHINESETRAD
= _gdi
.FONTENCODING_MACCHINESETRAD
1311 FONTENCODING_MACKOREAN
= _gdi
.FONTENCODING_MACKOREAN
1312 FONTENCODING_MACARABIC
= _gdi
.FONTENCODING_MACARABIC
1313 FONTENCODING_MACHEBREW
= _gdi
.FONTENCODING_MACHEBREW
1314 FONTENCODING_MACGREEK
= _gdi
.FONTENCODING_MACGREEK
1315 FONTENCODING_MACCYRILLIC
= _gdi
.FONTENCODING_MACCYRILLIC
1316 FONTENCODING_MACDEVANAGARI
= _gdi
.FONTENCODING_MACDEVANAGARI
1317 FONTENCODING_MACGURMUKHI
= _gdi
.FONTENCODING_MACGURMUKHI
1318 FONTENCODING_MACGUJARATI
= _gdi
.FONTENCODING_MACGUJARATI
1319 FONTENCODING_MACORIYA
= _gdi
.FONTENCODING_MACORIYA
1320 FONTENCODING_MACBENGALI
= _gdi
.FONTENCODING_MACBENGALI
1321 FONTENCODING_MACTAMIL
= _gdi
.FONTENCODING_MACTAMIL
1322 FONTENCODING_MACTELUGU
= _gdi
.FONTENCODING_MACTELUGU
1323 FONTENCODING_MACKANNADA
= _gdi
.FONTENCODING_MACKANNADA
1324 FONTENCODING_MACMALAJALAM
= _gdi
.FONTENCODING_MACMALAJALAM
1325 FONTENCODING_MACSINHALESE
= _gdi
.FONTENCODING_MACSINHALESE
1326 FONTENCODING_MACBURMESE
= _gdi
.FONTENCODING_MACBURMESE
1327 FONTENCODING_MACKHMER
= _gdi
.FONTENCODING_MACKHMER
1328 FONTENCODING_MACTHAI
= _gdi
.FONTENCODING_MACTHAI
1329 FONTENCODING_MACLAOTIAN
= _gdi
.FONTENCODING_MACLAOTIAN
1330 FONTENCODING_MACGEORGIAN
= _gdi
.FONTENCODING_MACGEORGIAN
1331 FONTENCODING_MACARMENIAN
= _gdi
.FONTENCODING_MACARMENIAN
1332 FONTENCODING_MACCHINESESIMP
= _gdi
.FONTENCODING_MACCHINESESIMP
1333 FONTENCODING_MACTIBETAN
= _gdi
.FONTENCODING_MACTIBETAN
1334 FONTENCODING_MACMONGOLIAN
= _gdi
.FONTENCODING_MACMONGOLIAN
1335 FONTENCODING_MACETHIOPIC
= _gdi
.FONTENCODING_MACETHIOPIC
1336 FONTENCODING_MACCENTRALEUR
= _gdi
.FONTENCODING_MACCENTRALEUR
1337 FONTENCODING_MACVIATNAMESE
= _gdi
.FONTENCODING_MACVIATNAMESE
1338 FONTENCODING_MACARABICEXT
= _gdi
.FONTENCODING_MACARABICEXT
1339 FONTENCODING_MACSYMBOL
= _gdi
.FONTENCODING_MACSYMBOL
1340 FONTENCODING_MACDINGBATS
= _gdi
.FONTENCODING_MACDINGBATS
1341 FONTENCODING_MACTURKISH
= _gdi
.FONTENCODING_MACTURKISH
1342 FONTENCODING_MACCROATIAN
= _gdi
.FONTENCODING_MACCROATIAN
1343 FONTENCODING_MACICELANDIC
= _gdi
.FONTENCODING_MACICELANDIC
1344 FONTENCODING_MACROMANIAN
= _gdi
.FONTENCODING_MACROMANIAN
1345 FONTENCODING_MACCELTIC
= _gdi
.FONTENCODING_MACCELTIC
1346 FONTENCODING_MACGAELIC
= _gdi
.FONTENCODING_MACGAELIC
1347 FONTENCODING_MACKEYBOARD
= _gdi
.FONTENCODING_MACKEYBOARD
1348 FONTENCODING_MACMIN
= _gdi
.FONTENCODING_MACMIN
1349 FONTENCODING_MACMAX
= _gdi
.FONTENCODING_MACMAX
1350 FONTENCODING_MAX
= _gdi
.FONTENCODING_MAX
1351 FONTENCODING_UTF16
= _gdi
.FONTENCODING_UTF16
1352 FONTENCODING_UTF32
= _gdi
.FONTENCODING_UTF32
1353 FONTENCODING_UNICODE
= _gdi
.FONTENCODING_UNICODE
1354 FONTENCODING_GB2312
= _gdi
.FONTENCODING_GB2312
1355 FONTENCODING_BIG5
= _gdi
.FONTENCODING_BIG5
1356 FONTENCODING_SHIFT_JIS
= _gdi
.FONTENCODING_SHIFT_JIS
1357 #---------------------------------------------------------------------------
1359 class NativeFontInfo(object):
1361 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1362 def __init__(self
, *args
, **kwargs
):
1363 """__init__() -> NativeFontInfo"""
1364 newobj
= _gdi
.new_NativeFontInfo(*args
, **kwargs
)
1365 self
.this
= newobj
.this
1368 def __del__(self
, destroy
=_gdi
.delete_NativeFontInfo
):
1371 if self
.thisown
: destroy(self
)
1374 def Init(*args
, **kwargs
):
1376 return _gdi
.NativeFontInfo_Init(*args
, **kwargs
)
1378 def InitFromFont(*args
, **kwargs
):
1379 """InitFromFont(Font font)"""
1380 return _gdi
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1382 def GetPointSize(*args
, **kwargs
):
1383 """GetPointSize() -> int"""
1384 return _gdi
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1386 def GetStyle(*args
, **kwargs
):
1387 """GetStyle() -> int"""
1388 return _gdi
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1390 def GetWeight(*args
, **kwargs
):
1391 """GetWeight() -> int"""
1392 return _gdi
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1394 def GetUnderlined(*args
, **kwargs
):
1395 """GetUnderlined() -> bool"""
1396 return _gdi
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1398 def GetFaceName(*args
, **kwargs
):
1399 """GetFaceName() -> String"""
1400 return _gdi
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1402 def GetFamily(*args
, **kwargs
):
1403 """GetFamily() -> int"""
1404 return _gdi
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1406 def GetEncoding(*args
, **kwargs
):
1407 """GetEncoding() -> int"""
1408 return _gdi
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1410 def SetPointSize(*args
, **kwargs
):
1411 """SetPointSize(int pointsize)"""
1412 return _gdi
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1414 def SetStyle(*args
, **kwargs
):
1415 """SetStyle(int style)"""
1416 return _gdi
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1418 def SetWeight(*args
, **kwargs
):
1419 """SetWeight(int weight)"""
1420 return _gdi
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1422 def SetUnderlined(*args
, **kwargs
):
1423 """SetUnderlined(bool underlined)"""
1424 return _gdi
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1426 def SetFaceName(*args
, **kwargs
):
1427 """SetFaceName(String facename)"""
1428 return _gdi
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1430 def SetFamily(*args
, **kwargs
):
1431 """SetFamily(int family)"""
1432 return _gdi
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1434 def SetEncoding(*args
, **kwargs
):
1435 """SetEncoding(int encoding)"""
1436 return _gdi
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1438 def FromString(*args
, **kwargs
):
1439 """FromString(String s) -> bool"""
1440 return _gdi
.NativeFontInfo_FromString(*args
, **kwargs
)
1442 def ToString(*args
, **kwargs
):
1443 """ToString() -> String"""
1444 return _gdi
.NativeFontInfo_ToString(*args
, **kwargs
)
1446 def __str__(*args
, **kwargs
):
1447 """__str__() -> String"""
1448 return _gdi
.NativeFontInfo___str__(*args
, **kwargs
)
1450 def FromUserString(*args
, **kwargs
):
1451 """FromUserString(String s) -> bool"""
1452 return _gdi
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1454 def ToUserString(*args
, **kwargs
):
1455 """ToUserString() -> String"""
1456 return _gdi
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1459 class NativeFontInfoPtr(NativeFontInfo
):
1460 def __init__(self
, this
):
1462 if not hasattr(self
,"thisown"): self
.thisown
= 0
1463 self
.__class
__ = NativeFontInfo
1464 _gdi
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1466 class NativeEncodingInfo(object):
1468 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1469 facename
= property(_gdi
.NativeEncodingInfo_facename_get
, _gdi
.NativeEncodingInfo_facename_set
)
1470 encoding
= property(_gdi
.NativeEncodingInfo_encoding_get
, _gdi
.NativeEncodingInfo_encoding_set
)
1471 def __init__(self
, *args
, **kwargs
):
1472 """__init__() -> NativeEncodingInfo"""
1473 newobj
= _gdi
.new_NativeEncodingInfo(*args
, **kwargs
)
1474 self
.this
= newobj
.this
1477 def __del__(self
, destroy
=_gdi
.delete_NativeEncodingInfo
):
1480 if self
.thisown
: destroy(self
)
1483 def FromString(*args
, **kwargs
):
1484 """FromString(String s) -> bool"""
1485 return _gdi
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1487 def ToString(*args
, **kwargs
):
1488 """ToString() -> String"""
1489 return _gdi
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1492 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1493 def __init__(self
, this
):
1495 if not hasattr(self
,"thisown"): self
.thisown
= 0
1496 self
.__class
__ = NativeEncodingInfo
1497 _gdi
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1500 def GetNativeFontEncoding(*args
, **kwargs
):
1501 """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo"""
1502 return _gdi
.GetNativeFontEncoding(*args
, **kwargs
)
1504 def TestFontEncoding(*args
, **kwargs
):
1505 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1506 return _gdi
.TestFontEncoding(*args
, **kwargs
)
1507 #---------------------------------------------------------------------------
1509 class FontMapper(object):
1511 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1512 def __init__(self
, *args
, **kwargs
):
1513 """__init__() -> FontMapper"""
1514 newobj
= _gdi
.new_FontMapper(*args
, **kwargs
)
1515 self
.this
= newobj
.this
1518 def __del__(self
, destroy
=_gdi
.delete_FontMapper
):
1521 if self
.thisown
: destroy(self
)
1524 def Get(*args
, **kwargs
):
1525 """Get() -> FontMapper"""
1526 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1528 Get
= staticmethod(Get
)
1529 def Set(*args
, **kwargs
):
1530 """Set(FontMapper mapper) -> FontMapper"""
1531 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1533 Set
= staticmethod(Set
)
1534 def CharsetToEncoding(*args
, **kwargs
):
1535 """CharsetToEncoding(String charset, bool interactive=True) -> int"""
1536 return _gdi
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1538 def GetSupportedEncodingsCount(*args
, **kwargs
):
1539 """GetSupportedEncodingsCount() -> size_t"""
1540 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1542 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1543 def GetEncoding(*args
, **kwargs
):
1544 """GetEncoding(size_t n) -> int"""
1545 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1547 GetEncoding
= staticmethod(GetEncoding
)
1548 def GetEncodingName(*args
, **kwargs
):
1549 """GetEncodingName(int encoding) -> String"""
1550 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1552 GetEncodingName
= staticmethod(GetEncodingName
)
1553 def GetEncodingDescription(*args
, **kwargs
):
1554 """GetEncodingDescription(int encoding) -> String"""
1555 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1557 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1558 def GetEncodingFromName(*args
, **kwargs
):
1559 """GetEncodingFromName(String name) -> int"""
1560 return _gdi
.FontMapper_GetEncodingFromName(*args
, **kwargs
)
1562 GetEncodingFromName
= staticmethod(GetEncodingFromName
)
1563 def SetConfig(*args
, **kwargs
):
1564 """SetConfig(ConfigBase config)"""
1565 return _gdi
.FontMapper_SetConfig(*args
, **kwargs
)
1567 def SetConfigPath(*args
, **kwargs
):
1568 """SetConfigPath(String prefix)"""
1569 return _gdi
.FontMapper_SetConfigPath(*args
, **kwargs
)
1571 def GetDefaultConfigPath(*args
, **kwargs
):
1572 """GetDefaultConfigPath() -> String"""
1573 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1575 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1576 def GetAltForEncoding(*args
, **kwargs
):
1577 """GetAltForEncoding(int encoding, String facename=EmptyString, bool interactive=True) -> PyObject"""
1578 return _gdi
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1580 def IsEncodingAvailable(*args
, **kwargs
):
1581 """IsEncodingAvailable(int encoding, String facename=EmptyString) -> bool"""
1582 return _gdi
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1584 def SetDialogParent(*args
, **kwargs
):
1585 """SetDialogParent(Window parent)"""
1586 return _gdi
.FontMapper_SetDialogParent(*args
, **kwargs
)
1588 def SetDialogTitle(*args
, **kwargs
):
1589 """SetDialogTitle(String title)"""
1590 return _gdi
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1593 class FontMapperPtr(FontMapper
):
1594 def __init__(self
, this
):
1596 if not hasattr(self
,"thisown"): self
.thisown
= 0
1597 self
.__class
__ = FontMapper
1598 _gdi
.FontMapper_swigregister(FontMapperPtr
)
1600 def FontMapper_Get(*args
, **kwargs
):
1601 """FontMapper_Get() -> FontMapper"""
1602 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1604 def FontMapper_Set(*args
, **kwargs
):
1605 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1606 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1608 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1609 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1610 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1612 def FontMapper_GetEncoding(*args
, **kwargs
):
1613 """FontMapper_GetEncoding(size_t n) -> int"""
1614 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1616 def FontMapper_GetEncodingName(*args
, **kwargs
):
1617 """FontMapper_GetEncodingName(int encoding) -> String"""
1618 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1620 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1621 """FontMapper_GetEncodingDescription(int encoding) -> String"""
1622 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1624 def FontMapper_GetEncodingFromName(*args
, **kwargs
):
1625 """FontMapper_GetEncodingFromName(String name) -> int"""
1626 return _gdi
.FontMapper_GetEncodingFromName(*args
, **kwargs
)
1628 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1629 """FontMapper_GetDefaultConfigPath() -> String"""
1630 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1632 #---------------------------------------------------------------------------
1634 class Font(GDIObject
):
1636 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1637 def __init__(self
, *args
, **kwargs
):
1639 __init__(int pointSize, int family, int style, int weight, bool underline=False,
1640 String face=EmptyString,
1641 int encoding=FONTENCODING_DEFAULT) -> Font
1643 newobj
= _gdi
.new_Font(*args
, **kwargs
)
1644 self
.this
= newobj
.this
1647 def __del__(self
, destroy
=_gdi
.delete_Font
):
1650 if self
.thisown
: destroy(self
)
1653 def Ok(*args
, **kwargs
):
1655 return _gdi
.Font_Ok(*args
, **kwargs
)
1657 def __nonzero__(self
): return self
.Ok()
1658 def __eq__(*args
, **kwargs
):
1659 """__eq__(Font other) -> bool"""
1660 return _gdi
.Font___eq__(*args
, **kwargs
)
1662 def __ne__(*args
, **kwargs
):
1663 """__ne__(Font other) -> bool"""
1664 return _gdi
.Font___ne__(*args
, **kwargs
)
1666 def GetPointSize(*args
, **kwargs
):
1667 """GetPointSize() -> int"""
1668 return _gdi
.Font_GetPointSize(*args
, **kwargs
)
1670 def GetFamily(*args
, **kwargs
):
1671 """GetFamily() -> int"""
1672 return _gdi
.Font_GetFamily(*args
, **kwargs
)
1674 def GetStyle(*args
, **kwargs
):
1675 """GetStyle() -> int"""
1676 return _gdi
.Font_GetStyle(*args
, **kwargs
)
1678 def GetWeight(*args
, **kwargs
):
1679 """GetWeight() -> int"""
1680 return _gdi
.Font_GetWeight(*args
, **kwargs
)
1682 def GetUnderlined(*args
, **kwargs
):
1683 """GetUnderlined() -> bool"""
1684 return _gdi
.Font_GetUnderlined(*args
, **kwargs
)
1686 def GetFaceName(*args
, **kwargs
):
1687 """GetFaceName() -> String"""
1688 return _gdi
.Font_GetFaceName(*args
, **kwargs
)
1690 def GetEncoding(*args
, **kwargs
):
1691 """GetEncoding() -> int"""
1692 return _gdi
.Font_GetEncoding(*args
, **kwargs
)
1694 def GetNativeFontInfo(*args
, **kwargs
):
1695 """GetNativeFontInfo() -> NativeFontInfo"""
1696 return _gdi
.Font_GetNativeFontInfo(*args
, **kwargs
)
1698 def IsFixedWidth(*args
, **kwargs
):
1699 """IsFixedWidth() -> bool"""
1700 return _gdi
.Font_IsFixedWidth(*args
, **kwargs
)
1702 def GetNativeFontInfoDesc(*args
, **kwargs
):
1703 """GetNativeFontInfoDesc() -> String"""
1704 return _gdi
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1706 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1707 """GetNativeFontInfoUserDesc() -> String"""
1708 return _gdi
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1710 def SetPointSize(*args
, **kwargs
):
1711 """SetPointSize(int pointSize)"""
1712 return _gdi
.Font_SetPointSize(*args
, **kwargs
)
1714 def SetFamily(*args
, **kwargs
):
1715 """SetFamily(int family)"""
1716 return _gdi
.Font_SetFamily(*args
, **kwargs
)
1718 def SetStyle(*args
, **kwargs
):
1719 """SetStyle(int style)"""
1720 return _gdi
.Font_SetStyle(*args
, **kwargs
)
1722 def SetWeight(*args
, **kwargs
):
1723 """SetWeight(int weight)"""
1724 return _gdi
.Font_SetWeight(*args
, **kwargs
)
1726 def SetFaceName(*args
, **kwargs
):
1727 """SetFaceName(String faceName)"""
1728 return _gdi
.Font_SetFaceName(*args
, **kwargs
)
1730 def SetUnderlined(*args
, **kwargs
):
1731 """SetUnderlined(bool underlined)"""
1732 return _gdi
.Font_SetUnderlined(*args
, **kwargs
)
1734 def SetEncoding(*args
, **kwargs
):
1735 """SetEncoding(int encoding)"""
1736 return _gdi
.Font_SetEncoding(*args
, **kwargs
)
1738 def SetNativeFontInfo(*args
, **kwargs
):
1739 """SetNativeFontInfo(NativeFontInfo info)"""
1740 return _gdi
.Font_SetNativeFontInfo(*args
, **kwargs
)
1742 def SetNativeFontInfoFromString(*args
, **kwargs
):
1743 """SetNativeFontInfoFromString(String info)"""
1744 return _gdi
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1746 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1747 """SetNativeFontInfoUserDesc(String info)"""
1748 return _gdi
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1750 def GetFamilyString(*args
, **kwargs
):
1751 """GetFamilyString() -> String"""
1752 return _gdi
.Font_GetFamilyString(*args
, **kwargs
)
1754 def GetStyleString(*args
, **kwargs
):
1755 """GetStyleString() -> String"""
1756 return _gdi
.Font_GetStyleString(*args
, **kwargs
)
1758 def GetWeightString(*args
, **kwargs
):
1759 """GetWeightString() -> String"""
1760 return _gdi
.Font_GetWeightString(*args
, **kwargs
)
1762 def SetNoAntiAliasing(*args
, **kwargs
):
1763 """SetNoAntiAliasing(bool no=True)"""
1764 return _gdi
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1766 def GetNoAntiAliasing(*args
, **kwargs
):
1767 """GetNoAntiAliasing() -> bool"""
1768 return _gdi
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1770 def GetDefaultEncoding(*args
, **kwargs
):
1771 """GetDefaultEncoding() -> int"""
1772 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1774 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1775 def SetDefaultEncoding(*args
, **kwargs
):
1776 """SetDefaultEncoding(int encoding)"""
1777 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1779 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1781 class FontPtr(Font
):
1782 def __init__(self
, this
):
1784 if not hasattr(self
,"thisown"): self
.thisown
= 0
1785 self
.__class
__ = Font
1786 _gdi
.Font_swigregister(FontPtr
)
1788 def FontFromNativeInfo(*args
, **kwargs
):
1789 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1790 val
= _gdi
.new_FontFromNativeInfo(*args
, **kwargs
)
1794 def FontFromNativeInfoString(*args
, **kwargs
):
1795 """FontFromNativeInfoString(String info) -> Font"""
1796 val
= _gdi
.new_FontFromNativeInfoString(*args
, **kwargs
)
1800 def Font2(*args
, **kwargs
):
1802 Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT,
1803 String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font
1805 val
= _gdi
.new_Font2(*args
, **kwargs
)
1809 def Font_GetDefaultEncoding(*args
, **kwargs
):
1810 """Font_GetDefaultEncoding() -> int"""
1811 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1813 def Font_SetDefaultEncoding(*args
, **kwargs
):
1814 """Font_SetDefaultEncoding(int encoding)"""
1815 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1817 #---------------------------------------------------------------------------
1819 class FontEnumerator(object):
1821 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1822 def __init__(self
, *args
, **kwargs
):
1823 """__init__() -> FontEnumerator"""
1824 newobj
= _gdi
.new_FontEnumerator(*args
, **kwargs
)
1825 self
.this
= newobj
.this
1828 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1830 def __del__(self
, destroy
=_gdi
.delete_FontEnumerator
):
1833 if self
.thisown
: destroy(self
)
1836 def _setCallbackInfo(*args
, **kwargs
):
1837 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1838 return _gdi
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1840 def EnumerateFacenames(*args
, **kwargs
):
1841 """EnumerateFacenames(int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1842 return _gdi
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1844 def EnumerateEncodings(*args
, **kwargs
):
1845 """EnumerateEncodings(String facename=EmptyString) -> bool"""
1846 return _gdi
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1848 def GetEncodings(*args
, **kwargs
):
1849 """GetEncodings() -> PyObject"""
1850 return _gdi
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1852 def GetFacenames(*args
, **kwargs
):
1853 """GetFacenames() -> PyObject"""
1854 return _gdi
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1857 class FontEnumeratorPtr(FontEnumerator
):
1858 def __init__(self
, this
):
1860 if not hasattr(self
,"thisown"): self
.thisown
= 0
1861 self
.__class
__ = FontEnumerator
1862 _gdi
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1864 #---------------------------------------------------------------------------
1866 LANGUAGE_DEFAULT
= _gdi
.LANGUAGE_DEFAULT
1867 LANGUAGE_UNKNOWN
= _gdi
.LANGUAGE_UNKNOWN
1868 LANGUAGE_ABKHAZIAN
= _gdi
.LANGUAGE_ABKHAZIAN
1869 LANGUAGE_AFAR
= _gdi
.LANGUAGE_AFAR
1870 LANGUAGE_AFRIKAANS
= _gdi
.LANGUAGE_AFRIKAANS
1871 LANGUAGE_ALBANIAN
= _gdi
.LANGUAGE_ALBANIAN
1872 LANGUAGE_AMHARIC
= _gdi
.LANGUAGE_AMHARIC
1873 LANGUAGE_ARABIC
= _gdi
.LANGUAGE_ARABIC
1874 LANGUAGE_ARABIC_ALGERIA
= _gdi
.LANGUAGE_ARABIC_ALGERIA
1875 LANGUAGE_ARABIC_BAHRAIN
= _gdi
.LANGUAGE_ARABIC_BAHRAIN
1876 LANGUAGE_ARABIC_EGYPT
= _gdi
.LANGUAGE_ARABIC_EGYPT
1877 LANGUAGE_ARABIC_IRAQ
= _gdi
.LANGUAGE_ARABIC_IRAQ
1878 LANGUAGE_ARABIC_JORDAN
= _gdi
.LANGUAGE_ARABIC_JORDAN
1879 LANGUAGE_ARABIC_KUWAIT
= _gdi
.LANGUAGE_ARABIC_KUWAIT
1880 LANGUAGE_ARABIC_LEBANON
= _gdi
.LANGUAGE_ARABIC_LEBANON
1881 LANGUAGE_ARABIC_LIBYA
= _gdi
.LANGUAGE_ARABIC_LIBYA
1882 LANGUAGE_ARABIC_MOROCCO
= _gdi
.LANGUAGE_ARABIC_MOROCCO
1883 LANGUAGE_ARABIC_OMAN
= _gdi
.LANGUAGE_ARABIC_OMAN
1884 LANGUAGE_ARABIC_QATAR
= _gdi
.LANGUAGE_ARABIC_QATAR
1885 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi
.LANGUAGE_ARABIC_SAUDI_ARABIA
1886 LANGUAGE_ARABIC_SUDAN
= _gdi
.LANGUAGE_ARABIC_SUDAN
1887 LANGUAGE_ARABIC_SYRIA
= _gdi
.LANGUAGE_ARABIC_SYRIA
1888 LANGUAGE_ARABIC_TUNISIA
= _gdi
.LANGUAGE_ARABIC_TUNISIA
1889 LANGUAGE_ARABIC_UAE
= _gdi
.LANGUAGE_ARABIC_UAE
1890 LANGUAGE_ARABIC_YEMEN
= _gdi
.LANGUAGE_ARABIC_YEMEN
1891 LANGUAGE_ARMENIAN
= _gdi
.LANGUAGE_ARMENIAN
1892 LANGUAGE_ASSAMESE
= _gdi
.LANGUAGE_ASSAMESE
1893 LANGUAGE_AYMARA
= _gdi
.LANGUAGE_AYMARA
1894 LANGUAGE_AZERI
= _gdi
.LANGUAGE_AZERI
1895 LANGUAGE_AZERI_CYRILLIC
= _gdi
.LANGUAGE_AZERI_CYRILLIC
1896 LANGUAGE_AZERI_LATIN
= _gdi
.LANGUAGE_AZERI_LATIN
1897 LANGUAGE_BASHKIR
= _gdi
.LANGUAGE_BASHKIR
1898 LANGUAGE_BASQUE
= _gdi
.LANGUAGE_BASQUE
1899 LANGUAGE_BELARUSIAN
= _gdi
.LANGUAGE_BELARUSIAN
1900 LANGUAGE_BENGALI
= _gdi
.LANGUAGE_BENGALI
1901 LANGUAGE_BHUTANI
= _gdi
.LANGUAGE_BHUTANI
1902 LANGUAGE_BIHARI
= _gdi
.LANGUAGE_BIHARI
1903 LANGUAGE_BISLAMA
= _gdi
.LANGUAGE_BISLAMA
1904 LANGUAGE_BRETON
= _gdi
.LANGUAGE_BRETON
1905 LANGUAGE_BULGARIAN
= _gdi
.LANGUAGE_BULGARIAN
1906 LANGUAGE_BURMESE
= _gdi
.LANGUAGE_BURMESE
1907 LANGUAGE_CAMBODIAN
= _gdi
.LANGUAGE_CAMBODIAN
1908 LANGUAGE_CATALAN
= _gdi
.LANGUAGE_CATALAN
1909 LANGUAGE_CHINESE
= _gdi
.LANGUAGE_CHINESE
1910 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi
.LANGUAGE_CHINESE_SIMPLIFIED
1911 LANGUAGE_CHINESE_TRADITIONAL
= _gdi
.LANGUAGE_CHINESE_TRADITIONAL
1912 LANGUAGE_CHINESE_HONGKONG
= _gdi
.LANGUAGE_CHINESE_HONGKONG
1913 LANGUAGE_CHINESE_MACAU
= _gdi
.LANGUAGE_CHINESE_MACAU
1914 LANGUAGE_CHINESE_SINGAPORE
= _gdi
.LANGUAGE_CHINESE_SINGAPORE
1915 LANGUAGE_CHINESE_TAIWAN
= _gdi
.LANGUAGE_CHINESE_TAIWAN
1916 LANGUAGE_CORSICAN
= _gdi
.LANGUAGE_CORSICAN
1917 LANGUAGE_CROATIAN
= _gdi
.LANGUAGE_CROATIAN
1918 LANGUAGE_CZECH
= _gdi
.LANGUAGE_CZECH
1919 LANGUAGE_DANISH
= _gdi
.LANGUAGE_DANISH
1920 LANGUAGE_DUTCH
= _gdi
.LANGUAGE_DUTCH
1921 LANGUAGE_DUTCH_BELGIAN
= _gdi
.LANGUAGE_DUTCH_BELGIAN
1922 LANGUAGE_ENGLISH
= _gdi
.LANGUAGE_ENGLISH
1923 LANGUAGE_ENGLISH_UK
= _gdi
.LANGUAGE_ENGLISH_UK
1924 LANGUAGE_ENGLISH_US
= _gdi
.LANGUAGE_ENGLISH_US
1925 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi
.LANGUAGE_ENGLISH_AUSTRALIA
1926 LANGUAGE_ENGLISH_BELIZE
= _gdi
.LANGUAGE_ENGLISH_BELIZE
1927 LANGUAGE_ENGLISH_BOTSWANA
= _gdi
.LANGUAGE_ENGLISH_BOTSWANA
1928 LANGUAGE_ENGLISH_CANADA
= _gdi
.LANGUAGE_ENGLISH_CANADA
1929 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi
.LANGUAGE_ENGLISH_CARIBBEAN
1930 LANGUAGE_ENGLISH_DENMARK
= _gdi
.LANGUAGE_ENGLISH_DENMARK
1931 LANGUAGE_ENGLISH_EIRE
= _gdi
.LANGUAGE_ENGLISH_EIRE
1932 LANGUAGE_ENGLISH_JAMAICA
= _gdi
.LANGUAGE_ENGLISH_JAMAICA
1933 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi
.LANGUAGE_ENGLISH_NEW_ZEALAND
1934 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi
.LANGUAGE_ENGLISH_PHILIPPINES
1935 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1936 LANGUAGE_ENGLISH_TRINIDAD
= _gdi
.LANGUAGE_ENGLISH_TRINIDAD
1937 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi
.LANGUAGE_ENGLISH_ZIMBABWE
1938 LANGUAGE_ESPERANTO
= _gdi
.LANGUAGE_ESPERANTO
1939 LANGUAGE_ESTONIAN
= _gdi
.LANGUAGE_ESTONIAN
1940 LANGUAGE_FAEROESE
= _gdi
.LANGUAGE_FAEROESE
1941 LANGUAGE_FARSI
= _gdi
.LANGUAGE_FARSI
1942 LANGUAGE_FIJI
= _gdi
.LANGUAGE_FIJI
1943 LANGUAGE_FINNISH
= _gdi
.LANGUAGE_FINNISH
1944 LANGUAGE_FRENCH
= _gdi
.LANGUAGE_FRENCH
1945 LANGUAGE_FRENCH_BELGIAN
= _gdi
.LANGUAGE_FRENCH_BELGIAN
1946 LANGUAGE_FRENCH_CANADIAN
= _gdi
.LANGUAGE_FRENCH_CANADIAN
1947 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi
.LANGUAGE_FRENCH_LUXEMBOURG
1948 LANGUAGE_FRENCH_MONACO
= _gdi
.LANGUAGE_FRENCH_MONACO
1949 LANGUAGE_FRENCH_SWISS
= _gdi
.LANGUAGE_FRENCH_SWISS
1950 LANGUAGE_FRISIAN
= _gdi
.LANGUAGE_FRISIAN
1951 LANGUAGE_GALICIAN
= _gdi
.LANGUAGE_GALICIAN
1952 LANGUAGE_GEORGIAN
= _gdi
.LANGUAGE_GEORGIAN
1953 LANGUAGE_GERMAN
= _gdi
.LANGUAGE_GERMAN
1954 LANGUAGE_GERMAN_AUSTRIAN
= _gdi
.LANGUAGE_GERMAN_AUSTRIAN
1955 LANGUAGE_GERMAN_BELGIUM
= _gdi
.LANGUAGE_GERMAN_BELGIUM
1956 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi
.LANGUAGE_GERMAN_LIECHTENSTEIN
1957 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi
.LANGUAGE_GERMAN_LUXEMBOURG
1958 LANGUAGE_GERMAN_SWISS
= _gdi
.LANGUAGE_GERMAN_SWISS
1959 LANGUAGE_GREEK
= _gdi
.LANGUAGE_GREEK
1960 LANGUAGE_GREENLANDIC
= _gdi
.LANGUAGE_GREENLANDIC
1961 LANGUAGE_GUARANI
= _gdi
.LANGUAGE_GUARANI
1962 LANGUAGE_GUJARATI
= _gdi
.LANGUAGE_GUJARATI
1963 LANGUAGE_HAUSA
= _gdi
.LANGUAGE_HAUSA
1964 LANGUAGE_HEBREW
= _gdi
.LANGUAGE_HEBREW
1965 LANGUAGE_HINDI
= _gdi
.LANGUAGE_HINDI
1966 LANGUAGE_HUNGARIAN
= _gdi
.LANGUAGE_HUNGARIAN
1967 LANGUAGE_ICELANDIC
= _gdi
.LANGUAGE_ICELANDIC
1968 LANGUAGE_INDONESIAN
= _gdi
.LANGUAGE_INDONESIAN
1969 LANGUAGE_INTERLINGUA
= _gdi
.LANGUAGE_INTERLINGUA
1970 LANGUAGE_INTERLINGUE
= _gdi
.LANGUAGE_INTERLINGUE
1971 LANGUAGE_INUKTITUT
= _gdi
.LANGUAGE_INUKTITUT
1972 LANGUAGE_INUPIAK
= _gdi
.LANGUAGE_INUPIAK
1973 LANGUAGE_IRISH
= _gdi
.LANGUAGE_IRISH
1974 LANGUAGE_ITALIAN
= _gdi
.LANGUAGE_ITALIAN
1975 LANGUAGE_ITALIAN_SWISS
= _gdi
.LANGUAGE_ITALIAN_SWISS
1976 LANGUAGE_JAPANESE
= _gdi
.LANGUAGE_JAPANESE
1977 LANGUAGE_JAVANESE
= _gdi
.LANGUAGE_JAVANESE
1978 LANGUAGE_KANNADA
= _gdi
.LANGUAGE_KANNADA
1979 LANGUAGE_KASHMIRI
= _gdi
.LANGUAGE_KASHMIRI
1980 LANGUAGE_KASHMIRI_INDIA
= _gdi
.LANGUAGE_KASHMIRI_INDIA
1981 LANGUAGE_KAZAKH
= _gdi
.LANGUAGE_KAZAKH
1982 LANGUAGE_KERNEWEK
= _gdi
.LANGUAGE_KERNEWEK
1983 LANGUAGE_KINYARWANDA
= _gdi
.LANGUAGE_KINYARWANDA
1984 LANGUAGE_KIRGHIZ
= _gdi
.LANGUAGE_KIRGHIZ
1985 LANGUAGE_KIRUNDI
= _gdi
.LANGUAGE_KIRUNDI
1986 LANGUAGE_KONKANI
= _gdi
.LANGUAGE_KONKANI
1987 LANGUAGE_KOREAN
= _gdi
.LANGUAGE_KOREAN
1988 LANGUAGE_KURDISH
= _gdi
.LANGUAGE_KURDISH
1989 LANGUAGE_LAOTHIAN
= _gdi
.LANGUAGE_LAOTHIAN
1990 LANGUAGE_LATIN
= _gdi
.LANGUAGE_LATIN
1991 LANGUAGE_LATVIAN
= _gdi
.LANGUAGE_LATVIAN
1992 LANGUAGE_LINGALA
= _gdi
.LANGUAGE_LINGALA
1993 LANGUAGE_LITHUANIAN
= _gdi
.LANGUAGE_LITHUANIAN
1994 LANGUAGE_MACEDONIAN
= _gdi
.LANGUAGE_MACEDONIAN
1995 LANGUAGE_MALAGASY
= _gdi
.LANGUAGE_MALAGASY
1996 LANGUAGE_MALAY
= _gdi
.LANGUAGE_MALAY
1997 LANGUAGE_MALAYALAM
= _gdi
.LANGUAGE_MALAYALAM
1998 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1999 LANGUAGE_MALAY_MALAYSIA
= _gdi
.LANGUAGE_MALAY_MALAYSIA
2000 LANGUAGE_MALTESE
= _gdi
.LANGUAGE_MALTESE
2001 LANGUAGE_MANIPURI
= _gdi
.LANGUAGE_MANIPURI
2002 LANGUAGE_MAORI
= _gdi
.LANGUAGE_MAORI
2003 LANGUAGE_MARATHI
= _gdi
.LANGUAGE_MARATHI
2004 LANGUAGE_MOLDAVIAN
= _gdi
.LANGUAGE_MOLDAVIAN
2005 LANGUAGE_MONGOLIAN
= _gdi
.LANGUAGE_MONGOLIAN
2006 LANGUAGE_NAURU
= _gdi
.LANGUAGE_NAURU
2007 LANGUAGE_NEPALI
= _gdi
.LANGUAGE_NEPALI
2008 LANGUAGE_NEPALI_INDIA
= _gdi
.LANGUAGE_NEPALI_INDIA
2009 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi
.LANGUAGE_NORWEGIAN_BOKMAL
2010 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi
.LANGUAGE_NORWEGIAN_NYNORSK
2011 LANGUAGE_OCCITAN
= _gdi
.LANGUAGE_OCCITAN
2012 LANGUAGE_ORIYA
= _gdi
.LANGUAGE_ORIYA
2013 LANGUAGE_OROMO
= _gdi
.LANGUAGE_OROMO
2014 LANGUAGE_PASHTO
= _gdi
.LANGUAGE_PASHTO
2015 LANGUAGE_POLISH
= _gdi
.LANGUAGE_POLISH
2016 LANGUAGE_PORTUGUESE
= _gdi
.LANGUAGE_PORTUGUESE
2017 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi
.LANGUAGE_PORTUGUESE_BRAZILIAN
2018 LANGUAGE_PUNJABI
= _gdi
.LANGUAGE_PUNJABI
2019 LANGUAGE_QUECHUA
= _gdi
.LANGUAGE_QUECHUA
2020 LANGUAGE_RHAETO_ROMANCE
= _gdi
.LANGUAGE_RHAETO_ROMANCE
2021 LANGUAGE_ROMANIAN
= _gdi
.LANGUAGE_ROMANIAN
2022 LANGUAGE_RUSSIAN
= _gdi
.LANGUAGE_RUSSIAN
2023 LANGUAGE_RUSSIAN_UKRAINE
= _gdi
.LANGUAGE_RUSSIAN_UKRAINE
2024 LANGUAGE_SAMOAN
= _gdi
.LANGUAGE_SAMOAN
2025 LANGUAGE_SANGHO
= _gdi
.LANGUAGE_SANGHO
2026 LANGUAGE_SANSKRIT
= _gdi
.LANGUAGE_SANSKRIT
2027 LANGUAGE_SCOTS_GAELIC
= _gdi
.LANGUAGE_SCOTS_GAELIC
2028 LANGUAGE_SERBIAN
= _gdi
.LANGUAGE_SERBIAN
2029 LANGUAGE_SERBIAN_CYRILLIC
= _gdi
.LANGUAGE_SERBIAN_CYRILLIC
2030 LANGUAGE_SERBIAN_LATIN
= _gdi
.LANGUAGE_SERBIAN_LATIN
2031 LANGUAGE_SERBO_CROATIAN
= _gdi
.LANGUAGE_SERBO_CROATIAN
2032 LANGUAGE_SESOTHO
= _gdi
.LANGUAGE_SESOTHO
2033 LANGUAGE_SETSWANA
= _gdi
.LANGUAGE_SETSWANA
2034 LANGUAGE_SHONA
= _gdi
.LANGUAGE_SHONA
2035 LANGUAGE_SINDHI
= _gdi
.LANGUAGE_SINDHI
2036 LANGUAGE_SINHALESE
= _gdi
.LANGUAGE_SINHALESE
2037 LANGUAGE_SISWATI
= _gdi
.LANGUAGE_SISWATI
2038 LANGUAGE_SLOVAK
= _gdi
.LANGUAGE_SLOVAK
2039 LANGUAGE_SLOVENIAN
= _gdi
.LANGUAGE_SLOVENIAN
2040 LANGUAGE_SOMALI
= _gdi
.LANGUAGE_SOMALI
2041 LANGUAGE_SPANISH
= _gdi
.LANGUAGE_SPANISH
2042 LANGUAGE_SPANISH_ARGENTINA
= _gdi
.LANGUAGE_SPANISH_ARGENTINA
2043 LANGUAGE_SPANISH_BOLIVIA
= _gdi
.LANGUAGE_SPANISH_BOLIVIA
2044 LANGUAGE_SPANISH_CHILE
= _gdi
.LANGUAGE_SPANISH_CHILE
2045 LANGUAGE_SPANISH_COLOMBIA
= _gdi
.LANGUAGE_SPANISH_COLOMBIA
2046 LANGUAGE_SPANISH_COSTA_RICA
= _gdi
.LANGUAGE_SPANISH_COSTA_RICA
2047 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
2048 LANGUAGE_SPANISH_ECUADOR
= _gdi
.LANGUAGE_SPANISH_ECUADOR
2049 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi
.LANGUAGE_SPANISH_EL_SALVADOR
2050 LANGUAGE_SPANISH_GUATEMALA
= _gdi
.LANGUAGE_SPANISH_GUATEMALA
2051 LANGUAGE_SPANISH_HONDURAS
= _gdi
.LANGUAGE_SPANISH_HONDURAS
2052 LANGUAGE_SPANISH_MEXICAN
= _gdi
.LANGUAGE_SPANISH_MEXICAN
2053 LANGUAGE_SPANISH_MODERN
= _gdi
.LANGUAGE_SPANISH_MODERN
2054 LANGUAGE_SPANISH_NICARAGUA
= _gdi
.LANGUAGE_SPANISH_NICARAGUA
2055 LANGUAGE_SPANISH_PANAMA
= _gdi
.LANGUAGE_SPANISH_PANAMA
2056 LANGUAGE_SPANISH_PARAGUAY
= _gdi
.LANGUAGE_SPANISH_PARAGUAY
2057 LANGUAGE_SPANISH_PERU
= _gdi
.LANGUAGE_SPANISH_PERU
2058 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi
.LANGUAGE_SPANISH_PUERTO_RICO
2059 LANGUAGE_SPANISH_URUGUAY
= _gdi
.LANGUAGE_SPANISH_URUGUAY
2060 LANGUAGE_SPANISH_US
= _gdi
.LANGUAGE_SPANISH_US
2061 LANGUAGE_SPANISH_VENEZUELA
= _gdi
.LANGUAGE_SPANISH_VENEZUELA
2062 LANGUAGE_SUNDANESE
= _gdi
.LANGUAGE_SUNDANESE
2063 LANGUAGE_SWAHILI
= _gdi
.LANGUAGE_SWAHILI
2064 LANGUAGE_SWEDISH
= _gdi
.LANGUAGE_SWEDISH
2065 LANGUAGE_SWEDISH_FINLAND
= _gdi
.LANGUAGE_SWEDISH_FINLAND
2066 LANGUAGE_TAGALOG
= _gdi
.LANGUAGE_TAGALOG
2067 LANGUAGE_TAJIK
= _gdi
.LANGUAGE_TAJIK
2068 LANGUAGE_TAMIL
= _gdi
.LANGUAGE_TAMIL
2069 LANGUAGE_TATAR
= _gdi
.LANGUAGE_TATAR
2070 LANGUAGE_TELUGU
= _gdi
.LANGUAGE_TELUGU
2071 LANGUAGE_THAI
= _gdi
.LANGUAGE_THAI
2072 LANGUAGE_TIBETAN
= _gdi
.LANGUAGE_TIBETAN
2073 LANGUAGE_TIGRINYA
= _gdi
.LANGUAGE_TIGRINYA
2074 LANGUAGE_TONGA
= _gdi
.LANGUAGE_TONGA
2075 LANGUAGE_TSONGA
= _gdi
.LANGUAGE_TSONGA
2076 LANGUAGE_TURKISH
= _gdi
.LANGUAGE_TURKISH
2077 LANGUAGE_TURKMEN
= _gdi
.LANGUAGE_TURKMEN
2078 LANGUAGE_TWI
= _gdi
.LANGUAGE_TWI
2079 LANGUAGE_UIGHUR
= _gdi
.LANGUAGE_UIGHUR
2080 LANGUAGE_UKRAINIAN
= _gdi
.LANGUAGE_UKRAINIAN
2081 LANGUAGE_URDU
= _gdi
.LANGUAGE_URDU
2082 LANGUAGE_URDU_INDIA
= _gdi
.LANGUAGE_URDU_INDIA
2083 LANGUAGE_URDU_PAKISTAN
= _gdi
.LANGUAGE_URDU_PAKISTAN
2084 LANGUAGE_UZBEK
= _gdi
.LANGUAGE_UZBEK
2085 LANGUAGE_UZBEK_CYRILLIC
= _gdi
.LANGUAGE_UZBEK_CYRILLIC
2086 LANGUAGE_UZBEK_LATIN
= _gdi
.LANGUAGE_UZBEK_LATIN
2087 LANGUAGE_VIETNAMESE
= _gdi
.LANGUAGE_VIETNAMESE
2088 LANGUAGE_VOLAPUK
= _gdi
.LANGUAGE_VOLAPUK
2089 LANGUAGE_WELSH
= _gdi
.LANGUAGE_WELSH
2090 LANGUAGE_WOLOF
= _gdi
.LANGUAGE_WOLOF
2091 LANGUAGE_XHOSA
= _gdi
.LANGUAGE_XHOSA
2092 LANGUAGE_YIDDISH
= _gdi
.LANGUAGE_YIDDISH
2093 LANGUAGE_YORUBA
= _gdi
.LANGUAGE_YORUBA
2094 LANGUAGE_ZHUANG
= _gdi
.LANGUAGE_ZHUANG
2095 LANGUAGE_ZULU
= _gdi
.LANGUAGE_ZULU
2096 LANGUAGE_USER_DEFINED
= _gdi
.LANGUAGE_USER_DEFINED
2097 class LanguageInfo(object):
2098 def __init__(self
): raise RuntimeError, "No constructor defined"
2100 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2101 Language
= property(_gdi
.LanguageInfo_Language_get
, _gdi
.LanguageInfo_Language_set
)
2102 CanonicalName
= property(_gdi
.LanguageInfo_CanonicalName_get
, _gdi
.LanguageInfo_CanonicalName_set
)
2103 Description
= property(_gdi
.LanguageInfo_Description_get
, _gdi
.LanguageInfo_Description_set
)
2105 class LanguageInfoPtr(LanguageInfo
):
2106 def __init__(self
, this
):
2108 if not hasattr(self
,"thisown"): self
.thisown
= 0
2109 self
.__class
__ = LanguageInfo
2110 _gdi
.LanguageInfo_swigregister(LanguageInfoPtr
)
2112 LOCALE_CAT_NUMBER
= _gdi
.LOCALE_CAT_NUMBER
2113 LOCALE_CAT_DATE
= _gdi
.LOCALE_CAT_DATE
2114 LOCALE_CAT_MONEY
= _gdi
.LOCALE_CAT_MONEY
2115 LOCALE_CAT_MAX
= _gdi
.LOCALE_CAT_MAX
2116 LOCALE_THOUSANDS_SEP
= _gdi
.LOCALE_THOUSANDS_SEP
2117 LOCALE_DECIMAL_POINT
= _gdi
.LOCALE_DECIMAL_POINT
2118 LOCALE_LOAD_DEFAULT
= _gdi
.LOCALE_LOAD_DEFAULT
2119 LOCALE_CONV_ENCODING
= _gdi
.LOCALE_CONV_ENCODING
2120 class Locale(object):
2122 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2123 def __init__(self
, *args
, **kwargs
):
2124 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
2125 newobj
= _gdi
.new_Locale(*args
, **kwargs
)
2126 self
.this
= newobj
.this
2129 def __del__(self
, destroy
=_gdi
.delete_Locale
):
2132 if self
.thisown
: destroy(self
)
2135 def Init1(*args
, **kwargs
):
2137 Init1(String szName, String szShort=EmptyString, String szLocale=EmptyString,
2138 bool bLoadDefault=True,
2139 bool bConvertEncoding=False) -> bool
2141 return _gdi
.Locale_Init1(*args
, **kwargs
)
2143 def Init2(*args
, **kwargs
):
2144 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
2145 return _gdi
.Locale_Init2(*args
, **kwargs
)
2147 def Init(self
, *_args
, **_kwargs
):
2148 if type(_args
[0]) in [type(''), type(u
'')]:
2149 val
= self
.Init1(*_args
, **_kwargs
)
2151 val
= self
.Init2(*_args
, **_kwargs
)
2154 def GetSystemLanguage(*args
, **kwargs
):
2155 """GetSystemLanguage() -> int"""
2156 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
2158 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
2159 def GetSystemEncoding(*args
, **kwargs
):
2160 """GetSystemEncoding() -> int"""
2161 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
2163 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
2164 def GetSystemEncodingName(*args
, **kwargs
):
2165 """GetSystemEncodingName() -> String"""
2166 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2168 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
2169 def IsOk(*args
, **kwargs
):
2170 """IsOk() -> bool"""
2171 return _gdi
.Locale_IsOk(*args
, **kwargs
)
2173 def __nonzero__(self
): return self
.IsOk()
2174 def GetLocale(*args
, **kwargs
):
2175 """GetLocale() -> String"""
2176 return _gdi
.Locale_GetLocale(*args
, **kwargs
)
2178 def GetLanguage(*args
, **kwargs
):
2179 """GetLanguage() -> int"""
2180 return _gdi
.Locale_GetLanguage(*args
, **kwargs
)
2182 def GetSysName(*args
, **kwargs
):
2183 """GetSysName() -> String"""
2184 return _gdi
.Locale_GetSysName(*args
, **kwargs
)
2186 def GetCanonicalName(*args
, **kwargs
):
2187 """GetCanonicalName() -> String"""
2188 return _gdi
.Locale_GetCanonicalName(*args
, **kwargs
)
2190 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
2191 """AddCatalogLookupPathPrefix(String prefix)"""
2192 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2194 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
2195 def AddCatalog(*args
, **kwargs
):
2196 """AddCatalog(String szDomain) -> bool"""
2197 return _gdi
.Locale_AddCatalog(*args
, **kwargs
)
2199 def IsLoaded(*args
, **kwargs
):
2200 """IsLoaded(String szDomain) -> bool"""
2201 return _gdi
.Locale_IsLoaded(*args
, **kwargs
)
2203 def GetLanguageInfo(*args
, **kwargs
):
2204 """GetLanguageInfo(int lang) -> LanguageInfo"""
2205 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
2207 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
2208 def GetLanguageName(*args
, **kwargs
):
2209 """GetLanguageName(int lang) -> String"""
2210 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
2212 GetLanguageName
= staticmethod(GetLanguageName
)
2213 def FindLanguageInfo(*args
, **kwargs
):
2214 """FindLanguageInfo(String locale) -> LanguageInfo"""
2215 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
2217 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
2218 def AddLanguage(*args
, **kwargs
):
2219 """AddLanguage(LanguageInfo info)"""
2220 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
2222 AddLanguage
= staticmethod(AddLanguage
)
2223 def GetString(*args
, **kwargs
):
2224 """GetString(String szOrigString, String szDomain=EmptyString) -> String"""
2225 return _gdi
.Locale_GetString(*args
, **kwargs
)
2227 def GetName(*args
, **kwargs
):
2228 """GetName() -> String"""
2229 return _gdi
.Locale_GetName(*args
, **kwargs
)
2232 class LocalePtr(Locale
):
2233 def __init__(self
, this
):
2235 if not hasattr(self
,"thisown"): self
.thisown
= 0
2236 self
.__class
__ = Locale
2237 _gdi
.Locale_swigregister(LocalePtr
)
2239 def Locale_GetSystemLanguage(*args
, **kwargs
):
2240 """Locale_GetSystemLanguage() -> int"""
2241 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
2243 def Locale_GetSystemEncoding(*args
, **kwargs
):
2244 """Locale_GetSystemEncoding() -> int"""
2245 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
2247 def Locale_GetSystemEncodingName(*args
, **kwargs
):
2248 """Locale_GetSystemEncodingName() -> String"""
2249 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2251 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
2252 """Locale_AddCatalogLookupPathPrefix(String prefix)"""
2253 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2255 def Locale_GetLanguageInfo(*args
, **kwargs
):
2256 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
2257 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
2259 def Locale_GetLanguageName(*args
, **kwargs
):
2260 """Locale_GetLanguageName(int lang) -> String"""
2261 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
2263 def Locale_FindLanguageInfo(*args
, **kwargs
):
2264 """Locale_FindLanguageInfo(String locale) -> LanguageInfo"""
2265 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
2267 def Locale_AddLanguage(*args
, **kwargs
):
2268 """Locale_AddLanguage(LanguageInfo info)"""
2269 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
2272 def GetLocale(*args
, **kwargs
):
2273 """GetLocale() -> Locale"""
2274 return _gdi
.GetLocale(*args
, **kwargs
)
2275 #---------------------------------------------------------------------------
2277 CONVERT_STRICT
= _gdi
.CONVERT_STRICT
2278 CONVERT_SUBSTITUTE
= _gdi
.CONVERT_SUBSTITUTE
2279 PLATFORM_CURRENT
= _gdi
.PLATFORM_CURRENT
2280 PLATFORM_UNIX
= _gdi
.PLATFORM_UNIX
2281 PLATFORM_WINDOWS
= _gdi
.PLATFORM_WINDOWS
2282 PLATFORM_OS2
= _gdi
.PLATFORM_OS2
2283 PLATFORM_MAC
= _gdi
.PLATFORM_MAC
2284 class EncodingConverter(core
.Object
):
2286 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2287 def __init__(self
, *args
, **kwargs
):
2288 """__init__() -> EncodingConverter"""
2289 newobj
= _gdi
.new_EncodingConverter(*args
, **kwargs
)
2290 self
.this
= newobj
.this
2293 def __del__(self
, destroy
=_gdi
.delete_EncodingConverter
):
2296 if self
.thisown
: destroy(self
)
2299 def Init(*args
, **kwargs
):
2300 """Init(int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool"""
2301 return _gdi
.EncodingConverter_Init(*args
, **kwargs
)
2303 def Convert(*args
, **kwargs
):
2304 """Convert(String input) -> String"""
2305 return _gdi
.EncodingConverter_Convert(*args
, **kwargs
)
2307 def GetPlatformEquivalents(*args
, **kwargs
):
2308 """GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2309 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2311 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2312 def GetAllEquivalents(*args
, **kwargs
):
2313 """GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2314 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2316 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2317 def CanConvert(*args
, **kwargs
):
2318 """CanConvert(int encIn, int encOut) -> bool"""
2319 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2321 CanConvert
= staticmethod(CanConvert
)
2322 def __nonzero__(self
): return self
.IsOk()
2324 class EncodingConverterPtr(EncodingConverter
):
2325 def __init__(self
, this
):
2327 if not hasattr(self
,"thisown"): self
.thisown
= 0
2328 self
.__class
__ = EncodingConverter
2329 _gdi
.EncodingConverter_swigregister(EncodingConverterPtr
)
2331 def GetTranslation(*args
):
2333 GetTranslation(String str) -> String
2334 GetTranslation(String str, String strPlural, size_t n) -> String
2336 return _gdi
.GetTranslation(*args
)
2338 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2339 """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2340 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2342 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2343 """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2344 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2346 def EncodingConverter_CanConvert(*args
, **kwargs
):
2347 """EncodingConverter_CanConvert(int encIn, int encOut) -> bool"""
2348 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2350 #----------------------------------------------------------------------------
2351 # wxGTK sets the locale when initialized. Doing this at the Python
2352 # level should set it up to match what GTK is doing at the C level.
2353 if wx
.Platform
== "__WXGTK__":
2356 locale
.setlocale(locale
.LC_ALL
, "")
2360 # On MSW add the directory where the wxWindows catalogs were installed
2361 # to the default catalog path.
2362 if wx
.Platform
== "__WXMSW__":
2364 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2365 Locale_AddCatalogLookupPathPrefix(localedir
)
2368 #----------------------------------------------------------------------------
2370 #---------------------------------------------------------------------------
2372 class DC(core
.Object
):
2373 def __init__(self
): raise RuntimeError, "No constructor defined"
2375 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2376 def __del__(self
, destroy
=_gdi
.delete_DC
):
2379 if self
.thisown
: destroy(self
)
2382 def BeginDrawing(*args
, **kwargs
):
2383 """BeginDrawing()"""
2384 return _gdi
.DC_BeginDrawing(*args
, **kwargs
)
2386 def EndDrawing(*args
, **kwargs
):
2388 return _gdi
.DC_EndDrawing(*args
, **kwargs
)
2390 def FloodFillXY(*args
, **kwargs
):
2391 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2392 return _gdi
.DC_FloodFillXY(*args
, **kwargs
)
2394 def FloodFill(*args
, **kwargs
):
2395 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2396 return _gdi
.DC_FloodFill(*args
, **kwargs
)
2398 def GetPixelXY(*args
, **kwargs
):
2399 """GetPixelXY(int x, int y) -> Colour"""
2400 return _gdi
.DC_GetPixelXY(*args
, **kwargs
)
2402 def GetPixel(*args
, **kwargs
):
2403 """GetPixel(Point pt) -> Colour"""
2404 return _gdi
.DC_GetPixel(*args
, **kwargs
)
2406 def DrawLineXY(*args
, **kwargs
):
2407 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2408 return _gdi
.DC_DrawLineXY(*args
, **kwargs
)
2410 def DrawLine(*args
, **kwargs
):
2411 """DrawLine(Point pt1, Point pt2)"""
2412 return _gdi
.DC_DrawLine(*args
, **kwargs
)
2414 def CrossHairXY(*args
, **kwargs
):
2415 """CrossHairXY(int x, int y)"""
2416 return _gdi
.DC_CrossHairXY(*args
, **kwargs
)
2418 def CrossHair(*args
, **kwargs
):
2419 """CrossHair(Point pt)"""
2420 return _gdi
.DC_CrossHair(*args
, **kwargs
)
2422 def DrawArcXY(*args
, **kwargs
):
2423 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2424 return _gdi
.DC_DrawArcXY(*args
, **kwargs
)
2426 def DrawArc(*args
, **kwargs
):
2427 """DrawArc(Point pt1, Point pt2, Point centre)"""
2428 return _gdi
.DC_DrawArc(*args
, **kwargs
)
2430 def DrawCheckMarkXY(*args
, **kwargs
):
2431 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2432 return _gdi
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2434 def DrawCheckMark(*args
, **kwargs
):
2435 """DrawCheckMark(Rect rect)"""
2436 return _gdi
.DC_DrawCheckMark(*args
, **kwargs
)
2438 def DrawEllipticArcXY(*args
, **kwargs
):
2439 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2440 return _gdi
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2442 def DrawEllipticArc(*args
, **kwargs
):
2443 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2444 return _gdi
.DC_DrawEllipticArc(*args
, **kwargs
)
2446 def DrawPointXY(*args
, **kwargs
):
2447 """DrawPointXY(int x, int y)"""
2448 return _gdi
.DC_DrawPointXY(*args
, **kwargs
)
2450 def DrawPoint(*args
, **kwargs
):
2451 """DrawPoint(Point pt)"""
2452 return _gdi
.DC_DrawPoint(*args
, **kwargs
)
2454 def DrawRectangleXY(*args
, **kwargs
):
2455 """DrawRectangleXY(int x, int y, int width, int height)"""
2456 return _gdi
.DC_DrawRectangleXY(*args
, **kwargs
)
2458 def DrawRectangle(*args
, **kwargs
):
2459 """DrawRectangle(Point pt, Size sz)"""
2460 return _gdi
.DC_DrawRectangle(*args
, **kwargs
)
2462 def DrawRectangleRect(*args
, **kwargs
):
2463 """DrawRectangleRect(Rect rect)"""
2464 return _gdi
.DC_DrawRectangleRect(*args
, **kwargs
)
2466 def DrawRoundedRectangleXY(*args
, **kwargs
):
2467 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2468 return _gdi
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2470 def DrawRoundedRectangle(*args
, **kwargs
):
2471 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2472 return _gdi
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2474 def DrawRoundedRectangleRect(*args
, **kwargs
):
2475 """DrawRoundedRectangleRect(Rect r, double radius)"""
2476 return _gdi
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2478 def DrawCircleXY(*args
, **kwargs
):
2479 """DrawCircleXY(int x, int y, int radius)"""
2480 return _gdi
.DC_DrawCircleXY(*args
, **kwargs
)
2482 def DrawCircle(*args
, **kwargs
):
2483 """DrawCircle(Point pt, int radius)"""
2484 return _gdi
.DC_DrawCircle(*args
, **kwargs
)
2486 def DrawEllipseXY(*args
, **kwargs
):
2487 """DrawEllipseXY(int x, int y, int width, int height)"""
2488 return _gdi
.DC_DrawEllipseXY(*args
, **kwargs
)
2490 def DrawEllipse(*args
, **kwargs
):
2491 """DrawEllipse(Point pt, Size sz)"""
2492 return _gdi
.DC_DrawEllipse(*args
, **kwargs
)
2494 def DrawEllipseRect(*args
, **kwargs
):
2495 """DrawEllipseRect(Rect rect)"""
2496 return _gdi
.DC_DrawEllipseRect(*args
, **kwargs
)
2498 def DrawIconXY(*args
, **kwargs
):
2499 """DrawIconXY(Icon icon, int x, int y)"""
2500 return _gdi
.DC_DrawIconXY(*args
, **kwargs
)
2502 def DrawIcon(*args
, **kwargs
):
2503 """DrawIcon(Icon icon, Point pt)"""
2504 return _gdi
.DC_DrawIcon(*args
, **kwargs
)
2506 def DrawBitmapXY(*args
, **kwargs
):
2507 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2508 return _gdi
.DC_DrawBitmapXY(*args
, **kwargs
)
2510 def DrawBitmap(*args
, **kwargs
):
2511 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2512 return _gdi
.DC_DrawBitmap(*args
, **kwargs
)
2514 def DrawTextXY(*args
, **kwargs
):
2515 """DrawTextXY(String text, int x, int y)"""
2516 return _gdi
.DC_DrawTextXY(*args
, **kwargs
)
2518 def DrawText(*args
, **kwargs
):
2519 """DrawText(String text, Point pt)"""
2520 return _gdi
.DC_DrawText(*args
, **kwargs
)
2522 def DrawRotatedTextXY(*args
, **kwargs
):
2523 """DrawRotatedTextXY(String text, int x, int y, double angle)"""
2524 return _gdi
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2526 def DrawRotatedText(*args
, **kwargs
):
2527 """DrawRotatedText(String text, Point pt, double angle)"""
2528 return _gdi
.DC_DrawRotatedText(*args
, **kwargs
)
2530 def BlitXY(*args
, **kwargs
):
2532 BlitXY(int xdest, int ydest, int width, int height, DC source,
2533 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2534 int xsrcMask=-1, int ysrcMask=-1) -> bool
2536 return _gdi
.DC_BlitXY(*args
, **kwargs
)
2538 def Blit(*args
, **kwargs
):
2540 Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2541 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
2543 return _gdi
.DC_Blit(*args
, **kwargs
)
2545 def DrawLines(*args
, **kwargs
):
2546 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2547 return _gdi
.DC_DrawLines(*args
, **kwargs
)
2549 def DrawPolygon(*args
, **kwargs
):
2551 DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2552 int fillStyle=ODDEVEN_RULE)
2554 return _gdi
.DC_DrawPolygon(*args
, **kwargs
)
2556 def DrawLabel(*args
, **kwargs
):
2558 DrawLabel(String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2561 return _gdi
.DC_DrawLabel(*args
, **kwargs
)
2563 def DrawImageLabel(*args
, **kwargs
):
2565 DrawImageLabel(String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2566 int indexAccel=-1) -> Rect
2568 return _gdi
.DC_DrawImageLabel(*args
, **kwargs
)
2570 def DrawSpline(*args
, **kwargs
):
2571 """DrawSpline(int points, Point points_array)"""
2572 return _gdi
.DC_DrawSpline(*args
, **kwargs
)
2574 def Clear(*args
, **kwargs
):
2576 return _gdi
.DC_Clear(*args
, **kwargs
)
2578 def StartDoc(*args
, **kwargs
):
2579 """StartDoc(String message) -> bool"""
2580 return _gdi
.DC_StartDoc(*args
, **kwargs
)
2582 def EndDoc(*args
, **kwargs
):
2584 return _gdi
.DC_EndDoc(*args
, **kwargs
)
2586 def StartPage(*args
, **kwargs
):
2588 return _gdi
.DC_StartPage(*args
, **kwargs
)
2590 def EndPage(*args
, **kwargs
):
2592 return _gdi
.DC_EndPage(*args
, **kwargs
)
2594 def SetFont(*args
, **kwargs
):
2595 """SetFont(Font font)"""
2596 return _gdi
.DC_SetFont(*args
, **kwargs
)
2598 def SetPen(*args
, **kwargs
):
2599 """SetPen(Pen pen)"""
2600 return _gdi
.DC_SetPen(*args
, **kwargs
)
2602 def SetBrush(*args
, **kwargs
):
2603 """SetBrush(Brush brush)"""
2604 return _gdi
.DC_SetBrush(*args
, **kwargs
)
2606 def SetBackground(*args
, **kwargs
):
2607 """SetBackground(Brush brush)"""
2608 return _gdi
.DC_SetBackground(*args
, **kwargs
)
2610 def SetBackgroundMode(*args
, **kwargs
):
2611 """SetBackgroundMode(int mode)"""
2612 return _gdi
.DC_SetBackgroundMode(*args
, **kwargs
)
2614 def SetPalette(*args
, **kwargs
):
2615 """SetPalette(Palette palette)"""
2616 return _gdi
.DC_SetPalette(*args
, **kwargs
)
2618 def SetClippingRegionXY(*args
, **kwargs
):
2619 """SetClippingRegionXY(int x, int y, int width, int height)"""
2620 return _gdi
.DC_SetClippingRegionXY(*args
, **kwargs
)
2622 def SetClippingRegion(*args
, **kwargs
):
2623 """SetClippingRegion(Point pt, Size sz)"""
2624 return _gdi
.DC_SetClippingRegion(*args
, **kwargs
)
2626 def SetClippingRect(*args
, **kwargs
):
2627 """SetClippingRect(Rect rect)"""
2628 return _gdi
.DC_SetClippingRect(*args
, **kwargs
)
2630 def SetClippingRegionAsRegion(*args
, **kwargs
):
2631 """SetClippingRegionAsRegion(Region region)"""
2632 return _gdi
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2634 def DestroyClippingRegion(*args
, **kwargs
):
2635 """DestroyClippingRegion()"""
2636 return _gdi
.DC_DestroyClippingRegion(*args
, **kwargs
)
2638 def GetClippingBox(*args
, **kwargs
):
2639 """GetClippingBox() -> (x, y, width, height)"""
2640 return _gdi
.DC_GetClippingBox(*args
, **kwargs
)
2642 def GetClippingRect(*args
, **kwargs
):
2643 """GetClippingRect() -> Rect"""
2644 return _gdi
.DC_GetClippingRect(*args
, **kwargs
)
2646 def GetCharHeight(*args
, **kwargs
):
2647 """GetCharHeight() -> int"""
2648 return _gdi
.DC_GetCharHeight(*args
, **kwargs
)
2650 def GetCharWidth(*args
, **kwargs
):
2651 """GetCharWidth() -> int"""
2652 return _gdi
.DC_GetCharWidth(*args
, **kwargs
)
2654 def GetTextExtent(*args
, **kwargs
):
2656 GetTextExtent(wxString string) -> (width, height)
2658 Get the width and height of the text using the current font.
2659 Only works for single line strings.
2661 return _gdi
.DC_GetTextExtent(*args
, **kwargs
)
2663 def GetFullTextExtent(*args
, **kwargs
):
2665 GetFullTextExtent(wxString string, Font font=None) ->
2666 (width, height, descent, externalLeading)
2668 Get the width, height, decent and leading of the text using the current or specified font.
2669 Only works for single line strings.
2671 return _gdi
.DC_GetFullTextExtent(*args
, **kwargs
)
2673 def GetMultiLineTextExtent(*args
, **kwargs
):
2675 GetMultiLineTextExtent(wxString string, Font font=None) ->
2676 (width, height, descent, externalLeading)
2678 Get the width, height, decent and leading of the text using the current or specified font.
2679 Works for single as well as multi-line strings.
2681 return _gdi
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2683 def GetPartialTextExtents(*args
, **kwargs
):
2684 """GetPartialTextExtents(String text) -> wxArrayInt"""
2685 return _gdi
.DC_GetPartialTextExtents(*args
, **kwargs
)
2687 def GetSize(*args
, **kwargs
):
2691 Get the DC size in device units.
2693 return _gdi
.DC_GetSize(*args
, **kwargs
)
2695 def GetSizeTuple(*args
, **kwargs
):
2697 GetSizeTuple() -> (width, height)
2699 Get the DC size in device units.
2701 return _gdi
.DC_GetSizeTuple(*args
, **kwargs
)
2703 def GetSizeMM(*args
, **kwargs
):
2707 Get the DC size in milimeters.
2709 return _gdi
.DC_GetSizeMM(*args
, **kwargs
)
2711 def GetSizeMMTuple(*args
, **kwargs
):
2713 GetSizeMMTuple() -> (width, height)
2715 Get the DC size in milimeters.
2717 return _gdi
.DC_GetSizeMMTuple(*args
, **kwargs
)
2719 def DeviceToLogicalX(*args
, **kwargs
):
2720 """DeviceToLogicalX(int x) -> int"""
2721 return _gdi
.DC_DeviceToLogicalX(*args
, **kwargs
)
2723 def DeviceToLogicalY(*args
, **kwargs
):
2724 """DeviceToLogicalY(int y) -> int"""
2725 return _gdi
.DC_DeviceToLogicalY(*args
, **kwargs
)
2727 def DeviceToLogicalXRel(*args
, **kwargs
):
2728 """DeviceToLogicalXRel(int x) -> int"""
2729 return _gdi
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2731 def DeviceToLogicalYRel(*args
, **kwargs
):
2732 """DeviceToLogicalYRel(int y) -> int"""
2733 return _gdi
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2735 def LogicalToDeviceX(*args
, **kwargs
):
2736 """LogicalToDeviceX(int x) -> int"""
2737 return _gdi
.DC_LogicalToDeviceX(*args
, **kwargs
)
2739 def LogicalToDeviceY(*args
, **kwargs
):
2740 """LogicalToDeviceY(int y) -> int"""
2741 return _gdi
.DC_LogicalToDeviceY(*args
, **kwargs
)
2743 def LogicalToDeviceXRel(*args
, **kwargs
):
2744 """LogicalToDeviceXRel(int x) -> int"""
2745 return _gdi
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2747 def LogicalToDeviceYRel(*args
, **kwargs
):
2748 """LogicalToDeviceYRel(int y) -> int"""
2749 return _gdi
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2751 def CanDrawBitmap(*args
, **kwargs
):
2752 """CanDrawBitmap() -> bool"""
2753 return _gdi
.DC_CanDrawBitmap(*args
, **kwargs
)
2755 def CanGetTextExtent(*args
, **kwargs
):
2756 """CanGetTextExtent() -> bool"""
2757 return _gdi
.DC_CanGetTextExtent(*args
, **kwargs
)
2759 def GetDepth(*args
, **kwargs
):
2760 """GetDepth() -> int"""
2761 return _gdi
.DC_GetDepth(*args
, **kwargs
)
2763 def GetPPI(*args
, **kwargs
):
2764 """GetPPI() -> Size"""
2765 return _gdi
.DC_GetPPI(*args
, **kwargs
)
2767 def Ok(*args
, **kwargs
):
2769 return _gdi
.DC_Ok(*args
, **kwargs
)
2771 def GetBackgroundMode(*args
, **kwargs
):
2772 """GetBackgroundMode() -> int"""
2773 return _gdi
.DC_GetBackgroundMode(*args
, **kwargs
)
2775 def GetBackground(*args
, **kwargs
):
2776 """GetBackground() -> Brush"""
2777 return _gdi
.DC_GetBackground(*args
, **kwargs
)
2779 def GetBrush(*args
, **kwargs
):
2780 """GetBrush() -> Brush"""
2781 return _gdi
.DC_GetBrush(*args
, **kwargs
)
2783 def GetFont(*args
, **kwargs
):
2784 """GetFont() -> Font"""
2785 return _gdi
.DC_GetFont(*args
, **kwargs
)
2787 def GetPen(*args
, **kwargs
):
2788 """GetPen() -> Pen"""
2789 return _gdi
.DC_GetPen(*args
, **kwargs
)
2791 def GetTextBackground(*args
, **kwargs
):
2792 """GetTextBackground() -> Colour"""
2793 return _gdi
.DC_GetTextBackground(*args
, **kwargs
)
2795 def GetTextForeground(*args
, **kwargs
):
2796 """GetTextForeground() -> Colour"""
2797 return _gdi
.DC_GetTextForeground(*args
, **kwargs
)
2799 def SetTextForeground(*args
, **kwargs
):
2800 """SetTextForeground(Colour colour)"""
2801 return _gdi
.DC_SetTextForeground(*args
, **kwargs
)
2803 def SetTextBackground(*args
, **kwargs
):
2804 """SetTextBackground(Colour colour)"""
2805 return _gdi
.DC_SetTextBackground(*args
, **kwargs
)
2807 def GetMapMode(*args
, **kwargs
):
2808 """GetMapMode() -> int"""
2809 return _gdi
.DC_GetMapMode(*args
, **kwargs
)
2811 def SetMapMode(*args
, **kwargs
):
2812 """SetMapMode(int mode)"""
2813 return _gdi
.DC_SetMapMode(*args
, **kwargs
)
2815 def GetUserScale(*args
, **kwargs
):
2816 """GetUserScale() -> (xScale, yScale)"""
2817 return _gdi
.DC_GetUserScale(*args
, **kwargs
)
2819 def SetUserScale(*args
, **kwargs
):
2820 """SetUserScale(double x, double y)"""
2821 return _gdi
.DC_SetUserScale(*args
, **kwargs
)
2823 def GetLogicalScale(*args
, **kwargs
):
2824 """GetLogicalScale() -> (xScale, yScale)"""
2825 return _gdi
.DC_GetLogicalScale(*args
, **kwargs
)
2827 def SetLogicalScale(*args
, **kwargs
):
2828 """SetLogicalScale(double x, double y)"""
2829 return _gdi
.DC_SetLogicalScale(*args
, **kwargs
)
2831 def GetLogicalOrigin(*args
, **kwargs
):
2832 """GetLogicalOrigin() -> Point"""
2833 return _gdi
.DC_GetLogicalOrigin(*args
, **kwargs
)
2835 def GetLogicalOriginTuple(*args
, **kwargs
):
2836 """GetLogicalOriginTuple() -> (x,y)"""
2837 return _gdi
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2839 def SetLogicalOrigin(*args
, **kwargs
):
2840 """SetLogicalOrigin(int x, int y)"""
2841 return _gdi
.DC_SetLogicalOrigin(*args
, **kwargs
)
2843 def GetDeviceOrigin(*args
, **kwargs
):
2844 """GetDeviceOrigin() -> Point"""
2845 return _gdi
.DC_GetDeviceOrigin(*args
, **kwargs
)
2847 def GetDeviceOriginTuple(*args
, **kwargs
):
2848 """GetDeviceOriginTuple() -> (x,y)"""
2849 return _gdi
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2851 def SetDeviceOrigin(*args
, **kwargs
):
2852 """SetDeviceOrigin(int x, int y)"""
2853 return _gdi
.DC_SetDeviceOrigin(*args
, **kwargs
)
2855 def SetAxisOrientation(*args
, **kwargs
):
2856 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2857 return _gdi
.DC_SetAxisOrientation(*args
, **kwargs
)
2859 def GetLogicalFunction(*args
, **kwargs
):
2860 """GetLogicalFunction() -> int"""
2861 return _gdi
.DC_GetLogicalFunction(*args
, **kwargs
)
2863 def SetLogicalFunction(*args
, **kwargs
):
2864 """SetLogicalFunction(int function)"""
2865 return _gdi
.DC_SetLogicalFunction(*args
, **kwargs
)
2867 def SetOptimization(*args
, **kwargs
):
2868 """SetOptimization(bool opt)"""
2869 return _gdi
.DC_SetOptimization(*args
, **kwargs
)
2871 def GetOptimization(*args
, **kwargs
):
2872 """GetOptimization() -> bool"""
2873 return _gdi
.DC_GetOptimization(*args
, **kwargs
)
2875 def CalcBoundingBox(*args
, **kwargs
):
2876 """CalcBoundingBox(int x, int y)"""
2877 return _gdi
.DC_CalcBoundingBox(*args
, **kwargs
)
2879 def ResetBoundingBox(*args
, **kwargs
):
2880 """ResetBoundingBox()"""
2881 return _gdi
.DC_ResetBoundingBox(*args
, **kwargs
)
2883 def MinX(*args
, **kwargs
):
2885 return _gdi
.DC_MinX(*args
, **kwargs
)
2887 def MaxX(*args
, **kwargs
):
2889 return _gdi
.DC_MaxX(*args
, **kwargs
)
2891 def MinY(*args
, **kwargs
):
2893 return _gdi
.DC_MinY(*args
, **kwargs
)
2895 def MaxY(*args
, **kwargs
):
2897 return _gdi
.DC_MaxY(*args
, **kwargs
)
2899 def GetBoundingBox(*args
, **kwargs
):
2900 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2901 return _gdi
.DC_GetBoundingBox(*args
, **kwargs
)
2903 def __nonzero__(self
): return self
.Ok()
2904 def _DrawPointList(*args
, **kwargs
):
2905 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2906 return _gdi
.DC__DrawPointList(*args
, **kwargs
)
2908 def _DrawLineList(*args
, **kwargs
):
2909 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2910 return _gdi
.DC__DrawLineList(*args
, **kwargs
)
2912 def _DrawRectangleList(*args
, **kwargs
):
2913 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2914 return _gdi
.DC__DrawRectangleList(*args
, **kwargs
)
2916 def _DrawEllipseList(*args
, **kwargs
):
2917 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2918 return _gdi
.DC__DrawEllipseList(*args
, **kwargs
)
2920 def _DrawPolygonList(*args
, **kwargs
):
2921 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2922 return _gdi
.DC__DrawPolygonList(*args
, **kwargs
)
2924 def _DrawTextList(*args
, **kwargs
):
2926 _DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2927 PyObject backgroundList) -> PyObject
2929 return _gdi
.DC__DrawTextList(*args
, **kwargs
)
2931 def DrawPointList(self
, points
, pens
=None):
2934 elif isinstance(pens
, wx
.Pen
):
2936 elif len(pens
) != len(points
):
2937 raise ValueError('points and pens must have same length')
2938 return self
._DrawPointList
(points
, pens
, [])
2941 def DrawLineList(self
, lines
, pens
=None):
2944 elif isinstance(pens
, wx
.Pen
):
2946 elif len(pens
) != len(lines
):
2947 raise ValueError('lines and pens must have same length')
2948 return self
._DrawLineList
(lines
, pens
, [])
2951 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2954 elif isinstance(pens
, wx
.Pen
):
2956 elif len(pens
) != len(rectangles
):
2957 raise ValueError('rectangles and pens must have same length')
2960 elif isinstance(brushes
, wx
.Brush
):
2962 elif len(brushes
) != len(rectangles
):
2963 raise ValueError('rectangles and brushes must have same length')
2964 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2967 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2970 elif isinstance(pens
, wx
.Pen
):
2972 elif len(pens
) != len(ellipses
):
2973 raise ValueError('ellipses and pens must have same length')
2976 elif isinstance(brushes
, wx
.Brush
):
2978 elif len(brushes
) != len(ellipses
):
2979 raise ValueError('ellipses and brushes must have same length')
2980 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2983 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2984 ## Note: This does not currently support fill style or offset
2985 ## you can always use the non-List version if need be.
2988 elif isinstance(pens
, wx
.Pen
):
2990 elif len(pens
) != len(polygons
):
2991 raise ValueError('polygons and pens must have same length')
2994 elif isinstance(brushes
, wx
.Brush
):
2996 elif len(brushes
) != len(polygons
):
2997 raise ValueError('polygons and brushes must have same length')
2998 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
3001 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
3002 ## NOTE: this does not currently support changing the font
3003 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
3004 ## If you want backgounds to do anything.
3005 if type(textList
) == type(''):
3006 textList
= [textList
]
3007 elif len(textList
) != len(coords
):
3008 raise ValueError('textlist and coords must have same length')
3009 if foregrounds
is None:
3011 elif isinstance(foregrounds
, wx
.Colour
):
3012 foregrounds
= [foregrounds
]
3013 elif len(foregrounds
) != len(coords
):
3014 raise ValueError('foregrounds and coords must have same length')
3015 if backgrounds
is None:
3017 elif isinstance(backgrounds
, wx
.Colour
):
3018 backgrounds
= [backgrounds
]
3019 elif len(backgrounds
) != len(coords
):
3020 raise ValueError('backgrounds and coords must have same length')
3021 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
3025 def __init__(self
, this
):
3027 if not hasattr(self
,"thisown"): self
.thisown
= 0
3029 _gdi
.DC_swigregister(DCPtr
)
3031 #---------------------------------------------------------------------------
3035 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3036 def __init__(self
, *args
, **kwargs
):
3037 """__init__() -> MemoryDC"""
3038 newobj
= _gdi
.new_MemoryDC(*args
, **kwargs
)
3039 self
.this
= newobj
.this
3042 def SelectObject(*args
, **kwargs
):
3043 """SelectObject(Bitmap bitmap)"""
3044 return _gdi
.MemoryDC_SelectObject(*args
, **kwargs
)
3047 class MemoryDCPtr(MemoryDC
):
3048 def __init__(self
, this
):
3050 if not hasattr(self
,"thisown"): self
.thisown
= 0
3051 self
.__class
__ = MemoryDC
3052 _gdi
.MemoryDC_swigregister(MemoryDCPtr
)
3054 def MemoryDCFromDC(*args
, **kwargs
):
3055 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
3056 val
= _gdi
.new_MemoryDCFromDC(*args
, **kwargs
)
3060 #---------------------------------------------------------------------------
3062 class BufferedDC(MemoryDC
):
3064 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3065 def __init__(self
, *args
):
3067 __init__(DC dc, Bitmap buffer) -> BufferedDC
3068 __init__(DC dc, Size area) -> BufferedDC
3070 newobj
= _gdi
.new_BufferedDC(*args
)
3071 self
.this
= newobj
.this
3074 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
3076 def __del__(self
, destroy
=_gdi
.delete_BufferedDC
):
3079 if self
.thisown
: destroy(self
)
3082 def UnMask(*args
, **kwargs
):
3084 return _gdi
.BufferedDC_UnMask(*args
, **kwargs
)
3087 class BufferedDCPtr(BufferedDC
):
3088 def __init__(self
, this
):
3090 if not hasattr(self
,"thisown"): self
.thisown
= 0
3091 self
.__class
__ = BufferedDC
3092 _gdi
.BufferedDC_swigregister(BufferedDCPtr
)
3094 def BufferedDCInternalBuffer(*args
):
3095 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
3096 val
= _gdi
.new_BufferedDCInternalBuffer(*args
)
3098 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
3101 class BufferedPaintDC(BufferedDC
):
3103 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3104 def __init__(self
, *args
, **kwargs
):
3105 """__init__(Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
3106 newobj
= _gdi
.new_BufferedPaintDC(*args
, **kwargs
)
3107 self
.this
= newobj
.this
3111 class BufferedPaintDCPtr(BufferedPaintDC
):
3112 def __init__(self
, this
):
3114 if not hasattr(self
,"thisown"): self
.thisown
= 0
3115 self
.__class
__ = BufferedPaintDC
3116 _gdi
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
3118 #---------------------------------------------------------------------------
3122 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3123 def __init__(self
, *args
, **kwargs
):
3124 """__init__() -> ScreenDC"""
3125 newobj
= _gdi
.new_ScreenDC(*args
, **kwargs
)
3126 self
.this
= newobj
.this
3129 def StartDrawingOnTopWin(*args
, **kwargs
):
3130 """StartDrawingOnTopWin(Window window) -> bool"""
3131 return _gdi
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
3133 def StartDrawingOnTop(*args
, **kwargs
):
3134 """StartDrawingOnTop(Rect rect=None) -> bool"""
3135 return _gdi
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
3137 def EndDrawingOnTop(*args
, **kwargs
):
3138 """EndDrawingOnTop() -> bool"""
3139 return _gdi
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
3142 class ScreenDCPtr(ScreenDC
):
3143 def __init__(self
, this
):
3145 if not hasattr(self
,"thisown"): self
.thisown
= 0
3146 self
.__class
__ = ScreenDC
3147 _gdi
.ScreenDC_swigregister(ScreenDCPtr
)
3149 #---------------------------------------------------------------------------
3153 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3154 def __init__(self
, *args
, **kwargs
):
3155 """__init__(Window win) -> ClientDC"""
3156 newobj
= _gdi
.new_ClientDC(*args
, **kwargs
)
3157 self
.this
= newobj
.this
3161 class ClientDCPtr(ClientDC
):
3162 def __init__(self
, this
):
3164 if not hasattr(self
,"thisown"): self
.thisown
= 0
3165 self
.__class
__ = ClientDC
3166 _gdi
.ClientDC_swigregister(ClientDCPtr
)
3168 #---------------------------------------------------------------------------
3172 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3173 def __init__(self
, *args
, **kwargs
):
3174 """__init__(Window win) -> PaintDC"""
3175 newobj
= _gdi
.new_PaintDC(*args
, **kwargs
)
3176 self
.this
= newobj
.this
3180 class PaintDCPtr(PaintDC
):
3181 def __init__(self
, this
):
3183 if not hasattr(self
,"thisown"): self
.thisown
= 0
3184 self
.__class
__ = PaintDC
3185 _gdi
.PaintDC_swigregister(PaintDCPtr
)
3187 #---------------------------------------------------------------------------
3191 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3192 def __init__(self
, *args
, **kwargs
):
3193 """__init__(Window win) -> WindowDC"""
3194 newobj
= _gdi
.new_WindowDC(*args
, **kwargs
)
3195 self
.this
= newobj
.this
3199 class WindowDCPtr(WindowDC
):
3200 def __init__(self
, this
):
3202 if not hasattr(self
,"thisown"): self
.thisown
= 0
3203 self
.__class
__ = WindowDC
3204 _gdi
.WindowDC_swigregister(WindowDCPtr
)
3206 #---------------------------------------------------------------------------
3210 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3211 def __init__(self
, *args
, **kwargs
):
3212 """__init__(DC dc, bool mirror) -> MirrorDC"""
3213 newobj
= _gdi
.new_MirrorDC(*args
, **kwargs
)
3214 self
.this
= newobj
.this
3218 class MirrorDCPtr(MirrorDC
):
3219 def __init__(self
, this
):
3221 if not hasattr(self
,"thisown"): self
.thisown
= 0
3222 self
.__class
__ = MirrorDC
3223 _gdi
.MirrorDC_swigregister(MirrorDCPtr
)
3225 #---------------------------------------------------------------------------
3227 class PostScriptDC(DC
):
3229 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3230 def __init__(self
, *args
, **kwargs
):
3231 """__init__(wxPrintData printData) -> PostScriptDC"""
3232 newobj
= _gdi
.new_PostScriptDC(*args
, **kwargs
)
3233 self
.this
= newobj
.this
3236 def GetPrintData(*args
, **kwargs
):
3237 """GetPrintData() -> wxPrintData"""
3238 return _gdi
.PostScriptDC_GetPrintData(*args
, **kwargs
)
3240 def SetPrintData(*args
, **kwargs
):
3241 """SetPrintData(wxPrintData data)"""
3242 return _gdi
.PostScriptDC_SetPrintData(*args
, **kwargs
)
3244 def SetResolution(*args
, **kwargs
):
3245 """SetResolution(int ppi)"""
3246 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
3248 SetResolution
= staticmethod(SetResolution
)
3249 def GetResolution(*args
, **kwargs
):
3250 """GetResolution() -> int"""
3251 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
3253 GetResolution
= staticmethod(GetResolution
)
3255 class PostScriptDCPtr(PostScriptDC
):
3256 def __init__(self
, this
):
3258 if not hasattr(self
,"thisown"): self
.thisown
= 0
3259 self
.__class
__ = PostScriptDC
3260 _gdi
.PostScriptDC_swigregister(PostScriptDCPtr
)
3262 def PostScriptDC_SetResolution(*args
, **kwargs
):
3263 """PostScriptDC_SetResolution(int ppi)"""
3264 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
3266 def PostScriptDC_GetResolution(*args
, **kwargs
):
3267 """PostScriptDC_GetResolution() -> int"""
3268 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
3270 #---------------------------------------------------------------------------
3272 class MetaFile(core
.Object
):
3274 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3275 def __init__(self
, *args
, **kwargs
):
3276 """__init__(String filename=EmptyString) -> MetaFile"""
3277 newobj
= _gdi
.new_MetaFile(*args
, **kwargs
)
3278 self
.this
= newobj
.this
3281 def __del__(self
, destroy
=_gdi
.delete_MetaFile
):
3284 if self
.thisown
: destroy(self
)
3287 def Ok(*args
, **kwargs
):
3289 return _gdi
.MetaFile_Ok(*args
, **kwargs
)
3291 def SetClipboard(*args
, **kwargs
):
3292 """SetClipboard(int width=0, int height=0) -> bool"""
3293 return _gdi
.MetaFile_SetClipboard(*args
, **kwargs
)
3295 def GetSize(*args
, **kwargs
):
3296 """GetSize() -> Size"""
3297 return _gdi
.MetaFile_GetSize(*args
, **kwargs
)
3299 def GetWidth(*args
, **kwargs
):
3300 """GetWidth() -> int"""
3301 return _gdi
.MetaFile_GetWidth(*args
, **kwargs
)
3303 def GetHeight(*args
, **kwargs
):
3304 """GetHeight() -> int"""
3305 return _gdi
.MetaFile_GetHeight(*args
, **kwargs
)
3307 def GetFileName(*args
, **kwargs
):
3308 """GetFileName() -> String"""
3309 return _gdi
.MetaFile_GetFileName(*args
, **kwargs
)
3311 def __nonzero__(self
): return self
.Ok()
3313 class MetaFilePtr(MetaFile
):
3314 def __init__(self
, this
):
3316 if not hasattr(self
,"thisown"): self
.thisown
= 0
3317 self
.__class
__ = MetaFile
3318 _gdi
.MetaFile_swigregister(MetaFilePtr
)
3320 class MetaFileDC(DC
):
3322 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3323 def __init__(self
, *args
, **kwargs
):
3325 __init__(String filename=EmptyString, int width=0, int height=0,
3326 String description=EmptyString) -> MetaFileDC
3328 newobj
= _gdi
.new_MetaFileDC(*args
, **kwargs
)
3329 self
.this
= newobj
.this
3332 def Close(*args
, **kwargs
):
3333 """Close() -> MetaFile"""
3334 return _gdi
.MetaFileDC_Close(*args
, **kwargs
)
3337 class MetaFileDCPtr(MetaFileDC
):
3338 def __init__(self
, this
):
3340 if not hasattr(self
,"thisown"): self
.thisown
= 0
3341 self
.__class
__ = MetaFileDC
3342 _gdi
.MetaFileDC_swigregister(MetaFileDCPtr
)
3344 class PrinterDC(DC
):
3346 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3347 def __init__(self
, *args
, **kwargs
):
3348 """__init__(wxPrintData printData) -> PrinterDC"""
3349 newobj
= _gdi
.new_PrinterDC(*args
, **kwargs
)
3350 self
.this
= newobj
.this
3354 class PrinterDCPtr(PrinterDC
):
3355 def __init__(self
, this
):
3357 if not hasattr(self
,"thisown"): self
.thisown
= 0
3358 self
.__class
__ = PrinterDC
3359 _gdi
.PrinterDC_swigregister(PrinterDCPtr
)
3362 """DC class that has methods with 2.4 compatible parameters."""
3363 FloodFill
= DC
.FloodFillXY
3364 GetPixel
= DC
.GetPixelXY
3365 DrawLine
= DC
.DrawLineXY
3366 CrossHair
= DC
.CrossHairXY
3367 DrawArc
= DC
.DrawArcXY
3368 DrawCheckMark
= DC
.DrawCheckMarkXY
3369 DrawEllipticArc
= DC
.DrawEllipticArcXY
3370 DrawPoint
= DC
.DrawPointXY
3371 DrawRectangle
= DC
.DrawRectangleXY
3372 DrawRoundedRectangle
= DC
.DrawRoundedRectangleXY
3373 DrawCircle
= DC
.DrawCircleXY
3374 DrawEllipse
= DC
.DrawEllipseXY
3375 DrawIcon
= DC
.DrawIconXY
3376 DrawBitmap
= DC
.DrawBitmapXY
3377 DrawText
= DC
.DrawTextXY
3378 DrawRotatedText
= DC
.DrawRotatedTextXY
3381 class MemoryDC_old(MemoryDC
):
3382 """DC class that has methods with 2.4 compatible parameters."""
3383 FloodFill
= MemoryDC
.FloodFillXY
3384 GetPixel
= MemoryDC
.GetPixelXY
3385 DrawLine
= MemoryDC
.DrawLineXY
3386 CrossHair
= MemoryDC
.CrossHairXY
3387 DrawArc
= MemoryDC
.DrawArcXY
3388 DrawCheckMark
= MemoryDC
.DrawCheckMarkXY
3389 DrawEllipticArc
= MemoryDC
.DrawEllipticArcXY
3390 DrawPoint
= MemoryDC
.DrawPointXY
3391 DrawRectangle
= MemoryDC
.DrawRectangleXY
3392 DrawRoundedRectangle
= MemoryDC
.DrawRoundedRectangleXY
3393 DrawCircle
= MemoryDC
.DrawCircleXY
3394 DrawEllipse
= MemoryDC
.DrawEllipseXY
3395 DrawIcon
= MemoryDC
.DrawIconXY
3396 DrawBitmap
= MemoryDC
.DrawBitmapXY
3397 DrawText
= MemoryDC
.DrawTextXY
3398 DrawRotatedText
= MemoryDC
.DrawRotatedTextXY
3399 Blit
= MemoryDC
.BlitXY
3401 class BufferedDC_old(BufferedDC
):
3402 """DC class that has methods with 2.4 compatible parameters."""
3403 FloodFill
= BufferedDC
.FloodFillXY
3404 GetPixel
= BufferedDC
.GetPixelXY
3405 DrawLine
= BufferedDC
.DrawLineXY
3406 CrossHair
= BufferedDC
.CrossHairXY
3407 DrawArc
= BufferedDC
.DrawArcXY
3408 DrawCheckMark
= BufferedDC
.DrawCheckMarkXY
3409 DrawEllipticArc
= BufferedDC
.DrawEllipticArcXY
3410 DrawPoint
= BufferedDC
.DrawPointXY
3411 DrawRectangle
= BufferedDC
.DrawRectangleXY
3412 DrawRoundedRectangle
= BufferedDC
.DrawRoundedRectangleXY
3413 DrawCircle
= BufferedDC
.DrawCircleXY
3414 DrawEllipse
= BufferedDC
.DrawEllipseXY
3415 DrawIcon
= BufferedDC
.DrawIconXY
3416 DrawBitmap
= BufferedDC
.DrawBitmapXY
3417 DrawText
= BufferedDC
.DrawTextXY
3418 DrawRotatedText
= BufferedDC
.DrawRotatedTextXY
3419 Blit
= BufferedDC
.BlitXY
3421 class BufferedPaintDC_old(BufferedPaintDC
):
3422 """DC class that has methods with 2.4 compatible parameters."""
3423 FloodFill
= BufferedPaintDC
.FloodFillXY
3424 GetPixel
= BufferedPaintDC
.GetPixelXY
3425 DrawLine
= BufferedPaintDC
.DrawLineXY
3426 CrossHair
= BufferedPaintDC
.CrossHairXY
3427 DrawArc
= BufferedPaintDC
.DrawArcXY
3428 DrawCheckMark
= BufferedPaintDC
.DrawCheckMarkXY
3429 DrawEllipticArc
= BufferedPaintDC
.DrawEllipticArcXY
3430 DrawPoint
= BufferedPaintDC
.DrawPointXY
3431 DrawRectangle
= BufferedPaintDC
.DrawRectangleXY
3432 DrawRoundedRectangle
= BufferedPaintDC
.DrawRoundedRectangleXY
3433 DrawCircle
= BufferedPaintDC
.DrawCircleXY
3434 DrawEllipse
= BufferedPaintDC
.DrawEllipseXY
3435 DrawIcon
= BufferedPaintDC
.DrawIconXY
3436 DrawBitmap
= BufferedPaintDC
.DrawBitmapXY
3437 DrawText
= BufferedPaintDC
.DrawTextXY
3438 DrawRotatedText
= BufferedPaintDC
.DrawRotatedTextXY
3439 Blit
= BufferedPaintDC
.BlitXY
3441 class ScreenDC_old(ScreenDC
):
3442 """DC class that has methods with 2.4 compatible parameters."""
3443 FloodFill
= ScreenDC
.FloodFillXY
3444 GetPixel
= ScreenDC
.GetPixelXY
3445 DrawLine
= ScreenDC
.DrawLineXY
3446 CrossHair
= ScreenDC
.CrossHairXY
3447 DrawArc
= ScreenDC
.DrawArcXY
3448 DrawCheckMark
= ScreenDC
.DrawCheckMarkXY
3449 DrawEllipticArc
= ScreenDC
.DrawEllipticArcXY
3450 DrawPoint
= ScreenDC
.DrawPointXY
3451 DrawRectangle
= ScreenDC
.DrawRectangleXY
3452 DrawRoundedRectangle
= ScreenDC
.DrawRoundedRectangleXY
3453 DrawCircle
= ScreenDC
.DrawCircleXY
3454 DrawEllipse
= ScreenDC
.DrawEllipseXY
3455 DrawIcon
= ScreenDC
.DrawIconXY
3456 DrawBitmap
= ScreenDC
.DrawBitmapXY
3457 DrawText
= ScreenDC
.DrawTextXY
3458 DrawRotatedText
= ScreenDC
.DrawRotatedTextXY
3459 Blit
= ScreenDC
.BlitXY
3461 class ClientDC_old(ClientDC
):
3462 """DC class that has methods with 2.4 compatible parameters."""
3463 FloodFill
= ClientDC
.FloodFillXY
3464 GetPixel
= ClientDC
.GetPixelXY
3465 DrawLine
= ClientDC
.DrawLineXY
3466 CrossHair
= ClientDC
.CrossHairXY
3467 DrawArc
= ClientDC
.DrawArcXY
3468 DrawCheckMark
= ClientDC
.DrawCheckMarkXY
3469 DrawEllipticArc
= ClientDC
.DrawEllipticArcXY
3470 DrawPoint
= ClientDC
.DrawPointXY
3471 DrawRectangle
= ClientDC
.DrawRectangleXY
3472 DrawRoundedRectangle
= ClientDC
.DrawRoundedRectangleXY
3473 DrawCircle
= ClientDC
.DrawCircleXY
3474 DrawEllipse
= ClientDC
.DrawEllipseXY
3475 DrawIcon
= ClientDC
.DrawIconXY
3476 DrawBitmap
= ClientDC
.DrawBitmapXY
3477 DrawText
= ClientDC
.DrawTextXY
3478 DrawRotatedText
= ClientDC
.DrawRotatedTextXY
3479 Blit
= ClientDC
.BlitXY
3481 class PaintDC_old(PaintDC
):
3482 """DC class that has methods with 2.4 compatible parameters."""
3483 FloodFill
= PaintDC
.FloodFillXY
3484 GetPixel
= PaintDC
.GetPixelXY
3485 DrawLine
= PaintDC
.DrawLineXY
3486 CrossHair
= PaintDC
.CrossHairXY
3487 DrawArc
= PaintDC
.DrawArcXY
3488 DrawCheckMark
= PaintDC
.DrawCheckMarkXY
3489 DrawEllipticArc
= PaintDC
.DrawEllipticArcXY
3490 DrawPoint
= PaintDC
.DrawPointXY
3491 DrawRectangle
= PaintDC
.DrawRectangleXY
3492 DrawRoundedRectangle
= PaintDC
.DrawRoundedRectangleXY
3493 DrawCircle
= PaintDC
.DrawCircleXY
3494 DrawEllipse
= PaintDC
.DrawEllipseXY
3495 DrawIcon
= PaintDC
.DrawIconXY
3496 DrawBitmap
= PaintDC
.DrawBitmapXY
3497 DrawText
= PaintDC
.DrawTextXY
3498 DrawRotatedText
= PaintDC
.DrawRotatedTextXY
3499 Blit
= PaintDC
.BlitXY
3501 class WindowDC_old(WindowDC
):
3502 """DC class that has methods with 2.4 compatible parameters."""
3503 FloodFill
= WindowDC
.FloodFillXY
3504 GetPixel
= WindowDC
.GetPixelXY
3505 DrawLine
= WindowDC
.DrawLineXY
3506 CrossHair
= WindowDC
.CrossHairXY
3507 DrawArc
= WindowDC
.DrawArcXY
3508 DrawCheckMark
= WindowDC
.DrawCheckMarkXY
3509 DrawEllipticArc
= WindowDC
.DrawEllipticArcXY
3510 DrawPoint
= WindowDC
.DrawPointXY
3511 DrawRectangle
= WindowDC
.DrawRectangleXY
3512 DrawRoundedRectangle
= WindowDC
.DrawRoundedRectangleXY
3513 DrawCircle
= WindowDC
.DrawCircleXY
3514 DrawEllipse
= WindowDC
.DrawEllipseXY
3515 DrawIcon
= WindowDC
.DrawIconXY
3516 DrawBitmap
= WindowDC
.DrawBitmapXY
3517 DrawText
= WindowDC
.DrawTextXY
3518 DrawRotatedText
= WindowDC
.DrawRotatedTextXY
3519 Blit
= WindowDC
.BlitXY
3521 class MirrorDC_old(MirrorDC
):
3522 """DC class that has methods with 2.4 compatible parameters."""
3523 FloodFill
= MirrorDC
.FloodFillXY
3524 GetPixel
= MirrorDC
.GetPixelXY
3525 DrawLine
= MirrorDC
.DrawLineXY
3526 CrossHair
= MirrorDC
.CrossHairXY
3527 DrawArc
= MirrorDC
.DrawArcXY
3528 DrawCheckMark
= MirrorDC
.DrawCheckMarkXY
3529 DrawEllipticArc
= MirrorDC
.DrawEllipticArcXY
3530 DrawPoint
= MirrorDC
.DrawPointXY
3531 DrawRectangle
= MirrorDC
.DrawRectangleXY
3532 DrawRoundedRectangle
= MirrorDC
.DrawRoundedRectangleXY
3533 DrawCircle
= MirrorDC
.DrawCircleXY
3534 DrawEllipse
= MirrorDC
.DrawEllipseXY
3535 DrawIcon
= MirrorDC
.DrawIconXY
3536 DrawBitmap
= MirrorDC
.DrawBitmapXY
3537 DrawText
= MirrorDC
.DrawTextXY
3538 DrawRotatedText
= MirrorDC
.DrawRotatedTextXY
3539 Blit
= MirrorDC
.BlitXY
3541 class PostScriptDC_old(PostScriptDC
):
3542 """DC class that has methods with 2.4 compatible parameters."""
3543 FloodFill
= PostScriptDC
.FloodFillXY
3544 GetPixel
= PostScriptDC
.GetPixelXY
3545 DrawLine
= PostScriptDC
.DrawLineXY
3546 CrossHair
= PostScriptDC
.CrossHairXY
3547 DrawArc
= PostScriptDC
.DrawArcXY
3548 DrawCheckMark
= PostScriptDC
.DrawCheckMarkXY
3549 DrawEllipticArc
= PostScriptDC
.DrawEllipticArcXY
3550 DrawPoint
= PostScriptDC
.DrawPointXY
3551 DrawRectangle
= PostScriptDC
.DrawRectangleXY
3552 DrawRoundedRectangle
= PostScriptDC
.DrawRoundedRectangleXY
3553 DrawCircle
= PostScriptDC
.DrawCircleXY
3554 DrawEllipse
= PostScriptDC
.DrawEllipseXY
3555 DrawIcon
= PostScriptDC
.DrawIconXY
3556 DrawBitmap
= PostScriptDC
.DrawBitmapXY
3557 DrawText
= PostScriptDC
.DrawTextXY
3558 DrawRotatedText
= PostScriptDC
.DrawRotatedTextXY
3559 Blit
= PostScriptDC
.BlitXY
3561 class MetaFileDC_old(MetaFileDC
):
3562 """DC class that has methods with 2.4 compatible parameters."""
3563 FloodFill
= MetaFileDC
.FloodFillXY
3564 GetPixel
= MetaFileDC
.GetPixelXY
3565 DrawLine
= MetaFileDC
.DrawLineXY
3566 CrossHair
= MetaFileDC
.CrossHairXY
3567 DrawArc
= MetaFileDC
.DrawArcXY
3568 DrawCheckMark
= MetaFileDC
.DrawCheckMarkXY
3569 DrawEllipticArc
= MetaFileDC
.DrawEllipticArcXY
3570 DrawPoint
= MetaFileDC
.DrawPointXY
3571 DrawRectangle
= MetaFileDC
.DrawRectangleXY
3572 DrawRoundedRectangle
= MetaFileDC
.DrawRoundedRectangleXY
3573 DrawCircle
= MetaFileDC
.DrawCircleXY
3574 DrawEllipse
= MetaFileDC
.DrawEllipseXY
3575 DrawIcon
= MetaFileDC
.DrawIconXY
3576 DrawBitmap
= MetaFileDC
.DrawBitmapXY
3577 DrawText
= MetaFileDC
.DrawTextXY
3578 DrawRotatedText
= MetaFileDC
.DrawRotatedTextXY
3579 Blit
= MetaFileDC
.BlitXY
3581 class PrinterDC_old(PrinterDC
):
3582 """DC class that has methods with 2.4 compatible parameters."""
3583 FloodFill
= PrinterDC
.FloodFillXY
3584 GetPixel
= PrinterDC
.GetPixelXY
3585 DrawLine
= PrinterDC
.DrawLineXY
3586 CrossHair
= PrinterDC
.CrossHairXY
3587 DrawArc
= PrinterDC
.DrawArcXY
3588 DrawCheckMark
= PrinterDC
.DrawCheckMarkXY
3589 DrawEllipticArc
= PrinterDC
.DrawEllipticArcXY
3590 DrawPoint
= PrinterDC
.DrawPointXY
3591 DrawRectangle
= PrinterDC
.DrawRectangleXY
3592 DrawRoundedRectangle
= PrinterDC
.DrawRoundedRectangleXY
3593 DrawCircle
= PrinterDC
.DrawCircleXY
3594 DrawEllipse
= PrinterDC
.DrawEllipseXY
3595 DrawIcon
= PrinterDC
.DrawIconXY
3596 DrawBitmap
= PrinterDC
.DrawBitmapXY
3597 DrawText
= PrinterDC
.DrawTextXY
3598 DrawRotatedText
= PrinterDC
.DrawRotatedTextXY
3599 Blit
= PrinterDC
.BlitXY
3601 #---------------------------------------------------------------------------
3603 IMAGELIST_DRAW_NORMAL
= _gdi
.IMAGELIST_DRAW_NORMAL
3604 IMAGELIST_DRAW_TRANSPARENT
= _gdi
.IMAGELIST_DRAW_TRANSPARENT
3605 IMAGELIST_DRAW_SELECTED
= _gdi
.IMAGELIST_DRAW_SELECTED
3606 IMAGELIST_DRAW_FOCUSED
= _gdi
.IMAGELIST_DRAW_FOCUSED
3607 IMAGE_LIST_NORMAL
= _gdi
.IMAGE_LIST_NORMAL
3608 IMAGE_LIST_SMALL
= _gdi
.IMAGE_LIST_SMALL
3609 IMAGE_LIST_STATE
= _gdi
.IMAGE_LIST_STATE
3610 class ImageList(core
.Object
):
3612 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3613 def __init__(self
, *args
, **kwargs
):
3614 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3615 newobj
= _gdi
.new_ImageList(*args
, **kwargs
)
3616 self
.this
= newobj
.this
3619 def __del__(self
, destroy
=_gdi
.delete_ImageList
):
3622 if self
.thisown
: destroy(self
)
3625 def Add(*args
, **kwargs
):
3626 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3627 return _gdi
.ImageList_Add(*args
, **kwargs
)
3629 def AddWithColourMask(*args
, **kwargs
):
3630 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
3631 return _gdi
.ImageList_AddWithColourMask(*args
, **kwargs
)
3633 def AddIcon(*args
, **kwargs
):
3634 """AddIcon(Icon icon) -> int"""
3635 return _gdi
.ImageList_AddIcon(*args
, **kwargs
)
3637 def Replace(*args
, **kwargs
):
3638 """Replace(int index, Bitmap bitmap, Bitmap mask=NullBitmap) -> bool"""
3639 return _gdi
.ImageList_Replace(*args
, **kwargs
)
3641 def Draw(*args
, **kwargs
):
3643 Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3644 bool solidBackground=False) -> bool
3646 return _gdi
.ImageList_Draw(*args
, **kwargs
)
3648 def GetImageCount(*args
, **kwargs
):
3649 """GetImageCount() -> int"""
3650 return _gdi
.ImageList_GetImageCount(*args
, **kwargs
)
3652 def Remove(*args
, **kwargs
):
3653 """Remove(int index) -> bool"""
3654 return _gdi
.ImageList_Remove(*args
, **kwargs
)
3656 def RemoveAll(*args
, **kwargs
):
3657 """RemoveAll() -> bool"""
3658 return _gdi
.ImageList_RemoveAll(*args
, **kwargs
)
3660 def GetSize(*args
, **kwargs
):
3661 """GetSize() -> (width,height)"""
3662 return _gdi
.ImageList_GetSize(*args
, **kwargs
)
3665 class ImageListPtr(ImageList
):
3666 def __init__(self
, this
):
3668 if not hasattr(self
,"thisown"): self
.thisown
= 0
3669 self
.__class
__ = ImageList
3670 _gdi
.ImageList_swigregister(ImageListPtr
)
3672 #---------------------------------------------------------------------------
3674 class PenList(core
.Object
):
3675 def __init__(self
): raise RuntimeError, "No constructor defined"
3677 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3678 def AddPen(*args
, **kwargs
):
3679 """AddPen(Pen pen)"""
3680 return _gdi
.PenList_AddPen(*args
, **kwargs
)
3682 def FindOrCreatePen(*args
, **kwargs
):
3683 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
3684 return _gdi
.PenList_FindOrCreatePen(*args
, **kwargs
)
3686 def RemovePen(*args
, **kwargs
):
3687 """RemovePen(Pen pen)"""
3688 return _gdi
.PenList_RemovePen(*args
, **kwargs
)
3690 def GetCount(*args
, **kwargs
):
3691 """GetCount() -> int"""
3692 return _gdi
.PenList_GetCount(*args
, **kwargs
)
3695 class PenListPtr(PenList
):
3696 def __init__(self
, this
):
3698 if not hasattr(self
,"thisown"): self
.thisown
= 0
3699 self
.__class
__ = PenList
3700 _gdi
.PenList_swigregister(PenListPtr
)
3702 NORMAL_FONT
= cvar
.NORMAL_FONT
3703 SMALL_FONT
= cvar
.SMALL_FONT
3704 ITALIC_FONT
= cvar
.ITALIC_FONT
3705 SWISS_FONT
= cvar
.SWISS_FONT
3706 RED_PEN
= cvar
.RED_PEN
3707 CYAN_PEN
= cvar
.CYAN_PEN
3708 GREEN_PEN
= cvar
.GREEN_PEN
3709 BLACK_PEN
= cvar
.BLACK_PEN
3710 WHITE_PEN
= cvar
.WHITE_PEN
3711 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3712 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3713 GREY_PEN
= cvar
.GREY_PEN
3714 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3715 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3716 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3717 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3718 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3719 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3720 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3721 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3722 RED_BRUSH
= cvar
.RED_BRUSH
3723 GREY_BRUSH
= cvar
.GREY_BRUSH
3724 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3725 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3732 LIGHT_GREY
= cvar
.LIGHT_GREY
3733 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3734 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3735 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3736 NullBitmap
= cvar
.NullBitmap
3737 NullIcon
= cvar
.NullIcon
3738 NullCursor
= cvar
.NullCursor
3739 NullPen
= cvar
.NullPen
3740 NullBrush
= cvar
.NullBrush
3741 NullPalette
= cvar
.NullPalette
3742 NullFont
= cvar
.NullFont
3743 NullColour
= cvar
.NullColour
3745 class BrushList(core
.Object
):
3746 def __init__(self
): raise RuntimeError, "No constructor defined"
3748 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3749 def AddBrush(*args
, **kwargs
):
3750 """AddBrush(Brush brush)"""
3751 return _gdi
.BrushList_AddBrush(*args
, **kwargs
)
3753 def FindOrCreateBrush(*args
, **kwargs
):
3754 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
3755 return _gdi
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3757 def RemoveBrush(*args
, **kwargs
):
3758 """RemoveBrush(Brush brush)"""
3759 return _gdi
.BrushList_RemoveBrush(*args
, **kwargs
)
3761 def GetCount(*args
, **kwargs
):
3762 """GetCount() -> int"""
3763 return _gdi
.BrushList_GetCount(*args
, **kwargs
)
3766 class BrushListPtr(BrushList
):
3767 def __init__(self
, this
):
3769 if not hasattr(self
,"thisown"): self
.thisown
= 0
3770 self
.__class
__ = BrushList
3771 _gdi
.BrushList_swigregister(BrushListPtr
)
3773 class ColourDatabase(core
.Object
):
3775 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3776 def __init__(self
, *args
, **kwargs
):
3777 """__init__() -> ColourDatabase"""
3778 newobj
= _gdi
.new_ColourDatabase(*args
, **kwargs
)
3779 self
.this
= newobj
.this
3782 def __del__(self
, destroy
=_gdi
.delete_ColourDatabase
):
3785 if self
.thisown
: destroy(self
)
3788 def Find(*args
, **kwargs
):
3789 """Find(String name) -> Colour"""
3790 return _gdi
.ColourDatabase_Find(*args
, **kwargs
)
3792 def FindName(*args
, **kwargs
):
3793 """FindName(Colour colour) -> String"""
3794 return _gdi
.ColourDatabase_FindName(*args
, **kwargs
)
3797 def AddColour(*args
, **kwargs
):
3798 """AddColour(String name, Colour colour)"""
3799 return _gdi
.ColourDatabase_AddColour(*args
, **kwargs
)
3801 def Append(*args
, **kwargs
):
3802 """Append(String name, int red, int green, int blue)"""
3803 return _gdi
.ColourDatabase_Append(*args
, **kwargs
)
3806 class ColourDatabasePtr(ColourDatabase
):
3807 def __init__(self
, this
):
3809 if not hasattr(self
,"thisown"): self
.thisown
= 0
3810 self
.__class
__ = ColourDatabase
3811 _gdi
.ColourDatabase_swigregister(ColourDatabasePtr
)
3813 class FontList(core
.Object
):
3814 def __init__(self
): raise RuntimeError, "No constructor defined"
3816 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3817 def AddFont(*args
, **kwargs
):
3818 """AddFont(Font font)"""
3819 return _gdi
.FontList_AddFont(*args
, **kwargs
)
3821 def FindOrCreateFont(*args
, **kwargs
):
3823 FindOrCreateFont(int point_size, int family, int style, int weight,
3824 bool underline=False, String facename=EmptyString,
3825 int encoding=FONTENCODING_DEFAULT) -> Font
3827 return _gdi
.FontList_FindOrCreateFont(*args
, **kwargs
)
3829 def RemoveFont(*args
, **kwargs
):
3830 """RemoveFont(Font font)"""
3831 return _gdi
.FontList_RemoveFont(*args
, **kwargs
)
3833 def GetCount(*args
, **kwargs
):
3834 """GetCount() -> int"""
3835 return _gdi
.FontList_GetCount(*args
, **kwargs
)
3838 class FontListPtr(FontList
):
3839 def __init__(self
, this
):
3841 if not hasattr(self
,"thisown"): self
.thisown
= 0
3842 self
.__class
__ = FontList
3843 _gdi
.FontList_swigregister(FontListPtr
)
3845 #---------------------------------------------------------------------------
3847 NullColor
= NullColour
3848 #---------------------------------------------------------------------------
3850 class Effects(core
.Object
):
3852 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3853 def __init__(self
, *args
, **kwargs
):
3854 """__init__() -> Effects"""
3855 newobj
= _gdi
.new_Effects(*args
, **kwargs
)
3856 self
.this
= newobj
.this
3859 def GetHighlightColour(*args
, **kwargs
):
3860 """GetHighlightColour() -> Colour"""
3861 return _gdi
.Effects_GetHighlightColour(*args
, **kwargs
)
3863 def GetLightShadow(*args
, **kwargs
):
3864 """GetLightShadow() -> Colour"""
3865 return _gdi
.Effects_GetLightShadow(*args
, **kwargs
)
3867 def GetFaceColour(*args
, **kwargs
):
3868 """GetFaceColour() -> Colour"""
3869 return _gdi
.Effects_GetFaceColour(*args
, **kwargs
)
3871 def GetMediumShadow(*args
, **kwargs
):
3872 """GetMediumShadow() -> Colour"""
3873 return _gdi
.Effects_GetMediumShadow(*args
, **kwargs
)
3875 def GetDarkShadow(*args
, **kwargs
):
3876 """GetDarkShadow() -> Colour"""
3877 return _gdi
.Effects_GetDarkShadow(*args
, **kwargs
)
3879 def SetHighlightColour(*args
, **kwargs
):
3880 """SetHighlightColour(Colour c)"""
3881 return _gdi
.Effects_SetHighlightColour(*args
, **kwargs
)
3883 def SetLightShadow(*args
, **kwargs
):
3884 """SetLightShadow(Colour c)"""
3885 return _gdi
.Effects_SetLightShadow(*args
, **kwargs
)
3887 def SetFaceColour(*args
, **kwargs
):
3888 """SetFaceColour(Colour c)"""
3889 return _gdi
.Effects_SetFaceColour(*args
, **kwargs
)
3891 def SetMediumShadow(*args
, **kwargs
):
3892 """SetMediumShadow(Colour c)"""
3893 return _gdi
.Effects_SetMediumShadow(*args
, **kwargs
)
3895 def SetDarkShadow(*args
, **kwargs
):
3896 """SetDarkShadow(Colour c)"""
3897 return _gdi
.Effects_SetDarkShadow(*args
, **kwargs
)
3899 def Set(*args
, **kwargs
):
3901 Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3902 Colour mediumShadow, Colour darkShadow)
3904 return _gdi
.Effects_Set(*args
, **kwargs
)
3906 def DrawSunkenEdge(*args
, **kwargs
):
3907 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3908 return _gdi
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3910 def TileBitmap(*args
, **kwargs
):
3911 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3912 return _gdi
.Effects_TileBitmap(*args
, **kwargs
)
3915 class EffectsPtr(Effects
):
3916 def __init__(self
, this
):
3918 if not hasattr(self
,"thisown"): self
.thisown
= 0
3919 self
.__class
__ = Effects
3920 _gdi
.Effects_swigregister(EffectsPtr
)
3921 TheFontList
= cvar
.TheFontList
3922 ThePenList
= cvar
.ThePenList
3923 TheBrushList
= cvar
.TheBrushList
3924 TheColourDatabase
= cvar
.TheColourDatabase