1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 class GDIObject(_core
.Object
):
12 return "<%s.%s; proxy of C++ wxGDIObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
13 def __init__(self
, *args
, **kwargs
):
14 """__init__(self) -> GDIObject"""
15 newobj
= _gdi_
.new_GDIObject(*args
, **kwargs
)
16 self
.this
= newobj
.this
19 def __del__(self
, destroy
=_gdi_
.delete_GDIObject
):
22 if self
.thisown
: destroy(self
)
25 def GetVisible(*args
, **kwargs
):
26 """GetVisible(self) -> bool"""
27 return _gdi_
.GDIObject_GetVisible(*args
, **kwargs
)
29 def SetVisible(*args
, **kwargs
):
30 """SetVisible(self, bool visible)"""
31 return _gdi_
.GDIObject_SetVisible(*args
, **kwargs
)
33 def IsNull(*args
, **kwargs
):
34 """IsNull(self) -> bool"""
35 return _gdi_
.GDIObject_IsNull(*args
, **kwargs
)
38 class GDIObjectPtr(GDIObject
):
39 def __init__(self
, this
):
41 if not hasattr(self
,"thisown"): self
.thisown
= 0
42 self
.__class
__ = GDIObject
43 _gdi_
.GDIObject_swigregister(GDIObjectPtr
)
45 #---------------------------------------------------------------------------
47 class Colour(_core
.Object
):
49 A colour is an object representing a combination of Red, Green, and
50 Blue (RGB) intensity values, and is used to determine drawing colours,
51 window colours, etc. Valid RGB values are in the range 0 to 255.
53 In wxPython there are typemaps that will automatically convert from a
54 colour name, or from a '#RRGGBB' colour hex value string to a
55 wx.Colour object when calling C++ methods that expect a wxColour.
56 This means that the following are all equivallent::
58 win.SetBackgroundColour(wxColour(0,0,255))
59 win.SetBackgroundColour('BLUE')
60 win.SetBackgroundColour('#0000FF')
62 Additional colour names and their coresponding values can be added
63 using `wx.ColourDatabase`. Various system colours (as set in the
64 user's system preferences) can be retrieved with
65 `wx.SystemSettings.GetColour`.
69 return "<%s.%s; proxy of C++ wxColour instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
70 def __init__(self
, *args
, **kwargs
):
72 __init__(self, byte red=0, byte green=0, byte blue=0) -> Colour
74 Constructs a colour from red, green and blue values.
76 :see: Alternate constructors `wx.NamedColour` and `wx.ColourRGB`.
79 newobj
= _gdi_
.new_Colour(*args
, **kwargs
)
80 self
.this
= newobj
.this
83 def __del__(self
, destroy
=_gdi_
.delete_Colour
):
86 if self
.thisown
: destroy(self
)
89 def Red(*args
, **kwargs
):
93 Returns the red intensity.
95 return _gdi_
.Colour_Red(*args
, **kwargs
)
97 def Green(*args
, **kwargs
):
101 Returns the green intensity.
103 return _gdi_
.Colour_Green(*args
, **kwargs
)
105 def Blue(*args
, **kwargs
):
109 Returns the blue intensity.
111 return _gdi_
.Colour_Blue(*args
, **kwargs
)
113 def Ok(*args
, **kwargs
):
117 Returns True if the colour object is valid (the colour has been
118 initialised with RGB values).
120 return _gdi_
.Colour_Ok(*args
, **kwargs
)
122 def Set(*args
, **kwargs
):
124 Set(self, byte red, byte green, byte blue)
126 Sets the RGB intensity values.
128 return _gdi_
.Colour_Set(*args
, **kwargs
)
130 def SetRGB(*args
, **kwargs
):
132 SetRGB(self, unsigned long colRGB)
134 Sets the RGB intensity values from a packed RGB value.
136 return _gdi_
.Colour_SetRGB(*args
, **kwargs
)
138 def SetFromName(*args
, **kwargs
):
140 SetFromName(self, String colourName)
142 Sets the RGB intensity values using a colour name listed in
143 ``wx.TheColourDatabase``.
145 return _gdi_
.Colour_SetFromName(*args
, **kwargs
)
147 def GetPixel(*args
, **kwargs
):
149 GetPixel(self) -> long
151 Returns a pixel value which is platform-dependent. On Windows, a
152 COLORREF is returned. On X, an allocated pixel value is returned. -1
153 is returned if the pixel is invalid (on X, unallocated).
155 return _gdi_
.Colour_GetPixel(*args
, **kwargs
)
157 def __eq__(*args
, **kwargs
):
159 __eq__(self, Colour colour) -> bool
161 Compare colours for equality
163 return _gdi_
.Colour___eq__(*args
, **kwargs
)
165 def __ne__(*args
, **kwargs
):
167 __ne__(self, Colour colour) -> bool
169 Compare colours for inequality
171 return _gdi_
.Colour___ne__(*args
, **kwargs
)
173 def Get(*args
, **kwargs
):
177 Returns the RGB intensity values as a tuple.
179 return _gdi_
.Colour_Get(*args
, **kwargs
)
181 def GetRGB(*args
, **kwargs
):
183 GetRGB(self) -> unsigned long
185 Return the colour as a packed RGB value
187 return _gdi_
.Colour_GetRGB(*args
, **kwargs
)
189 asTuple
= wx
._deprecated
(Get
, "asTuple is deprecated, use `Get` instead")
190 def __str__(self
): return str(self
.Get())
191 def __repr__(self
): return 'wx.Colour' + str(self
.Get())
192 def __nonzero__(self
): return self
.Ok()
193 __safe_for_unpickling__
= True
194 def __reduce__(self
): return (Colour
, self
.Get())
197 class ColourPtr(Colour
):
198 def __init__(self
, this
):
200 if not hasattr(self
,"thisown"): self
.thisown
= 0
201 self
.__class
__ = Colour
202 _gdi_
.Colour_swigregister(ColourPtr
)
204 def NamedColour(*args
, **kwargs
):
206 NamedColour(String colorName) -> Colour
208 Constructs a colour object using a colour name listed in
209 ``wx.TheColourDatabase``.
211 val
= _gdi_
.new_NamedColour(*args
, **kwargs
)
215 def ColourRGB(*args
, **kwargs
):
217 ColourRGB(unsigned long colRGB) -> Colour
219 Constructs a colour from a packed RGB value.
221 val
= _gdi_
.new_ColourRGB(*args
, **kwargs
)
226 NamedColor
= NamedColour
229 class Palette(GDIObject
):
231 return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
232 def __init__(self
, *args
, **kwargs
):
233 """__init__(self, int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette"""
234 newobj
= _gdi_
.new_Palette(*args
, **kwargs
)
235 self
.this
= newobj
.this
238 def __del__(self
, destroy
=_gdi_
.delete_Palette
):
241 if self
.thisown
: destroy(self
)
244 def GetPixel(*args
, **kwargs
):
245 """GetPixel(self, byte red, byte green, byte blue) -> int"""
246 return _gdi_
.Palette_GetPixel(*args
, **kwargs
)
248 def GetRGB(*args
, **kwargs
):
249 """GetRGB(int pixel) -> (R,G,B)"""
250 return _gdi_
.Palette_GetRGB(*args
, **kwargs
)
252 def Ok(*args
, **kwargs
):
253 """Ok(self) -> bool"""
254 return _gdi_
.Palette_Ok(*args
, **kwargs
)
256 def __nonzero__(self
): return self
.Ok()
258 class PalettePtr(Palette
):
259 def __init__(self
, this
):
261 if not hasattr(self
,"thisown"): self
.thisown
= 0
262 self
.__class
__ = Palette
263 _gdi_
.Palette_swigregister(PalettePtr
)
265 #---------------------------------------------------------------------------
267 class Pen(GDIObject
):
269 return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
270 def __init__(self
, *args
, **kwargs
):
271 """__init__(self, Colour colour, int width=1, int style=SOLID) -> Pen"""
272 newobj
= _gdi_
.new_Pen(*args
, **kwargs
)
273 self
.this
= newobj
.this
276 def __del__(self
, destroy
=_gdi_
.delete_Pen
):
279 if self
.thisown
: destroy(self
)
282 def GetCap(*args
, **kwargs
):
283 """GetCap(self) -> int"""
284 return _gdi_
.Pen_GetCap(*args
, **kwargs
)
286 def GetColour(*args
, **kwargs
):
287 """GetColour(self) -> Colour"""
288 return _gdi_
.Pen_GetColour(*args
, **kwargs
)
290 def GetJoin(*args
, **kwargs
):
291 """GetJoin(self) -> int"""
292 return _gdi_
.Pen_GetJoin(*args
, **kwargs
)
294 def GetStyle(*args
, **kwargs
):
295 """GetStyle(self) -> int"""
296 return _gdi_
.Pen_GetStyle(*args
, **kwargs
)
298 def GetWidth(*args
, **kwargs
):
299 """GetWidth(self) -> int"""
300 return _gdi_
.Pen_GetWidth(*args
, **kwargs
)
302 def Ok(*args
, **kwargs
):
303 """Ok(self) -> bool"""
304 return _gdi_
.Pen_Ok(*args
, **kwargs
)
306 def SetCap(*args
, **kwargs
):
307 """SetCap(self, int cap_style)"""
308 return _gdi_
.Pen_SetCap(*args
, **kwargs
)
310 def SetColour(*args
, **kwargs
):
311 """SetColour(self, Colour colour)"""
312 return _gdi_
.Pen_SetColour(*args
, **kwargs
)
314 def SetJoin(*args
, **kwargs
):
315 """SetJoin(self, int join_style)"""
316 return _gdi_
.Pen_SetJoin(*args
, **kwargs
)
318 def SetStyle(*args
, **kwargs
):
319 """SetStyle(self, int style)"""
320 return _gdi_
.Pen_SetStyle(*args
, **kwargs
)
322 def SetWidth(*args
, **kwargs
):
323 """SetWidth(self, int width)"""
324 return _gdi_
.Pen_SetWidth(*args
, **kwargs
)
326 def SetDashes(*args
, **kwargs
):
327 """SetDashes(self, int dashes, wxDash dashes_array)"""
328 return _gdi_
.Pen_SetDashes(*args
, **kwargs
)
330 def GetDashes(*args
, **kwargs
):
331 """GetDashes(self) -> PyObject"""
332 return _gdi_
.Pen_GetDashes(*args
, **kwargs
)
334 def _SetDashes(*args
, **kwargs
):
335 """_SetDashes(self, PyObject _self, PyObject pyDashes)"""
336 return _gdi_
.Pen__SetDashes(*args
, **kwargs
)
338 def SetDashes(self
, dashes
):
340 Associate a list of dash lengths with the Pen.
342 self
._SetDashes
(self
, dashes
)
344 def __eq__(*args
, **kwargs
):
345 """__eq__(self, Pen other) -> bool"""
346 return _gdi_
.Pen___eq__(*args
, **kwargs
)
348 def __ne__(*args
, **kwargs
):
349 """__ne__(self, Pen other) -> bool"""
350 return _gdi_
.Pen___ne__(*args
, **kwargs
)
352 def __nonzero__(self
): return self
.Ok()
355 def __init__(self
, this
):
357 if not hasattr(self
,"thisown"): self
.thisown
= 0
359 _gdi_
.Pen_swigregister(PenPtr
)
361 #---------------------------------------------------------------------------
363 class Brush(GDIObject
):
365 A brush is a drawing tool for filling in areas. It is used for
366 painting the background of rectangles, ellipses, etc. when drawing on
367 a `wx.DC`. It has a colour and a style.
370 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
371 def __init__(self
, *args
, **kwargs
):
373 __init__(self, Colour colour, int style=SOLID) -> Brush
375 Constructs a brush from a `wx.Colour` object and a style.
377 newobj
= _gdi_
.new_Brush(*args
, **kwargs
)
378 self
.this
= newobj
.this
381 def __del__(self
, destroy
=_gdi_
.delete_Brush
):
384 if self
.thisown
: destroy(self
)
387 def SetColour(*args
, **kwargs
):
389 SetColour(self, Colour col)
391 Set the brush's `wx.Colour`.
393 return _gdi_
.Brush_SetColour(*args
, **kwargs
)
395 def SetStyle(*args
, **kwargs
):
397 SetStyle(self, int style)
399 Sets the style of the brush. See `__init__` for a listing of styles.
401 return _gdi_
.Brush_SetStyle(*args
, **kwargs
)
403 def SetStipple(*args
, **kwargs
):
405 SetStipple(self, Bitmap stipple)
407 Sets the stipple `wx.Bitmap`.
409 return _gdi_
.Brush_SetStipple(*args
, **kwargs
)
411 def GetColour(*args
, **kwargs
):
413 GetColour(self) -> Colour
415 Returns the `wx.Colour` of the brush.
417 return _gdi_
.Brush_GetColour(*args
, **kwargs
)
419 def GetStyle(*args
, **kwargs
):
421 GetStyle(self) -> int
423 Returns the style of the brush. See `__init__` for a listing of
426 return _gdi_
.Brush_GetStyle(*args
, **kwargs
)
428 def GetStipple(*args
, **kwargs
):
430 GetStipple(self) -> Bitmap
432 Returns the stiple `wx.Bitmap` of the brush. If the brush does not
433 have a wx.STIPPLE style, then the return value may be non-None but an
434 uninitialised bitmap (`wx.Bitmap.Ok` returns False).
436 return _gdi_
.Brush_GetStipple(*args
, **kwargs
)
438 def Ok(*args
, **kwargs
):
442 Returns True if the brush is initialised and valid.
444 return _gdi_
.Brush_Ok(*args
, **kwargs
)
446 def MacGetTheme(*args
, **kwargs
):
447 """MacGetTheme(self) -> short"""
448 return _gdi_
.Brush_MacGetTheme(*args
, **kwargs
)
450 def MacSetTheme(*args
, **kwargs
):
451 """MacSetTheme(self, short macThemeBrush)"""
452 return _gdi_
.Brush_MacSetTheme(*args
, **kwargs
)
454 def __nonzero__(self
): return self
.Ok()
456 class BrushPtr(Brush
):
457 def __init__(self
, this
):
459 if not hasattr(self
,"thisown"): self
.thisown
= 0
460 self
.__class
__ = Brush
461 _gdi_
.Brush_swigregister(BrushPtr
)
463 class Bitmap(GDIObject
):
465 The wx.Bitmap class encapsulates the concept of a platform-dependent
466 bitmap. It can be either monochrome or colour, and either loaded from
467 a file or created dynamically. A bitmap can be selected into a memory
468 device context (instance of `wx.MemoryDC`). This enables the bitmap to
469 be copied to a window or memory device context using `wx.DC.Blit`, or
470 to be used as a drawing surface.
473 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
474 def __init__(self
, *args
, **kwargs
):
476 __init__(self, String name, int type=BITMAP_TYPE_ANY) -> Bitmap
478 Loads a bitmap from a file.
480 newobj
= _gdi_
.new_Bitmap(*args
, **kwargs
)
481 self
.this
= newobj
.this
484 def __del__(self
, destroy
=_gdi_
.delete_Bitmap
):
487 if self
.thisown
: destroy(self
)
490 def Ok(*args
, **kwargs
):
491 """Ok(self) -> bool"""
492 return _gdi_
.Bitmap_Ok(*args
, **kwargs
)
494 def GetWidth(*args
, **kwargs
):
496 GetWidth(self) -> int
498 Gets the width of the bitmap in pixels.
500 return _gdi_
.Bitmap_GetWidth(*args
, **kwargs
)
502 def GetHeight(*args
, **kwargs
):
504 GetHeight(self) -> int
506 Gets the height of the bitmap in pixels.
508 return _gdi_
.Bitmap_GetHeight(*args
, **kwargs
)
510 def GetDepth(*args
, **kwargs
):
512 GetDepth(self) -> int
514 Gets the colour depth of the bitmap. A value of 1 indicates a
517 return _gdi_
.Bitmap_GetDepth(*args
, **kwargs
)
519 def GetSize(*args
, **kwargs
):
521 GetSize(self) -> Size
523 Get the size of the bitmap.
525 return _gdi_
.Bitmap_GetSize(*args
, **kwargs
)
527 def ConvertToImage(*args
, **kwargs
):
529 ConvertToImage(self) -> Image
531 Creates a platform-independent image from a platform-dependent
532 bitmap. This preserves mask information so that bitmaps and images can
533 be converted back and forth without loss in that respect.
535 return _gdi_
.Bitmap_ConvertToImage(*args
, **kwargs
)
537 def GetMask(*args
, **kwargs
):
539 GetMask(self) -> Mask
541 Gets the associated mask (if any) which may have been loaded from a
542 file or explpicitly set for the bitmap.
544 :see: `SetMask`, `wx.Mask`
547 return _gdi_
.Bitmap_GetMask(*args
, **kwargs
)
549 def SetMask(*args
, **kwargs
):
551 SetMask(self, Mask mask)
553 Sets the mask for this bitmap.
555 :see: `GetMask`, `wx.Mask`
558 return _gdi_
.Bitmap_SetMask(*args
, **kwargs
)
560 def SetMaskColour(*args
, **kwargs
):
562 SetMaskColour(self, Colour colour)
564 Create a Mask based on a specified colour in the Bitmap.
566 return _gdi_
.Bitmap_SetMaskColour(*args
, **kwargs
)
568 def GetSubBitmap(*args
, **kwargs
):
570 GetSubBitmap(self, Rect rect) -> Bitmap
572 Returns a sub-bitmap of the current one as long as the rect belongs
573 entirely to the bitmap. This function preserves bit depth and mask
576 return _gdi_
.Bitmap_GetSubBitmap(*args
, **kwargs
)
578 def SaveFile(*args
, **kwargs
):
580 SaveFile(self, String name, int type, Palette palette=None) -> bool
582 Saves a bitmap in the named file. See `__init__` for a description of
583 the ``type`` parameter.
585 return _gdi_
.Bitmap_SaveFile(*args
, **kwargs
)
587 def LoadFile(*args
, **kwargs
):
589 LoadFile(self, String name, int type) -> bool
591 Loads a bitmap from a file. See `__init__` for a description of the
594 return _gdi_
.Bitmap_LoadFile(*args
, **kwargs
)
596 def CopyFromIcon(*args
, **kwargs
):
597 """CopyFromIcon(self, Icon icon) -> bool"""
598 return _gdi_
.Bitmap_CopyFromIcon(*args
, **kwargs
)
600 def SetHeight(*args
, **kwargs
):
602 SetHeight(self, int height)
604 Set the height property (does not affect the existing bitmap data).
606 return _gdi_
.Bitmap_SetHeight(*args
, **kwargs
)
608 def SetWidth(*args
, **kwargs
):
610 SetWidth(self, int width)
612 Set the width property (does not affect the existing bitmap data).
614 return _gdi_
.Bitmap_SetWidth(*args
, **kwargs
)
616 def SetDepth(*args
, **kwargs
):
618 SetDepth(self, int depth)
620 Set the depth property (does not affect the existing bitmap data).
622 return _gdi_
.Bitmap_SetDepth(*args
, **kwargs
)
624 def SetSize(*args
, **kwargs
):
626 SetSize(self, Size size)
628 Set the bitmap size (does not affect the existing bitmap data).
630 return _gdi_
.Bitmap_SetSize(*args
, **kwargs
)
632 def __nonzero__(self
): return self
.Ok()
633 def __eq__(*args
, **kwargs
):
634 """__eq__(self, Bitmap other) -> bool"""
635 return _gdi_
.Bitmap___eq__(*args
, **kwargs
)
637 def __ne__(*args
, **kwargs
):
638 """__ne__(self, Bitmap other) -> bool"""
639 return _gdi_
.Bitmap___ne__(*args
, **kwargs
)
642 class BitmapPtr(Bitmap
):
643 def __init__(self
, this
):
645 if not hasattr(self
,"thisown"): self
.thisown
= 0
646 self
.__class
__ = Bitmap
647 _gdi_
.Bitmap_swigregister(BitmapPtr
)
649 def EmptyBitmap(*args
, **kwargs
):
651 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
653 Creates a new bitmap of the given size. A depth of -1 indicates the
654 depth of the current screen or visual. Some platforms only support 1
655 for monochrome and -1 for the current colour setting.
657 val
= _gdi_
.new_EmptyBitmap(*args
, **kwargs
)
661 def BitmapFromIcon(*args
, **kwargs
):
663 BitmapFromIcon(Icon icon) -> Bitmap
665 Create a new bitmap from a `wx.Icon` object.
667 val
= _gdi_
.new_BitmapFromIcon(*args
, **kwargs
)
671 def BitmapFromImage(*args
, **kwargs
):
673 BitmapFromImage(Image image, int depth=-1) -> Bitmap
675 Creates bitmap object from a `wx.Image`. This has to be done to
676 actually display a `wx.Image` as you cannot draw an image directly on
677 a window. The resulting bitmap will use the provided colour depth (or
678 that of the current screen colour depth if depth is -1) which entails
679 that a colour reduction may have to take place.
681 val
= _gdi_
.new_BitmapFromImage(*args
, **kwargs
)
685 def BitmapFromXPMData(*args
, **kwargs
):
687 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
689 Construct a Bitmap from a list of strings formatted as XPM data.
691 val
= _gdi_
.new_BitmapFromXPMData(*args
, **kwargs
)
695 def BitmapFromBits(*args
, **kwargs
):
697 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
699 Creates a bitmap from an array of bits. You should only use this
700 function for monochrome bitmaps (depth 1) in portable programs: in
701 this case the bits parameter should contain an XBM image. For other
702 bit depths, the behaviour is platform dependent.
704 val
= _gdi_
.new_BitmapFromBits(*args
, **kwargs
)
708 class Mask(_core
.Object
):
710 This class encapsulates a monochrome mask bitmap, where the masked
711 area is black and the unmasked area is white. When associated with a
712 bitmap and drawn in a device context, the unmasked area of the bitmap
713 will be drawn, and the masked area will not be drawn.
715 A mask may be associated with a `wx.Bitmap`. It is used in
716 `wx.DC.DrawBitmap` or `wx.DC.Blit` when the source device context is a
717 `wx.MemoryDC` with a `wx.Bitmap` selected into it that contains a
721 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
722 def __init__(self
, *args
, **kwargs
):
724 __init__(self, Bitmap bitmap, Colour colour=NullColour) -> Mask
726 Constructs a mask from a `wx.Bitmap` and a `wx.Colour` in that bitmap
727 that indicates the transparent portions of the mask. In other words,
728 the pixels in ``bitmap`` that match ``colour`` will be the transparent
729 portions of the mask. If no ``colour`` or an invalid ``colour`` is
730 passed then BLACK is used.
732 :see: `wx.Bitmap`, `wx.Colour`
734 newobj
= _gdi_
.new_Mask(*args
, **kwargs
)
735 self
.this
= newobj
.this
740 def __init__(self
, this
):
742 if not hasattr(self
,"thisown"): self
.thisown
= 0
743 self
.__class
__ = Mask
744 _gdi_
.Mask_swigregister(MaskPtr
)
746 MaskColour
= wx
._deprecated
(Mask
, "wx.MaskColour is deprecated, use `wx.Mask` instead.")
747 class Icon(GDIObject
):
749 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
750 def __init__(self
, *args
, **kwargs
):
751 """__init__(self, String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
752 newobj
= _gdi_
.new_Icon(*args
, **kwargs
)
753 self
.this
= newobj
.this
756 def __del__(self
, destroy
=_gdi_
.delete_Icon
):
759 if self
.thisown
: destroy(self
)
762 def Ok(*args
, **kwargs
):
763 """Ok(self) -> bool"""
764 return _gdi_
.Icon_Ok(*args
, **kwargs
)
766 def GetWidth(*args
, **kwargs
):
767 """GetWidth(self) -> int"""
768 return _gdi_
.Icon_GetWidth(*args
, **kwargs
)
770 def GetHeight(*args
, **kwargs
):
771 """GetHeight(self) -> int"""
772 return _gdi_
.Icon_GetHeight(*args
, **kwargs
)
774 def GetDepth(*args
, **kwargs
):
775 """GetDepth(self) -> int"""
776 return _gdi_
.Icon_GetDepth(*args
, **kwargs
)
778 def SetWidth(*args
, **kwargs
):
779 """SetWidth(self, int w)"""
780 return _gdi_
.Icon_SetWidth(*args
, **kwargs
)
782 def SetHeight(*args
, **kwargs
):
783 """SetHeight(self, int h)"""
784 return _gdi_
.Icon_SetHeight(*args
, **kwargs
)
786 def SetDepth(*args
, **kwargs
):
787 """SetDepth(self, int d)"""
788 return _gdi_
.Icon_SetDepth(*args
, **kwargs
)
790 def CopyFromBitmap(*args
, **kwargs
):
791 """CopyFromBitmap(self, Bitmap bmp)"""
792 return _gdi_
.Icon_CopyFromBitmap(*args
, **kwargs
)
794 def __nonzero__(self
): return self
.Ok()
797 def __init__(self
, this
):
799 if not hasattr(self
,"thisown"): self
.thisown
= 0
800 self
.__class
__ = Icon
801 _gdi_
.Icon_swigregister(IconPtr
)
803 def EmptyIcon(*args
, **kwargs
):
804 """EmptyIcon() -> Icon"""
805 val
= _gdi_
.new_EmptyIcon(*args
, **kwargs
)
809 def IconFromLocation(*args
, **kwargs
):
810 """IconFromLocation(IconLocation loc) -> Icon"""
811 val
= _gdi_
.new_IconFromLocation(*args
, **kwargs
)
815 def IconFromBitmap(*args
, **kwargs
):
816 """IconFromBitmap(Bitmap bmp) -> Icon"""
817 val
= _gdi_
.new_IconFromBitmap(*args
, **kwargs
)
821 def IconFromXPMData(*args
, **kwargs
):
822 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
823 val
= _gdi_
.new_IconFromXPMData(*args
, **kwargs
)
827 class IconLocation(object):
829 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
830 def __init__(self
, *args
, **kwargs
):
831 """__init__(self, String filename=&wxPyEmptyString, int num=0) -> IconLocation"""
832 newobj
= _gdi_
.new_IconLocation(*args
, **kwargs
)
833 self
.this
= newobj
.this
836 def __del__(self
, destroy
=_gdi_
.delete_IconLocation
):
839 if self
.thisown
: destroy(self
)
842 def IsOk(*args
, **kwargs
):
843 """IsOk(self) -> bool"""
844 return _gdi_
.IconLocation_IsOk(*args
, **kwargs
)
846 def __nonzero__(self
): return self
.Ok()
847 def SetFileName(*args
, **kwargs
):
848 """SetFileName(self, String filename)"""
849 return _gdi_
.IconLocation_SetFileName(*args
, **kwargs
)
851 def GetFileName(*args
, **kwargs
):
852 """GetFileName(self) -> String"""
853 return _gdi_
.IconLocation_GetFileName(*args
, **kwargs
)
855 def SetIndex(*args
, **kwargs
):
856 """SetIndex(self, int num)"""
857 return _gdi_
.IconLocation_SetIndex(*args
, **kwargs
)
859 def GetIndex(*args
, **kwargs
):
860 """GetIndex(self) -> int"""
861 return _gdi_
.IconLocation_GetIndex(*args
, **kwargs
)
864 class IconLocationPtr(IconLocation
):
865 def __init__(self
, this
):
867 if not hasattr(self
,"thisown"): self
.thisown
= 0
868 self
.__class
__ = IconLocation
869 _gdi_
.IconLocation_swigregister(IconLocationPtr
)
871 class IconBundle(object):
873 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
874 def __init__(self
, *args
, **kwargs
):
875 """__init__(self) -> IconBundle"""
876 newobj
= _gdi_
.new_IconBundle(*args
, **kwargs
)
877 self
.this
= newobj
.this
880 def __del__(self
, destroy
=_gdi_
.delete_IconBundle
):
883 if self
.thisown
: destroy(self
)
886 def AddIcon(*args
, **kwargs
):
887 """AddIcon(self, Icon icon)"""
888 return _gdi_
.IconBundle_AddIcon(*args
, **kwargs
)
890 def AddIconFromFile(*args
, **kwargs
):
891 """AddIconFromFile(self, String file, long type)"""
892 return _gdi_
.IconBundle_AddIconFromFile(*args
, **kwargs
)
894 def GetIcon(*args
, **kwargs
):
895 """GetIcon(self, Size size) -> Icon"""
896 return _gdi_
.IconBundle_GetIcon(*args
, **kwargs
)
899 class IconBundlePtr(IconBundle
):
900 def __init__(self
, this
):
902 if not hasattr(self
,"thisown"): self
.thisown
= 0
903 self
.__class
__ = IconBundle
904 _gdi_
.IconBundle_swigregister(IconBundlePtr
)
906 def IconBundleFromFile(*args
, **kwargs
):
907 """IconBundleFromFile(String file, long type) -> IconBundle"""
908 val
= _gdi_
.new_IconBundleFromFile(*args
, **kwargs
)
912 def IconBundleFromIcon(*args
, **kwargs
):
913 """IconBundleFromIcon(Icon icon) -> IconBundle"""
914 val
= _gdi_
.new_IconBundleFromIcon(*args
, **kwargs
)
918 class Cursor(GDIObject
):
920 A cursor is a small bitmap usually used for denoting where the mouse
921 pointer is, with a picture that might indicate the interpretation of a
924 A single cursor object may be used in many windows (any subwindow
925 type). The wxWindows convention is to set the cursor for a window, as
926 in X, rather than to set it globally as in MS Windows, although a
927 global `wx.SetCursor` function is also available for use on MS Windows.
931 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
932 def __init__(self
, *args
, **kwargs
):
934 __init__(self, String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor
936 Construct a Cursor from a file. Specify the type of file using
937 wx.BITAMP_TYPE* constants, and specify the hotspot if not using a cur
940 This constructor is not available on wxGTK, use ``wx.StockCursor``,
941 ``wx.CursorFromImage``, or ``wx.CursorFromBits`` instead.
943 newobj
= _gdi_
.new_Cursor(*args
, **kwargs
)
944 self
.this
= newobj
.this
947 def __del__(self
, destroy
=_gdi_
.delete_Cursor
):
950 if self
.thisown
: destroy(self
)
953 def Ok(*args
, **kwargs
):
954 """Ok(self) -> bool"""
955 return _gdi_
.Cursor_Ok(*args
, **kwargs
)
957 def __nonzero__(self
): return self
.Ok()
959 class CursorPtr(Cursor
):
960 def __init__(self
, this
):
962 if not hasattr(self
,"thisown"): self
.thisown
= 0
963 self
.__class
__ = Cursor
964 _gdi_
.Cursor_swigregister(CursorPtr
)
966 def StockCursor(*args
, **kwargs
):
968 StockCursor(int id) -> Cursor
970 Create a cursor using one of the stock cursors. Note that not all
971 cursors are available on all platforms.
973 val
= _gdi_
.new_StockCursor(*args
, **kwargs
)
977 def CursorFromImage(*args
, **kwargs
):
979 CursorFromImage(Image image) -> Cursor
981 Constructs a cursor from a wxImage. The cursor is monochrome, colors
982 with the RGB elements all greater than 127 will be foreground, colors
983 less than this background. The mask (if any) will be used as
986 val
= _gdi_
.new_CursorFromImage(*args
, **kwargs
)
990 #---------------------------------------------------------------------------
992 OutRegion
= _gdi_
.OutRegion
993 PartRegion
= _gdi_
.PartRegion
994 InRegion
= _gdi_
.InRegion
995 class Region(GDIObject
):
997 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
998 def __init__(self
, *args
, **kwargs
):
999 """__init__(self, int x=0, int y=0, int width=0, int height=0) -> Region"""
1000 newobj
= _gdi_
.new_Region(*args
, **kwargs
)
1001 self
.this
= newobj
.this
1004 def __del__(self
, destroy
=_gdi_
.delete_Region
):
1007 if self
.thisown
: destroy(self
)
1010 def Clear(*args
, **kwargs
):
1012 return _gdi_
.Region_Clear(*args
, **kwargs
)
1014 def Contains(*args
, **kwargs
):
1015 """Contains(self, int x, int y) -> int"""
1016 return _gdi_
.Region_Contains(*args
, **kwargs
)
1018 def ContainsPoint(*args
, **kwargs
):
1019 """ContainsPoint(self, Point pt) -> int"""
1020 return _gdi_
.Region_ContainsPoint(*args
, **kwargs
)
1022 def ContainsRect(*args
, **kwargs
):
1023 """ContainsRect(self, Rect rect) -> int"""
1024 return _gdi_
.Region_ContainsRect(*args
, **kwargs
)
1026 def ContainsRectDim(*args
, **kwargs
):
1027 """ContainsRectDim(self, int x, int y, int w, int h) -> int"""
1028 return _gdi_
.Region_ContainsRectDim(*args
, **kwargs
)
1030 def GetBox(*args
, **kwargs
):
1031 """GetBox(self) -> Rect"""
1032 return _gdi_
.Region_GetBox(*args
, **kwargs
)
1034 def Intersect(*args
, **kwargs
):
1035 """Intersect(self, int x, int y, int width, int height) -> bool"""
1036 return _gdi_
.Region_Intersect(*args
, **kwargs
)
1038 def IntersectRect(*args
, **kwargs
):
1039 """IntersectRect(self, Rect rect) -> bool"""
1040 return _gdi_
.Region_IntersectRect(*args
, **kwargs
)
1042 def IntersectRegion(*args
, **kwargs
):
1043 """IntersectRegion(self, Region region) -> bool"""
1044 return _gdi_
.Region_IntersectRegion(*args
, **kwargs
)
1046 def IsEmpty(*args
, **kwargs
):
1047 """IsEmpty(self) -> bool"""
1048 return _gdi_
.Region_IsEmpty(*args
, **kwargs
)
1050 def Union(*args
, **kwargs
):
1051 """Union(self, int x, int y, int width, int height) -> bool"""
1052 return _gdi_
.Region_Union(*args
, **kwargs
)
1054 def UnionRect(*args
, **kwargs
):
1055 """UnionRect(self, Rect rect) -> bool"""
1056 return _gdi_
.Region_UnionRect(*args
, **kwargs
)
1058 def UnionRegion(*args
, **kwargs
):
1059 """UnionRegion(self, Region region) -> bool"""
1060 return _gdi_
.Region_UnionRegion(*args
, **kwargs
)
1062 def Subtract(*args
, **kwargs
):
1063 """Subtract(self, int x, int y, int width, int height) -> bool"""
1064 return _gdi_
.Region_Subtract(*args
, **kwargs
)
1066 def SubtractRect(*args
, **kwargs
):
1067 """SubtractRect(self, Rect rect) -> bool"""
1068 return _gdi_
.Region_SubtractRect(*args
, **kwargs
)
1070 def SubtractRegion(*args
, **kwargs
):
1071 """SubtractRegion(self, Region region) -> bool"""
1072 return _gdi_
.Region_SubtractRegion(*args
, **kwargs
)
1074 def Xor(*args
, **kwargs
):
1075 """Xor(self, int x, int y, int width, int height) -> bool"""
1076 return _gdi_
.Region_Xor(*args
, **kwargs
)
1078 def XorRect(*args
, **kwargs
):
1079 """XorRect(self, Rect rect) -> bool"""
1080 return _gdi_
.Region_XorRect(*args
, **kwargs
)
1082 def XorRegion(*args
, **kwargs
):
1083 """XorRegion(self, Region region) -> bool"""
1084 return _gdi_
.Region_XorRegion(*args
, **kwargs
)
1086 def ConvertToBitmap(*args
, **kwargs
):
1087 """ConvertToBitmap(self) -> Bitmap"""
1088 return _gdi_
.Region_ConvertToBitmap(*args
, **kwargs
)
1090 def UnionBitmap(*args
, **kwargs
):
1091 """UnionBitmap(self, Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
1092 return _gdi_
.Region_UnionBitmap(*args
, **kwargs
)
1095 class RegionPtr(Region
):
1096 def __init__(self
, this
):
1098 if not hasattr(self
,"thisown"): self
.thisown
= 0
1099 self
.__class
__ = Region
1100 _gdi_
.Region_swigregister(RegionPtr
)
1102 def RegionFromBitmap(*args
, **kwargs
):
1103 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
1104 val
= _gdi_
.new_RegionFromBitmap(*args
, **kwargs
)
1108 def RegionFromPoints(*args
, **kwargs
):
1109 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
1110 val
= _gdi_
.new_RegionFromPoints(*args
, **kwargs
)
1114 class RegionIterator(_core
.Object
):
1116 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1117 def __init__(self
, *args
, **kwargs
):
1118 """__init__(self, Region region) -> RegionIterator"""
1119 newobj
= _gdi_
.new_RegionIterator(*args
, **kwargs
)
1120 self
.this
= newobj
.this
1123 def __del__(self
, destroy
=_gdi_
.delete_RegionIterator
):
1126 if self
.thisown
: destroy(self
)
1129 def GetX(*args
, **kwargs
):
1130 """GetX(self) -> int"""
1131 return _gdi_
.RegionIterator_GetX(*args
, **kwargs
)
1133 def GetY(*args
, **kwargs
):
1134 """GetY(self) -> int"""
1135 return _gdi_
.RegionIterator_GetY(*args
, **kwargs
)
1137 def GetW(*args
, **kwargs
):
1138 """GetW(self) -> int"""
1139 return _gdi_
.RegionIterator_GetW(*args
, **kwargs
)
1141 def GetWidth(*args
, **kwargs
):
1142 """GetWidth(self) -> int"""
1143 return _gdi_
.RegionIterator_GetWidth(*args
, **kwargs
)
1145 def GetH(*args
, **kwargs
):
1146 """GetH(self) -> int"""
1147 return _gdi_
.RegionIterator_GetH(*args
, **kwargs
)
1149 def GetHeight(*args
, **kwargs
):
1150 """GetHeight(self) -> int"""
1151 return _gdi_
.RegionIterator_GetHeight(*args
, **kwargs
)
1153 def GetRect(*args
, **kwargs
):
1154 """GetRect(self) -> Rect"""
1155 return _gdi_
.RegionIterator_GetRect(*args
, **kwargs
)
1157 def HaveRects(*args
, **kwargs
):
1158 """HaveRects(self) -> bool"""
1159 return _gdi_
.RegionIterator_HaveRects(*args
, **kwargs
)
1161 def Reset(*args
, **kwargs
):
1163 return _gdi_
.RegionIterator_Reset(*args
, **kwargs
)
1165 def Next(*args
, **kwargs
):
1167 return _gdi_
.RegionIterator_Next(*args
, **kwargs
)
1169 def __nonzero__(*args
, **kwargs
):
1170 """__nonzero__(self) -> bool"""
1171 return _gdi_
.RegionIterator___nonzero__(*args
, **kwargs
)
1174 class RegionIteratorPtr(RegionIterator
):
1175 def __init__(self
, this
):
1177 if not hasattr(self
,"thisown"): self
.thisown
= 0
1178 self
.__class
__ = RegionIterator
1179 _gdi_
.RegionIterator_swigregister(RegionIteratorPtr
)
1181 #---------------------------------------------------------------------------
1183 FONTFAMILY_DEFAULT
= _gdi_
.FONTFAMILY_DEFAULT
1184 FONTFAMILY_DECORATIVE
= _gdi_
.FONTFAMILY_DECORATIVE
1185 FONTFAMILY_ROMAN
= _gdi_
.FONTFAMILY_ROMAN
1186 FONTFAMILY_SCRIPT
= _gdi_
.FONTFAMILY_SCRIPT
1187 FONTFAMILY_SWISS
= _gdi_
.FONTFAMILY_SWISS
1188 FONTFAMILY_MODERN
= _gdi_
.FONTFAMILY_MODERN
1189 FONTFAMILY_TELETYPE
= _gdi_
.FONTFAMILY_TELETYPE
1190 FONTFAMILY_MAX
= _gdi_
.FONTFAMILY_MAX
1191 FONTFAMILY_UNKNOWN
= _gdi_
.FONTFAMILY_UNKNOWN
1192 FONTSTYLE_NORMAL
= _gdi_
.FONTSTYLE_NORMAL
1193 FONTSTYLE_ITALIC
= _gdi_
.FONTSTYLE_ITALIC
1194 FONTSTYLE_SLANT
= _gdi_
.FONTSTYLE_SLANT
1195 FONTSTYLE_MAX
= _gdi_
.FONTSTYLE_MAX
1196 FONTWEIGHT_NORMAL
= _gdi_
.FONTWEIGHT_NORMAL
1197 FONTWEIGHT_LIGHT
= _gdi_
.FONTWEIGHT_LIGHT
1198 FONTWEIGHT_BOLD
= _gdi_
.FONTWEIGHT_BOLD
1199 FONTWEIGHT_MAX
= _gdi_
.FONTWEIGHT_MAX
1200 FONTFLAG_DEFAULT
= _gdi_
.FONTFLAG_DEFAULT
1201 FONTFLAG_ITALIC
= _gdi_
.FONTFLAG_ITALIC
1202 FONTFLAG_SLANT
= _gdi_
.FONTFLAG_SLANT
1203 FONTFLAG_LIGHT
= _gdi_
.FONTFLAG_LIGHT
1204 FONTFLAG_BOLD
= _gdi_
.FONTFLAG_BOLD
1205 FONTFLAG_ANTIALIASED
= _gdi_
.FONTFLAG_ANTIALIASED
1206 FONTFLAG_NOT_ANTIALIASED
= _gdi_
.FONTFLAG_NOT_ANTIALIASED
1207 FONTFLAG_UNDERLINED
= _gdi_
.FONTFLAG_UNDERLINED
1208 FONTFLAG_STRIKETHROUGH
= _gdi_
.FONTFLAG_STRIKETHROUGH
1209 FONTFLAG_MASK
= _gdi_
.FONTFLAG_MASK
1210 FONTENCODING_SYSTEM
= _gdi_
.FONTENCODING_SYSTEM
1211 FONTENCODING_DEFAULT
= _gdi_
.FONTENCODING_DEFAULT
1212 FONTENCODING_ISO8859_1
= _gdi_
.FONTENCODING_ISO8859_1
1213 FONTENCODING_ISO8859_2
= _gdi_
.FONTENCODING_ISO8859_2
1214 FONTENCODING_ISO8859_3
= _gdi_
.FONTENCODING_ISO8859_3
1215 FONTENCODING_ISO8859_4
= _gdi_
.FONTENCODING_ISO8859_4
1216 FONTENCODING_ISO8859_5
= _gdi_
.FONTENCODING_ISO8859_5
1217 FONTENCODING_ISO8859_6
= _gdi_
.FONTENCODING_ISO8859_6
1218 FONTENCODING_ISO8859_7
= _gdi_
.FONTENCODING_ISO8859_7
1219 FONTENCODING_ISO8859_8
= _gdi_
.FONTENCODING_ISO8859_8
1220 FONTENCODING_ISO8859_9
= _gdi_
.FONTENCODING_ISO8859_9
1221 FONTENCODING_ISO8859_10
= _gdi_
.FONTENCODING_ISO8859_10
1222 FONTENCODING_ISO8859_11
= _gdi_
.FONTENCODING_ISO8859_11
1223 FONTENCODING_ISO8859_12
= _gdi_
.FONTENCODING_ISO8859_12
1224 FONTENCODING_ISO8859_13
= _gdi_
.FONTENCODING_ISO8859_13
1225 FONTENCODING_ISO8859_14
= _gdi_
.FONTENCODING_ISO8859_14
1226 FONTENCODING_ISO8859_15
= _gdi_
.FONTENCODING_ISO8859_15
1227 FONTENCODING_ISO8859_MAX
= _gdi_
.FONTENCODING_ISO8859_MAX
1228 FONTENCODING_KOI8
= _gdi_
.FONTENCODING_KOI8
1229 FONTENCODING_KOI8_U
= _gdi_
.FONTENCODING_KOI8_U
1230 FONTENCODING_ALTERNATIVE
= _gdi_
.FONTENCODING_ALTERNATIVE
1231 FONTENCODING_BULGARIAN
= _gdi_
.FONTENCODING_BULGARIAN
1232 FONTENCODING_CP437
= _gdi_
.FONTENCODING_CP437
1233 FONTENCODING_CP850
= _gdi_
.FONTENCODING_CP850
1234 FONTENCODING_CP852
= _gdi_
.FONTENCODING_CP852
1235 FONTENCODING_CP855
= _gdi_
.FONTENCODING_CP855
1236 FONTENCODING_CP866
= _gdi_
.FONTENCODING_CP866
1237 FONTENCODING_CP874
= _gdi_
.FONTENCODING_CP874
1238 FONTENCODING_CP932
= _gdi_
.FONTENCODING_CP932
1239 FONTENCODING_CP936
= _gdi_
.FONTENCODING_CP936
1240 FONTENCODING_CP949
= _gdi_
.FONTENCODING_CP949
1241 FONTENCODING_CP950
= _gdi_
.FONTENCODING_CP950
1242 FONTENCODING_CP1250
= _gdi_
.FONTENCODING_CP1250
1243 FONTENCODING_CP1251
= _gdi_
.FONTENCODING_CP1251
1244 FONTENCODING_CP1252
= _gdi_
.FONTENCODING_CP1252
1245 FONTENCODING_CP1253
= _gdi_
.FONTENCODING_CP1253
1246 FONTENCODING_CP1254
= _gdi_
.FONTENCODING_CP1254
1247 FONTENCODING_CP1255
= _gdi_
.FONTENCODING_CP1255
1248 FONTENCODING_CP1256
= _gdi_
.FONTENCODING_CP1256
1249 FONTENCODING_CP1257
= _gdi_
.FONTENCODING_CP1257
1250 FONTENCODING_CP12_MAX
= _gdi_
.FONTENCODING_CP12_MAX
1251 FONTENCODING_UTF7
= _gdi_
.FONTENCODING_UTF7
1252 FONTENCODING_UTF8
= _gdi_
.FONTENCODING_UTF8
1253 FONTENCODING_EUC_JP
= _gdi_
.FONTENCODING_EUC_JP
1254 FONTENCODING_UTF16BE
= _gdi_
.FONTENCODING_UTF16BE
1255 FONTENCODING_UTF16LE
= _gdi_
.FONTENCODING_UTF16LE
1256 FONTENCODING_UTF32BE
= _gdi_
.FONTENCODING_UTF32BE
1257 FONTENCODING_UTF32LE
= _gdi_
.FONTENCODING_UTF32LE
1258 FONTENCODING_MACROMAN
= _gdi_
.FONTENCODING_MACROMAN
1259 FONTENCODING_MACJAPANESE
= _gdi_
.FONTENCODING_MACJAPANESE
1260 FONTENCODING_MACCHINESETRAD
= _gdi_
.FONTENCODING_MACCHINESETRAD
1261 FONTENCODING_MACKOREAN
= _gdi_
.FONTENCODING_MACKOREAN
1262 FONTENCODING_MACARABIC
= _gdi_
.FONTENCODING_MACARABIC
1263 FONTENCODING_MACHEBREW
= _gdi_
.FONTENCODING_MACHEBREW
1264 FONTENCODING_MACGREEK
= _gdi_
.FONTENCODING_MACGREEK
1265 FONTENCODING_MACCYRILLIC
= _gdi_
.FONTENCODING_MACCYRILLIC
1266 FONTENCODING_MACDEVANAGARI
= _gdi_
.FONTENCODING_MACDEVANAGARI
1267 FONTENCODING_MACGURMUKHI
= _gdi_
.FONTENCODING_MACGURMUKHI
1268 FONTENCODING_MACGUJARATI
= _gdi_
.FONTENCODING_MACGUJARATI
1269 FONTENCODING_MACORIYA
= _gdi_
.FONTENCODING_MACORIYA
1270 FONTENCODING_MACBENGALI
= _gdi_
.FONTENCODING_MACBENGALI
1271 FONTENCODING_MACTAMIL
= _gdi_
.FONTENCODING_MACTAMIL
1272 FONTENCODING_MACTELUGU
= _gdi_
.FONTENCODING_MACTELUGU
1273 FONTENCODING_MACKANNADA
= _gdi_
.FONTENCODING_MACKANNADA
1274 FONTENCODING_MACMALAJALAM
= _gdi_
.FONTENCODING_MACMALAJALAM
1275 FONTENCODING_MACSINHALESE
= _gdi_
.FONTENCODING_MACSINHALESE
1276 FONTENCODING_MACBURMESE
= _gdi_
.FONTENCODING_MACBURMESE
1277 FONTENCODING_MACKHMER
= _gdi_
.FONTENCODING_MACKHMER
1278 FONTENCODING_MACTHAI
= _gdi_
.FONTENCODING_MACTHAI
1279 FONTENCODING_MACLAOTIAN
= _gdi_
.FONTENCODING_MACLAOTIAN
1280 FONTENCODING_MACGEORGIAN
= _gdi_
.FONTENCODING_MACGEORGIAN
1281 FONTENCODING_MACARMENIAN
= _gdi_
.FONTENCODING_MACARMENIAN
1282 FONTENCODING_MACCHINESESIMP
= _gdi_
.FONTENCODING_MACCHINESESIMP
1283 FONTENCODING_MACTIBETAN
= _gdi_
.FONTENCODING_MACTIBETAN
1284 FONTENCODING_MACMONGOLIAN
= _gdi_
.FONTENCODING_MACMONGOLIAN
1285 FONTENCODING_MACETHIOPIC
= _gdi_
.FONTENCODING_MACETHIOPIC
1286 FONTENCODING_MACCENTRALEUR
= _gdi_
.FONTENCODING_MACCENTRALEUR
1287 FONTENCODING_MACVIATNAMESE
= _gdi_
.FONTENCODING_MACVIATNAMESE
1288 FONTENCODING_MACARABICEXT
= _gdi_
.FONTENCODING_MACARABICEXT
1289 FONTENCODING_MACSYMBOL
= _gdi_
.FONTENCODING_MACSYMBOL
1290 FONTENCODING_MACDINGBATS
= _gdi_
.FONTENCODING_MACDINGBATS
1291 FONTENCODING_MACTURKISH
= _gdi_
.FONTENCODING_MACTURKISH
1292 FONTENCODING_MACCROATIAN
= _gdi_
.FONTENCODING_MACCROATIAN
1293 FONTENCODING_MACICELANDIC
= _gdi_
.FONTENCODING_MACICELANDIC
1294 FONTENCODING_MACROMANIAN
= _gdi_
.FONTENCODING_MACROMANIAN
1295 FONTENCODING_MACCELTIC
= _gdi_
.FONTENCODING_MACCELTIC
1296 FONTENCODING_MACGAELIC
= _gdi_
.FONTENCODING_MACGAELIC
1297 FONTENCODING_MACKEYBOARD
= _gdi_
.FONTENCODING_MACKEYBOARD
1298 FONTENCODING_MACMIN
= _gdi_
.FONTENCODING_MACMIN
1299 FONTENCODING_MACMAX
= _gdi_
.FONTENCODING_MACMAX
1300 FONTENCODING_MAX
= _gdi_
.FONTENCODING_MAX
1301 FONTENCODING_UTF16
= _gdi_
.FONTENCODING_UTF16
1302 FONTENCODING_UTF32
= _gdi_
.FONTENCODING_UTF32
1303 FONTENCODING_UNICODE
= _gdi_
.FONTENCODING_UNICODE
1304 FONTENCODING_GB2312
= _gdi_
.FONTENCODING_GB2312
1305 FONTENCODING_BIG5
= _gdi_
.FONTENCODING_BIG5
1306 FONTENCODING_SHIFT_JIS
= _gdi_
.FONTENCODING_SHIFT_JIS
1307 #---------------------------------------------------------------------------
1309 class NativeFontInfo(object):
1311 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1312 def __init__(self
, *args
, **kwargs
):
1313 """__init__(self) -> NativeFontInfo"""
1314 newobj
= _gdi_
.new_NativeFontInfo(*args
, **kwargs
)
1315 self
.this
= newobj
.this
1318 def __del__(self
, destroy
=_gdi_
.delete_NativeFontInfo
):
1321 if self
.thisown
: destroy(self
)
1324 def Init(*args
, **kwargs
):
1326 return _gdi_
.NativeFontInfo_Init(*args
, **kwargs
)
1328 def InitFromFont(*args
, **kwargs
):
1329 """InitFromFont(self, Font font)"""
1330 return _gdi_
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1332 def GetPointSize(*args
, **kwargs
):
1333 """GetPointSize(self) -> int"""
1334 return _gdi_
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1336 def GetStyle(*args
, **kwargs
):
1337 """GetStyle(self) -> int"""
1338 return _gdi_
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1340 def GetWeight(*args
, **kwargs
):
1341 """GetWeight(self) -> int"""
1342 return _gdi_
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1344 def GetUnderlined(*args
, **kwargs
):
1345 """GetUnderlined(self) -> bool"""
1346 return _gdi_
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1348 def GetFaceName(*args
, **kwargs
):
1349 """GetFaceName(self) -> String"""
1350 return _gdi_
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1352 def GetFamily(*args
, **kwargs
):
1353 """GetFamily(self) -> int"""
1354 return _gdi_
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1356 def GetEncoding(*args
, **kwargs
):
1357 """GetEncoding(self) -> int"""
1358 return _gdi_
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1360 def SetPointSize(*args
, **kwargs
):
1361 """SetPointSize(self, int pointsize)"""
1362 return _gdi_
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1364 def SetStyle(*args
, **kwargs
):
1365 """SetStyle(self, int style)"""
1366 return _gdi_
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1368 def SetWeight(*args
, **kwargs
):
1369 """SetWeight(self, int weight)"""
1370 return _gdi_
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1372 def SetUnderlined(*args
, **kwargs
):
1373 """SetUnderlined(self, bool underlined)"""
1374 return _gdi_
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1376 def SetFaceName(*args
, **kwargs
):
1377 """SetFaceName(self, String facename)"""
1378 return _gdi_
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1380 def SetFamily(*args
, **kwargs
):
1381 """SetFamily(self, int family)"""
1382 return _gdi_
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1384 def SetEncoding(*args
, **kwargs
):
1385 """SetEncoding(self, int encoding)"""
1386 return _gdi_
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1388 def FromString(*args
, **kwargs
):
1389 """FromString(self, String s) -> bool"""
1390 return _gdi_
.NativeFontInfo_FromString(*args
, **kwargs
)
1392 def ToString(*args
, **kwargs
):
1393 """ToString(self) -> String"""
1394 return _gdi_
.NativeFontInfo_ToString(*args
, **kwargs
)
1396 def __str__(*args
, **kwargs
):
1397 """__str__(self) -> String"""
1398 return _gdi_
.NativeFontInfo___str__(*args
, **kwargs
)
1400 def FromUserString(*args
, **kwargs
):
1401 """FromUserString(self, String s) -> bool"""
1402 return _gdi_
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1404 def ToUserString(*args
, **kwargs
):
1405 """ToUserString(self) -> String"""
1406 return _gdi_
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1409 class NativeFontInfoPtr(NativeFontInfo
):
1410 def __init__(self
, this
):
1412 if not hasattr(self
,"thisown"): self
.thisown
= 0
1413 self
.__class
__ = NativeFontInfo
1414 _gdi_
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1416 class NativeEncodingInfo(object):
1418 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1419 facename
= property(_gdi_
.NativeEncodingInfo_facename_get
, _gdi_
.NativeEncodingInfo_facename_set
)
1420 encoding
= property(_gdi_
.NativeEncodingInfo_encoding_get
, _gdi_
.NativeEncodingInfo_encoding_set
)
1421 def __init__(self
, *args
, **kwargs
):
1422 """__init__(self) -> NativeEncodingInfo"""
1423 newobj
= _gdi_
.new_NativeEncodingInfo(*args
, **kwargs
)
1424 self
.this
= newobj
.this
1427 def __del__(self
, destroy
=_gdi_
.delete_NativeEncodingInfo
):
1430 if self
.thisown
: destroy(self
)
1433 def FromString(*args
, **kwargs
):
1434 """FromString(self, String s) -> bool"""
1435 return _gdi_
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1437 def ToString(*args
, **kwargs
):
1438 """ToString(self) -> String"""
1439 return _gdi_
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1442 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1443 def __init__(self
, this
):
1445 if not hasattr(self
,"thisown"): self
.thisown
= 0
1446 self
.__class
__ = NativeEncodingInfo
1447 _gdi_
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1450 def GetNativeFontEncoding(*args
, **kwargs
):
1451 """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo"""
1452 return _gdi_
.GetNativeFontEncoding(*args
, **kwargs
)
1454 def TestFontEncoding(*args
, **kwargs
):
1455 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1456 return _gdi_
.TestFontEncoding(*args
, **kwargs
)
1457 #---------------------------------------------------------------------------
1459 class FontMapper(object):
1461 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1462 def __init__(self
, *args
, **kwargs
):
1463 """__init__(self) -> FontMapper"""
1464 newobj
= _gdi_
.new_FontMapper(*args
, **kwargs
)
1465 self
.this
= newobj
.this
1468 def __del__(self
, destroy
=_gdi_
.delete_FontMapper
):
1471 if self
.thisown
: destroy(self
)
1474 def Get(*args
, **kwargs
):
1475 """Get() -> FontMapper"""
1476 return _gdi_
.FontMapper_Get(*args
, **kwargs
)
1478 Get
= staticmethod(Get
)
1479 def Set(*args
, **kwargs
):
1480 """Set(FontMapper mapper) -> FontMapper"""
1481 return _gdi_
.FontMapper_Set(*args
, **kwargs
)
1483 Set
= staticmethod(Set
)
1484 def CharsetToEncoding(*args
, **kwargs
):
1485 """CharsetToEncoding(self, String charset, bool interactive=True) -> int"""
1486 return _gdi_
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1488 def GetSupportedEncodingsCount(*args
, **kwargs
):
1489 """GetSupportedEncodingsCount() -> size_t"""
1490 return _gdi_
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1492 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1493 def GetEncoding(*args
, **kwargs
):
1494 """GetEncoding(size_t n) -> int"""
1495 return _gdi_
.FontMapper_GetEncoding(*args
, **kwargs
)
1497 GetEncoding
= staticmethod(GetEncoding
)
1498 def GetEncodingName(*args
, **kwargs
):
1499 """GetEncodingName(int encoding) -> String"""
1500 return _gdi_
.FontMapper_GetEncodingName(*args
, **kwargs
)
1502 GetEncodingName
= staticmethod(GetEncodingName
)
1503 def GetEncodingDescription(*args
, **kwargs
):
1504 """GetEncodingDescription(int encoding) -> String"""
1505 return _gdi_
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1507 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1508 def GetEncodingFromName(*args
, **kwargs
):
1509 """GetEncodingFromName(String name) -> int"""
1510 return _gdi_
.FontMapper_GetEncodingFromName(*args
, **kwargs
)
1512 GetEncodingFromName
= staticmethod(GetEncodingFromName
)
1513 def SetConfig(*args
, **kwargs
):
1514 """SetConfig(self, ConfigBase config)"""
1515 return _gdi_
.FontMapper_SetConfig(*args
, **kwargs
)
1517 def SetConfigPath(*args
, **kwargs
):
1518 """SetConfigPath(self, String prefix)"""
1519 return _gdi_
.FontMapper_SetConfigPath(*args
, **kwargs
)
1521 def GetDefaultConfigPath(*args
, **kwargs
):
1522 """GetDefaultConfigPath() -> String"""
1523 return _gdi_
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1525 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1526 def GetAltForEncoding(*args
, **kwargs
):
1527 """GetAltForEncoding(self, int encoding, String facename=EmptyString, bool interactive=True) -> PyObject"""
1528 return _gdi_
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1530 def IsEncodingAvailable(*args
, **kwargs
):
1531 """IsEncodingAvailable(self, int encoding, String facename=EmptyString) -> bool"""
1532 return _gdi_
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1534 def SetDialogParent(*args
, **kwargs
):
1535 """SetDialogParent(self, Window parent)"""
1536 return _gdi_
.FontMapper_SetDialogParent(*args
, **kwargs
)
1538 def SetDialogTitle(*args
, **kwargs
):
1539 """SetDialogTitle(self, String title)"""
1540 return _gdi_
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1543 class FontMapperPtr(FontMapper
):
1544 def __init__(self
, this
):
1546 if not hasattr(self
,"thisown"): self
.thisown
= 0
1547 self
.__class
__ = FontMapper
1548 _gdi_
.FontMapper_swigregister(FontMapperPtr
)
1550 def FontMapper_Get(*args
, **kwargs
):
1551 """FontMapper_Get() -> FontMapper"""
1552 return _gdi_
.FontMapper_Get(*args
, **kwargs
)
1554 def FontMapper_Set(*args
, **kwargs
):
1555 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1556 return _gdi_
.FontMapper_Set(*args
, **kwargs
)
1558 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1559 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1560 return _gdi_
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1562 def FontMapper_GetEncoding(*args
, **kwargs
):
1563 """FontMapper_GetEncoding(size_t n) -> int"""
1564 return _gdi_
.FontMapper_GetEncoding(*args
, **kwargs
)
1566 def FontMapper_GetEncodingName(*args
, **kwargs
):
1567 """FontMapper_GetEncodingName(int encoding) -> String"""
1568 return _gdi_
.FontMapper_GetEncodingName(*args
, **kwargs
)
1570 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1571 """FontMapper_GetEncodingDescription(int encoding) -> String"""
1572 return _gdi_
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1574 def FontMapper_GetEncodingFromName(*args
, **kwargs
):
1575 """FontMapper_GetEncodingFromName(String name) -> int"""
1576 return _gdi_
.FontMapper_GetEncodingFromName(*args
, **kwargs
)
1578 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1579 """FontMapper_GetDefaultConfigPath() -> String"""
1580 return _gdi_
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1582 #---------------------------------------------------------------------------
1584 class Font(GDIObject
):
1586 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1587 def __init__(self
, *args
, **kwargs
):
1589 __init__(self, int pointSize, int family, int style, int weight, bool underline=False,
1590 String face=EmptyString,
1591 int encoding=FONTENCODING_DEFAULT) -> Font
1593 if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName']
1594 newobj
= _gdi_
.new_Font(*args
, **kwargs
)
1595 self
.this
= newobj
.this
1598 def __del__(self
, destroy
=_gdi_
.delete_Font
):
1601 if self
.thisown
: destroy(self
)
1604 def Ok(*args
, **kwargs
):
1605 """Ok(self) -> bool"""
1606 return _gdi_
.Font_Ok(*args
, **kwargs
)
1608 def __nonzero__(self
): return self
.Ok()
1609 def __eq__(*args
, **kwargs
):
1610 """__eq__(self, Font other) -> bool"""
1611 return _gdi_
.Font___eq__(*args
, **kwargs
)
1613 def __ne__(*args
, **kwargs
):
1614 """__ne__(self, Font other) -> bool"""
1615 return _gdi_
.Font___ne__(*args
, **kwargs
)
1617 def GetPointSize(*args
, **kwargs
):
1618 """GetPointSize(self) -> int"""
1619 return _gdi_
.Font_GetPointSize(*args
, **kwargs
)
1621 def GetFamily(*args
, **kwargs
):
1622 """GetFamily(self) -> int"""
1623 return _gdi_
.Font_GetFamily(*args
, **kwargs
)
1625 def GetStyle(*args
, **kwargs
):
1626 """GetStyle(self) -> int"""
1627 return _gdi_
.Font_GetStyle(*args
, **kwargs
)
1629 def GetWeight(*args
, **kwargs
):
1630 """GetWeight(self) -> int"""
1631 return _gdi_
.Font_GetWeight(*args
, **kwargs
)
1633 def GetUnderlined(*args
, **kwargs
):
1634 """GetUnderlined(self) -> bool"""
1635 return _gdi_
.Font_GetUnderlined(*args
, **kwargs
)
1637 def GetFaceName(*args
, **kwargs
):
1638 """GetFaceName(self) -> String"""
1639 return _gdi_
.Font_GetFaceName(*args
, **kwargs
)
1641 def GetEncoding(*args
, **kwargs
):
1642 """GetEncoding(self) -> int"""
1643 return _gdi_
.Font_GetEncoding(*args
, **kwargs
)
1645 def GetNativeFontInfo(*args
, **kwargs
):
1646 """GetNativeFontInfo(self) -> NativeFontInfo"""
1647 return _gdi_
.Font_GetNativeFontInfo(*args
, **kwargs
)
1649 def IsFixedWidth(*args
, **kwargs
):
1650 """IsFixedWidth(self) -> bool"""
1651 return _gdi_
.Font_IsFixedWidth(*args
, **kwargs
)
1653 def GetNativeFontInfoDesc(*args
, **kwargs
):
1654 """GetNativeFontInfoDesc(self) -> String"""
1655 return _gdi_
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1657 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1658 """GetNativeFontInfoUserDesc(self) -> String"""
1659 return _gdi_
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1661 def SetPointSize(*args
, **kwargs
):
1662 """SetPointSize(self, int pointSize)"""
1663 return _gdi_
.Font_SetPointSize(*args
, **kwargs
)
1665 def SetFamily(*args
, **kwargs
):
1666 """SetFamily(self, int family)"""
1667 return _gdi_
.Font_SetFamily(*args
, **kwargs
)
1669 def SetStyle(*args
, **kwargs
):
1670 """SetStyle(self, int style)"""
1671 return _gdi_
.Font_SetStyle(*args
, **kwargs
)
1673 def SetWeight(*args
, **kwargs
):
1674 """SetWeight(self, int weight)"""
1675 return _gdi_
.Font_SetWeight(*args
, **kwargs
)
1677 def SetFaceName(*args
, **kwargs
):
1678 """SetFaceName(self, String faceName)"""
1679 return _gdi_
.Font_SetFaceName(*args
, **kwargs
)
1681 def SetUnderlined(*args
, **kwargs
):
1682 """SetUnderlined(self, bool underlined)"""
1683 return _gdi_
.Font_SetUnderlined(*args
, **kwargs
)
1685 def SetEncoding(*args
, **kwargs
):
1686 """SetEncoding(self, int encoding)"""
1687 return _gdi_
.Font_SetEncoding(*args
, **kwargs
)
1689 def SetNativeFontInfo(*args
, **kwargs
):
1690 """SetNativeFontInfo(self, NativeFontInfo info)"""
1691 return _gdi_
.Font_SetNativeFontInfo(*args
, **kwargs
)
1693 def SetNativeFontInfoFromString(*args
, **kwargs
):
1694 """SetNativeFontInfoFromString(self, String info)"""
1695 return _gdi_
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1697 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1698 """SetNativeFontInfoUserDesc(self, String info)"""
1699 return _gdi_
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1701 def GetFamilyString(*args
, **kwargs
):
1702 """GetFamilyString(self) -> String"""
1703 return _gdi_
.Font_GetFamilyString(*args
, **kwargs
)
1705 def GetStyleString(*args
, **kwargs
):
1706 """GetStyleString(self) -> String"""
1707 return _gdi_
.Font_GetStyleString(*args
, **kwargs
)
1709 def GetWeightString(*args
, **kwargs
):
1710 """GetWeightString(self) -> String"""
1711 return _gdi_
.Font_GetWeightString(*args
, **kwargs
)
1713 def SetNoAntiAliasing(*args
, **kwargs
):
1714 """SetNoAntiAliasing(self, bool no=True)"""
1715 return _gdi_
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1717 def GetNoAntiAliasing(*args
, **kwargs
):
1718 """GetNoAntiAliasing(self) -> bool"""
1719 return _gdi_
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1721 def GetDefaultEncoding(*args
, **kwargs
):
1722 """GetDefaultEncoding() -> int"""
1723 return _gdi_
.Font_GetDefaultEncoding(*args
, **kwargs
)
1725 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1726 def SetDefaultEncoding(*args
, **kwargs
):
1727 """SetDefaultEncoding(int encoding)"""
1728 return _gdi_
.Font_SetDefaultEncoding(*args
, **kwargs
)
1730 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1732 class FontPtr(Font
):
1733 def __init__(self
, this
):
1735 if not hasattr(self
,"thisown"): self
.thisown
= 0
1736 self
.__class
__ = Font
1737 _gdi_
.Font_swigregister(FontPtr
)
1739 def FontFromNativeInfo(*args
, **kwargs
):
1740 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1741 if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName']
1742 val
= _gdi_
.new_FontFromNativeInfo(*args
, **kwargs
)
1746 def FontFromNativeInfoString(*args
, **kwargs
):
1747 """FontFromNativeInfoString(String info) -> Font"""
1748 if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName']
1749 val
= _gdi_
.new_FontFromNativeInfoString(*args
, **kwargs
)
1753 def Font2(*args
, **kwargs
):
1755 Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT,
1756 String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font
1758 if kwargs
.has_key('faceName'): kwargs
['face'] = kwargs
['faceName'];del kwargs
['faceName']
1759 val
= _gdi_
.new_Font2(*args
, **kwargs
)
1763 def Font_GetDefaultEncoding(*args
, **kwargs
):
1764 """Font_GetDefaultEncoding() -> int"""
1765 return _gdi_
.Font_GetDefaultEncoding(*args
, **kwargs
)
1767 def Font_SetDefaultEncoding(*args
, **kwargs
):
1768 """Font_SetDefaultEncoding(int encoding)"""
1769 return _gdi_
.Font_SetDefaultEncoding(*args
, **kwargs
)
1771 #---------------------------------------------------------------------------
1773 class FontEnumerator(object):
1775 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1776 def __init__(self
, *args
, **kwargs
):
1777 """__init__(self) -> FontEnumerator"""
1778 newobj
= _gdi_
.new_FontEnumerator(*args
, **kwargs
)
1779 self
.this
= newobj
.this
1782 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1784 def __del__(self
, destroy
=_gdi_
.delete_FontEnumerator
):
1787 if self
.thisown
: destroy(self
)
1790 def _setCallbackInfo(*args
, **kwargs
):
1791 """_setCallbackInfo(self, PyObject self, PyObject _class, bool incref)"""
1792 return _gdi_
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1794 def EnumerateFacenames(*args
, **kwargs
):
1795 """EnumerateFacenames(self, int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1796 return _gdi_
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1798 def EnumerateEncodings(*args
, **kwargs
):
1799 """EnumerateEncodings(self, String facename=EmptyString) -> bool"""
1800 return _gdi_
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1802 def GetEncodings(*args
, **kwargs
):
1803 """GetEncodings(self) -> PyObject"""
1804 return _gdi_
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1806 def GetFacenames(*args
, **kwargs
):
1807 """GetFacenames(self) -> PyObject"""
1808 return _gdi_
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1811 class FontEnumeratorPtr(FontEnumerator
):
1812 def __init__(self
, this
):
1814 if not hasattr(self
,"thisown"): self
.thisown
= 0
1815 self
.__class
__ = FontEnumerator
1816 _gdi_
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1818 #---------------------------------------------------------------------------
1820 LANGUAGE_DEFAULT
= _gdi_
.LANGUAGE_DEFAULT
1821 LANGUAGE_UNKNOWN
= _gdi_
.LANGUAGE_UNKNOWN
1822 LANGUAGE_ABKHAZIAN
= _gdi_
.LANGUAGE_ABKHAZIAN
1823 LANGUAGE_AFAR
= _gdi_
.LANGUAGE_AFAR
1824 LANGUAGE_AFRIKAANS
= _gdi_
.LANGUAGE_AFRIKAANS
1825 LANGUAGE_ALBANIAN
= _gdi_
.LANGUAGE_ALBANIAN
1826 LANGUAGE_AMHARIC
= _gdi_
.LANGUAGE_AMHARIC
1827 LANGUAGE_ARABIC
= _gdi_
.LANGUAGE_ARABIC
1828 LANGUAGE_ARABIC_ALGERIA
= _gdi_
.LANGUAGE_ARABIC_ALGERIA
1829 LANGUAGE_ARABIC_BAHRAIN
= _gdi_
.LANGUAGE_ARABIC_BAHRAIN
1830 LANGUAGE_ARABIC_EGYPT
= _gdi_
.LANGUAGE_ARABIC_EGYPT
1831 LANGUAGE_ARABIC_IRAQ
= _gdi_
.LANGUAGE_ARABIC_IRAQ
1832 LANGUAGE_ARABIC_JORDAN
= _gdi_
.LANGUAGE_ARABIC_JORDAN
1833 LANGUAGE_ARABIC_KUWAIT
= _gdi_
.LANGUAGE_ARABIC_KUWAIT
1834 LANGUAGE_ARABIC_LEBANON
= _gdi_
.LANGUAGE_ARABIC_LEBANON
1835 LANGUAGE_ARABIC_LIBYA
= _gdi_
.LANGUAGE_ARABIC_LIBYA
1836 LANGUAGE_ARABIC_MOROCCO
= _gdi_
.LANGUAGE_ARABIC_MOROCCO
1837 LANGUAGE_ARABIC_OMAN
= _gdi_
.LANGUAGE_ARABIC_OMAN
1838 LANGUAGE_ARABIC_QATAR
= _gdi_
.LANGUAGE_ARABIC_QATAR
1839 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi_
.LANGUAGE_ARABIC_SAUDI_ARABIA
1840 LANGUAGE_ARABIC_SUDAN
= _gdi_
.LANGUAGE_ARABIC_SUDAN
1841 LANGUAGE_ARABIC_SYRIA
= _gdi_
.LANGUAGE_ARABIC_SYRIA
1842 LANGUAGE_ARABIC_TUNISIA
= _gdi_
.LANGUAGE_ARABIC_TUNISIA
1843 LANGUAGE_ARABIC_UAE
= _gdi_
.LANGUAGE_ARABIC_UAE
1844 LANGUAGE_ARABIC_YEMEN
= _gdi_
.LANGUAGE_ARABIC_YEMEN
1845 LANGUAGE_ARMENIAN
= _gdi_
.LANGUAGE_ARMENIAN
1846 LANGUAGE_ASSAMESE
= _gdi_
.LANGUAGE_ASSAMESE
1847 LANGUAGE_AYMARA
= _gdi_
.LANGUAGE_AYMARA
1848 LANGUAGE_AZERI
= _gdi_
.LANGUAGE_AZERI
1849 LANGUAGE_AZERI_CYRILLIC
= _gdi_
.LANGUAGE_AZERI_CYRILLIC
1850 LANGUAGE_AZERI_LATIN
= _gdi_
.LANGUAGE_AZERI_LATIN
1851 LANGUAGE_BASHKIR
= _gdi_
.LANGUAGE_BASHKIR
1852 LANGUAGE_BASQUE
= _gdi_
.LANGUAGE_BASQUE
1853 LANGUAGE_BELARUSIAN
= _gdi_
.LANGUAGE_BELARUSIAN
1854 LANGUAGE_BENGALI
= _gdi_
.LANGUAGE_BENGALI
1855 LANGUAGE_BHUTANI
= _gdi_
.LANGUAGE_BHUTANI
1856 LANGUAGE_BIHARI
= _gdi_
.LANGUAGE_BIHARI
1857 LANGUAGE_BISLAMA
= _gdi_
.LANGUAGE_BISLAMA
1858 LANGUAGE_BRETON
= _gdi_
.LANGUAGE_BRETON
1859 LANGUAGE_BULGARIAN
= _gdi_
.LANGUAGE_BULGARIAN
1860 LANGUAGE_BURMESE
= _gdi_
.LANGUAGE_BURMESE
1861 LANGUAGE_CAMBODIAN
= _gdi_
.LANGUAGE_CAMBODIAN
1862 LANGUAGE_CATALAN
= _gdi_
.LANGUAGE_CATALAN
1863 LANGUAGE_CHINESE
= _gdi_
.LANGUAGE_CHINESE
1864 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi_
.LANGUAGE_CHINESE_SIMPLIFIED
1865 LANGUAGE_CHINESE_TRADITIONAL
= _gdi_
.LANGUAGE_CHINESE_TRADITIONAL
1866 LANGUAGE_CHINESE_HONGKONG
= _gdi_
.LANGUAGE_CHINESE_HONGKONG
1867 LANGUAGE_CHINESE_MACAU
= _gdi_
.LANGUAGE_CHINESE_MACAU
1868 LANGUAGE_CHINESE_SINGAPORE
= _gdi_
.LANGUAGE_CHINESE_SINGAPORE
1869 LANGUAGE_CHINESE_TAIWAN
= _gdi_
.LANGUAGE_CHINESE_TAIWAN
1870 LANGUAGE_CORSICAN
= _gdi_
.LANGUAGE_CORSICAN
1871 LANGUAGE_CROATIAN
= _gdi_
.LANGUAGE_CROATIAN
1872 LANGUAGE_CZECH
= _gdi_
.LANGUAGE_CZECH
1873 LANGUAGE_DANISH
= _gdi_
.LANGUAGE_DANISH
1874 LANGUAGE_DUTCH
= _gdi_
.LANGUAGE_DUTCH
1875 LANGUAGE_DUTCH_BELGIAN
= _gdi_
.LANGUAGE_DUTCH_BELGIAN
1876 LANGUAGE_ENGLISH
= _gdi_
.LANGUAGE_ENGLISH
1877 LANGUAGE_ENGLISH_UK
= _gdi_
.LANGUAGE_ENGLISH_UK
1878 LANGUAGE_ENGLISH_US
= _gdi_
.LANGUAGE_ENGLISH_US
1879 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi_
.LANGUAGE_ENGLISH_AUSTRALIA
1880 LANGUAGE_ENGLISH_BELIZE
= _gdi_
.LANGUAGE_ENGLISH_BELIZE
1881 LANGUAGE_ENGLISH_BOTSWANA
= _gdi_
.LANGUAGE_ENGLISH_BOTSWANA
1882 LANGUAGE_ENGLISH_CANADA
= _gdi_
.LANGUAGE_ENGLISH_CANADA
1883 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi_
.LANGUAGE_ENGLISH_CARIBBEAN
1884 LANGUAGE_ENGLISH_DENMARK
= _gdi_
.LANGUAGE_ENGLISH_DENMARK
1885 LANGUAGE_ENGLISH_EIRE
= _gdi_
.LANGUAGE_ENGLISH_EIRE
1886 LANGUAGE_ENGLISH_JAMAICA
= _gdi_
.LANGUAGE_ENGLISH_JAMAICA
1887 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi_
.LANGUAGE_ENGLISH_NEW_ZEALAND
1888 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi_
.LANGUAGE_ENGLISH_PHILIPPINES
1889 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi_
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1890 LANGUAGE_ENGLISH_TRINIDAD
= _gdi_
.LANGUAGE_ENGLISH_TRINIDAD
1891 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi_
.LANGUAGE_ENGLISH_ZIMBABWE
1892 LANGUAGE_ESPERANTO
= _gdi_
.LANGUAGE_ESPERANTO
1893 LANGUAGE_ESTONIAN
= _gdi_
.LANGUAGE_ESTONIAN
1894 LANGUAGE_FAEROESE
= _gdi_
.LANGUAGE_FAEROESE
1895 LANGUAGE_FARSI
= _gdi_
.LANGUAGE_FARSI
1896 LANGUAGE_FIJI
= _gdi_
.LANGUAGE_FIJI
1897 LANGUAGE_FINNISH
= _gdi_
.LANGUAGE_FINNISH
1898 LANGUAGE_FRENCH
= _gdi_
.LANGUAGE_FRENCH
1899 LANGUAGE_FRENCH_BELGIAN
= _gdi_
.LANGUAGE_FRENCH_BELGIAN
1900 LANGUAGE_FRENCH_CANADIAN
= _gdi_
.LANGUAGE_FRENCH_CANADIAN
1901 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi_
.LANGUAGE_FRENCH_LUXEMBOURG
1902 LANGUAGE_FRENCH_MONACO
= _gdi_
.LANGUAGE_FRENCH_MONACO
1903 LANGUAGE_FRENCH_SWISS
= _gdi_
.LANGUAGE_FRENCH_SWISS
1904 LANGUAGE_FRISIAN
= _gdi_
.LANGUAGE_FRISIAN
1905 LANGUAGE_GALICIAN
= _gdi_
.LANGUAGE_GALICIAN
1906 LANGUAGE_GEORGIAN
= _gdi_
.LANGUAGE_GEORGIAN
1907 LANGUAGE_GERMAN
= _gdi_
.LANGUAGE_GERMAN
1908 LANGUAGE_GERMAN_AUSTRIAN
= _gdi_
.LANGUAGE_GERMAN_AUSTRIAN
1909 LANGUAGE_GERMAN_BELGIUM
= _gdi_
.LANGUAGE_GERMAN_BELGIUM
1910 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi_
.LANGUAGE_GERMAN_LIECHTENSTEIN
1911 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi_
.LANGUAGE_GERMAN_LUXEMBOURG
1912 LANGUAGE_GERMAN_SWISS
= _gdi_
.LANGUAGE_GERMAN_SWISS
1913 LANGUAGE_GREEK
= _gdi_
.LANGUAGE_GREEK
1914 LANGUAGE_GREENLANDIC
= _gdi_
.LANGUAGE_GREENLANDIC
1915 LANGUAGE_GUARANI
= _gdi_
.LANGUAGE_GUARANI
1916 LANGUAGE_GUJARATI
= _gdi_
.LANGUAGE_GUJARATI
1917 LANGUAGE_HAUSA
= _gdi_
.LANGUAGE_HAUSA
1918 LANGUAGE_HEBREW
= _gdi_
.LANGUAGE_HEBREW
1919 LANGUAGE_HINDI
= _gdi_
.LANGUAGE_HINDI
1920 LANGUAGE_HUNGARIAN
= _gdi_
.LANGUAGE_HUNGARIAN
1921 LANGUAGE_ICELANDIC
= _gdi_
.LANGUAGE_ICELANDIC
1922 LANGUAGE_INDONESIAN
= _gdi_
.LANGUAGE_INDONESIAN
1923 LANGUAGE_INTERLINGUA
= _gdi_
.LANGUAGE_INTERLINGUA
1924 LANGUAGE_INTERLINGUE
= _gdi_
.LANGUAGE_INTERLINGUE
1925 LANGUAGE_INUKTITUT
= _gdi_
.LANGUAGE_INUKTITUT
1926 LANGUAGE_INUPIAK
= _gdi_
.LANGUAGE_INUPIAK
1927 LANGUAGE_IRISH
= _gdi_
.LANGUAGE_IRISH
1928 LANGUAGE_ITALIAN
= _gdi_
.LANGUAGE_ITALIAN
1929 LANGUAGE_ITALIAN_SWISS
= _gdi_
.LANGUAGE_ITALIAN_SWISS
1930 LANGUAGE_JAPANESE
= _gdi_
.LANGUAGE_JAPANESE
1931 LANGUAGE_JAVANESE
= _gdi_
.LANGUAGE_JAVANESE
1932 LANGUAGE_KANNADA
= _gdi_
.LANGUAGE_KANNADA
1933 LANGUAGE_KASHMIRI
= _gdi_
.LANGUAGE_KASHMIRI
1934 LANGUAGE_KASHMIRI_INDIA
= _gdi_
.LANGUAGE_KASHMIRI_INDIA
1935 LANGUAGE_KAZAKH
= _gdi_
.LANGUAGE_KAZAKH
1936 LANGUAGE_KERNEWEK
= _gdi_
.LANGUAGE_KERNEWEK
1937 LANGUAGE_KINYARWANDA
= _gdi_
.LANGUAGE_KINYARWANDA
1938 LANGUAGE_KIRGHIZ
= _gdi_
.LANGUAGE_KIRGHIZ
1939 LANGUAGE_KIRUNDI
= _gdi_
.LANGUAGE_KIRUNDI
1940 LANGUAGE_KONKANI
= _gdi_
.LANGUAGE_KONKANI
1941 LANGUAGE_KOREAN
= _gdi_
.LANGUAGE_KOREAN
1942 LANGUAGE_KURDISH
= _gdi_
.LANGUAGE_KURDISH
1943 LANGUAGE_LAOTHIAN
= _gdi_
.LANGUAGE_LAOTHIAN
1944 LANGUAGE_LATIN
= _gdi_
.LANGUAGE_LATIN
1945 LANGUAGE_LATVIAN
= _gdi_
.LANGUAGE_LATVIAN
1946 LANGUAGE_LINGALA
= _gdi_
.LANGUAGE_LINGALA
1947 LANGUAGE_LITHUANIAN
= _gdi_
.LANGUAGE_LITHUANIAN
1948 LANGUAGE_MACEDONIAN
= _gdi_
.LANGUAGE_MACEDONIAN
1949 LANGUAGE_MALAGASY
= _gdi_
.LANGUAGE_MALAGASY
1950 LANGUAGE_MALAY
= _gdi_
.LANGUAGE_MALAY
1951 LANGUAGE_MALAYALAM
= _gdi_
.LANGUAGE_MALAYALAM
1952 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi_
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1953 LANGUAGE_MALAY_MALAYSIA
= _gdi_
.LANGUAGE_MALAY_MALAYSIA
1954 LANGUAGE_MALTESE
= _gdi_
.LANGUAGE_MALTESE
1955 LANGUAGE_MANIPURI
= _gdi_
.LANGUAGE_MANIPURI
1956 LANGUAGE_MAORI
= _gdi_
.LANGUAGE_MAORI
1957 LANGUAGE_MARATHI
= _gdi_
.LANGUAGE_MARATHI
1958 LANGUAGE_MOLDAVIAN
= _gdi_
.LANGUAGE_MOLDAVIAN
1959 LANGUAGE_MONGOLIAN
= _gdi_
.LANGUAGE_MONGOLIAN
1960 LANGUAGE_NAURU
= _gdi_
.LANGUAGE_NAURU
1961 LANGUAGE_NEPALI
= _gdi_
.LANGUAGE_NEPALI
1962 LANGUAGE_NEPALI_INDIA
= _gdi_
.LANGUAGE_NEPALI_INDIA
1963 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi_
.LANGUAGE_NORWEGIAN_BOKMAL
1964 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi_
.LANGUAGE_NORWEGIAN_NYNORSK
1965 LANGUAGE_OCCITAN
= _gdi_
.LANGUAGE_OCCITAN
1966 LANGUAGE_ORIYA
= _gdi_
.LANGUAGE_ORIYA
1967 LANGUAGE_OROMO
= _gdi_
.LANGUAGE_OROMO
1968 LANGUAGE_PASHTO
= _gdi_
.LANGUAGE_PASHTO
1969 LANGUAGE_POLISH
= _gdi_
.LANGUAGE_POLISH
1970 LANGUAGE_PORTUGUESE
= _gdi_
.LANGUAGE_PORTUGUESE
1971 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi_
.LANGUAGE_PORTUGUESE_BRAZILIAN
1972 LANGUAGE_PUNJABI
= _gdi_
.LANGUAGE_PUNJABI
1973 LANGUAGE_QUECHUA
= _gdi_
.LANGUAGE_QUECHUA
1974 LANGUAGE_RHAETO_ROMANCE
= _gdi_
.LANGUAGE_RHAETO_ROMANCE
1975 LANGUAGE_ROMANIAN
= _gdi_
.LANGUAGE_ROMANIAN
1976 LANGUAGE_RUSSIAN
= _gdi_
.LANGUAGE_RUSSIAN
1977 LANGUAGE_RUSSIAN_UKRAINE
= _gdi_
.LANGUAGE_RUSSIAN_UKRAINE
1978 LANGUAGE_SAMOAN
= _gdi_
.LANGUAGE_SAMOAN
1979 LANGUAGE_SANGHO
= _gdi_
.LANGUAGE_SANGHO
1980 LANGUAGE_SANSKRIT
= _gdi_
.LANGUAGE_SANSKRIT
1981 LANGUAGE_SCOTS_GAELIC
= _gdi_
.LANGUAGE_SCOTS_GAELIC
1982 LANGUAGE_SERBIAN
= _gdi_
.LANGUAGE_SERBIAN
1983 LANGUAGE_SERBIAN_CYRILLIC
= _gdi_
.LANGUAGE_SERBIAN_CYRILLIC
1984 LANGUAGE_SERBIAN_LATIN
= _gdi_
.LANGUAGE_SERBIAN_LATIN
1985 LANGUAGE_SERBO_CROATIAN
= _gdi_
.LANGUAGE_SERBO_CROATIAN
1986 LANGUAGE_SESOTHO
= _gdi_
.LANGUAGE_SESOTHO
1987 LANGUAGE_SETSWANA
= _gdi_
.LANGUAGE_SETSWANA
1988 LANGUAGE_SHONA
= _gdi_
.LANGUAGE_SHONA
1989 LANGUAGE_SINDHI
= _gdi_
.LANGUAGE_SINDHI
1990 LANGUAGE_SINHALESE
= _gdi_
.LANGUAGE_SINHALESE
1991 LANGUAGE_SISWATI
= _gdi_
.LANGUAGE_SISWATI
1992 LANGUAGE_SLOVAK
= _gdi_
.LANGUAGE_SLOVAK
1993 LANGUAGE_SLOVENIAN
= _gdi_
.LANGUAGE_SLOVENIAN
1994 LANGUAGE_SOMALI
= _gdi_
.LANGUAGE_SOMALI
1995 LANGUAGE_SPANISH
= _gdi_
.LANGUAGE_SPANISH
1996 LANGUAGE_SPANISH_ARGENTINA
= _gdi_
.LANGUAGE_SPANISH_ARGENTINA
1997 LANGUAGE_SPANISH_BOLIVIA
= _gdi_
.LANGUAGE_SPANISH_BOLIVIA
1998 LANGUAGE_SPANISH_CHILE
= _gdi_
.LANGUAGE_SPANISH_CHILE
1999 LANGUAGE_SPANISH_COLOMBIA
= _gdi_
.LANGUAGE_SPANISH_COLOMBIA
2000 LANGUAGE_SPANISH_COSTA_RICA
= _gdi_
.LANGUAGE_SPANISH_COSTA_RICA
2001 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi_
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
2002 LANGUAGE_SPANISH_ECUADOR
= _gdi_
.LANGUAGE_SPANISH_ECUADOR
2003 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi_
.LANGUAGE_SPANISH_EL_SALVADOR
2004 LANGUAGE_SPANISH_GUATEMALA
= _gdi_
.LANGUAGE_SPANISH_GUATEMALA
2005 LANGUAGE_SPANISH_HONDURAS
= _gdi_
.LANGUAGE_SPANISH_HONDURAS
2006 LANGUAGE_SPANISH_MEXICAN
= _gdi_
.LANGUAGE_SPANISH_MEXICAN
2007 LANGUAGE_SPANISH_MODERN
= _gdi_
.LANGUAGE_SPANISH_MODERN
2008 LANGUAGE_SPANISH_NICARAGUA
= _gdi_
.LANGUAGE_SPANISH_NICARAGUA
2009 LANGUAGE_SPANISH_PANAMA
= _gdi_
.LANGUAGE_SPANISH_PANAMA
2010 LANGUAGE_SPANISH_PARAGUAY
= _gdi_
.LANGUAGE_SPANISH_PARAGUAY
2011 LANGUAGE_SPANISH_PERU
= _gdi_
.LANGUAGE_SPANISH_PERU
2012 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi_
.LANGUAGE_SPANISH_PUERTO_RICO
2013 LANGUAGE_SPANISH_URUGUAY
= _gdi_
.LANGUAGE_SPANISH_URUGUAY
2014 LANGUAGE_SPANISH_US
= _gdi_
.LANGUAGE_SPANISH_US
2015 LANGUAGE_SPANISH_VENEZUELA
= _gdi_
.LANGUAGE_SPANISH_VENEZUELA
2016 LANGUAGE_SUNDANESE
= _gdi_
.LANGUAGE_SUNDANESE
2017 LANGUAGE_SWAHILI
= _gdi_
.LANGUAGE_SWAHILI
2018 LANGUAGE_SWEDISH
= _gdi_
.LANGUAGE_SWEDISH
2019 LANGUAGE_SWEDISH_FINLAND
= _gdi_
.LANGUAGE_SWEDISH_FINLAND
2020 LANGUAGE_TAGALOG
= _gdi_
.LANGUAGE_TAGALOG
2021 LANGUAGE_TAJIK
= _gdi_
.LANGUAGE_TAJIK
2022 LANGUAGE_TAMIL
= _gdi_
.LANGUAGE_TAMIL
2023 LANGUAGE_TATAR
= _gdi_
.LANGUAGE_TATAR
2024 LANGUAGE_TELUGU
= _gdi_
.LANGUAGE_TELUGU
2025 LANGUAGE_THAI
= _gdi_
.LANGUAGE_THAI
2026 LANGUAGE_TIBETAN
= _gdi_
.LANGUAGE_TIBETAN
2027 LANGUAGE_TIGRINYA
= _gdi_
.LANGUAGE_TIGRINYA
2028 LANGUAGE_TONGA
= _gdi_
.LANGUAGE_TONGA
2029 LANGUAGE_TSONGA
= _gdi_
.LANGUAGE_TSONGA
2030 LANGUAGE_TURKISH
= _gdi_
.LANGUAGE_TURKISH
2031 LANGUAGE_TURKMEN
= _gdi_
.LANGUAGE_TURKMEN
2032 LANGUAGE_TWI
= _gdi_
.LANGUAGE_TWI
2033 LANGUAGE_UIGHUR
= _gdi_
.LANGUAGE_UIGHUR
2034 LANGUAGE_UKRAINIAN
= _gdi_
.LANGUAGE_UKRAINIAN
2035 LANGUAGE_URDU
= _gdi_
.LANGUAGE_URDU
2036 LANGUAGE_URDU_INDIA
= _gdi_
.LANGUAGE_URDU_INDIA
2037 LANGUAGE_URDU_PAKISTAN
= _gdi_
.LANGUAGE_URDU_PAKISTAN
2038 LANGUAGE_UZBEK
= _gdi_
.LANGUAGE_UZBEK
2039 LANGUAGE_UZBEK_CYRILLIC
= _gdi_
.LANGUAGE_UZBEK_CYRILLIC
2040 LANGUAGE_UZBEK_LATIN
= _gdi_
.LANGUAGE_UZBEK_LATIN
2041 LANGUAGE_VIETNAMESE
= _gdi_
.LANGUAGE_VIETNAMESE
2042 LANGUAGE_VOLAPUK
= _gdi_
.LANGUAGE_VOLAPUK
2043 LANGUAGE_WELSH
= _gdi_
.LANGUAGE_WELSH
2044 LANGUAGE_WOLOF
= _gdi_
.LANGUAGE_WOLOF
2045 LANGUAGE_XHOSA
= _gdi_
.LANGUAGE_XHOSA
2046 LANGUAGE_YIDDISH
= _gdi_
.LANGUAGE_YIDDISH
2047 LANGUAGE_YORUBA
= _gdi_
.LANGUAGE_YORUBA
2048 LANGUAGE_ZHUANG
= _gdi_
.LANGUAGE_ZHUANG
2049 LANGUAGE_ZULU
= _gdi_
.LANGUAGE_ZULU
2050 LANGUAGE_USER_DEFINED
= _gdi_
.LANGUAGE_USER_DEFINED
2051 class LanguageInfo(object):
2052 def __init__(self
): raise RuntimeError, "No constructor defined"
2054 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2055 Language
= property(_gdi_
.LanguageInfo_Language_get
, _gdi_
.LanguageInfo_Language_set
)
2056 CanonicalName
= property(_gdi_
.LanguageInfo_CanonicalName_get
, _gdi_
.LanguageInfo_CanonicalName_set
)
2057 Description
= property(_gdi_
.LanguageInfo_Description_get
, _gdi_
.LanguageInfo_Description_set
)
2059 class LanguageInfoPtr(LanguageInfo
):
2060 def __init__(self
, this
):
2062 if not hasattr(self
,"thisown"): self
.thisown
= 0
2063 self
.__class
__ = LanguageInfo
2064 _gdi_
.LanguageInfo_swigregister(LanguageInfoPtr
)
2066 LOCALE_CAT_NUMBER
= _gdi_
.LOCALE_CAT_NUMBER
2067 LOCALE_CAT_DATE
= _gdi_
.LOCALE_CAT_DATE
2068 LOCALE_CAT_MONEY
= _gdi_
.LOCALE_CAT_MONEY
2069 LOCALE_CAT_MAX
= _gdi_
.LOCALE_CAT_MAX
2070 LOCALE_THOUSANDS_SEP
= _gdi_
.LOCALE_THOUSANDS_SEP
2071 LOCALE_DECIMAL_POINT
= _gdi_
.LOCALE_DECIMAL_POINT
2072 LOCALE_LOAD_DEFAULT
= _gdi_
.LOCALE_LOAD_DEFAULT
2073 LOCALE_CONV_ENCODING
= _gdi_
.LOCALE_CONV_ENCODING
2074 class Locale(object):
2076 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2077 def __init__(self
, *args
, **kwargs
):
2078 """__init__(self, int language=-1, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
2079 newobj
= _gdi_
.new_Locale(*args
, **kwargs
)
2080 self
.this
= newobj
.this
2083 def __del__(self
, destroy
=_gdi_
.delete_Locale
):
2086 if self
.thisown
: destroy(self
)
2089 def Init1(*args
, **kwargs
):
2091 Init1(self, String szName, String szShort=EmptyString, String szLocale=EmptyString,
2092 bool bLoadDefault=True,
2093 bool bConvertEncoding=False) -> bool
2095 return _gdi_
.Locale_Init1(*args
, **kwargs
)
2097 def Init2(*args
, **kwargs
):
2098 """Init2(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
2099 return _gdi_
.Locale_Init2(*args
, **kwargs
)
2101 def Init(self
, *_args
, **_kwargs
):
2102 if type(_args
[0]) in [type(''), type(u
'')]:
2103 val
= self
.Init1(*_args
, **_kwargs
)
2105 val
= self
.Init2(*_args
, **_kwargs
)
2108 def GetSystemLanguage(*args
, **kwargs
):
2109 """GetSystemLanguage() -> int"""
2110 return _gdi_
.Locale_GetSystemLanguage(*args
, **kwargs
)
2112 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
2113 def GetSystemEncoding(*args
, **kwargs
):
2114 """GetSystemEncoding() -> int"""
2115 return _gdi_
.Locale_GetSystemEncoding(*args
, **kwargs
)
2117 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
2118 def GetSystemEncodingName(*args
, **kwargs
):
2119 """GetSystemEncodingName() -> String"""
2120 return _gdi_
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2122 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
2123 def IsOk(*args
, **kwargs
):
2124 """IsOk(self) -> bool"""
2125 return _gdi_
.Locale_IsOk(*args
, **kwargs
)
2127 def __nonzero__(self
): return self
.IsOk()
2128 def GetLocale(*args
, **kwargs
):
2129 """GetLocale(self) -> String"""
2130 return _gdi_
.Locale_GetLocale(*args
, **kwargs
)
2132 def GetLanguage(*args
, **kwargs
):
2133 """GetLanguage(self) -> int"""
2134 return _gdi_
.Locale_GetLanguage(*args
, **kwargs
)
2136 def GetSysName(*args
, **kwargs
):
2137 """GetSysName(self) -> String"""
2138 return _gdi_
.Locale_GetSysName(*args
, **kwargs
)
2140 def GetCanonicalName(*args
, **kwargs
):
2141 """GetCanonicalName(self) -> String"""
2142 return _gdi_
.Locale_GetCanonicalName(*args
, **kwargs
)
2144 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
2145 """AddCatalogLookupPathPrefix(String prefix)"""
2146 return _gdi_
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2148 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
2149 def AddCatalog(*args
, **kwargs
):
2150 """AddCatalog(self, String szDomain) -> bool"""
2151 return _gdi_
.Locale_AddCatalog(*args
, **kwargs
)
2153 def IsLoaded(*args
, **kwargs
):
2154 """IsLoaded(self, String szDomain) -> bool"""
2155 return _gdi_
.Locale_IsLoaded(*args
, **kwargs
)
2157 def GetLanguageInfo(*args
, **kwargs
):
2158 """GetLanguageInfo(int lang) -> LanguageInfo"""
2159 return _gdi_
.Locale_GetLanguageInfo(*args
, **kwargs
)
2161 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
2162 def GetLanguageName(*args
, **kwargs
):
2163 """GetLanguageName(int lang) -> String"""
2164 return _gdi_
.Locale_GetLanguageName(*args
, **kwargs
)
2166 GetLanguageName
= staticmethod(GetLanguageName
)
2167 def FindLanguageInfo(*args
, **kwargs
):
2168 """FindLanguageInfo(String locale) -> LanguageInfo"""
2169 return _gdi_
.Locale_FindLanguageInfo(*args
, **kwargs
)
2171 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
2172 def AddLanguage(*args
, **kwargs
):
2173 """AddLanguage(LanguageInfo info)"""
2174 return _gdi_
.Locale_AddLanguage(*args
, **kwargs
)
2176 AddLanguage
= staticmethod(AddLanguage
)
2177 def GetString(*args
, **kwargs
):
2178 """GetString(self, String szOrigString, String szDomain=EmptyString) -> String"""
2179 return _gdi_
.Locale_GetString(*args
, **kwargs
)
2181 def GetName(*args
, **kwargs
):
2182 """GetName(self) -> String"""
2183 return _gdi_
.Locale_GetName(*args
, **kwargs
)
2186 class LocalePtr(Locale
):
2187 def __init__(self
, this
):
2189 if not hasattr(self
,"thisown"): self
.thisown
= 0
2190 self
.__class
__ = Locale
2191 _gdi_
.Locale_swigregister(LocalePtr
)
2193 def Locale_GetSystemLanguage(*args
, **kwargs
):
2194 """Locale_GetSystemLanguage() -> int"""
2195 return _gdi_
.Locale_GetSystemLanguage(*args
, **kwargs
)
2197 def Locale_GetSystemEncoding(*args
, **kwargs
):
2198 """Locale_GetSystemEncoding() -> int"""
2199 return _gdi_
.Locale_GetSystemEncoding(*args
, **kwargs
)
2201 def Locale_GetSystemEncodingName(*args
, **kwargs
):
2202 """Locale_GetSystemEncodingName() -> String"""
2203 return _gdi_
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2205 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
2206 """Locale_AddCatalogLookupPathPrefix(String prefix)"""
2207 return _gdi_
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2209 def Locale_GetLanguageInfo(*args
, **kwargs
):
2210 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
2211 return _gdi_
.Locale_GetLanguageInfo(*args
, **kwargs
)
2213 def Locale_GetLanguageName(*args
, **kwargs
):
2214 """Locale_GetLanguageName(int lang) -> String"""
2215 return _gdi_
.Locale_GetLanguageName(*args
, **kwargs
)
2217 def Locale_FindLanguageInfo(*args
, **kwargs
):
2218 """Locale_FindLanguageInfo(String locale) -> LanguageInfo"""
2219 return _gdi_
.Locale_FindLanguageInfo(*args
, **kwargs
)
2221 def Locale_AddLanguage(*args
, **kwargs
):
2222 """Locale_AddLanguage(LanguageInfo info)"""
2223 return _gdi_
.Locale_AddLanguage(*args
, **kwargs
)
2226 def GetLocale(*args
, **kwargs
):
2227 """GetLocale() -> Locale"""
2228 return _gdi_
.GetLocale(*args
, **kwargs
)
2229 #---------------------------------------------------------------------------
2231 CONVERT_STRICT
= _gdi_
.CONVERT_STRICT
2232 CONVERT_SUBSTITUTE
= _gdi_
.CONVERT_SUBSTITUTE
2233 PLATFORM_CURRENT
= _gdi_
.PLATFORM_CURRENT
2234 PLATFORM_UNIX
= _gdi_
.PLATFORM_UNIX
2235 PLATFORM_WINDOWS
= _gdi_
.PLATFORM_WINDOWS
2236 PLATFORM_OS2
= _gdi_
.PLATFORM_OS2
2237 PLATFORM_MAC
= _gdi_
.PLATFORM_MAC
2238 class EncodingConverter(_core
.Object
):
2240 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2241 def __init__(self
, *args
, **kwargs
):
2242 """__init__(self) -> EncodingConverter"""
2243 newobj
= _gdi_
.new_EncodingConverter(*args
, **kwargs
)
2244 self
.this
= newobj
.this
2247 def __del__(self
, destroy
=_gdi_
.delete_EncodingConverter
):
2250 if self
.thisown
: destroy(self
)
2253 def Init(*args
, **kwargs
):
2254 """Init(self, int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool"""
2255 return _gdi_
.EncodingConverter_Init(*args
, **kwargs
)
2257 def Convert(*args
, **kwargs
):
2258 """Convert(self, String input) -> String"""
2259 return _gdi_
.EncodingConverter_Convert(*args
, **kwargs
)
2261 def GetPlatformEquivalents(*args
, **kwargs
):
2262 """GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2263 return _gdi_
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2265 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2266 def GetAllEquivalents(*args
, **kwargs
):
2267 """GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2268 return _gdi_
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2270 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2271 def CanConvert(*args
, **kwargs
):
2272 """CanConvert(int encIn, int encOut) -> bool"""
2273 return _gdi_
.EncodingConverter_CanConvert(*args
, **kwargs
)
2275 CanConvert
= staticmethod(CanConvert
)
2276 def __nonzero__(self
): return self
.IsOk()
2278 class EncodingConverterPtr(EncodingConverter
):
2279 def __init__(self
, this
):
2281 if not hasattr(self
,"thisown"): self
.thisown
= 0
2282 self
.__class
__ = EncodingConverter
2283 _gdi_
.EncodingConverter_swigregister(EncodingConverterPtr
)
2285 def GetTranslation(*args
):
2287 GetTranslation(String str) -> String
2288 GetTranslation(String str, String strPlural, size_t n) -> String
2290 return _gdi_
.GetTranslation(*args
)
2292 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2293 """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2294 return _gdi_
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2296 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2297 """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2298 return _gdi_
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2300 def EncodingConverter_CanConvert(*args
, **kwargs
):
2301 """EncodingConverter_CanConvert(int encIn, int encOut) -> bool"""
2302 return _gdi_
.EncodingConverter_CanConvert(*args
, **kwargs
)
2304 #----------------------------------------------------------------------------
2305 # wxGTK sets the locale when initialized. Doing this at the Python
2306 # level should set it up to match what GTK is doing at the C level.
2307 if wx
.Platform
== "__WXGTK__":
2310 locale
.setlocale(locale
.LC_ALL
, "")
2314 # On MSW add the directory where the wxWindows catalogs were installed
2315 # to the default catalog path.
2316 if wx
.Platform
== "__WXMSW__":
2318 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2319 Locale_AddCatalogLookupPathPrefix(localedir
)
2322 #----------------------------------------------------------------------------
2324 #---------------------------------------------------------------------------
2326 class DC(_core
.Object
):
2327 def __init__(self
): raise RuntimeError, "No constructor defined"
2329 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2330 def __del__(self
, destroy
=_gdi_
.delete_DC
):
2333 if self
.thisown
: destroy(self
)
2336 def BeginDrawing(*args
, **kwargs
):
2337 """BeginDrawing(self)"""
2338 return _gdi_
.DC_BeginDrawing(*args
, **kwargs
)
2340 def EndDrawing(*args
, **kwargs
):
2341 """EndDrawing(self)"""
2342 return _gdi_
.DC_EndDrawing(*args
, **kwargs
)
2344 def FloodFill(*args
, **kwargs
):
2345 """FloodFill(self, int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2346 return _gdi_
.DC_FloodFill(*args
, **kwargs
)
2348 def FloodFillPoint(*args
, **kwargs
):
2349 """FloodFillPoint(self, Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2350 return _gdi_
.DC_FloodFillPoint(*args
, **kwargs
)
2352 def GetPixel(*args
, **kwargs
):
2353 """GetPixel(self, int x, int y) -> Colour"""
2354 return _gdi_
.DC_GetPixel(*args
, **kwargs
)
2356 def GetPixelPoint(*args
, **kwargs
):
2357 """GetPixelPoint(self, Point pt) -> Colour"""
2358 return _gdi_
.DC_GetPixelPoint(*args
, **kwargs
)
2360 def DrawLine(*args
, **kwargs
):
2361 """DrawLine(self, int x1, int y1, int x2, int y2)"""
2362 return _gdi_
.DC_DrawLine(*args
, **kwargs
)
2364 def DrawLinePoint(*args
, **kwargs
):
2365 """DrawLinePoint(self, Point pt1, Point pt2)"""
2366 return _gdi_
.DC_DrawLinePoint(*args
, **kwargs
)
2368 def CrossHair(*args
, **kwargs
):
2369 """CrossHair(self, int x, int y)"""
2370 return _gdi_
.DC_CrossHair(*args
, **kwargs
)
2372 def CrossHairPoint(*args
, **kwargs
):
2373 """CrossHairPoint(self, Point pt)"""
2374 return _gdi_
.DC_CrossHairPoint(*args
, **kwargs
)
2376 def DrawArc(*args
, **kwargs
):
2377 """DrawArc(self, int x1, int y1, int x2, int y2, int xc, int yc)"""
2378 return _gdi_
.DC_DrawArc(*args
, **kwargs
)
2380 def DrawArcPoint(*args
, **kwargs
):
2381 """DrawArcPoint(self, Point pt1, Point pt2, Point centre)"""
2382 return _gdi_
.DC_DrawArcPoint(*args
, **kwargs
)
2384 def DrawCheckMark(*args
, **kwargs
):
2385 """DrawCheckMark(self, int x, int y, int width, int height)"""
2386 return _gdi_
.DC_DrawCheckMark(*args
, **kwargs
)
2388 def DrawCheckMarkRect(*args
, **kwargs
):
2389 """DrawCheckMarkRect(self, Rect rect)"""
2390 return _gdi_
.DC_DrawCheckMarkRect(*args
, **kwargs
)
2392 def DrawEllipticArc(*args
, **kwargs
):
2393 """DrawEllipticArc(self, int x, int y, int w, int h, double sa, double ea)"""
2394 return _gdi_
.DC_DrawEllipticArc(*args
, **kwargs
)
2396 def DrawEllipticArcPointSize(*args
, **kwargs
):
2397 """DrawEllipticArcPointSize(self, Point pt, Size sz, double sa, double ea)"""
2398 return _gdi_
.DC_DrawEllipticArcPointSize(*args
, **kwargs
)
2400 def DrawPoint(*args
, **kwargs
):
2401 """DrawPoint(self, int x, int y)"""
2402 return _gdi_
.DC_DrawPoint(*args
, **kwargs
)
2404 def DrawPointPoint(*args
, **kwargs
):
2405 """DrawPointPoint(self, Point pt)"""
2406 return _gdi_
.DC_DrawPointPoint(*args
, **kwargs
)
2408 def DrawRectangle(*args
, **kwargs
):
2409 """DrawRectangle(self, int x, int y, int width, int height)"""
2410 return _gdi_
.DC_DrawRectangle(*args
, **kwargs
)
2412 def DrawRectangleRect(*args
, **kwargs
):
2413 """DrawRectangleRect(self, Rect rect)"""
2414 return _gdi_
.DC_DrawRectangleRect(*args
, **kwargs
)
2416 def DrawRectanglePointSize(*args
, **kwargs
):
2417 """DrawRectanglePointSize(self, Point pt, Size sz)"""
2418 return _gdi_
.DC_DrawRectanglePointSize(*args
, **kwargs
)
2420 def DrawRoundedRectangle(*args
, **kwargs
):
2421 """DrawRoundedRectangle(self, int x, int y, int width, int height, double radius)"""
2422 return _gdi_
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2424 def DrawRoundedRectangleRect(*args
, **kwargs
):
2425 """DrawRoundedRectangleRect(self, Rect r, double radius)"""
2426 return _gdi_
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2428 def DrawRoundedRectanglePointSize(*args
, **kwargs
):
2429 """DrawRoundedRectanglePointSize(self, Point pt, Size sz, double radius)"""
2430 return _gdi_
.DC_DrawRoundedRectanglePointSize(*args
, **kwargs
)
2432 def DrawCircle(*args
, **kwargs
):
2433 """DrawCircle(self, int x, int y, int radius)"""
2434 return _gdi_
.DC_DrawCircle(*args
, **kwargs
)
2436 def DrawCirclePoint(*args
, **kwargs
):
2437 """DrawCirclePoint(self, Point pt, int radius)"""
2438 return _gdi_
.DC_DrawCirclePoint(*args
, **kwargs
)
2440 def DrawEllipse(*args
, **kwargs
):
2441 """DrawEllipse(self, int x, int y, int width, int height)"""
2442 return _gdi_
.DC_DrawEllipse(*args
, **kwargs
)
2444 def DrawEllipseRect(*args
, **kwargs
):
2445 """DrawEllipseRect(self, Rect rect)"""
2446 return _gdi_
.DC_DrawEllipseRect(*args
, **kwargs
)
2448 def DrawEllipsePointSize(*args
, **kwargs
):
2449 """DrawEllipsePointSize(self, Point pt, Size sz)"""
2450 return _gdi_
.DC_DrawEllipsePointSize(*args
, **kwargs
)
2452 def DrawIcon(*args
, **kwargs
):
2453 """DrawIcon(self, Icon icon, int x, int y)"""
2454 return _gdi_
.DC_DrawIcon(*args
, **kwargs
)
2456 def DrawIconPoint(*args
, **kwargs
):
2457 """DrawIconPoint(self, Icon icon, Point pt)"""
2458 return _gdi_
.DC_DrawIconPoint(*args
, **kwargs
)
2460 def DrawBitmap(*args
, **kwargs
):
2461 """DrawBitmap(self, Bitmap bmp, int x, int y, bool useMask=False)"""
2462 return _gdi_
.DC_DrawBitmap(*args
, **kwargs
)
2464 def DrawBitmapPoint(*args
, **kwargs
):
2465 """DrawBitmapPoint(self, Bitmap bmp, Point pt, bool useMask=False)"""
2466 return _gdi_
.DC_DrawBitmapPoint(*args
, **kwargs
)
2468 def DrawText(*args
, **kwargs
):
2469 """DrawText(self, String text, int x, int y)"""
2470 return _gdi_
.DC_DrawText(*args
, **kwargs
)
2472 def DrawTextPoint(*args
, **kwargs
):
2473 """DrawTextPoint(self, String text, Point pt)"""
2474 return _gdi_
.DC_DrawTextPoint(*args
, **kwargs
)
2476 def DrawRotatedText(*args
, **kwargs
):
2477 """DrawRotatedText(self, String text, int x, int y, double angle)"""
2478 return _gdi_
.DC_DrawRotatedText(*args
, **kwargs
)
2480 def DrawRotatedTextPoint(*args
, **kwargs
):
2481 """DrawRotatedTextPoint(self, String text, Point pt, double angle)"""
2482 return _gdi_
.DC_DrawRotatedTextPoint(*args
, **kwargs
)
2484 def Blit(*args
, **kwargs
):
2486 Blit(self, int xdest, int ydest, int width, int height, DC source,
2487 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2488 int xsrcMask=-1, int ysrcMask=-1) -> bool
2490 return _gdi_
.DC_Blit(*args
, **kwargs
)
2492 def BlitPointSize(*args
, **kwargs
):
2494 BlitPointSize(self, Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2495 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
2497 return _gdi_
.DC_BlitPointSize(*args
, **kwargs
)
2499 def SetClippingRegion(*args
, **kwargs
):
2500 """SetClippingRegion(self, int x, int y, int width, int height)"""
2501 return _gdi_
.DC_SetClippingRegion(*args
, **kwargs
)
2503 def SetClippingRegionPointSize(*args
, **kwargs
):
2504 """SetClippingRegionPointSize(self, Point pt, Size sz)"""
2505 return _gdi_
.DC_SetClippingRegionPointSize(*args
, **kwargs
)
2507 def SetClippingRegionAsRegion(*args
, **kwargs
):
2508 """SetClippingRegionAsRegion(self, Region region)"""
2509 return _gdi_
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2511 def SetClippingRect(*args
, **kwargs
):
2512 """SetClippingRect(self, Rect rect)"""
2513 return _gdi_
.DC_SetClippingRect(*args
, **kwargs
)
2515 def DrawLines(*args
, **kwargs
):
2516 """DrawLines(self, int points, Point points_array, int xoffset=0, int yoffset=0)"""
2517 return _gdi_
.DC_DrawLines(*args
, **kwargs
)
2519 def DrawPolygon(*args
, **kwargs
):
2521 DrawPolygon(self, int points, Point points_array, int xoffset=0, int yoffset=0,
2522 int fillStyle=ODDEVEN_RULE)
2524 return _gdi_
.DC_DrawPolygon(*args
, **kwargs
)
2526 def DrawLabel(*args
, **kwargs
):
2528 DrawLabel(self, String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2531 return _gdi_
.DC_DrawLabel(*args
, **kwargs
)
2533 def DrawImageLabel(*args
, **kwargs
):
2535 DrawImageLabel(self, String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2536 int indexAccel=-1) -> Rect
2538 return _gdi_
.DC_DrawImageLabel(*args
, **kwargs
)
2540 def DrawSpline(*args
, **kwargs
):
2541 """DrawSpline(self, int points, Point points_array)"""
2542 return _gdi_
.DC_DrawSpline(*args
, **kwargs
)
2544 def Clear(*args
, **kwargs
):
2546 return _gdi_
.DC_Clear(*args
, **kwargs
)
2548 def StartDoc(*args
, **kwargs
):
2549 """StartDoc(self, String message) -> bool"""
2550 return _gdi_
.DC_StartDoc(*args
, **kwargs
)
2552 def EndDoc(*args
, **kwargs
):
2554 return _gdi_
.DC_EndDoc(*args
, **kwargs
)
2556 def StartPage(*args
, **kwargs
):
2557 """StartPage(self)"""
2558 return _gdi_
.DC_StartPage(*args
, **kwargs
)
2560 def EndPage(*args
, **kwargs
):
2562 return _gdi_
.DC_EndPage(*args
, **kwargs
)
2564 def SetFont(*args
, **kwargs
):
2565 """SetFont(self, Font font)"""
2566 return _gdi_
.DC_SetFont(*args
, **kwargs
)
2568 def SetPen(*args
, **kwargs
):
2569 """SetPen(self, Pen pen)"""
2570 return _gdi_
.DC_SetPen(*args
, **kwargs
)
2572 def SetBrush(*args
, **kwargs
):
2573 """SetBrush(self, Brush brush)"""
2574 return _gdi_
.DC_SetBrush(*args
, **kwargs
)
2576 def SetBackground(*args
, **kwargs
):
2577 """SetBackground(self, Brush brush)"""
2578 return _gdi_
.DC_SetBackground(*args
, **kwargs
)
2580 def SetBackgroundMode(*args
, **kwargs
):
2581 """SetBackgroundMode(self, int mode)"""
2582 return _gdi_
.DC_SetBackgroundMode(*args
, **kwargs
)
2584 def SetPalette(*args
, **kwargs
):
2585 """SetPalette(self, Palette palette)"""
2586 return _gdi_
.DC_SetPalette(*args
, **kwargs
)
2588 def DestroyClippingRegion(*args
, **kwargs
):
2589 """DestroyClippingRegion(self)"""
2590 return _gdi_
.DC_DestroyClippingRegion(*args
, **kwargs
)
2592 def GetClippingBox(*args
, **kwargs
):
2593 """GetClippingBox() -> (x, y, width, height)"""
2594 return _gdi_
.DC_GetClippingBox(*args
, **kwargs
)
2596 def GetClippingRect(*args
, **kwargs
):
2597 """GetClippingRect(self) -> Rect"""
2598 return _gdi_
.DC_GetClippingRect(*args
, **kwargs
)
2600 def GetCharHeight(*args
, **kwargs
):
2601 """GetCharHeight(self) -> int"""
2602 return _gdi_
.DC_GetCharHeight(*args
, **kwargs
)
2604 def GetCharWidth(*args
, **kwargs
):
2605 """GetCharWidth(self) -> int"""
2606 return _gdi_
.DC_GetCharWidth(*args
, **kwargs
)
2608 def GetTextExtent(*args
, **kwargs
):
2609 """GetTextExtent(wxString string) -> (width, height)"""
2610 return _gdi_
.DC_GetTextExtent(*args
, **kwargs
)
2612 def GetFullTextExtent(*args
, **kwargs
):
2614 GetFullTextExtent(wxString string, Font font=None) ->
2615 (width, height, descent, externalLeading)
2617 Get the width, height, decent and leading of the text using the
2618 current or specified font. Only works for single line strings.
2620 return _gdi_
.DC_GetFullTextExtent(*args
, **kwargs
)
2622 def GetMultiLineTextExtent(*args
, **kwargs
):
2624 GetMultiLineTextExtent(wxString string, Font font=None) ->
2625 (width, height, descent, externalLeading)
2627 return _gdi_
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2629 def GetPartialTextExtents(*args
, **kwargs
):
2630 """GetPartialTextExtents(self, String text) -> wxArrayInt"""
2631 return _gdi_
.DC_GetPartialTextExtents(*args
, **kwargs
)
2633 def GetSize(*args
, **kwargs
):
2635 GetSize(self) -> Size
2637 Get the DC size in device units.
2639 return _gdi_
.DC_GetSize(*args
, **kwargs
)
2641 def GetSizeTuple(*args
, **kwargs
):
2643 GetSizeTuple() -> (width, height)
2645 Get the DC size in device units.
2647 return _gdi_
.DC_GetSizeTuple(*args
, **kwargs
)
2649 def GetSizeMM(*args
, **kwargs
):
2651 GetSizeMM(self) -> Size
2653 Get the DC size in milimeters.
2655 return _gdi_
.DC_GetSizeMM(*args
, **kwargs
)
2657 def GetSizeMMTuple(*args
, **kwargs
):
2659 GetSizeMMTuple() -> (width, height)
2661 Get the DC size in milimeters.
2663 return _gdi_
.DC_GetSizeMMTuple(*args
, **kwargs
)
2665 def DeviceToLogicalX(*args
, **kwargs
):
2666 """DeviceToLogicalX(self, int x) -> int"""
2667 return _gdi_
.DC_DeviceToLogicalX(*args
, **kwargs
)
2669 def DeviceToLogicalY(*args
, **kwargs
):
2670 """DeviceToLogicalY(self, int y) -> int"""
2671 return _gdi_
.DC_DeviceToLogicalY(*args
, **kwargs
)
2673 def DeviceToLogicalXRel(*args
, **kwargs
):
2674 """DeviceToLogicalXRel(self, int x) -> int"""
2675 return _gdi_
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2677 def DeviceToLogicalYRel(*args
, **kwargs
):
2678 """DeviceToLogicalYRel(self, int y) -> int"""
2679 return _gdi_
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2681 def LogicalToDeviceX(*args
, **kwargs
):
2682 """LogicalToDeviceX(self, int x) -> int"""
2683 return _gdi_
.DC_LogicalToDeviceX(*args
, **kwargs
)
2685 def LogicalToDeviceY(*args
, **kwargs
):
2686 """LogicalToDeviceY(self, int y) -> int"""
2687 return _gdi_
.DC_LogicalToDeviceY(*args
, **kwargs
)
2689 def LogicalToDeviceXRel(*args
, **kwargs
):
2690 """LogicalToDeviceXRel(self, int x) -> int"""
2691 return _gdi_
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2693 def LogicalToDeviceYRel(*args
, **kwargs
):
2694 """LogicalToDeviceYRel(self, int y) -> int"""
2695 return _gdi_
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2697 def CanDrawBitmap(*args
, **kwargs
):
2698 """CanDrawBitmap(self) -> bool"""
2699 return _gdi_
.DC_CanDrawBitmap(*args
, **kwargs
)
2701 def CanGetTextExtent(*args
, **kwargs
):
2702 """CanGetTextExtent(self) -> bool"""
2703 return _gdi_
.DC_CanGetTextExtent(*args
, **kwargs
)
2705 def GetDepth(*args
, **kwargs
):
2706 """GetDepth(self) -> int"""
2707 return _gdi_
.DC_GetDepth(*args
, **kwargs
)
2709 def GetPPI(*args
, **kwargs
):
2710 """GetPPI(self) -> Size"""
2711 return _gdi_
.DC_GetPPI(*args
, **kwargs
)
2713 def Ok(*args
, **kwargs
):
2714 """Ok(self) -> bool"""
2715 return _gdi_
.DC_Ok(*args
, **kwargs
)
2717 def GetBackgroundMode(*args
, **kwargs
):
2718 """GetBackgroundMode(self) -> int"""
2719 return _gdi_
.DC_GetBackgroundMode(*args
, **kwargs
)
2721 def GetBackground(*args
, **kwargs
):
2722 """GetBackground(self) -> Brush"""
2723 return _gdi_
.DC_GetBackground(*args
, **kwargs
)
2725 def GetBrush(*args
, **kwargs
):
2726 """GetBrush(self) -> Brush"""
2727 return _gdi_
.DC_GetBrush(*args
, **kwargs
)
2729 def GetFont(*args
, **kwargs
):
2730 """GetFont(self) -> Font"""
2731 return _gdi_
.DC_GetFont(*args
, **kwargs
)
2733 def GetPen(*args
, **kwargs
):
2734 """GetPen(self) -> Pen"""
2735 return _gdi_
.DC_GetPen(*args
, **kwargs
)
2737 def GetTextBackground(*args
, **kwargs
):
2738 """GetTextBackground(self) -> Colour"""
2739 return _gdi_
.DC_GetTextBackground(*args
, **kwargs
)
2741 def GetTextForeground(*args
, **kwargs
):
2742 """GetTextForeground(self) -> Colour"""
2743 return _gdi_
.DC_GetTextForeground(*args
, **kwargs
)
2745 def SetTextForeground(*args
, **kwargs
):
2746 """SetTextForeground(self, Colour colour)"""
2747 return _gdi_
.DC_SetTextForeground(*args
, **kwargs
)
2749 def SetTextBackground(*args
, **kwargs
):
2750 """SetTextBackground(self, Colour colour)"""
2751 return _gdi_
.DC_SetTextBackground(*args
, **kwargs
)
2753 def GetMapMode(*args
, **kwargs
):
2754 """GetMapMode(self) -> int"""
2755 return _gdi_
.DC_GetMapMode(*args
, **kwargs
)
2757 def SetMapMode(*args
, **kwargs
):
2758 """SetMapMode(self, int mode)"""
2759 return _gdi_
.DC_SetMapMode(*args
, **kwargs
)
2761 def GetUserScale(*args
, **kwargs
):
2762 """GetUserScale() -> (xScale, yScale)"""
2763 return _gdi_
.DC_GetUserScale(*args
, **kwargs
)
2765 def SetUserScale(*args
, **kwargs
):
2766 """SetUserScale(self, double x, double y)"""
2767 return _gdi_
.DC_SetUserScale(*args
, **kwargs
)
2769 def GetLogicalScale(*args
, **kwargs
):
2770 """GetLogicalScale() -> (xScale, yScale)"""
2771 return _gdi_
.DC_GetLogicalScale(*args
, **kwargs
)
2773 def SetLogicalScale(*args
, **kwargs
):
2774 """SetLogicalScale(self, double x, double y)"""
2775 return _gdi_
.DC_SetLogicalScale(*args
, **kwargs
)
2777 def GetLogicalOrigin(*args
, **kwargs
):
2778 """GetLogicalOrigin(self) -> Point"""
2779 return _gdi_
.DC_GetLogicalOrigin(*args
, **kwargs
)
2781 def GetLogicalOriginTuple(*args
, **kwargs
):
2782 """GetLogicalOriginTuple() -> (x,y)"""
2783 return _gdi_
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2785 def SetLogicalOrigin(*args
, **kwargs
):
2786 """SetLogicalOrigin(self, int x, int y)"""
2787 return _gdi_
.DC_SetLogicalOrigin(*args
, **kwargs
)
2789 def SetLogicalOriginPoint(*args
, **kwargs
):
2790 """SetLogicalOriginPoint(self, Point point)"""
2791 return _gdi_
.DC_SetLogicalOriginPoint(*args
, **kwargs
)
2793 def GetDeviceOrigin(*args
, **kwargs
):
2794 """GetDeviceOrigin(self) -> Point"""
2795 return _gdi_
.DC_GetDeviceOrigin(*args
, **kwargs
)
2797 def GetDeviceOriginTuple(*args
, **kwargs
):
2798 """GetDeviceOriginTuple() -> (x,y)"""
2799 return _gdi_
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2801 def SetDeviceOrigin(*args
, **kwargs
):
2802 """SetDeviceOrigin(self, int x, int y)"""
2803 return _gdi_
.DC_SetDeviceOrigin(*args
, **kwargs
)
2805 def SetDeviceOriginPoint(*args
, **kwargs
):
2806 """SetDeviceOriginPoint(self, Point point)"""
2807 return _gdi_
.DC_SetDeviceOriginPoint(*args
, **kwargs
)
2809 def SetAxisOrientation(*args
, **kwargs
):
2810 """SetAxisOrientation(self, bool xLeftRight, bool yBottomUp)"""
2811 return _gdi_
.DC_SetAxisOrientation(*args
, **kwargs
)
2813 def GetLogicalFunction(*args
, **kwargs
):
2814 """GetLogicalFunction(self) -> int"""
2815 return _gdi_
.DC_GetLogicalFunction(*args
, **kwargs
)
2817 def SetLogicalFunction(*args
, **kwargs
):
2818 """SetLogicalFunction(self, int function)"""
2819 return _gdi_
.DC_SetLogicalFunction(*args
, **kwargs
)
2821 def SetOptimization(*args
, **kwargs
):
2822 """SetOptimization(self, bool opt)"""
2823 return _gdi_
.DC_SetOptimization(*args
, **kwargs
)
2825 def GetOptimization(*args
, **kwargs
):
2826 """GetOptimization(self) -> bool"""
2827 return _gdi_
.DC_GetOptimization(*args
, **kwargs
)
2829 def CalcBoundingBox(*args
, **kwargs
):
2830 """CalcBoundingBox(self, int x, int y)"""
2831 return _gdi_
.DC_CalcBoundingBox(*args
, **kwargs
)
2833 def CalcBoundingBoxPoint(*args
, **kwargs
):
2834 """CalcBoundingBoxPoint(self, Point point)"""
2835 return _gdi_
.DC_CalcBoundingBoxPoint(*args
, **kwargs
)
2837 def ResetBoundingBox(*args
, **kwargs
):
2838 """ResetBoundingBox(self)"""
2839 return _gdi_
.DC_ResetBoundingBox(*args
, **kwargs
)
2841 def MinX(*args
, **kwargs
):
2842 """MinX(self) -> int"""
2843 return _gdi_
.DC_MinX(*args
, **kwargs
)
2845 def MaxX(*args
, **kwargs
):
2846 """MaxX(self) -> int"""
2847 return _gdi_
.DC_MaxX(*args
, **kwargs
)
2849 def MinY(*args
, **kwargs
):
2850 """MinY(self) -> int"""
2851 return _gdi_
.DC_MinY(*args
, **kwargs
)
2853 def MaxY(*args
, **kwargs
):
2854 """MaxY(self) -> int"""
2855 return _gdi_
.DC_MaxY(*args
, **kwargs
)
2857 def GetBoundingBox(*args
, **kwargs
):
2858 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2859 return _gdi_
.DC_GetBoundingBox(*args
, **kwargs
)
2861 def __nonzero__(self
): return self
.Ok()
2862 def _DrawPointList(*args
, **kwargs
):
2863 """_DrawPointList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2864 return _gdi_
.DC__DrawPointList(*args
, **kwargs
)
2866 def _DrawLineList(*args
, **kwargs
):
2867 """_DrawLineList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2868 return _gdi_
.DC__DrawLineList(*args
, **kwargs
)
2870 def _DrawRectangleList(*args
, **kwargs
):
2871 """_DrawRectangleList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2872 return _gdi_
.DC__DrawRectangleList(*args
, **kwargs
)
2874 def _DrawEllipseList(*args
, **kwargs
):
2875 """_DrawEllipseList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2876 return _gdi_
.DC__DrawEllipseList(*args
, **kwargs
)
2878 def _DrawPolygonList(*args
, **kwargs
):
2879 """_DrawPolygonList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2880 return _gdi_
.DC__DrawPolygonList(*args
, **kwargs
)
2882 def _DrawTextList(*args
, **kwargs
):
2884 _DrawTextList(self, PyObject textList, PyObject pyPoints, PyObject foregroundList,
2885 PyObject backgroundList) -> PyObject
2887 return _gdi_
.DC__DrawTextList(*args
, **kwargs
)
2889 def DrawPointList(self
, points
, pens
=None):
2892 elif isinstance(pens
, wx
.Pen
):
2894 elif len(pens
) != len(points
):
2895 raise ValueError('points and pens must have same length')
2896 return self
._DrawPointList
(points
, pens
, [])
2899 def DrawLineList(self
, lines
, pens
=None):
2902 elif isinstance(pens
, wx
.Pen
):
2904 elif len(pens
) != len(lines
):
2905 raise ValueError('lines and pens must have same length')
2906 return self
._DrawLineList
(lines
, pens
, [])
2909 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2912 elif isinstance(pens
, wx
.Pen
):
2914 elif len(pens
) != len(rectangles
):
2915 raise ValueError('rectangles and pens must have same length')
2918 elif isinstance(brushes
, wx
.Brush
):
2920 elif len(brushes
) != len(rectangles
):
2921 raise ValueError('rectangles and brushes must have same length')
2922 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2925 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2928 elif isinstance(pens
, wx
.Pen
):
2930 elif len(pens
) != len(ellipses
):
2931 raise ValueError('ellipses and pens must have same length')
2934 elif isinstance(brushes
, wx
.Brush
):
2936 elif len(brushes
) != len(ellipses
):
2937 raise ValueError('ellipses and brushes must have same length')
2938 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2941 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2942 ## Note: This does not currently support fill style or offset
2943 ## you can always use the non-List version if need be.
2946 elif isinstance(pens
, wx
.Pen
):
2948 elif len(pens
) != len(polygons
):
2949 raise ValueError('polygons and pens must have same length')
2952 elif isinstance(brushes
, wx
.Brush
):
2954 elif len(brushes
) != len(polygons
):
2955 raise ValueError('polygons and brushes must have same length')
2956 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2959 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2960 ## NOTE: this does not currently support changing the font
2961 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
2962 ## If you want backgounds to do anything.
2963 if type(textList
) == type(''):
2964 textList
= [textList
]
2965 elif len(textList
) != len(coords
):
2966 raise ValueError('textlist and coords must have same length')
2967 if foregrounds
is None:
2969 elif isinstance(foregrounds
, wx
.Colour
):
2970 foregrounds
= [foregrounds
]
2971 elif len(foregrounds
) != len(coords
):
2972 raise ValueError('foregrounds and coords must have same length')
2973 if backgrounds
is None:
2975 elif isinstance(backgrounds
, wx
.Colour
):
2976 backgrounds
= [backgrounds
]
2977 elif len(backgrounds
) != len(coords
):
2978 raise ValueError('backgrounds and coords must have same length')
2979 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2983 def __init__(self
, this
):
2985 if not hasattr(self
,"thisown"): self
.thisown
= 0
2987 _gdi_
.DC_swigregister(DCPtr
)
2989 #---------------------------------------------------------------------------
2993 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2994 def __init__(self
, *args
, **kwargs
):
2995 """__init__(self) -> MemoryDC"""
2996 newobj
= _gdi_
.new_MemoryDC(*args
, **kwargs
)
2997 self
.this
= newobj
.this
3000 def SelectObject(*args
, **kwargs
):
3001 """SelectObject(self, Bitmap bitmap)"""
3002 return _gdi_
.MemoryDC_SelectObject(*args
, **kwargs
)
3005 class MemoryDCPtr(MemoryDC
):
3006 def __init__(self
, this
):
3008 if not hasattr(self
,"thisown"): self
.thisown
= 0
3009 self
.__class
__ = MemoryDC
3010 _gdi_
.MemoryDC_swigregister(MemoryDCPtr
)
3012 def MemoryDCFromDC(*args
, **kwargs
):
3013 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
3014 val
= _gdi_
.new_MemoryDCFromDC(*args
, **kwargs
)
3018 #---------------------------------------------------------------------------
3020 class BufferedDC(MemoryDC
):
3022 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3023 def __init__(self
, *args
):
3025 __init__(self, DC dc, Bitmap buffer) -> BufferedDC
3026 __init__(self, DC dc, Size area) -> BufferedDC
3028 newobj
= _gdi_
.new_BufferedDC(*args
)
3029 self
.this
= newobj
.this
3032 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
3034 def __del__(self
, destroy
=_gdi_
.delete_BufferedDC
):
3037 if self
.thisown
: destroy(self
)
3040 def UnMask(*args
, **kwargs
):
3042 return _gdi_
.BufferedDC_UnMask(*args
, **kwargs
)
3045 class BufferedDCPtr(BufferedDC
):
3046 def __init__(self
, this
):
3048 if not hasattr(self
,"thisown"): self
.thisown
= 0
3049 self
.__class
__ = BufferedDC
3050 _gdi_
.BufferedDC_swigregister(BufferedDCPtr
)
3052 def BufferedDCInternalBuffer(*args
):
3053 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
3054 val
= _gdi_
.new_BufferedDCInternalBuffer(*args
)
3056 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
3059 class BufferedPaintDC(BufferedDC
):
3061 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3062 def __init__(self
, *args
, **kwargs
):
3063 """__init__(self, Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
3064 newobj
= _gdi_
.new_BufferedPaintDC(*args
, **kwargs
)
3065 self
.this
= newobj
.this
3069 class BufferedPaintDCPtr(BufferedPaintDC
):
3070 def __init__(self
, this
):
3072 if not hasattr(self
,"thisown"): self
.thisown
= 0
3073 self
.__class
__ = BufferedPaintDC
3074 _gdi_
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
3076 #---------------------------------------------------------------------------
3080 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3081 def __init__(self
, *args
, **kwargs
):
3082 """__init__(self) -> ScreenDC"""
3083 newobj
= _gdi_
.new_ScreenDC(*args
, **kwargs
)
3084 self
.this
= newobj
.this
3087 def StartDrawingOnTopWin(*args
, **kwargs
):
3088 """StartDrawingOnTopWin(self, Window window) -> bool"""
3089 return _gdi_
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
3091 def StartDrawingOnTop(*args
, **kwargs
):
3092 """StartDrawingOnTop(self, Rect rect=None) -> bool"""
3093 return _gdi_
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
3095 def EndDrawingOnTop(*args
, **kwargs
):
3096 """EndDrawingOnTop(self) -> bool"""
3097 return _gdi_
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
3100 class ScreenDCPtr(ScreenDC
):
3101 def __init__(self
, this
):
3103 if not hasattr(self
,"thisown"): self
.thisown
= 0
3104 self
.__class
__ = ScreenDC
3105 _gdi_
.ScreenDC_swigregister(ScreenDCPtr
)
3107 #---------------------------------------------------------------------------
3111 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3112 def __init__(self
, *args
, **kwargs
):
3113 """__init__(self, Window win) -> ClientDC"""
3114 newobj
= _gdi_
.new_ClientDC(*args
, **kwargs
)
3115 self
.this
= newobj
.this
3119 class ClientDCPtr(ClientDC
):
3120 def __init__(self
, this
):
3122 if not hasattr(self
,"thisown"): self
.thisown
= 0
3123 self
.__class
__ = ClientDC
3124 _gdi_
.ClientDC_swigregister(ClientDCPtr
)
3126 #---------------------------------------------------------------------------
3130 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3131 def __init__(self
, *args
, **kwargs
):
3132 """__init__(self, Window win) -> PaintDC"""
3133 newobj
= _gdi_
.new_PaintDC(*args
, **kwargs
)
3134 self
.this
= newobj
.this
3138 class PaintDCPtr(PaintDC
):
3139 def __init__(self
, this
):
3141 if not hasattr(self
,"thisown"): self
.thisown
= 0
3142 self
.__class
__ = PaintDC
3143 _gdi_
.PaintDC_swigregister(PaintDCPtr
)
3145 #---------------------------------------------------------------------------
3149 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3150 def __init__(self
, *args
, **kwargs
):
3151 """__init__(self, Window win) -> WindowDC"""
3152 newobj
= _gdi_
.new_WindowDC(*args
, **kwargs
)
3153 self
.this
= newobj
.this
3157 class WindowDCPtr(WindowDC
):
3158 def __init__(self
, this
):
3160 if not hasattr(self
,"thisown"): self
.thisown
= 0
3161 self
.__class
__ = WindowDC
3162 _gdi_
.WindowDC_swigregister(WindowDCPtr
)
3164 #---------------------------------------------------------------------------
3168 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3169 def __init__(self
, *args
, **kwargs
):
3170 """__init__(self, DC dc, bool mirror) -> MirrorDC"""
3171 newobj
= _gdi_
.new_MirrorDC(*args
, **kwargs
)
3172 self
.this
= newobj
.this
3176 class MirrorDCPtr(MirrorDC
):
3177 def __init__(self
, this
):
3179 if not hasattr(self
,"thisown"): self
.thisown
= 0
3180 self
.__class
__ = MirrorDC
3181 _gdi_
.MirrorDC_swigregister(MirrorDCPtr
)
3183 #---------------------------------------------------------------------------
3185 class PostScriptDC(DC
):
3187 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3188 def __init__(self
, *args
, **kwargs
):
3189 """__init__(self, wxPrintData printData) -> PostScriptDC"""
3190 newobj
= _gdi_
.new_PostScriptDC(*args
, **kwargs
)
3191 self
.this
= newobj
.this
3194 def GetPrintData(*args
, **kwargs
):
3195 """GetPrintData(self) -> wxPrintData"""
3196 return _gdi_
.PostScriptDC_GetPrintData(*args
, **kwargs
)
3198 def SetPrintData(*args
, **kwargs
):
3199 """SetPrintData(self, wxPrintData data)"""
3200 return _gdi_
.PostScriptDC_SetPrintData(*args
, **kwargs
)
3202 def SetResolution(*args
, **kwargs
):
3203 """SetResolution(int ppi)"""
3204 return _gdi_
.PostScriptDC_SetResolution(*args
, **kwargs
)
3206 SetResolution
= staticmethod(SetResolution
)
3207 def GetResolution(*args
, **kwargs
):
3208 """GetResolution() -> int"""
3209 return _gdi_
.PostScriptDC_GetResolution(*args
, **kwargs
)
3211 GetResolution
= staticmethod(GetResolution
)
3213 class PostScriptDCPtr(PostScriptDC
):
3214 def __init__(self
, this
):
3216 if not hasattr(self
,"thisown"): self
.thisown
= 0
3217 self
.__class
__ = PostScriptDC
3218 _gdi_
.PostScriptDC_swigregister(PostScriptDCPtr
)
3220 def PostScriptDC_SetResolution(*args
, **kwargs
):
3221 """PostScriptDC_SetResolution(int ppi)"""
3222 return _gdi_
.PostScriptDC_SetResolution(*args
, **kwargs
)
3224 def PostScriptDC_GetResolution(*args
, **kwargs
):
3225 """PostScriptDC_GetResolution() -> int"""
3226 return _gdi_
.PostScriptDC_GetResolution(*args
, **kwargs
)
3228 #---------------------------------------------------------------------------
3230 class MetaFile(_core
.Object
):
3232 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3233 def __init__(self
, *args
, **kwargs
):
3234 """__init__(self, String filename=EmptyString) -> MetaFile"""
3235 newobj
= _gdi_
.new_MetaFile(*args
, **kwargs
)
3236 self
.this
= newobj
.this
3239 def __del__(self
, destroy
=_gdi_
.delete_MetaFile
):
3242 if self
.thisown
: destroy(self
)
3245 def Ok(*args
, **kwargs
):
3246 """Ok(self) -> bool"""
3247 return _gdi_
.MetaFile_Ok(*args
, **kwargs
)
3249 def SetClipboard(*args
, **kwargs
):
3250 """SetClipboard(self, int width=0, int height=0) -> bool"""
3251 return _gdi_
.MetaFile_SetClipboard(*args
, **kwargs
)
3253 def GetSize(*args
, **kwargs
):
3254 """GetSize(self) -> Size"""
3255 return _gdi_
.MetaFile_GetSize(*args
, **kwargs
)
3257 def GetWidth(*args
, **kwargs
):
3258 """GetWidth(self) -> int"""
3259 return _gdi_
.MetaFile_GetWidth(*args
, **kwargs
)
3261 def GetHeight(*args
, **kwargs
):
3262 """GetHeight(self) -> int"""
3263 return _gdi_
.MetaFile_GetHeight(*args
, **kwargs
)
3265 def __nonzero__(self
): return self
.Ok()
3267 class MetaFilePtr(MetaFile
):
3268 def __init__(self
, this
):
3270 if not hasattr(self
,"thisown"): self
.thisown
= 0
3271 self
.__class
__ = MetaFile
3272 _gdi_
.MetaFile_swigregister(MetaFilePtr
)
3274 class MetaFileDC(DC
):
3276 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3277 def __init__(self
, *args
, **kwargs
):
3279 __init__(self, String filename=EmptyString, int width=0, int height=0,
3280 String description=EmptyString) -> MetaFileDC
3282 newobj
= _gdi_
.new_MetaFileDC(*args
, **kwargs
)
3283 self
.this
= newobj
.this
3286 def Close(*args
, **kwargs
):
3287 """Close(self) -> MetaFile"""
3288 return _gdi_
.MetaFileDC_Close(*args
, **kwargs
)
3291 class MetaFileDCPtr(MetaFileDC
):
3292 def __init__(self
, this
):
3294 if not hasattr(self
,"thisown"): self
.thisown
= 0
3295 self
.__class
__ = MetaFileDC
3296 _gdi_
.MetaFileDC_swigregister(MetaFileDCPtr
)
3298 class PrinterDC(DC
):
3300 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3301 def __init__(self
, *args
, **kwargs
):
3302 """__init__(self, wxPrintData printData) -> PrinterDC"""
3303 newobj
= _gdi_
.new_PrinterDC(*args
, **kwargs
)
3304 self
.this
= newobj
.this
3308 class PrinterDCPtr(PrinterDC
):
3309 def __init__(self
, this
):
3311 if not hasattr(self
,"thisown"): self
.thisown
= 0
3312 self
.__class
__ = PrinterDC
3313 _gdi_
.PrinterDC_swigregister(PrinterDCPtr
)
3315 #---------------------------------------------------------------------------
3317 IMAGELIST_DRAW_NORMAL
= _gdi_
.IMAGELIST_DRAW_NORMAL
3318 IMAGELIST_DRAW_TRANSPARENT
= _gdi_
.IMAGELIST_DRAW_TRANSPARENT
3319 IMAGELIST_DRAW_SELECTED
= _gdi_
.IMAGELIST_DRAW_SELECTED
3320 IMAGELIST_DRAW_FOCUSED
= _gdi_
.IMAGELIST_DRAW_FOCUSED
3321 IMAGE_LIST_NORMAL
= _gdi_
.IMAGE_LIST_NORMAL
3322 IMAGE_LIST_SMALL
= _gdi_
.IMAGE_LIST_SMALL
3323 IMAGE_LIST_STATE
= _gdi_
.IMAGE_LIST_STATE
3324 class ImageList(_core
.Object
):
3326 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3327 def __init__(self
, *args
, **kwargs
):
3328 """__init__(self, int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3329 newobj
= _gdi_
.new_ImageList(*args
, **kwargs
)
3330 self
.this
= newobj
.this
3333 def __del__(self
, destroy
=_gdi_
.delete_ImageList
):
3336 if self
.thisown
: destroy(self
)
3339 def Add(*args
, **kwargs
):
3340 """Add(self, Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3341 return _gdi_
.ImageList_Add(*args
, **kwargs
)
3343 def AddWithColourMask(*args
, **kwargs
):
3344 """AddWithColourMask(self, Bitmap bitmap, Colour maskColour) -> int"""
3345 return _gdi_
.ImageList_AddWithColourMask(*args
, **kwargs
)
3347 def AddIcon(*args
, **kwargs
):
3348 """AddIcon(self, Icon icon) -> int"""
3349 return _gdi_
.ImageList_AddIcon(*args
, **kwargs
)
3351 def Replace(*args
, **kwargs
):
3352 """Replace(self, int index, Bitmap bitmap) -> bool"""
3353 return _gdi_
.ImageList_Replace(*args
, **kwargs
)
3355 def Draw(*args
, **kwargs
):
3357 Draw(self, int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3358 bool solidBackground=False) -> bool
3360 return _gdi_
.ImageList_Draw(*args
, **kwargs
)
3362 def GetImageCount(*args
, **kwargs
):
3363 """GetImageCount(self) -> int"""
3364 return _gdi_
.ImageList_GetImageCount(*args
, **kwargs
)
3366 def Remove(*args
, **kwargs
):
3367 """Remove(self, int index) -> bool"""
3368 return _gdi_
.ImageList_Remove(*args
, **kwargs
)
3370 def RemoveAll(*args
, **kwargs
):
3371 """RemoveAll(self) -> bool"""
3372 return _gdi_
.ImageList_RemoveAll(*args
, **kwargs
)
3374 def GetSize(*args
, **kwargs
):
3375 """GetSize() -> (width,height)"""
3376 return _gdi_
.ImageList_GetSize(*args
, **kwargs
)
3379 class ImageListPtr(ImageList
):
3380 def __init__(self
, this
):
3382 if not hasattr(self
,"thisown"): self
.thisown
= 0
3383 self
.__class
__ = ImageList
3384 _gdi_
.ImageList_swigregister(ImageListPtr
)
3386 #---------------------------------------------------------------------------
3388 class PenList(_core
.Object
):
3389 def __init__(self
): raise RuntimeError, "No constructor defined"
3391 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3392 def AddPen(*args
, **kwargs
):
3393 """AddPen(self, Pen pen)"""
3394 return _gdi_
.PenList_AddPen(*args
, **kwargs
)
3396 def FindOrCreatePen(*args
, **kwargs
):
3397 """FindOrCreatePen(self, Colour colour, int width, int style) -> Pen"""
3398 return _gdi_
.PenList_FindOrCreatePen(*args
, **kwargs
)
3400 def RemovePen(*args
, **kwargs
):
3401 """RemovePen(self, Pen pen)"""
3402 return _gdi_
.PenList_RemovePen(*args
, **kwargs
)
3404 def GetCount(*args
, **kwargs
):
3405 """GetCount(self) -> int"""
3406 return _gdi_
.PenList_GetCount(*args
, **kwargs
)
3409 class PenListPtr(PenList
):
3410 def __init__(self
, this
):
3412 if not hasattr(self
,"thisown"): self
.thisown
= 0
3413 self
.__class
__ = PenList
3414 _gdi_
.PenList_swigregister(PenListPtr
)
3416 NORMAL_FONT
= cvar
.NORMAL_FONT
3417 SMALL_FONT
= cvar
.SMALL_FONT
3418 ITALIC_FONT
= cvar
.ITALIC_FONT
3419 SWISS_FONT
= cvar
.SWISS_FONT
3420 RED_PEN
= cvar
.RED_PEN
3421 CYAN_PEN
= cvar
.CYAN_PEN
3422 GREEN_PEN
= cvar
.GREEN_PEN
3423 BLACK_PEN
= cvar
.BLACK_PEN
3424 WHITE_PEN
= cvar
.WHITE_PEN
3425 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3426 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3427 GREY_PEN
= cvar
.GREY_PEN
3428 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3429 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3430 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3431 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3432 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3433 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3434 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3435 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3436 RED_BRUSH
= cvar
.RED_BRUSH
3437 GREY_BRUSH
= cvar
.GREY_BRUSH
3438 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3439 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3446 LIGHT_GREY
= cvar
.LIGHT_GREY
3447 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3448 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3449 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3450 NullBitmap
= cvar
.NullBitmap
3451 NullIcon
= cvar
.NullIcon
3452 NullCursor
= cvar
.NullCursor
3453 NullPen
= cvar
.NullPen
3454 NullBrush
= cvar
.NullBrush
3455 NullPalette
= cvar
.NullPalette
3456 NullFont
= cvar
.NullFont
3457 NullColour
= cvar
.NullColour
3459 class BrushList(_core
.Object
):
3460 def __init__(self
): raise RuntimeError, "No constructor defined"
3462 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3463 def AddBrush(*args
, **kwargs
):
3464 """AddBrush(self, Brush brush)"""
3465 return _gdi_
.BrushList_AddBrush(*args
, **kwargs
)
3467 def FindOrCreateBrush(*args
, **kwargs
):
3468 """FindOrCreateBrush(self, Colour colour, int style) -> Brush"""
3469 return _gdi_
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3471 def RemoveBrush(*args
, **kwargs
):
3472 """RemoveBrush(self, Brush brush)"""
3473 return _gdi_
.BrushList_RemoveBrush(*args
, **kwargs
)
3475 def GetCount(*args
, **kwargs
):
3476 """GetCount(self) -> int"""
3477 return _gdi_
.BrushList_GetCount(*args
, **kwargs
)
3480 class BrushListPtr(BrushList
):
3481 def __init__(self
, this
):
3483 if not hasattr(self
,"thisown"): self
.thisown
= 0
3484 self
.__class
__ = BrushList
3485 _gdi_
.BrushList_swigregister(BrushListPtr
)
3487 class ColourDatabase(_core
.Object
):
3489 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3490 def __init__(self
, *args
, **kwargs
):
3491 """__init__(self) -> ColourDatabase"""
3492 newobj
= _gdi_
.new_ColourDatabase(*args
, **kwargs
)
3493 self
.this
= newobj
.this
3496 def __del__(self
, destroy
=_gdi_
.delete_ColourDatabase
):
3499 if self
.thisown
: destroy(self
)
3502 def Find(*args
, **kwargs
):
3503 """Find(self, String name) -> Colour"""
3504 return _gdi_
.ColourDatabase_Find(*args
, **kwargs
)
3506 def FindName(*args
, **kwargs
):
3507 """FindName(self, Colour colour) -> String"""
3508 return _gdi_
.ColourDatabase_FindName(*args
, **kwargs
)
3511 def AddColour(*args
, **kwargs
):
3512 """AddColour(self, String name, Colour colour)"""
3513 return _gdi_
.ColourDatabase_AddColour(*args
, **kwargs
)
3515 def Append(*args
, **kwargs
):
3516 """Append(self, String name, int red, int green, int blue)"""
3517 return _gdi_
.ColourDatabase_Append(*args
, **kwargs
)
3520 class ColourDatabasePtr(ColourDatabase
):
3521 def __init__(self
, this
):
3523 if not hasattr(self
,"thisown"): self
.thisown
= 0
3524 self
.__class
__ = ColourDatabase
3525 _gdi_
.ColourDatabase_swigregister(ColourDatabasePtr
)
3527 class FontList(_core
.Object
):
3528 def __init__(self
): raise RuntimeError, "No constructor defined"
3530 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3531 def AddFont(*args
, **kwargs
):
3532 """AddFont(self, Font font)"""
3533 return _gdi_
.FontList_AddFont(*args
, **kwargs
)
3535 def FindOrCreateFont(*args
, **kwargs
):
3537 FindOrCreateFont(self, int point_size, int family, int style, int weight,
3538 bool underline=False, String facename=EmptyString,
3539 int encoding=FONTENCODING_DEFAULT) -> Font
3541 return _gdi_
.FontList_FindOrCreateFont(*args
, **kwargs
)
3543 def RemoveFont(*args
, **kwargs
):
3544 """RemoveFont(self, Font font)"""
3545 return _gdi_
.FontList_RemoveFont(*args
, **kwargs
)
3547 def GetCount(*args
, **kwargs
):
3548 """GetCount(self) -> int"""
3549 return _gdi_
.FontList_GetCount(*args
, **kwargs
)
3552 class FontListPtr(FontList
):
3553 def __init__(self
, this
):
3555 if not hasattr(self
,"thisown"): self
.thisown
= 0
3556 self
.__class
__ = FontList
3557 _gdi_
.FontList_swigregister(FontListPtr
)
3559 #---------------------------------------------------------------------------
3561 NullColor
= NullColour
3562 #---------------------------------------------------------------------------
3564 class Effects(_core
.Object
):
3566 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3567 def __init__(self
, *args
, **kwargs
):
3568 """__init__(self) -> Effects"""
3569 newobj
= _gdi_
.new_Effects(*args
, **kwargs
)
3570 self
.this
= newobj
.this
3573 def GetHighlightColour(*args
, **kwargs
):
3574 """GetHighlightColour(self) -> Colour"""
3575 return _gdi_
.Effects_GetHighlightColour(*args
, **kwargs
)
3577 def GetLightShadow(*args
, **kwargs
):
3578 """GetLightShadow(self) -> Colour"""
3579 return _gdi_
.Effects_GetLightShadow(*args
, **kwargs
)
3581 def GetFaceColour(*args
, **kwargs
):
3582 """GetFaceColour(self) -> Colour"""
3583 return _gdi_
.Effects_GetFaceColour(*args
, **kwargs
)
3585 def GetMediumShadow(*args
, **kwargs
):
3586 """GetMediumShadow(self) -> Colour"""
3587 return _gdi_
.Effects_GetMediumShadow(*args
, **kwargs
)
3589 def GetDarkShadow(*args
, **kwargs
):
3590 """GetDarkShadow(self) -> Colour"""
3591 return _gdi_
.Effects_GetDarkShadow(*args
, **kwargs
)
3593 def SetHighlightColour(*args
, **kwargs
):
3594 """SetHighlightColour(self, Colour c)"""
3595 return _gdi_
.Effects_SetHighlightColour(*args
, **kwargs
)
3597 def SetLightShadow(*args
, **kwargs
):
3598 """SetLightShadow(self, Colour c)"""
3599 return _gdi_
.Effects_SetLightShadow(*args
, **kwargs
)
3601 def SetFaceColour(*args
, **kwargs
):
3602 """SetFaceColour(self, Colour c)"""
3603 return _gdi_
.Effects_SetFaceColour(*args
, **kwargs
)
3605 def SetMediumShadow(*args
, **kwargs
):
3606 """SetMediumShadow(self, Colour c)"""
3607 return _gdi_
.Effects_SetMediumShadow(*args
, **kwargs
)
3609 def SetDarkShadow(*args
, **kwargs
):
3610 """SetDarkShadow(self, Colour c)"""
3611 return _gdi_
.Effects_SetDarkShadow(*args
, **kwargs
)
3613 def Set(*args
, **kwargs
):
3615 Set(self, Colour highlightColour, Colour lightShadow, Colour faceColour,
3616 Colour mediumShadow, Colour darkShadow)
3618 return _gdi_
.Effects_Set(*args
, **kwargs
)
3620 def DrawSunkenEdge(*args
, **kwargs
):
3621 """DrawSunkenEdge(self, DC dc, Rect rect, int borderSize=1)"""
3622 return _gdi_
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3624 def TileBitmap(*args
, **kwargs
):
3625 """TileBitmap(self, Rect rect, DC dc, Bitmap bitmap) -> bool"""
3626 return _gdi_
.Effects_TileBitmap(*args
, **kwargs
)
3629 class EffectsPtr(Effects
):
3630 def __init__(self
, this
):
3632 if not hasattr(self
,"thisown"): self
.thisown
= 0
3633 self
.__class
__ = Effects
3634 _gdi_
.Effects_swigregister(EffectsPtr
)
3635 TheFontList
= cvar
.TheFontList
3636 ThePenList
= cvar
.ThePenList
3637 TheBrushList
= cvar
.TheBrushList
3638 TheColourDatabase
= cvar
.TheColourDatabase