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