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 ConvertToImage(*args
, **kwargs
):
507 ConvertToImage() -> Image
509 Creates a platform-independent image from a platform-dependent bitmap. This
510 preserves mask information so that bitmaps and images can be converted back
511 and forth without loss in that respect.
513 return _gdi
.Bitmap_ConvertToImage(*args
, **kwargs
)
515 def GetMask(*args
, **kwargs
):
519 Gets the associated mask (if any) which may have been loaded from a file
520 or explpicitly set for the bitmap.
522 return _gdi
.Bitmap_GetMask(*args
, **kwargs
)
524 def SetMask(*args
, **kwargs
):
528 Sets the mask for this bitmap.
530 return _gdi
.Bitmap_SetMask(*args
, **kwargs
)
532 def SetMaskColour(*args
, **kwargs
):
534 SetMaskColour(Colour colour)
536 Create a Mask based on a specified colour in the Bitmap.
538 return _gdi
.Bitmap_SetMaskColour(*args
, **kwargs
)
540 def GetSubBitmap(*args
, **kwargs
):
542 GetSubBitmap(Rect rect) -> Bitmap
544 Returns a sub bitmap of the current one as long as the rect belongs entirely
545 to the bitmap. This function preserves bit depth and mask information.
547 return _gdi
.Bitmap_GetSubBitmap(*args
, **kwargs
)
549 def SaveFile(*args
, **kwargs
):
551 SaveFile(String name, int type, Palette palette=(wxPalette *) NULL) -> bool
553 Saves a bitmap in the named file.
555 return _gdi
.Bitmap_SaveFile(*args
, **kwargs
)
557 def LoadFile(*args
, **kwargs
):
559 LoadFile(String name, int type) -> bool
561 Loads a bitmap from a file
563 return _gdi
.Bitmap_LoadFile(*args
, **kwargs
)
565 def CopyFromIcon(*args
, **kwargs
):
566 """CopyFromIcon(Icon icon) -> bool"""
567 return _gdi
.Bitmap_CopyFromIcon(*args
, **kwargs
)
569 def SetHeight(*args
, **kwargs
):
571 SetHeight(int height)
573 Set the height property (does not affect the bitmap data).
575 return _gdi
.Bitmap_SetHeight(*args
, **kwargs
)
577 def SetWidth(*args
, **kwargs
):
581 Set the width property (does not affect the bitmap data).
583 return _gdi
.Bitmap_SetWidth(*args
, **kwargs
)
585 def SetDepth(*args
, **kwargs
):
589 Set the depth property (does not affect the bitmap data).
591 return _gdi
.Bitmap_SetDepth(*args
, **kwargs
)
593 def CopyFromCursor(*args
, **kwargs
):
594 """CopyFromCursor(Cursor cursor) -> bool"""
595 return _gdi
.Bitmap_CopyFromCursor(*args
, **kwargs
)
597 def GetQuality(*args
, **kwargs
):
598 """GetQuality() -> int"""
599 return _gdi
.Bitmap_GetQuality(*args
, **kwargs
)
601 def SetQuality(*args
, **kwargs
):
602 """SetQuality(int q)"""
603 return _gdi
.Bitmap_SetQuality(*args
, **kwargs
)
605 def __nonzero__(self
): return self
.Ok()
606 def __eq__(*args
, **kwargs
):
607 """__eq__(Bitmap other) -> bool"""
608 return _gdi
.Bitmap___eq__(*args
, **kwargs
)
610 def __ne__(*args
, **kwargs
):
611 """__ne__(Bitmap other) -> bool"""
612 return _gdi
.Bitmap___ne__(*args
, **kwargs
)
615 class BitmapPtr(Bitmap
):
616 def __init__(self
, this
):
618 if not hasattr(self
,"thisown"): self
.thisown
= 0
619 self
.__class
__ = Bitmap
620 _gdi
.Bitmap_swigregister(BitmapPtr
)
622 def EmptyBitmap(*args
, **kwargs
):
624 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
626 Creates a new bitmap of the given size. A depth of -1 indicates the depth of
627 the current screen or visual. Some platforms only support 1 for monochrome and
628 -1 for the current colour setting.
630 val
= _gdi
.new_EmptyBitmap(*args
, **kwargs
)
634 def BitmapFromIcon(*args
, **kwargs
):
636 BitmapFromIcon(Icon icon) -> Bitmap
638 Create a new bitmap from an Icon object.
640 val
= _gdi
.new_BitmapFromIcon(*args
, **kwargs
)
644 def BitmapFromImage(*args
, **kwargs
):
646 BitmapFromImage(Image image, int depth=-1) -> Bitmap
648 Creates bitmap object from the image. This has to be done to actually display
649 an image as you cannot draw an image directly on a window. The resulting
650 bitmap will use the provided colour depth (or that of the current system if
651 depth is -1) which entails that a colour reduction has to take place.
653 val
= _gdi
.new_BitmapFromImage(*args
, **kwargs
)
657 def BitmapFromXPMData(*args
, **kwargs
):
659 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
661 Construct a Bitmap from a list of strings formatted as XPM data.
663 val
= _gdi
.new_BitmapFromXPMData(*args
, **kwargs
)
667 def BitmapFromBits(*args
, **kwargs
):
669 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
671 Creates a bitmap from an array of bits. You should only use this function for
672 monochrome bitmaps (depth 1) in portable programs: in this case the bits
673 parameter should contain an XBM image. For other bit depths, the behaviour is
676 val
= _gdi
.new_BitmapFromBits(*args
, **kwargs
)
680 class Mask(core
.Object
):
682 This class encapsulates a monochrome mask bitmap, where the masked area is
683 black and the unmasked area is white. When associated with a bitmap and drawn
684 in a device context, the unmasked area of the bitmap will be drawn, and the
685 masked area will not be drawn.
688 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
689 def __init__(self
, *args
, **kwargs
):
691 __init__(Bitmap bitmap, Colour colour=NullColour) -> Mask
693 Constructs a mask from a bitmap and a colour in that bitmap that indicates
694 the transparent portions of the mask, by default BLACK is used.
696 newobj
= _gdi
.new_Mask(*args
, **kwargs
)
697 self
.this
= newobj
.this
702 def __init__(self
, this
):
704 if not hasattr(self
,"thisown"): self
.thisown
= 0
705 self
.__class
__ = Mask
706 _gdi
.Mask_swigregister(MaskPtr
)
709 class Icon(GDIObject
):
711 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
712 def __init__(self
, *args
, **kwargs
):
713 """__init__(String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
714 newobj
= _gdi
.new_Icon(*args
, **kwargs
)
715 self
.this
= newobj
.this
718 def __del__(self
, destroy
=_gdi
.delete_Icon
):
721 if self
.thisown
: destroy(self
)
724 def LoadFile(*args
, **kwargs
):
725 """LoadFile(String name, int type) -> bool"""
726 return _gdi
.Icon_LoadFile(*args
, **kwargs
)
728 def GetHandle(*args
, **kwargs
):
729 """GetHandle() -> long"""
730 return _gdi
.Icon_GetHandle(*args
, **kwargs
)
732 def SetHandle(*args
, **kwargs
):
733 """SetHandle(long handle)"""
734 return _gdi
.Icon_SetHandle(*args
, **kwargs
)
736 def Ok(*args
, **kwargs
):
738 return _gdi
.Icon_Ok(*args
, **kwargs
)
740 def GetWidth(*args
, **kwargs
):
741 """GetWidth() -> int"""
742 return _gdi
.Icon_GetWidth(*args
, **kwargs
)
744 def GetHeight(*args
, **kwargs
):
745 """GetHeight() -> int"""
746 return _gdi
.Icon_GetHeight(*args
, **kwargs
)
748 def GetDepth(*args
, **kwargs
):
749 """GetDepth() -> int"""
750 return _gdi
.Icon_GetDepth(*args
, **kwargs
)
752 def SetWidth(*args
, **kwargs
):
753 """SetWidth(int w)"""
754 return _gdi
.Icon_SetWidth(*args
, **kwargs
)
756 def SetHeight(*args
, **kwargs
):
757 """SetHeight(int h)"""
758 return _gdi
.Icon_SetHeight(*args
, **kwargs
)
760 def SetDepth(*args
, **kwargs
):
761 """SetDepth(int d)"""
762 return _gdi
.Icon_SetDepth(*args
, **kwargs
)
764 def SetSize(*args
, **kwargs
):
765 """SetSize(Size size)"""
766 return _gdi
.Icon_SetSize(*args
, **kwargs
)
768 def CopyFromBitmap(*args
, **kwargs
):
769 """CopyFromBitmap(Bitmap bmp)"""
770 return _gdi
.Icon_CopyFromBitmap(*args
, **kwargs
)
772 def __nonzero__(self
): return self
.Ok()
775 def __init__(self
, this
):
777 if not hasattr(self
,"thisown"): self
.thisown
= 0
778 self
.__class
__ = Icon
779 _gdi
.Icon_swigregister(IconPtr
)
781 def EmptyIcon(*args
, **kwargs
):
782 """EmptyIcon() -> Icon"""
783 val
= _gdi
.new_EmptyIcon(*args
, **kwargs
)
787 def IconFromLocation(*args
, **kwargs
):
788 """IconFromLocation(IconLocation loc) -> Icon"""
789 val
= _gdi
.new_IconFromLocation(*args
, **kwargs
)
793 def IconFromBitmap(*args
, **kwargs
):
794 """IconFromBitmap(Bitmap bmp) -> Icon"""
795 val
= _gdi
.new_IconFromBitmap(*args
, **kwargs
)
799 def IconFromXPMData(*args
, **kwargs
):
800 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
801 val
= _gdi
.new_IconFromXPMData(*args
, **kwargs
)
805 class IconLocation(object):
807 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
808 def __init__(self
, *args
, **kwargs
):
809 """__init__(String filename=&wxPyEmptyString, int num=0) -> IconLocation"""
810 newobj
= _gdi
.new_IconLocation(*args
, **kwargs
)
811 self
.this
= newobj
.this
814 def __del__(self
, destroy
=_gdi
.delete_IconLocation
):
817 if self
.thisown
: destroy(self
)
820 def IsOk(*args
, **kwargs
):
822 return _gdi
.IconLocation_IsOk(*args
, **kwargs
)
824 def __nonzero__(self
): return self
.Ok()
825 def SetFileName(*args
, **kwargs
):
826 """SetFileName(String filename)"""
827 return _gdi
.IconLocation_SetFileName(*args
, **kwargs
)
829 def GetFileName(*args
, **kwargs
):
830 """GetFileName() -> String"""
831 return _gdi
.IconLocation_GetFileName(*args
, **kwargs
)
833 def SetIndex(*args
, **kwargs
):
834 """SetIndex(int num)"""
835 return _gdi
.IconLocation_SetIndex(*args
, **kwargs
)
837 def GetIndex(*args
, **kwargs
):
838 """GetIndex() -> int"""
839 return _gdi
.IconLocation_GetIndex(*args
, **kwargs
)
842 class IconLocationPtr(IconLocation
):
843 def __init__(self
, this
):
845 if not hasattr(self
,"thisown"): self
.thisown
= 0
846 self
.__class
__ = IconLocation
847 _gdi
.IconLocation_swigregister(IconLocationPtr
)
849 class IconBundle(object):
851 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
852 def __init__(self
, *args
, **kwargs
):
853 """__init__() -> IconBundle"""
854 newobj
= _gdi
.new_IconBundle(*args
, **kwargs
)
855 self
.this
= newobj
.this
858 def __del__(self
, destroy
=_gdi
.delete_IconBundle
):
861 if self
.thisown
: destroy(self
)
864 def AddIcon(*args
, **kwargs
):
865 """AddIcon(Icon icon)"""
866 return _gdi
.IconBundle_AddIcon(*args
, **kwargs
)
868 def AddIconFromFile(*args
, **kwargs
):
869 """AddIconFromFile(String file, long type)"""
870 return _gdi
.IconBundle_AddIconFromFile(*args
, **kwargs
)
872 def GetIcon(*args
, **kwargs
):
873 """GetIcon(Size size) -> Icon"""
874 return _gdi
.IconBundle_GetIcon(*args
, **kwargs
)
877 class IconBundlePtr(IconBundle
):
878 def __init__(self
, this
):
880 if not hasattr(self
,"thisown"): self
.thisown
= 0
881 self
.__class
__ = IconBundle
882 _gdi
.IconBundle_swigregister(IconBundlePtr
)
884 def IconBundleFromFile(*args
, **kwargs
):
885 """IconBundleFromFile(String file, long type) -> IconBundle"""
886 val
= _gdi
.new_IconBundleFromFile(*args
, **kwargs
)
890 def IconBundleFromIcon(*args
, **kwargs
):
891 """IconBundleFromIcon(Icon icon) -> IconBundle"""
892 val
= _gdi
.new_IconBundleFromIcon(*args
, **kwargs
)
896 class Cursor(GDIObject
):
898 A cursor is a small bitmap usually used for denoting where the
899 mouse pointer is, with a picture that might indicate the
900 interpretation of a mouse click.
902 A single cursor object may be used in many windows (any subwindow
903 type). The wxWindows convention is to set the cursor for a
904 window, as in X, rather than to set it globally as in MS Windows,
905 although a global wx.SetCursor function is also available for use
909 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
910 def __init__(self
, *args
, **kwargs
):
912 __init__(String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor
914 Construct a Cursor from a file. Specify the type of file using
915 wx.BITAMP_TYPE* constants, and specify the hotspot if not using a
918 This cursor is not available on wxGTK, use wx.StockCursor,
919 wx.CursorFromImage, or wx.CursorFromBits instead.
921 newobj
= _gdi
.new_Cursor(*args
, **kwargs
)
922 self
.this
= newobj
.this
925 def __del__(self
, destroy
=_gdi
.delete_Cursor
):
928 if self
.thisown
: destroy(self
)
931 def GetHandle(*args
, **kwargs
):
935 Get the MS Windows handle for the cursor
937 return _gdi
.Cursor_GetHandle(*args
, **kwargs
)
939 def SetHandle(*args
, **kwargs
):
941 SetHandle(long handle)
943 Set the MS Windows handle to use for the cursor
945 return _gdi
.Cursor_SetHandle(*args
, **kwargs
)
947 def Ok(*args
, **kwargs
):
949 return _gdi
.Cursor_Ok(*args
, **kwargs
)
951 def __nonzero__(self
): return self
.Ok()
952 def GetWidth(*args
, **kwargs
):
953 """GetWidth() -> int"""
954 return _gdi
.Cursor_GetWidth(*args
, **kwargs
)
956 def GetHeight(*args
, **kwargs
):
957 """GetHeight() -> int"""
958 return _gdi
.Cursor_GetHeight(*args
, **kwargs
)
960 def GetDepth(*args
, **kwargs
):
961 """GetDepth() -> int"""
962 return _gdi
.Cursor_GetDepth(*args
, **kwargs
)
964 def SetWidth(*args
, **kwargs
):
965 """SetWidth(int w)"""
966 return _gdi
.Cursor_SetWidth(*args
, **kwargs
)
968 def SetHeight(*args
, **kwargs
):
969 """SetHeight(int h)"""
970 return _gdi
.Cursor_SetHeight(*args
, **kwargs
)
972 def SetDepth(*args
, **kwargs
):
973 """SetDepth(int d)"""
974 return _gdi
.Cursor_SetDepth(*args
, **kwargs
)
976 def SetSize(*args
, **kwargs
):
977 """SetSize(Size size)"""
978 return _gdi
.Cursor_SetSize(*args
, **kwargs
)
981 class CursorPtr(Cursor
):
982 def __init__(self
, this
):
984 if not hasattr(self
,"thisown"): self
.thisown
= 0
985 self
.__class
__ = Cursor
986 _gdi
.Cursor_swigregister(CursorPtr
)
988 def StockCursor(*args
, **kwargs
):
990 StockCursor(int id) -> Cursor
992 Create a cursor using one of the stock cursors. Note that not
993 all cursors are available on all platforms.
995 val
= _gdi
.new_StockCursor(*args
, **kwargs
)
999 def CursorFromImage(*args
, **kwargs
):
1001 CursorFromImage(Image image) -> Cursor
1003 Constructs a cursor from a wxImage. The cursor is monochrome,
1004 colors with the RGB elements all greater than 127 will be
1005 foreground, colors less than this background. The mask (if any)
1006 will be used as transparent.
1008 In MSW the foreground will be white and the background black. The
1009 cursor is resized to 32x32 In GTK, the two most frequent colors
1010 will be used for foreground and background. The cursor will be
1011 displayed at the size of the image. On MacOS the cursor is
1012 resized to 16x16 and currently only shown as black/white (mask
1015 val
= _gdi
.new_CursorFromImage(*args
, **kwargs
)
1019 #---------------------------------------------------------------------------
1021 OutRegion
= _gdi
.OutRegion
1022 PartRegion
= _gdi
.PartRegion
1023 InRegion
= _gdi
.InRegion
1024 class Region(GDIObject
):
1026 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1027 def __init__(self
, *args
, **kwargs
):
1028 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
1029 newobj
= _gdi
.new_Region(*args
, **kwargs
)
1030 self
.this
= newobj
.this
1033 def __del__(self
, destroy
=_gdi
.delete_Region
):
1036 if self
.thisown
: destroy(self
)
1039 def Clear(*args
, **kwargs
):
1041 return _gdi
.Region_Clear(*args
, **kwargs
)
1043 def Offset(*args
, **kwargs
):
1044 """Offset(int x, int y) -> bool"""
1045 return _gdi
.Region_Offset(*args
, **kwargs
)
1047 def Contains(*args
, **kwargs
):
1048 """Contains(int x, int y) -> int"""
1049 return _gdi
.Region_Contains(*args
, **kwargs
)
1051 def ContainsPoint(*args
, **kwargs
):
1052 """ContainsPoint(Point pt) -> int"""
1053 return _gdi
.Region_ContainsPoint(*args
, **kwargs
)
1055 def ContainsRect(*args
, **kwargs
):
1056 """ContainsRect(Rect rect) -> int"""
1057 return _gdi
.Region_ContainsRect(*args
, **kwargs
)
1059 def ContainsRectDim(*args
, **kwargs
):
1060 """ContainsRectDim(int x, int y, int w, int h) -> int"""
1061 return _gdi
.Region_ContainsRectDim(*args
, **kwargs
)
1063 def GetBox(*args
, **kwargs
):
1064 """GetBox() -> Rect"""
1065 return _gdi
.Region_GetBox(*args
, **kwargs
)
1067 def Intersect(*args
, **kwargs
):
1068 """Intersect(int x, int y, int width, int height) -> bool"""
1069 return _gdi
.Region_Intersect(*args
, **kwargs
)
1071 def IntersectRect(*args
, **kwargs
):
1072 """IntersectRect(Rect rect) -> bool"""
1073 return _gdi
.Region_IntersectRect(*args
, **kwargs
)
1075 def IntersectRegion(*args
, **kwargs
):
1076 """IntersectRegion(Region region) -> bool"""
1077 return _gdi
.Region_IntersectRegion(*args
, **kwargs
)
1079 def IsEmpty(*args
, **kwargs
):
1080 """IsEmpty() -> bool"""
1081 return _gdi
.Region_IsEmpty(*args
, **kwargs
)
1083 def Union(*args
, **kwargs
):
1084 """Union(int x, int y, int width, int height) -> bool"""
1085 return _gdi
.Region_Union(*args
, **kwargs
)
1087 def UnionRect(*args
, **kwargs
):
1088 """UnionRect(Rect rect) -> bool"""
1089 return _gdi
.Region_UnionRect(*args
, **kwargs
)
1091 def UnionRegion(*args
, **kwargs
):
1092 """UnionRegion(Region region) -> bool"""
1093 return _gdi
.Region_UnionRegion(*args
, **kwargs
)
1095 def Subtract(*args
, **kwargs
):
1096 """Subtract(int x, int y, int width, int height) -> bool"""
1097 return _gdi
.Region_Subtract(*args
, **kwargs
)
1099 def SubtractRect(*args
, **kwargs
):
1100 """SubtractRect(Rect rect) -> bool"""
1101 return _gdi
.Region_SubtractRect(*args
, **kwargs
)
1103 def SubtractRegion(*args
, **kwargs
):
1104 """SubtractRegion(Region region) -> bool"""
1105 return _gdi
.Region_SubtractRegion(*args
, **kwargs
)
1107 def Xor(*args
, **kwargs
):
1108 """Xor(int x, int y, int width, int height) -> bool"""
1109 return _gdi
.Region_Xor(*args
, **kwargs
)
1111 def XorRect(*args
, **kwargs
):
1112 """XorRect(Rect rect) -> bool"""
1113 return _gdi
.Region_XorRect(*args
, **kwargs
)
1115 def XorRegion(*args
, **kwargs
):
1116 """XorRegion(Region region) -> bool"""
1117 return _gdi
.Region_XorRegion(*args
, **kwargs
)
1119 def ConvertToBitmap(*args
, **kwargs
):
1120 """ConvertToBitmap() -> Bitmap"""
1121 return _gdi
.Region_ConvertToBitmap(*args
, **kwargs
)
1123 def UnionBitmap(*args
, **kwargs
):
1124 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
1125 return _gdi
.Region_UnionBitmap(*args
, **kwargs
)
1128 class RegionPtr(Region
):
1129 def __init__(self
, this
):
1131 if not hasattr(self
,"thisown"): self
.thisown
= 0
1132 self
.__class
__ = Region
1133 _gdi
.Region_swigregister(RegionPtr
)
1135 def RegionFromBitmap(*args
, **kwargs
):
1136 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
1137 val
= _gdi
.new_RegionFromBitmap(*args
, **kwargs
)
1141 def RegionFromPoints(*args
, **kwargs
):
1142 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
1143 val
= _gdi
.new_RegionFromPoints(*args
, **kwargs
)
1147 class RegionIterator(core
.Object
):
1149 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1150 def __init__(self
, *args
, **kwargs
):
1151 """__init__(Region region) -> RegionIterator"""
1152 newobj
= _gdi
.new_RegionIterator(*args
, **kwargs
)
1153 self
.this
= newobj
.this
1156 def __del__(self
, destroy
=_gdi
.delete_RegionIterator
):
1159 if self
.thisown
: destroy(self
)
1162 def GetX(*args
, **kwargs
):
1164 return _gdi
.RegionIterator_GetX(*args
, **kwargs
)
1166 def GetY(*args
, **kwargs
):
1168 return _gdi
.RegionIterator_GetY(*args
, **kwargs
)
1170 def GetW(*args
, **kwargs
):
1172 return _gdi
.RegionIterator_GetW(*args
, **kwargs
)
1174 def GetWidth(*args
, **kwargs
):
1175 """GetWidth() -> int"""
1176 return _gdi
.RegionIterator_GetWidth(*args
, **kwargs
)
1178 def GetH(*args
, **kwargs
):
1180 return _gdi
.RegionIterator_GetH(*args
, **kwargs
)
1182 def GetHeight(*args
, **kwargs
):
1183 """GetHeight() -> int"""
1184 return _gdi
.RegionIterator_GetHeight(*args
, **kwargs
)
1186 def GetRect(*args
, **kwargs
):
1187 """GetRect() -> Rect"""
1188 return _gdi
.RegionIterator_GetRect(*args
, **kwargs
)
1190 def HaveRects(*args
, **kwargs
):
1191 """HaveRects() -> bool"""
1192 return _gdi
.RegionIterator_HaveRects(*args
, **kwargs
)
1194 def Reset(*args
, **kwargs
):
1196 return _gdi
.RegionIterator_Reset(*args
, **kwargs
)
1198 def Next(*args
, **kwargs
):
1200 return _gdi
.RegionIterator_Next(*args
, **kwargs
)
1202 def __nonzero__(*args
, **kwargs
):
1203 """__nonzero__() -> bool"""
1204 return _gdi
.RegionIterator___nonzero__(*args
, **kwargs
)
1207 class RegionIteratorPtr(RegionIterator
):
1208 def __init__(self
, this
):
1210 if not hasattr(self
,"thisown"): self
.thisown
= 0
1211 self
.__class
__ = RegionIterator
1212 _gdi
.RegionIterator_swigregister(RegionIteratorPtr
)
1214 #---------------------------------------------------------------------------
1216 FONTFAMILY_DEFAULT
= _gdi
.FONTFAMILY_DEFAULT
1217 FONTFAMILY_DECORATIVE
= _gdi
.FONTFAMILY_DECORATIVE
1218 FONTFAMILY_ROMAN
= _gdi
.FONTFAMILY_ROMAN
1219 FONTFAMILY_SCRIPT
= _gdi
.FONTFAMILY_SCRIPT
1220 FONTFAMILY_SWISS
= _gdi
.FONTFAMILY_SWISS
1221 FONTFAMILY_MODERN
= _gdi
.FONTFAMILY_MODERN
1222 FONTFAMILY_TELETYPE
= _gdi
.FONTFAMILY_TELETYPE
1223 FONTFAMILY_MAX
= _gdi
.FONTFAMILY_MAX
1224 FONTFAMILY_UNKNOWN
= _gdi
.FONTFAMILY_UNKNOWN
1225 FONTSTYLE_NORMAL
= _gdi
.FONTSTYLE_NORMAL
1226 FONTSTYLE_ITALIC
= _gdi
.FONTSTYLE_ITALIC
1227 FONTSTYLE_SLANT
= _gdi
.FONTSTYLE_SLANT
1228 FONTSTYLE_MAX
= _gdi
.FONTSTYLE_MAX
1229 FONTWEIGHT_NORMAL
= _gdi
.FONTWEIGHT_NORMAL
1230 FONTWEIGHT_LIGHT
= _gdi
.FONTWEIGHT_LIGHT
1231 FONTWEIGHT_BOLD
= _gdi
.FONTWEIGHT_BOLD
1232 FONTWEIGHT_MAX
= _gdi
.FONTWEIGHT_MAX
1233 FONTFLAG_DEFAULT
= _gdi
.FONTFLAG_DEFAULT
1234 FONTFLAG_ITALIC
= _gdi
.FONTFLAG_ITALIC
1235 FONTFLAG_SLANT
= _gdi
.FONTFLAG_SLANT
1236 FONTFLAG_LIGHT
= _gdi
.FONTFLAG_LIGHT
1237 FONTFLAG_BOLD
= _gdi
.FONTFLAG_BOLD
1238 FONTFLAG_ANTIALIASED
= _gdi
.FONTFLAG_ANTIALIASED
1239 FONTFLAG_NOT_ANTIALIASED
= _gdi
.FONTFLAG_NOT_ANTIALIASED
1240 FONTFLAG_UNDERLINED
= _gdi
.FONTFLAG_UNDERLINED
1241 FONTFLAG_STRIKETHROUGH
= _gdi
.FONTFLAG_STRIKETHROUGH
1242 FONTFLAG_MASK
= _gdi
.FONTFLAG_MASK
1243 FONTENCODING_SYSTEM
= _gdi
.FONTENCODING_SYSTEM
1244 FONTENCODING_DEFAULT
= _gdi
.FONTENCODING_DEFAULT
1245 FONTENCODING_ISO8859_1
= _gdi
.FONTENCODING_ISO8859_1
1246 FONTENCODING_ISO8859_2
= _gdi
.FONTENCODING_ISO8859_2
1247 FONTENCODING_ISO8859_3
= _gdi
.FONTENCODING_ISO8859_3
1248 FONTENCODING_ISO8859_4
= _gdi
.FONTENCODING_ISO8859_4
1249 FONTENCODING_ISO8859_5
= _gdi
.FONTENCODING_ISO8859_5
1250 FONTENCODING_ISO8859_6
= _gdi
.FONTENCODING_ISO8859_6
1251 FONTENCODING_ISO8859_7
= _gdi
.FONTENCODING_ISO8859_7
1252 FONTENCODING_ISO8859_8
= _gdi
.FONTENCODING_ISO8859_8
1253 FONTENCODING_ISO8859_9
= _gdi
.FONTENCODING_ISO8859_9
1254 FONTENCODING_ISO8859_10
= _gdi
.FONTENCODING_ISO8859_10
1255 FONTENCODING_ISO8859_11
= _gdi
.FONTENCODING_ISO8859_11
1256 FONTENCODING_ISO8859_12
= _gdi
.FONTENCODING_ISO8859_12
1257 FONTENCODING_ISO8859_13
= _gdi
.FONTENCODING_ISO8859_13
1258 FONTENCODING_ISO8859_14
= _gdi
.FONTENCODING_ISO8859_14
1259 FONTENCODING_ISO8859_15
= _gdi
.FONTENCODING_ISO8859_15
1260 FONTENCODING_ISO8859_MAX
= _gdi
.FONTENCODING_ISO8859_MAX
1261 FONTENCODING_KOI8
= _gdi
.FONTENCODING_KOI8
1262 FONTENCODING_ALTERNATIVE
= _gdi
.FONTENCODING_ALTERNATIVE
1263 FONTENCODING_BULGARIAN
= _gdi
.FONTENCODING_BULGARIAN
1264 FONTENCODING_CP437
= _gdi
.FONTENCODING_CP437
1265 FONTENCODING_CP850
= _gdi
.FONTENCODING_CP850
1266 FONTENCODING_CP852
= _gdi
.FONTENCODING_CP852
1267 FONTENCODING_CP855
= _gdi
.FONTENCODING_CP855
1268 FONTENCODING_CP866
= _gdi
.FONTENCODING_CP866
1269 FONTENCODING_CP874
= _gdi
.FONTENCODING_CP874
1270 FONTENCODING_CP932
= _gdi
.FONTENCODING_CP932
1271 FONTENCODING_CP936
= _gdi
.FONTENCODING_CP936
1272 FONTENCODING_CP949
= _gdi
.FONTENCODING_CP949
1273 FONTENCODING_CP950
= _gdi
.FONTENCODING_CP950
1274 FONTENCODING_CP1250
= _gdi
.FONTENCODING_CP1250
1275 FONTENCODING_CP1251
= _gdi
.FONTENCODING_CP1251
1276 FONTENCODING_CP1252
= _gdi
.FONTENCODING_CP1252
1277 FONTENCODING_CP1253
= _gdi
.FONTENCODING_CP1253
1278 FONTENCODING_CP1254
= _gdi
.FONTENCODING_CP1254
1279 FONTENCODING_CP1255
= _gdi
.FONTENCODING_CP1255
1280 FONTENCODING_CP1256
= _gdi
.FONTENCODING_CP1256
1281 FONTENCODING_CP1257
= _gdi
.FONTENCODING_CP1257
1282 FONTENCODING_CP12_MAX
= _gdi
.FONTENCODING_CP12_MAX
1283 FONTENCODING_UTF7
= _gdi
.FONTENCODING_UTF7
1284 FONTENCODING_UTF8
= _gdi
.FONTENCODING_UTF8
1285 FONTENCODING_EUC_JP
= _gdi
.FONTENCODING_EUC_JP
1286 FONTENCODING_UTF16BE
= _gdi
.FONTENCODING_UTF16BE
1287 FONTENCODING_UTF16LE
= _gdi
.FONTENCODING_UTF16LE
1288 FONTENCODING_UTF32BE
= _gdi
.FONTENCODING_UTF32BE
1289 FONTENCODING_UTF32LE
= _gdi
.FONTENCODING_UTF32LE
1290 FONTENCODING_MACROMAN
= _gdi
.FONTENCODING_MACROMAN
1291 FONTENCODING_MACJAPANESE
= _gdi
.FONTENCODING_MACJAPANESE
1292 FONTENCODING_MACCHINESETRAD
= _gdi
.FONTENCODING_MACCHINESETRAD
1293 FONTENCODING_MACKOREAN
= _gdi
.FONTENCODING_MACKOREAN
1294 FONTENCODING_MACARABIC
= _gdi
.FONTENCODING_MACARABIC
1295 FONTENCODING_MACHEBREW
= _gdi
.FONTENCODING_MACHEBREW
1296 FONTENCODING_MACGREEK
= _gdi
.FONTENCODING_MACGREEK
1297 FONTENCODING_MACCYRILLIC
= _gdi
.FONTENCODING_MACCYRILLIC
1298 FONTENCODING_MACDEVANAGARI
= _gdi
.FONTENCODING_MACDEVANAGARI
1299 FONTENCODING_MACGURMUKHI
= _gdi
.FONTENCODING_MACGURMUKHI
1300 FONTENCODING_MACGUJARATI
= _gdi
.FONTENCODING_MACGUJARATI
1301 FONTENCODING_MACORIYA
= _gdi
.FONTENCODING_MACORIYA
1302 FONTENCODING_MACBENGALI
= _gdi
.FONTENCODING_MACBENGALI
1303 FONTENCODING_MACTAMIL
= _gdi
.FONTENCODING_MACTAMIL
1304 FONTENCODING_MACTELUGU
= _gdi
.FONTENCODING_MACTELUGU
1305 FONTENCODING_MACKANNADA
= _gdi
.FONTENCODING_MACKANNADA
1306 FONTENCODING_MACMALAJALAM
= _gdi
.FONTENCODING_MACMALAJALAM
1307 FONTENCODING_MACSINHALESE
= _gdi
.FONTENCODING_MACSINHALESE
1308 FONTENCODING_MACBURMESE
= _gdi
.FONTENCODING_MACBURMESE
1309 FONTENCODING_MACKHMER
= _gdi
.FONTENCODING_MACKHMER
1310 FONTENCODING_MACTHAI
= _gdi
.FONTENCODING_MACTHAI
1311 FONTENCODING_MACLAOTIAN
= _gdi
.FONTENCODING_MACLAOTIAN
1312 FONTENCODING_MACGEORGIAN
= _gdi
.FONTENCODING_MACGEORGIAN
1313 FONTENCODING_MACARMENIAN
= _gdi
.FONTENCODING_MACARMENIAN
1314 FONTENCODING_MACCHINESESIMP
= _gdi
.FONTENCODING_MACCHINESESIMP
1315 FONTENCODING_MACTIBETAN
= _gdi
.FONTENCODING_MACTIBETAN
1316 FONTENCODING_MACMONGOLIAN
= _gdi
.FONTENCODING_MACMONGOLIAN
1317 FONTENCODING_MACETHIOPIC
= _gdi
.FONTENCODING_MACETHIOPIC
1318 FONTENCODING_MACCENTRALEUR
= _gdi
.FONTENCODING_MACCENTRALEUR
1319 FONTENCODING_MACVIATNAMESE
= _gdi
.FONTENCODING_MACVIATNAMESE
1320 FONTENCODING_MACARABICEXT
= _gdi
.FONTENCODING_MACARABICEXT
1321 FONTENCODING_MACSYMBOL
= _gdi
.FONTENCODING_MACSYMBOL
1322 FONTENCODING_MACDINGBATS
= _gdi
.FONTENCODING_MACDINGBATS
1323 FONTENCODING_MACTURKISH
= _gdi
.FONTENCODING_MACTURKISH
1324 FONTENCODING_MACCROATIAN
= _gdi
.FONTENCODING_MACCROATIAN
1325 FONTENCODING_MACICELANDIC
= _gdi
.FONTENCODING_MACICELANDIC
1326 FONTENCODING_MACROMANIAN
= _gdi
.FONTENCODING_MACROMANIAN
1327 FONTENCODING_MACCELTIC
= _gdi
.FONTENCODING_MACCELTIC
1328 FONTENCODING_MACGAELIC
= _gdi
.FONTENCODING_MACGAELIC
1329 FONTENCODING_MACKEYBOARD
= _gdi
.FONTENCODING_MACKEYBOARD
1330 FONTENCODING_MACMIN
= _gdi
.FONTENCODING_MACMIN
1331 FONTENCODING_MACMAX
= _gdi
.FONTENCODING_MACMAX
1332 FONTENCODING_MAX
= _gdi
.FONTENCODING_MAX
1333 FONTENCODING_UTF16
= _gdi
.FONTENCODING_UTF16
1334 FONTENCODING_UTF32
= _gdi
.FONTENCODING_UTF32
1335 FONTENCODING_UNICODE
= _gdi
.FONTENCODING_UNICODE
1336 FONTENCODING_GB2312
= _gdi
.FONTENCODING_GB2312
1337 FONTENCODING_BIG5
= _gdi
.FONTENCODING_BIG5
1338 FONTENCODING_SHIFT_JIS
= _gdi
.FONTENCODING_SHIFT_JIS
1339 #---------------------------------------------------------------------------
1341 class NativeFontInfo(object):
1343 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1344 def __init__(self
, *args
, **kwargs
):
1345 """__init__() -> NativeFontInfo"""
1346 newobj
= _gdi
.new_NativeFontInfo(*args
, **kwargs
)
1347 self
.this
= newobj
.this
1350 def __del__(self
, destroy
=_gdi
.delete_NativeFontInfo
):
1353 if self
.thisown
: destroy(self
)
1356 def Init(*args
, **kwargs
):
1358 return _gdi
.NativeFontInfo_Init(*args
, **kwargs
)
1360 def InitFromFont(*args
, **kwargs
):
1361 """InitFromFont(Font font)"""
1362 return _gdi
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1364 def GetPointSize(*args
, **kwargs
):
1365 """GetPointSize() -> int"""
1366 return _gdi
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1368 def GetStyle(*args
, **kwargs
):
1369 """GetStyle() -> int"""
1370 return _gdi
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1372 def GetWeight(*args
, **kwargs
):
1373 """GetWeight() -> int"""
1374 return _gdi
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1376 def GetUnderlined(*args
, **kwargs
):
1377 """GetUnderlined() -> bool"""
1378 return _gdi
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1380 def GetFaceName(*args
, **kwargs
):
1381 """GetFaceName() -> String"""
1382 return _gdi
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1384 def GetFamily(*args
, **kwargs
):
1385 """GetFamily() -> int"""
1386 return _gdi
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1388 def GetEncoding(*args
, **kwargs
):
1389 """GetEncoding() -> int"""
1390 return _gdi
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1392 def SetPointSize(*args
, **kwargs
):
1393 """SetPointSize(int pointsize)"""
1394 return _gdi
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1396 def SetStyle(*args
, **kwargs
):
1397 """SetStyle(int style)"""
1398 return _gdi
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1400 def SetWeight(*args
, **kwargs
):
1401 """SetWeight(int weight)"""
1402 return _gdi
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1404 def SetUnderlined(*args
, **kwargs
):
1405 """SetUnderlined(bool underlined)"""
1406 return _gdi
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1408 def SetFaceName(*args
, **kwargs
):
1409 """SetFaceName(String facename)"""
1410 return _gdi
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1412 def SetFamily(*args
, **kwargs
):
1413 """SetFamily(int family)"""
1414 return _gdi
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1416 def SetEncoding(*args
, **kwargs
):
1417 """SetEncoding(int encoding)"""
1418 return _gdi
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1420 def FromString(*args
, **kwargs
):
1421 """FromString(String s) -> bool"""
1422 return _gdi
.NativeFontInfo_FromString(*args
, **kwargs
)
1424 def ToString(*args
, **kwargs
):
1425 """ToString() -> String"""
1426 return _gdi
.NativeFontInfo_ToString(*args
, **kwargs
)
1428 def __str__(*args
, **kwargs
):
1429 """__str__() -> String"""
1430 return _gdi
.NativeFontInfo___str__(*args
, **kwargs
)
1432 def FromUserString(*args
, **kwargs
):
1433 """FromUserString(String s) -> bool"""
1434 return _gdi
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1436 def ToUserString(*args
, **kwargs
):
1437 """ToUserString() -> String"""
1438 return _gdi
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1441 class NativeFontInfoPtr(NativeFontInfo
):
1442 def __init__(self
, this
):
1444 if not hasattr(self
,"thisown"): self
.thisown
= 0
1445 self
.__class
__ = NativeFontInfo
1446 _gdi
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1448 class NativeEncodingInfo(object):
1450 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1451 facename
= property(_gdi
.NativeEncodingInfo_facename_get
, _gdi
.NativeEncodingInfo_facename_set
)
1452 encoding
= property(_gdi
.NativeEncodingInfo_encoding_get
, _gdi
.NativeEncodingInfo_encoding_set
)
1453 def __init__(self
, *args
, **kwargs
):
1454 """__init__() -> NativeEncodingInfo"""
1455 newobj
= _gdi
.new_NativeEncodingInfo(*args
, **kwargs
)
1456 self
.this
= newobj
.this
1459 def __del__(self
, destroy
=_gdi
.delete_NativeEncodingInfo
):
1462 if self
.thisown
: destroy(self
)
1465 def FromString(*args
, **kwargs
):
1466 """FromString(String s) -> bool"""
1467 return _gdi
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1469 def ToString(*args
, **kwargs
):
1470 """ToString() -> String"""
1471 return _gdi
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1474 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1475 def __init__(self
, this
):
1477 if not hasattr(self
,"thisown"): self
.thisown
= 0
1478 self
.__class
__ = NativeEncodingInfo
1479 _gdi
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1482 def GetNativeFontEncoding(*args
, **kwargs
):
1483 """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo"""
1484 return _gdi
.GetNativeFontEncoding(*args
, **kwargs
)
1486 def TestFontEncoding(*args
, **kwargs
):
1487 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1488 return _gdi
.TestFontEncoding(*args
, **kwargs
)
1489 #---------------------------------------------------------------------------
1491 class FontMapper(object):
1493 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1494 def __init__(self
, *args
, **kwargs
):
1495 """__init__() -> FontMapper"""
1496 newobj
= _gdi
.new_FontMapper(*args
, **kwargs
)
1497 self
.this
= newobj
.this
1500 def __del__(self
, destroy
=_gdi
.delete_FontMapper
):
1503 if self
.thisown
: destroy(self
)
1506 def Get(*args
, **kwargs
):
1507 """Get() -> FontMapper"""
1508 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1510 Get
= staticmethod(Get
)
1511 def Set(*args
, **kwargs
):
1512 """Set(FontMapper mapper) -> FontMapper"""
1513 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1515 Set
= staticmethod(Set
)
1516 def CharsetToEncoding(*args
, **kwargs
):
1517 """CharsetToEncoding(String charset, bool interactive=True) -> int"""
1518 return _gdi
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1520 def GetSupportedEncodingsCount(*args
, **kwargs
):
1521 """GetSupportedEncodingsCount() -> size_t"""
1522 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1524 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1525 def GetEncoding(*args
, **kwargs
):
1526 """GetEncoding(size_t n) -> int"""
1527 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1529 GetEncoding
= staticmethod(GetEncoding
)
1530 def GetEncodingName(*args
, **kwargs
):
1531 """GetEncodingName(int encoding) -> String"""
1532 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1534 GetEncodingName
= staticmethod(GetEncodingName
)
1535 def GetEncodingDescription(*args
, **kwargs
):
1536 """GetEncodingDescription(int encoding) -> String"""
1537 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1539 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1540 def SetConfig(*args
, **kwargs
):
1541 """SetConfig(ConfigBase config)"""
1542 return _gdi
.FontMapper_SetConfig(*args
, **kwargs
)
1544 def SetConfigPath(*args
, **kwargs
):
1545 """SetConfigPath(String prefix)"""
1546 return _gdi
.FontMapper_SetConfigPath(*args
, **kwargs
)
1548 def GetDefaultConfigPath(*args
, **kwargs
):
1549 """GetDefaultConfigPath() -> String"""
1550 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1552 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1553 def GetAltForEncoding(*args
, **kwargs
):
1554 """GetAltForEncoding(int encoding, String facename=EmptyString, bool interactive=True) -> PyObject"""
1555 return _gdi
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1557 def IsEncodingAvailable(*args
, **kwargs
):
1558 """IsEncodingAvailable(int encoding, String facename=EmptyString) -> bool"""
1559 return _gdi
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1561 def SetDialogParent(*args
, **kwargs
):
1562 """SetDialogParent(Window parent)"""
1563 return _gdi
.FontMapper_SetDialogParent(*args
, **kwargs
)
1565 def SetDialogTitle(*args
, **kwargs
):
1566 """SetDialogTitle(String title)"""
1567 return _gdi
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1570 class FontMapperPtr(FontMapper
):
1571 def __init__(self
, this
):
1573 if not hasattr(self
,"thisown"): self
.thisown
= 0
1574 self
.__class
__ = FontMapper
1575 _gdi
.FontMapper_swigregister(FontMapperPtr
)
1577 def FontMapper_Get(*args
, **kwargs
):
1578 """FontMapper_Get() -> FontMapper"""
1579 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1581 def FontMapper_Set(*args
, **kwargs
):
1582 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1583 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1585 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1586 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1587 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1589 def FontMapper_GetEncoding(*args
, **kwargs
):
1590 """FontMapper_GetEncoding(size_t n) -> int"""
1591 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1593 def FontMapper_GetEncodingName(*args
, **kwargs
):
1594 """FontMapper_GetEncodingName(int encoding) -> String"""
1595 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1597 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1598 """FontMapper_GetEncodingDescription(int encoding) -> String"""
1599 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1601 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1602 """FontMapper_GetDefaultConfigPath() -> String"""
1603 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1605 #---------------------------------------------------------------------------
1607 class Font(GDIObject
):
1609 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1610 def __init__(self
, *args
, **kwargs
):
1612 __init__(int pointSize, int family, int style, int weight, bool underline=False,
1613 String face=EmptyString,
1614 int encoding=FONTENCODING_DEFAULT) -> Font
1616 newobj
= _gdi
.new_Font(*args
, **kwargs
)
1617 self
.this
= newobj
.this
1620 def __del__(self
, destroy
=_gdi
.delete_Font
):
1623 if self
.thisown
: destroy(self
)
1626 def Ok(*args
, **kwargs
):
1628 return _gdi
.Font_Ok(*args
, **kwargs
)
1630 def __nonzero__(self
): return self
.Ok()
1631 def __eq__(*args
, **kwargs
):
1632 """__eq__(Font other) -> bool"""
1633 return _gdi
.Font___eq__(*args
, **kwargs
)
1635 def __ne__(*args
, **kwargs
):
1636 """__ne__(Font other) -> bool"""
1637 return _gdi
.Font___ne__(*args
, **kwargs
)
1639 def GetPointSize(*args
, **kwargs
):
1640 """GetPointSize() -> int"""
1641 return _gdi
.Font_GetPointSize(*args
, **kwargs
)
1643 def GetFamily(*args
, **kwargs
):
1644 """GetFamily() -> int"""
1645 return _gdi
.Font_GetFamily(*args
, **kwargs
)
1647 def GetStyle(*args
, **kwargs
):
1648 """GetStyle() -> int"""
1649 return _gdi
.Font_GetStyle(*args
, **kwargs
)
1651 def GetWeight(*args
, **kwargs
):
1652 """GetWeight() -> int"""
1653 return _gdi
.Font_GetWeight(*args
, **kwargs
)
1655 def GetUnderlined(*args
, **kwargs
):
1656 """GetUnderlined() -> bool"""
1657 return _gdi
.Font_GetUnderlined(*args
, **kwargs
)
1659 def GetFaceName(*args
, **kwargs
):
1660 """GetFaceName() -> String"""
1661 return _gdi
.Font_GetFaceName(*args
, **kwargs
)
1663 def GetEncoding(*args
, **kwargs
):
1664 """GetEncoding() -> int"""
1665 return _gdi
.Font_GetEncoding(*args
, **kwargs
)
1667 def GetNativeFontInfo(*args
, **kwargs
):
1668 """GetNativeFontInfo() -> NativeFontInfo"""
1669 return _gdi
.Font_GetNativeFontInfo(*args
, **kwargs
)
1671 def IsFixedWidth(*args
, **kwargs
):
1672 """IsFixedWidth() -> bool"""
1673 return _gdi
.Font_IsFixedWidth(*args
, **kwargs
)
1675 def GetNativeFontInfoDesc(*args
, **kwargs
):
1676 """GetNativeFontInfoDesc() -> String"""
1677 return _gdi
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1679 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1680 """GetNativeFontInfoUserDesc() -> String"""
1681 return _gdi
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1683 def SetPointSize(*args
, **kwargs
):
1684 """SetPointSize(int pointSize)"""
1685 return _gdi
.Font_SetPointSize(*args
, **kwargs
)
1687 def SetFamily(*args
, **kwargs
):
1688 """SetFamily(int family)"""
1689 return _gdi
.Font_SetFamily(*args
, **kwargs
)
1691 def SetStyle(*args
, **kwargs
):
1692 """SetStyle(int style)"""
1693 return _gdi
.Font_SetStyle(*args
, **kwargs
)
1695 def SetWeight(*args
, **kwargs
):
1696 """SetWeight(int weight)"""
1697 return _gdi
.Font_SetWeight(*args
, **kwargs
)
1699 def SetFaceName(*args
, **kwargs
):
1700 """SetFaceName(String faceName)"""
1701 return _gdi
.Font_SetFaceName(*args
, **kwargs
)
1703 def SetUnderlined(*args
, **kwargs
):
1704 """SetUnderlined(bool underlined)"""
1705 return _gdi
.Font_SetUnderlined(*args
, **kwargs
)
1707 def SetEncoding(*args
, **kwargs
):
1708 """SetEncoding(int encoding)"""
1709 return _gdi
.Font_SetEncoding(*args
, **kwargs
)
1711 def SetNativeFontInfo(*args
, **kwargs
):
1712 """SetNativeFontInfo(NativeFontInfo info)"""
1713 return _gdi
.Font_SetNativeFontInfo(*args
, **kwargs
)
1715 def SetNativeFontInfoFromString(*args
, **kwargs
):
1716 """SetNativeFontInfoFromString(String info)"""
1717 return _gdi
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1719 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1720 """SetNativeFontInfoUserDesc(String info)"""
1721 return _gdi
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1723 def GetFamilyString(*args
, **kwargs
):
1724 """GetFamilyString() -> String"""
1725 return _gdi
.Font_GetFamilyString(*args
, **kwargs
)
1727 def GetStyleString(*args
, **kwargs
):
1728 """GetStyleString() -> String"""
1729 return _gdi
.Font_GetStyleString(*args
, **kwargs
)
1731 def GetWeightString(*args
, **kwargs
):
1732 """GetWeightString() -> String"""
1733 return _gdi
.Font_GetWeightString(*args
, **kwargs
)
1735 def SetNoAntiAliasing(*args
, **kwargs
):
1736 """SetNoAntiAliasing(bool no=True)"""
1737 return _gdi
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1739 def GetNoAntiAliasing(*args
, **kwargs
):
1740 """GetNoAntiAliasing() -> bool"""
1741 return _gdi
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1743 def GetDefaultEncoding(*args
, **kwargs
):
1744 """GetDefaultEncoding() -> int"""
1745 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1747 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1748 def SetDefaultEncoding(*args
, **kwargs
):
1749 """SetDefaultEncoding(int encoding)"""
1750 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1752 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1754 class FontPtr(Font
):
1755 def __init__(self
, this
):
1757 if not hasattr(self
,"thisown"): self
.thisown
= 0
1758 self
.__class
__ = Font
1759 _gdi
.Font_swigregister(FontPtr
)
1761 def FontFromNativeInfo(*args
, **kwargs
):
1762 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1763 val
= _gdi
.new_FontFromNativeInfo(*args
, **kwargs
)
1767 def FontFromNativeInfoString(*args
, **kwargs
):
1768 """FontFromNativeInfoString(String info) -> Font"""
1769 val
= _gdi
.new_FontFromNativeInfoString(*args
, **kwargs
)
1773 def Font2(*args
, **kwargs
):
1775 Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT,
1776 String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font
1778 val
= _gdi
.new_Font2(*args
, **kwargs
)
1782 def Font_GetDefaultEncoding(*args
, **kwargs
):
1783 """Font_GetDefaultEncoding() -> int"""
1784 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1786 def Font_SetDefaultEncoding(*args
, **kwargs
):
1787 """Font_SetDefaultEncoding(int encoding)"""
1788 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1790 #---------------------------------------------------------------------------
1792 class FontEnumerator(object):
1794 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1795 def __init__(self
, *args
, **kwargs
):
1796 """__init__() -> FontEnumerator"""
1797 newobj
= _gdi
.new_FontEnumerator(*args
, **kwargs
)
1798 self
.this
= newobj
.this
1801 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1803 def __del__(self
, destroy
=_gdi
.delete_FontEnumerator
):
1806 if self
.thisown
: destroy(self
)
1809 def _setCallbackInfo(*args
, **kwargs
):
1810 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1811 return _gdi
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1813 def EnumerateFacenames(*args
, **kwargs
):
1814 """EnumerateFacenames(int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1815 return _gdi
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1817 def EnumerateEncodings(*args
, **kwargs
):
1818 """EnumerateEncodings(String facename=EmptyString) -> bool"""
1819 return _gdi
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1821 def GetEncodings(*args
, **kwargs
):
1822 """GetEncodings() -> PyObject"""
1823 return _gdi
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1825 def GetFacenames(*args
, **kwargs
):
1826 """GetFacenames() -> PyObject"""
1827 return _gdi
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1830 class FontEnumeratorPtr(FontEnumerator
):
1831 def __init__(self
, this
):
1833 if not hasattr(self
,"thisown"): self
.thisown
= 0
1834 self
.__class
__ = FontEnumerator
1835 _gdi
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1837 #---------------------------------------------------------------------------
1839 LANGUAGE_DEFAULT
= _gdi
.LANGUAGE_DEFAULT
1840 LANGUAGE_UNKNOWN
= _gdi
.LANGUAGE_UNKNOWN
1841 LANGUAGE_ABKHAZIAN
= _gdi
.LANGUAGE_ABKHAZIAN
1842 LANGUAGE_AFAR
= _gdi
.LANGUAGE_AFAR
1843 LANGUAGE_AFRIKAANS
= _gdi
.LANGUAGE_AFRIKAANS
1844 LANGUAGE_ALBANIAN
= _gdi
.LANGUAGE_ALBANIAN
1845 LANGUAGE_AMHARIC
= _gdi
.LANGUAGE_AMHARIC
1846 LANGUAGE_ARABIC
= _gdi
.LANGUAGE_ARABIC
1847 LANGUAGE_ARABIC_ALGERIA
= _gdi
.LANGUAGE_ARABIC_ALGERIA
1848 LANGUAGE_ARABIC_BAHRAIN
= _gdi
.LANGUAGE_ARABIC_BAHRAIN
1849 LANGUAGE_ARABIC_EGYPT
= _gdi
.LANGUAGE_ARABIC_EGYPT
1850 LANGUAGE_ARABIC_IRAQ
= _gdi
.LANGUAGE_ARABIC_IRAQ
1851 LANGUAGE_ARABIC_JORDAN
= _gdi
.LANGUAGE_ARABIC_JORDAN
1852 LANGUAGE_ARABIC_KUWAIT
= _gdi
.LANGUAGE_ARABIC_KUWAIT
1853 LANGUAGE_ARABIC_LEBANON
= _gdi
.LANGUAGE_ARABIC_LEBANON
1854 LANGUAGE_ARABIC_LIBYA
= _gdi
.LANGUAGE_ARABIC_LIBYA
1855 LANGUAGE_ARABIC_MOROCCO
= _gdi
.LANGUAGE_ARABIC_MOROCCO
1856 LANGUAGE_ARABIC_OMAN
= _gdi
.LANGUAGE_ARABIC_OMAN
1857 LANGUAGE_ARABIC_QATAR
= _gdi
.LANGUAGE_ARABIC_QATAR
1858 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi
.LANGUAGE_ARABIC_SAUDI_ARABIA
1859 LANGUAGE_ARABIC_SUDAN
= _gdi
.LANGUAGE_ARABIC_SUDAN
1860 LANGUAGE_ARABIC_SYRIA
= _gdi
.LANGUAGE_ARABIC_SYRIA
1861 LANGUAGE_ARABIC_TUNISIA
= _gdi
.LANGUAGE_ARABIC_TUNISIA
1862 LANGUAGE_ARABIC_UAE
= _gdi
.LANGUAGE_ARABIC_UAE
1863 LANGUAGE_ARABIC_YEMEN
= _gdi
.LANGUAGE_ARABIC_YEMEN
1864 LANGUAGE_ARMENIAN
= _gdi
.LANGUAGE_ARMENIAN
1865 LANGUAGE_ASSAMESE
= _gdi
.LANGUAGE_ASSAMESE
1866 LANGUAGE_AYMARA
= _gdi
.LANGUAGE_AYMARA
1867 LANGUAGE_AZERI
= _gdi
.LANGUAGE_AZERI
1868 LANGUAGE_AZERI_CYRILLIC
= _gdi
.LANGUAGE_AZERI_CYRILLIC
1869 LANGUAGE_AZERI_LATIN
= _gdi
.LANGUAGE_AZERI_LATIN
1870 LANGUAGE_BASHKIR
= _gdi
.LANGUAGE_BASHKIR
1871 LANGUAGE_BASQUE
= _gdi
.LANGUAGE_BASQUE
1872 LANGUAGE_BELARUSIAN
= _gdi
.LANGUAGE_BELARUSIAN
1873 LANGUAGE_BENGALI
= _gdi
.LANGUAGE_BENGALI
1874 LANGUAGE_BHUTANI
= _gdi
.LANGUAGE_BHUTANI
1875 LANGUAGE_BIHARI
= _gdi
.LANGUAGE_BIHARI
1876 LANGUAGE_BISLAMA
= _gdi
.LANGUAGE_BISLAMA
1877 LANGUAGE_BRETON
= _gdi
.LANGUAGE_BRETON
1878 LANGUAGE_BULGARIAN
= _gdi
.LANGUAGE_BULGARIAN
1879 LANGUAGE_BURMESE
= _gdi
.LANGUAGE_BURMESE
1880 LANGUAGE_CAMBODIAN
= _gdi
.LANGUAGE_CAMBODIAN
1881 LANGUAGE_CATALAN
= _gdi
.LANGUAGE_CATALAN
1882 LANGUAGE_CHINESE
= _gdi
.LANGUAGE_CHINESE
1883 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi
.LANGUAGE_CHINESE_SIMPLIFIED
1884 LANGUAGE_CHINESE_TRADITIONAL
= _gdi
.LANGUAGE_CHINESE_TRADITIONAL
1885 LANGUAGE_CHINESE_HONGKONG
= _gdi
.LANGUAGE_CHINESE_HONGKONG
1886 LANGUAGE_CHINESE_MACAU
= _gdi
.LANGUAGE_CHINESE_MACAU
1887 LANGUAGE_CHINESE_SINGAPORE
= _gdi
.LANGUAGE_CHINESE_SINGAPORE
1888 LANGUAGE_CHINESE_TAIWAN
= _gdi
.LANGUAGE_CHINESE_TAIWAN
1889 LANGUAGE_CORSICAN
= _gdi
.LANGUAGE_CORSICAN
1890 LANGUAGE_CROATIAN
= _gdi
.LANGUAGE_CROATIAN
1891 LANGUAGE_CZECH
= _gdi
.LANGUAGE_CZECH
1892 LANGUAGE_DANISH
= _gdi
.LANGUAGE_DANISH
1893 LANGUAGE_DUTCH
= _gdi
.LANGUAGE_DUTCH
1894 LANGUAGE_DUTCH_BELGIAN
= _gdi
.LANGUAGE_DUTCH_BELGIAN
1895 LANGUAGE_ENGLISH
= _gdi
.LANGUAGE_ENGLISH
1896 LANGUAGE_ENGLISH_UK
= _gdi
.LANGUAGE_ENGLISH_UK
1897 LANGUAGE_ENGLISH_US
= _gdi
.LANGUAGE_ENGLISH_US
1898 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi
.LANGUAGE_ENGLISH_AUSTRALIA
1899 LANGUAGE_ENGLISH_BELIZE
= _gdi
.LANGUAGE_ENGLISH_BELIZE
1900 LANGUAGE_ENGLISH_BOTSWANA
= _gdi
.LANGUAGE_ENGLISH_BOTSWANA
1901 LANGUAGE_ENGLISH_CANADA
= _gdi
.LANGUAGE_ENGLISH_CANADA
1902 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi
.LANGUAGE_ENGLISH_CARIBBEAN
1903 LANGUAGE_ENGLISH_DENMARK
= _gdi
.LANGUAGE_ENGLISH_DENMARK
1904 LANGUAGE_ENGLISH_EIRE
= _gdi
.LANGUAGE_ENGLISH_EIRE
1905 LANGUAGE_ENGLISH_JAMAICA
= _gdi
.LANGUAGE_ENGLISH_JAMAICA
1906 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi
.LANGUAGE_ENGLISH_NEW_ZEALAND
1907 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi
.LANGUAGE_ENGLISH_PHILIPPINES
1908 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1909 LANGUAGE_ENGLISH_TRINIDAD
= _gdi
.LANGUAGE_ENGLISH_TRINIDAD
1910 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi
.LANGUAGE_ENGLISH_ZIMBABWE
1911 LANGUAGE_ESPERANTO
= _gdi
.LANGUAGE_ESPERANTO
1912 LANGUAGE_ESTONIAN
= _gdi
.LANGUAGE_ESTONIAN
1913 LANGUAGE_FAEROESE
= _gdi
.LANGUAGE_FAEROESE
1914 LANGUAGE_FARSI
= _gdi
.LANGUAGE_FARSI
1915 LANGUAGE_FIJI
= _gdi
.LANGUAGE_FIJI
1916 LANGUAGE_FINNISH
= _gdi
.LANGUAGE_FINNISH
1917 LANGUAGE_FRENCH
= _gdi
.LANGUAGE_FRENCH
1918 LANGUAGE_FRENCH_BELGIAN
= _gdi
.LANGUAGE_FRENCH_BELGIAN
1919 LANGUAGE_FRENCH_CANADIAN
= _gdi
.LANGUAGE_FRENCH_CANADIAN
1920 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi
.LANGUAGE_FRENCH_LUXEMBOURG
1921 LANGUAGE_FRENCH_MONACO
= _gdi
.LANGUAGE_FRENCH_MONACO
1922 LANGUAGE_FRENCH_SWISS
= _gdi
.LANGUAGE_FRENCH_SWISS
1923 LANGUAGE_FRISIAN
= _gdi
.LANGUAGE_FRISIAN
1924 LANGUAGE_GALICIAN
= _gdi
.LANGUAGE_GALICIAN
1925 LANGUAGE_GEORGIAN
= _gdi
.LANGUAGE_GEORGIAN
1926 LANGUAGE_GERMAN
= _gdi
.LANGUAGE_GERMAN
1927 LANGUAGE_GERMAN_AUSTRIAN
= _gdi
.LANGUAGE_GERMAN_AUSTRIAN
1928 LANGUAGE_GERMAN_BELGIUM
= _gdi
.LANGUAGE_GERMAN_BELGIUM
1929 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi
.LANGUAGE_GERMAN_LIECHTENSTEIN
1930 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi
.LANGUAGE_GERMAN_LUXEMBOURG
1931 LANGUAGE_GERMAN_SWISS
= _gdi
.LANGUAGE_GERMAN_SWISS
1932 LANGUAGE_GREEK
= _gdi
.LANGUAGE_GREEK
1933 LANGUAGE_GREENLANDIC
= _gdi
.LANGUAGE_GREENLANDIC
1934 LANGUAGE_GUARANI
= _gdi
.LANGUAGE_GUARANI
1935 LANGUAGE_GUJARATI
= _gdi
.LANGUAGE_GUJARATI
1936 LANGUAGE_HAUSA
= _gdi
.LANGUAGE_HAUSA
1937 LANGUAGE_HEBREW
= _gdi
.LANGUAGE_HEBREW
1938 LANGUAGE_HINDI
= _gdi
.LANGUAGE_HINDI
1939 LANGUAGE_HUNGARIAN
= _gdi
.LANGUAGE_HUNGARIAN
1940 LANGUAGE_ICELANDIC
= _gdi
.LANGUAGE_ICELANDIC
1941 LANGUAGE_INDONESIAN
= _gdi
.LANGUAGE_INDONESIAN
1942 LANGUAGE_INTERLINGUA
= _gdi
.LANGUAGE_INTERLINGUA
1943 LANGUAGE_INTERLINGUE
= _gdi
.LANGUAGE_INTERLINGUE
1944 LANGUAGE_INUKTITUT
= _gdi
.LANGUAGE_INUKTITUT
1945 LANGUAGE_INUPIAK
= _gdi
.LANGUAGE_INUPIAK
1946 LANGUAGE_IRISH
= _gdi
.LANGUAGE_IRISH
1947 LANGUAGE_ITALIAN
= _gdi
.LANGUAGE_ITALIAN
1948 LANGUAGE_ITALIAN_SWISS
= _gdi
.LANGUAGE_ITALIAN_SWISS
1949 LANGUAGE_JAPANESE
= _gdi
.LANGUAGE_JAPANESE
1950 LANGUAGE_JAVANESE
= _gdi
.LANGUAGE_JAVANESE
1951 LANGUAGE_KANNADA
= _gdi
.LANGUAGE_KANNADA
1952 LANGUAGE_KASHMIRI
= _gdi
.LANGUAGE_KASHMIRI
1953 LANGUAGE_KASHMIRI_INDIA
= _gdi
.LANGUAGE_KASHMIRI_INDIA
1954 LANGUAGE_KAZAKH
= _gdi
.LANGUAGE_KAZAKH
1955 LANGUAGE_KERNEWEK
= _gdi
.LANGUAGE_KERNEWEK
1956 LANGUAGE_KINYARWANDA
= _gdi
.LANGUAGE_KINYARWANDA
1957 LANGUAGE_KIRGHIZ
= _gdi
.LANGUAGE_KIRGHIZ
1958 LANGUAGE_KIRUNDI
= _gdi
.LANGUAGE_KIRUNDI
1959 LANGUAGE_KONKANI
= _gdi
.LANGUAGE_KONKANI
1960 LANGUAGE_KOREAN
= _gdi
.LANGUAGE_KOREAN
1961 LANGUAGE_KURDISH
= _gdi
.LANGUAGE_KURDISH
1962 LANGUAGE_LAOTHIAN
= _gdi
.LANGUAGE_LAOTHIAN
1963 LANGUAGE_LATIN
= _gdi
.LANGUAGE_LATIN
1964 LANGUAGE_LATVIAN
= _gdi
.LANGUAGE_LATVIAN
1965 LANGUAGE_LINGALA
= _gdi
.LANGUAGE_LINGALA
1966 LANGUAGE_LITHUANIAN
= _gdi
.LANGUAGE_LITHUANIAN
1967 LANGUAGE_MACEDONIAN
= _gdi
.LANGUAGE_MACEDONIAN
1968 LANGUAGE_MALAGASY
= _gdi
.LANGUAGE_MALAGASY
1969 LANGUAGE_MALAY
= _gdi
.LANGUAGE_MALAY
1970 LANGUAGE_MALAYALAM
= _gdi
.LANGUAGE_MALAYALAM
1971 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1972 LANGUAGE_MALAY_MALAYSIA
= _gdi
.LANGUAGE_MALAY_MALAYSIA
1973 LANGUAGE_MALTESE
= _gdi
.LANGUAGE_MALTESE
1974 LANGUAGE_MANIPURI
= _gdi
.LANGUAGE_MANIPURI
1975 LANGUAGE_MAORI
= _gdi
.LANGUAGE_MAORI
1976 LANGUAGE_MARATHI
= _gdi
.LANGUAGE_MARATHI
1977 LANGUAGE_MOLDAVIAN
= _gdi
.LANGUAGE_MOLDAVIAN
1978 LANGUAGE_MONGOLIAN
= _gdi
.LANGUAGE_MONGOLIAN
1979 LANGUAGE_NAURU
= _gdi
.LANGUAGE_NAURU
1980 LANGUAGE_NEPALI
= _gdi
.LANGUAGE_NEPALI
1981 LANGUAGE_NEPALI_INDIA
= _gdi
.LANGUAGE_NEPALI_INDIA
1982 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi
.LANGUAGE_NORWEGIAN_BOKMAL
1983 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi
.LANGUAGE_NORWEGIAN_NYNORSK
1984 LANGUAGE_OCCITAN
= _gdi
.LANGUAGE_OCCITAN
1985 LANGUAGE_ORIYA
= _gdi
.LANGUAGE_ORIYA
1986 LANGUAGE_OROMO
= _gdi
.LANGUAGE_OROMO
1987 LANGUAGE_PASHTO
= _gdi
.LANGUAGE_PASHTO
1988 LANGUAGE_POLISH
= _gdi
.LANGUAGE_POLISH
1989 LANGUAGE_PORTUGUESE
= _gdi
.LANGUAGE_PORTUGUESE
1990 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi
.LANGUAGE_PORTUGUESE_BRAZILIAN
1991 LANGUAGE_PUNJABI
= _gdi
.LANGUAGE_PUNJABI
1992 LANGUAGE_QUECHUA
= _gdi
.LANGUAGE_QUECHUA
1993 LANGUAGE_RHAETO_ROMANCE
= _gdi
.LANGUAGE_RHAETO_ROMANCE
1994 LANGUAGE_ROMANIAN
= _gdi
.LANGUAGE_ROMANIAN
1995 LANGUAGE_RUSSIAN
= _gdi
.LANGUAGE_RUSSIAN
1996 LANGUAGE_RUSSIAN_UKRAINE
= _gdi
.LANGUAGE_RUSSIAN_UKRAINE
1997 LANGUAGE_SAMOAN
= _gdi
.LANGUAGE_SAMOAN
1998 LANGUAGE_SANGHO
= _gdi
.LANGUAGE_SANGHO
1999 LANGUAGE_SANSKRIT
= _gdi
.LANGUAGE_SANSKRIT
2000 LANGUAGE_SCOTS_GAELIC
= _gdi
.LANGUAGE_SCOTS_GAELIC
2001 LANGUAGE_SERBIAN
= _gdi
.LANGUAGE_SERBIAN
2002 LANGUAGE_SERBIAN_CYRILLIC
= _gdi
.LANGUAGE_SERBIAN_CYRILLIC
2003 LANGUAGE_SERBIAN_LATIN
= _gdi
.LANGUAGE_SERBIAN_LATIN
2004 LANGUAGE_SERBO_CROATIAN
= _gdi
.LANGUAGE_SERBO_CROATIAN
2005 LANGUAGE_SESOTHO
= _gdi
.LANGUAGE_SESOTHO
2006 LANGUAGE_SETSWANA
= _gdi
.LANGUAGE_SETSWANA
2007 LANGUAGE_SHONA
= _gdi
.LANGUAGE_SHONA
2008 LANGUAGE_SINDHI
= _gdi
.LANGUAGE_SINDHI
2009 LANGUAGE_SINHALESE
= _gdi
.LANGUAGE_SINHALESE
2010 LANGUAGE_SISWATI
= _gdi
.LANGUAGE_SISWATI
2011 LANGUAGE_SLOVAK
= _gdi
.LANGUAGE_SLOVAK
2012 LANGUAGE_SLOVENIAN
= _gdi
.LANGUAGE_SLOVENIAN
2013 LANGUAGE_SOMALI
= _gdi
.LANGUAGE_SOMALI
2014 LANGUAGE_SPANISH
= _gdi
.LANGUAGE_SPANISH
2015 LANGUAGE_SPANISH_ARGENTINA
= _gdi
.LANGUAGE_SPANISH_ARGENTINA
2016 LANGUAGE_SPANISH_BOLIVIA
= _gdi
.LANGUAGE_SPANISH_BOLIVIA
2017 LANGUAGE_SPANISH_CHILE
= _gdi
.LANGUAGE_SPANISH_CHILE
2018 LANGUAGE_SPANISH_COLOMBIA
= _gdi
.LANGUAGE_SPANISH_COLOMBIA
2019 LANGUAGE_SPANISH_COSTA_RICA
= _gdi
.LANGUAGE_SPANISH_COSTA_RICA
2020 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
2021 LANGUAGE_SPANISH_ECUADOR
= _gdi
.LANGUAGE_SPANISH_ECUADOR
2022 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi
.LANGUAGE_SPANISH_EL_SALVADOR
2023 LANGUAGE_SPANISH_GUATEMALA
= _gdi
.LANGUAGE_SPANISH_GUATEMALA
2024 LANGUAGE_SPANISH_HONDURAS
= _gdi
.LANGUAGE_SPANISH_HONDURAS
2025 LANGUAGE_SPANISH_MEXICAN
= _gdi
.LANGUAGE_SPANISH_MEXICAN
2026 LANGUAGE_SPANISH_MODERN
= _gdi
.LANGUAGE_SPANISH_MODERN
2027 LANGUAGE_SPANISH_NICARAGUA
= _gdi
.LANGUAGE_SPANISH_NICARAGUA
2028 LANGUAGE_SPANISH_PANAMA
= _gdi
.LANGUAGE_SPANISH_PANAMA
2029 LANGUAGE_SPANISH_PARAGUAY
= _gdi
.LANGUAGE_SPANISH_PARAGUAY
2030 LANGUAGE_SPANISH_PERU
= _gdi
.LANGUAGE_SPANISH_PERU
2031 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi
.LANGUAGE_SPANISH_PUERTO_RICO
2032 LANGUAGE_SPANISH_URUGUAY
= _gdi
.LANGUAGE_SPANISH_URUGUAY
2033 LANGUAGE_SPANISH_US
= _gdi
.LANGUAGE_SPANISH_US
2034 LANGUAGE_SPANISH_VENEZUELA
= _gdi
.LANGUAGE_SPANISH_VENEZUELA
2035 LANGUAGE_SUNDANESE
= _gdi
.LANGUAGE_SUNDANESE
2036 LANGUAGE_SWAHILI
= _gdi
.LANGUAGE_SWAHILI
2037 LANGUAGE_SWEDISH
= _gdi
.LANGUAGE_SWEDISH
2038 LANGUAGE_SWEDISH_FINLAND
= _gdi
.LANGUAGE_SWEDISH_FINLAND
2039 LANGUAGE_TAGALOG
= _gdi
.LANGUAGE_TAGALOG
2040 LANGUAGE_TAJIK
= _gdi
.LANGUAGE_TAJIK
2041 LANGUAGE_TAMIL
= _gdi
.LANGUAGE_TAMIL
2042 LANGUAGE_TATAR
= _gdi
.LANGUAGE_TATAR
2043 LANGUAGE_TELUGU
= _gdi
.LANGUAGE_TELUGU
2044 LANGUAGE_THAI
= _gdi
.LANGUAGE_THAI
2045 LANGUAGE_TIBETAN
= _gdi
.LANGUAGE_TIBETAN
2046 LANGUAGE_TIGRINYA
= _gdi
.LANGUAGE_TIGRINYA
2047 LANGUAGE_TONGA
= _gdi
.LANGUAGE_TONGA
2048 LANGUAGE_TSONGA
= _gdi
.LANGUAGE_TSONGA
2049 LANGUAGE_TURKISH
= _gdi
.LANGUAGE_TURKISH
2050 LANGUAGE_TURKMEN
= _gdi
.LANGUAGE_TURKMEN
2051 LANGUAGE_TWI
= _gdi
.LANGUAGE_TWI
2052 LANGUAGE_UIGHUR
= _gdi
.LANGUAGE_UIGHUR
2053 LANGUAGE_UKRAINIAN
= _gdi
.LANGUAGE_UKRAINIAN
2054 LANGUAGE_URDU
= _gdi
.LANGUAGE_URDU
2055 LANGUAGE_URDU_INDIA
= _gdi
.LANGUAGE_URDU_INDIA
2056 LANGUAGE_URDU_PAKISTAN
= _gdi
.LANGUAGE_URDU_PAKISTAN
2057 LANGUAGE_UZBEK
= _gdi
.LANGUAGE_UZBEK
2058 LANGUAGE_UZBEK_CYRILLIC
= _gdi
.LANGUAGE_UZBEK_CYRILLIC
2059 LANGUAGE_UZBEK_LATIN
= _gdi
.LANGUAGE_UZBEK_LATIN
2060 LANGUAGE_VIETNAMESE
= _gdi
.LANGUAGE_VIETNAMESE
2061 LANGUAGE_VOLAPUK
= _gdi
.LANGUAGE_VOLAPUK
2062 LANGUAGE_WELSH
= _gdi
.LANGUAGE_WELSH
2063 LANGUAGE_WOLOF
= _gdi
.LANGUAGE_WOLOF
2064 LANGUAGE_XHOSA
= _gdi
.LANGUAGE_XHOSA
2065 LANGUAGE_YIDDISH
= _gdi
.LANGUAGE_YIDDISH
2066 LANGUAGE_YORUBA
= _gdi
.LANGUAGE_YORUBA
2067 LANGUAGE_ZHUANG
= _gdi
.LANGUAGE_ZHUANG
2068 LANGUAGE_ZULU
= _gdi
.LANGUAGE_ZULU
2069 LANGUAGE_USER_DEFINED
= _gdi
.LANGUAGE_USER_DEFINED
2070 class LanguageInfo(object):
2071 def __init__(self
): raise RuntimeError, "No constructor defined"
2073 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2074 Language
= property(_gdi
.LanguageInfo_Language_get
, _gdi
.LanguageInfo_Language_set
)
2075 CanonicalName
= property(_gdi
.LanguageInfo_CanonicalName_get
, _gdi
.LanguageInfo_CanonicalName_set
)
2076 Description
= property(_gdi
.LanguageInfo_Description_get
, _gdi
.LanguageInfo_Description_set
)
2078 class LanguageInfoPtr(LanguageInfo
):
2079 def __init__(self
, this
):
2081 if not hasattr(self
,"thisown"): self
.thisown
= 0
2082 self
.__class
__ = LanguageInfo
2083 _gdi
.LanguageInfo_swigregister(LanguageInfoPtr
)
2085 LOCALE_CAT_NUMBER
= _gdi
.LOCALE_CAT_NUMBER
2086 LOCALE_CAT_DATE
= _gdi
.LOCALE_CAT_DATE
2087 LOCALE_CAT_MONEY
= _gdi
.LOCALE_CAT_MONEY
2088 LOCALE_CAT_MAX
= _gdi
.LOCALE_CAT_MAX
2089 LOCALE_THOUSANDS_SEP
= _gdi
.LOCALE_THOUSANDS_SEP
2090 LOCALE_DECIMAL_POINT
= _gdi
.LOCALE_DECIMAL_POINT
2091 LOCALE_LOAD_DEFAULT
= _gdi
.LOCALE_LOAD_DEFAULT
2092 LOCALE_CONV_ENCODING
= _gdi
.LOCALE_CONV_ENCODING
2093 class Locale(object):
2095 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2096 def __init__(self
, *args
, **kwargs
):
2097 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
2098 newobj
= _gdi
.new_Locale(*args
, **kwargs
)
2099 self
.this
= newobj
.this
2102 def __del__(self
, destroy
=_gdi
.delete_Locale
):
2105 if self
.thisown
: destroy(self
)
2108 def Init1(*args
, **kwargs
):
2110 Init1(String szName, String szShort=EmptyString, String szLocale=EmptyString,
2111 bool bLoadDefault=True,
2112 bool bConvertEncoding=False) -> bool
2114 return _gdi
.Locale_Init1(*args
, **kwargs
)
2116 def Init2(*args
, **kwargs
):
2117 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
2118 return _gdi
.Locale_Init2(*args
, **kwargs
)
2120 def Init(self
, *_args
, **_kwargs
):
2121 if type(_args
[0]) in [type(''), type(u
'')]:
2122 val
= self
.Init1(*_args
, **_kwargs
)
2124 val
= self
.Init2(*_args
, **_kwargs
)
2127 def GetSystemLanguage(*args
, **kwargs
):
2128 """GetSystemLanguage() -> int"""
2129 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
2131 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
2132 def GetSystemEncoding(*args
, **kwargs
):
2133 """GetSystemEncoding() -> int"""
2134 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
2136 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
2137 def GetSystemEncodingName(*args
, **kwargs
):
2138 """GetSystemEncodingName() -> String"""
2139 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2141 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
2142 def IsOk(*args
, **kwargs
):
2143 """IsOk() -> bool"""
2144 return _gdi
.Locale_IsOk(*args
, **kwargs
)
2146 def __nonzero__(self
): return self
.IsOk()
2147 def GetLocale(*args
, **kwargs
):
2148 """GetLocale() -> String"""
2149 return _gdi
.Locale_GetLocale(*args
, **kwargs
)
2151 def GetLanguage(*args
, **kwargs
):
2152 """GetLanguage() -> int"""
2153 return _gdi
.Locale_GetLanguage(*args
, **kwargs
)
2155 def GetSysName(*args
, **kwargs
):
2156 """GetSysName() -> String"""
2157 return _gdi
.Locale_GetSysName(*args
, **kwargs
)
2159 def GetCanonicalName(*args
, **kwargs
):
2160 """GetCanonicalName() -> String"""
2161 return _gdi
.Locale_GetCanonicalName(*args
, **kwargs
)
2163 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
2164 """AddCatalogLookupPathPrefix(String prefix)"""
2165 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2167 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
2168 def AddCatalog(*args
, **kwargs
):
2169 """AddCatalog(String szDomain) -> bool"""
2170 return _gdi
.Locale_AddCatalog(*args
, **kwargs
)
2172 def IsLoaded(*args
, **kwargs
):
2173 """IsLoaded(String szDomain) -> bool"""
2174 return _gdi
.Locale_IsLoaded(*args
, **kwargs
)
2176 def GetLanguageInfo(*args
, **kwargs
):
2177 """GetLanguageInfo(int lang) -> LanguageInfo"""
2178 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
2180 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
2181 def GetLanguageName(*args
, **kwargs
):
2182 """GetLanguageName(int lang) -> String"""
2183 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
2185 GetLanguageName
= staticmethod(GetLanguageName
)
2186 def FindLanguageInfo(*args
, **kwargs
):
2187 """FindLanguageInfo(String locale) -> LanguageInfo"""
2188 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
2190 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
2191 def AddLanguage(*args
, **kwargs
):
2192 """AddLanguage(LanguageInfo info)"""
2193 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
2195 AddLanguage
= staticmethod(AddLanguage
)
2196 def GetString(*args
, **kwargs
):
2197 """GetString(String szOrigString, String szDomain=EmptyString) -> String"""
2198 return _gdi
.Locale_GetString(*args
, **kwargs
)
2200 def GetName(*args
, **kwargs
):
2201 """GetName() -> String"""
2202 return _gdi
.Locale_GetName(*args
, **kwargs
)
2205 class LocalePtr(Locale
):
2206 def __init__(self
, this
):
2208 if not hasattr(self
,"thisown"): self
.thisown
= 0
2209 self
.__class
__ = Locale
2210 _gdi
.Locale_swigregister(LocalePtr
)
2212 def Locale_GetSystemLanguage(*args
, **kwargs
):
2213 """Locale_GetSystemLanguage() -> int"""
2214 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
2216 def Locale_GetSystemEncoding(*args
, **kwargs
):
2217 """Locale_GetSystemEncoding() -> int"""
2218 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
2220 def Locale_GetSystemEncodingName(*args
, **kwargs
):
2221 """Locale_GetSystemEncodingName() -> String"""
2222 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2224 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
2225 """Locale_AddCatalogLookupPathPrefix(String prefix)"""
2226 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2228 def Locale_GetLanguageInfo(*args
, **kwargs
):
2229 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
2230 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
2232 def Locale_GetLanguageName(*args
, **kwargs
):
2233 """Locale_GetLanguageName(int lang) -> String"""
2234 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
2236 def Locale_FindLanguageInfo(*args
, **kwargs
):
2237 """Locale_FindLanguageInfo(String locale) -> LanguageInfo"""
2238 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
2240 def Locale_AddLanguage(*args
, **kwargs
):
2241 """Locale_AddLanguage(LanguageInfo info)"""
2242 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
2245 def GetLocale(*args
, **kwargs
):
2246 """GetLocale() -> Locale"""
2247 return _gdi
.GetLocale(*args
, **kwargs
)
2248 #---------------------------------------------------------------------------
2250 CONVERT_STRICT
= _gdi
.CONVERT_STRICT
2251 CONVERT_SUBSTITUTE
= _gdi
.CONVERT_SUBSTITUTE
2252 PLATFORM_CURRENT
= _gdi
.PLATFORM_CURRENT
2253 PLATFORM_UNIX
= _gdi
.PLATFORM_UNIX
2254 PLATFORM_WINDOWS
= _gdi
.PLATFORM_WINDOWS
2255 PLATFORM_OS2
= _gdi
.PLATFORM_OS2
2256 PLATFORM_MAC
= _gdi
.PLATFORM_MAC
2257 class EncodingConverter(core
.Object
):
2259 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2260 def __init__(self
, *args
, **kwargs
):
2261 """__init__() -> EncodingConverter"""
2262 newobj
= _gdi
.new_EncodingConverter(*args
, **kwargs
)
2263 self
.this
= newobj
.this
2266 def __del__(self
, destroy
=_gdi
.delete_EncodingConverter
):
2269 if self
.thisown
: destroy(self
)
2272 def Init(*args
, **kwargs
):
2273 """Init(int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool"""
2274 return _gdi
.EncodingConverter_Init(*args
, **kwargs
)
2276 def Convert(*args
, **kwargs
):
2277 """Convert(String input) -> String"""
2278 return _gdi
.EncodingConverter_Convert(*args
, **kwargs
)
2280 def GetPlatformEquivalents(*args
, **kwargs
):
2281 """GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2282 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2284 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2285 def GetAllEquivalents(*args
, **kwargs
):
2286 """GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2287 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2289 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2290 def CanConvert(*args
, **kwargs
):
2291 """CanConvert(int encIn, int encOut) -> bool"""
2292 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2294 CanConvert
= staticmethod(CanConvert
)
2295 def __nonzero__(self
): return self
.IsOk()
2297 class EncodingConverterPtr(EncodingConverter
):
2298 def __init__(self
, this
):
2300 if not hasattr(self
,"thisown"): self
.thisown
= 0
2301 self
.__class
__ = EncodingConverter
2302 _gdi
.EncodingConverter_swigregister(EncodingConverterPtr
)
2304 def GetTranslation(*args
):
2306 GetTranslation(String str) -> String
2307 GetTranslation(String str, String strPlural, size_t n) -> String
2309 return _gdi
.GetTranslation(*args
)
2311 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2312 """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2313 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2315 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2316 """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2317 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2319 def EncodingConverter_CanConvert(*args
, **kwargs
):
2320 """EncodingConverter_CanConvert(int encIn, int encOut) -> bool"""
2321 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2323 #----------------------------------------------------------------------------
2324 # wxGTK sets the locale when initialized. Doing this at the Python
2325 # level should set it up to match what GTK is doing at the C level.
2326 if wx
.Platform
== "__WXGTK__":
2329 locale
.setlocale(locale
.LC_ALL
, "")
2333 # On MSW add the directory where the wxWindows catalogs were installed
2334 # to the default catalog path.
2335 if wx
.Platform
== "__WXMSW__":
2337 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2338 Locale_AddCatalogLookupPathPrefix(localedir
)
2341 #----------------------------------------------------------------------------
2343 #---------------------------------------------------------------------------
2345 class DC(core
.Object
):
2346 def __init__(self
): raise RuntimeError, "No constructor defined"
2348 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2349 def __del__(self
, destroy
=_gdi
.delete_DC
):
2352 if self
.thisown
: destroy(self
)
2355 def BeginDrawing(*args
, **kwargs
):
2356 """BeginDrawing()"""
2357 return _gdi
.DC_BeginDrawing(*args
, **kwargs
)
2359 def EndDrawing(*args
, **kwargs
):
2361 return _gdi
.DC_EndDrawing(*args
, **kwargs
)
2363 def FloodFillXY(*args
, **kwargs
):
2364 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2365 return _gdi
.DC_FloodFillXY(*args
, **kwargs
)
2367 def FloodFill(*args
, **kwargs
):
2368 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2369 return _gdi
.DC_FloodFill(*args
, **kwargs
)
2371 def GetPixelXY(*args
, **kwargs
):
2372 """GetPixelXY(int x, int y) -> Colour"""
2373 return _gdi
.DC_GetPixelXY(*args
, **kwargs
)
2375 def GetPixel(*args
, **kwargs
):
2376 """GetPixel(Point pt) -> Colour"""
2377 return _gdi
.DC_GetPixel(*args
, **kwargs
)
2379 def DrawLineXY(*args
, **kwargs
):
2380 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2381 return _gdi
.DC_DrawLineXY(*args
, **kwargs
)
2383 def DrawLine(*args
, **kwargs
):
2384 """DrawLine(Point pt1, Point pt2)"""
2385 return _gdi
.DC_DrawLine(*args
, **kwargs
)
2387 def CrossHairXY(*args
, **kwargs
):
2388 """CrossHairXY(int x, int y)"""
2389 return _gdi
.DC_CrossHairXY(*args
, **kwargs
)
2391 def CrossHair(*args
, **kwargs
):
2392 """CrossHair(Point pt)"""
2393 return _gdi
.DC_CrossHair(*args
, **kwargs
)
2395 def DrawArcXY(*args
, **kwargs
):
2396 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2397 return _gdi
.DC_DrawArcXY(*args
, **kwargs
)
2399 def DrawArc(*args
, **kwargs
):
2400 """DrawArc(Point pt1, Point pt2, Point centre)"""
2401 return _gdi
.DC_DrawArc(*args
, **kwargs
)
2403 def DrawCheckMarkXY(*args
, **kwargs
):
2404 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2405 return _gdi
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2407 def DrawCheckMark(*args
, **kwargs
):
2408 """DrawCheckMark(Rect rect)"""
2409 return _gdi
.DC_DrawCheckMark(*args
, **kwargs
)
2411 def DrawEllipticArcXY(*args
, **kwargs
):
2412 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2413 return _gdi
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2415 def DrawEllipticArc(*args
, **kwargs
):
2416 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2417 return _gdi
.DC_DrawEllipticArc(*args
, **kwargs
)
2419 def DrawPointXY(*args
, **kwargs
):
2420 """DrawPointXY(int x, int y)"""
2421 return _gdi
.DC_DrawPointXY(*args
, **kwargs
)
2423 def DrawPoint(*args
, **kwargs
):
2424 """DrawPoint(Point pt)"""
2425 return _gdi
.DC_DrawPoint(*args
, **kwargs
)
2427 def DrawRectangleXY(*args
, **kwargs
):
2428 """DrawRectangleXY(int x, int y, int width, int height)"""
2429 return _gdi
.DC_DrawRectangleXY(*args
, **kwargs
)
2431 def DrawRectangle(*args
, **kwargs
):
2432 """DrawRectangle(Point pt, Size sz)"""
2433 return _gdi
.DC_DrawRectangle(*args
, **kwargs
)
2435 def DrawRectangleRect(*args
, **kwargs
):
2436 """DrawRectangleRect(Rect rect)"""
2437 return _gdi
.DC_DrawRectangleRect(*args
, **kwargs
)
2439 def DrawRoundedRectangleXY(*args
, **kwargs
):
2440 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2441 return _gdi
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2443 def DrawRoundedRectangle(*args
, **kwargs
):
2444 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2445 return _gdi
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2447 def DrawRoundedRectangleRect(*args
, **kwargs
):
2448 """DrawRoundedRectangleRect(Rect r, double radius)"""
2449 return _gdi
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2451 def DrawCircleXY(*args
, **kwargs
):
2452 """DrawCircleXY(int x, int y, int radius)"""
2453 return _gdi
.DC_DrawCircleXY(*args
, **kwargs
)
2455 def DrawCircle(*args
, **kwargs
):
2456 """DrawCircle(Point pt, int radius)"""
2457 return _gdi
.DC_DrawCircle(*args
, **kwargs
)
2459 def DrawEllipseXY(*args
, **kwargs
):
2460 """DrawEllipseXY(int x, int y, int width, int height)"""
2461 return _gdi
.DC_DrawEllipseXY(*args
, **kwargs
)
2463 def DrawEllipse(*args
, **kwargs
):
2464 """DrawEllipse(Point pt, Size sz)"""
2465 return _gdi
.DC_DrawEllipse(*args
, **kwargs
)
2467 def DrawEllipseRect(*args
, **kwargs
):
2468 """DrawEllipseRect(Rect rect)"""
2469 return _gdi
.DC_DrawEllipseRect(*args
, **kwargs
)
2471 def DrawIconXY(*args
, **kwargs
):
2472 """DrawIconXY(Icon icon, int x, int y)"""
2473 return _gdi
.DC_DrawIconXY(*args
, **kwargs
)
2475 def DrawIcon(*args
, **kwargs
):
2476 """DrawIcon(Icon icon, Point pt)"""
2477 return _gdi
.DC_DrawIcon(*args
, **kwargs
)
2479 def DrawBitmapXY(*args
, **kwargs
):
2480 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2481 return _gdi
.DC_DrawBitmapXY(*args
, **kwargs
)
2483 def DrawBitmap(*args
, **kwargs
):
2484 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2485 return _gdi
.DC_DrawBitmap(*args
, **kwargs
)
2487 def DrawTextXY(*args
, **kwargs
):
2488 """DrawTextXY(String text, int x, int y)"""
2489 return _gdi
.DC_DrawTextXY(*args
, **kwargs
)
2491 def DrawText(*args
, **kwargs
):
2492 """DrawText(String text, Point pt)"""
2493 return _gdi
.DC_DrawText(*args
, **kwargs
)
2495 def DrawRotatedTextXY(*args
, **kwargs
):
2496 """DrawRotatedTextXY(String text, int x, int y, double angle)"""
2497 return _gdi
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2499 def DrawRotatedText(*args
, **kwargs
):
2500 """DrawRotatedText(String text, Point pt, double angle)"""
2501 return _gdi
.DC_DrawRotatedText(*args
, **kwargs
)
2503 def BlitXY(*args
, **kwargs
):
2505 BlitXY(int xdest, int ydest, int width, int height, DC source,
2506 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2507 int xsrcMask=-1, int ysrcMask=-1) -> bool
2509 return _gdi
.DC_BlitXY(*args
, **kwargs
)
2511 def Blit(*args
, **kwargs
):
2513 Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2514 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
2516 return _gdi
.DC_Blit(*args
, **kwargs
)
2518 def DrawLines(*args
, **kwargs
):
2519 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2520 return _gdi
.DC_DrawLines(*args
, **kwargs
)
2522 def DrawPolygon(*args
, **kwargs
):
2524 DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2525 int fillStyle=ODDEVEN_RULE)
2527 return _gdi
.DC_DrawPolygon(*args
, **kwargs
)
2529 def DrawLabel(*args
, **kwargs
):
2531 DrawLabel(String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2534 return _gdi
.DC_DrawLabel(*args
, **kwargs
)
2536 def DrawImageLabel(*args
, **kwargs
):
2538 DrawImageLabel(String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2539 int indexAccel=-1) -> Rect
2541 return _gdi
.DC_DrawImageLabel(*args
, **kwargs
)
2543 def DrawSpline(*args
, **kwargs
):
2544 """DrawSpline(int points, Point points_array)"""
2545 return _gdi
.DC_DrawSpline(*args
, **kwargs
)
2547 def Clear(*args
, **kwargs
):
2549 return _gdi
.DC_Clear(*args
, **kwargs
)
2551 def StartDoc(*args
, **kwargs
):
2552 """StartDoc(String message) -> bool"""
2553 return _gdi
.DC_StartDoc(*args
, **kwargs
)
2555 def EndDoc(*args
, **kwargs
):
2557 return _gdi
.DC_EndDoc(*args
, **kwargs
)
2559 def StartPage(*args
, **kwargs
):
2561 return _gdi
.DC_StartPage(*args
, **kwargs
)
2563 def EndPage(*args
, **kwargs
):
2565 return _gdi
.DC_EndPage(*args
, **kwargs
)
2567 def SetFont(*args
, **kwargs
):
2568 """SetFont(Font font)"""
2569 return _gdi
.DC_SetFont(*args
, **kwargs
)
2571 def SetPen(*args
, **kwargs
):
2572 """SetPen(Pen pen)"""
2573 return _gdi
.DC_SetPen(*args
, **kwargs
)
2575 def SetBrush(*args
, **kwargs
):
2576 """SetBrush(Brush brush)"""
2577 return _gdi
.DC_SetBrush(*args
, **kwargs
)
2579 def SetBackground(*args
, **kwargs
):
2580 """SetBackground(Brush brush)"""
2581 return _gdi
.DC_SetBackground(*args
, **kwargs
)
2583 def SetBackgroundMode(*args
, **kwargs
):
2584 """SetBackgroundMode(int mode)"""
2585 return _gdi
.DC_SetBackgroundMode(*args
, **kwargs
)
2587 def SetPalette(*args
, **kwargs
):
2588 """SetPalette(Palette palette)"""
2589 return _gdi
.DC_SetPalette(*args
, **kwargs
)
2591 def SetClippingRegionXY(*args
, **kwargs
):
2592 """SetClippingRegionXY(int x, int y, int width, int height)"""
2593 return _gdi
.DC_SetClippingRegionXY(*args
, **kwargs
)
2595 def SetClippingRegion(*args
, **kwargs
):
2596 """SetClippingRegion(Point pt, Size sz)"""
2597 return _gdi
.DC_SetClippingRegion(*args
, **kwargs
)
2599 def SetClippingRect(*args
, **kwargs
):
2600 """SetClippingRect(Rect rect)"""
2601 return _gdi
.DC_SetClippingRect(*args
, **kwargs
)
2603 def SetClippingRegionAsRegion(*args
, **kwargs
):
2604 """SetClippingRegionAsRegion(Region region)"""
2605 return _gdi
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2607 def DestroyClippingRegion(*args
, **kwargs
):
2608 """DestroyClippingRegion()"""
2609 return _gdi
.DC_DestroyClippingRegion(*args
, **kwargs
)
2611 def GetClippingBox(*args
, **kwargs
):
2612 """GetClippingBox() -> (x, y, width, height)"""
2613 return _gdi
.DC_GetClippingBox(*args
, **kwargs
)
2615 def GetClippingRect(*args
, **kwargs
):
2616 """GetClippingRect() -> Rect"""
2617 return _gdi
.DC_GetClippingRect(*args
, **kwargs
)
2619 def GetCharHeight(*args
, **kwargs
):
2620 """GetCharHeight() -> int"""
2621 return _gdi
.DC_GetCharHeight(*args
, **kwargs
)
2623 def GetCharWidth(*args
, **kwargs
):
2624 """GetCharWidth() -> int"""
2625 return _gdi
.DC_GetCharWidth(*args
, **kwargs
)
2627 def GetTextExtent(*args
, **kwargs
):
2629 GetTextExtent(wxString string) -> (width, height)
2631 Get the width and height of the text using the current font.
2632 Only works for single line strings.
2634 return _gdi
.DC_GetTextExtent(*args
, **kwargs
)
2636 def GetFullTextExtent(*args
, **kwargs
):
2638 GetFullTextExtent(wxString string, Font font=None) ->
2639 (width, height, descent, externalLeading)
2641 Get the width, height, decent and leading of the text using the current or specified font.
2642 Only works for single line strings.
2644 return _gdi
.DC_GetFullTextExtent(*args
, **kwargs
)
2646 def GetMultiLineTextExtent(*args
, **kwargs
):
2648 GetMultiLineTextExtent(wxString string, Font font=None) ->
2649 (width, height, descent, externalLeading)
2651 Get the width, height, decent and leading of the text using the current or specified font.
2652 Works for single as well as multi-line strings.
2654 return _gdi
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2656 def GetPartialTextExtents(*args
, **kwargs
):
2657 """GetPartialTextExtents(String text) -> wxArrayInt"""
2658 return _gdi
.DC_GetPartialTextExtents(*args
, **kwargs
)
2660 def GetSize(*args
, **kwargs
):
2664 Get the DC size in device units.
2666 return _gdi
.DC_GetSize(*args
, **kwargs
)
2668 def GetSizeTuple(*args
, **kwargs
):
2670 GetSizeTuple() -> (width, height)
2672 Get the DC size in device units.
2674 return _gdi
.DC_GetSizeTuple(*args
, **kwargs
)
2676 def GetSizeMM(*args
, **kwargs
):
2680 Get the DC size in milimeters.
2682 return _gdi
.DC_GetSizeMM(*args
, **kwargs
)
2684 def GetSizeMMTuple(*args
, **kwargs
):
2686 GetSizeMMTuple() -> (width, height)
2688 Get the DC size in milimeters.
2690 return _gdi
.DC_GetSizeMMTuple(*args
, **kwargs
)
2692 def DeviceToLogicalX(*args
, **kwargs
):
2693 """DeviceToLogicalX(int x) -> int"""
2694 return _gdi
.DC_DeviceToLogicalX(*args
, **kwargs
)
2696 def DeviceToLogicalY(*args
, **kwargs
):
2697 """DeviceToLogicalY(int y) -> int"""
2698 return _gdi
.DC_DeviceToLogicalY(*args
, **kwargs
)
2700 def DeviceToLogicalXRel(*args
, **kwargs
):
2701 """DeviceToLogicalXRel(int x) -> int"""
2702 return _gdi
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2704 def DeviceToLogicalYRel(*args
, **kwargs
):
2705 """DeviceToLogicalYRel(int y) -> int"""
2706 return _gdi
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2708 def LogicalToDeviceX(*args
, **kwargs
):
2709 """LogicalToDeviceX(int x) -> int"""
2710 return _gdi
.DC_LogicalToDeviceX(*args
, **kwargs
)
2712 def LogicalToDeviceY(*args
, **kwargs
):
2713 """LogicalToDeviceY(int y) -> int"""
2714 return _gdi
.DC_LogicalToDeviceY(*args
, **kwargs
)
2716 def LogicalToDeviceXRel(*args
, **kwargs
):
2717 """LogicalToDeviceXRel(int x) -> int"""
2718 return _gdi
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2720 def LogicalToDeviceYRel(*args
, **kwargs
):
2721 """LogicalToDeviceYRel(int y) -> int"""
2722 return _gdi
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2724 def CanDrawBitmap(*args
, **kwargs
):
2725 """CanDrawBitmap() -> bool"""
2726 return _gdi
.DC_CanDrawBitmap(*args
, **kwargs
)
2728 def CanGetTextExtent(*args
, **kwargs
):
2729 """CanGetTextExtent() -> bool"""
2730 return _gdi
.DC_CanGetTextExtent(*args
, **kwargs
)
2732 def GetDepth(*args
, **kwargs
):
2733 """GetDepth() -> int"""
2734 return _gdi
.DC_GetDepth(*args
, **kwargs
)
2736 def GetPPI(*args
, **kwargs
):
2737 """GetPPI() -> Size"""
2738 return _gdi
.DC_GetPPI(*args
, **kwargs
)
2740 def Ok(*args
, **kwargs
):
2742 return _gdi
.DC_Ok(*args
, **kwargs
)
2744 def GetBackgroundMode(*args
, **kwargs
):
2745 """GetBackgroundMode() -> int"""
2746 return _gdi
.DC_GetBackgroundMode(*args
, **kwargs
)
2748 def GetBackground(*args
, **kwargs
):
2749 """GetBackground() -> Brush"""
2750 return _gdi
.DC_GetBackground(*args
, **kwargs
)
2752 def GetBrush(*args
, **kwargs
):
2753 """GetBrush() -> Brush"""
2754 return _gdi
.DC_GetBrush(*args
, **kwargs
)
2756 def GetFont(*args
, **kwargs
):
2757 """GetFont() -> Font"""
2758 return _gdi
.DC_GetFont(*args
, **kwargs
)
2760 def GetPen(*args
, **kwargs
):
2761 """GetPen() -> Pen"""
2762 return _gdi
.DC_GetPen(*args
, **kwargs
)
2764 def GetTextBackground(*args
, **kwargs
):
2765 """GetTextBackground() -> Colour"""
2766 return _gdi
.DC_GetTextBackground(*args
, **kwargs
)
2768 def GetTextForeground(*args
, **kwargs
):
2769 """GetTextForeground() -> Colour"""
2770 return _gdi
.DC_GetTextForeground(*args
, **kwargs
)
2772 def SetTextForeground(*args
, **kwargs
):
2773 """SetTextForeground(Colour colour)"""
2774 return _gdi
.DC_SetTextForeground(*args
, **kwargs
)
2776 def SetTextBackground(*args
, **kwargs
):
2777 """SetTextBackground(Colour colour)"""
2778 return _gdi
.DC_SetTextBackground(*args
, **kwargs
)
2780 def GetMapMode(*args
, **kwargs
):
2781 """GetMapMode() -> int"""
2782 return _gdi
.DC_GetMapMode(*args
, **kwargs
)
2784 def SetMapMode(*args
, **kwargs
):
2785 """SetMapMode(int mode)"""
2786 return _gdi
.DC_SetMapMode(*args
, **kwargs
)
2788 def GetUserScale(*args
, **kwargs
):
2789 """GetUserScale() -> (xScale, yScale)"""
2790 return _gdi
.DC_GetUserScale(*args
, **kwargs
)
2792 def SetUserScale(*args
, **kwargs
):
2793 """SetUserScale(double x, double y)"""
2794 return _gdi
.DC_SetUserScale(*args
, **kwargs
)
2796 def GetLogicalScale(*args
, **kwargs
):
2797 """GetLogicalScale() -> (xScale, yScale)"""
2798 return _gdi
.DC_GetLogicalScale(*args
, **kwargs
)
2800 def SetLogicalScale(*args
, **kwargs
):
2801 """SetLogicalScale(double x, double y)"""
2802 return _gdi
.DC_SetLogicalScale(*args
, **kwargs
)
2804 def GetLogicalOrigin(*args
, **kwargs
):
2805 """GetLogicalOrigin() -> Point"""
2806 return _gdi
.DC_GetLogicalOrigin(*args
, **kwargs
)
2808 def GetLogicalOriginTuple(*args
, **kwargs
):
2809 """GetLogicalOriginTuple() -> (x,y)"""
2810 return _gdi
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2812 def SetLogicalOrigin(*args
, **kwargs
):
2813 """SetLogicalOrigin(int x, int y)"""
2814 return _gdi
.DC_SetLogicalOrigin(*args
, **kwargs
)
2816 def GetDeviceOrigin(*args
, **kwargs
):
2817 """GetDeviceOrigin() -> Point"""
2818 return _gdi
.DC_GetDeviceOrigin(*args
, **kwargs
)
2820 def GetDeviceOriginTuple(*args
, **kwargs
):
2821 """GetDeviceOriginTuple() -> (x,y)"""
2822 return _gdi
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2824 def SetDeviceOrigin(*args
, **kwargs
):
2825 """SetDeviceOrigin(int x, int y)"""
2826 return _gdi
.DC_SetDeviceOrigin(*args
, **kwargs
)
2828 def SetAxisOrientation(*args
, **kwargs
):
2829 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2830 return _gdi
.DC_SetAxisOrientation(*args
, **kwargs
)
2832 def GetLogicalFunction(*args
, **kwargs
):
2833 """GetLogicalFunction() -> int"""
2834 return _gdi
.DC_GetLogicalFunction(*args
, **kwargs
)
2836 def SetLogicalFunction(*args
, **kwargs
):
2837 """SetLogicalFunction(int function)"""
2838 return _gdi
.DC_SetLogicalFunction(*args
, **kwargs
)
2840 def SetOptimization(*args
, **kwargs
):
2841 """SetOptimization(bool opt)"""
2842 return _gdi
.DC_SetOptimization(*args
, **kwargs
)
2844 def GetOptimization(*args
, **kwargs
):
2845 """GetOptimization() -> bool"""
2846 return _gdi
.DC_GetOptimization(*args
, **kwargs
)
2848 def CalcBoundingBox(*args
, **kwargs
):
2849 """CalcBoundingBox(int x, int y)"""
2850 return _gdi
.DC_CalcBoundingBox(*args
, **kwargs
)
2852 def ResetBoundingBox(*args
, **kwargs
):
2853 """ResetBoundingBox()"""
2854 return _gdi
.DC_ResetBoundingBox(*args
, **kwargs
)
2856 def MinX(*args
, **kwargs
):
2858 return _gdi
.DC_MinX(*args
, **kwargs
)
2860 def MaxX(*args
, **kwargs
):
2862 return _gdi
.DC_MaxX(*args
, **kwargs
)
2864 def MinY(*args
, **kwargs
):
2866 return _gdi
.DC_MinY(*args
, **kwargs
)
2868 def MaxY(*args
, **kwargs
):
2870 return _gdi
.DC_MaxY(*args
, **kwargs
)
2872 def GetBoundingBox(*args
, **kwargs
):
2873 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2874 return _gdi
.DC_GetBoundingBox(*args
, **kwargs
)
2876 def __nonzero__(self
): return self
.Ok()
2877 def _DrawPointList(*args
, **kwargs
):
2878 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2879 return _gdi
.DC__DrawPointList(*args
, **kwargs
)
2881 def _DrawLineList(*args
, **kwargs
):
2882 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2883 return _gdi
.DC__DrawLineList(*args
, **kwargs
)
2885 def _DrawRectangleList(*args
, **kwargs
):
2886 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2887 return _gdi
.DC__DrawRectangleList(*args
, **kwargs
)
2889 def _DrawEllipseList(*args
, **kwargs
):
2890 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2891 return _gdi
.DC__DrawEllipseList(*args
, **kwargs
)
2893 def _DrawPolygonList(*args
, **kwargs
):
2894 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2895 return _gdi
.DC__DrawPolygonList(*args
, **kwargs
)
2897 def _DrawTextList(*args
, **kwargs
):
2899 _DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2900 PyObject backgroundList) -> PyObject
2902 return _gdi
.DC__DrawTextList(*args
, **kwargs
)
2904 def DrawPointList(self
, points
, pens
=None):
2907 elif isinstance(pens
, wx
.Pen
):
2909 elif len(pens
) != len(points
):
2910 raise ValueError('points and pens must have same length')
2911 return self
._DrawPointList
(points
, pens
, [])
2914 def DrawLineList(self
, lines
, pens
=None):
2917 elif isinstance(pens
, wx
.Pen
):
2919 elif len(pens
) != len(lines
):
2920 raise ValueError('lines and pens must have same length')
2921 return self
._DrawLineList
(lines
, pens
, [])
2924 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2927 elif isinstance(pens
, wx
.Pen
):
2929 elif len(pens
) != len(rectangles
):
2930 raise ValueError('rectangles and pens must have same length')
2933 elif isinstance(brushes
, wx
.Brush
):
2935 elif len(brushes
) != len(rectangles
):
2936 raise ValueError('rectangles and brushes must have same length')
2937 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2940 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2943 elif isinstance(pens
, wx
.Pen
):
2945 elif len(pens
) != len(ellipses
):
2946 raise ValueError('ellipses and pens must have same length')
2949 elif isinstance(brushes
, wx
.Brush
):
2951 elif len(brushes
) != len(ellipses
):
2952 raise ValueError('ellipses and brushes must have same length')
2953 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2956 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2957 ## Note: This does not currently support fill style or offset
2958 ## you can always use the non-List version if need be.
2961 elif isinstance(pens
, wx
.Pen
):
2963 elif len(pens
) != len(polygons
):
2964 raise ValueError('polygons and pens must have same length')
2967 elif isinstance(brushes
, wx
.Brush
):
2969 elif len(brushes
) != len(polygons
):
2970 raise ValueError('polygons and brushes must have same length')
2971 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2974 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2975 ## NOTE: this does not currently support changing the font
2976 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
2977 ## If you want backgounds to do anything.
2978 if type(textList
) == type(''):
2979 textList
= [textList
]
2980 elif len(textList
) != len(coords
):
2981 raise ValueError('textlist and coords must have same length')
2982 if foregrounds
is None:
2984 elif isinstance(foregrounds
, wx
.Colour
):
2985 foregrounds
= [foregrounds
]
2986 elif len(foregrounds
) != len(coords
):
2987 raise ValueError('foregrounds and coords must have same length')
2988 if backgrounds
is None:
2990 elif isinstance(backgrounds
, wx
.Colour
):
2991 backgrounds
= [backgrounds
]
2992 elif len(backgrounds
) != len(coords
):
2993 raise ValueError('backgrounds and coords must have same length')
2994 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2998 def __init__(self
, this
):
3000 if not hasattr(self
,"thisown"): self
.thisown
= 0
3002 _gdi
.DC_swigregister(DCPtr
)
3004 #---------------------------------------------------------------------------
3008 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3009 def __init__(self
, *args
, **kwargs
):
3010 """__init__() -> MemoryDC"""
3011 newobj
= _gdi
.new_MemoryDC(*args
, **kwargs
)
3012 self
.this
= newobj
.this
3015 def SelectObject(*args
, **kwargs
):
3016 """SelectObject(Bitmap bitmap)"""
3017 return _gdi
.MemoryDC_SelectObject(*args
, **kwargs
)
3020 class MemoryDCPtr(MemoryDC
):
3021 def __init__(self
, this
):
3023 if not hasattr(self
,"thisown"): self
.thisown
= 0
3024 self
.__class
__ = MemoryDC
3025 _gdi
.MemoryDC_swigregister(MemoryDCPtr
)
3027 def MemoryDCFromDC(*args
, **kwargs
):
3028 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
3029 val
= _gdi
.new_MemoryDCFromDC(*args
, **kwargs
)
3033 #---------------------------------------------------------------------------
3035 class BufferedDC(MemoryDC
):
3037 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3038 def __init__(self
, *args
):
3040 __init__(DC dc, Bitmap buffer) -> BufferedDC
3041 __init__(DC dc, Size area) -> BufferedDC
3043 newobj
= _gdi
.new_BufferedDC(*args
)
3044 self
.this
= newobj
.this
3047 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
3049 def __del__(self
, destroy
=_gdi
.delete_BufferedDC
):
3052 if self
.thisown
: destroy(self
)
3055 def UnMask(*args
, **kwargs
):
3057 return _gdi
.BufferedDC_UnMask(*args
, **kwargs
)
3060 class BufferedDCPtr(BufferedDC
):
3061 def __init__(self
, this
):
3063 if not hasattr(self
,"thisown"): self
.thisown
= 0
3064 self
.__class
__ = BufferedDC
3065 _gdi
.BufferedDC_swigregister(BufferedDCPtr
)
3067 def BufferedDCInternalBuffer(*args
):
3068 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
3069 val
= _gdi
.new_BufferedDCInternalBuffer(*args
)
3071 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
3074 class BufferedPaintDC(BufferedDC
):
3076 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3077 def __init__(self
, *args
, **kwargs
):
3078 """__init__(Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
3079 newobj
= _gdi
.new_BufferedPaintDC(*args
, **kwargs
)
3080 self
.this
= newobj
.this
3084 class BufferedPaintDCPtr(BufferedPaintDC
):
3085 def __init__(self
, this
):
3087 if not hasattr(self
,"thisown"): self
.thisown
= 0
3088 self
.__class
__ = BufferedPaintDC
3089 _gdi
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
3091 #---------------------------------------------------------------------------
3095 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3096 def __init__(self
, *args
, **kwargs
):
3097 """__init__() -> ScreenDC"""
3098 newobj
= _gdi
.new_ScreenDC(*args
, **kwargs
)
3099 self
.this
= newobj
.this
3102 def StartDrawingOnTopWin(*args
, **kwargs
):
3103 """StartDrawingOnTopWin(Window window) -> bool"""
3104 return _gdi
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
3106 def StartDrawingOnTop(*args
, **kwargs
):
3107 """StartDrawingOnTop(Rect rect=None) -> bool"""
3108 return _gdi
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
3110 def EndDrawingOnTop(*args
, **kwargs
):
3111 """EndDrawingOnTop() -> bool"""
3112 return _gdi
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
3115 class ScreenDCPtr(ScreenDC
):
3116 def __init__(self
, this
):
3118 if not hasattr(self
,"thisown"): self
.thisown
= 0
3119 self
.__class
__ = ScreenDC
3120 _gdi
.ScreenDC_swigregister(ScreenDCPtr
)
3122 #---------------------------------------------------------------------------
3126 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3127 def __init__(self
, *args
, **kwargs
):
3128 """__init__(Window win) -> ClientDC"""
3129 newobj
= _gdi
.new_ClientDC(*args
, **kwargs
)
3130 self
.this
= newobj
.this
3134 class ClientDCPtr(ClientDC
):
3135 def __init__(self
, this
):
3137 if not hasattr(self
,"thisown"): self
.thisown
= 0
3138 self
.__class
__ = ClientDC
3139 _gdi
.ClientDC_swigregister(ClientDCPtr
)
3141 #---------------------------------------------------------------------------
3145 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3146 def __init__(self
, *args
, **kwargs
):
3147 """__init__(Window win) -> PaintDC"""
3148 newobj
= _gdi
.new_PaintDC(*args
, **kwargs
)
3149 self
.this
= newobj
.this
3153 class PaintDCPtr(PaintDC
):
3154 def __init__(self
, this
):
3156 if not hasattr(self
,"thisown"): self
.thisown
= 0
3157 self
.__class
__ = PaintDC
3158 _gdi
.PaintDC_swigregister(PaintDCPtr
)
3160 #---------------------------------------------------------------------------
3164 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3165 def __init__(self
, *args
, **kwargs
):
3166 """__init__(Window win) -> WindowDC"""
3167 newobj
= _gdi
.new_WindowDC(*args
, **kwargs
)
3168 self
.this
= newobj
.this
3172 class WindowDCPtr(WindowDC
):
3173 def __init__(self
, this
):
3175 if not hasattr(self
,"thisown"): self
.thisown
= 0
3176 self
.__class
__ = WindowDC
3177 _gdi
.WindowDC_swigregister(WindowDCPtr
)
3179 #---------------------------------------------------------------------------
3183 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3184 def __init__(self
, *args
, **kwargs
):
3185 """__init__(DC dc, bool mirror) -> MirrorDC"""
3186 newobj
= _gdi
.new_MirrorDC(*args
, **kwargs
)
3187 self
.this
= newobj
.this
3191 class MirrorDCPtr(MirrorDC
):
3192 def __init__(self
, this
):
3194 if not hasattr(self
,"thisown"): self
.thisown
= 0
3195 self
.__class
__ = MirrorDC
3196 _gdi
.MirrorDC_swigregister(MirrorDCPtr
)
3198 #---------------------------------------------------------------------------
3200 class PostScriptDC(DC
):
3202 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3203 def __init__(self
, *args
, **kwargs
):
3204 """__init__(wxPrintData printData) -> PostScriptDC"""
3205 newobj
= _gdi
.new_PostScriptDC(*args
, **kwargs
)
3206 self
.this
= newobj
.this
3209 def GetPrintData(*args
, **kwargs
):
3210 """GetPrintData() -> wxPrintData"""
3211 return _gdi
.PostScriptDC_GetPrintData(*args
, **kwargs
)
3213 def SetPrintData(*args
, **kwargs
):
3214 """SetPrintData(wxPrintData data)"""
3215 return _gdi
.PostScriptDC_SetPrintData(*args
, **kwargs
)
3217 def SetResolution(*args
, **kwargs
):
3218 """SetResolution(int ppi)"""
3219 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
3221 SetResolution
= staticmethod(SetResolution
)
3222 def GetResolution(*args
, **kwargs
):
3223 """GetResolution() -> int"""
3224 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
3226 GetResolution
= staticmethod(GetResolution
)
3228 class PostScriptDCPtr(PostScriptDC
):
3229 def __init__(self
, this
):
3231 if not hasattr(self
,"thisown"): self
.thisown
= 0
3232 self
.__class
__ = PostScriptDC
3233 _gdi
.PostScriptDC_swigregister(PostScriptDCPtr
)
3235 def PostScriptDC_SetResolution(*args
, **kwargs
):
3236 """PostScriptDC_SetResolution(int ppi)"""
3237 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
3239 def PostScriptDC_GetResolution(*args
, **kwargs
):
3240 """PostScriptDC_GetResolution() -> int"""
3241 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
3243 #---------------------------------------------------------------------------
3245 class MetaFile(core
.Object
):
3247 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3248 def __init__(self
, *args
, **kwargs
):
3249 """__init__(String filename=EmptyString) -> MetaFile"""
3250 newobj
= _gdi
.new_MetaFile(*args
, **kwargs
)
3251 self
.this
= newobj
.this
3254 def __del__(self
, destroy
=_gdi
.delete_MetaFile
):
3257 if self
.thisown
: destroy(self
)
3260 def Ok(*args
, **kwargs
):
3262 return _gdi
.MetaFile_Ok(*args
, **kwargs
)
3264 def SetClipboard(*args
, **kwargs
):
3265 """SetClipboard(int width=0, int height=0) -> bool"""
3266 return _gdi
.MetaFile_SetClipboard(*args
, **kwargs
)
3268 def GetSize(*args
, **kwargs
):
3269 """GetSize() -> Size"""
3270 return _gdi
.MetaFile_GetSize(*args
, **kwargs
)
3272 def GetWidth(*args
, **kwargs
):
3273 """GetWidth() -> int"""
3274 return _gdi
.MetaFile_GetWidth(*args
, **kwargs
)
3276 def GetHeight(*args
, **kwargs
):
3277 """GetHeight() -> int"""
3278 return _gdi
.MetaFile_GetHeight(*args
, **kwargs
)
3280 def GetFileName(*args
, **kwargs
):
3281 """GetFileName() -> String"""
3282 return _gdi
.MetaFile_GetFileName(*args
, **kwargs
)
3284 def __nonzero__(self
): return self
.Ok()
3286 class MetaFilePtr(MetaFile
):
3287 def __init__(self
, this
):
3289 if not hasattr(self
,"thisown"): self
.thisown
= 0
3290 self
.__class
__ = MetaFile
3291 _gdi
.MetaFile_swigregister(MetaFilePtr
)
3293 class MetaFileDC(DC
):
3295 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3296 def __init__(self
, *args
, **kwargs
):
3298 __init__(String filename=EmptyString, int width=0, int height=0,
3299 String description=EmptyString) -> MetaFileDC
3301 newobj
= _gdi
.new_MetaFileDC(*args
, **kwargs
)
3302 self
.this
= newobj
.this
3305 def Close(*args
, **kwargs
):
3306 """Close() -> MetaFile"""
3307 return _gdi
.MetaFileDC_Close(*args
, **kwargs
)
3310 class MetaFileDCPtr(MetaFileDC
):
3311 def __init__(self
, this
):
3313 if not hasattr(self
,"thisown"): self
.thisown
= 0
3314 self
.__class
__ = MetaFileDC
3315 _gdi
.MetaFileDC_swigregister(MetaFileDCPtr
)
3317 class PrinterDC(DC
):
3319 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3320 def __init__(self
, *args
, **kwargs
):
3321 """__init__(wxPrintData printData) -> PrinterDC"""
3322 newobj
= _gdi
.new_PrinterDC(*args
, **kwargs
)
3323 self
.this
= newobj
.this
3327 class PrinterDCPtr(PrinterDC
):
3328 def __init__(self
, this
):
3330 if not hasattr(self
,"thisown"): self
.thisown
= 0
3331 self
.__class
__ = PrinterDC
3332 _gdi
.PrinterDC_swigregister(PrinterDCPtr
)
3335 """DC class that has methods with 2.4 compatible parameters."""
3336 FloodFill
= DC
.FloodFillXY
3337 GetPixel
= DC
.GetPixelXY
3338 DrawLine
= DC
.DrawLineXY
3339 CrossHair
= DC
.CrossHairXY
3340 DrawArc
= DC
.DrawArcXY
3341 DrawCheckMark
= DC
.DrawCheckMarkXY
3342 DrawEllipticArc
= DC
.DrawEllipticArcXY
3343 DrawPoint
= DC
.DrawPointXY
3344 DrawRectangle
= DC
.DrawRectangleXY
3345 DrawRoundedRectangle
= DC
.DrawRoundedRectangleXY
3346 DrawCircle
= DC
.DrawCircleXY
3347 DrawEllipse
= DC
.DrawEllipseXY
3348 DrawIcon
= DC
.DrawIconXY
3349 DrawBitmap
= DC
.DrawBitmapXY
3350 DrawText
= DC
.DrawTextXY
3351 DrawRotatedText
= DC
.DrawRotatedTextXY
3354 class MemoryDC_old(MemoryDC
):
3355 """DC class that has methods with 2.4 compatible parameters."""
3356 FloodFill
= MemoryDC
.FloodFillXY
3357 GetPixel
= MemoryDC
.GetPixelXY
3358 DrawLine
= MemoryDC
.DrawLineXY
3359 CrossHair
= MemoryDC
.CrossHairXY
3360 DrawArc
= MemoryDC
.DrawArcXY
3361 DrawCheckMark
= MemoryDC
.DrawCheckMarkXY
3362 DrawEllipticArc
= MemoryDC
.DrawEllipticArcXY
3363 DrawPoint
= MemoryDC
.DrawPointXY
3364 DrawRectangle
= MemoryDC
.DrawRectangleXY
3365 DrawRoundedRectangle
= MemoryDC
.DrawRoundedRectangleXY
3366 DrawCircle
= MemoryDC
.DrawCircleXY
3367 DrawEllipse
= MemoryDC
.DrawEllipseXY
3368 DrawIcon
= MemoryDC
.DrawIconXY
3369 DrawBitmap
= MemoryDC
.DrawBitmapXY
3370 DrawText
= MemoryDC
.DrawTextXY
3371 DrawRotatedText
= MemoryDC
.DrawRotatedTextXY
3372 Blit
= MemoryDC
.BlitXY
3374 class BufferedDC_old(BufferedDC
):
3375 """DC class that has methods with 2.4 compatible parameters."""
3376 FloodFill
= BufferedDC
.FloodFillXY
3377 GetPixel
= BufferedDC
.GetPixelXY
3378 DrawLine
= BufferedDC
.DrawLineXY
3379 CrossHair
= BufferedDC
.CrossHairXY
3380 DrawArc
= BufferedDC
.DrawArcXY
3381 DrawCheckMark
= BufferedDC
.DrawCheckMarkXY
3382 DrawEllipticArc
= BufferedDC
.DrawEllipticArcXY
3383 DrawPoint
= BufferedDC
.DrawPointXY
3384 DrawRectangle
= BufferedDC
.DrawRectangleXY
3385 DrawRoundedRectangle
= BufferedDC
.DrawRoundedRectangleXY
3386 DrawCircle
= BufferedDC
.DrawCircleXY
3387 DrawEllipse
= BufferedDC
.DrawEllipseXY
3388 DrawIcon
= BufferedDC
.DrawIconXY
3389 DrawBitmap
= BufferedDC
.DrawBitmapXY
3390 DrawText
= BufferedDC
.DrawTextXY
3391 DrawRotatedText
= BufferedDC
.DrawRotatedTextXY
3392 Blit
= BufferedDC
.BlitXY
3394 class BufferedPaintDC_old(BufferedPaintDC
):
3395 """DC class that has methods with 2.4 compatible parameters."""
3396 FloodFill
= BufferedPaintDC
.FloodFillXY
3397 GetPixel
= BufferedPaintDC
.GetPixelXY
3398 DrawLine
= BufferedPaintDC
.DrawLineXY
3399 CrossHair
= BufferedPaintDC
.CrossHairXY
3400 DrawArc
= BufferedPaintDC
.DrawArcXY
3401 DrawCheckMark
= BufferedPaintDC
.DrawCheckMarkXY
3402 DrawEllipticArc
= BufferedPaintDC
.DrawEllipticArcXY
3403 DrawPoint
= BufferedPaintDC
.DrawPointXY
3404 DrawRectangle
= BufferedPaintDC
.DrawRectangleXY
3405 DrawRoundedRectangle
= BufferedPaintDC
.DrawRoundedRectangleXY
3406 DrawCircle
= BufferedPaintDC
.DrawCircleXY
3407 DrawEllipse
= BufferedPaintDC
.DrawEllipseXY
3408 DrawIcon
= BufferedPaintDC
.DrawIconXY
3409 DrawBitmap
= BufferedPaintDC
.DrawBitmapXY
3410 DrawText
= BufferedPaintDC
.DrawTextXY
3411 DrawRotatedText
= BufferedPaintDC
.DrawRotatedTextXY
3412 Blit
= BufferedPaintDC
.BlitXY
3414 class ScreenDC_old(ScreenDC
):
3415 """DC class that has methods with 2.4 compatible parameters."""
3416 FloodFill
= ScreenDC
.FloodFillXY
3417 GetPixel
= ScreenDC
.GetPixelXY
3418 DrawLine
= ScreenDC
.DrawLineXY
3419 CrossHair
= ScreenDC
.CrossHairXY
3420 DrawArc
= ScreenDC
.DrawArcXY
3421 DrawCheckMark
= ScreenDC
.DrawCheckMarkXY
3422 DrawEllipticArc
= ScreenDC
.DrawEllipticArcXY
3423 DrawPoint
= ScreenDC
.DrawPointXY
3424 DrawRectangle
= ScreenDC
.DrawRectangleXY
3425 DrawRoundedRectangle
= ScreenDC
.DrawRoundedRectangleXY
3426 DrawCircle
= ScreenDC
.DrawCircleXY
3427 DrawEllipse
= ScreenDC
.DrawEllipseXY
3428 DrawIcon
= ScreenDC
.DrawIconXY
3429 DrawBitmap
= ScreenDC
.DrawBitmapXY
3430 DrawText
= ScreenDC
.DrawTextXY
3431 DrawRotatedText
= ScreenDC
.DrawRotatedTextXY
3432 Blit
= ScreenDC
.BlitXY
3434 class ClientDC_old(ClientDC
):
3435 """DC class that has methods with 2.4 compatible parameters."""
3436 FloodFill
= ClientDC
.FloodFillXY
3437 GetPixel
= ClientDC
.GetPixelXY
3438 DrawLine
= ClientDC
.DrawLineXY
3439 CrossHair
= ClientDC
.CrossHairXY
3440 DrawArc
= ClientDC
.DrawArcXY
3441 DrawCheckMark
= ClientDC
.DrawCheckMarkXY
3442 DrawEllipticArc
= ClientDC
.DrawEllipticArcXY
3443 DrawPoint
= ClientDC
.DrawPointXY
3444 DrawRectangle
= ClientDC
.DrawRectangleXY
3445 DrawRoundedRectangle
= ClientDC
.DrawRoundedRectangleXY
3446 DrawCircle
= ClientDC
.DrawCircleXY
3447 DrawEllipse
= ClientDC
.DrawEllipseXY
3448 DrawIcon
= ClientDC
.DrawIconXY
3449 DrawBitmap
= ClientDC
.DrawBitmapXY
3450 DrawText
= ClientDC
.DrawTextXY
3451 DrawRotatedText
= ClientDC
.DrawRotatedTextXY
3452 Blit
= ClientDC
.BlitXY
3454 class PaintDC_old(PaintDC
):
3455 """DC class that has methods with 2.4 compatible parameters."""
3456 FloodFill
= PaintDC
.FloodFillXY
3457 GetPixel
= PaintDC
.GetPixelXY
3458 DrawLine
= PaintDC
.DrawLineXY
3459 CrossHair
= PaintDC
.CrossHairXY
3460 DrawArc
= PaintDC
.DrawArcXY
3461 DrawCheckMark
= PaintDC
.DrawCheckMarkXY
3462 DrawEllipticArc
= PaintDC
.DrawEllipticArcXY
3463 DrawPoint
= PaintDC
.DrawPointXY
3464 DrawRectangle
= PaintDC
.DrawRectangleXY
3465 DrawRoundedRectangle
= PaintDC
.DrawRoundedRectangleXY
3466 DrawCircle
= PaintDC
.DrawCircleXY
3467 DrawEllipse
= PaintDC
.DrawEllipseXY
3468 DrawIcon
= PaintDC
.DrawIconXY
3469 DrawBitmap
= PaintDC
.DrawBitmapXY
3470 DrawText
= PaintDC
.DrawTextXY
3471 DrawRotatedText
= PaintDC
.DrawRotatedTextXY
3472 Blit
= PaintDC
.BlitXY
3474 class WindowDC_old(WindowDC
):
3475 """DC class that has methods with 2.4 compatible parameters."""
3476 FloodFill
= WindowDC
.FloodFillXY
3477 GetPixel
= WindowDC
.GetPixelXY
3478 DrawLine
= WindowDC
.DrawLineXY
3479 CrossHair
= WindowDC
.CrossHairXY
3480 DrawArc
= WindowDC
.DrawArcXY
3481 DrawCheckMark
= WindowDC
.DrawCheckMarkXY
3482 DrawEllipticArc
= WindowDC
.DrawEllipticArcXY
3483 DrawPoint
= WindowDC
.DrawPointXY
3484 DrawRectangle
= WindowDC
.DrawRectangleXY
3485 DrawRoundedRectangle
= WindowDC
.DrawRoundedRectangleXY
3486 DrawCircle
= WindowDC
.DrawCircleXY
3487 DrawEllipse
= WindowDC
.DrawEllipseXY
3488 DrawIcon
= WindowDC
.DrawIconXY
3489 DrawBitmap
= WindowDC
.DrawBitmapXY
3490 DrawText
= WindowDC
.DrawTextXY
3491 DrawRotatedText
= WindowDC
.DrawRotatedTextXY
3492 Blit
= WindowDC
.BlitXY
3494 class MirrorDC_old(MirrorDC
):
3495 """DC class that has methods with 2.4 compatible parameters."""
3496 FloodFill
= MirrorDC
.FloodFillXY
3497 GetPixel
= MirrorDC
.GetPixelXY
3498 DrawLine
= MirrorDC
.DrawLineXY
3499 CrossHair
= MirrorDC
.CrossHairXY
3500 DrawArc
= MirrorDC
.DrawArcXY
3501 DrawCheckMark
= MirrorDC
.DrawCheckMarkXY
3502 DrawEllipticArc
= MirrorDC
.DrawEllipticArcXY
3503 DrawPoint
= MirrorDC
.DrawPointXY
3504 DrawRectangle
= MirrorDC
.DrawRectangleXY
3505 DrawRoundedRectangle
= MirrorDC
.DrawRoundedRectangleXY
3506 DrawCircle
= MirrorDC
.DrawCircleXY
3507 DrawEllipse
= MirrorDC
.DrawEllipseXY
3508 DrawIcon
= MirrorDC
.DrawIconXY
3509 DrawBitmap
= MirrorDC
.DrawBitmapXY
3510 DrawText
= MirrorDC
.DrawTextXY
3511 DrawRotatedText
= MirrorDC
.DrawRotatedTextXY
3512 Blit
= MirrorDC
.BlitXY
3514 class PostScriptDC_old(PostScriptDC
):
3515 """DC class that has methods with 2.4 compatible parameters."""
3516 FloodFill
= PostScriptDC
.FloodFillXY
3517 GetPixel
= PostScriptDC
.GetPixelXY
3518 DrawLine
= PostScriptDC
.DrawLineXY
3519 CrossHair
= PostScriptDC
.CrossHairXY
3520 DrawArc
= PostScriptDC
.DrawArcXY
3521 DrawCheckMark
= PostScriptDC
.DrawCheckMarkXY
3522 DrawEllipticArc
= PostScriptDC
.DrawEllipticArcXY
3523 DrawPoint
= PostScriptDC
.DrawPointXY
3524 DrawRectangle
= PostScriptDC
.DrawRectangleXY
3525 DrawRoundedRectangle
= PostScriptDC
.DrawRoundedRectangleXY
3526 DrawCircle
= PostScriptDC
.DrawCircleXY
3527 DrawEllipse
= PostScriptDC
.DrawEllipseXY
3528 DrawIcon
= PostScriptDC
.DrawIconXY
3529 DrawBitmap
= PostScriptDC
.DrawBitmapXY
3530 DrawText
= PostScriptDC
.DrawTextXY
3531 DrawRotatedText
= PostScriptDC
.DrawRotatedTextXY
3532 Blit
= PostScriptDC
.BlitXY
3534 class MetaFileDC_old(MetaFileDC
):
3535 """DC class that has methods with 2.4 compatible parameters."""
3536 FloodFill
= MetaFileDC
.FloodFillXY
3537 GetPixel
= MetaFileDC
.GetPixelXY
3538 DrawLine
= MetaFileDC
.DrawLineXY
3539 CrossHair
= MetaFileDC
.CrossHairXY
3540 DrawArc
= MetaFileDC
.DrawArcXY
3541 DrawCheckMark
= MetaFileDC
.DrawCheckMarkXY
3542 DrawEllipticArc
= MetaFileDC
.DrawEllipticArcXY
3543 DrawPoint
= MetaFileDC
.DrawPointXY
3544 DrawRectangle
= MetaFileDC
.DrawRectangleXY
3545 DrawRoundedRectangle
= MetaFileDC
.DrawRoundedRectangleXY
3546 DrawCircle
= MetaFileDC
.DrawCircleXY
3547 DrawEllipse
= MetaFileDC
.DrawEllipseXY
3548 DrawIcon
= MetaFileDC
.DrawIconXY
3549 DrawBitmap
= MetaFileDC
.DrawBitmapXY
3550 DrawText
= MetaFileDC
.DrawTextXY
3551 DrawRotatedText
= MetaFileDC
.DrawRotatedTextXY
3552 Blit
= MetaFileDC
.BlitXY
3554 class PrinterDC_old(PrinterDC
):
3555 """DC class that has methods with 2.4 compatible parameters."""
3556 FloodFill
= PrinterDC
.FloodFillXY
3557 GetPixel
= PrinterDC
.GetPixelXY
3558 DrawLine
= PrinterDC
.DrawLineXY
3559 CrossHair
= PrinterDC
.CrossHairXY
3560 DrawArc
= PrinterDC
.DrawArcXY
3561 DrawCheckMark
= PrinterDC
.DrawCheckMarkXY
3562 DrawEllipticArc
= PrinterDC
.DrawEllipticArcXY
3563 DrawPoint
= PrinterDC
.DrawPointXY
3564 DrawRectangle
= PrinterDC
.DrawRectangleXY
3565 DrawRoundedRectangle
= PrinterDC
.DrawRoundedRectangleXY
3566 DrawCircle
= PrinterDC
.DrawCircleXY
3567 DrawEllipse
= PrinterDC
.DrawEllipseXY
3568 DrawIcon
= PrinterDC
.DrawIconXY
3569 DrawBitmap
= PrinterDC
.DrawBitmapXY
3570 DrawText
= PrinterDC
.DrawTextXY
3571 DrawRotatedText
= PrinterDC
.DrawRotatedTextXY
3572 Blit
= PrinterDC
.BlitXY
3574 #---------------------------------------------------------------------------
3576 IMAGELIST_DRAW_NORMAL
= _gdi
.IMAGELIST_DRAW_NORMAL
3577 IMAGELIST_DRAW_TRANSPARENT
= _gdi
.IMAGELIST_DRAW_TRANSPARENT
3578 IMAGELIST_DRAW_SELECTED
= _gdi
.IMAGELIST_DRAW_SELECTED
3579 IMAGELIST_DRAW_FOCUSED
= _gdi
.IMAGELIST_DRAW_FOCUSED
3580 IMAGE_LIST_NORMAL
= _gdi
.IMAGE_LIST_NORMAL
3581 IMAGE_LIST_SMALL
= _gdi
.IMAGE_LIST_SMALL
3582 IMAGE_LIST_STATE
= _gdi
.IMAGE_LIST_STATE
3583 class ImageList(core
.Object
):
3585 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3586 def __init__(self
, *args
, **kwargs
):
3587 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3588 newobj
= _gdi
.new_ImageList(*args
, **kwargs
)
3589 self
.this
= newobj
.this
3592 def __del__(self
, destroy
=_gdi
.delete_ImageList
):
3595 if self
.thisown
: destroy(self
)
3598 def Add(*args
, **kwargs
):
3599 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3600 return _gdi
.ImageList_Add(*args
, **kwargs
)
3602 def AddWithColourMask(*args
, **kwargs
):
3603 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
3604 return _gdi
.ImageList_AddWithColourMask(*args
, **kwargs
)
3606 def AddIcon(*args
, **kwargs
):
3607 """AddIcon(Icon icon) -> int"""
3608 return _gdi
.ImageList_AddIcon(*args
, **kwargs
)
3610 def Replace(*args
, **kwargs
):
3611 """Replace(int index, Bitmap bitmap, Bitmap mask=NullBitmap) -> bool"""
3612 return _gdi
.ImageList_Replace(*args
, **kwargs
)
3614 def Draw(*args
, **kwargs
):
3616 Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3617 bool solidBackground=False) -> bool
3619 return _gdi
.ImageList_Draw(*args
, **kwargs
)
3621 def GetImageCount(*args
, **kwargs
):
3622 """GetImageCount() -> int"""
3623 return _gdi
.ImageList_GetImageCount(*args
, **kwargs
)
3625 def Remove(*args
, **kwargs
):
3626 """Remove(int index) -> bool"""
3627 return _gdi
.ImageList_Remove(*args
, **kwargs
)
3629 def RemoveAll(*args
, **kwargs
):
3630 """RemoveAll() -> bool"""
3631 return _gdi
.ImageList_RemoveAll(*args
, **kwargs
)
3633 def GetSize(*args
, **kwargs
):
3634 """GetSize() -> (width,height)"""
3635 return _gdi
.ImageList_GetSize(*args
, **kwargs
)
3638 class ImageListPtr(ImageList
):
3639 def __init__(self
, this
):
3641 if not hasattr(self
,"thisown"): self
.thisown
= 0
3642 self
.__class
__ = ImageList
3643 _gdi
.ImageList_swigregister(ImageListPtr
)
3645 #---------------------------------------------------------------------------
3647 class PenList(core
.Object
):
3648 def __init__(self
): raise RuntimeError, "No constructor defined"
3650 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3651 def AddPen(*args
, **kwargs
):
3652 """AddPen(Pen pen)"""
3653 return _gdi
.PenList_AddPen(*args
, **kwargs
)
3655 def FindOrCreatePen(*args
, **kwargs
):
3656 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
3657 return _gdi
.PenList_FindOrCreatePen(*args
, **kwargs
)
3659 def RemovePen(*args
, **kwargs
):
3660 """RemovePen(Pen pen)"""
3661 return _gdi
.PenList_RemovePen(*args
, **kwargs
)
3663 def GetCount(*args
, **kwargs
):
3664 """GetCount() -> int"""
3665 return _gdi
.PenList_GetCount(*args
, **kwargs
)
3668 class PenListPtr(PenList
):
3669 def __init__(self
, this
):
3671 if not hasattr(self
,"thisown"): self
.thisown
= 0
3672 self
.__class
__ = PenList
3673 _gdi
.PenList_swigregister(PenListPtr
)
3675 NORMAL_FONT
= cvar
.NORMAL_FONT
3676 SMALL_FONT
= cvar
.SMALL_FONT
3677 ITALIC_FONT
= cvar
.ITALIC_FONT
3678 SWISS_FONT
= cvar
.SWISS_FONT
3679 RED_PEN
= cvar
.RED_PEN
3680 CYAN_PEN
= cvar
.CYAN_PEN
3681 GREEN_PEN
= cvar
.GREEN_PEN
3682 BLACK_PEN
= cvar
.BLACK_PEN
3683 WHITE_PEN
= cvar
.WHITE_PEN
3684 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3685 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3686 GREY_PEN
= cvar
.GREY_PEN
3687 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3688 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3689 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3690 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3691 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3692 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3693 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3694 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3695 RED_BRUSH
= cvar
.RED_BRUSH
3696 GREY_BRUSH
= cvar
.GREY_BRUSH
3697 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3698 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3705 LIGHT_GREY
= cvar
.LIGHT_GREY
3706 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3707 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3708 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3709 NullBitmap
= cvar
.NullBitmap
3710 NullIcon
= cvar
.NullIcon
3711 NullCursor
= cvar
.NullCursor
3712 NullPen
= cvar
.NullPen
3713 NullBrush
= cvar
.NullBrush
3714 NullPalette
= cvar
.NullPalette
3715 NullFont
= cvar
.NullFont
3716 NullColour
= cvar
.NullColour
3718 class BrushList(core
.Object
):
3719 def __init__(self
): raise RuntimeError, "No constructor defined"
3721 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3722 def AddBrush(*args
, **kwargs
):
3723 """AddBrush(Brush brush)"""
3724 return _gdi
.BrushList_AddBrush(*args
, **kwargs
)
3726 def FindOrCreateBrush(*args
, **kwargs
):
3727 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
3728 return _gdi
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3730 def RemoveBrush(*args
, **kwargs
):
3731 """RemoveBrush(Brush brush)"""
3732 return _gdi
.BrushList_RemoveBrush(*args
, **kwargs
)
3734 def GetCount(*args
, **kwargs
):
3735 """GetCount() -> int"""
3736 return _gdi
.BrushList_GetCount(*args
, **kwargs
)
3739 class BrushListPtr(BrushList
):
3740 def __init__(self
, this
):
3742 if not hasattr(self
,"thisown"): self
.thisown
= 0
3743 self
.__class
__ = BrushList
3744 _gdi
.BrushList_swigregister(BrushListPtr
)
3746 class ColourDatabase(core
.Object
):
3748 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3749 def __init__(self
, *args
, **kwargs
):
3750 """__init__() -> ColourDatabase"""
3751 newobj
= _gdi
.new_ColourDatabase(*args
, **kwargs
)
3752 self
.this
= newobj
.this
3755 def __del__(self
, destroy
=_gdi
.delete_ColourDatabase
):
3758 if self
.thisown
: destroy(self
)
3761 def Find(*args
, **kwargs
):
3762 """Find(String name) -> Colour"""
3763 return _gdi
.ColourDatabase_Find(*args
, **kwargs
)
3765 def FindName(*args
, **kwargs
):
3766 """FindName(Colour colour) -> String"""
3767 return _gdi
.ColourDatabase_FindName(*args
, **kwargs
)
3770 def AddColour(*args
, **kwargs
):
3771 """AddColour(String name, Colour colour)"""
3772 return _gdi
.ColourDatabase_AddColour(*args
, **kwargs
)
3774 def Append(*args
, **kwargs
):
3775 """Append(String name, int red, int green, int blue)"""
3776 return _gdi
.ColourDatabase_Append(*args
, **kwargs
)
3779 class ColourDatabasePtr(ColourDatabase
):
3780 def __init__(self
, this
):
3782 if not hasattr(self
,"thisown"): self
.thisown
= 0
3783 self
.__class
__ = ColourDatabase
3784 _gdi
.ColourDatabase_swigregister(ColourDatabasePtr
)
3786 class FontList(core
.Object
):
3787 def __init__(self
): raise RuntimeError, "No constructor defined"
3789 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3790 def AddFont(*args
, **kwargs
):
3791 """AddFont(Font font)"""
3792 return _gdi
.FontList_AddFont(*args
, **kwargs
)
3794 def FindOrCreateFont(*args
, **kwargs
):
3796 FindOrCreateFont(int point_size, int family, int style, int weight,
3797 bool underline=False, String facename=EmptyString,
3798 int encoding=FONTENCODING_DEFAULT) -> Font
3800 return _gdi
.FontList_FindOrCreateFont(*args
, **kwargs
)
3802 def RemoveFont(*args
, **kwargs
):
3803 """RemoveFont(Font font)"""
3804 return _gdi
.FontList_RemoveFont(*args
, **kwargs
)
3806 def GetCount(*args
, **kwargs
):
3807 """GetCount() -> int"""
3808 return _gdi
.FontList_GetCount(*args
, **kwargs
)
3811 class FontListPtr(FontList
):
3812 def __init__(self
, this
):
3814 if not hasattr(self
,"thisown"): self
.thisown
= 0
3815 self
.__class
__ = FontList
3816 _gdi
.FontList_swigregister(FontListPtr
)
3818 #---------------------------------------------------------------------------
3820 NullColor
= NullColour
3821 #---------------------------------------------------------------------------
3823 class Effects(core
.Object
):
3825 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3826 def __init__(self
, *args
, **kwargs
):
3827 """__init__() -> Effects"""
3828 newobj
= _gdi
.new_Effects(*args
, **kwargs
)
3829 self
.this
= newobj
.this
3832 def GetHighlightColour(*args
, **kwargs
):
3833 """GetHighlightColour() -> Colour"""
3834 return _gdi
.Effects_GetHighlightColour(*args
, **kwargs
)
3836 def GetLightShadow(*args
, **kwargs
):
3837 """GetLightShadow() -> Colour"""
3838 return _gdi
.Effects_GetLightShadow(*args
, **kwargs
)
3840 def GetFaceColour(*args
, **kwargs
):
3841 """GetFaceColour() -> Colour"""
3842 return _gdi
.Effects_GetFaceColour(*args
, **kwargs
)
3844 def GetMediumShadow(*args
, **kwargs
):
3845 """GetMediumShadow() -> Colour"""
3846 return _gdi
.Effects_GetMediumShadow(*args
, **kwargs
)
3848 def GetDarkShadow(*args
, **kwargs
):
3849 """GetDarkShadow() -> Colour"""
3850 return _gdi
.Effects_GetDarkShadow(*args
, **kwargs
)
3852 def SetHighlightColour(*args
, **kwargs
):
3853 """SetHighlightColour(Colour c)"""
3854 return _gdi
.Effects_SetHighlightColour(*args
, **kwargs
)
3856 def SetLightShadow(*args
, **kwargs
):
3857 """SetLightShadow(Colour c)"""
3858 return _gdi
.Effects_SetLightShadow(*args
, **kwargs
)
3860 def SetFaceColour(*args
, **kwargs
):
3861 """SetFaceColour(Colour c)"""
3862 return _gdi
.Effects_SetFaceColour(*args
, **kwargs
)
3864 def SetMediumShadow(*args
, **kwargs
):
3865 """SetMediumShadow(Colour c)"""
3866 return _gdi
.Effects_SetMediumShadow(*args
, **kwargs
)
3868 def SetDarkShadow(*args
, **kwargs
):
3869 """SetDarkShadow(Colour c)"""
3870 return _gdi
.Effects_SetDarkShadow(*args
, **kwargs
)
3872 def Set(*args
, **kwargs
):
3874 Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3875 Colour mediumShadow, Colour darkShadow)
3877 return _gdi
.Effects_Set(*args
, **kwargs
)
3879 def DrawSunkenEdge(*args
, **kwargs
):
3880 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3881 return _gdi
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3883 def TileBitmap(*args
, **kwargs
):
3884 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3885 return _gdi
.Effects_TileBitmap(*args
, **kwargs
)
3888 class EffectsPtr(Effects
):
3889 def __init__(self
, this
):
3891 if not hasattr(self
,"thisown"): self
.thisown
= 0
3892 self
.__class
__ = Effects
3893 _gdi
.Effects_swigregister(EffectsPtr
)
3894 TheFontList
= cvar
.TheFontList
3895 ThePenList
= cvar
.ThePenList
3896 TheBrushList
= cvar
.TheBrushList
3897 TheColourDatabase
= cvar
.TheColourDatabase