1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 __docfilter__
= wx
.__docfilter
__
9 #---------------------------------------------------------------------------
11 class GDIObject(_core
.Object
):
13 return "<%s.%s; proxy of C++ wxGDIObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
14 def __init__(self
, *args
, **kwargs
):
15 """__init__(self) -> GDIObject"""
16 newobj
= _gdi_
.new_GDIObject(*args
, **kwargs
)
17 self
.this
= newobj
.this
20 def __del__(self
, destroy
=_gdi_
.delete_GDIObject
):
23 if self
.thisown
: destroy(self
)
26 def GetVisible(*args
, **kwargs
):
27 """GetVisible(self) -> bool"""
28 return _gdi_
.GDIObject_GetVisible(*args
, **kwargs
)
30 def SetVisible(*args
, **kwargs
):
31 """SetVisible(self, bool visible)"""
32 return _gdi_
.GDIObject_SetVisible(*args
, **kwargs
)
34 def IsNull(*args
, **kwargs
):
35 """IsNull(self) -> bool"""
36 return _gdi_
.GDIObject_IsNull(*args
, **kwargs
)
39 class GDIObjectPtr(GDIObject
):
40 def __init__(self
, this
):
42 if not hasattr(self
,"thisown"): self
.thisown
= 0
43 self
.__class
__ = GDIObject
44 _gdi_
.GDIObject_swigregister(GDIObjectPtr
)
46 #---------------------------------------------------------------------------
48 class Colour(_core
.Object
):
50 A colour is an object representing a combination of Red, Green, and Blue (RGB)
51 intensity values, and is used to determine drawing colours, window colours,
52 etc. Valid RGB values are in the range 0 to 255.
54 In wxPython there are typemaps that will automatically convert from a colour
55 name, or from a '#RRGGBB' colour hex value string to a wx.Colour object when
56 calling C++ methods that expect a wxColour. This means that the following are
59 win.SetBackgroundColour(wxColour(0,0,255))
60 win.SetBackgroundColour('BLUE')
61 win.SetBackgroundColour('#0000FF')
63 You can retrieve the various current system colour settings with
64 wx.SystemSettings.GetColour.
67 return "<%s.%s; proxy of C++ wxColour instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
68 def __init__(self
, *args
, **kwargs
):
70 __init__(self, unsigned char red=0, unsigned char green=0, unsigned char blue=0) -> Colour
72 Constructs a colour from red, green and blue values.
74 newobj
= _gdi_
.new_Colour(*args
, **kwargs
)
75 self
.this
= newobj
.this
78 def __del__(self
, destroy
=_gdi_
.delete_Colour
):
81 if self
.thisown
: destroy(self
)
84 def Red(*args
, **kwargs
):
86 Red(self) -> unsigned char
88 Returns the red intensity.
90 return _gdi_
.Colour_Red(*args
, **kwargs
)
92 def Green(*args
, **kwargs
):
94 Green(self) -> unsigned char
96 Returns the green intensity.
98 return _gdi_
.Colour_Green(*args
, **kwargs
)
100 def Blue(*args
, **kwargs
):
102 Blue(self) -> unsigned char
104 Returns the blue intensity.
106 return _gdi_
.Colour_Blue(*args
, **kwargs
)
108 def Ok(*args
, **kwargs
):
112 Returns True if the colour object is valid (the colour has been
113 initialised with RGB values).
115 return _gdi_
.Colour_Ok(*args
, **kwargs
)
117 def Set(*args
, **kwargs
):
119 Set(self, unsigned char red, unsigned char green, unsigned char blue)
121 Sets the RGB intensity values.
123 return _gdi_
.Colour_Set(*args
, **kwargs
)
125 def SetRGB(*args
, **kwargs
):
127 SetRGB(self, unsigned long colRGB)
129 Sets the RGB intensity values from a packed RGB value.
131 return _gdi_
.Colour_SetRGB(*args
, **kwargs
)
133 def SetFromName(*args
, **kwargs
):
135 SetFromName(self, String colourName)
137 Sets the RGB intensity values using a colour name listed in wx.TheColourDatabase.
139 return _gdi_
.Colour_SetFromName(*args
, **kwargs
)
141 def GetPixel(*args
, **kwargs
):
143 GetPixel(self) -> long
145 Returns a pixel value which is platform-dependent. On Windows, a
146 COLORREF is returned. On X, an allocated pixel value is returned.
147 -1 is returned if the pixel is invalid (on X, unallocated).
149 return _gdi_
.Colour_GetPixel(*args
, **kwargs
)
151 def __eq__(*args
, **kwargs
):
153 __eq__(self, Colour colour) -> bool
155 Compare colours for equality
157 return _gdi_
.Colour___eq__(*args
, **kwargs
)
159 def __ne__(*args
, **kwargs
):
161 __ne__(self, Colour colour) -> bool
163 Compare colours for inequality
165 return _gdi_
.Colour___ne__(*args
, **kwargs
)
167 def Get(*args
, **kwargs
):
171 Returns the RGB intensity values as a tuple.
173 return _gdi_
.Colour_Get(*args
, **kwargs
)
175 def GetRGB(*args
, **kwargs
):
177 GetRGB(self) -> unsigned long
179 Return the colour as a packed RGB value
181 return _gdi_
.Colour_GetRGB(*args
, **kwargs
)
184 def __str__(self
): return str(self
.asTuple())
185 def __repr__(self
): return 'wx.Colour' + str(self
.asTuple())
186 def __nonzero__(self
): return self
.Ok()
187 __safe_for_unpickling__
= True
188 def __reduce__(self
): return (Colour
, self
.Get())
191 class ColourPtr(Colour
):
192 def __init__(self
, this
):
194 if not hasattr(self
,"thisown"): self
.thisown
= 0
195 self
.__class
__ = Colour
196 _gdi_
.Colour_swigregister(ColourPtr
)
198 def NamedColour(*args
, **kwargs
):
200 NamedColour(String colorName) -> Colour
202 Constructs a colour object using a colour name listed in wx.TheColourDatabase.
204 val
= _gdi_
.new_NamedColour(*args
, **kwargs
)
208 def ColourRGB(*args
, **kwargs
):
210 ColourRGB(unsigned long colRGB) -> Colour
212 Constructs a colour from a packed RGB value.
214 val
= _gdi_
.new_ColourRGB(*args
, **kwargs
)
219 NamedColor
= NamedColour
222 class Palette(GDIObject
):
224 return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
225 def __init__(self
, *args
, **kwargs
):
226 """__init__(self, int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette"""
227 newobj
= _gdi_
.new_Palette(*args
, **kwargs
)
228 self
.this
= newobj
.this
231 def __del__(self
, destroy
=_gdi_
.delete_Palette
):
234 if self
.thisown
: destroy(self
)
237 def GetPixel(*args
, **kwargs
):
238 """GetPixel(self, byte red, byte green, byte blue) -> int"""
239 return _gdi_
.Palette_GetPixel(*args
, **kwargs
)
241 def GetRGB(*args
, **kwargs
):
242 """GetRGB(int pixel) -> (R,G,B)"""
243 return _gdi_
.Palette_GetRGB(*args
, **kwargs
)
245 def Ok(*args
, **kwargs
):
246 """Ok(self) -> bool"""
247 return _gdi_
.Palette_Ok(*args
, **kwargs
)
249 def __nonzero__(self
): return self
.Ok()
251 class PalettePtr(Palette
):
252 def __init__(self
, this
):
254 if not hasattr(self
,"thisown"): self
.thisown
= 0
255 self
.__class
__ = Palette
256 _gdi_
.Palette_swigregister(PalettePtr
)
258 #---------------------------------------------------------------------------
260 class Pen(GDIObject
):
262 return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
263 def __init__(self
, *args
, **kwargs
):
264 """__init__(self, Colour colour, int width=1, int style=SOLID) -> Pen"""
265 newobj
= _gdi_
.new_Pen(*args
, **kwargs
)
266 self
.this
= newobj
.this
269 def __del__(self
, destroy
=_gdi_
.delete_Pen
):
272 if self
.thisown
: destroy(self
)
275 def GetCap(*args
, **kwargs
):
276 """GetCap(self) -> int"""
277 return _gdi_
.Pen_GetCap(*args
, **kwargs
)
279 def GetColour(*args
, **kwargs
):
280 """GetColour(self) -> Colour"""
281 return _gdi_
.Pen_GetColour(*args
, **kwargs
)
283 def GetJoin(*args
, **kwargs
):
284 """GetJoin(self) -> int"""
285 return _gdi_
.Pen_GetJoin(*args
, **kwargs
)
287 def GetStyle(*args
, **kwargs
):
288 """GetStyle(self) -> int"""
289 return _gdi_
.Pen_GetStyle(*args
, **kwargs
)
291 def GetWidth(*args
, **kwargs
):
292 """GetWidth(self) -> int"""
293 return _gdi_
.Pen_GetWidth(*args
, **kwargs
)
295 def Ok(*args
, **kwargs
):
296 """Ok(self) -> bool"""
297 return _gdi_
.Pen_Ok(*args
, **kwargs
)
299 def SetCap(*args
, **kwargs
):
300 """SetCap(self, int cap_style)"""
301 return _gdi_
.Pen_SetCap(*args
, **kwargs
)
303 def SetColour(*args
, **kwargs
):
304 """SetColour(self, Colour colour)"""
305 return _gdi_
.Pen_SetColour(*args
, **kwargs
)
307 def SetJoin(*args
, **kwargs
):
308 """SetJoin(self, int join_style)"""
309 return _gdi_
.Pen_SetJoin(*args
, **kwargs
)
311 def SetStyle(*args
, **kwargs
):
312 """SetStyle(self, int style)"""
313 return _gdi_
.Pen_SetStyle(*args
, **kwargs
)
315 def SetWidth(*args
, **kwargs
):
316 """SetWidth(self, int width)"""
317 return _gdi_
.Pen_SetWidth(*args
, **kwargs
)
319 def SetDashes(*args
, **kwargs
):
320 """SetDashes(self, int dashes, wxDash dashes_array)"""
321 return _gdi_
.Pen_SetDashes(*args
, **kwargs
)
323 def GetDashes(*args
, **kwargs
):
324 """GetDashes(self) -> PyObject"""
325 return _gdi_
.Pen_GetDashes(*args
, **kwargs
)
327 def __eq__(*args
, **kwargs
):
328 """__eq__(self, Pen other) -> bool"""
329 return _gdi_
.Pen___eq__(*args
, **kwargs
)
331 def __ne__(*args
, **kwargs
):
332 """__ne__(self, Pen other) -> bool"""
333 return _gdi_
.Pen___ne__(*args
, **kwargs
)
335 def GetDashCount(*args
, **kwargs
):
336 """GetDashCount(self) -> int"""
337 return _gdi_
.Pen_GetDashCount(*args
, **kwargs
)
339 def __nonzero__(self
): return self
.Ok()
342 def __init__(self
, this
):
344 if not hasattr(self
,"thisown"): self
.thisown
= 0
346 _gdi_
.Pen_swigregister(PenPtr
)
350 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
351 def __init__(self
, *args
, **kwargs
):
352 """__init__(self, Colour colour, int width=1, int style=SOLID) -> PyPen"""
353 newobj
= _gdi_
.new_PyPen(*args
, **kwargs
)
354 self
.this
= newobj
.this
357 def __del__(self
, destroy
=_gdi_
.delete_PyPen
):
360 if self
.thisown
: destroy(self
)
363 def SetDashes(*args
, **kwargs
):
364 """SetDashes(self, int dashes, wxDash dashes_array)"""
365 return _gdi_
.PyPen_SetDashes(*args
, **kwargs
)
368 class PyPenPtr(PyPen
):
369 def __init__(self
, this
):
371 if not hasattr(self
,"thisown"): self
.thisown
= 0
372 self
.__class
__ = PyPen
373 _gdi_
.PyPen_swigregister(PyPenPtr
)
376 #---------------------------------------------------------------------------
378 class Brush(GDIObject
):
380 A brush is a drawing tool for filling in areas. It is used for painting the
381 background of rectangles, ellipses, etc. It has a colour and a style.
384 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
385 def __init__(self
, *args
, **kwargs
):
387 __init__(self, Colour colour, int style=SOLID) -> Brush
389 Constructs a brush from a colour object and style.
391 newobj
= _gdi_
.new_Brush(*args
, **kwargs
)
392 self
.this
= newobj
.this
395 def __del__(self
, destroy
=_gdi_
.delete_Brush
):
398 if self
.thisown
: destroy(self
)
401 def SetColour(*args
, **kwargs
):
402 """SetColour(self, Colour col)"""
403 return _gdi_
.Brush_SetColour(*args
, **kwargs
)
405 def SetStyle(*args
, **kwargs
):
406 """SetStyle(self, int style)"""
407 return _gdi_
.Brush_SetStyle(*args
, **kwargs
)
409 def SetStipple(*args
, **kwargs
):
410 """SetStipple(self, Bitmap stipple)"""
411 return _gdi_
.Brush_SetStipple(*args
, **kwargs
)
413 def GetColour(*args
, **kwargs
):
414 """GetColour(self) -> Colour"""
415 return _gdi_
.Brush_GetColour(*args
, **kwargs
)
417 def GetStyle(*args
, **kwargs
):
418 """GetStyle(self) -> int"""
419 return _gdi_
.Brush_GetStyle(*args
, **kwargs
)
421 def GetStipple(*args
, **kwargs
):
422 """GetStipple(self) -> Bitmap"""
423 return _gdi_
.Brush_GetStipple(*args
, **kwargs
)
425 def Ok(*args
, **kwargs
):
426 """Ok(self) -> bool"""
427 return _gdi_
.Brush_Ok(*args
, **kwargs
)
429 def __nonzero__(self
): return self
.Ok()
431 class BrushPtr(Brush
):
432 def __init__(self
, this
):
434 if not hasattr(self
,"thisown"): self
.thisown
= 0
435 self
.__class
__ = Brush
436 _gdi_
.Brush_swigregister(BrushPtr
)
438 class Bitmap(GDIObject
):
440 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
441 def __init__(self
, *args
, **kwargs
):
443 __init__(self, String name, int type=BITMAP_TYPE_ANY) -> Bitmap
445 Loads a bitmap from a file.
447 newobj
= _gdi_
.new_Bitmap(*args
, **kwargs
)
448 self
.this
= newobj
.this
451 def __del__(self
, destroy
=_gdi_
.delete_Bitmap
):
454 if self
.thisown
: destroy(self
)
457 def Ok(*args
, **kwargs
):
458 """Ok(self) -> bool"""
459 return _gdi_
.Bitmap_Ok(*args
, **kwargs
)
461 def GetWidth(*args
, **kwargs
):
463 GetWidth(self) -> int
465 Gets the width of the bitmap in pixels.
467 return _gdi_
.Bitmap_GetWidth(*args
, **kwargs
)
469 def GetHeight(*args
, **kwargs
):
471 GetHeight(self) -> int
473 Gets the height of the bitmap in pixels.
475 return _gdi_
.Bitmap_GetHeight(*args
, **kwargs
)
477 def GetDepth(*args
, **kwargs
):
479 GetDepth(self) -> int
481 Gets the colour depth of the bitmap. A value of 1 indicates a
484 return _gdi_
.Bitmap_GetDepth(*args
, **kwargs
)
486 def GetSize(*args
, **kwargs
):
488 GetSize(self) -> Size
490 Get the size of the bitmap.
492 return _gdi_
.Bitmap_GetSize(*args
, **kwargs
)
494 def ConvertToImage(*args
, **kwargs
):
496 ConvertToImage(self) -> Image
498 Creates a platform-independent image from a platform-dependent bitmap. This
499 preserves mask information so that bitmaps and images can be converted back
500 and forth without loss in that respect.
502 return _gdi_
.Bitmap_ConvertToImage(*args
, **kwargs
)
504 def GetMask(*args
, **kwargs
):
506 GetMask(self) -> Mask
508 Gets the associated mask (if any) which may have been loaded from a file
509 or explpicitly set for the bitmap.
511 return _gdi_
.Bitmap_GetMask(*args
, **kwargs
)
513 def SetMask(*args
, **kwargs
):
515 SetMask(self, Mask mask)
517 Sets the mask for this bitmap.
519 return _gdi_
.Bitmap_SetMask(*args
, **kwargs
)
521 def SetMaskColour(*args
, **kwargs
):
523 SetMaskColour(self, Colour colour)
525 Create a Mask based on a specified colour in the Bitmap.
527 return _gdi_
.Bitmap_SetMaskColour(*args
, **kwargs
)
529 def GetSubBitmap(*args
, **kwargs
):
531 GetSubBitmap(self, Rect rect) -> Bitmap
533 Returns a sub bitmap of the current one as long as the rect belongs entirely
534 to the bitmap. This function preserves bit depth and mask information.
536 return _gdi_
.Bitmap_GetSubBitmap(*args
, **kwargs
)
538 def SaveFile(*args
, **kwargs
):
540 SaveFile(self, String name, int type, Palette palette=(wxPalette *) NULL) -> bool
542 Saves a bitmap in the named file.
544 return _gdi_
.Bitmap_SaveFile(*args
, **kwargs
)
546 def LoadFile(*args
, **kwargs
):
548 LoadFile(self, String name, int type) -> bool
550 Loads a bitmap from a file
552 return _gdi_
.Bitmap_LoadFile(*args
, **kwargs
)
554 def CopyFromIcon(*args
, **kwargs
):
555 """CopyFromIcon(self, Icon icon) -> bool"""
556 return _gdi_
.Bitmap_CopyFromIcon(*args
, **kwargs
)
558 def SetHeight(*args
, **kwargs
):
560 SetHeight(self, int height)
562 Set the height property (does not affect the bitmap data).
564 return _gdi_
.Bitmap_SetHeight(*args
, **kwargs
)
566 def SetWidth(*args
, **kwargs
):
568 SetWidth(self, int width)
570 Set the width property (does not affect the bitmap data).
572 return _gdi_
.Bitmap_SetWidth(*args
, **kwargs
)
574 def SetDepth(*args
, **kwargs
):
576 SetDepth(self, int depth)
578 Set the depth property (does not affect the bitmap data).
580 return _gdi_
.Bitmap_SetDepth(*args
, **kwargs
)
582 def SetSize(*args
, **kwargs
):
584 SetSize(self, Size size)
588 return _gdi_
.Bitmap_SetSize(*args
, **kwargs
)
590 def __nonzero__(self
): return self
.Ok()
591 def __eq__(*args
, **kwargs
):
592 """__eq__(self, Bitmap other) -> bool"""
593 return _gdi_
.Bitmap___eq__(*args
, **kwargs
)
595 def __ne__(*args
, **kwargs
):
596 """__ne__(self, Bitmap other) -> bool"""
597 return _gdi_
.Bitmap___ne__(*args
, **kwargs
)
600 class BitmapPtr(Bitmap
):
601 def __init__(self
, this
):
603 if not hasattr(self
,"thisown"): self
.thisown
= 0
604 self
.__class
__ = Bitmap
605 _gdi_
.Bitmap_swigregister(BitmapPtr
)
607 def BitmapFromIcon(*args
, **kwargs
):
609 BitmapFromIcon(Icon icon) -> Bitmap
611 Create a new bitmap from an Icon object.
613 val
= _gdi_
.new_BitmapFromIcon(*args
, **kwargs
)
617 def BitmapFromImage(*args
, **kwargs
):
619 BitmapFromImage(Image image, int depth=-1) -> Bitmap
621 Creates bitmap object from the image. This has to be done to actually display
622 an image as you cannot draw an image directly on a window. The resulting
623 bitmap will use the provided colour depth (or that of the current system if
624 depth is -1) which entails that a colour reduction has to take place.
626 val
= _gdi_
.new_BitmapFromImage(*args
, **kwargs
)
630 def BitmapFromXPMData(*args
, **kwargs
):
632 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
634 Construct a Bitmap from a list of strings formatted as XPM data.
636 val
= _gdi_
.new_BitmapFromXPMData(*args
, **kwargs
)
640 def BitmapFromBits(*args
, **kwargs
):
642 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
644 Creates a bitmap from an array of bits. You should only use this function for
645 monochrome bitmaps (depth 1) in portable programs: in this case the bits
646 parameter should contain an XBM image. For other bit depths, the behaviour is
649 val
= _gdi_
.new_BitmapFromBits(*args
, **kwargs
)
653 def EmptyBitmap(*args
):
655 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
656 EmptyBitmap(Size size, int depth=-1) -> Bitmap
658 Creates a new bitmap of the given size. A depth of -1 indicates
659 the depth of the current screen or visual. Some platforms only
660 support 1 for monochrome and -1 for the current colour setting.
662 val
= _gdi_
.new_EmptyBitmap(*args
)
666 class Mask(_core
.Object
):
668 This class encapsulates a monochrome mask bitmap, where the masked area is
669 black and the unmasked area is white. When associated with a bitmap and drawn
670 in a device context, the unmasked area of the bitmap will be drawn, and the
671 masked area will not be drawn.
674 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
675 def __init__(self
, *args
, **kwargs
):
677 __init__(self, Bitmap bitmap, Colour colour=NullColour) -> Mask
679 Constructs a mask from a bitmap and a colour in that bitmap that indicates
680 the transparent portions of the mask, by default BLACK is used.
682 newobj
= _gdi_
.new_Mask(*args
, **kwargs
)
683 self
.this
= newobj
.this
688 def __init__(self
, this
):
690 if not hasattr(self
,"thisown"): self
.thisown
= 0
691 self
.__class
__ = Mask
692 _gdi_
.Mask_swigregister(MaskPtr
)
695 class Icon(GDIObject
):
697 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
698 def __init__(self
, *args
, **kwargs
):
699 """__init__(self, String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
700 newobj
= _gdi_
.new_Icon(*args
, **kwargs
)
701 self
.this
= newobj
.this
704 def __del__(self
, destroy
=_gdi_
.delete_Icon
):
707 if self
.thisown
: destroy(self
)
710 def LoadFile(*args
, **kwargs
):
711 """LoadFile(self, String name, int type) -> bool"""
712 return _gdi_
.Icon_LoadFile(*args
, **kwargs
)
714 def Ok(*args
, **kwargs
):
715 """Ok(self) -> bool"""
716 return _gdi_
.Icon_Ok(*args
, **kwargs
)
718 def GetWidth(*args
, **kwargs
):
719 """GetWidth(self) -> int"""
720 return _gdi_
.Icon_GetWidth(*args
, **kwargs
)
722 def GetHeight(*args
, **kwargs
):
723 """GetHeight(self) -> int"""
724 return _gdi_
.Icon_GetHeight(*args
, **kwargs
)
726 def GetDepth(*args
, **kwargs
):
727 """GetDepth(self) -> int"""
728 return _gdi_
.Icon_GetDepth(*args
, **kwargs
)
730 def SetWidth(*args
, **kwargs
):
731 """SetWidth(self, int w)"""
732 return _gdi_
.Icon_SetWidth(*args
, **kwargs
)
734 def SetHeight(*args
, **kwargs
):
735 """SetHeight(self, int h)"""
736 return _gdi_
.Icon_SetHeight(*args
, **kwargs
)
738 def SetDepth(*args
, **kwargs
):
739 """SetDepth(self, int d)"""
740 return _gdi_
.Icon_SetDepth(*args
, **kwargs
)
742 def CopyFromBitmap(*args
, **kwargs
):
743 """CopyFromBitmap(self, Bitmap bmp)"""
744 return _gdi_
.Icon_CopyFromBitmap(*args
, **kwargs
)
746 def __nonzero__(self
): return self
.Ok()
749 def __init__(self
, this
):
751 if not hasattr(self
,"thisown"): self
.thisown
= 0
752 self
.__class
__ = Icon
753 _gdi_
.Icon_swigregister(IconPtr
)
755 def EmptyIcon(*args
, **kwargs
):
756 """EmptyIcon() -> Icon"""
757 val
= _gdi_
.new_EmptyIcon(*args
, **kwargs
)
761 def IconFromLocation(*args
, **kwargs
):
762 """IconFromLocation(IconLocation loc) -> Icon"""
763 val
= _gdi_
.new_IconFromLocation(*args
, **kwargs
)
767 def IconFromBitmap(*args
, **kwargs
):
768 """IconFromBitmap(Bitmap bmp) -> Icon"""
769 val
= _gdi_
.new_IconFromBitmap(*args
, **kwargs
)
773 def IconFromXPMData(*args
, **kwargs
):
774 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
775 val
= _gdi_
.new_IconFromXPMData(*args
, **kwargs
)
779 class IconLocation(object):
781 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
782 def __init__(self
, *args
, **kwargs
):
783 """__init__(self, String filename=&wxPyEmptyString, int num=0) -> IconLocation"""
784 newobj
= _gdi_
.new_IconLocation(*args
, **kwargs
)
785 self
.this
= newobj
.this
788 def __del__(self
, destroy
=_gdi_
.delete_IconLocation
):
791 if self
.thisown
: destroy(self
)
794 def IsOk(*args
, **kwargs
):
795 """IsOk(self) -> bool"""
796 return _gdi_
.IconLocation_IsOk(*args
, **kwargs
)
798 def __nonzero__(self
): return self
.Ok()
799 def SetFileName(*args
, **kwargs
):
800 """SetFileName(self, String filename)"""
801 return _gdi_
.IconLocation_SetFileName(*args
, **kwargs
)
803 def GetFileName(*args
, **kwargs
):
804 """GetFileName(self) -> String"""
805 return _gdi_
.IconLocation_GetFileName(*args
, **kwargs
)
807 def SetIndex(*args
, **kwargs
):
808 """SetIndex(self, int num)"""
809 return _gdi_
.IconLocation_SetIndex(*args
, **kwargs
)
811 def GetIndex(*args
, **kwargs
):
812 """GetIndex(self) -> int"""
813 return _gdi_
.IconLocation_GetIndex(*args
, **kwargs
)
816 class IconLocationPtr(IconLocation
):
817 def __init__(self
, this
):
819 if not hasattr(self
,"thisown"): self
.thisown
= 0
820 self
.__class
__ = IconLocation
821 _gdi_
.IconLocation_swigregister(IconLocationPtr
)
823 class IconBundle(object):
825 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
826 def __init__(self
, *args
, **kwargs
):
827 """__init__(self) -> IconBundle"""
828 newobj
= _gdi_
.new_IconBundle(*args
, **kwargs
)
829 self
.this
= newobj
.this
832 def __del__(self
, destroy
=_gdi_
.delete_IconBundle
):
835 if self
.thisown
: destroy(self
)
838 def AddIcon(*args
, **kwargs
):
839 """AddIcon(self, Icon icon)"""
840 return _gdi_
.IconBundle_AddIcon(*args
, **kwargs
)
842 def AddIconFromFile(*args
, **kwargs
):
843 """AddIconFromFile(self, String file, long type)"""
844 return _gdi_
.IconBundle_AddIconFromFile(*args
, **kwargs
)
846 def GetIcon(*args
, **kwargs
):
847 """GetIcon(self, Size size) -> Icon"""
848 return _gdi_
.IconBundle_GetIcon(*args
, **kwargs
)
851 class IconBundlePtr(IconBundle
):
852 def __init__(self
, this
):
854 if not hasattr(self
,"thisown"): self
.thisown
= 0
855 self
.__class
__ = IconBundle
856 _gdi_
.IconBundle_swigregister(IconBundlePtr
)
858 def IconBundleFromFile(*args
, **kwargs
):
859 """IconBundleFromFile(String file, long type) -> IconBundle"""
860 val
= _gdi_
.new_IconBundleFromFile(*args
, **kwargs
)
864 def IconBundleFromIcon(*args
, **kwargs
):
865 """IconBundleFromIcon(Icon icon) -> IconBundle"""
866 val
= _gdi_
.new_IconBundleFromIcon(*args
, **kwargs
)
870 class Cursor(GDIObject
):
872 A cursor is a small bitmap usually used for denoting where the
873 mouse pointer is, with a picture that might indicate the
874 interpretation of a mouse click.
876 A single cursor object may be used in many windows (any subwindow
877 type). The wxWindows convention is to set the cursor for a
878 window, as in X, rather than to set it globally as in MS Windows,
879 although a global wx.SetCursor function is also available for use
883 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
884 def __init__(self
, *args
, **kwargs
):
886 __init__(self, String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor
888 Construct a Cursor from a file. Specify the type of file using
889 wx.BITAMP_TYPE* constants, and specify the hotspot if not using a
892 This cursor is not available on wxGTK, use wx.StockCursor,
893 wx.CursorFromImage, or wx.CursorFromBits instead.
895 newobj
= _gdi_
.new_Cursor(*args
, **kwargs
)
896 self
.this
= newobj
.this
899 def __del__(self
, destroy
=_gdi_
.delete_Cursor
):
902 if self
.thisown
: destroy(self
)
905 def Ok(*args
, **kwargs
):
906 """Ok(self) -> bool"""
907 return _gdi_
.Cursor_Ok(*args
, **kwargs
)
909 def __nonzero__(self
): return self
.Ok()
911 class CursorPtr(Cursor
):
912 def __init__(self
, this
):
914 if not hasattr(self
,"thisown"): self
.thisown
= 0
915 self
.__class
__ = Cursor
916 _gdi_
.Cursor_swigregister(CursorPtr
)
918 def StockCursor(*args
, **kwargs
):
920 StockCursor(int id) -> Cursor
922 Create a cursor using one of the stock cursors. Note that not
923 all cursors are available on all platforms.
925 val
= _gdi_
.new_StockCursor(*args
, **kwargs
)
929 def CursorFromImage(*args
, **kwargs
):
931 CursorFromImage(Image image) -> Cursor
933 Constructs a cursor from a wxImage. The cursor is monochrome,
934 colors with the RGB elements all greater than 127 will be
935 foreground, colors less than this background. The mask (if any)
936 will be used as transparent.
938 In MSW the foreground will be white and the background black. The
939 cursor is resized to 32x32 In GTK, the two most frequent colors
940 will be used for foreground and background. The cursor will be
941 displayed at the size of the image. On MacOS the cursor is
942 resized to 16x16 and currently only shown as black/white (mask
945 val
= _gdi_
.new_CursorFromImage(*args
, **kwargs
)
949 #---------------------------------------------------------------------------
951 OutRegion
= _gdi_
.OutRegion
952 PartRegion
= _gdi_
.PartRegion
953 InRegion
= _gdi_
.InRegion
954 class Region(GDIObject
):
956 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
957 def __init__(self
, *args
, **kwargs
):
958 """__init__(self, int x=0, int y=0, int width=0, int height=0) -> Region"""
959 newobj
= _gdi_
.new_Region(*args
, **kwargs
)
960 self
.this
= newobj
.this
963 def __del__(self
, destroy
=_gdi_
.delete_Region
):
966 if self
.thisown
: destroy(self
)
969 def Clear(*args
, **kwargs
):
971 return _gdi_
.Region_Clear(*args
, **kwargs
)
973 def Offset(*args
, **kwargs
):
974 """Offset(self, int x, int y) -> bool"""
975 return _gdi_
.Region_Offset(*args
, **kwargs
)
977 def Contains(*args
, **kwargs
):
978 """Contains(self, int x, int y) -> int"""
979 return _gdi_
.Region_Contains(*args
, **kwargs
)
981 def ContainsPoint(*args
, **kwargs
):
982 """ContainsPoint(self, Point pt) -> int"""
983 return _gdi_
.Region_ContainsPoint(*args
, **kwargs
)
985 def ContainsRect(*args
, **kwargs
):
986 """ContainsRect(self, Rect rect) -> int"""
987 return _gdi_
.Region_ContainsRect(*args
, **kwargs
)
989 def ContainsRectDim(*args
, **kwargs
):
990 """ContainsRectDim(self, int x, int y, int w, int h) -> int"""
991 return _gdi_
.Region_ContainsRectDim(*args
, **kwargs
)
993 def GetBox(*args
, **kwargs
):
994 """GetBox(self) -> Rect"""
995 return _gdi_
.Region_GetBox(*args
, **kwargs
)
997 def Intersect(*args
, **kwargs
):
998 """Intersect(self, int x, int y, int width, int height) -> bool"""
999 return _gdi_
.Region_Intersect(*args
, **kwargs
)
1001 def IntersectRect(*args
, **kwargs
):
1002 """IntersectRect(self, Rect rect) -> bool"""
1003 return _gdi_
.Region_IntersectRect(*args
, **kwargs
)
1005 def IntersectRegion(*args
, **kwargs
):
1006 """IntersectRegion(self, Region region) -> bool"""
1007 return _gdi_
.Region_IntersectRegion(*args
, **kwargs
)
1009 def IsEmpty(*args
, **kwargs
):
1010 """IsEmpty(self) -> bool"""
1011 return _gdi_
.Region_IsEmpty(*args
, **kwargs
)
1013 def Union(*args
, **kwargs
):
1014 """Union(self, int x, int y, int width, int height) -> bool"""
1015 return _gdi_
.Region_Union(*args
, **kwargs
)
1017 def UnionRect(*args
, **kwargs
):
1018 """UnionRect(self, Rect rect) -> bool"""
1019 return _gdi_
.Region_UnionRect(*args
, **kwargs
)
1021 def UnionRegion(*args
, **kwargs
):
1022 """UnionRegion(self, Region region) -> bool"""
1023 return _gdi_
.Region_UnionRegion(*args
, **kwargs
)
1025 def Subtract(*args
, **kwargs
):
1026 """Subtract(self, int x, int y, int width, int height) -> bool"""
1027 return _gdi_
.Region_Subtract(*args
, **kwargs
)
1029 def SubtractRect(*args
, **kwargs
):
1030 """SubtractRect(self, Rect rect) -> bool"""
1031 return _gdi_
.Region_SubtractRect(*args
, **kwargs
)
1033 def SubtractRegion(*args
, **kwargs
):
1034 """SubtractRegion(self, Region region) -> bool"""
1035 return _gdi_
.Region_SubtractRegion(*args
, **kwargs
)
1037 def Xor(*args
, **kwargs
):
1038 """Xor(self, int x, int y, int width, int height) -> bool"""
1039 return _gdi_
.Region_Xor(*args
, **kwargs
)
1041 def XorRect(*args
, **kwargs
):
1042 """XorRect(self, Rect rect) -> bool"""
1043 return _gdi_
.Region_XorRect(*args
, **kwargs
)
1045 def XorRegion(*args
, **kwargs
):
1046 """XorRegion(self, Region region) -> bool"""
1047 return _gdi_
.Region_XorRegion(*args
, **kwargs
)
1049 def ConvertToBitmap(*args
, **kwargs
):
1050 """ConvertToBitmap(self) -> Bitmap"""
1051 return _gdi_
.Region_ConvertToBitmap(*args
, **kwargs
)
1053 def UnionBitmap(*args
, **kwargs
):
1054 """UnionBitmap(self, Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
1055 return _gdi_
.Region_UnionBitmap(*args
, **kwargs
)
1058 class RegionPtr(Region
):
1059 def __init__(self
, this
):
1061 if not hasattr(self
,"thisown"): self
.thisown
= 0
1062 self
.__class
__ = Region
1063 _gdi_
.Region_swigregister(RegionPtr
)
1065 def RegionFromBitmap(*args
, **kwargs
):
1066 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
1067 val
= _gdi_
.new_RegionFromBitmap(*args
, **kwargs
)
1071 def RegionFromPoints(*args
, **kwargs
):
1072 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
1073 val
= _gdi_
.new_RegionFromPoints(*args
, **kwargs
)
1077 class RegionIterator(_core
.Object
):
1079 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1080 def __init__(self
, *args
, **kwargs
):
1081 """__init__(self, Region region) -> RegionIterator"""
1082 newobj
= _gdi_
.new_RegionIterator(*args
, **kwargs
)
1083 self
.this
= newobj
.this
1086 def __del__(self
, destroy
=_gdi_
.delete_RegionIterator
):
1089 if self
.thisown
: destroy(self
)
1092 def GetX(*args
, **kwargs
):
1093 """GetX(self) -> int"""
1094 return _gdi_
.RegionIterator_GetX(*args
, **kwargs
)
1096 def GetY(*args
, **kwargs
):
1097 """GetY(self) -> int"""
1098 return _gdi_
.RegionIterator_GetY(*args
, **kwargs
)
1100 def GetW(*args
, **kwargs
):
1101 """GetW(self) -> int"""
1102 return _gdi_
.RegionIterator_GetW(*args
, **kwargs
)
1104 def GetWidth(*args
, **kwargs
):
1105 """GetWidth(self) -> int"""
1106 return _gdi_
.RegionIterator_GetWidth(*args
, **kwargs
)
1108 def GetH(*args
, **kwargs
):
1109 """GetH(self) -> int"""
1110 return _gdi_
.RegionIterator_GetH(*args
, **kwargs
)
1112 def GetHeight(*args
, **kwargs
):
1113 """GetHeight(self) -> int"""
1114 return _gdi_
.RegionIterator_GetHeight(*args
, **kwargs
)
1116 def GetRect(*args
, **kwargs
):
1117 """GetRect(self) -> Rect"""
1118 return _gdi_
.RegionIterator_GetRect(*args
, **kwargs
)
1120 def HaveRects(*args
, **kwargs
):
1121 """HaveRects(self) -> bool"""
1122 return _gdi_
.RegionIterator_HaveRects(*args
, **kwargs
)
1124 def Reset(*args
, **kwargs
):
1126 return _gdi_
.RegionIterator_Reset(*args
, **kwargs
)
1128 def Next(*args
, **kwargs
):
1130 return _gdi_
.RegionIterator_Next(*args
, **kwargs
)
1132 def __nonzero__(*args
, **kwargs
):
1133 """__nonzero__(self) -> bool"""
1134 return _gdi_
.RegionIterator___nonzero__(*args
, **kwargs
)
1137 class RegionIteratorPtr(RegionIterator
):
1138 def __init__(self
, this
):
1140 if not hasattr(self
,"thisown"): self
.thisown
= 0
1141 self
.__class
__ = RegionIterator
1142 _gdi_
.RegionIterator_swigregister(RegionIteratorPtr
)
1144 #---------------------------------------------------------------------------
1146 FONTFAMILY_DEFAULT
= _gdi_
.FONTFAMILY_DEFAULT
1147 FONTFAMILY_DECORATIVE
= _gdi_
.FONTFAMILY_DECORATIVE
1148 FONTFAMILY_ROMAN
= _gdi_
.FONTFAMILY_ROMAN
1149 FONTFAMILY_SCRIPT
= _gdi_
.FONTFAMILY_SCRIPT
1150 FONTFAMILY_SWISS
= _gdi_
.FONTFAMILY_SWISS
1151 FONTFAMILY_MODERN
= _gdi_
.FONTFAMILY_MODERN
1152 FONTFAMILY_TELETYPE
= _gdi_
.FONTFAMILY_TELETYPE
1153 FONTFAMILY_MAX
= _gdi_
.FONTFAMILY_MAX
1154 FONTFAMILY_UNKNOWN
= _gdi_
.FONTFAMILY_UNKNOWN
1155 FONTSTYLE_NORMAL
= _gdi_
.FONTSTYLE_NORMAL
1156 FONTSTYLE_ITALIC
= _gdi_
.FONTSTYLE_ITALIC
1157 FONTSTYLE_SLANT
= _gdi_
.FONTSTYLE_SLANT
1158 FONTSTYLE_MAX
= _gdi_
.FONTSTYLE_MAX
1159 FONTWEIGHT_NORMAL
= _gdi_
.FONTWEIGHT_NORMAL
1160 FONTWEIGHT_LIGHT
= _gdi_
.FONTWEIGHT_LIGHT
1161 FONTWEIGHT_BOLD
= _gdi_
.FONTWEIGHT_BOLD
1162 FONTWEIGHT_MAX
= _gdi_
.FONTWEIGHT_MAX
1163 FONTFLAG_DEFAULT
= _gdi_
.FONTFLAG_DEFAULT
1164 FONTFLAG_ITALIC
= _gdi_
.FONTFLAG_ITALIC
1165 FONTFLAG_SLANT
= _gdi_
.FONTFLAG_SLANT
1166 FONTFLAG_LIGHT
= _gdi_
.FONTFLAG_LIGHT
1167 FONTFLAG_BOLD
= _gdi_
.FONTFLAG_BOLD
1168 FONTFLAG_ANTIALIASED
= _gdi_
.FONTFLAG_ANTIALIASED
1169 FONTFLAG_NOT_ANTIALIASED
= _gdi_
.FONTFLAG_NOT_ANTIALIASED
1170 FONTFLAG_UNDERLINED
= _gdi_
.FONTFLAG_UNDERLINED
1171 FONTFLAG_STRIKETHROUGH
= _gdi_
.FONTFLAG_STRIKETHROUGH
1172 FONTFLAG_MASK
= _gdi_
.FONTFLAG_MASK
1173 FONTENCODING_SYSTEM
= _gdi_
.FONTENCODING_SYSTEM
1174 FONTENCODING_DEFAULT
= _gdi_
.FONTENCODING_DEFAULT
1175 FONTENCODING_ISO8859_1
= _gdi_
.FONTENCODING_ISO8859_1
1176 FONTENCODING_ISO8859_2
= _gdi_
.FONTENCODING_ISO8859_2
1177 FONTENCODING_ISO8859_3
= _gdi_
.FONTENCODING_ISO8859_3
1178 FONTENCODING_ISO8859_4
= _gdi_
.FONTENCODING_ISO8859_4
1179 FONTENCODING_ISO8859_5
= _gdi_
.FONTENCODING_ISO8859_5
1180 FONTENCODING_ISO8859_6
= _gdi_
.FONTENCODING_ISO8859_6
1181 FONTENCODING_ISO8859_7
= _gdi_
.FONTENCODING_ISO8859_7
1182 FONTENCODING_ISO8859_8
= _gdi_
.FONTENCODING_ISO8859_8
1183 FONTENCODING_ISO8859_9
= _gdi_
.FONTENCODING_ISO8859_9
1184 FONTENCODING_ISO8859_10
= _gdi_
.FONTENCODING_ISO8859_10
1185 FONTENCODING_ISO8859_11
= _gdi_
.FONTENCODING_ISO8859_11
1186 FONTENCODING_ISO8859_12
= _gdi_
.FONTENCODING_ISO8859_12
1187 FONTENCODING_ISO8859_13
= _gdi_
.FONTENCODING_ISO8859_13
1188 FONTENCODING_ISO8859_14
= _gdi_
.FONTENCODING_ISO8859_14
1189 FONTENCODING_ISO8859_15
= _gdi_
.FONTENCODING_ISO8859_15
1190 FONTENCODING_ISO8859_MAX
= _gdi_
.FONTENCODING_ISO8859_MAX
1191 FONTENCODING_KOI8
= _gdi_
.FONTENCODING_KOI8
1192 FONTENCODING_KOI8_U
= _gdi_
.FONTENCODING_KOI8_U
1193 FONTENCODING_ALTERNATIVE
= _gdi_
.FONTENCODING_ALTERNATIVE
1194 FONTENCODING_BULGARIAN
= _gdi_
.FONTENCODING_BULGARIAN
1195 FONTENCODING_CP437
= _gdi_
.FONTENCODING_CP437
1196 FONTENCODING_CP850
= _gdi_
.FONTENCODING_CP850
1197 FONTENCODING_CP852
= _gdi_
.FONTENCODING_CP852
1198 FONTENCODING_CP855
= _gdi_
.FONTENCODING_CP855
1199 FONTENCODING_CP866
= _gdi_
.FONTENCODING_CP866
1200 FONTENCODING_CP874
= _gdi_
.FONTENCODING_CP874
1201 FONTENCODING_CP932
= _gdi_
.FONTENCODING_CP932
1202 FONTENCODING_CP936
= _gdi_
.FONTENCODING_CP936
1203 FONTENCODING_CP949
= _gdi_
.FONTENCODING_CP949
1204 FONTENCODING_CP950
= _gdi_
.FONTENCODING_CP950
1205 FONTENCODING_CP1250
= _gdi_
.FONTENCODING_CP1250
1206 FONTENCODING_CP1251
= _gdi_
.FONTENCODING_CP1251
1207 FONTENCODING_CP1252
= _gdi_
.FONTENCODING_CP1252
1208 FONTENCODING_CP1253
= _gdi_
.FONTENCODING_CP1253
1209 FONTENCODING_CP1254
= _gdi_
.FONTENCODING_CP1254
1210 FONTENCODING_CP1255
= _gdi_
.FONTENCODING_CP1255
1211 FONTENCODING_CP1256
= _gdi_
.FONTENCODING_CP1256
1212 FONTENCODING_CP1257
= _gdi_
.FONTENCODING_CP1257
1213 FONTENCODING_CP12_MAX
= _gdi_
.FONTENCODING_CP12_MAX
1214 FONTENCODING_UTF7
= _gdi_
.FONTENCODING_UTF7
1215 FONTENCODING_UTF8
= _gdi_
.FONTENCODING_UTF8
1216 FONTENCODING_EUC_JP
= _gdi_
.FONTENCODING_EUC_JP
1217 FONTENCODING_UTF16BE
= _gdi_
.FONTENCODING_UTF16BE
1218 FONTENCODING_UTF16LE
= _gdi_
.FONTENCODING_UTF16LE
1219 FONTENCODING_UTF32BE
= _gdi_
.FONTENCODING_UTF32BE
1220 FONTENCODING_UTF32LE
= _gdi_
.FONTENCODING_UTF32LE
1221 FONTENCODING_MACROMAN
= _gdi_
.FONTENCODING_MACROMAN
1222 FONTENCODING_MACJAPANESE
= _gdi_
.FONTENCODING_MACJAPANESE
1223 FONTENCODING_MACCHINESETRAD
= _gdi_
.FONTENCODING_MACCHINESETRAD
1224 FONTENCODING_MACKOREAN
= _gdi_
.FONTENCODING_MACKOREAN
1225 FONTENCODING_MACARABIC
= _gdi_
.FONTENCODING_MACARABIC
1226 FONTENCODING_MACHEBREW
= _gdi_
.FONTENCODING_MACHEBREW
1227 FONTENCODING_MACGREEK
= _gdi_
.FONTENCODING_MACGREEK
1228 FONTENCODING_MACCYRILLIC
= _gdi_
.FONTENCODING_MACCYRILLIC
1229 FONTENCODING_MACDEVANAGARI
= _gdi_
.FONTENCODING_MACDEVANAGARI
1230 FONTENCODING_MACGURMUKHI
= _gdi_
.FONTENCODING_MACGURMUKHI
1231 FONTENCODING_MACGUJARATI
= _gdi_
.FONTENCODING_MACGUJARATI
1232 FONTENCODING_MACORIYA
= _gdi_
.FONTENCODING_MACORIYA
1233 FONTENCODING_MACBENGALI
= _gdi_
.FONTENCODING_MACBENGALI
1234 FONTENCODING_MACTAMIL
= _gdi_
.FONTENCODING_MACTAMIL
1235 FONTENCODING_MACTELUGU
= _gdi_
.FONTENCODING_MACTELUGU
1236 FONTENCODING_MACKANNADA
= _gdi_
.FONTENCODING_MACKANNADA
1237 FONTENCODING_MACMALAJALAM
= _gdi_
.FONTENCODING_MACMALAJALAM
1238 FONTENCODING_MACSINHALESE
= _gdi_
.FONTENCODING_MACSINHALESE
1239 FONTENCODING_MACBURMESE
= _gdi_
.FONTENCODING_MACBURMESE
1240 FONTENCODING_MACKHMER
= _gdi_
.FONTENCODING_MACKHMER
1241 FONTENCODING_MACTHAI
= _gdi_
.FONTENCODING_MACTHAI
1242 FONTENCODING_MACLAOTIAN
= _gdi_
.FONTENCODING_MACLAOTIAN
1243 FONTENCODING_MACGEORGIAN
= _gdi_
.FONTENCODING_MACGEORGIAN
1244 FONTENCODING_MACARMENIAN
= _gdi_
.FONTENCODING_MACARMENIAN
1245 FONTENCODING_MACCHINESESIMP
= _gdi_
.FONTENCODING_MACCHINESESIMP
1246 FONTENCODING_MACTIBETAN
= _gdi_
.FONTENCODING_MACTIBETAN
1247 FONTENCODING_MACMONGOLIAN
= _gdi_
.FONTENCODING_MACMONGOLIAN
1248 FONTENCODING_MACETHIOPIC
= _gdi_
.FONTENCODING_MACETHIOPIC
1249 FONTENCODING_MACCENTRALEUR
= _gdi_
.FONTENCODING_MACCENTRALEUR
1250 FONTENCODING_MACVIATNAMESE
= _gdi_
.FONTENCODING_MACVIATNAMESE
1251 FONTENCODING_MACARABICEXT
= _gdi_
.FONTENCODING_MACARABICEXT
1252 FONTENCODING_MACSYMBOL
= _gdi_
.FONTENCODING_MACSYMBOL
1253 FONTENCODING_MACDINGBATS
= _gdi_
.FONTENCODING_MACDINGBATS
1254 FONTENCODING_MACTURKISH
= _gdi_
.FONTENCODING_MACTURKISH
1255 FONTENCODING_MACCROATIAN
= _gdi_
.FONTENCODING_MACCROATIAN
1256 FONTENCODING_MACICELANDIC
= _gdi_
.FONTENCODING_MACICELANDIC
1257 FONTENCODING_MACROMANIAN
= _gdi_
.FONTENCODING_MACROMANIAN
1258 FONTENCODING_MACCELTIC
= _gdi_
.FONTENCODING_MACCELTIC
1259 FONTENCODING_MACGAELIC
= _gdi_
.FONTENCODING_MACGAELIC
1260 FONTENCODING_MACKEYBOARD
= _gdi_
.FONTENCODING_MACKEYBOARD
1261 FONTENCODING_MACMIN
= _gdi_
.FONTENCODING_MACMIN
1262 FONTENCODING_MACMAX
= _gdi_
.FONTENCODING_MACMAX
1263 FONTENCODING_MAX
= _gdi_
.FONTENCODING_MAX
1264 FONTENCODING_UTF16
= _gdi_
.FONTENCODING_UTF16
1265 FONTENCODING_UTF32
= _gdi_
.FONTENCODING_UTF32
1266 FONTENCODING_UNICODE
= _gdi_
.FONTENCODING_UNICODE
1267 FONTENCODING_GB2312
= _gdi_
.FONTENCODING_GB2312
1268 FONTENCODING_BIG5
= _gdi_
.FONTENCODING_BIG5
1269 FONTENCODING_SHIFT_JIS
= _gdi_
.FONTENCODING_SHIFT_JIS
1270 #---------------------------------------------------------------------------
1272 class NativeFontInfo(object):
1274 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1275 def __init__(self
, *args
, **kwargs
):
1276 """__init__(self) -> NativeFontInfo"""
1277 newobj
= _gdi_
.new_NativeFontInfo(*args
, **kwargs
)
1278 self
.this
= newobj
.this
1281 def __del__(self
, destroy
=_gdi_
.delete_NativeFontInfo
):
1284 if self
.thisown
: destroy(self
)
1287 def Init(*args
, **kwargs
):
1289 return _gdi_
.NativeFontInfo_Init(*args
, **kwargs
)
1291 def InitFromFont(*args
, **kwargs
):
1292 """InitFromFont(self, Font font)"""
1293 return _gdi_
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1295 def GetPointSize(*args
, **kwargs
):
1296 """GetPointSize(self) -> int"""
1297 return _gdi_
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1299 def GetStyle(*args
, **kwargs
):
1300 """GetStyle(self) -> int"""
1301 return _gdi_
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1303 def GetWeight(*args
, **kwargs
):
1304 """GetWeight(self) -> int"""
1305 return _gdi_
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1307 def GetUnderlined(*args
, **kwargs
):
1308 """GetUnderlined(self) -> bool"""
1309 return _gdi_
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1311 def GetFaceName(*args
, **kwargs
):
1312 """GetFaceName(self) -> String"""
1313 return _gdi_
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1315 def GetFamily(*args
, **kwargs
):
1316 """GetFamily(self) -> int"""
1317 return _gdi_
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1319 def GetEncoding(*args
, **kwargs
):
1320 """GetEncoding(self) -> int"""
1321 return _gdi_
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1323 def SetPointSize(*args
, **kwargs
):
1324 """SetPointSize(self, int pointsize)"""
1325 return _gdi_
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1327 def SetStyle(*args
, **kwargs
):
1328 """SetStyle(self, int style)"""
1329 return _gdi_
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1331 def SetWeight(*args
, **kwargs
):
1332 """SetWeight(self, int weight)"""
1333 return _gdi_
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1335 def SetUnderlined(*args
, **kwargs
):
1336 """SetUnderlined(self, bool underlined)"""
1337 return _gdi_
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1339 def SetFaceName(*args
, **kwargs
):
1340 """SetFaceName(self, String facename)"""
1341 return _gdi_
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1343 def SetFamily(*args
, **kwargs
):
1344 """SetFamily(self, int family)"""
1345 return _gdi_
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1347 def SetEncoding(*args
, **kwargs
):
1348 """SetEncoding(self, int encoding)"""
1349 return _gdi_
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1351 def FromString(*args
, **kwargs
):
1352 """FromString(self, String s) -> bool"""
1353 return _gdi_
.NativeFontInfo_FromString(*args
, **kwargs
)
1355 def ToString(*args
, **kwargs
):
1356 """ToString(self) -> String"""
1357 return _gdi_
.NativeFontInfo_ToString(*args
, **kwargs
)
1359 def __str__(*args
, **kwargs
):
1360 """__str__(self) -> String"""
1361 return _gdi_
.NativeFontInfo___str__(*args
, **kwargs
)
1363 def FromUserString(*args
, **kwargs
):
1364 """FromUserString(self, String s) -> bool"""
1365 return _gdi_
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1367 def ToUserString(*args
, **kwargs
):
1368 """ToUserString(self) -> String"""
1369 return _gdi_
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1372 class NativeFontInfoPtr(NativeFontInfo
):
1373 def __init__(self
, this
):
1375 if not hasattr(self
,"thisown"): self
.thisown
= 0
1376 self
.__class
__ = NativeFontInfo
1377 _gdi_
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1379 class NativeEncodingInfo(object):
1381 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1382 facename
= property(_gdi_
.NativeEncodingInfo_facename_get
, _gdi_
.NativeEncodingInfo_facename_set
)
1383 encoding
= property(_gdi_
.NativeEncodingInfo_encoding_get
, _gdi_
.NativeEncodingInfo_encoding_set
)
1384 def __init__(self
, *args
, **kwargs
):
1385 """__init__(self) -> NativeEncodingInfo"""
1386 newobj
= _gdi_
.new_NativeEncodingInfo(*args
, **kwargs
)
1387 self
.this
= newobj
.this
1390 def __del__(self
, destroy
=_gdi_
.delete_NativeEncodingInfo
):
1393 if self
.thisown
: destroy(self
)
1396 def FromString(*args
, **kwargs
):
1397 """FromString(self, String s) -> bool"""
1398 return _gdi_
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1400 def ToString(*args
, **kwargs
):
1401 """ToString(self) -> String"""
1402 return _gdi_
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1405 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1406 def __init__(self
, this
):
1408 if not hasattr(self
,"thisown"): self
.thisown
= 0
1409 self
.__class
__ = NativeEncodingInfo
1410 _gdi_
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1413 def GetNativeFontEncoding(*args
, **kwargs
):
1414 """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo"""
1415 return _gdi_
.GetNativeFontEncoding(*args
, **kwargs
)
1417 def TestFontEncoding(*args
, **kwargs
):
1418 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1419 return _gdi_
.TestFontEncoding(*args
, **kwargs
)
1420 #---------------------------------------------------------------------------
1422 class FontMapper(object):
1424 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1425 def __init__(self
, *args
, **kwargs
):
1426 """__init__(self) -> FontMapper"""
1427 newobj
= _gdi_
.new_FontMapper(*args
, **kwargs
)
1428 self
.this
= newobj
.this
1431 def __del__(self
, destroy
=_gdi_
.delete_FontMapper
):
1434 if self
.thisown
: destroy(self
)
1437 def Get(*args
, **kwargs
):
1438 """FontMapper.Get() -> FontMapper"""
1439 return _gdi_
.FontMapper_Get(*args
, **kwargs
)
1441 Get
= staticmethod(Get
)
1442 def Set(*args
, **kwargs
):
1443 """FontMapper.Set(FontMapper mapper) -> FontMapper"""
1444 return _gdi_
.FontMapper_Set(*args
, **kwargs
)
1446 Set
= staticmethod(Set
)
1447 def CharsetToEncoding(*args
, **kwargs
):
1448 """CharsetToEncoding(self, String charset, bool interactive=True) -> int"""
1449 return _gdi_
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1451 def GetSupportedEncodingsCount(*args
, **kwargs
):
1452 """FontMapper.GetSupportedEncodingsCount() -> size_t"""
1453 return _gdi_
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1455 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1456 def GetEncoding(*args
, **kwargs
):
1457 """FontMapper.GetEncoding(size_t n) -> int"""
1458 return _gdi_
.FontMapper_GetEncoding(*args
, **kwargs
)
1460 GetEncoding
= staticmethod(GetEncoding
)
1461 def GetEncodingName(*args
, **kwargs
):
1462 """FontMapper.GetEncodingName(int encoding) -> String"""
1463 return _gdi_
.FontMapper_GetEncodingName(*args
, **kwargs
)
1465 GetEncodingName
= staticmethod(GetEncodingName
)
1466 def GetEncodingDescription(*args
, **kwargs
):
1467 """FontMapper.GetEncodingDescription(int encoding) -> String"""
1468 return _gdi_
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1470 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1471 def GetEncodingFromName(*args
, **kwargs
):
1472 """FontMapper.GetEncodingFromName(String name) -> int"""
1473 return _gdi_
.FontMapper_GetEncodingFromName(*args
, **kwargs
)
1475 GetEncodingFromName
= staticmethod(GetEncodingFromName
)
1476 def SetConfig(*args
, **kwargs
):
1477 """SetConfig(self, ConfigBase config)"""
1478 return _gdi_
.FontMapper_SetConfig(*args
, **kwargs
)
1480 def SetConfigPath(*args
, **kwargs
):
1481 """SetConfigPath(self, String prefix)"""
1482 return _gdi_
.FontMapper_SetConfigPath(*args
, **kwargs
)
1484 def GetDefaultConfigPath(*args
, **kwargs
):
1485 """FontMapper.GetDefaultConfigPath() -> String"""
1486 return _gdi_
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1488 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1489 def GetAltForEncoding(*args
, **kwargs
):
1490 """GetAltForEncoding(self, int encoding, String facename=EmptyString, bool interactive=True) -> PyObject"""
1491 return _gdi_
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1493 def IsEncodingAvailable(*args
, **kwargs
):
1494 """IsEncodingAvailable(self, int encoding, String facename=EmptyString) -> bool"""
1495 return _gdi_
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1497 def SetDialogParent(*args
, **kwargs
):
1498 """SetDialogParent(self, Window parent)"""
1499 return _gdi_
.FontMapper_SetDialogParent(*args
, **kwargs
)
1501 def SetDialogTitle(*args
, **kwargs
):
1502 """SetDialogTitle(self, String title)"""
1503 return _gdi_
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1506 class FontMapperPtr(FontMapper
):
1507 def __init__(self
, this
):
1509 if not hasattr(self
,"thisown"): self
.thisown
= 0
1510 self
.__class
__ = FontMapper
1511 _gdi_
.FontMapper_swigregister(FontMapperPtr
)
1513 def FontMapper_Get(*args
, **kwargs
):
1514 """FontMapper_Get() -> FontMapper"""
1515 return _gdi_
.FontMapper_Get(*args
, **kwargs
)
1517 def FontMapper_Set(*args
, **kwargs
):
1518 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1519 return _gdi_
.FontMapper_Set(*args
, **kwargs
)
1521 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1522 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1523 return _gdi_
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1525 def FontMapper_GetEncoding(*args
, **kwargs
):
1526 """FontMapper_GetEncoding(size_t n) -> int"""
1527 return _gdi_
.FontMapper_GetEncoding(*args
, **kwargs
)
1529 def FontMapper_GetEncodingName(*args
, **kwargs
):
1530 """FontMapper_GetEncodingName(int encoding) -> String"""
1531 return _gdi_
.FontMapper_GetEncodingName(*args
, **kwargs
)
1533 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1534 """FontMapper_GetEncodingDescription(int encoding) -> String"""
1535 return _gdi_
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1537 def FontMapper_GetEncodingFromName(*args
, **kwargs
):
1538 """FontMapper_GetEncodingFromName(String name) -> int"""
1539 return _gdi_
.FontMapper_GetEncodingFromName(*args
, **kwargs
)
1541 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1542 """FontMapper_GetDefaultConfigPath() -> String"""
1543 return _gdi_
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1545 #---------------------------------------------------------------------------
1547 class Font(GDIObject
):
1549 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1550 def __init__(self
, *args
, **kwargs
):
1552 __init__(self, int pointSize, int family, int style, int weight, bool underline=False,
1553 String face=EmptyString,
1554 int encoding=FONTENCODING_DEFAULT) -> Font
1556 newobj
= _gdi_
.new_Font(*args
, **kwargs
)
1557 self
.this
= newobj
.this
1560 def __del__(self
, destroy
=_gdi_
.delete_Font
):
1563 if self
.thisown
: destroy(self
)
1566 def Ok(*args
, **kwargs
):
1567 """Ok(self) -> bool"""
1568 return _gdi_
.Font_Ok(*args
, **kwargs
)
1570 def __nonzero__(self
): return self
.Ok()
1571 def __eq__(*args
, **kwargs
):
1572 """__eq__(self, Font other) -> bool"""
1573 return _gdi_
.Font___eq__(*args
, **kwargs
)
1575 def __ne__(*args
, **kwargs
):
1576 """__ne__(self, Font other) -> bool"""
1577 return _gdi_
.Font___ne__(*args
, **kwargs
)
1579 def GetPointSize(*args
, **kwargs
):
1580 """GetPointSize(self) -> int"""
1581 return _gdi_
.Font_GetPointSize(*args
, **kwargs
)
1583 def GetFamily(*args
, **kwargs
):
1584 """GetFamily(self) -> int"""
1585 return _gdi_
.Font_GetFamily(*args
, **kwargs
)
1587 def GetStyle(*args
, **kwargs
):
1588 """GetStyle(self) -> int"""
1589 return _gdi_
.Font_GetStyle(*args
, **kwargs
)
1591 def GetWeight(*args
, **kwargs
):
1592 """GetWeight(self) -> int"""
1593 return _gdi_
.Font_GetWeight(*args
, **kwargs
)
1595 def GetUnderlined(*args
, **kwargs
):
1596 """GetUnderlined(self) -> bool"""
1597 return _gdi_
.Font_GetUnderlined(*args
, **kwargs
)
1599 def GetFaceName(*args
, **kwargs
):
1600 """GetFaceName(self) -> String"""
1601 return _gdi_
.Font_GetFaceName(*args
, **kwargs
)
1603 def GetEncoding(*args
, **kwargs
):
1604 """GetEncoding(self) -> int"""
1605 return _gdi_
.Font_GetEncoding(*args
, **kwargs
)
1607 def GetNativeFontInfo(*args
, **kwargs
):
1608 """GetNativeFontInfo(self) -> NativeFontInfo"""
1609 return _gdi_
.Font_GetNativeFontInfo(*args
, **kwargs
)
1611 def IsFixedWidth(*args
, **kwargs
):
1612 """IsFixedWidth(self) -> bool"""
1613 return _gdi_
.Font_IsFixedWidth(*args
, **kwargs
)
1615 def GetNativeFontInfoDesc(*args
, **kwargs
):
1616 """GetNativeFontInfoDesc(self) -> String"""
1617 return _gdi_
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1619 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1620 """GetNativeFontInfoUserDesc(self) -> String"""
1621 return _gdi_
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1623 def SetPointSize(*args
, **kwargs
):
1624 """SetPointSize(self, int pointSize)"""
1625 return _gdi_
.Font_SetPointSize(*args
, **kwargs
)
1627 def SetFamily(*args
, **kwargs
):
1628 """SetFamily(self, int family)"""
1629 return _gdi_
.Font_SetFamily(*args
, **kwargs
)
1631 def SetStyle(*args
, **kwargs
):
1632 """SetStyle(self, int style)"""
1633 return _gdi_
.Font_SetStyle(*args
, **kwargs
)
1635 def SetWeight(*args
, **kwargs
):
1636 """SetWeight(self, int weight)"""
1637 return _gdi_
.Font_SetWeight(*args
, **kwargs
)
1639 def SetFaceName(*args
, **kwargs
):
1640 """SetFaceName(self, String faceName)"""
1641 return _gdi_
.Font_SetFaceName(*args
, **kwargs
)
1643 def SetUnderlined(*args
, **kwargs
):
1644 """SetUnderlined(self, bool underlined)"""
1645 return _gdi_
.Font_SetUnderlined(*args
, **kwargs
)
1647 def SetEncoding(*args
, **kwargs
):
1648 """SetEncoding(self, int encoding)"""
1649 return _gdi_
.Font_SetEncoding(*args
, **kwargs
)
1651 def SetNativeFontInfo(*args
, **kwargs
):
1652 """SetNativeFontInfo(self, NativeFontInfo info)"""
1653 return _gdi_
.Font_SetNativeFontInfo(*args
, **kwargs
)
1655 def SetNativeFontInfoFromString(*args
, **kwargs
):
1656 """SetNativeFontInfoFromString(self, String info)"""
1657 return _gdi_
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1659 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1660 """SetNativeFontInfoUserDesc(self, String info)"""
1661 return _gdi_
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1663 def GetFamilyString(*args
, **kwargs
):
1664 """GetFamilyString(self) -> String"""
1665 return _gdi_
.Font_GetFamilyString(*args
, **kwargs
)
1667 def GetStyleString(*args
, **kwargs
):
1668 """GetStyleString(self) -> String"""
1669 return _gdi_
.Font_GetStyleString(*args
, **kwargs
)
1671 def GetWeightString(*args
, **kwargs
):
1672 """GetWeightString(self) -> String"""
1673 return _gdi_
.Font_GetWeightString(*args
, **kwargs
)
1675 def SetNoAntiAliasing(*args
, **kwargs
):
1676 """SetNoAntiAliasing(self, bool no=True)"""
1677 return _gdi_
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1679 def GetNoAntiAliasing(*args
, **kwargs
):
1680 """GetNoAntiAliasing(self) -> bool"""
1681 return _gdi_
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1683 def GetDefaultEncoding(*args
, **kwargs
):
1684 """Font.GetDefaultEncoding() -> int"""
1685 return _gdi_
.Font_GetDefaultEncoding(*args
, **kwargs
)
1687 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1688 def SetDefaultEncoding(*args
, **kwargs
):
1689 """Font.SetDefaultEncoding(int encoding)"""
1690 return _gdi_
.Font_SetDefaultEncoding(*args
, **kwargs
)
1692 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1694 class FontPtr(Font
):
1695 def __init__(self
, this
):
1697 if not hasattr(self
,"thisown"): self
.thisown
= 0
1698 self
.__class
__ = Font
1699 _gdi_
.Font_swigregister(FontPtr
)
1701 def FontFromNativeInfo(*args
, **kwargs
):
1702 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1703 val
= _gdi_
.new_FontFromNativeInfo(*args
, **kwargs
)
1707 def FontFromNativeInfoString(*args
, **kwargs
):
1708 """FontFromNativeInfoString(String info) -> Font"""
1709 val
= _gdi_
.new_FontFromNativeInfoString(*args
, **kwargs
)
1713 def Font2(*args
, **kwargs
):
1715 Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT,
1716 String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font
1718 val
= _gdi_
.new_Font2(*args
, **kwargs
)
1722 def Font_GetDefaultEncoding(*args
, **kwargs
):
1723 """Font_GetDefaultEncoding() -> int"""
1724 return _gdi_
.Font_GetDefaultEncoding(*args
, **kwargs
)
1726 def Font_SetDefaultEncoding(*args
, **kwargs
):
1727 """Font_SetDefaultEncoding(int encoding)"""
1728 return _gdi_
.Font_SetDefaultEncoding(*args
, **kwargs
)
1730 #---------------------------------------------------------------------------
1732 class FontEnumerator(object):
1734 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1735 def __init__(self
, *args
, **kwargs
):
1736 """__init__(self) -> FontEnumerator"""
1737 newobj
= _gdi_
.new_FontEnumerator(*args
, **kwargs
)
1738 self
.this
= newobj
.this
1741 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1743 def __del__(self
, destroy
=_gdi_
.delete_FontEnumerator
):
1746 if self
.thisown
: destroy(self
)
1749 def _setCallbackInfo(*args
, **kwargs
):
1750 """_setCallbackInfo(self, PyObject self, PyObject _class, bool incref)"""
1751 return _gdi_
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1753 def EnumerateFacenames(*args
, **kwargs
):
1754 """EnumerateFacenames(self, int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1755 return _gdi_
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1757 def EnumerateEncodings(*args
, **kwargs
):
1758 """EnumerateEncodings(self, String facename=EmptyString) -> bool"""
1759 return _gdi_
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1761 def GetEncodings(*args
, **kwargs
):
1762 """GetEncodings(self) -> PyObject"""
1763 return _gdi_
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1765 def GetFacenames(*args
, **kwargs
):
1766 """GetFacenames(self) -> PyObject"""
1767 return _gdi_
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1770 class FontEnumeratorPtr(FontEnumerator
):
1771 def __init__(self
, this
):
1773 if not hasattr(self
,"thisown"): self
.thisown
= 0
1774 self
.__class
__ = FontEnumerator
1775 _gdi_
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1777 #---------------------------------------------------------------------------
1779 LANGUAGE_DEFAULT
= _gdi_
.LANGUAGE_DEFAULT
1780 LANGUAGE_UNKNOWN
= _gdi_
.LANGUAGE_UNKNOWN
1781 LANGUAGE_ABKHAZIAN
= _gdi_
.LANGUAGE_ABKHAZIAN
1782 LANGUAGE_AFAR
= _gdi_
.LANGUAGE_AFAR
1783 LANGUAGE_AFRIKAANS
= _gdi_
.LANGUAGE_AFRIKAANS
1784 LANGUAGE_ALBANIAN
= _gdi_
.LANGUAGE_ALBANIAN
1785 LANGUAGE_AMHARIC
= _gdi_
.LANGUAGE_AMHARIC
1786 LANGUAGE_ARABIC
= _gdi_
.LANGUAGE_ARABIC
1787 LANGUAGE_ARABIC_ALGERIA
= _gdi_
.LANGUAGE_ARABIC_ALGERIA
1788 LANGUAGE_ARABIC_BAHRAIN
= _gdi_
.LANGUAGE_ARABIC_BAHRAIN
1789 LANGUAGE_ARABIC_EGYPT
= _gdi_
.LANGUAGE_ARABIC_EGYPT
1790 LANGUAGE_ARABIC_IRAQ
= _gdi_
.LANGUAGE_ARABIC_IRAQ
1791 LANGUAGE_ARABIC_JORDAN
= _gdi_
.LANGUAGE_ARABIC_JORDAN
1792 LANGUAGE_ARABIC_KUWAIT
= _gdi_
.LANGUAGE_ARABIC_KUWAIT
1793 LANGUAGE_ARABIC_LEBANON
= _gdi_
.LANGUAGE_ARABIC_LEBANON
1794 LANGUAGE_ARABIC_LIBYA
= _gdi_
.LANGUAGE_ARABIC_LIBYA
1795 LANGUAGE_ARABIC_MOROCCO
= _gdi_
.LANGUAGE_ARABIC_MOROCCO
1796 LANGUAGE_ARABIC_OMAN
= _gdi_
.LANGUAGE_ARABIC_OMAN
1797 LANGUAGE_ARABIC_QATAR
= _gdi_
.LANGUAGE_ARABIC_QATAR
1798 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi_
.LANGUAGE_ARABIC_SAUDI_ARABIA
1799 LANGUAGE_ARABIC_SUDAN
= _gdi_
.LANGUAGE_ARABIC_SUDAN
1800 LANGUAGE_ARABIC_SYRIA
= _gdi_
.LANGUAGE_ARABIC_SYRIA
1801 LANGUAGE_ARABIC_TUNISIA
= _gdi_
.LANGUAGE_ARABIC_TUNISIA
1802 LANGUAGE_ARABIC_UAE
= _gdi_
.LANGUAGE_ARABIC_UAE
1803 LANGUAGE_ARABIC_YEMEN
= _gdi_
.LANGUAGE_ARABIC_YEMEN
1804 LANGUAGE_ARMENIAN
= _gdi_
.LANGUAGE_ARMENIAN
1805 LANGUAGE_ASSAMESE
= _gdi_
.LANGUAGE_ASSAMESE
1806 LANGUAGE_AYMARA
= _gdi_
.LANGUAGE_AYMARA
1807 LANGUAGE_AZERI
= _gdi_
.LANGUAGE_AZERI
1808 LANGUAGE_AZERI_CYRILLIC
= _gdi_
.LANGUAGE_AZERI_CYRILLIC
1809 LANGUAGE_AZERI_LATIN
= _gdi_
.LANGUAGE_AZERI_LATIN
1810 LANGUAGE_BASHKIR
= _gdi_
.LANGUAGE_BASHKIR
1811 LANGUAGE_BASQUE
= _gdi_
.LANGUAGE_BASQUE
1812 LANGUAGE_BELARUSIAN
= _gdi_
.LANGUAGE_BELARUSIAN
1813 LANGUAGE_BENGALI
= _gdi_
.LANGUAGE_BENGALI
1814 LANGUAGE_BHUTANI
= _gdi_
.LANGUAGE_BHUTANI
1815 LANGUAGE_BIHARI
= _gdi_
.LANGUAGE_BIHARI
1816 LANGUAGE_BISLAMA
= _gdi_
.LANGUAGE_BISLAMA
1817 LANGUAGE_BRETON
= _gdi_
.LANGUAGE_BRETON
1818 LANGUAGE_BULGARIAN
= _gdi_
.LANGUAGE_BULGARIAN
1819 LANGUAGE_BURMESE
= _gdi_
.LANGUAGE_BURMESE
1820 LANGUAGE_CAMBODIAN
= _gdi_
.LANGUAGE_CAMBODIAN
1821 LANGUAGE_CATALAN
= _gdi_
.LANGUAGE_CATALAN
1822 LANGUAGE_CHINESE
= _gdi_
.LANGUAGE_CHINESE
1823 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi_
.LANGUAGE_CHINESE_SIMPLIFIED
1824 LANGUAGE_CHINESE_TRADITIONAL
= _gdi_
.LANGUAGE_CHINESE_TRADITIONAL
1825 LANGUAGE_CHINESE_HONGKONG
= _gdi_
.LANGUAGE_CHINESE_HONGKONG
1826 LANGUAGE_CHINESE_MACAU
= _gdi_
.LANGUAGE_CHINESE_MACAU
1827 LANGUAGE_CHINESE_SINGAPORE
= _gdi_
.LANGUAGE_CHINESE_SINGAPORE
1828 LANGUAGE_CHINESE_TAIWAN
= _gdi_
.LANGUAGE_CHINESE_TAIWAN
1829 LANGUAGE_CORSICAN
= _gdi_
.LANGUAGE_CORSICAN
1830 LANGUAGE_CROATIAN
= _gdi_
.LANGUAGE_CROATIAN
1831 LANGUAGE_CZECH
= _gdi_
.LANGUAGE_CZECH
1832 LANGUAGE_DANISH
= _gdi_
.LANGUAGE_DANISH
1833 LANGUAGE_DUTCH
= _gdi_
.LANGUAGE_DUTCH
1834 LANGUAGE_DUTCH_BELGIAN
= _gdi_
.LANGUAGE_DUTCH_BELGIAN
1835 LANGUAGE_ENGLISH
= _gdi_
.LANGUAGE_ENGLISH
1836 LANGUAGE_ENGLISH_UK
= _gdi_
.LANGUAGE_ENGLISH_UK
1837 LANGUAGE_ENGLISH_US
= _gdi_
.LANGUAGE_ENGLISH_US
1838 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi_
.LANGUAGE_ENGLISH_AUSTRALIA
1839 LANGUAGE_ENGLISH_BELIZE
= _gdi_
.LANGUAGE_ENGLISH_BELIZE
1840 LANGUAGE_ENGLISH_BOTSWANA
= _gdi_
.LANGUAGE_ENGLISH_BOTSWANA
1841 LANGUAGE_ENGLISH_CANADA
= _gdi_
.LANGUAGE_ENGLISH_CANADA
1842 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi_
.LANGUAGE_ENGLISH_CARIBBEAN
1843 LANGUAGE_ENGLISH_DENMARK
= _gdi_
.LANGUAGE_ENGLISH_DENMARK
1844 LANGUAGE_ENGLISH_EIRE
= _gdi_
.LANGUAGE_ENGLISH_EIRE
1845 LANGUAGE_ENGLISH_JAMAICA
= _gdi_
.LANGUAGE_ENGLISH_JAMAICA
1846 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi_
.LANGUAGE_ENGLISH_NEW_ZEALAND
1847 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi_
.LANGUAGE_ENGLISH_PHILIPPINES
1848 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi_
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1849 LANGUAGE_ENGLISH_TRINIDAD
= _gdi_
.LANGUAGE_ENGLISH_TRINIDAD
1850 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi_
.LANGUAGE_ENGLISH_ZIMBABWE
1851 LANGUAGE_ESPERANTO
= _gdi_
.LANGUAGE_ESPERANTO
1852 LANGUAGE_ESTONIAN
= _gdi_
.LANGUAGE_ESTONIAN
1853 LANGUAGE_FAEROESE
= _gdi_
.LANGUAGE_FAEROESE
1854 LANGUAGE_FARSI
= _gdi_
.LANGUAGE_FARSI
1855 LANGUAGE_FIJI
= _gdi_
.LANGUAGE_FIJI
1856 LANGUAGE_FINNISH
= _gdi_
.LANGUAGE_FINNISH
1857 LANGUAGE_FRENCH
= _gdi_
.LANGUAGE_FRENCH
1858 LANGUAGE_FRENCH_BELGIAN
= _gdi_
.LANGUAGE_FRENCH_BELGIAN
1859 LANGUAGE_FRENCH_CANADIAN
= _gdi_
.LANGUAGE_FRENCH_CANADIAN
1860 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi_
.LANGUAGE_FRENCH_LUXEMBOURG
1861 LANGUAGE_FRENCH_MONACO
= _gdi_
.LANGUAGE_FRENCH_MONACO
1862 LANGUAGE_FRENCH_SWISS
= _gdi_
.LANGUAGE_FRENCH_SWISS
1863 LANGUAGE_FRISIAN
= _gdi_
.LANGUAGE_FRISIAN
1864 LANGUAGE_GALICIAN
= _gdi_
.LANGUAGE_GALICIAN
1865 LANGUAGE_GEORGIAN
= _gdi_
.LANGUAGE_GEORGIAN
1866 LANGUAGE_GERMAN
= _gdi_
.LANGUAGE_GERMAN
1867 LANGUAGE_GERMAN_AUSTRIAN
= _gdi_
.LANGUAGE_GERMAN_AUSTRIAN
1868 LANGUAGE_GERMAN_BELGIUM
= _gdi_
.LANGUAGE_GERMAN_BELGIUM
1869 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi_
.LANGUAGE_GERMAN_LIECHTENSTEIN
1870 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi_
.LANGUAGE_GERMAN_LUXEMBOURG
1871 LANGUAGE_GERMAN_SWISS
= _gdi_
.LANGUAGE_GERMAN_SWISS
1872 LANGUAGE_GREEK
= _gdi_
.LANGUAGE_GREEK
1873 LANGUAGE_GREENLANDIC
= _gdi_
.LANGUAGE_GREENLANDIC
1874 LANGUAGE_GUARANI
= _gdi_
.LANGUAGE_GUARANI
1875 LANGUAGE_GUJARATI
= _gdi_
.LANGUAGE_GUJARATI
1876 LANGUAGE_HAUSA
= _gdi_
.LANGUAGE_HAUSA
1877 LANGUAGE_HEBREW
= _gdi_
.LANGUAGE_HEBREW
1878 LANGUAGE_HINDI
= _gdi_
.LANGUAGE_HINDI
1879 LANGUAGE_HUNGARIAN
= _gdi_
.LANGUAGE_HUNGARIAN
1880 LANGUAGE_ICELANDIC
= _gdi_
.LANGUAGE_ICELANDIC
1881 LANGUAGE_INDONESIAN
= _gdi_
.LANGUAGE_INDONESIAN
1882 LANGUAGE_INTERLINGUA
= _gdi_
.LANGUAGE_INTERLINGUA
1883 LANGUAGE_INTERLINGUE
= _gdi_
.LANGUAGE_INTERLINGUE
1884 LANGUAGE_INUKTITUT
= _gdi_
.LANGUAGE_INUKTITUT
1885 LANGUAGE_INUPIAK
= _gdi_
.LANGUAGE_INUPIAK
1886 LANGUAGE_IRISH
= _gdi_
.LANGUAGE_IRISH
1887 LANGUAGE_ITALIAN
= _gdi_
.LANGUAGE_ITALIAN
1888 LANGUAGE_ITALIAN_SWISS
= _gdi_
.LANGUAGE_ITALIAN_SWISS
1889 LANGUAGE_JAPANESE
= _gdi_
.LANGUAGE_JAPANESE
1890 LANGUAGE_JAVANESE
= _gdi_
.LANGUAGE_JAVANESE
1891 LANGUAGE_KANNADA
= _gdi_
.LANGUAGE_KANNADA
1892 LANGUAGE_KASHMIRI
= _gdi_
.LANGUAGE_KASHMIRI
1893 LANGUAGE_KASHMIRI_INDIA
= _gdi_
.LANGUAGE_KASHMIRI_INDIA
1894 LANGUAGE_KAZAKH
= _gdi_
.LANGUAGE_KAZAKH
1895 LANGUAGE_KERNEWEK
= _gdi_
.LANGUAGE_KERNEWEK
1896 LANGUAGE_KINYARWANDA
= _gdi_
.LANGUAGE_KINYARWANDA
1897 LANGUAGE_KIRGHIZ
= _gdi_
.LANGUAGE_KIRGHIZ
1898 LANGUAGE_KIRUNDI
= _gdi_
.LANGUAGE_KIRUNDI
1899 LANGUAGE_KONKANI
= _gdi_
.LANGUAGE_KONKANI
1900 LANGUAGE_KOREAN
= _gdi_
.LANGUAGE_KOREAN
1901 LANGUAGE_KURDISH
= _gdi_
.LANGUAGE_KURDISH
1902 LANGUAGE_LAOTHIAN
= _gdi_
.LANGUAGE_LAOTHIAN
1903 LANGUAGE_LATIN
= _gdi_
.LANGUAGE_LATIN
1904 LANGUAGE_LATVIAN
= _gdi_
.LANGUAGE_LATVIAN
1905 LANGUAGE_LINGALA
= _gdi_
.LANGUAGE_LINGALA
1906 LANGUAGE_LITHUANIAN
= _gdi_
.LANGUAGE_LITHUANIAN
1907 LANGUAGE_MACEDONIAN
= _gdi_
.LANGUAGE_MACEDONIAN
1908 LANGUAGE_MALAGASY
= _gdi_
.LANGUAGE_MALAGASY
1909 LANGUAGE_MALAY
= _gdi_
.LANGUAGE_MALAY
1910 LANGUAGE_MALAYALAM
= _gdi_
.LANGUAGE_MALAYALAM
1911 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi_
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1912 LANGUAGE_MALAY_MALAYSIA
= _gdi_
.LANGUAGE_MALAY_MALAYSIA
1913 LANGUAGE_MALTESE
= _gdi_
.LANGUAGE_MALTESE
1914 LANGUAGE_MANIPURI
= _gdi_
.LANGUAGE_MANIPURI
1915 LANGUAGE_MAORI
= _gdi_
.LANGUAGE_MAORI
1916 LANGUAGE_MARATHI
= _gdi_
.LANGUAGE_MARATHI
1917 LANGUAGE_MOLDAVIAN
= _gdi_
.LANGUAGE_MOLDAVIAN
1918 LANGUAGE_MONGOLIAN
= _gdi_
.LANGUAGE_MONGOLIAN
1919 LANGUAGE_NAURU
= _gdi_
.LANGUAGE_NAURU
1920 LANGUAGE_NEPALI
= _gdi_
.LANGUAGE_NEPALI
1921 LANGUAGE_NEPALI_INDIA
= _gdi_
.LANGUAGE_NEPALI_INDIA
1922 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi_
.LANGUAGE_NORWEGIAN_BOKMAL
1923 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi_
.LANGUAGE_NORWEGIAN_NYNORSK
1924 LANGUAGE_OCCITAN
= _gdi_
.LANGUAGE_OCCITAN
1925 LANGUAGE_ORIYA
= _gdi_
.LANGUAGE_ORIYA
1926 LANGUAGE_OROMO
= _gdi_
.LANGUAGE_OROMO
1927 LANGUAGE_PASHTO
= _gdi_
.LANGUAGE_PASHTO
1928 LANGUAGE_POLISH
= _gdi_
.LANGUAGE_POLISH
1929 LANGUAGE_PORTUGUESE
= _gdi_
.LANGUAGE_PORTUGUESE
1930 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi_
.LANGUAGE_PORTUGUESE_BRAZILIAN
1931 LANGUAGE_PUNJABI
= _gdi_
.LANGUAGE_PUNJABI
1932 LANGUAGE_QUECHUA
= _gdi_
.LANGUAGE_QUECHUA
1933 LANGUAGE_RHAETO_ROMANCE
= _gdi_
.LANGUAGE_RHAETO_ROMANCE
1934 LANGUAGE_ROMANIAN
= _gdi_
.LANGUAGE_ROMANIAN
1935 LANGUAGE_RUSSIAN
= _gdi_
.LANGUAGE_RUSSIAN
1936 LANGUAGE_RUSSIAN_UKRAINE
= _gdi_
.LANGUAGE_RUSSIAN_UKRAINE
1937 LANGUAGE_SAMOAN
= _gdi_
.LANGUAGE_SAMOAN
1938 LANGUAGE_SANGHO
= _gdi_
.LANGUAGE_SANGHO
1939 LANGUAGE_SANSKRIT
= _gdi_
.LANGUAGE_SANSKRIT
1940 LANGUAGE_SCOTS_GAELIC
= _gdi_
.LANGUAGE_SCOTS_GAELIC
1941 LANGUAGE_SERBIAN
= _gdi_
.LANGUAGE_SERBIAN
1942 LANGUAGE_SERBIAN_CYRILLIC
= _gdi_
.LANGUAGE_SERBIAN_CYRILLIC
1943 LANGUAGE_SERBIAN_LATIN
= _gdi_
.LANGUAGE_SERBIAN_LATIN
1944 LANGUAGE_SERBO_CROATIAN
= _gdi_
.LANGUAGE_SERBO_CROATIAN
1945 LANGUAGE_SESOTHO
= _gdi_
.LANGUAGE_SESOTHO
1946 LANGUAGE_SETSWANA
= _gdi_
.LANGUAGE_SETSWANA
1947 LANGUAGE_SHONA
= _gdi_
.LANGUAGE_SHONA
1948 LANGUAGE_SINDHI
= _gdi_
.LANGUAGE_SINDHI
1949 LANGUAGE_SINHALESE
= _gdi_
.LANGUAGE_SINHALESE
1950 LANGUAGE_SISWATI
= _gdi_
.LANGUAGE_SISWATI
1951 LANGUAGE_SLOVAK
= _gdi_
.LANGUAGE_SLOVAK
1952 LANGUAGE_SLOVENIAN
= _gdi_
.LANGUAGE_SLOVENIAN
1953 LANGUAGE_SOMALI
= _gdi_
.LANGUAGE_SOMALI
1954 LANGUAGE_SPANISH
= _gdi_
.LANGUAGE_SPANISH
1955 LANGUAGE_SPANISH_ARGENTINA
= _gdi_
.LANGUAGE_SPANISH_ARGENTINA
1956 LANGUAGE_SPANISH_BOLIVIA
= _gdi_
.LANGUAGE_SPANISH_BOLIVIA
1957 LANGUAGE_SPANISH_CHILE
= _gdi_
.LANGUAGE_SPANISH_CHILE
1958 LANGUAGE_SPANISH_COLOMBIA
= _gdi_
.LANGUAGE_SPANISH_COLOMBIA
1959 LANGUAGE_SPANISH_COSTA_RICA
= _gdi_
.LANGUAGE_SPANISH_COSTA_RICA
1960 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi_
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
1961 LANGUAGE_SPANISH_ECUADOR
= _gdi_
.LANGUAGE_SPANISH_ECUADOR
1962 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi_
.LANGUAGE_SPANISH_EL_SALVADOR
1963 LANGUAGE_SPANISH_GUATEMALA
= _gdi_
.LANGUAGE_SPANISH_GUATEMALA
1964 LANGUAGE_SPANISH_HONDURAS
= _gdi_
.LANGUAGE_SPANISH_HONDURAS
1965 LANGUAGE_SPANISH_MEXICAN
= _gdi_
.LANGUAGE_SPANISH_MEXICAN
1966 LANGUAGE_SPANISH_MODERN
= _gdi_
.LANGUAGE_SPANISH_MODERN
1967 LANGUAGE_SPANISH_NICARAGUA
= _gdi_
.LANGUAGE_SPANISH_NICARAGUA
1968 LANGUAGE_SPANISH_PANAMA
= _gdi_
.LANGUAGE_SPANISH_PANAMA
1969 LANGUAGE_SPANISH_PARAGUAY
= _gdi_
.LANGUAGE_SPANISH_PARAGUAY
1970 LANGUAGE_SPANISH_PERU
= _gdi_
.LANGUAGE_SPANISH_PERU
1971 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi_
.LANGUAGE_SPANISH_PUERTO_RICO
1972 LANGUAGE_SPANISH_URUGUAY
= _gdi_
.LANGUAGE_SPANISH_URUGUAY
1973 LANGUAGE_SPANISH_US
= _gdi_
.LANGUAGE_SPANISH_US
1974 LANGUAGE_SPANISH_VENEZUELA
= _gdi_
.LANGUAGE_SPANISH_VENEZUELA
1975 LANGUAGE_SUNDANESE
= _gdi_
.LANGUAGE_SUNDANESE
1976 LANGUAGE_SWAHILI
= _gdi_
.LANGUAGE_SWAHILI
1977 LANGUAGE_SWEDISH
= _gdi_
.LANGUAGE_SWEDISH
1978 LANGUAGE_SWEDISH_FINLAND
= _gdi_
.LANGUAGE_SWEDISH_FINLAND
1979 LANGUAGE_TAGALOG
= _gdi_
.LANGUAGE_TAGALOG
1980 LANGUAGE_TAJIK
= _gdi_
.LANGUAGE_TAJIK
1981 LANGUAGE_TAMIL
= _gdi_
.LANGUAGE_TAMIL
1982 LANGUAGE_TATAR
= _gdi_
.LANGUAGE_TATAR
1983 LANGUAGE_TELUGU
= _gdi_
.LANGUAGE_TELUGU
1984 LANGUAGE_THAI
= _gdi_
.LANGUAGE_THAI
1985 LANGUAGE_TIBETAN
= _gdi_
.LANGUAGE_TIBETAN
1986 LANGUAGE_TIGRINYA
= _gdi_
.LANGUAGE_TIGRINYA
1987 LANGUAGE_TONGA
= _gdi_
.LANGUAGE_TONGA
1988 LANGUAGE_TSONGA
= _gdi_
.LANGUAGE_TSONGA
1989 LANGUAGE_TURKISH
= _gdi_
.LANGUAGE_TURKISH
1990 LANGUAGE_TURKMEN
= _gdi_
.LANGUAGE_TURKMEN
1991 LANGUAGE_TWI
= _gdi_
.LANGUAGE_TWI
1992 LANGUAGE_UIGHUR
= _gdi_
.LANGUAGE_UIGHUR
1993 LANGUAGE_UKRAINIAN
= _gdi_
.LANGUAGE_UKRAINIAN
1994 LANGUAGE_URDU
= _gdi_
.LANGUAGE_URDU
1995 LANGUAGE_URDU_INDIA
= _gdi_
.LANGUAGE_URDU_INDIA
1996 LANGUAGE_URDU_PAKISTAN
= _gdi_
.LANGUAGE_URDU_PAKISTAN
1997 LANGUAGE_UZBEK
= _gdi_
.LANGUAGE_UZBEK
1998 LANGUAGE_UZBEK_CYRILLIC
= _gdi_
.LANGUAGE_UZBEK_CYRILLIC
1999 LANGUAGE_UZBEK_LATIN
= _gdi_
.LANGUAGE_UZBEK_LATIN
2000 LANGUAGE_VIETNAMESE
= _gdi_
.LANGUAGE_VIETNAMESE
2001 LANGUAGE_VOLAPUK
= _gdi_
.LANGUAGE_VOLAPUK
2002 LANGUAGE_WELSH
= _gdi_
.LANGUAGE_WELSH
2003 LANGUAGE_WOLOF
= _gdi_
.LANGUAGE_WOLOF
2004 LANGUAGE_XHOSA
= _gdi_
.LANGUAGE_XHOSA
2005 LANGUAGE_YIDDISH
= _gdi_
.LANGUAGE_YIDDISH
2006 LANGUAGE_YORUBA
= _gdi_
.LANGUAGE_YORUBA
2007 LANGUAGE_ZHUANG
= _gdi_
.LANGUAGE_ZHUANG
2008 LANGUAGE_ZULU
= _gdi_
.LANGUAGE_ZULU
2009 LANGUAGE_USER_DEFINED
= _gdi_
.LANGUAGE_USER_DEFINED
2010 class LanguageInfo(object):
2011 def __init__(self
): raise RuntimeError, "No constructor defined"
2013 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2014 Language
= property(_gdi_
.LanguageInfo_Language_get
, _gdi_
.LanguageInfo_Language_set
)
2015 CanonicalName
= property(_gdi_
.LanguageInfo_CanonicalName_get
, _gdi_
.LanguageInfo_CanonicalName_set
)
2016 Description
= property(_gdi_
.LanguageInfo_Description_get
, _gdi_
.LanguageInfo_Description_set
)
2018 class LanguageInfoPtr(LanguageInfo
):
2019 def __init__(self
, this
):
2021 if not hasattr(self
,"thisown"): self
.thisown
= 0
2022 self
.__class
__ = LanguageInfo
2023 _gdi_
.LanguageInfo_swigregister(LanguageInfoPtr
)
2025 LOCALE_CAT_NUMBER
= _gdi_
.LOCALE_CAT_NUMBER
2026 LOCALE_CAT_DATE
= _gdi_
.LOCALE_CAT_DATE
2027 LOCALE_CAT_MONEY
= _gdi_
.LOCALE_CAT_MONEY
2028 LOCALE_CAT_MAX
= _gdi_
.LOCALE_CAT_MAX
2029 LOCALE_THOUSANDS_SEP
= _gdi_
.LOCALE_THOUSANDS_SEP
2030 LOCALE_DECIMAL_POINT
= _gdi_
.LOCALE_DECIMAL_POINT
2031 LOCALE_LOAD_DEFAULT
= _gdi_
.LOCALE_LOAD_DEFAULT
2032 LOCALE_CONV_ENCODING
= _gdi_
.LOCALE_CONV_ENCODING
2033 class Locale(object):
2035 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2036 def __init__(self
, *args
, **kwargs
):
2037 """__init__(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
2038 newobj
= _gdi_
.new_Locale(*args
, **kwargs
)
2039 self
.this
= newobj
.this
2042 def __del__(self
, destroy
=_gdi_
.delete_Locale
):
2045 if self
.thisown
: destroy(self
)
2048 def Init1(*args
, **kwargs
):
2050 Init1(self, String szName, String szShort=EmptyString, String szLocale=EmptyString,
2051 bool bLoadDefault=True,
2052 bool bConvertEncoding=False) -> bool
2054 return _gdi_
.Locale_Init1(*args
, **kwargs
)
2056 def Init2(*args
, **kwargs
):
2057 """Init2(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
2058 return _gdi_
.Locale_Init2(*args
, **kwargs
)
2060 def Init(self
, *_args
, **_kwargs
):
2061 if type(_args
[0]) in [type(''), type(u
'')]:
2062 val
= self
.Init1(*_args
, **_kwargs
)
2064 val
= self
.Init2(*_args
, **_kwargs
)
2067 def GetSystemLanguage(*args
, **kwargs
):
2068 """Locale.GetSystemLanguage() -> int"""
2069 return _gdi_
.Locale_GetSystemLanguage(*args
, **kwargs
)
2071 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
2072 def GetSystemEncoding(*args
, **kwargs
):
2073 """Locale.GetSystemEncoding() -> int"""
2074 return _gdi_
.Locale_GetSystemEncoding(*args
, **kwargs
)
2076 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
2077 def GetSystemEncodingName(*args
, **kwargs
):
2078 """Locale.GetSystemEncodingName() -> String"""
2079 return _gdi_
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2081 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
2082 def IsOk(*args
, **kwargs
):
2083 """IsOk(self) -> bool"""
2084 return _gdi_
.Locale_IsOk(*args
, **kwargs
)
2086 def __nonzero__(self
): return self
.IsOk()
2087 def GetLocale(*args
, **kwargs
):
2088 """GetLocale(self) -> String"""
2089 return _gdi_
.Locale_GetLocale(*args
, **kwargs
)
2091 def GetLanguage(*args
, **kwargs
):
2092 """GetLanguage(self) -> int"""
2093 return _gdi_
.Locale_GetLanguage(*args
, **kwargs
)
2095 def GetSysName(*args
, **kwargs
):
2096 """GetSysName(self) -> String"""
2097 return _gdi_
.Locale_GetSysName(*args
, **kwargs
)
2099 def GetCanonicalName(*args
, **kwargs
):
2100 """GetCanonicalName(self) -> String"""
2101 return _gdi_
.Locale_GetCanonicalName(*args
, **kwargs
)
2103 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
2104 """Locale.AddCatalogLookupPathPrefix(String prefix)"""
2105 return _gdi_
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2107 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
2108 def AddCatalog(*args
, **kwargs
):
2109 """AddCatalog(self, String szDomain) -> bool"""
2110 return _gdi_
.Locale_AddCatalog(*args
, **kwargs
)
2112 def IsLoaded(*args
, **kwargs
):
2113 """IsLoaded(self, String szDomain) -> bool"""
2114 return _gdi_
.Locale_IsLoaded(*args
, **kwargs
)
2116 def GetLanguageInfo(*args
, **kwargs
):
2117 """Locale.GetLanguageInfo(int lang) -> LanguageInfo"""
2118 return _gdi_
.Locale_GetLanguageInfo(*args
, **kwargs
)
2120 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
2121 def GetLanguageName(*args
, **kwargs
):
2122 """Locale.GetLanguageName(int lang) -> String"""
2123 return _gdi_
.Locale_GetLanguageName(*args
, **kwargs
)
2125 GetLanguageName
= staticmethod(GetLanguageName
)
2126 def FindLanguageInfo(*args
, **kwargs
):
2127 """Locale.FindLanguageInfo(String locale) -> LanguageInfo"""
2128 return _gdi_
.Locale_FindLanguageInfo(*args
, **kwargs
)
2130 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
2131 def AddLanguage(*args
, **kwargs
):
2132 """Locale.AddLanguage(LanguageInfo info)"""
2133 return _gdi_
.Locale_AddLanguage(*args
, **kwargs
)
2135 AddLanguage
= staticmethod(AddLanguage
)
2136 def GetString(*args
, **kwargs
):
2137 """GetString(self, String szOrigString, String szDomain=EmptyString) -> String"""
2138 return _gdi_
.Locale_GetString(*args
, **kwargs
)
2140 def GetName(*args
, **kwargs
):
2141 """GetName(self) -> String"""
2142 return _gdi_
.Locale_GetName(*args
, **kwargs
)
2145 class LocalePtr(Locale
):
2146 def __init__(self
, this
):
2148 if not hasattr(self
,"thisown"): self
.thisown
= 0
2149 self
.__class
__ = Locale
2150 _gdi_
.Locale_swigregister(LocalePtr
)
2152 def Locale_GetSystemLanguage(*args
, **kwargs
):
2153 """Locale_GetSystemLanguage() -> int"""
2154 return _gdi_
.Locale_GetSystemLanguage(*args
, **kwargs
)
2156 def Locale_GetSystemEncoding(*args
, **kwargs
):
2157 """Locale_GetSystemEncoding() -> int"""
2158 return _gdi_
.Locale_GetSystemEncoding(*args
, **kwargs
)
2160 def Locale_GetSystemEncodingName(*args
, **kwargs
):
2161 """Locale_GetSystemEncodingName() -> String"""
2162 return _gdi_
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2164 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
2165 """Locale_AddCatalogLookupPathPrefix(String prefix)"""
2166 return _gdi_
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2168 def Locale_GetLanguageInfo(*args
, **kwargs
):
2169 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
2170 return _gdi_
.Locale_GetLanguageInfo(*args
, **kwargs
)
2172 def Locale_GetLanguageName(*args
, **kwargs
):
2173 """Locale_GetLanguageName(int lang) -> String"""
2174 return _gdi_
.Locale_GetLanguageName(*args
, **kwargs
)
2176 def Locale_FindLanguageInfo(*args
, **kwargs
):
2177 """Locale_FindLanguageInfo(String locale) -> LanguageInfo"""
2178 return _gdi_
.Locale_FindLanguageInfo(*args
, **kwargs
)
2180 def Locale_AddLanguage(*args
, **kwargs
):
2181 """Locale_AddLanguage(LanguageInfo info)"""
2182 return _gdi_
.Locale_AddLanguage(*args
, **kwargs
)
2185 def GetLocale(*args
, **kwargs
):
2186 """GetLocale() -> Locale"""
2187 return _gdi_
.GetLocale(*args
, **kwargs
)
2188 #---------------------------------------------------------------------------
2190 CONVERT_STRICT
= _gdi_
.CONVERT_STRICT
2191 CONVERT_SUBSTITUTE
= _gdi_
.CONVERT_SUBSTITUTE
2192 PLATFORM_CURRENT
= _gdi_
.PLATFORM_CURRENT
2193 PLATFORM_UNIX
= _gdi_
.PLATFORM_UNIX
2194 PLATFORM_WINDOWS
= _gdi_
.PLATFORM_WINDOWS
2195 PLATFORM_OS2
= _gdi_
.PLATFORM_OS2
2196 PLATFORM_MAC
= _gdi_
.PLATFORM_MAC
2197 class EncodingConverter(_core
.Object
):
2199 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2200 def __init__(self
, *args
, **kwargs
):
2201 """__init__(self) -> EncodingConverter"""
2202 newobj
= _gdi_
.new_EncodingConverter(*args
, **kwargs
)
2203 self
.this
= newobj
.this
2206 def __del__(self
, destroy
=_gdi_
.delete_EncodingConverter
):
2209 if self
.thisown
: destroy(self
)
2212 def Init(*args
, **kwargs
):
2213 """Init(self, int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool"""
2214 return _gdi_
.EncodingConverter_Init(*args
, **kwargs
)
2216 def Convert(*args
, **kwargs
):
2217 """Convert(self, String input) -> String"""
2218 return _gdi_
.EncodingConverter_Convert(*args
, **kwargs
)
2220 def GetPlatformEquivalents(*args
, **kwargs
):
2221 """EncodingConverter.GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2222 return _gdi_
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2224 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2225 def GetAllEquivalents(*args
, **kwargs
):
2226 """EncodingConverter.GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2227 return _gdi_
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2229 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2230 def CanConvert(*args
, **kwargs
):
2231 """EncodingConverter.CanConvert(int encIn, int encOut) -> bool"""
2232 return _gdi_
.EncodingConverter_CanConvert(*args
, **kwargs
)
2234 CanConvert
= staticmethod(CanConvert
)
2235 def __nonzero__(self
): return self
.IsOk()
2237 class EncodingConverterPtr(EncodingConverter
):
2238 def __init__(self
, this
):
2240 if not hasattr(self
,"thisown"): self
.thisown
= 0
2241 self
.__class
__ = EncodingConverter
2242 _gdi_
.EncodingConverter_swigregister(EncodingConverterPtr
)
2244 def GetTranslation(*args
):
2246 GetTranslation(String str) -> String
2247 GetTranslation(String str, String strPlural, size_t n) -> String
2249 return _gdi_
.GetTranslation(*args
)
2251 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2252 """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2253 return _gdi_
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2255 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2256 """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2257 return _gdi_
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2259 def EncodingConverter_CanConvert(*args
, **kwargs
):
2260 """EncodingConverter_CanConvert(int encIn, int encOut) -> bool"""
2261 return _gdi_
.EncodingConverter_CanConvert(*args
, **kwargs
)
2263 #----------------------------------------------------------------------------
2264 # wxGTK sets the locale when initialized. Doing this at the Python
2265 # level should set it up to match what GTK is doing at the C level.
2266 if wx
.Platform
== "__WXGTK__":
2269 locale
.setlocale(locale
.LC_ALL
, "")
2273 # On MSW add the directory where the wxWindows catalogs were installed
2274 # to the default catalog path.
2275 if wx
.Platform
== "__WXMSW__":
2277 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2278 Locale_AddCatalogLookupPathPrefix(localedir
)
2281 #----------------------------------------------------------------------------
2283 #---------------------------------------------------------------------------
2285 class DC(_core
.Object
):
2286 def __init__(self
): raise RuntimeError, "No constructor defined"
2288 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2289 def __del__(self
, destroy
=_gdi_
.delete_DC
):
2292 if self
.thisown
: destroy(self
)
2295 def BeginDrawing(*args
, **kwargs
):
2296 """BeginDrawing(self)"""
2297 return _gdi_
.DC_BeginDrawing(*args
, **kwargs
)
2299 def EndDrawing(*args
, **kwargs
):
2300 """EndDrawing(self)"""
2301 return _gdi_
.DC_EndDrawing(*args
, **kwargs
)
2303 def FloodFillXY(*args
, **kwargs
):
2304 """FloodFillXY(self, int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2305 return _gdi_
.DC_FloodFillXY(*args
, **kwargs
)
2307 def FloodFill(*args
, **kwargs
):
2308 """FloodFill(self, Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2309 return _gdi_
.DC_FloodFill(*args
, **kwargs
)
2311 def GetPixelXY(*args
, **kwargs
):
2312 """GetPixelXY(self, int x, int y) -> Colour"""
2313 return _gdi_
.DC_GetPixelXY(*args
, **kwargs
)
2315 def GetPixel(*args
, **kwargs
):
2316 """GetPixel(self, Point pt) -> Colour"""
2317 return _gdi_
.DC_GetPixel(*args
, **kwargs
)
2319 def DrawLineXY(*args
, **kwargs
):
2320 """DrawLineXY(self, int x1, int y1, int x2, int y2)"""
2321 return _gdi_
.DC_DrawLineXY(*args
, **kwargs
)
2323 def DrawLine(*args
, **kwargs
):
2324 """DrawLine(self, Point pt1, Point pt2)"""
2325 return _gdi_
.DC_DrawLine(*args
, **kwargs
)
2327 def CrossHairXY(*args
, **kwargs
):
2328 """CrossHairXY(self, int x, int y)"""
2329 return _gdi_
.DC_CrossHairXY(*args
, **kwargs
)
2331 def CrossHair(*args
, **kwargs
):
2332 """CrossHair(self, Point pt)"""
2333 return _gdi_
.DC_CrossHair(*args
, **kwargs
)
2335 def DrawArcXY(*args
, **kwargs
):
2336 """DrawArcXY(self, int x1, int y1, int x2, int y2, int xc, int yc)"""
2337 return _gdi_
.DC_DrawArcXY(*args
, **kwargs
)
2339 def DrawArc(*args
, **kwargs
):
2340 """DrawArc(self, Point pt1, Point pt2, Point centre)"""
2341 return _gdi_
.DC_DrawArc(*args
, **kwargs
)
2343 def DrawCheckMarkXY(*args
, **kwargs
):
2344 """DrawCheckMarkXY(self, int x, int y, int width, int height)"""
2345 return _gdi_
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2347 def DrawCheckMark(*args
, **kwargs
):
2348 """DrawCheckMark(self, Rect rect)"""
2349 return _gdi_
.DC_DrawCheckMark(*args
, **kwargs
)
2351 def DrawEllipticArcXY(*args
, **kwargs
):
2352 """DrawEllipticArcXY(self, int x, int y, int w, int h, double sa, double ea)"""
2353 return _gdi_
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2355 def DrawEllipticArc(*args
, **kwargs
):
2356 """DrawEllipticArc(self, Point pt, Size sz, double sa, double ea)"""
2357 return _gdi_
.DC_DrawEllipticArc(*args
, **kwargs
)
2359 def DrawPointXY(*args
, **kwargs
):
2360 """DrawPointXY(self, int x, int y)"""
2361 return _gdi_
.DC_DrawPointXY(*args
, **kwargs
)
2363 def DrawPoint(*args
, **kwargs
):
2364 """DrawPoint(self, Point pt)"""
2365 return _gdi_
.DC_DrawPoint(*args
, **kwargs
)
2367 def DrawRectangleXY(*args
, **kwargs
):
2368 """DrawRectangleXY(self, int x, int y, int width, int height)"""
2369 return _gdi_
.DC_DrawRectangleXY(*args
, **kwargs
)
2371 def DrawRectangle(*args
, **kwargs
):
2372 """DrawRectangle(self, Point pt, Size sz)"""
2373 return _gdi_
.DC_DrawRectangle(*args
, **kwargs
)
2375 def DrawRectangleRect(*args
, **kwargs
):
2376 """DrawRectangleRect(self, Rect rect)"""
2377 return _gdi_
.DC_DrawRectangleRect(*args
, **kwargs
)
2379 def DrawRoundedRectangleXY(*args
, **kwargs
):
2380 """DrawRoundedRectangleXY(self, int x, int y, int width, int height, double radius)"""
2381 return _gdi_
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2383 def DrawRoundedRectangle(*args
, **kwargs
):
2384 """DrawRoundedRectangle(self, Point pt, Size sz, double radius)"""
2385 return _gdi_
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2387 def DrawRoundedRectangleRect(*args
, **kwargs
):
2388 """DrawRoundedRectangleRect(self, Rect r, double radius)"""
2389 return _gdi_
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2391 def DrawCircleXY(*args
, **kwargs
):
2392 """DrawCircleXY(self, int x, int y, int radius)"""
2393 return _gdi_
.DC_DrawCircleXY(*args
, **kwargs
)
2395 def DrawCircle(*args
, **kwargs
):
2396 """DrawCircle(self, Point pt, int radius)"""
2397 return _gdi_
.DC_DrawCircle(*args
, **kwargs
)
2399 def DrawEllipseXY(*args
, **kwargs
):
2400 """DrawEllipseXY(self, int x, int y, int width, int height)"""
2401 return _gdi_
.DC_DrawEllipseXY(*args
, **kwargs
)
2403 def DrawEllipse(*args
, **kwargs
):
2404 """DrawEllipse(self, Point pt, Size sz)"""
2405 return _gdi_
.DC_DrawEllipse(*args
, **kwargs
)
2407 def DrawEllipseRect(*args
, **kwargs
):
2408 """DrawEllipseRect(self, Rect rect)"""
2409 return _gdi_
.DC_DrawEllipseRect(*args
, **kwargs
)
2411 def DrawIconXY(*args
, **kwargs
):
2412 """DrawIconXY(self, Icon icon, int x, int y)"""
2413 return _gdi_
.DC_DrawIconXY(*args
, **kwargs
)
2415 def DrawIcon(*args
, **kwargs
):
2416 """DrawIcon(self, Icon icon, Point pt)"""
2417 return _gdi_
.DC_DrawIcon(*args
, **kwargs
)
2419 def DrawBitmapXY(*args
, **kwargs
):
2420 """DrawBitmapXY(self, Bitmap bmp, int x, int y, bool useMask=False)"""
2421 return _gdi_
.DC_DrawBitmapXY(*args
, **kwargs
)
2423 def DrawBitmap(*args
, **kwargs
):
2424 """DrawBitmap(self, Bitmap bmp, Point pt, bool useMask=False)"""
2425 return _gdi_
.DC_DrawBitmap(*args
, **kwargs
)
2427 def DrawTextXY(*args
, **kwargs
):
2428 """DrawTextXY(self, String text, int x, int y)"""
2429 return _gdi_
.DC_DrawTextXY(*args
, **kwargs
)
2431 def DrawText(*args
, **kwargs
):
2432 """DrawText(self, String text, Point pt)"""
2433 return _gdi_
.DC_DrawText(*args
, **kwargs
)
2435 def DrawRotatedTextXY(*args
, **kwargs
):
2436 """DrawRotatedTextXY(self, String text, int x, int y, double angle)"""
2437 return _gdi_
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2439 def DrawRotatedText(*args
, **kwargs
):
2440 """DrawRotatedText(self, String text, Point pt, double angle)"""
2441 return _gdi_
.DC_DrawRotatedText(*args
, **kwargs
)
2443 def BlitXY(*args
, **kwargs
):
2445 BlitXY(self, int xdest, int ydest, int width, int height, DC source,
2446 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2447 int xsrcMask=-1, int ysrcMask=-1) -> bool
2449 return _gdi_
.DC_BlitXY(*args
, **kwargs
)
2451 def Blit(*args
, **kwargs
):
2453 Blit(self, Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2454 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
2456 return _gdi_
.DC_Blit(*args
, **kwargs
)
2458 def DrawLines(*args
, **kwargs
):
2459 """DrawLines(self, int points, Point points_array, int xoffset=0, int yoffset=0)"""
2460 return _gdi_
.DC_DrawLines(*args
, **kwargs
)
2462 def DrawPolygon(*args
, **kwargs
):
2464 DrawPolygon(self, int points, Point points_array, int xoffset=0, int yoffset=0,
2465 int fillStyle=ODDEVEN_RULE)
2467 return _gdi_
.DC_DrawPolygon(*args
, **kwargs
)
2469 def DrawLabel(*args
, **kwargs
):
2471 DrawLabel(self, String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2474 return _gdi_
.DC_DrawLabel(*args
, **kwargs
)
2476 def DrawImageLabel(*args
, **kwargs
):
2478 DrawImageLabel(self, String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2479 int indexAccel=-1) -> Rect
2481 return _gdi_
.DC_DrawImageLabel(*args
, **kwargs
)
2483 def DrawSpline(*args
, **kwargs
):
2484 """DrawSpline(self, int points, Point points_array)"""
2485 return _gdi_
.DC_DrawSpline(*args
, **kwargs
)
2487 def Clear(*args
, **kwargs
):
2489 return _gdi_
.DC_Clear(*args
, **kwargs
)
2491 def StartDoc(*args
, **kwargs
):
2492 """StartDoc(self, String message) -> bool"""
2493 return _gdi_
.DC_StartDoc(*args
, **kwargs
)
2495 def EndDoc(*args
, **kwargs
):
2497 return _gdi_
.DC_EndDoc(*args
, **kwargs
)
2499 def StartPage(*args
, **kwargs
):
2500 """StartPage(self)"""
2501 return _gdi_
.DC_StartPage(*args
, **kwargs
)
2503 def EndPage(*args
, **kwargs
):
2505 return _gdi_
.DC_EndPage(*args
, **kwargs
)
2507 def SetFont(*args
, **kwargs
):
2508 """SetFont(self, Font font)"""
2509 return _gdi_
.DC_SetFont(*args
, **kwargs
)
2511 def SetPen(*args
, **kwargs
):
2512 """SetPen(self, Pen pen)"""
2513 return _gdi_
.DC_SetPen(*args
, **kwargs
)
2515 def SetBrush(*args
, **kwargs
):
2516 """SetBrush(self, Brush brush)"""
2517 return _gdi_
.DC_SetBrush(*args
, **kwargs
)
2519 def SetBackground(*args
, **kwargs
):
2520 """SetBackground(self, Brush brush)"""
2521 return _gdi_
.DC_SetBackground(*args
, **kwargs
)
2523 def SetBackgroundMode(*args
, **kwargs
):
2524 """SetBackgroundMode(self, int mode)"""
2525 return _gdi_
.DC_SetBackgroundMode(*args
, **kwargs
)
2527 def SetPalette(*args
, **kwargs
):
2528 """SetPalette(self, Palette palette)"""
2529 return _gdi_
.DC_SetPalette(*args
, **kwargs
)
2531 def SetClippingRegionXY(*args
, **kwargs
):
2532 """SetClippingRegionXY(self, int x, int y, int width, int height)"""
2533 return _gdi_
.DC_SetClippingRegionXY(*args
, **kwargs
)
2535 def SetClippingRegion(*args
, **kwargs
):
2536 """SetClippingRegion(self, Point pt, Size sz)"""
2537 return _gdi_
.DC_SetClippingRegion(*args
, **kwargs
)
2539 def SetClippingRect(*args
, **kwargs
):
2540 """SetClippingRect(self, Rect rect)"""
2541 return _gdi_
.DC_SetClippingRect(*args
, **kwargs
)
2543 def SetClippingRegionAsRegion(*args
, **kwargs
):
2544 """SetClippingRegionAsRegion(self, Region region)"""
2545 return _gdi_
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2547 def DestroyClippingRegion(*args
, **kwargs
):
2548 """DestroyClippingRegion(self)"""
2549 return _gdi_
.DC_DestroyClippingRegion(*args
, **kwargs
)
2551 def GetClippingBox(*args
, **kwargs
):
2552 """GetClippingBox() -> (x, y, width, height)"""
2553 return _gdi_
.DC_GetClippingBox(*args
, **kwargs
)
2555 def GetClippingRect(*args
, **kwargs
):
2556 """GetClippingRect(self) -> Rect"""
2557 return _gdi_
.DC_GetClippingRect(*args
, **kwargs
)
2559 def GetCharHeight(*args
, **kwargs
):
2560 """GetCharHeight(self) -> int"""
2561 return _gdi_
.DC_GetCharHeight(*args
, **kwargs
)
2563 def GetCharWidth(*args
, **kwargs
):
2564 """GetCharWidth(self) -> int"""
2565 return _gdi_
.DC_GetCharWidth(*args
, **kwargs
)
2567 def GetTextExtent(*args
, **kwargs
):
2569 GetTextExtent(wxString string) -> (width, height)
2571 Get the width and height of the text using the current font.
2572 Only works for single line strings.
2574 return _gdi_
.DC_GetTextExtent(*args
, **kwargs
)
2576 def GetFullTextExtent(*args
, **kwargs
):
2578 GetFullTextExtent(wxString string, Font font=None) ->
2579 (width, height, descent, externalLeading)
2581 Get the width, height, decent and leading of the text using the current or specified font.
2582 Only works for single line strings.
2584 return _gdi_
.DC_GetFullTextExtent(*args
, **kwargs
)
2586 def GetMultiLineTextExtent(*args
, **kwargs
):
2588 GetMultiLineTextExtent(wxString string, Font font=None) ->
2589 (width, height, descent, externalLeading)
2591 Get the width, height, decent and leading of the text using the current or specified font.
2592 Works for single as well as multi-line strings.
2594 return _gdi_
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2596 def GetPartialTextExtents(*args
, **kwargs
):
2597 """GetPartialTextExtents(self, String text) -> wxArrayInt"""
2598 return _gdi_
.DC_GetPartialTextExtents(*args
, **kwargs
)
2600 def GetSize(*args
, **kwargs
):
2602 GetSize(self) -> Size
2604 Get the DC size in device units.
2606 return _gdi_
.DC_GetSize(*args
, **kwargs
)
2608 def GetSizeTuple(*args
, **kwargs
):
2610 GetSizeTuple() -> (width, height)
2612 Get the DC size in device units.
2614 return _gdi_
.DC_GetSizeTuple(*args
, **kwargs
)
2616 def GetSizeMM(*args
, **kwargs
):
2618 GetSizeMM(self) -> Size
2620 Get the DC size in milimeters.
2622 return _gdi_
.DC_GetSizeMM(*args
, **kwargs
)
2624 def GetSizeMMTuple(*args
, **kwargs
):
2626 GetSizeMMTuple() -> (width, height)
2628 Get the DC size in milimeters.
2630 return _gdi_
.DC_GetSizeMMTuple(*args
, **kwargs
)
2632 def DeviceToLogicalX(*args
, **kwargs
):
2633 """DeviceToLogicalX(self, int x) -> int"""
2634 return _gdi_
.DC_DeviceToLogicalX(*args
, **kwargs
)
2636 def DeviceToLogicalY(*args
, **kwargs
):
2637 """DeviceToLogicalY(self, int y) -> int"""
2638 return _gdi_
.DC_DeviceToLogicalY(*args
, **kwargs
)
2640 def DeviceToLogicalXRel(*args
, **kwargs
):
2641 """DeviceToLogicalXRel(self, int x) -> int"""
2642 return _gdi_
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2644 def DeviceToLogicalYRel(*args
, **kwargs
):
2645 """DeviceToLogicalYRel(self, int y) -> int"""
2646 return _gdi_
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2648 def LogicalToDeviceX(*args
, **kwargs
):
2649 """LogicalToDeviceX(self, int x) -> int"""
2650 return _gdi_
.DC_LogicalToDeviceX(*args
, **kwargs
)
2652 def LogicalToDeviceY(*args
, **kwargs
):
2653 """LogicalToDeviceY(self, int y) -> int"""
2654 return _gdi_
.DC_LogicalToDeviceY(*args
, **kwargs
)
2656 def LogicalToDeviceXRel(*args
, **kwargs
):
2657 """LogicalToDeviceXRel(self, int x) -> int"""
2658 return _gdi_
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2660 def LogicalToDeviceYRel(*args
, **kwargs
):
2661 """LogicalToDeviceYRel(self, int y) -> int"""
2662 return _gdi_
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2664 def CanDrawBitmap(*args
, **kwargs
):
2665 """CanDrawBitmap(self) -> bool"""
2666 return _gdi_
.DC_CanDrawBitmap(*args
, **kwargs
)
2668 def CanGetTextExtent(*args
, **kwargs
):
2669 """CanGetTextExtent(self) -> bool"""
2670 return _gdi_
.DC_CanGetTextExtent(*args
, **kwargs
)
2672 def GetDepth(*args
, **kwargs
):
2673 """GetDepth(self) -> int"""
2674 return _gdi_
.DC_GetDepth(*args
, **kwargs
)
2676 def GetPPI(*args
, **kwargs
):
2677 """GetPPI(self) -> Size"""
2678 return _gdi_
.DC_GetPPI(*args
, **kwargs
)
2680 def Ok(*args
, **kwargs
):
2681 """Ok(self) -> bool"""
2682 return _gdi_
.DC_Ok(*args
, **kwargs
)
2684 def GetBackgroundMode(*args
, **kwargs
):
2685 """GetBackgroundMode(self) -> int"""
2686 return _gdi_
.DC_GetBackgroundMode(*args
, **kwargs
)
2688 def GetBackground(*args
, **kwargs
):
2689 """GetBackground(self) -> Brush"""
2690 return _gdi_
.DC_GetBackground(*args
, **kwargs
)
2692 def GetBrush(*args
, **kwargs
):
2693 """GetBrush(self) -> Brush"""
2694 return _gdi_
.DC_GetBrush(*args
, **kwargs
)
2696 def GetFont(*args
, **kwargs
):
2697 """GetFont(self) -> Font"""
2698 return _gdi_
.DC_GetFont(*args
, **kwargs
)
2700 def GetPen(*args
, **kwargs
):
2701 """GetPen(self) -> Pen"""
2702 return _gdi_
.DC_GetPen(*args
, **kwargs
)
2704 def GetTextBackground(*args
, **kwargs
):
2705 """GetTextBackground(self) -> Colour"""
2706 return _gdi_
.DC_GetTextBackground(*args
, **kwargs
)
2708 def GetTextForeground(*args
, **kwargs
):
2709 """GetTextForeground(self) -> Colour"""
2710 return _gdi_
.DC_GetTextForeground(*args
, **kwargs
)
2712 def SetTextForeground(*args
, **kwargs
):
2713 """SetTextForeground(self, Colour colour)"""
2714 return _gdi_
.DC_SetTextForeground(*args
, **kwargs
)
2716 def SetTextBackground(*args
, **kwargs
):
2717 """SetTextBackground(self, Colour colour)"""
2718 return _gdi_
.DC_SetTextBackground(*args
, **kwargs
)
2720 def GetMapMode(*args
, **kwargs
):
2721 """GetMapMode(self) -> int"""
2722 return _gdi_
.DC_GetMapMode(*args
, **kwargs
)
2724 def SetMapMode(*args
, **kwargs
):
2725 """SetMapMode(self, int mode)"""
2726 return _gdi_
.DC_SetMapMode(*args
, **kwargs
)
2728 def GetUserScale(*args
, **kwargs
):
2729 """GetUserScale() -> (xScale, yScale)"""
2730 return _gdi_
.DC_GetUserScale(*args
, **kwargs
)
2732 def SetUserScale(*args
, **kwargs
):
2733 """SetUserScale(self, double x, double y)"""
2734 return _gdi_
.DC_SetUserScale(*args
, **kwargs
)
2736 def GetLogicalScale(*args
, **kwargs
):
2737 """GetLogicalScale() -> (xScale, yScale)"""
2738 return _gdi_
.DC_GetLogicalScale(*args
, **kwargs
)
2740 def SetLogicalScale(*args
, **kwargs
):
2741 """SetLogicalScale(self, double x, double y)"""
2742 return _gdi_
.DC_SetLogicalScale(*args
, **kwargs
)
2744 def GetLogicalOrigin(*args
, **kwargs
):
2745 """GetLogicalOrigin(self) -> Point"""
2746 return _gdi_
.DC_GetLogicalOrigin(*args
, **kwargs
)
2748 def GetLogicalOriginTuple(*args
, **kwargs
):
2749 """GetLogicalOriginTuple() -> (x,y)"""
2750 return _gdi_
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2752 def SetLogicalOrigin(*args
, **kwargs
):
2753 """SetLogicalOrigin(self, int x, int y)"""
2754 return _gdi_
.DC_SetLogicalOrigin(*args
, **kwargs
)
2756 def GetDeviceOrigin(*args
, **kwargs
):
2757 """GetDeviceOrigin(self) -> Point"""
2758 return _gdi_
.DC_GetDeviceOrigin(*args
, **kwargs
)
2760 def GetDeviceOriginTuple(*args
, **kwargs
):
2761 """GetDeviceOriginTuple() -> (x,y)"""
2762 return _gdi_
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2764 def SetDeviceOrigin(*args
, **kwargs
):
2765 """SetDeviceOrigin(self, int x, int y)"""
2766 return _gdi_
.DC_SetDeviceOrigin(*args
, **kwargs
)
2768 def SetAxisOrientation(*args
, **kwargs
):
2769 """SetAxisOrientation(self, bool xLeftRight, bool yBottomUp)"""
2770 return _gdi_
.DC_SetAxisOrientation(*args
, **kwargs
)
2772 def GetLogicalFunction(*args
, **kwargs
):
2773 """GetLogicalFunction(self) -> int"""
2774 return _gdi_
.DC_GetLogicalFunction(*args
, **kwargs
)
2776 def SetLogicalFunction(*args
, **kwargs
):
2777 """SetLogicalFunction(self, int function)"""
2778 return _gdi_
.DC_SetLogicalFunction(*args
, **kwargs
)
2780 def SetOptimization(*args
, **kwargs
):
2781 """SetOptimization(self, bool opt)"""
2782 return _gdi_
.DC_SetOptimization(*args
, **kwargs
)
2784 def GetOptimization(*args
, **kwargs
):
2785 """GetOptimization(self) -> bool"""
2786 return _gdi_
.DC_GetOptimization(*args
, **kwargs
)
2788 def CalcBoundingBox(*args
, **kwargs
):
2789 """CalcBoundingBox(self, int x, int y)"""
2790 return _gdi_
.DC_CalcBoundingBox(*args
, **kwargs
)
2792 def ResetBoundingBox(*args
, **kwargs
):
2793 """ResetBoundingBox(self)"""
2794 return _gdi_
.DC_ResetBoundingBox(*args
, **kwargs
)
2796 def MinX(*args
, **kwargs
):
2797 """MinX(self) -> int"""
2798 return _gdi_
.DC_MinX(*args
, **kwargs
)
2800 def MaxX(*args
, **kwargs
):
2801 """MaxX(self) -> int"""
2802 return _gdi_
.DC_MaxX(*args
, **kwargs
)
2804 def MinY(*args
, **kwargs
):
2805 """MinY(self) -> int"""
2806 return _gdi_
.DC_MinY(*args
, **kwargs
)
2808 def MaxY(*args
, **kwargs
):
2809 """MaxY(self) -> int"""
2810 return _gdi_
.DC_MaxY(*args
, **kwargs
)
2812 def GetBoundingBox(*args
, **kwargs
):
2813 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2814 return _gdi_
.DC_GetBoundingBox(*args
, **kwargs
)
2816 def __nonzero__(self
): return self
.Ok()
2817 def _DrawPointList(*args
, **kwargs
):
2818 """_DrawPointList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2819 return _gdi_
.DC__DrawPointList(*args
, **kwargs
)
2821 def _DrawLineList(*args
, **kwargs
):
2822 """_DrawLineList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2823 return _gdi_
.DC__DrawLineList(*args
, **kwargs
)
2825 def _DrawRectangleList(*args
, **kwargs
):
2826 """_DrawRectangleList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2827 return _gdi_
.DC__DrawRectangleList(*args
, **kwargs
)
2829 def _DrawEllipseList(*args
, **kwargs
):
2830 """_DrawEllipseList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2831 return _gdi_
.DC__DrawEllipseList(*args
, **kwargs
)
2833 def _DrawPolygonList(*args
, **kwargs
):
2834 """_DrawPolygonList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2835 return _gdi_
.DC__DrawPolygonList(*args
, **kwargs
)
2837 def _DrawTextList(*args
, **kwargs
):
2839 _DrawTextList(self, PyObject textList, PyObject pyPoints, PyObject foregroundList,
2840 PyObject backgroundList) -> PyObject
2842 return _gdi_
.DC__DrawTextList(*args
, **kwargs
)
2844 def DrawPointList(self
, points
, pens
=None):
2847 elif isinstance(pens
, wx
.Pen
):
2849 elif len(pens
) != len(points
):
2850 raise ValueError('points and pens must have same length')
2851 return self
._DrawPointList
(points
, pens
, [])
2854 def DrawLineList(self
, lines
, pens
=None):
2857 elif isinstance(pens
, wx
.Pen
):
2859 elif len(pens
) != len(lines
):
2860 raise ValueError('lines and pens must have same length')
2861 return self
._DrawLineList
(lines
, pens
, [])
2864 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2867 elif isinstance(pens
, wx
.Pen
):
2869 elif len(pens
) != len(rectangles
):
2870 raise ValueError('rectangles and pens must have same length')
2873 elif isinstance(brushes
, wx
.Brush
):
2875 elif len(brushes
) != len(rectangles
):
2876 raise ValueError('rectangles and brushes must have same length')
2877 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2880 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2883 elif isinstance(pens
, wx
.Pen
):
2885 elif len(pens
) != len(ellipses
):
2886 raise ValueError('ellipses and pens must have same length')
2889 elif isinstance(brushes
, wx
.Brush
):
2891 elif len(brushes
) != len(ellipses
):
2892 raise ValueError('ellipses and brushes must have same length')
2893 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2896 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2897 ## Note: This does not currently support fill style or offset
2898 ## you can always use the non-List version if need be.
2901 elif isinstance(pens
, wx
.Pen
):
2903 elif len(pens
) != len(polygons
):
2904 raise ValueError('polygons and pens must have same length')
2907 elif isinstance(brushes
, wx
.Brush
):
2909 elif len(brushes
) != len(polygons
):
2910 raise ValueError('polygons and brushes must have same length')
2911 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2914 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2915 ## NOTE: this does not currently support changing the font
2916 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
2917 ## If you want backgounds to do anything.
2918 if type(textList
) == type(''):
2919 textList
= [textList
]
2920 elif len(textList
) != len(coords
):
2921 raise ValueError('textlist and coords must have same length')
2922 if foregrounds
is None:
2924 elif isinstance(foregrounds
, wx
.Colour
):
2925 foregrounds
= [foregrounds
]
2926 elif len(foregrounds
) != len(coords
):
2927 raise ValueError('foregrounds and coords must have same length')
2928 if backgrounds
is None:
2930 elif isinstance(backgrounds
, wx
.Colour
):
2931 backgrounds
= [backgrounds
]
2932 elif len(backgrounds
) != len(coords
):
2933 raise ValueError('backgrounds and coords must have same length')
2934 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2938 def __init__(self
, this
):
2940 if not hasattr(self
,"thisown"): self
.thisown
= 0
2942 _gdi_
.DC_swigregister(DCPtr
)
2944 #---------------------------------------------------------------------------
2948 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2949 def __init__(self
, *args
, **kwargs
):
2950 """__init__(self) -> MemoryDC"""
2951 newobj
= _gdi_
.new_MemoryDC(*args
, **kwargs
)
2952 self
.this
= newobj
.this
2955 def SelectObject(*args
, **kwargs
):
2956 """SelectObject(self, Bitmap bitmap)"""
2957 return _gdi_
.MemoryDC_SelectObject(*args
, **kwargs
)
2960 class MemoryDCPtr(MemoryDC
):
2961 def __init__(self
, this
):
2963 if not hasattr(self
,"thisown"): self
.thisown
= 0
2964 self
.__class
__ = MemoryDC
2965 _gdi_
.MemoryDC_swigregister(MemoryDCPtr
)
2967 def MemoryDCFromDC(*args
, **kwargs
):
2968 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
2969 val
= _gdi_
.new_MemoryDCFromDC(*args
, **kwargs
)
2973 #---------------------------------------------------------------------------
2975 class BufferedDC(MemoryDC
):
2977 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2978 def __init__(self
, *args
):
2980 __init__(self, DC dc, Bitmap buffer) -> BufferedDC
2981 __init__(self, DC dc, Size area) -> BufferedDC
2983 newobj
= _gdi_
.new_BufferedDC(*args
)
2984 self
.this
= newobj
.this
2987 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2989 def __del__(self
, destroy
=_gdi_
.delete_BufferedDC
):
2992 if self
.thisown
: destroy(self
)
2995 def UnMask(*args
, **kwargs
):
2997 return _gdi_
.BufferedDC_UnMask(*args
, **kwargs
)
3000 class BufferedDCPtr(BufferedDC
):
3001 def __init__(self
, this
):
3003 if not hasattr(self
,"thisown"): self
.thisown
= 0
3004 self
.__class
__ = BufferedDC
3005 _gdi_
.BufferedDC_swigregister(BufferedDCPtr
)
3007 def BufferedDCInternalBuffer(*args
):
3008 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
3009 val
= _gdi_
.new_BufferedDCInternalBuffer(*args
)
3011 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
3014 class BufferedPaintDC(BufferedDC
):
3016 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3017 def __init__(self
, *args
, **kwargs
):
3018 """__init__(self, Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
3019 newobj
= _gdi_
.new_BufferedPaintDC(*args
, **kwargs
)
3020 self
.this
= newobj
.this
3024 class BufferedPaintDCPtr(BufferedPaintDC
):
3025 def __init__(self
, this
):
3027 if not hasattr(self
,"thisown"): self
.thisown
= 0
3028 self
.__class
__ = BufferedPaintDC
3029 _gdi_
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
3031 #---------------------------------------------------------------------------
3035 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3036 def __init__(self
, *args
, **kwargs
):
3037 """__init__(self) -> ScreenDC"""
3038 newobj
= _gdi_
.new_ScreenDC(*args
, **kwargs
)
3039 self
.this
= newobj
.this
3042 def StartDrawingOnTopWin(*args
, **kwargs
):
3043 """StartDrawingOnTopWin(self, Window window) -> bool"""
3044 return _gdi_
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
3046 def StartDrawingOnTop(*args
, **kwargs
):
3047 """StartDrawingOnTop(self, Rect rect=None) -> bool"""
3048 return _gdi_
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
3050 def EndDrawingOnTop(*args
, **kwargs
):
3051 """EndDrawingOnTop(self) -> bool"""
3052 return _gdi_
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
3055 class ScreenDCPtr(ScreenDC
):
3056 def __init__(self
, this
):
3058 if not hasattr(self
,"thisown"): self
.thisown
= 0
3059 self
.__class
__ = ScreenDC
3060 _gdi_
.ScreenDC_swigregister(ScreenDCPtr
)
3062 #---------------------------------------------------------------------------
3066 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3067 def __init__(self
, *args
, **kwargs
):
3068 """__init__(self, Window win) -> ClientDC"""
3069 newobj
= _gdi_
.new_ClientDC(*args
, **kwargs
)
3070 self
.this
= newobj
.this
3074 class ClientDCPtr(ClientDC
):
3075 def __init__(self
, this
):
3077 if not hasattr(self
,"thisown"): self
.thisown
= 0
3078 self
.__class
__ = ClientDC
3079 _gdi_
.ClientDC_swigregister(ClientDCPtr
)
3081 #---------------------------------------------------------------------------
3085 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3086 def __init__(self
, *args
, **kwargs
):
3087 """__init__(self, Window win) -> PaintDC"""
3088 newobj
= _gdi_
.new_PaintDC(*args
, **kwargs
)
3089 self
.this
= newobj
.this
3093 class PaintDCPtr(PaintDC
):
3094 def __init__(self
, this
):
3096 if not hasattr(self
,"thisown"): self
.thisown
= 0
3097 self
.__class
__ = PaintDC
3098 _gdi_
.PaintDC_swigregister(PaintDCPtr
)
3100 #---------------------------------------------------------------------------
3104 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3105 def __init__(self
, *args
, **kwargs
):
3106 """__init__(self, Window win) -> WindowDC"""
3107 newobj
= _gdi_
.new_WindowDC(*args
, **kwargs
)
3108 self
.this
= newobj
.this
3112 class WindowDCPtr(WindowDC
):
3113 def __init__(self
, this
):
3115 if not hasattr(self
,"thisown"): self
.thisown
= 0
3116 self
.__class
__ = WindowDC
3117 _gdi_
.WindowDC_swigregister(WindowDCPtr
)
3119 #---------------------------------------------------------------------------
3123 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3124 def __init__(self
, *args
, **kwargs
):
3125 """__init__(self, DC dc, bool mirror) -> MirrorDC"""
3126 newobj
= _gdi_
.new_MirrorDC(*args
, **kwargs
)
3127 self
.this
= newobj
.this
3131 class MirrorDCPtr(MirrorDC
):
3132 def __init__(self
, this
):
3134 if not hasattr(self
,"thisown"): self
.thisown
= 0
3135 self
.__class
__ = MirrorDC
3136 _gdi_
.MirrorDC_swigregister(MirrorDCPtr
)
3138 #---------------------------------------------------------------------------
3140 class PostScriptDC(DC
):
3142 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3143 def __init__(self
, *args
, **kwargs
):
3144 """__init__(self, wxPrintData printData) -> PostScriptDC"""
3145 newobj
= _gdi_
.new_PostScriptDC(*args
, **kwargs
)
3146 self
.this
= newobj
.this
3149 def GetPrintData(*args
, **kwargs
):
3150 """GetPrintData(self) -> wxPrintData"""
3151 return _gdi_
.PostScriptDC_GetPrintData(*args
, **kwargs
)
3153 def SetPrintData(*args
, **kwargs
):
3154 """SetPrintData(self, wxPrintData data)"""
3155 return _gdi_
.PostScriptDC_SetPrintData(*args
, **kwargs
)
3157 def SetResolution(*args
, **kwargs
):
3158 """PostScriptDC.SetResolution(int ppi)"""
3159 return _gdi_
.PostScriptDC_SetResolution(*args
, **kwargs
)
3161 SetResolution
= staticmethod(SetResolution
)
3162 def GetResolution(*args
, **kwargs
):
3163 """PostScriptDC.GetResolution() -> int"""
3164 return _gdi_
.PostScriptDC_GetResolution(*args
, **kwargs
)
3166 GetResolution
= staticmethod(GetResolution
)
3168 class PostScriptDCPtr(PostScriptDC
):
3169 def __init__(self
, this
):
3171 if not hasattr(self
,"thisown"): self
.thisown
= 0
3172 self
.__class
__ = PostScriptDC
3173 _gdi_
.PostScriptDC_swigregister(PostScriptDCPtr
)
3175 def PostScriptDC_SetResolution(*args
, **kwargs
):
3176 """PostScriptDC_SetResolution(int ppi)"""
3177 return _gdi_
.PostScriptDC_SetResolution(*args
, **kwargs
)
3179 def PostScriptDC_GetResolution(*args
, **kwargs
):
3180 """PostScriptDC_GetResolution() -> int"""
3181 return _gdi_
.PostScriptDC_GetResolution(*args
, **kwargs
)
3183 #---------------------------------------------------------------------------
3185 class MetaFile(_core
.Object
):
3187 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3188 def __init__(self
, *args
, **kwargs
):
3189 """__init__(self, String filename=EmptyString) -> MetaFile"""
3190 newobj
= _gdi_
.new_MetaFile(*args
, **kwargs
)
3191 self
.this
= newobj
.this
3195 class MetaFilePtr(MetaFile
):
3196 def __init__(self
, this
):
3198 if not hasattr(self
,"thisown"): self
.thisown
= 0
3199 self
.__class
__ = MetaFile
3200 _gdi_
.MetaFile_swigregister(MetaFilePtr
)
3202 class MetaFileDC(DC
):
3204 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3205 def __init__(self
, *args
, **kwargs
):
3207 __init__(self, String filename=EmptyString, int width=0, int height=0,
3208 String description=EmptyString) -> MetaFileDC
3210 newobj
= _gdi_
.new_MetaFileDC(*args
, **kwargs
)
3211 self
.this
= newobj
.this
3215 class MetaFileDCPtr(MetaFileDC
):
3216 def __init__(self
, this
):
3218 if not hasattr(self
,"thisown"): self
.thisown
= 0
3219 self
.__class
__ = MetaFileDC
3220 _gdi_
.MetaFileDC_swigregister(MetaFileDCPtr
)
3222 class PrinterDC(DC
):
3224 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3225 def __init__(self
, *args
, **kwargs
):
3226 """__init__(self, wxPrintData printData) -> PrinterDC"""
3227 newobj
= _gdi_
.new_PrinterDC(*args
, **kwargs
)
3228 self
.this
= newobj
.this
3232 class PrinterDCPtr(PrinterDC
):
3233 def __init__(self
, this
):
3235 if not hasattr(self
,"thisown"): self
.thisown
= 0
3236 self
.__class
__ = PrinterDC
3237 _gdi_
.PrinterDC_swigregister(PrinterDCPtr
)
3240 """DC class that has methods with 2.4 compatible parameters."""
3241 FloodFill
= DC
.FloodFillXY
3242 GetPixel
= DC
.GetPixelXY
3243 DrawLine
= DC
.DrawLineXY
3244 CrossHair
= DC
.CrossHairXY
3245 DrawArc
= DC
.DrawArcXY
3246 DrawCheckMark
= DC
.DrawCheckMarkXY
3247 DrawEllipticArc
= DC
.DrawEllipticArcXY
3248 DrawPoint
= DC
.DrawPointXY
3249 DrawRectangle
= DC
.DrawRectangleXY
3250 DrawRoundedRectangle
= DC
.DrawRoundedRectangleXY
3251 DrawCircle
= DC
.DrawCircleXY
3252 DrawEllipse
= DC
.DrawEllipseXY
3253 DrawIcon
= DC
.DrawIconXY
3254 DrawBitmap
= DC
.DrawBitmapXY
3255 DrawText
= DC
.DrawTextXY
3256 DrawRotatedText
= DC
.DrawRotatedTextXY
3259 class MemoryDC_old(MemoryDC
):
3260 """DC class that has methods with 2.4 compatible parameters."""
3261 FloodFill
= MemoryDC
.FloodFillXY
3262 GetPixel
= MemoryDC
.GetPixelXY
3263 DrawLine
= MemoryDC
.DrawLineXY
3264 CrossHair
= MemoryDC
.CrossHairXY
3265 DrawArc
= MemoryDC
.DrawArcXY
3266 DrawCheckMark
= MemoryDC
.DrawCheckMarkXY
3267 DrawEllipticArc
= MemoryDC
.DrawEllipticArcXY
3268 DrawPoint
= MemoryDC
.DrawPointXY
3269 DrawRectangle
= MemoryDC
.DrawRectangleXY
3270 DrawRoundedRectangle
= MemoryDC
.DrawRoundedRectangleXY
3271 DrawCircle
= MemoryDC
.DrawCircleXY
3272 DrawEllipse
= MemoryDC
.DrawEllipseXY
3273 DrawIcon
= MemoryDC
.DrawIconXY
3274 DrawBitmap
= MemoryDC
.DrawBitmapXY
3275 DrawText
= MemoryDC
.DrawTextXY
3276 DrawRotatedText
= MemoryDC
.DrawRotatedTextXY
3277 Blit
= MemoryDC
.BlitXY
3279 class BufferedDC_old(BufferedDC
):
3280 """DC class that has methods with 2.4 compatible parameters."""
3281 FloodFill
= BufferedDC
.FloodFillXY
3282 GetPixel
= BufferedDC
.GetPixelXY
3283 DrawLine
= BufferedDC
.DrawLineXY
3284 CrossHair
= BufferedDC
.CrossHairXY
3285 DrawArc
= BufferedDC
.DrawArcXY
3286 DrawCheckMark
= BufferedDC
.DrawCheckMarkXY
3287 DrawEllipticArc
= BufferedDC
.DrawEllipticArcXY
3288 DrawPoint
= BufferedDC
.DrawPointXY
3289 DrawRectangle
= BufferedDC
.DrawRectangleXY
3290 DrawRoundedRectangle
= BufferedDC
.DrawRoundedRectangleXY
3291 DrawCircle
= BufferedDC
.DrawCircleXY
3292 DrawEllipse
= BufferedDC
.DrawEllipseXY
3293 DrawIcon
= BufferedDC
.DrawIconXY
3294 DrawBitmap
= BufferedDC
.DrawBitmapXY
3295 DrawText
= BufferedDC
.DrawTextXY
3296 DrawRotatedText
= BufferedDC
.DrawRotatedTextXY
3297 Blit
= BufferedDC
.BlitXY
3299 class BufferedPaintDC_old(BufferedPaintDC
):
3300 """DC class that has methods with 2.4 compatible parameters."""
3301 FloodFill
= BufferedPaintDC
.FloodFillXY
3302 GetPixel
= BufferedPaintDC
.GetPixelXY
3303 DrawLine
= BufferedPaintDC
.DrawLineXY
3304 CrossHair
= BufferedPaintDC
.CrossHairXY
3305 DrawArc
= BufferedPaintDC
.DrawArcXY
3306 DrawCheckMark
= BufferedPaintDC
.DrawCheckMarkXY
3307 DrawEllipticArc
= BufferedPaintDC
.DrawEllipticArcXY
3308 DrawPoint
= BufferedPaintDC
.DrawPointXY
3309 DrawRectangle
= BufferedPaintDC
.DrawRectangleXY
3310 DrawRoundedRectangle
= BufferedPaintDC
.DrawRoundedRectangleXY
3311 DrawCircle
= BufferedPaintDC
.DrawCircleXY
3312 DrawEllipse
= BufferedPaintDC
.DrawEllipseXY
3313 DrawIcon
= BufferedPaintDC
.DrawIconXY
3314 DrawBitmap
= BufferedPaintDC
.DrawBitmapXY
3315 DrawText
= BufferedPaintDC
.DrawTextXY
3316 DrawRotatedText
= BufferedPaintDC
.DrawRotatedTextXY
3317 Blit
= BufferedPaintDC
.BlitXY
3319 class ScreenDC_old(ScreenDC
):
3320 """DC class that has methods with 2.4 compatible parameters."""
3321 FloodFill
= ScreenDC
.FloodFillXY
3322 GetPixel
= ScreenDC
.GetPixelXY
3323 DrawLine
= ScreenDC
.DrawLineXY
3324 CrossHair
= ScreenDC
.CrossHairXY
3325 DrawArc
= ScreenDC
.DrawArcXY
3326 DrawCheckMark
= ScreenDC
.DrawCheckMarkXY
3327 DrawEllipticArc
= ScreenDC
.DrawEllipticArcXY
3328 DrawPoint
= ScreenDC
.DrawPointXY
3329 DrawRectangle
= ScreenDC
.DrawRectangleXY
3330 DrawRoundedRectangle
= ScreenDC
.DrawRoundedRectangleXY
3331 DrawCircle
= ScreenDC
.DrawCircleXY
3332 DrawEllipse
= ScreenDC
.DrawEllipseXY
3333 DrawIcon
= ScreenDC
.DrawIconXY
3334 DrawBitmap
= ScreenDC
.DrawBitmapXY
3335 DrawText
= ScreenDC
.DrawTextXY
3336 DrawRotatedText
= ScreenDC
.DrawRotatedTextXY
3337 Blit
= ScreenDC
.BlitXY
3339 class ClientDC_old(ClientDC
):
3340 """DC class that has methods with 2.4 compatible parameters."""
3341 FloodFill
= ClientDC
.FloodFillXY
3342 GetPixel
= ClientDC
.GetPixelXY
3343 DrawLine
= ClientDC
.DrawLineXY
3344 CrossHair
= ClientDC
.CrossHairXY
3345 DrawArc
= ClientDC
.DrawArcXY
3346 DrawCheckMark
= ClientDC
.DrawCheckMarkXY
3347 DrawEllipticArc
= ClientDC
.DrawEllipticArcXY
3348 DrawPoint
= ClientDC
.DrawPointXY
3349 DrawRectangle
= ClientDC
.DrawRectangleXY
3350 DrawRoundedRectangle
= ClientDC
.DrawRoundedRectangleXY
3351 DrawCircle
= ClientDC
.DrawCircleXY
3352 DrawEllipse
= ClientDC
.DrawEllipseXY
3353 DrawIcon
= ClientDC
.DrawIconXY
3354 DrawBitmap
= ClientDC
.DrawBitmapXY
3355 DrawText
= ClientDC
.DrawTextXY
3356 DrawRotatedText
= ClientDC
.DrawRotatedTextXY
3357 Blit
= ClientDC
.BlitXY
3359 class PaintDC_old(PaintDC
):
3360 """DC class that has methods with 2.4 compatible parameters."""
3361 FloodFill
= PaintDC
.FloodFillXY
3362 GetPixel
= PaintDC
.GetPixelXY
3363 DrawLine
= PaintDC
.DrawLineXY
3364 CrossHair
= PaintDC
.CrossHairXY
3365 DrawArc
= PaintDC
.DrawArcXY
3366 DrawCheckMark
= PaintDC
.DrawCheckMarkXY
3367 DrawEllipticArc
= PaintDC
.DrawEllipticArcXY
3368 DrawPoint
= PaintDC
.DrawPointXY
3369 DrawRectangle
= PaintDC
.DrawRectangleXY
3370 DrawRoundedRectangle
= PaintDC
.DrawRoundedRectangleXY
3371 DrawCircle
= PaintDC
.DrawCircleXY
3372 DrawEllipse
= PaintDC
.DrawEllipseXY
3373 DrawIcon
= PaintDC
.DrawIconXY
3374 DrawBitmap
= PaintDC
.DrawBitmapXY
3375 DrawText
= PaintDC
.DrawTextXY
3376 DrawRotatedText
= PaintDC
.DrawRotatedTextXY
3377 Blit
= PaintDC
.BlitXY
3379 class WindowDC_old(WindowDC
):
3380 """DC class that has methods with 2.4 compatible parameters."""
3381 FloodFill
= WindowDC
.FloodFillXY
3382 GetPixel
= WindowDC
.GetPixelXY
3383 DrawLine
= WindowDC
.DrawLineXY
3384 CrossHair
= WindowDC
.CrossHairXY
3385 DrawArc
= WindowDC
.DrawArcXY
3386 DrawCheckMark
= WindowDC
.DrawCheckMarkXY
3387 DrawEllipticArc
= WindowDC
.DrawEllipticArcXY
3388 DrawPoint
= WindowDC
.DrawPointXY
3389 DrawRectangle
= WindowDC
.DrawRectangleXY
3390 DrawRoundedRectangle
= WindowDC
.DrawRoundedRectangleXY
3391 DrawCircle
= WindowDC
.DrawCircleXY
3392 DrawEllipse
= WindowDC
.DrawEllipseXY
3393 DrawIcon
= WindowDC
.DrawIconXY
3394 DrawBitmap
= WindowDC
.DrawBitmapXY
3395 DrawText
= WindowDC
.DrawTextXY
3396 DrawRotatedText
= WindowDC
.DrawRotatedTextXY
3397 Blit
= WindowDC
.BlitXY
3399 class MirrorDC_old(MirrorDC
):
3400 """DC class that has methods with 2.4 compatible parameters."""
3401 FloodFill
= MirrorDC
.FloodFillXY
3402 GetPixel
= MirrorDC
.GetPixelXY
3403 DrawLine
= MirrorDC
.DrawLineXY
3404 CrossHair
= MirrorDC
.CrossHairXY
3405 DrawArc
= MirrorDC
.DrawArcXY
3406 DrawCheckMark
= MirrorDC
.DrawCheckMarkXY
3407 DrawEllipticArc
= MirrorDC
.DrawEllipticArcXY
3408 DrawPoint
= MirrorDC
.DrawPointXY
3409 DrawRectangle
= MirrorDC
.DrawRectangleXY
3410 DrawRoundedRectangle
= MirrorDC
.DrawRoundedRectangleXY
3411 DrawCircle
= MirrorDC
.DrawCircleXY
3412 DrawEllipse
= MirrorDC
.DrawEllipseXY
3413 DrawIcon
= MirrorDC
.DrawIconXY
3414 DrawBitmap
= MirrorDC
.DrawBitmapXY
3415 DrawText
= MirrorDC
.DrawTextXY
3416 DrawRotatedText
= MirrorDC
.DrawRotatedTextXY
3417 Blit
= MirrorDC
.BlitXY
3419 class PostScriptDC_old(PostScriptDC
):
3420 """DC class that has methods with 2.4 compatible parameters."""
3421 FloodFill
= PostScriptDC
.FloodFillXY
3422 GetPixel
= PostScriptDC
.GetPixelXY
3423 DrawLine
= PostScriptDC
.DrawLineXY
3424 CrossHair
= PostScriptDC
.CrossHairXY
3425 DrawArc
= PostScriptDC
.DrawArcXY
3426 DrawCheckMark
= PostScriptDC
.DrawCheckMarkXY
3427 DrawEllipticArc
= PostScriptDC
.DrawEllipticArcXY
3428 DrawPoint
= PostScriptDC
.DrawPointXY
3429 DrawRectangle
= PostScriptDC
.DrawRectangleXY
3430 DrawRoundedRectangle
= PostScriptDC
.DrawRoundedRectangleXY
3431 DrawCircle
= PostScriptDC
.DrawCircleXY
3432 DrawEllipse
= PostScriptDC
.DrawEllipseXY
3433 DrawIcon
= PostScriptDC
.DrawIconXY
3434 DrawBitmap
= PostScriptDC
.DrawBitmapXY
3435 DrawText
= PostScriptDC
.DrawTextXY
3436 DrawRotatedText
= PostScriptDC
.DrawRotatedTextXY
3437 Blit
= PostScriptDC
.BlitXY
3439 class MetaFileDC_old(MetaFileDC
):
3440 """DC class that has methods with 2.4 compatible parameters."""
3441 FloodFill
= MetaFileDC
.FloodFillXY
3442 GetPixel
= MetaFileDC
.GetPixelXY
3443 DrawLine
= MetaFileDC
.DrawLineXY
3444 CrossHair
= MetaFileDC
.CrossHairXY
3445 DrawArc
= MetaFileDC
.DrawArcXY
3446 DrawCheckMark
= MetaFileDC
.DrawCheckMarkXY
3447 DrawEllipticArc
= MetaFileDC
.DrawEllipticArcXY
3448 DrawPoint
= MetaFileDC
.DrawPointXY
3449 DrawRectangle
= MetaFileDC
.DrawRectangleXY
3450 DrawRoundedRectangle
= MetaFileDC
.DrawRoundedRectangleXY
3451 DrawCircle
= MetaFileDC
.DrawCircleXY
3452 DrawEllipse
= MetaFileDC
.DrawEllipseXY
3453 DrawIcon
= MetaFileDC
.DrawIconXY
3454 DrawBitmap
= MetaFileDC
.DrawBitmapXY
3455 DrawText
= MetaFileDC
.DrawTextXY
3456 DrawRotatedText
= MetaFileDC
.DrawRotatedTextXY
3457 Blit
= MetaFileDC
.BlitXY
3459 class PrinterDC_old(PrinterDC
):
3460 """DC class that has methods with 2.4 compatible parameters."""
3461 FloodFill
= PrinterDC
.FloodFillXY
3462 GetPixel
= PrinterDC
.GetPixelXY
3463 DrawLine
= PrinterDC
.DrawLineXY
3464 CrossHair
= PrinterDC
.CrossHairXY
3465 DrawArc
= PrinterDC
.DrawArcXY
3466 DrawCheckMark
= PrinterDC
.DrawCheckMarkXY
3467 DrawEllipticArc
= PrinterDC
.DrawEllipticArcXY
3468 DrawPoint
= PrinterDC
.DrawPointXY
3469 DrawRectangle
= PrinterDC
.DrawRectangleXY
3470 DrawRoundedRectangle
= PrinterDC
.DrawRoundedRectangleXY
3471 DrawCircle
= PrinterDC
.DrawCircleXY
3472 DrawEllipse
= PrinterDC
.DrawEllipseXY
3473 DrawIcon
= PrinterDC
.DrawIconXY
3474 DrawBitmap
= PrinterDC
.DrawBitmapXY
3475 DrawText
= PrinterDC
.DrawTextXY
3476 DrawRotatedText
= PrinterDC
.DrawRotatedTextXY
3477 Blit
= PrinterDC
.BlitXY
3479 #---------------------------------------------------------------------------
3481 IMAGELIST_DRAW_NORMAL
= _gdi_
.IMAGELIST_DRAW_NORMAL
3482 IMAGELIST_DRAW_TRANSPARENT
= _gdi_
.IMAGELIST_DRAW_TRANSPARENT
3483 IMAGELIST_DRAW_SELECTED
= _gdi_
.IMAGELIST_DRAW_SELECTED
3484 IMAGELIST_DRAW_FOCUSED
= _gdi_
.IMAGELIST_DRAW_FOCUSED
3485 IMAGE_LIST_NORMAL
= _gdi_
.IMAGE_LIST_NORMAL
3486 IMAGE_LIST_SMALL
= _gdi_
.IMAGE_LIST_SMALL
3487 IMAGE_LIST_STATE
= _gdi_
.IMAGE_LIST_STATE
3488 class ImageList(_core
.Object
):
3490 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3491 def __init__(self
, *args
, **kwargs
):
3492 """__init__(self, int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3493 newobj
= _gdi_
.new_ImageList(*args
, **kwargs
)
3494 self
.this
= newobj
.this
3497 def __del__(self
, destroy
=_gdi_
.delete_ImageList
):
3500 if self
.thisown
: destroy(self
)
3503 def Add(*args
, **kwargs
):
3504 """Add(self, Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3505 return _gdi_
.ImageList_Add(*args
, **kwargs
)
3507 def AddWithColourMask(*args
, **kwargs
):
3508 """AddWithColourMask(self, Bitmap bitmap, Colour maskColour) -> int"""
3509 return _gdi_
.ImageList_AddWithColourMask(*args
, **kwargs
)
3511 def AddIcon(*args
, **kwargs
):
3512 """AddIcon(self, Icon icon) -> int"""
3513 return _gdi_
.ImageList_AddIcon(*args
, **kwargs
)
3515 def Replace(*args
, **kwargs
):
3516 """Replace(self, int index, Bitmap bitmap) -> bool"""
3517 return _gdi_
.ImageList_Replace(*args
, **kwargs
)
3519 def Draw(*args
, **kwargs
):
3521 Draw(self, int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3522 bool solidBackground=False) -> bool
3524 return _gdi_
.ImageList_Draw(*args
, **kwargs
)
3526 def GetImageCount(*args
, **kwargs
):
3527 """GetImageCount(self) -> int"""
3528 return _gdi_
.ImageList_GetImageCount(*args
, **kwargs
)
3530 def Remove(*args
, **kwargs
):
3531 """Remove(self, int index) -> bool"""
3532 return _gdi_
.ImageList_Remove(*args
, **kwargs
)
3534 def RemoveAll(*args
, **kwargs
):
3535 """RemoveAll(self) -> bool"""
3536 return _gdi_
.ImageList_RemoveAll(*args
, **kwargs
)
3538 def GetSize(*args
, **kwargs
):
3539 """GetSize() -> (width,height)"""
3540 return _gdi_
.ImageList_GetSize(*args
, **kwargs
)
3543 class ImageListPtr(ImageList
):
3544 def __init__(self
, this
):
3546 if not hasattr(self
,"thisown"): self
.thisown
= 0
3547 self
.__class
__ = ImageList
3548 _gdi_
.ImageList_swigregister(ImageListPtr
)
3550 #---------------------------------------------------------------------------
3552 class PenList(_core
.Object
):
3553 def __init__(self
): raise RuntimeError, "No constructor defined"
3555 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3556 def AddPen(*args
, **kwargs
):
3557 """AddPen(self, Pen pen)"""
3558 return _gdi_
.PenList_AddPen(*args
, **kwargs
)
3560 def FindOrCreatePen(*args
, **kwargs
):
3561 """FindOrCreatePen(self, Colour colour, int width, int style) -> Pen"""
3562 return _gdi_
.PenList_FindOrCreatePen(*args
, **kwargs
)
3564 def RemovePen(*args
, **kwargs
):
3565 """RemovePen(self, Pen pen)"""
3566 return _gdi_
.PenList_RemovePen(*args
, **kwargs
)
3568 def GetCount(*args
, **kwargs
):
3569 """GetCount(self) -> int"""
3570 return _gdi_
.PenList_GetCount(*args
, **kwargs
)
3573 class PenListPtr(PenList
):
3574 def __init__(self
, this
):
3576 if not hasattr(self
,"thisown"): self
.thisown
= 0
3577 self
.__class
__ = PenList
3578 _gdi_
.PenList_swigregister(PenListPtr
)
3580 NORMAL_FONT
= cvar
.NORMAL_FONT
3581 SMALL_FONT
= cvar
.SMALL_FONT
3582 ITALIC_FONT
= cvar
.ITALIC_FONT
3583 SWISS_FONT
= cvar
.SWISS_FONT
3584 RED_PEN
= cvar
.RED_PEN
3585 CYAN_PEN
= cvar
.CYAN_PEN
3586 GREEN_PEN
= cvar
.GREEN_PEN
3587 BLACK_PEN
= cvar
.BLACK_PEN
3588 WHITE_PEN
= cvar
.WHITE_PEN
3589 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3590 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3591 GREY_PEN
= cvar
.GREY_PEN
3592 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3593 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3594 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3595 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3596 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3597 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3598 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3599 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3600 RED_BRUSH
= cvar
.RED_BRUSH
3601 GREY_BRUSH
= cvar
.GREY_BRUSH
3602 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3603 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3610 LIGHT_GREY
= cvar
.LIGHT_GREY
3611 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3612 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3613 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3614 NullBitmap
= cvar
.NullBitmap
3615 NullIcon
= cvar
.NullIcon
3616 NullCursor
= cvar
.NullCursor
3617 NullPen
= cvar
.NullPen
3618 NullBrush
= cvar
.NullBrush
3619 NullPalette
= cvar
.NullPalette
3620 NullFont
= cvar
.NullFont
3621 NullColour
= cvar
.NullColour
3623 class BrushList(_core
.Object
):
3624 def __init__(self
): raise RuntimeError, "No constructor defined"
3626 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3627 def AddBrush(*args
, **kwargs
):
3628 """AddBrush(self, Brush brush)"""
3629 return _gdi_
.BrushList_AddBrush(*args
, **kwargs
)
3631 def FindOrCreateBrush(*args
, **kwargs
):
3632 """FindOrCreateBrush(self, Colour colour, int style) -> Brush"""
3633 return _gdi_
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3635 def RemoveBrush(*args
, **kwargs
):
3636 """RemoveBrush(self, Brush brush)"""
3637 return _gdi_
.BrushList_RemoveBrush(*args
, **kwargs
)
3639 def GetCount(*args
, **kwargs
):
3640 """GetCount(self) -> int"""
3641 return _gdi_
.BrushList_GetCount(*args
, **kwargs
)
3644 class BrushListPtr(BrushList
):
3645 def __init__(self
, this
):
3647 if not hasattr(self
,"thisown"): self
.thisown
= 0
3648 self
.__class
__ = BrushList
3649 _gdi_
.BrushList_swigregister(BrushListPtr
)
3651 class ColourDatabase(_core
.Object
):
3653 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3654 def __init__(self
, *args
, **kwargs
):
3655 """__init__(self) -> ColourDatabase"""
3656 newobj
= _gdi_
.new_ColourDatabase(*args
, **kwargs
)
3657 self
.this
= newobj
.this
3660 def __del__(self
, destroy
=_gdi_
.delete_ColourDatabase
):
3663 if self
.thisown
: destroy(self
)
3666 def Find(*args
, **kwargs
):
3667 """Find(self, String name) -> Colour"""
3668 return _gdi_
.ColourDatabase_Find(*args
, **kwargs
)
3670 def FindName(*args
, **kwargs
):
3671 """FindName(self, Colour colour) -> String"""
3672 return _gdi_
.ColourDatabase_FindName(*args
, **kwargs
)
3675 def AddColour(*args
, **kwargs
):
3676 """AddColour(self, String name, Colour colour)"""
3677 return _gdi_
.ColourDatabase_AddColour(*args
, **kwargs
)
3679 def Append(*args
, **kwargs
):
3680 """Append(self, String name, int red, int green, int blue)"""
3681 return _gdi_
.ColourDatabase_Append(*args
, **kwargs
)
3684 class ColourDatabasePtr(ColourDatabase
):
3685 def __init__(self
, this
):
3687 if not hasattr(self
,"thisown"): self
.thisown
= 0
3688 self
.__class
__ = ColourDatabase
3689 _gdi_
.ColourDatabase_swigregister(ColourDatabasePtr
)
3691 class FontList(_core
.Object
):
3692 def __init__(self
): raise RuntimeError, "No constructor defined"
3694 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3695 def AddFont(*args
, **kwargs
):
3696 """AddFont(self, Font font)"""
3697 return _gdi_
.FontList_AddFont(*args
, **kwargs
)
3699 def FindOrCreateFont(*args
, **kwargs
):
3701 FindOrCreateFont(self, int point_size, int family, int style, int weight,
3702 bool underline=False, String facename=EmptyString,
3703 int encoding=FONTENCODING_DEFAULT) -> Font
3705 return _gdi_
.FontList_FindOrCreateFont(*args
, **kwargs
)
3707 def RemoveFont(*args
, **kwargs
):
3708 """RemoveFont(self, Font font)"""
3709 return _gdi_
.FontList_RemoveFont(*args
, **kwargs
)
3711 def GetCount(*args
, **kwargs
):
3712 """GetCount(self) -> int"""
3713 return _gdi_
.FontList_GetCount(*args
, **kwargs
)
3716 class FontListPtr(FontList
):
3717 def __init__(self
, this
):
3719 if not hasattr(self
,"thisown"): self
.thisown
= 0
3720 self
.__class
__ = FontList
3721 _gdi_
.FontList_swigregister(FontListPtr
)
3723 #---------------------------------------------------------------------------
3725 NullColor
= NullColour
3726 #---------------------------------------------------------------------------
3728 class Effects(_core
.Object
):
3730 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3731 def __init__(self
, *args
, **kwargs
):
3732 """__init__(self) -> Effects"""
3733 newobj
= _gdi_
.new_Effects(*args
, **kwargs
)
3734 self
.this
= newobj
.this
3737 def GetHighlightColour(*args
, **kwargs
):
3738 """GetHighlightColour(self) -> Colour"""
3739 return _gdi_
.Effects_GetHighlightColour(*args
, **kwargs
)
3741 def GetLightShadow(*args
, **kwargs
):
3742 """GetLightShadow(self) -> Colour"""
3743 return _gdi_
.Effects_GetLightShadow(*args
, **kwargs
)
3745 def GetFaceColour(*args
, **kwargs
):
3746 """GetFaceColour(self) -> Colour"""
3747 return _gdi_
.Effects_GetFaceColour(*args
, **kwargs
)
3749 def GetMediumShadow(*args
, **kwargs
):
3750 """GetMediumShadow(self) -> Colour"""
3751 return _gdi_
.Effects_GetMediumShadow(*args
, **kwargs
)
3753 def GetDarkShadow(*args
, **kwargs
):
3754 """GetDarkShadow(self) -> Colour"""
3755 return _gdi_
.Effects_GetDarkShadow(*args
, **kwargs
)
3757 def SetHighlightColour(*args
, **kwargs
):
3758 """SetHighlightColour(self, Colour c)"""
3759 return _gdi_
.Effects_SetHighlightColour(*args
, **kwargs
)
3761 def SetLightShadow(*args
, **kwargs
):
3762 """SetLightShadow(self, Colour c)"""
3763 return _gdi_
.Effects_SetLightShadow(*args
, **kwargs
)
3765 def SetFaceColour(*args
, **kwargs
):
3766 """SetFaceColour(self, Colour c)"""
3767 return _gdi_
.Effects_SetFaceColour(*args
, **kwargs
)
3769 def SetMediumShadow(*args
, **kwargs
):
3770 """SetMediumShadow(self, Colour c)"""
3771 return _gdi_
.Effects_SetMediumShadow(*args
, **kwargs
)
3773 def SetDarkShadow(*args
, **kwargs
):
3774 """SetDarkShadow(self, Colour c)"""
3775 return _gdi_
.Effects_SetDarkShadow(*args
, **kwargs
)
3777 def Set(*args
, **kwargs
):
3779 Set(self, Colour highlightColour, Colour lightShadow, Colour faceColour,
3780 Colour mediumShadow, Colour darkShadow)
3782 return _gdi_
.Effects_Set(*args
, **kwargs
)
3784 def DrawSunkenEdge(*args
, **kwargs
):
3785 """DrawSunkenEdge(self, DC dc, Rect rect, int borderSize=1)"""
3786 return _gdi_
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3788 def TileBitmap(*args
, **kwargs
):
3789 """TileBitmap(self, Rect rect, DC dc, Bitmap bitmap) -> bool"""
3790 return _gdi_
.Effects_TileBitmap(*args
, **kwargs
)
3793 class EffectsPtr(Effects
):
3794 def __init__(self
, this
):
3796 if not hasattr(self
,"thisown"): self
.thisown
= 0
3797 self
.__class
__ = Effects
3798 _gdi_
.Effects_swigregister(EffectsPtr
)
3799 TheFontList
= cvar
.TheFontList
3800 ThePenList
= cvar
.ThePenList
3801 TheBrushList
= cvar
.TheBrushList
3802 TheColourDatabase
= cvar
.TheColourDatabase