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 GetDashCount(*args
, **kwargs
):
345 """GetDashCount(self) -> int"""
346 return _gdi_
.Pen_GetDashCount(*args
, **kwargs
)
348 def GetStipple(*args
, **kwargs
):
349 """GetStipple(self) -> Bitmap"""
350 return _gdi_
.Pen_GetStipple(*args
, **kwargs
)
352 def SetStipple(*args
, **kwargs
):
353 """SetStipple(self, Bitmap stipple)"""
354 return _gdi_
.Pen_SetStipple(*args
, **kwargs
)
356 def __eq__(*args
, **kwargs
):
357 """__eq__(self, Pen other) -> bool"""
358 return _gdi_
.Pen___eq__(*args
, **kwargs
)
360 def __ne__(*args
, **kwargs
):
361 """__ne__(self, Pen other) -> bool"""
362 return _gdi_
.Pen___ne__(*args
, **kwargs
)
364 def __nonzero__(self
): return self
.Ok()
367 def __init__(self
, this
):
369 if not hasattr(self
,"thisown"): self
.thisown
= 0
371 _gdi_
.Pen_swigregister(PenPtr
)
373 #---------------------------------------------------------------------------
375 class Brush(GDIObject
):
377 A brush is a drawing tool for filling in areas. It is used for
378 painting the background of rectangles, ellipses, etc. when drawing on
379 a `wx.DC`. It has a colour and a style.
382 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
383 def __init__(self
, *args
, **kwargs
):
385 __init__(self, Colour colour, int style=SOLID) -> Brush
387 Constructs a brush from a `wx.Colour` object and a style.
389 newobj
= _gdi_
.new_Brush(*args
, **kwargs
)
390 self
.this
= newobj
.this
393 def __del__(self
, destroy
=_gdi_
.delete_Brush
):
396 if self
.thisown
: destroy(self
)
399 def SetColour(*args
, **kwargs
):
401 SetColour(self, Colour col)
403 Set the brush's `wx.Colour`.
405 return _gdi_
.Brush_SetColour(*args
, **kwargs
)
407 def SetStyle(*args
, **kwargs
):
409 SetStyle(self, int style)
411 Sets the style of the brush. See `__init__` for a listing of styles.
413 return _gdi_
.Brush_SetStyle(*args
, **kwargs
)
415 def SetStipple(*args
, **kwargs
):
417 SetStipple(self, Bitmap stipple)
419 Sets the stipple `wx.Bitmap`.
421 return _gdi_
.Brush_SetStipple(*args
, **kwargs
)
423 def GetColour(*args
, **kwargs
):
425 GetColour(self) -> Colour
427 Returns the `wx.Colour` of the brush.
429 return _gdi_
.Brush_GetColour(*args
, **kwargs
)
431 def GetStyle(*args
, **kwargs
):
433 GetStyle(self) -> int
435 Returns the style of the brush. See `__init__` for a listing of
438 return _gdi_
.Brush_GetStyle(*args
, **kwargs
)
440 def GetStipple(*args
, **kwargs
):
442 GetStipple(self) -> Bitmap
444 Returns the stiple `wx.Bitmap` of the brush. If the brush does not
445 have a wx.STIPPLE style, then the return value may be non-None but an
446 uninitialised bitmap (`wx.Bitmap.Ok` returns False).
448 return _gdi_
.Brush_GetStipple(*args
, **kwargs
)
450 def Ok(*args
, **kwargs
):
454 Returns True if the brush is initialised and valid.
456 return _gdi_
.Brush_Ok(*args
, **kwargs
)
458 def __nonzero__(self
): return self
.Ok()
460 class BrushPtr(Brush
):
461 def __init__(self
, this
):
463 if not hasattr(self
,"thisown"): self
.thisown
= 0
464 self
.__class
__ = Brush
465 _gdi_
.Brush_swigregister(BrushPtr
)
467 class Bitmap(GDIObject
):
469 The wx.Bitmap class encapsulates the concept of a platform-dependent
470 bitmap. It can be either monochrome or colour, and either loaded from
471 a file or created dynamically. A bitmap can be selected into a memory
472 device context (instance of `wx.MemoryDC`). This enables the bitmap to
473 be copied to a window or memory device context using `wx.DC.Blit`, or
474 to be used as a drawing surface.
477 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
478 def __init__(self
, *args
, **kwargs
):
480 __init__(self, String name, int type=BITMAP_TYPE_ANY) -> Bitmap
482 Loads a bitmap from a file.
484 newobj
= _gdi_
.new_Bitmap(*args
, **kwargs
)
485 self
.this
= newobj
.this
488 def __del__(self
, destroy
=_gdi_
.delete_Bitmap
):
491 if self
.thisown
: destroy(self
)
494 def SetPalette(*args
, **kwargs
):
495 """SetPalette(self, Palette palette)"""
496 return _gdi_
.Bitmap_SetPalette(*args
, **kwargs
)
498 def GetHandle(*args
, **kwargs
):
499 """GetHandle(self) -> long"""
500 return _gdi_
.Bitmap_GetHandle(*args
, **kwargs
)
502 def SetHandle(*args
, **kwargs
):
503 """SetHandle(self, long handle)"""
504 return _gdi_
.Bitmap_SetHandle(*args
, **kwargs
)
506 def Ok(*args
, **kwargs
):
507 """Ok(self) -> bool"""
508 return _gdi_
.Bitmap_Ok(*args
, **kwargs
)
510 def GetWidth(*args
, **kwargs
):
512 GetWidth(self) -> int
514 Gets the width of the bitmap in pixels.
516 return _gdi_
.Bitmap_GetWidth(*args
, **kwargs
)
518 def GetHeight(*args
, **kwargs
):
520 GetHeight(self) -> int
522 Gets the height of the bitmap in pixels.
524 return _gdi_
.Bitmap_GetHeight(*args
, **kwargs
)
526 def GetDepth(*args
, **kwargs
):
528 GetDepth(self) -> int
530 Gets the colour depth of the bitmap. A value of 1 indicates a
533 return _gdi_
.Bitmap_GetDepth(*args
, **kwargs
)
535 def GetSize(*args
, **kwargs
):
537 GetSize(self) -> Size
539 Get the size of the bitmap.
541 return _gdi_
.Bitmap_GetSize(*args
, **kwargs
)
543 def ConvertToImage(*args
, **kwargs
):
545 ConvertToImage(self) -> Image
547 Creates a platform-independent image from a platform-dependent
548 bitmap. This preserves mask information so that bitmaps and images can
549 be converted back and forth without loss in that respect.
551 return _gdi_
.Bitmap_ConvertToImage(*args
, **kwargs
)
553 def GetMask(*args
, **kwargs
):
555 GetMask(self) -> Mask
557 Gets the associated mask (if any) which may have been loaded from a
558 file or explpicitly set for the bitmap.
560 :see: `SetMask`, `wx.Mask`
563 return _gdi_
.Bitmap_GetMask(*args
, **kwargs
)
565 def SetMask(*args
, **kwargs
):
567 SetMask(self, Mask mask)
569 Sets the mask for this bitmap.
571 :see: `GetMask`, `wx.Mask`
574 return _gdi_
.Bitmap_SetMask(*args
, **kwargs
)
576 def SetMaskColour(*args
, **kwargs
):
578 SetMaskColour(self, Colour colour)
580 Create a Mask based on a specified colour in the Bitmap.
582 return _gdi_
.Bitmap_SetMaskColour(*args
, **kwargs
)
584 def GetSubBitmap(*args
, **kwargs
):
586 GetSubBitmap(self, Rect rect) -> Bitmap
588 Returns a sub-bitmap of the current one as long as the rect belongs
589 entirely to the bitmap. This function preserves bit depth and mask
592 return _gdi_
.Bitmap_GetSubBitmap(*args
, **kwargs
)
594 def SaveFile(*args
, **kwargs
):
596 SaveFile(self, String name, int type, Palette palette=None) -> bool
598 Saves a bitmap in the named file. See `__init__` for a description of
599 the ``type`` parameter.
601 return _gdi_
.Bitmap_SaveFile(*args
, **kwargs
)
603 def LoadFile(*args
, **kwargs
):
605 LoadFile(self, String name, int type) -> bool
607 Loads a bitmap from a file. See `__init__` for a description of the
610 return _gdi_
.Bitmap_LoadFile(*args
, **kwargs
)
612 def CopyFromIcon(*args
, **kwargs
):
613 """CopyFromIcon(self, Icon icon) -> bool"""
614 return _gdi_
.Bitmap_CopyFromIcon(*args
, **kwargs
)
616 def SetHeight(*args
, **kwargs
):
618 SetHeight(self, int height)
620 Set the height property (does not affect the existing bitmap data).
622 return _gdi_
.Bitmap_SetHeight(*args
, **kwargs
)
624 def SetWidth(*args
, **kwargs
):
626 SetWidth(self, int width)
628 Set the width property (does not affect the existing bitmap data).
630 return _gdi_
.Bitmap_SetWidth(*args
, **kwargs
)
632 def SetDepth(*args
, **kwargs
):
634 SetDepth(self, int depth)
636 Set the depth property (does not affect the existing bitmap data).
638 return _gdi_
.Bitmap_SetDepth(*args
, **kwargs
)
640 def SetSize(*args
, **kwargs
):
642 SetSize(self, Size size)
644 Set the bitmap size (does not affect the existing bitmap data).
646 return _gdi_
.Bitmap_SetSize(*args
, **kwargs
)
648 def CopyFromCursor(*args
, **kwargs
):
649 """CopyFromCursor(self, Cursor cursor) -> bool"""
650 return _gdi_
.Bitmap_CopyFromCursor(*args
, **kwargs
)
652 def GetQuality(*args
, **kwargs
):
653 """GetQuality(self) -> int"""
654 return _gdi_
.Bitmap_GetQuality(*args
, **kwargs
)
656 def SetQuality(*args
, **kwargs
):
657 """SetQuality(self, int q)"""
658 return _gdi_
.Bitmap_SetQuality(*args
, **kwargs
)
660 def __nonzero__(self
): return self
.Ok()
661 def __eq__(*args
, **kwargs
):
662 """__eq__(self, Bitmap other) -> bool"""
663 return _gdi_
.Bitmap___eq__(*args
, **kwargs
)
665 def __ne__(*args
, **kwargs
):
666 """__ne__(self, Bitmap other) -> bool"""
667 return _gdi_
.Bitmap___ne__(*args
, **kwargs
)
670 class BitmapPtr(Bitmap
):
671 def __init__(self
, this
):
673 if not hasattr(self
,"thisown"): self
.thisown
= 0
674 self
.__class
__ = Bitmap
675 _gdi_
.Bitmap_swigregister(BitmapPtr
)
677 def EmptyBitmap(*args
, **kwargs
):
679 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
681 Creates a new bitmap of the given size. A depth of -1 indicates the
682 depth of the current screen or visual. Some platforms only support 1
683 for monochrome and -1 for the current colour setting.
685 val
= _gdi_
.new_EmptyBitmap(*args
, **kwargs
)
689 def BitmapFromIcon(*args
, **kwargs
):
691 BitmapFromIcon(Icon icon) -> Bitmap
693 Create a new bitmap from a `wx.Icon` object.
695 val
= _gdi_
.new_BitmapFromIcon(*args
, **kwargs
)
699 def BitmapFromImage(*args
, **kwargs
):
701 BitmapFromImage(Image image, int depth=-1) -> Bitmap
703 Creates bitmap object from a `wx.Image`. This has to be done to
704 actually display a `wx.Image` as you cannot draw an image directly on
705 a window. The resulting bitmap will use the provided colour depth (or
706 that of the current screen colour depth if depth is -1) which entails
707 that a colour reduction may have to take place.
709 val
= _gdi_
.new_BitmapFromImage(*args
, **kwargs
)
713 def BitmapFromXPMData(*args
, **kwargs
):
715 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
717 Construct a Bitmap from a list of strings formatted as XPM data.
719 val
= _gdi_
.new_BitmapFromXPMData(*args
, **kwargs
)
723 def BitmapFromBits(*args
, **kwargs
):
725 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
727 Creates a bitmap from an array of bits. You should only use this
728 function for monochrome bitmaps (depth 1) in portable programs: in
729 this case the bits parameter should contain an XBM image. For other
730 bit depths, the behaviour is platform dependent.
732 val
= _gdi_
.new_BitmapFromBits(*args
, **kwargs
)
736 class Mask(_core
.Object
):
738 This class encapsulates a monochrome mask bitmap, where the masked
739 area is black and the unmasked area is white. When associated with a
740 bitmap and drawn in a device context, the unmasked area of the bitmap
741 will be drawn, and the masked area will not be drawn.
743 A mask may be associated with a `wx.Bitmap`. It is used in
744 `wx.DC.DrawBitmap` or `wx.DC.Blit` when the source device context is a
745 `wx.MemoryDC` with a `wx.Bitmap` selected into it that contains a
749 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
750 def __init__(self
, *args
, **kwargs
):
752 __init__(self, Bitmap bitmap, Colour colour=NullColour) -> Mask
754 Constructs a mask from a `wx.Bitmap` and a `wx.Colour` in that bitmap
755 that indicates the transparent portions of the mask. In other words,
756 the pixels in ``bitmap`` that match ``colour`` will be the transparent
757 portions of the mask. If no ``colour`` or an invalid ``colour`` is
758 passed then BLACK is used.
760 :see: `wx.Bitmap`, `wx.Colour`
762 newobj
= _gdi_
.new_Mask(*args
, **kwargs
)
763 self
.this
= newobj
.this
768 def __init__(self
, this
):
770 if not hasattr(self
,"thisown"): self
.thisown
= 0
771 self
.__class
__ = Mask
772 _gdi_
.Mask_swigregister(MaskPtr
)
774 MaskColour
= wx
._deprecated
(Mask
, "wx.MaskColour is deprecated, use `wx.Mask` instead.")
775 class Icon(GDIObject
):
777 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
778 def __init__(self
, *args
, **kwargs
):
779 """__init__(self, String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
780 newobj
= _gdi_
.new_Icon(*args
, **kwargs
)
781 self
.this
= newobj
.this
784 def __del__(self
, destroy
=_gdi_
.delete_Icon
):
787 if self
.thisown
: destroy(self
)
790 def LoadFile(*args
, **kwargs
):
791 """LoadFile(self, String name, int type) -> bool"""
792 return _gdi_
.Icon_LoadFile(*args
, **kwargs
)
794 def GetHandle(*args
, **kwargs
):
795 """GetHandle(self) -> long"""
796 return _gdi_
.Icon_GetHandle(*args
, **kwargs
)
798 def SetHandle(*args
, **kwargs
):
799 """SetHandle(self, long handle)"""
800 return _gdi_
.Icon_SetHandle(*args
, **kwargs
)
802 def Ok(*args
, **kwargs
):
803 """Ok(self) -> bool"""
804 return _gdi_
.Icon_Ok(*args
, **kwargs
)
806 def GetWidth(*args
, **kwargs
):
807 """GetWidth(self) -> int"""
808 return _gdi_
.Icon_GetWidth(*args
, **kwargs
)
810 def GetHeight(*args
, **kwargs
):
811 """GetHeight(self) -> int"""
812 return _gdi_
.Icon_GetHeight(*args
, **kwargs
)
814 def GetDepth(*args
, **kwargs
):
815 """GetDepth(self) -> int"""
816 return _gdi_
.Icon_GetDepth(*args
, **kwargs
)
818 def SetWidth(*args
, **kwargs
):
819 """SetWidth(self, int w)"""
820 return _gdi_
.Icon_SetWidth(*args
, **kwargs
)
822 def SetHeight(*args
, **kwargs
):
823 """SetHeight(self, int h)"""
824 return _gdi_
.Icon_SetHeight(*args
, **kwargs
)
826 def SetDepth(*args
, **kwargs
):
827 """SetDepth(self, int d)"""
828 return _gdi_
.Icon_SetDepth(*args
, **kwargs
)
830 def SetSize(*args
, **kwargs
):
831 """SetSize(self, Size size)"""
832 return _gdi_
.Icon_SetSize(*args
, **kwargs
)
834 def CopyFromBitmap(*args
, **kwargs
):
835 """CopyFromBitmap(self, Bitmap bmp)"""
836 return _gdi_
.Icon_CopyFromBitmap(*args
, **kwargs
)
838 def __nonzero__(self
): return self
.Ok()
841 def __init__(self
, this
):
843 if not hasattr(self
,"thisown"): self
.thisown
= 0
844 self
.__class
__ = Icon
845 _gdi_
.Icon_swigregister(IconPtr
)
847 def EmptyIcon(*args
, **kwargs
):
848 """EmptyIcon() -> Icon"""
849 val
= _gdi_
.new_EmptyIcon(*args
, **kwargs
)
853 def IconFromLocation(*args
, **kwargs
):
854 """IconFromLocation(IconLocation loc) -> Icon"""
855 val
= _gdi_
.new_IconFromLocation(*args
, **kwargs
)
859 def IconFromBitmap(*args
, **kwargs
):
860 """IconFromBitmap(Bitmap bmp) -> Icon"""
861 val
= _gdi_
.new_IconFromBitmap(*args
, **kwargs
)
865 def IconFromXPMData(*args
, **kwargs
):
866 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
867 val
= _gdi_
.new_IconFromXPMData(*args
, **kwargs
)
871 class IconLocation(object):
873 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
874 def __init__(self
, *args
, **kwargs
):
875 """__init__(self, String filename=&wxPyEmptyString, int num=0) -> IconLocation"""
876 newobj
= _gdi_
.new_IconLocation(*args
, **kwargs
)
877 self
.this
= newobj
.this
880 def __del__(self
, destroy
=_gdi_
.delete_IconLocation
):
883 if self
.thisown
: destroy(self
)
886 def IsOk(*args
, **kwargs
):
887 """IsOk(self) -> bool"""
888 return _gdi_
.IconLocation_IsOk(*args
, **kwargs
)
890 def __nonzero__(self
): return self
.Ok()
891 def SetFileName(*args
, **kwargs
):
892 """SetFileName(self, String filename)"""
893 return _gdi_
.IconLocation_SetFileName(*args
, **kwargs
)
895 def GetFileName(*args
, **kwargs
):
896 """GetFileName(self) -> String"""
897 return _gdi_
.IconLocation_GetFileName(*args
, **kwargs
)
899 def SetIndex(*args
, **kwargs
):
900 """SetIndex(self, int num)"""
901 return _gdi_
.IconLocation_SetIndex(*args
, **kwargs
)
903 def GetIndex(*args
, **kwargs
):
904 """GetIndex(self) -> int"""
905 return _gdi_
.IconLocation_GetIndex(*args
, **kwargs
)
908 class IconLocationPtr(IconLocation
):
909 def __init__(self
, this
):
911 if not hasattr(self
,"thisown"): self
.thisown
= 0
912 self
.__class
__ = IconLocation
913 _gdi_
.IconLocation_swigregister(IconLocationPtr
)
915 class IconBundle(object):
917 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
918 def __init__(self
, *args
, **kwargs
):
919 """__init__(self) -> IconBundle"""
920 newobj
= _gdi_
.new_IconBundle(*args
, **kwargs
)
921 self
.this
= newobj
.this
924 def __del__(self
, destroy
=_gdi_
.delete_IconBundle
):
927 if self
.thisown
: destroy(self
)
930 def AddIcon(*args
, **kwargs
):
931 """AddIcon(self, Icon icon)"""
932 return _gdi_
.IconBundle_AddIcon(*args
, **kwargs
)
934 def AddIconFromFile(*args
, **kwargs
):
935 """AddIconFromFile(self, String file, long type)"""
936 return _gdi_
.IconBundle_AddIconFromFile(*args
, **kwargs
)
938 def GetIcon(*args
, **kwargs
):
939 """GetIcon(self, Size size) -> Icon"""
940 return _gdi_
.IconBundle_GetIcon(*args
, **kwargs
)
943 class IconBundlePtr(IconBundle
):
944 def __init__(self
, this
):
946 if not hasattr(self
,"thisown"): self
.thisown
= 0
947 self
.__class
__ = IconBundle
948 _gdi_
.IconBundle_swigregister(IconBundlePtr
)
950 def IconBundleFromFile(*args
, **kwargs
):
951 """IconBundleFromFile(String file, long type) -> IconBundle"""
952 val
= _gdi_
.new_IconBundleFromFile(*args
, **kwargs
)
956 def IconBundleFromIcon(*args
, **kwargs
):
957 """IconBundleFromIcon(Icon icon) -> IconBundle"""
958 val
= _gdi_
.new_IconBundleFromIcon(*args
, **kwargs
)
962 class Cursor(GDIObject
):
964 A cursor is a small bitmap usually used for denoting where the mouse
965 pointer is, with a picture that might indicate the interpretation of a
968 A single cursor object may be used in many windows (any subwindow
969 type). The wxWindows convention is to set the cursor for a window, as
970 in X, rather than to set it globally as in MS Windows, although a
971 global `wx.SetCursor` function is also available for use on MS Windows.
975 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
976 def __init__(self
, *args
, **kwargs
):
978 __init__(self, String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor
980 Construct a Cursor from a file. Specify the type of file using
981 wx.BITAMP_TYPE* constants, and specify the hotspot if not using a cur
984 This constructor is not available on wxGTK, use ``wx.StockCursor``,
985 ``wx.CursorFromImage``, or ``wx.CursorFromBits`` instead.
987 newobj
= _gdi_
.new_Cursor(*args
, **kwargs
)
988 self
.this
= newobj
.this
991 def __del__(self
, destroy
=_gdi_
.delete_Cursor
):
994 if self
.thisown
: destroy(self
)
997 def GetHandle(*args
, **kwargs
):
999 GetHandle(self) -> long
1001 Get the MS Windows handle for the cursor
1003 return _gdi_
.Cursor_GetHandle(*args
, **kwargs
)
1005 def SetHandle(*args
, **kwargs
):
1007 SetHandle(self, long handle)
1009 Set the MS Windows handle to use for the cursor
1011 return _gdi_
.Cursor_SetHandle(*args
, **kwargs
)
1013 def Ok(*args
, **kwargs
):
1014 """Ok(self) -> bool"""
1015 return _gdi_
.Cursor_Ok(*args
, **kwargs
)
1017 def __nonzero__(self
): return self
.Ok()
1018 def GetWidth(*args
, **kwargs
):
1019 """GetWidth(self) -> int"""
1020 return _gdi_
.Cursor_GetWidth(*args
, **kwargs
)
1022 def GetHeight(*args
, **kwargs
):
1023 """GetHeight(self) -> int"""
1024 return _gdi_
.Cursor_GetHeight(*args
, **kwargs
)
1026 def GetDepth(*args
, **kwargs
):
1027 """GetDepth(self) -> int"""
1028 return _gdi_
.Cursor_GetDepth(*args
, **kwargs
)
1030 def SetWidth(*args
, **kwargs
):
1031 """SetWidth(self, int w)"""
1032 return _gdi_
.Cursor_SetWidth(*args
, **kwargs
)
1034 def SetHeight(*args
, **kwargs
):
1035 """SetHeight(self, int h)"""
1036 return _gdi_
.Cursor_SetHeight(*args
, **kwargs
)
1038 def SetDepth(*args
, **kwargs
):
1039 """SetDepth(self, int d)"""
1040 return _gdi_
.Cursor_SetDepth(*args
, **kwargs
)
1042 def SetSize(*args
, **kwargs
):
1043 """SetSize(self, Size size)"""
1044 return _gdi_
.Cursor_SetSize(*args
, **kwargs
)
1047 class CursorPtr(Cursor
):
1048 def __init__(self
, this
):
1050 if not hasattr(self
,"thisown"): self
.thisown
= 0
1051 self
.__class
__ = Cursor
1052 _gdi_
.Cursor_swigregister(CursorPtr
)
1054 def StockCursor(*args
, **kwargs
):
1056 StockCursor(int id) -> Cursor
1058 Create a cursor using one of the stock cursors. Note that not all
1059 cursors are available on all platforms.
1061 val
= _gdi_
.new_StockCursor(*args
, **kwargs
)
1065 def CursorFromImage(*args
, **kwargs
):
1067 CursorFromImage(Image image) -> Cursor
1069 Constructs a cursor from a wxImage. The cursor is monochrome, colors
1070 with the RGB elements all greater than 127 will be foreground, colors
1071 less than this background. The mask (if any) will be used as
1074 val
= _gdi_
.new_CursorFromImage(*args
, **kwargs
)
1078 #---------------------------------------------------------------------------
1080 OutRegion
= _gdi_
.OutRegion
1081 PartRegion
= _gdi_
.PartRegion
1082 InRegion
= _gdi_
.InRegion
1083 class Region(GDIObject
):
1085 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1086 def __init__(self
, *args
, **kwargs
):
1087 """__init__(self, int x=0, int y=0, int width=0, int height=0) -> Region"""
1088 newobj
= _gdi_
.new_Region(*args
, **kwargs
)
1089 self
.this
= newobj
.this
1092 def __del__(self
, destroy
=_gdi_
.delete_Region
):
1095 if self
.thisown
: destroy(self
)
1098 def Clear(*args
, **kwargs
):
1100 return _gdi_
.Region_Clear(*args
, **kwargs
)
1102 def Offset(*args
, **kwargs
):
1103 """Offset(self, int x, int y) -> bool"""
1104 return _gdi_
.Region_Offset(*args
, **kwargs
)
1106 def Contains(*args
, **kwargs
):
1107 """Contains(self, int x, int y) -> int"""
1108 return _gdi_
.Region_Contains(*args
, **kwargs
)
1110 def ContainsPoint(*args
, **kwargs
):
1111 """ContainsPoint(self, Point pt) -> int"""
1112 return _gdi_
.Region_ContainsPoint(*args
, **kwargs
)
1114 def ContainsRect(*args
, **kwargs
):
1115 """ContainsRect(self, Rect rect) -> int"""
1116 return _gdi_
.Region_ContainsRect(*args
, **kwargs
)
1118 def ContainsRectDim(*args
, **kwargs
):
1119 """ContainsRectDim(self, int x, int y, int w, int h) -> int"""
1120 return _gdi_
.Region_ContainsRectDim(*args
, **kwargs
)
1122 def GetBox(*args
, **kwargs
):
1123 """GetBox(self) -> Rect"""
1124 return _gdi_
.Region_GetBox(*args
, **kwargs
)
1126 def Intersect(*args
, **kwargs
):
1127 """Intersect(self, int x, int y, int width, int height) -> bool"""
1128 return _gdi_
.Region_Intersect(*args
, **kwargs
)
1130 def IntersectRect(*args
, **kwargs
):
1131 """IntersectRect(self, Rect rect) -> bool"""
1132 return _gdi_
.Region_IntersectRect(*args
, **kwargs
)
1134 def IntersectRegion(*args
, **kwargs
):
1135 """IntersectRegion(self, Region region) -> bool"""
1136 return _gdi_
.Region_IntersectRegion(*args
, **kwargs
)
1138 def IsEmpty(*args
, **kwargs
):
1139 """IsEmpty(self) -> bool"""
1140 return _gdi_
.Region_IsEmpty(*args
, **kwargs
)
1142 def Union(*args
, **kwargs
):
1143 """Union(self, int x, int y, int width, int height) -> bool"""
1144 return _gdi_
.Region_Union(*args
, **kwargs
)
1146 def UnionRect(*args
, **kwargs
):
1147 """UnionRect(self, Rect rect) -> bool"""
1148 return _gdi_
.Region_UnionRect(*args
, **kwargs
)
1150 def UnionRegion(*args
, **kwargs
):
1151 """UnionRegion(self, Region region) -> bool"""
1152 return _gdi_
.Region_UnionRegion(*args
, **kwargs
)
1154 def Subtract(*args
, **kwargs
):
1155 """Subtract(self, int x, int y, int width, int height) -> bool"""
1156 return _gdi_
.Region_Subtract(*args
, **kwargs
)
1158 def SubtractRect(*args
, **kwargs
):
1159 """SubtractRect(self, Rect rect) -> bool"""
1160 return _gdi_
.Region_SubtractRect(*args
, **kwargs
)
1162 def SubtractRegion(*args
, **kwargs
):
1163 """SubtractRegion(self, Region region) -> bool"""
1164 return _gdi_
.Region_SubtractRegion(*args
, **kwargs
)
1166 def Xor(*args
, **kwargs
):
1167 """Xor(self, int x, int y, int width, int height) -> bool"""
1168 return _gdi_
.Region_Xor(*args
, **kwargs
)
1170 def XorRect(*args
, **kwargs
):
1171 """XorRect(self, Rect rect) -> bool"""
1172 return _gdi_
.Region_XorRect(*args
, **kwargs
)
1174 def XorRegion(*args
, **kwargs
):
1175 """XorRegion(self, Region region) -> bool"""
1176 return _gdi_
.Region_XorRegion(*args
, **kwargs
)
1178 def ConvertToBitmap(*args
, **kwargs
):
1179 """ConvertToBitmap(self) -> Bitmap"""
1180 return _gdi_
.Region_ConvertToBitmap(*args
, **kwargs
)
1182 def UnionBitmap(*args
, **kwargs
):
1183 """UnionBitmap(self, Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
1184 return _gdi_
.Region_UnionBitmap(*args
, **kwargs
)
1187 class RegionPtr(Region
):
1188 def __init__(self
, this
):
1190 if not hasattr(self
,"thisown"): self
.thisown
= 0
1191 self
.__class
__ = Region
1192 _gdi_
.Region_swigregister(RegionPtr
)
1194 def RegionFromBitmap(*args
, **kwargs
):
1195 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
1196 val
= _gdi_
.new_RegionFromBitmap(*args
, **kwargs
)
1200 def RegionFromPoints(*args
, **kwargs
):
1201 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
1202 val
= _gdi_
.new_RegionFromPoints(*args
, **kwargs
)
1206 class RegionIterator(_core
.Object
):
1208 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1209 def __init__(self
, *args
, **kwargs
):
1210 """__init__(self, Region region) -> RegionIterator"""
1211 newobj
= _gdi_
.new_RegionIterator(*args
, **kwargs
)
1212 self
.this
= newobj
.this
1215 def __del__(self
, destroy
=_gdi_
.delete_RegionIterator
):
1218 if self
.thisown
: destroy(self
)
1221 def GetX(*args
, **kwargs
):
1222 """GetX(self) -> int"""
1223 return _gdi_
.RegionIterator_GetX(*args
, **kwargs
)
1225 def GetY(*args
, **kwargs
):
1226 """GetY(self) -> int"""
1227 return _gdi_
.RegionIterator_GetY(*args
, **kwargs
)
1229 def GetW(*args
, **kwargs
):
1230 """GetW(self) -> int"""
1231 return _gdi_
.RegionIterator_GetW(*args
, **kwargs
)
1233 def GetWidth(*args
, **kwargs
):
1234 """GetWidth(self) -> int"""
1235 return _gdi_
.RegionIterator_GetWidth(*args
, **kwargs
)
1237 def GetH(*args
, **kwargs
):
1238 """GetH(self) -> int"""
1239 return _gdi_
.RegionIterator_GetH(*args
, **kwargs
)
1241 def GetHeight(*args
, **kwargs
):
1242 """GetHeight(self) -> int"""
1243 return _gdi_
.RegionIterator_GetHeight(*args
, **kwargs
)
1245 def GetRect(*args
, **kwargs
):
1246 """GetRect(self) -> Rect"""
1247 return _gdi_
.RegionIterator_GetRect(*args
, **kwargs
)
1249 def HaveRects(*args
, **kwargs
):
1250 """HaveRects(self) -> bool"""
1251 return _gdi_
.RegionIterator_HaveRects(*args
, **kwargs
)
1253 def Reset(*args
, **kwargs
):
1255 return _gdi_
.RegionIterator_Reset(*args
, **kwargs
)
1257 def Next(*args
, **kwargs
):
1259 return _gdi_
.RegionIterator_Next(*args
, **kwargs
)
1261 def __nonzero__(*args
, **kwargs
):
1262 """__nonzero__(self) -> bool"""
1263 return _gdi_
.RegionIterator___nonzero__(*args
, **kwargs
)
1266 class RegionIteratorPtr(RegionIterator
):
1267 def __init__(self
, this
):
1269 if not hasattr(self
,"thisown"): self
.thisown
= 0
1270 self
.__class
__ = RegionIterator
1271 _gdi_
.RegionIterator_swigregister(RegionIteratorPtr
)
1273 #---------------------------------------------------------------------------
1275 FONTFAMILY_DEFAULT
= _gdi_
.FONTFAMILY_DEFAULT
1276 FONTFAMILY_DECORATIVE
= _gdi_
.FONTFAMILY_DECORATIVE
1277 FONTFAMILY_ROMAN
= _gdi_
.FONTFAMILY_ROMAN
1278 FONTFAMILY_SCRIPT
= _gdi_
.FONTFAMILY_SCRIPT
1279 FONTFAMILY_SWISS
= _gdi_
.FONTFAMILY_SWISS
1280 FONTFAMILY_MODERN
= _gdi_
.FONTFAMILY_MODERN
1281 FONTFAMILY_TELETYPE
= _gdi_
.FONTFAMILY_TELETYPE
1282 FONTFAMILY_MAX
= _gdi_
.FONTFAMILY_MAX
1283 FONTFAMILY_UNKNOWN
= _gdi_
.FONTFAMILY_UNKNOWN
1284 FONTSTYLE_NORMAL
= _gdi_
.FONTSTYLE_NORMAL
1285 FONTSTYLE_ITALIC
= _gdi_
.FONTSTYLE_ITALIC
1286 FONTSTYLE_SLANT
= _gdi_
.FONTSTYLE_SLANT
1287 FONTSTYLE_MAX
= _gdi_
.FONTSTYLE_MAX
1288 FONTWEIGHT_NORMAL
= _gdi_
.FONTWEIGHT_NORMAL
1289 FONTWEIGHT_LIGHT
= _gdi_
.FONTWEIGHT_LIGHT
1290 FONTWEIGHT_BOLD
= _gdi_
.FONTWEIGHT_BOLD
1291 FONTWEIGHT_MAX
= _gdi_
.FONTWEIGHT_MAX
1292 FONTFLAG_DEFAULT
= _gdi_
.FONTFLAG_DEFAULT
1293 FONTFLAG_ITALIC
= _gdi_
.FONTFLAG_ITALIC
1294 FONTFLAG_SLANT
= _gdi_
.FONTFLAG_SLANT
1295 FONTFLAG_LIGHT
= _gdi_
.FONTFLAG_LIGHT
1296 FONTFLAG_BOLD
= _gdi_
.FONTFLAG_BOLD
1297 FONTFLAG_ANTIALIASED
= _gdi_
.FONTFLAG_ANTIALIASED
1298 FONTFLAG_NOT_ANTIALIASED
= _gdi_
.FONTFLAG_NOT_ANTIALIASED
1299 FONTFLAG_UNDERLINED
= _gdi_
.FONTFLAG_UNDERLINED
1300 FONTFLAG_STRIKETHROUGH
= _gdi_
.FONTFLAG_STRIKETHROUGH
1301 FONTFLAG_MASK
= _gdi_
.FONTFLAG_MASK
1302 FONTENCODING_SYSTEM
= _gdi_
.FONTENCODING_SYSTEM
1303 FONTENCODING_DEFAULT
= _gdi_
.FONTENCODING_DEFAULT
1304 FONTENCODING_ISO8859_1
= _gdi_
.FONTENCODING_ISO8859_1
1305 FONTENCODING_ISO8859_2
= _gdi_
.FONTENCODING_ISO8859_2
1306 FONTENCODING_ISO8859_3
= _gdi_
.FONTENCODING_ISO8859_3
1307 FONTENCODING_ISO8859_4
= _gdi_
.FONTENCODING_ISO8859_4
1308 FONTENCODING_ISO8859_5
= _gdi_
.FONTENCODING_ISO8859_5
1309 FONTENCODING_ISO8859_6
= _gdi_
.FONTENCODING_ISO8859_6
1310 FONTENCODING_ISO8859_7
= _gdi_
.FONTENCODING_ISO8859_7
1311 FONTENCODING_ISO8859_8
= _gdi_
.FONTENCODING_ISO8859_8
1312 FONTENCODING_ISO8859_9
= _gdi_
.FONTENCODING_ISO8859_9
1313 FONTENCODING_ISO8859_10
= _gdi_
.FONTENCODING_ISO8859_10
1314 FONTENCODING_ISO8859_11
= _gdi_
.FONTENCODING_ISO8859_11
1315 FONTENCODING_ISO8859_12
= _gdi_
.FONTENCODING_ISO8859_12
1316 FONTENCODING_ISO8859_13
= _gdi_
.FONTENCODING_ISO8859_13
1317 FONTENCODING_ISO8859_14
= _gdi_
.FONTENCODING_ISO8859_14
1318 FONTENCODING_ISO8859_15
= _gdi_
.FONTENCODING_ISO8859_15
1319 FONTENCODING_ISO8859_MAX
= _gdi_
.FONTENCODING_ISO8859_MAX
1320 FONTENCODING_KOI8
= _gdi_
.FONTENCODING_KOI8
1321 FONTENCODING_KOI8_U
= _gdi_
.FONTENCODING_KOI8_U
1322 FONTENCODING_ALTERNATIVE
= _gdi_
.FONTENCODING_ALTERNATIVE
1323 FONTENCODING_BULGARIAN
= _gdi_
.FONTENCODING_BULGARIAN
1324 FONTENCODING_CP437
= _gdi_
.FONTENCODING_CP437
1325 FONTENCODING_CP850
= _gdi_
.FONTENCODING_CP850
1326 FONTENCODING_CP852
= _gdi_
.FONTENCODING_CP852
1327 FONTENCODING_CP855
= _gdi_
.FONTENCODING_CP855
1328 FONTENCODING_CP866
= _gdi_
.FONTENCODING_CP866
1329 FONTENCODING_CP874
= _gdi_
.FONTENCODING_CP874
1330 FONTENCODING_CP932
= _gdi_
.FONTENCODING_CP932
1331 FONTENCODING_CP936
= _gdi_
.FONTENCODING_CP936
1332 FONTENCODING_CP949
= _gdi_
.FONTENCODING_CP949
1333 FONTENCODING_CP950
= _gdi_
.FONTENCODING_CP950
1334 FONTENCODING_CP1250
= _gdi_
.FONTENCODING_CP1250
1335 FONTENCODING_CP1251
= _gdi_
.FONTENCODING_CP1251
1336 FONTENCODING_CP1252
= _gdi_
.FONTENCODING_CP1252
1337 FONTENCODING_CP1253
= _gdi_
.FONTENCODING_CP1253
1338 FONTENCODING_CP1254
= _gdi_
.FONTENCODING_CP1254
1339 FONTENCODING_CP1255
= _gdi_
.FONTENCODING_CP1255
1340 FONTENCODING_CP1256
= _gdi_
.FONTENCODING_CP1256
1341 FONTENCODING_CP1257
= _gdi_
.FONTENCODING_CP1257
1342 FONTENCODING_CP12_MAX
= _gdi_
.FONTENCODING_CP12_MAX
1343 FONTENCODING_UTF7
= _gdi_
.FONTENCODING_UTF7
1344 FONTENCODING_UTF8
= _gdi_
.FONTENCODING_UTF8
1345 FONTENCODING_EUC_JP
= _gdi_
.FONTENCODING_EUC_JP
1346 FONTENCODING_UTF16BE
= _gdi_
.FONTENCODING_UTF16BE
1347 FONTENCODING_UTF16LE
= _gdi_
.FONTENCODING_UTF16LE
1348 FONTENCODING_UTF32BE
= _gdi_
.FONTENCODING_UTF32BE
1349 FONTENCODING_UTF32LE
= _gdi_
.FONTENCODING_UTF32LE
1350 FONTENCODING_MACROMAN
= _gdi_
.FONTENCODING_MACROMAN
1351 FONTENCODING_MACJAPANESE
= _gdi_
.FONTENCODING_MACJAPANESE
1352 FONTENCODING_MACCHINESETRAD
= _gdi_
.FONTENCODING_MACCHINESETRAD
1353 FONTENCODING_MACKOREAN
= _gdi_
.FONTENCODING_MACKOREAN
1354 FONTENCODING_MACARABIC
= _gdi_
.FONTENCODING_MACARABIC
1355 FONTENCODING_MACHEBREW
= _gdi_
.FONTENCODING_MACHEBREW
1356 FONTENCODING_MACGREEK
= _gdi_
.FONTENCODING_MACGREEK
1357 FONTENCODING_MACCYRILLIC
= _gdi_
.FONTENCODING_MACCYRILLIC
1358 FONTENCODING_MACDEVANAGARI
= _gdi_
.FONTENCODING_MACDEVANAGARI
1359 FONTENCODING_MACGURMUKHI
= _gdi_
.FONTENCODING_MACGURMUKHI
1360 FONTENCODING_MACGUJARATI
= _gdi_
.FONTENCODING_MACGUJARATI
1361 FONTENCODING_MACORIYA
= _gdi_
.FONTENCODING_MACORIYA
1362 FONTENCODING_MACBENGALI
= _gdi_
.FONTENCODING_MACBENGALI
1363 FONTENCODING_MACTAMIL
= _gdi_
.FONTENCODING_MACTAMIL
1364 FONTENCODING_MACTELUGU
= _gdi_
.FONTENCODING_MACTELUGU
1365 FONTENCODING_MACKANNADA
= _gdi_
.FONTENCODING_MACKANNADA
1366 FONTENCODING_MACMALAJALAM
= _gdi_
.FONTENCODING_MACMALAJALAM
1367 FONTENCODING_MACSINHALESE
= _gdi_
.FONTENCODING_MACSINHALESE
1368 FONTENCODING_MACBURMESE
= _gdi_
.FONTENCODING_MACBURMESE
1369 FONTENCODING_MACKHMER
= _gdi_
.FONTENCODING_MACKHMER
1370 FONTENCODING_MACTHAI
= _gdi_
.FONTENCODING_MACTHAI
1371 FONTENCODING_MACLAOTIAN
= _gdi_
.FONTENCODING_MACLAOTIAN
1372 FONTENCODING_MACGEORGIAN
= _gdi_
.FONTENCODING_MACGEORGIAN
1373 FONTENCODING_MACARMENIAN
= _gdi_
.FONTENCODING_MACARMENIAN
1374 FONTENCODING_MACCHINESESIMP
= _gdi_
.FONTENCODING_MACCHINESESIMP
1375 FONTENCODING_MACTIBETAN
= _gdi_
.FONTENCODING_MACTIBETAN
1376 FONTENCODING_MACMONGOLIAN
= _gdi_
.FONTENCODING_MACMONGOLIAN
1377 FONTENCODING_MACETHIOPIC
= _gdi_
.FONTENCODING_MACETHIOPIC
1378 FONTENCODING_MACCENTRALEUR
= _gdi_
.FONTENCODING_MACCENTRALEUR
1379 FONTENCODING_MACVIATNAMESE
= _gdi_
.FONTENCODING_MACVIATNAMESE
1380 FONTENCODING_MACARABICEXT
= _gdi_
.FONTENCODING_MACARABICEXT
1381 FONTENCODING_MACSYMBOL
= _gdi_
.FONTENCODING_MACSYMBOL
1382 FONTENCODING_MACDINGBATS
= _gdi_
.FONTENCODING_MACDINGBATS
1383 FONTENCODING_MACTURKISH
= _gdi_
.FONTENCODING_MACTURKISH
1384 FONTENCODING_MACCROATIAN
= _gdi_
.FONTENCODING_MACCROATIAN
1385 FONTENCODING_MACICELANDIC
= _gdi_
.FONTENCODING_MACICELANDIC
1386 FONTENCODING_MACROMANIAN
= _gdi_
.FONTENCODING_MACROMANIAN
1387 FONTENCODING_MACCELTIC
= _gdi_
.FONTENCODING_MACCELTIC
1388 FONTENCODING_MACGAELIC
= _gdi_
.FONTENCODING_MACGAELIC
1389 FONTENCODING_MACKEYBOARD
= _gdi_
.FONTENCODING_MACKEYBOARD
1390 FONTENCODING_MACMIN
= _gdi_
.FONTENCODING_MACMIN
1391 FONTENCODING_MACMAX
= _gdi_
.FONTENCODING_MACMAX
1392 FONTENCODING_MAX
= _gdi_
.FONTENCODING_MAX
1393 FONTENCODING_UTF16
= _gdi_
.FONTENCODING_UTF16
1394 FONTENCODING_UTF32
= _gdi_
.FONTENCODING_UTF32
1395 FONTENCODING_UNICODE
= _gdi_
.FONTENCODING_UNICODE
1396 FONTENCODING_GB2312
= _gdi_
.FONTENCODING_GB2312
1397 FONTENCODING_BIG5
= _gdi_
.FONTENCODING_BIG5
1398 FONTENCODING_SHIFT_JIS
= _gdi_
.FONTENCODING_SHIFT_JIS
1399 #---------------------------------------------------------------------------
1401 class NativeFontInfo(object):
1403 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1404 def __init__(self
, *args
, **kwargs
):
1405 """__init__(self) -> NativeFontInfo"""
1406 newobj
= _gdi_
.new_NativeFontInfo(*args
, **kwargs
)
1407 self
.this
= newobj
.this
1410 def __del__(self
, destroy
=_gdi_
.delete_NativeFontInfo
):
1413 if self
.thisown
: destroy(self
)
1416 def Init(*args
, **kwargs
):
1418 return _gdi_
.NativeFontInfo_Init(*args
, **kwargs
)
1420 def InitFromFont(*args
, **kwargs
):
1421 """InitFromFont(self, Font font)"""
1422 return _gdi_
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1424 def GetPointSize(*args
, **kwargs
):
1425 """GetPointSize(self) -> int"""
1426 return _gdi_
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1428 def GetStyle(*args
, **kwargs
):
1429 """GetStyle(self) -> int"""
1430 return _gdi_
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1432 def GetWeight(*args
, **kwargs
):
1433 """GetWeight(self) -> int"""
1434 return _gdi_
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1436 def GetUnderlined(*args
, **kwargs
):
1437 """GetUnderlined(self) -> bool"""
1438 return _gdi_
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1440 def GetFaceName(*args
, **kwargs
):
1441 """GetFaceName(self) -> String"""
1442 return _gdi_
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1444 def GetFamily(*args
, **kwargs
):
1445 """GetFamily(self) -> int"""
1446 return _gdi_
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1448 def GetEncoding(*args
, **kwargs
):
1449 """GetEncoding(self) -> int"""
1450 return _gdi_
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1452 def SetPointSize(*args
, **kwargs
):
1453 """SetPointSize(self, int pointsize)"""
1454 return _gdi_
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1456 def SetStyle(*args
, **kwargs
):
1457 """SetStyle(self, int style)"""
1458 return _gdi_
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1460 def SetWeight(*args
, **kwargs
):
1461 """SetWeight(self, int weight)"""
1462 return _gdi_
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1464 def SetUnderlined(*args
, **kwargs
):
1465 """SetUnderlined(self, bool underlined)"""
1466 return _gdi_
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1468 def SetFaceName(*args
, **kwargs
):
1469 """SetFaceName(self, String facename)"""
1470 return _gdi_
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1472 def SetFamily(*args
, **kwargs
):
1473 """SetFamily(self, int family)"""
1474 return _gdi_
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1476 def SetEncoding(*args
, **kwargs
):
1477 """SetEncoding(self, int encoding)"""
1478 return _gdi_
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1480 def FromString(*args
, **kwargs
):
1481 """FromString(self, String s) -> bool"""
1482 return _gdi_
.NativeFontInfo_FromString(*args
, **kwargs
)
1484 def ToString(*args
, **kwargs
):
1485 """ToString(self) -> String"""
1486 return _gdi_
.NativeFontInfo_ToString(*args
, **kwargs
)
1488 def __str__(*args
, **kwargs
):
1489 """__str__(self) -> String"""
1490 return _gdi_
.NativeFontInfo___str__(*args
, **kwargs
)
1492 def FromUserString(*args
, **kwargs
):
1493 """FromUserString(self, String s) -> bool"""
1494 return _gdi_
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1496 def ToUserString(*args
, **kwargs
):
1497 """ToUserString(self) -> String"""
1498 return _gdi_
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1501 class NativeFontInfoPtr(NativeFontInfo
):
1502 def __init__(self
, this
):
1504 if not hasattr(self
,"thisown"): self
.thisown
= 0
1505 self
.__class
__ = NativeFontInfo
1506 _gdi_
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1508 class NativeEncodingInfo(object):
1510 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1511 facename
= property(_gdi_
.NativeEncodingInfo_facename_get
, _gdi_
.NativeEncodingInfo_facename_set
)
1512 encoding
= property(_gdi_
.NativeEncodingInfo_encoding_get
, _gdi_
.NativeEncodingInfo_encoding_set
)
1513 def __init__(self
, *args
, **kwargs
):
1514 """__init__(self) -> NativeEncodingInfo"""
1515 newobj
= _gdi_
.new_NativeEncodingInfo(*args
, **kwargs
)
1516 self
.this
= newobj
.this
1519 def __del__(self
, destroy
=_gdi_
.delete_NativeEncodingInfo
):
1522 if self
.thisown
: destroy(self
)
1525 def FromString(*args
, **kwargs
):
1526 """FromString(self, String s) -> bool"""
1527 return _gdi_
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1529 def ToString(*args
, **kwargs
):
1530 """ToString(self) -> String"""
1531 return _gdi_
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1534 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1535 def __init__(self
, this
):
1537 if not hasattr(self
,"thisown"): self
.thisown
= 0
1538 self
.__class
__ = NativeEncodingInfo
1539 _gdi_
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1542 def GetNativeFontEncoding(*args
, **kwargs
):
1543 """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo"""
1544 return _gdi_
.GetNativeFontEncoding(*args
, **kwargs
)
1546 def TestFontEncoding(*args
, **kwargs
):
1547 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1548 return _gdi_
.TestFontEncoding(*args
, **kwargs
)
1549 #---------------------------------------------------------------------------
1551 class FontMapper(object):
1553 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1554 def __init__(self
, *args
, **kwargs
):
1555 """__init__(self) -> FontMapper"""
1556 newobj
= _gdi_
.new_FontMapper(*args
, **kwargs
)
1557 self
.this
= newobj
.this
1560 def __del__(self
, destroy
=_gdi_
.delete_FontMapper
):
1563 if self
.thisown
: destroy(self
)
1566 def Get(*args
, **kwargs
):
1567 """Get() -> FontMapper"""
1568 return _gdi_
.FontMapper_Get(*args
, **kwargs
)
1570 Get
= staticmethod(Get
)
1571 def Set(*args
, **kwargs
):
1572 """Set(FontMapper mapper) -> FontMapper"""
1573 return _gdi_
.FontMapper_Set(*args
, **kwargs
)
1575 Set
= staticmethod(Set
)
1576 def CharsetToEncoding(*args
, **kwargs
):
1577 """CharsetToEncoding(self, String charset, bool interactive=True) -> int"""
1578 return _gdi_
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1580 def GetSupportedEncodingsCount(*args
, **kwargs
):
1581 """GetSupportedEncodingsCount() -> size_t"""
1582 return _gdi_
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1584 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1585 def GetEncoding(*args
, **kwargs
):
1586 """GetEncoding(size_t n) -> int"""
1587 return _gdi_
.FontMapper_GetEncoding(*args
, **kwargs
)
1589 GetEncoding
= staticmethod(GetEncoding
)
1590 def GetEncodingName(*args
, **kwargs
):
1591 """GetEncodingName(int encoding) -> String"""
1592 return _gdi_
.FontMapper_GetEncodingName(*args
, **kwargs
)
1594 GetEncodingName
= staticmethod(GetEncodingName
)
1595 def GetEncodingDescription(*args
, **kwargs
):
1596 """GetEncodingDescription(int encoding) -> String"""
1597 return _gdi_
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1599 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1600 def GetEncodingFromName(*args
, **kwargs
):
1601 """GetEncodingFromName(String name) -> int"""
1602 return _gdi_
.FontMapper_GetEncodingFromName(*args
, **kwargs
)
1604 GetEncodingFromName
= staticmethod(GetEncodingFromName
)
1605 def SetConfig(*args
, **kwargs
):
1606 """SetConfig(self, ConfigBase config)"""
1607 return _gdi_
.FontMapper_SetConfig(*args
, **kwargs
)
1609 def SetConfigPath(*args
, **kwargs
):
1610 """SetConfigPath(self, String prefix)"""
1611 return _gdi_
.FontMapper_SetConfigPath(*args
, **kwargs
)
1613 def GetDefaultConfigPath(*args
, **kwargs
):
1614 """GetDefaultConfigPath() -> String"""
1615 return _gdi_
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1617 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1618 def GetAltForEncoding(*args
, **kwargs
):
1619 """GetAltForEncoding(self, int encoding, String facename=EmptyString, bool interactive=True) -> PyObject"""
1620 return _gdi_
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1622 def IsEncodingAvailable(*args
, **kwargs
):
1623 """IsEncodingAvailable(self, int encoding, String facename=EmptyString) -> bool"""
1624 return _gdi_
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1626 def SetDialogParent(*args
, **kwargs
):
1627 """SetDialogParent(self, Window parent)"""
1628 return _gdi_
.FontMapper_SetDialogParent(*args
, **kwargs
)
1630 def SetDialogTitle(*args
, **kwargs
):
1631 """SetDialogTitle(self, String title)"""
1632 return _gdi_
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1635 class FontMapperPtr(FontMapper
):
1636 def __init__(self
, this
):
1638 if not hasattr(self
,"thisown"): self
.thisown
= 0
1639 self
.__class
__ = FontMapper
1640 _gdi_
.FontMapper_swigregister(FontMapperPtr
)
1642 def FontMapper_Get(*args
, **kwargs
):
1643 """FontMapper_Get() -> FontMapper"""
1644 return _gdi_
.FontMapper_Get(*args
, **kwargs
)
1646 def FontMapper_Set(*args
, **kwargs
):
1647 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1648 return _gdi_
.FontMapper_Set(*args
, **kwargs
)
1650 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1651 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1652 return _gdi_
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1654 def FontMapper_GetEncoding(*args
, **kwargs
):
1655 """FontMapper_GetEncoding(size_t n) -> int"""
1656 return _gdi_
.FontMapper_GetEncoding(*args
, **kwargs
)
1658 def FontMapper_GetEncodingName(*args
, **kwargs
):
1659 """FontMapper_GetEncodingName(int encoding) -> String"""
1660 return _gdi_
.FontMapper_GetEncodingName(*args
, **kwargs
)
1662 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1663 """FontMapper_GetEncodingDescription(int encoding) -> String"""
1664 return _gdi_
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1666 def FontMapper_GetEncodingFromName(*args
, **kwargs
):
1667 """FontMapper_GetEncodingFromName(String name) -> int"""
1668 return _gdi_
.FontMapper_GetEncodingFromName(*args
, **kwargs
)
1670 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1671 """FontMapper_GetDefaultConfigPath() -> String"""
1672 return _gdi_
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1674 #---------------------------------------------------------------------------
1676 class Font(GDIObject
):
1678 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1679 def __init__(self
, *args
, **kwargs
):
1681 __init__(self, int pointSize, int family, int style, int weight, bool underline=False,
1682 String face=EmptyString,
1683 int encoding=FONTENCODING_DEFAULT) -> Font
1685 newobj
= _gdi_
.new_Font(*args
, **kwargs
)
1686 self
.this
= newobj
.this
1689 def __del__(self
, destroy
=_gdi_
.delete_Font
):
1692 if self
.thisown
: destroy(self
)
1695 def Ok(*args
, **kwargs
):
1696 """Ok(self) -> bool"""
1697 return _gdi_
.Font_Ok(*args
, **kwargs
)
1699 def __nonzero__(self
): return self
.Ok()
1700 def __eq__(*args
, **kwargs
):
1701 """__eq__(self, Font other) -> bool"""
1702 return _gdi_
.Font___eq__(*args
, **kwargs
)
1704 def __ne__(*args
, **kwargs
):
1705 """__ne__(self, Font other) -> bool"""
1706 return _gdi_
.Font___ne__(*args
, **kwargs
)
1708 def GetPointSize(*args
, **kwargs
):
1709 """GetPointSize(self) -> int"""
1710 return _gdi_
.Font_GetPointSize(*args
, **kwargs
)
1712 def GetFamily(*args
, **kwargs
):
1713 """GetFamily(self) -> int"""
1714 return _gdi_
.Font_GetFamily(*args
, **kwargs
)
1716 def GetStyle(*args
, **kwargs
):
1717 """GetStyle(self) -> int"""
1718 return _gdi_
.Font_GetStyle(*args
, **kwargs
)
1720 def GetWeight(*args
, **kwargs
):
1721 """GetWeight(self) -> int"""
1722 return _gdi_
.Font_GetWeight(*args
, **kwargs
)
1724 def GetUnderlined(*args
, **kwargs
):
1725 """GetUnderlined(self) -> bool"""
1726 return _gdi_
.Font_GetUnderlined(*args
, **kwargs
)
1728 def GetFaceName(*args
, **kwargs
):
1729 """GetFaceName(self) -> String"""
1730 return _gdi_
.Font_GetFaceName(*args
, **kwargs
)
1732 def GetEncoding(*args
, **kwargs
):
1733 """GetEncoding(self) -> int"""
1734 return _gdi_
.Font_GetEncoding(*args
, **kwargs
)
1736 def GetNativeFontInfo(*args
, **kwargs
):
1737 """GetNativeFontInfo(self) -> NativeFontInfo"""
1738 return _gdi_
.Font_GetNativeFontInfo(*args
, **kwargs
)
1740 def IsFixedWidth(*args
, **kwargs
):
1741 """IsFixedWidth(self) -> bool"""
1742 return _gdi_
.Font_IsFixedWidth(*args
, **kwargs
)
1744 def GetNativeFontInfoDesc(*args
, **kwargs
):
1745 """GetNativeFontInfoDesc(self) -> String"""
1746 return _gdi_
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1748 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1749 """GetNativeFontInfoUserDesc(self) -> String"""
1750 return _gdi_
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1752 def SetPointSize(*args
, **kwargs
):
1753 """SetPointSize(self, int pointSize)"""
1754 return _gdi_
.Font_SetPointSize(*args
, **kwargs
)
1756 def SetFamily(*args
, **kwargs
):
1757 """SetFamily(self, int family)"""
1758 return _gdi_
.Font_SetFamily(*args
, **kwargs
)
1760 def SetStyle(*args
, **kwargs
):
1761 """SetStyle(self, int style)"""
1762 return _gdi_
.Font_SetStyle(*args
, **kwargs
)
1764 def SetWeight(*args
, **kwargs
):
1765 """SetWeight(self, int weight)"""
1766 return _gdi_
.Font_SetWeight(*args
, **kwargs
)
1768 def SetFaceName(*args
, **kwargs
):
1769 """SetFaceName(self, String faceName)"""
1770 return _gdi_
.Font_SetFaceName(*args
, **kwargs
)
1772 def SetUnderlined(*args
, **kwargs
):
1773 """SetUnderlined(self, bool underlined)"""
1774 return _gdi_
.Font_SetUnderlined(*args
, **kwargs
)
1776 def SetEncoding(*args
, **kwargs
):
1777 """SetEncoding(self, int encoding)"""
1778 return _gdi_
.Font_SetEncoding(*args
, **kwargs
)
1780 def SetNativeFontInfo(*args
, **kwargs
):
1781 """SetNativeFontInfo(self, NativeFontInfo info)"""
1782 return _gdi_
.Font_SetNativeFontInfo(*args
, **kwargs
)
1784 def SetNativeFontInfoFromString(*args
, **kwargs
):
1785 """SetNativeFontInfoFromString(self, String info)"""
1786 return _gdi_
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1788 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1789 """SetNativeFontInfoUserDesc(self, String info)"""
1790 return _gdi_
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1792 def GetFamilyString(*args
, **kwargs
):
1793 """GetFamilyString(self) -> String"""
1794 return _gdi_
.Font_GetFamilyString(*args
, **kwargs
)
1796 def GetStyleString(*args
, **kwargs
):
1797 """GetStyleString(self) -> String"""
1798 return _gdi_
.Font_GetStyleString(*args
, **kwargs
)
1800 def GetWeightString(*args
, **kwargs
):
1801 """GetWeightString(self) -> String"""
1802 return _gdi_
.Font_GetWeightString(*args
, **kwargs
)
1804 def SetNoAntiAliasing(*args
, **kwargs
):
1805 """SetNoAntiAliasing(self, bool no=True)"""
1806 return _gdi_
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1808 def GetNoAntiAliasing(*args
, **kwargs
):
1809 """GetNoAntiAliasing(self) -> bool"""
1810 return _gdi_
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1812 def GetDefaultEncoding(*args
, **kwargs
):
1813 """GetDefaultEncoding() -> int"""
1814 return _gdi_
.Font_GetDefaultEncoding(*args
, **kwargs
)
1816 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1817 def SetDefaultEncoding(*args
, **kwargs
):
1818 """SetDefaultEncoding(int encoding)"""
1819 return _gdi_
.Font_SetDefaultEncoding(*args
, **kwargs
)
1821 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1823 class FontPtr(Font
):
1824 def __init__(self
, this
):
1826 if not hasattr(self
,"thisown"): self
.thisown
= 0
1827 self
.__class
__ = Font
1828 _gdi_
.Font_swigregister(FontPtr
)
1830 def FontFromNativeInfo(*args
, **kwargs
):
1831 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1832 val
= _gdi_
.new_FontFromNativeInfo(*args
, **kwargs
)
1836 def FontFromNativeInfoString(*args
, **kwargs
):
1837 """FontFromNativeInfoString(String info) -> Font"""
1838 val
= _gdi_
.new_FontFromNativeInfoString(*args
, **kwargs
)
1842 def Font2(*args
, **kwargs
):
1844 Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT,
1845 String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font
1847 val
= _gdi_
.new_Font2(*args
, **kwargs
)
1851 def Font_GetDefaultEncoding(*args
, **kwargs
):
1852 """Font_GetDefaultEncoding() -> int"""
1853 return _gdi_
.Font_GetDefaultEncoding(*args
, **kwargs
)
1855 def Font_SetDefaultEncoding(*args
, **kwargs
):
1856 """Font_SetDefaultEncoding(int encoding)"""
1857 return _gdi_
.Font_SetDefaultEncoding(*args
, **kwargs
)
1859 #---------------------------------------------------------------------------
1861 class FontEnumerator(object):
1863 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1864 def __init__(self
, *args
, **kwargs
):
1865 """__init__(self) -> FontEnumerator"""
1866 newobj
= _gdi_
.new_FontEnumerator(*args
, **kwargs
)
1867 self
.this
= newobj
.this
1870 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1872 def __del__(self
, destroy
=_gdi_
.delete_FontEnumerator
):
1875 if self
.thisown
: destroy(self
)
1878 def _setCallbackInfo(*args
, **kwargs
):
1879 """_setCallbackInfo(self, PyObject self, PyObject _class, bool incref)"""
1880 return _gdi_
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1882 def EnumerateFacenames(*args
, **kwargs
):
1883 """EnumerateFacenames(self, int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1884 return _gdi_
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1886 def EnumerateEncodings(*args
, **kwargs
):
1887 """EnumerateEncodings(self, String facename=EmptyString) -> bool"""
1888 return _gdi_
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1890 def GetEncodings(*args
, **kwargs
):
1891 """GetEncodings(self) -> PyObject"""
1892 return _gdi_
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1894 def GetFacenames(*args
, **kwargs
):
1895 """GetFacenames(self) -> PyObject"""
1896 return _gdi_
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1899 class FontEnumeratorPtr(FontEnumerator
):
1900 def __init__(self
, this
):
1902 if not hasattr(self
,"thisown"): self
.thisown
= 0
1903 self
.__class
__ = FontEnumerator
1904 _gdi_
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1906 #---------------------------------------------------------------------------
1908 LANGUAGE_DEFAULT
= _gdi_
.LANGUAGE_DEFAULT
1909 LANGUAGE_UNKNOWN
= _gdi_
.LANGUAGE_UNKNOWN
1910 LANGUAGE_ABKHAZIAN
= _gdi_
.LANGUAGE_ABKHAZIAN
1911 LANGUAGE_AFAR
= _gdi_
.LANGUAGE_AFAR
1912 LANGUAGE_AFRIKAANS
= _gdi_
.LANGUAGE_AFRIKAANS
1913 LANGUAGE_ALBANIAN
= _gdi_
.LANGUAGE_ALBANIAN
1914 LANGUAGE_AMHARIC
= _gdi_
.LANGUAGE_AMHARIC
1915 LANGUAGE_ARABIC
= _gdi_
.LANGUAGE_ARABIC
1916 LANGUAGE_ARABIC_ALGERIA
= _gdi_
.LANGUAGE_ARABIC_ALGERIA
1917 LANGUAGE_ARABIC_BAHRAIN
= _gdi_
.LANGUAGE_ARABIC_BAHRAIN
1918 LANGUAGE_ARABIC_EGYPT
= _gdi_
.LANGUAGE_ARABIC_EGYPT
1919 LANGUAGE_ARABIC_IRAQ
= _gdi_
.LANGUAGE_ARABIC_IRAQ
1920 LANGUAGE_ARABIC_JORDAN
= _gdi_
.LANGUAGE_ARABIC_JORDAN
1921 LANGUAGE_ARABIC_KUWAIT
= _gdi_
.LANGUAGE_ARABIC_KUWAIT
1922 LANGUAGE_ARABIC_LEBANON
= _gdi_
.LANGUAGE_ARABIC_LEBANON
1923 LANGUAGE_ARABIC_LIBYA
= _gdi_
.LANGUAGE_ARABIC_LIBYA
1924 LANGUAGE_ARABIC_MOROCCO
= _gdi_
.LANGUAGE_ARABIC_MOROCCO
1925 LANGUAGE_ARABIC_OMAN
= _gdi_
.LANGUAGE_ARABIC_OMAN
1926 LANGUAGE_ARABIC_QATAR
= _gdi_
.LANGUAGE_ARABIC_QATAR
1927 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi_
.LANGUAGE_ARABIC_SAUDI_ARABIA
1928 LANGUAGE_ARABIC_SUDAN
= _gdi_
.LANGUAGE_ARABIC_SUDAN
1929 LANGUAGE_ARABIC_SYRIA
= _gdi_
.LANGUAGE_ARABIC_SYRIA
1930 LANGUAGE_ARABIC_TUNISIA
= _gdi_
.LANGUAGE_ARABIC_TUNISIA
1931 LANGUAGE_ARABIC_UAE
= _gdi_
.LANGUAGE_ARABIC_UAE
1932 LANGUAGE_ARABIC_YEMEN
= _gdi_
.LANGUAGE_ARABIC_YEMEN
1933 LANGUAGE_ARMENIAN
= _gdi_
.LANGUAGE_ARMENIAN
1934 LANGUAGE_ASSAMESE
= _gdi_
.LANGUAGE_ASSAMESE
1935 LANGUAGE_AYMARA
= _gdi_
.LANGUAGE_AYMARA
1936 LANGUAGE_AZERI
= _gdi_
.LANGUAGE_AZERI
1937 LANGUAGE_AZERI_CYRILLIC
= _gdi_
.LANGUAGE_AZERI_CYRILLIC
1938 LANGUAGE_AZERI_LATIN
= _gdi_
.LANGUAGE_AZERI_LATIN
1939 LANGUAGE_BASHKIR
= _gdi_
.LANGUAGE_BASHKIR
1940 LANGUAGE_BASQUE
= _gdi_
.LANGUAGE_BASQUE
1941 LANGUAGE_BELARUSIAN
= _gdi_
.LANGUAGE_BELARUSIAN
1942 LANGUAGE_BENGALI
= _gdi_
.LANGUAGE_BENGALI
1943 LANGUAGE_BHUTANI
= _gdi_
.LANGUAGE_BHUTANI
1944 LANGUAGE_BIHARI
= _gdi_
.LANGUAGE_BIHARI
1945 LANGUAGE_BISLAMA
= _gdi_
.LANGUAGE_BISLAMA
1946 LANGUAGE_BRETON
= _gdi_
.LANGUAGE_BRETON
1947 LANGUAGE_BULGARIAN
= _gdi_
.LANGUAGE_BULGARIAN
1948 LANGUAGE_BURMESE
= _gdi_
.LANGUAGE_BURMESE
1949 LANGUAGE_CAMBODIAN
= _gdi_
.LANGUAGE_CAMBODIAN
1950 LANGUAGE_CATALAN
= _gdi_
.LANGUAGE_CATALAN
1951 LANGUAGE_CHINESE
= _gdi_
.LANGUAGE_CHINESE
1952 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi_
.LANGUAGE_CHINESE_SIMPLIFIED
1953 LANGUAGE_CHINESE_TRADITIONAL
= _gdi_
.LANGUAGE_CHINESE_TRADITIONAL
1954 LANGUAGE_CHINESE_HONGKONG
= _gdi_
.LANGUAGE_CHINESE_HONGKONG
1955 LANGUAGE_CHINESE_MACAU
= _gdi_
.LANGUAGE_CHINESE_MACAU
1956 LANGUAGE_CHINESE_SINGAPORE
= _gdi_
.LANGUAGE_CHINESE_SINGAPORE
1957 LANGUAGE_CHINESE_TAIWAN
= _gdi_
.LANGUAGE_CHINESE_TAIWAN
1958 LANGUAGE_CORSICAN
= _gdi_
.LANGUAGE_CORSICAN
1959 LANGUAGE_CROATIAN
= _gdi_
.LANGUAGE_CROATIAN
1960 LANGUAGE_CZECH
= _gdi_
.LANGUAGE_CZECH
1961 LANGUAGE_DANISH
= _gdi_
.LANGUAGE_DANISH
1962 LANGUAGE_DUTCH
= _gdi_
.LANGUAGE_DUTCH
1963 LANGUAGE_DUTCH_BELGIAN
= _gdi_
.LANGUAGE_DUTCH_BELGIAN
1964 LANGUAGE_ENGLISH
= _gdi_
.LANGUAGE_ENGLISH
1965 LANGUAGE_ENGLISH_UK
= _gdi_
.LANGUAGE_ENGLISH_UK
1966 LANGUAGE_ENGLISH_US
= _gdi_
.LANGUAGE_ENGLISH_US
1967 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi_
.LANGUAGE_ENGLISH_AUSTRALIA
1968 LANGUAGE_ENGLISH_BELIZE
= _gdi_
.LANGUAGE_ENGLISH_BELIZE
1969 LANGUAGE_ENGLISH_BOTSWANA
= _gdi_
.LANGUAGE_ENGLISH_BOTSWANA
1970 LANGUAGE_ENGLISH_CANADA
= _gdi_
.LANGUAGE_ENGLISH_CANADA
1971 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi_
.LANGUAGE_ENGLISH_CARIBBEAN
1972 LANGUAGE_ENGLISH_DENMARK
= _gdi_
.LANGUAGE_ENGLISH_DENMARK
1973 LANGUAGE_ENGLISH_EIRE
= _gdi_
.LANGUAGE_ENGLISH_EIRE
1974 LANGUAGE_ENGLISH_JAMAICA
= _gdi_
.LANGUAGE_ENGLISH_JAMAICA
1975 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi_
.LANGUAGE_ENGLISH_NEW_ZEALAND
1976 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi_
.LANGUAGE_ENGLISH_PHILIPPINES
1977 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi_
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1978 LANGUAGE_ENGLISH_TRINIDAD
= _gdi_
.LANGUAGE_ENGLISH_TRINIDAD
1979 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi_
.LANGUAGE_ENGLISH_ZIMBABWE
1980 LANGUAGE_ESPERANTO
= _gdi_
.LANGUAGE_ESPERANTO
1981 LANGUAGE_ESTONIAN
= _gdi_
.LANGUAGE_ESTONIAN
1982 LANGUAGE_FAEROESE
= _gdi_
.LANGUAGE_FAEROESE
1983 LANGUAGE_FARSI
= _gdi_
.LANGUAGE_FARSI
1984 LANGUAGE_FIJI
= _gdi_
.LANGUAGE_FIJI
1985 LANGUAGE_FINNISH
= _gdi_
.LANGUAGE_FINNISH
1986 LANGUAGE_FRENCH
= _gdi_
.LANGUAGE_FRENCH
1987 LANGUAGE_FRENCH_BELGIAN
= _gdi_
.LANGUAGE_FRENCH_BELGIAN
1988 LANGUAGE_FRENCH_CANADIAN
= _gdi_
.LANGUAGE_FRENCH_CANADIAN
1989 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi_
.LANGUAGE_FRENCH_LUXEMBOURG
1990 LANGUAGE_FRENCH_MONACO
= _gdi_
.LANGUAGE_FRENCH_MONACO
1991 LANGUAGE_FRENCH_SWISS
= _gdi_
.LANGUAGE_FRENCH_SWISS
1992 LANGUAGE_FRISIAN
= _gdi_
.LANGUAGE_FRISIAN
1993 LANGUAGE_GALICIAN
= _gdi_
.LANGUAGE_GALICIAN
1994 LANGUAGE_GEORGIAN
= _gdi_
.LANGUAGE_GEORGIAN
1995 LANGUAGE_GERMAN
= _gdi_
.LANGUAGE_GERMAN
1996 LANGUAGE_GERMAN_AUSTRIAN
= _gdi_
.LANGUAGE_GERMAN_AUSTRIAN
1997 LANGUAGE_GERMAN_BELGIUM
= _gdi_
.LANGUAGE_GERMAN_BELGIUM
1998 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi_
.LANGUAGE_GERMAN_LIECHTENSTEIN
1999 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi_
.LANGUAGE_GERMAN_LUXEMBOURG
2000 LANGUAGE_GERMAN_SWISS
= _gdi_
.LANGUAGE_GERMAN_SWISS
2001 LANGUAGE_GREEK
= _gdi_
.LANGUAGE_GREEK
2002 LANGUAGE_GREENLANDIC
= _gdi_
.LANGUAGE_GREENLANDIC
2003 LANGUAGE_GUARANI
= _gdi_
.LANGUAGE_GUARANI
2004 LANGUAGE_GUJARATI
= _gdi_
.LANGUAGE_GUJARATI
2005 LANGUAGE_HAUSA
= _gdi_
.LANGUAGE_HAUSA
2006 LANGUAGE_HEBREW
= _gdi_
.LANGUAGE_HEBREW
2007 LANGUAGE_HINDI
= _gdi_
.LANGUAGE_HINDI
2008 LANGUAGE_HUNGARIAN
= _gdi_
.LANGUAGE_HUNGARIAN
2009 LANGUAGE_ICELANDIC
= _gdi_
.LANGUAGE_ICELANDIC
2010 LANGUAGE_INDONESIAN
= _gdi_
.LANGUAGE_INDONESIAN
2011 LANGUAGE_INTERLINGUA
= _gdi_
.LANGUAGE_INTERLINGUA
2012 LANGUAGE_INTERLINGUE
= _gdi_
.LANGUAGE_INTERLINGUE
2013 LANGUAGE_INUKTITUT
= _gdi_
.LANGUAGE_INUKTITUT
2014 LANGUAGE_INUPIAK
= _gdi_
.LANGUAGE_INUPIAK
2015 LANGUAGE_IRISH
= _gdi_
.LANGUAGE_IRISH
2016 LANGUAGE_ITALIAN
= _gdi_
.LANGUAGE_ITALIAN
2017 LANGUAGE_ITALIAN_SWISS
= _gdi_
.LANGUAGE_ITALIAN_SWISS
2018 LANGUAGE_JAPANESE
= _gdi_
.LANGUAGE_JAPANESE
2019 LANGUAGE_JAVANESE
= _gdi_
.LANGUAGE_JAVANESE
2020 LANGUAGE_KANNADA
= _gdi_
.LANGUAGE_KANNADA
2021 LANGUAGE_KASHMIRI
= _gdi_
.LANGUAGE_KASHMIRI
2022 LANGUAGE_KASHMIRI_INDIA
= _gdi_
.LANGUAGE_KASHMIRI_INDIA
2023 LANGUAGE_KAZAKH
= _gdi_
.LANGUAGE_KAZAKH
2024 LANGUAGE_KERNEWEK
= _gdi_
.LANGUAGE_KERNEWEK
2025 LANGUAGE_KINYARWANDA
= _gdi_
.LANGUAGE_KINYARWANDA
2026 LANGUAGE_KIRGHIZ
= _gdi_
.LANGUAGE_KIRGHIZ
2027 LANGUAGE_KIRUNDI
= _gdi_
.LANGUAGE_KIRUNDI
2028 LANGUAGE_KONKANI
= _gdi_
.LANGUAGE_KONKANI
2029 LANGUAGE_KOREAN
= _gdi_
.LANGUAGE_KOREAN
2030 LANGUAGE_KURDISH
= _gdi_
.LANGUAGE_KURDISH
2031 LANGUAGE_LAOTHIAN
= _gdi_
.LANGUAGE_LAOTHIAN
2032 LANGUAGE_LATIN
= _gdi_
.LANGUAGE_LATIN
2033 LANGUAGE_LATVIAN
= _gdi_
.LANGUAGE_LATVIAN
2034 LANGUAGE_LINGALA
= _gdi_
.LANGUAGE_LINGALA
2035 LANGUAGE_LITHUANIAN
= _gdi_
.LANGUAGE_LITHUANIAN
2036 LANGUAGE_MACEDONIAN
= _gdi_
.LANGUAGE_MACEDONIAN
2037 LANGUAGE_MALAGASY
= _gdi_
.LANGUAGE_MALAGASY
2038 LANGUAGE_MALAY
= _gdi_
.LANGUAGE_MALAY
2039 LANGUAGE_MALAYALAM
= _gdi_
.LANGUAGE_MALAYALAM
2040 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi_
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
2041 LANGUAGE_MALAY_MALAYSIA
= _gdi_
.LANGUAGE_MALAY_MALAYSIA
2042 LANGUAGE_MALTESE
= _gdi_
.LANGUAGE_MALTESE
2043 LANGUAGE_MANIPURI
= _gdi_
.LANGUAGE_MANIPURI
2044 LANGUAGE_MAORI
= _gdi_
.LANGUAGE_MAORI
2045 LANGUAGE_MARATHI
= _gdi_
.LANGUAGE_MARATHI
2046 LANGUAGE_MOLDAVIAN
= _gdi_
.LANGUAGE_MOLDAVIAN
2047 LANGUAGE_MONGOLIAN
= _gdi_
.LANGUAGE_MONGOLIAN
2048 LANGUAGE_NAURU
= _gdi_
.LANGUAGE_NAURU
2049 LANGUAGE_NEPALI
= _gdi_
.LANGUAGE_NEPALI
2050 LANGUAGE_NEPALI_INDIA
= _gdi_
.LANGUAGE_NEPALI_INDIA
2051 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi_
.LANGUAGE_NORWEGIAN_BOKMAL
2052 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi_
.LANGUAGE_NORWEGIAN_NYNORSK
2053 LANGUAGE_OCCITAN
= _gdi_
.LANGUAGE_OCCITAN
2054 LANGUAGE_ORIYA
= _gdi_
.LANGUAGE_ORIYA
2055 LANGUAGE_OROMO
= _gdi_
.LANGUAGE_OROMO
2056 LANGUAGE_PASHTO
= _gdi_
.LANGUAGE_PASHTO
2057 LANGUAGE_POLISH
= _gdi_
.LANGUAGE_POLISH
2058 LANGUAGE_PORTUGUESE
= _gdi_
.LANGUAGE_PORTUGUESE
2059 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi_
.LANGUAGE_PORTUGUESE_BRAZILIAN
2060 LANGUAGE_PUNJABI
= _gdi_
.LANGUAGE_PUNJABI
2061 LANGUAGE_QUECHUA
= _gdi_
.LANGUAGE_QUECHUA
2062 LANGUAGE_RHAETO_ROMANCE
= _gdi_
.LANGUAGE_RHAETO_ROMANCE
2063 LANGUAGE_ROMANIAN
= _gdi_
.LANGUAGE_ROMANIAN
2064 LANGUAGE_RUSSIAN
= _gdi_
.LANGUAGE_RUSSIAN
2065 LANGUAGE_RUSSIAN_UKRAINE
= _gdi_
.LANGUAGE_RUSSIAN_UKRAINE
2066 LANGUAGE_SAMOAN
= _gdi_
.LANGUAGE_SAMOAN
2067 LANGUAGE_SANGHO
= _gdi_
.LANGUAGE_SANGHO
2068 LANGUAGE_SANSKRIT
= _gdi_
.LANGUAGE_SANSKRIT
2069 LANGUAGE_SCOTS_GAELIC
= _gdi_
.LANGUAGE_SCOTS_GAELIC
2070 LANGUAGE_SERBIAN
= _gdi_
.LANGUAGE_SERBIAN
2071 LANGUAGE_SERBIAN_CYRILLIC
= _gdi_
.LANGUAGE_SERBIAN_CYRILLIC
2072 LANGUAGE_SERBIAN_LATIN
= _gdi_
.LANGUAGE_SERBIAN_LATIN
2073 LANGUAGE_SERBO_CROATIAN
= _gdi_
.LANGUAGE_SERBO_CROATIAN
2074 LANGUAGE_SESOTHO
= _gdi_
.LANGUAGE_SESOTHO
2075 LANGUAGE_SETSWANA
= _gdi_
.LANGUAGE_SETSWANA
2076 LANGUAGE_SHONA
= _gdi_
.LANGUAGE_SHONA
2077 LANGUAGE_SINDHI
= _gdi_
.LANGUAGE_SINDHI
2078 LANGUAGE_SINHALESE
= _gdi_
.LANGUAGE_SINHALESE
2079 LANGUAGE_SISWATI
= _gdi_
.LANGUAGE_SISWATI
2080 LANGUAGE_SLOVAK
= _gdi_
.LANGUAGE_SLOVAK
2081 LANGUAGE_SLOVENIAN
= _gdi_
.LANGUAGE_SLOVENIAN
2082 LANGUAGE_SOMALI
= _gdi_
.LANGUAGE_SOMALI
2083 LANGUAGE_SPANISH
= _gdi_
.LANGUAGE_SPANISH
2084 LANGUAGE_SPANISH_ARGENTINA
= _gdi_
.LANGUAGE_SPANISH_ARGENTINA
2085 LANGUAGE_SPANISH_BOLIVIA
= _gdi_
.LANGUAGE_SPANISH_BOLIVIA
2086 LANGUAGE_SPANISH_CHILE
= _gdi_
.LANGUAGE_SPANISH_CHILE
2087 LANGUAGE_SPANISH_COLOMBIA
= _gdi_
.LANGUAGE_SPANISH_COLOMBIA
2088 LANGUAGE_SPANISH_COSTA_RICA
= _gdi_
.LANGUAGE_SPANISH_COSTA_RICA
2089 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi_
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
2090 LANGUAGE_SPANISH_ECUADOR
= _gdi_
.LANGUAGE_SPANISH_ECUADOR
2091 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi_
.LANGUAGE_SPANISH_EL_SALVADOR
2092 LANGUAGE_SPANISH_GUATEMALA
= _gdi_
.LANGUAGE_SPANISH_GUATEMALA
2093 LANGUAGE_SPANISH_HONDURAS
= _gdi_
.LANGUAGE_SPANISH_HONDURAS
2094 LANGUAGE_SPANISH_MEXICAN
= _gdi_
.LANGUAGE_SPANISH_MEXICAN
2095 LANGUAGE_SPANISH_MODERN
= _gdi_
.LANGUAGE_SPANISH_MODERN
2096 LANGUAGE_SPANISH_NICARAGUA
= _gdi_
.LANGUAGE_SPANISH_NICARAGUA
2097 LANGUAGE_SPANISH_PANAMA
= _gdi_
.LANGUAGE_SPANISH_PANAMA
2098 LANGUAGE_SPANISH_PARAGUAY
= _gdi_
.LANGUAGE_SPANISH_PARAGUAY
2099 LANGUAGE_SPANISH_PERU
= _gdi_
.LANGUAGE_SPANISH_PERU
2100 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi_
.LANGUAGE_SPANISH_PUERTO_RICO
2101 LANGUAGE_SPANISH_URUGUAY
= _gdi_
.LANGUAGE_SPANISH_URUGUAY
2102 LANGUAGE_SPANISH_US
= _gdi_
.LANGUAGE_SPANISH_US
2103 LANGUAGE_SPANISH_VENEZUELA
= _gdi_
.LANGUAGE_SPANISH_VENEZUELA
2104 LANGUAGE_SUNDANESE
= _gdi_
.LANGUAGE_SUNDANESE
2105 LANGUAGE_SWAHILI
= _gdi_
.LANGUAGE_SWAHILI
2106 LANGUAGE_SWEDISH
= _gdi_
.LANGUAGE_SWEDISH
2107 LANGUAGE_SWEDISH_FINLAND
= _gdi_
.LANGUAGE_SWEDISH_FINLAND
2108 LANGUAGE_TAGALOG
= _gdi_
.LANGUAGE_TAGALOG
2109 LANGUAGE_TAJIK
= _gdi_
.LANGUAGE_TAJIK
2110 LANGUAGE_TAMIL
= _gdi_
.LANGUAGE_TAMIL
2111 LANGUAGE_TATAR
= _gdi_
.LANGUAGE_TATAR
2112 LANGUAGE_TELUGU
= _gdi_
.LANGUAGE_TELUGU
2113 LANGUAGE_THAI
= _gdi_
.LANGUAGE_THAI
2114 LANGUAGE_TIBETAN
= _gdi_
.LANGUAGE_TIBETAN
2115 LANGUAGE_TIGRINYA
= _gdi_
.LANGUAGE_TIGRINYA
2116 LANGUAGE_TONGA
= _gdi_
.LANGUAGE_TONGA
2117 LANGUAGE_TSONGA
= _gdi_
.LANGUAGE_TSONGA
2118 LANGUAGE_TURKISH
= _gdi_
.LANGUAGE_TURKISH
2119 LANGUAGE_TURKMEN
= _gdi_
.LANGUAGE_TURKMEN
2120 LANGUAGE_TWI
= _gdi_
.LANGUAGE_TWI
2121 LANGUAGE_UIGHUR
= _gdi_
.LANGUAGE_UIGHUR
2122 LANGUAGE_UKRAINIAN
= _gdi_
.LANGUAGE_UKRAINIAN
2123 LANGUAGE_URDU
= _gdi_
.LANGUAGE_URDU
2124 LANGUAGE_URDU_INDIA
= _gdi_
.LANGUAGE_URDU_INDIA
2125 LANGUAGE_URDU_PAKISTAN
= _gdi_
.LANGUAGE_URDU_PAKISTAN
2126 LANGUAGE_UZBEK
= _gdi_
.LANGUAGE_UZBEK
2127 LANGUAGE_UZBEK_CYRILLIC
= _gdi_
.LANGUAGE_UZBEK_CYRILLIC
2128 LANGUAGE_UZBEK_LATIN
= _gdi_
.LANGUAGE_UZBEK_LATIN
2129 LANGUAGE_VIETNAMESE
= _gdi_
.LANGUAGE_VIETNAMESE
2130 LANGUAGE_VOLAPUK
= _gdi_
.LANGUAGE_VOLAPUK
2131 LANGUAGE_WELSH
= _gdi_
.LANGUAGE_WELSH
2132 LANGUAGE_WOLOF
= _gdi_
.LANGUAGE_WOLOF
2133 LANGUAGE_XHOSA
= _gdi_
.LANGUAGE_XHOSA
2134 LANGUAGE_YIDDISH
= _gdi_
.LANGUAGE_YIDDISH
2135 LANGUAGE_YORUBA
= _gdi_
.LANGUAGE_YORUBA
2136 LANGUAGE_ZHUANG
= _gdi_
.LANGUAGE_ZHUANG
2137 LANGUAGE_ZULU
= _gdi_
.LANGUAGE_ZULU
2138 LANGUAGE_USER_DEFINED
= _gdi_
.LANGUAGE_USER_DEFINED
2139 class LanguageInfo(object):
2140 def __init__(self
): raise RuntimeError, "No constructor defined"
2142 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2143 Language
= property(_gdi_
.LanguageInfo_Language_get
, _gdi_
.LanguageInfo_Language_set
)
2144 CanonicalName
= property(_gdi_
.LanguageInfo_CanonicalName_get
, _gdi_
.LanguageInfo_CanonicalName_set
)
2145 Description
= property(_gdi_
.LanguageInfo_Description_get
, _gdi_
.LanguageInfo_Description_set
)
2147 class LanguageInfoPtr(LanguageInfo
):
2148 def __init__(self
, this
):
2150 if not hasattr(self
,"thisown"): self
.thisown
= 0
2151 self
.__class
__ = LanguageInfo
2152 _gdi_
.LanguageInfo_swigregister(LanguageInfoPtr
)
2154 LOCALE_CAT_NUMBER
= _gdi_
.LOCALE_CAT_NUMBER
2155 LOCALE_CAT_DATE
= _gdi_
.LOCALE_CAT_DATE
2156 LOCALE_CAT_MONEY
= _gdi_
.LOCALE_CAT_MONEY
2157 LOCALE_CAT_MAX
= _gdi_
.LOCALE_CAT_MAX
2158 LOCALE_THOUSANDS_SEP
= _gdi_
.LOCALE_THOUSANDS_SEP
2159 LOCALE_DECIMAL_POINT
= _gdi_
.LOCALE_DECIMAL_POINT
2160 LOCALE_LOAD_DEFAULT
= _gdi_
.LOCALE_LOAD_DEFAULT
2161 LOCALE_CONV_ENCODING
= _gdi_
.LOCALE_CONV_ENCODING
2162 class Locale(object):
2164 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2165 def __init__(self
, *args
, **kwargs
):
2166 """__init__(self, int language=-1, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
2167 newobj
= _gdi_
.new_Locale(*args
, **kwargs
)
2168 self
.this
= newobj
.this
2171 def __del__(self
, destroy
=_gdi_
.delete_Locale
):
2174 if self
.thisown
: destroy(self
)
2177 def Init1(*args
, **kwargs
):
2179 Init1(self, String szName, String szShort=EmptyString, String szLocale=EmptyString,
2180 bool bLoadDefault=True,
2181 bool bConvertEncoding=False) -> bool
2183 return _gdi_
.Locale_Init1(*args
, **kwargs
)
2185 def Init2(*args
, **kwargs
):
2186 """Init2(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
2187 return _gdi_
.Locale_Init2(*args
, **kwargs
)
2189 def Init(self
, *_args
, **_kwargs
):
2190 if type(_args
[0]) in [type(''), type(u
'')]:
2191 val
= self
.Init1(*_args
, **_kwargs
)
2193 val
= self
.Init2(*_args
, **_kwargs
)
2196 def GetSystemLanguage(*args
, **kwargs
):
2197 """GetSystemLanguage() -> int"""
2198 return _gdi_
.Locale_GetSystemLanguage(*args
, **kwargs
)
2200 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
2201 def GetSystemEncoding(*args
, **kwargs
):
2202 """GetSystemEncoding() -> int"""
2203 return _gdi_
.Locale_GetSystemEncoding(*args
, **kwargs
)
2205 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
2206 def GetSystemEncodingName(*args
, **kwargs
):
2207 """GetSystemEncodingName() -> String"""
2208 return _gdi_
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2210 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
2211 def IsOk(*args
, **kwargs
):
2212 """IsOk(self) -> bool"""
2213 return _gdi_
.Locale_IsOk(*args
, **kwargs
)
2215 def __nonzero__(self
): return self
.IsOk()
2216 def GetLocale(*args
, **kwargs
):
2217 """GetLocale(self) -> String"""
2218 return _gdi_
.Locale_GetLocale(*args
, **kwargs
)
2220 def GetLanguage(*args
, **kwargs
):
2221 """GetLanguage(self) -> int"""
2222 return _gdi_
.Locale_GetLanguage(*args
, **kwargs
)
2224 def GetSysName(*args
, **kwargs
):
2225 """GetSysName(self) -> String"""
2226 return _gdi_
.Locale_GetSysName(*args
, **kwargs
)
2228 def GetCanonicalName(*args
, **kwargs
):
2229 """GetCanonicalName(self) -> String"""
2230 return _gdi_
.Locale_GetCanonicalName(*args
, **kwargs
)
2232 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
2233 """AddCatalogLookupPathPrefix(String prefix)"""
2234 return _gdi_
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2236 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
2237 def AddCatalog(*args
, **kwargs
):
2238 """AddCatalog(self, String szDomain) -> bool"""
2239 return _gdi_
.Locale_AddCatalog(*args
, **kwargs
)
2241 def IsLoaded(*args
, **kwargs
):
2242 """IsLoaded(self, String szDomain) -> bool"""
2243 return _gdi_
.Locale_IsLoaded(*args
, **kwargs
)
2245 def GetLanguageInfo(*args
, **kwargs
):
2246 """GetLanguageInfo(int lang) -> LanguageInfo"""
2247 return _gdi_
.Locale_GetLanguageInfo(*args
, **kwargs
)
2249 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
2250 def GetLanguageName(*args
, **kwargs
):
2251 """GetLanguageName(int lang) -> String"""
2252 return _gdi_
.Locale_GetLanguageName(*args
, **kwargs
)
2254 GetLanguageName
= staticmethod(GetLanguageName
)
2255 def FindLanguageInfo(*args
, **kwargs
):
2256 """FindLanguageInfo(String locale) -> LanguageInfo"""
2257 return _gdi_
.Locale_FindLanguageInfo(*args
, **kwargs
)
2259 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
2260 def AddLanguage(*args
, **kwargs
):
2261 """AddLanguage(LanguageInfo info)"""
2262 return _gdi_
.Locale_AddLanguage(*args
, **kwargs
)
2264 AddLanguage
= staticmethod(AddLanguage
)
2265 def GetString(*args
, **kwargs
):
2266 """GetString(self, String szOrigString, String szDomain=EmptyString) -> String"""
2267 return _gdi_
.Locale_GetString(*args
, **kwargs
)
2269 def GetName(*args
, **kwargs
):
2270 """GetName(self) -> String"""
2271 return _gdi_
.Locale_GetName(*args
, **kwargs
)
2274 class LocalePtr(Locale
):
2275 def __init__(self
, this
):
2277 if not hasattr(self
,"thisown"): self
.thisown
= 0
2278 self
.__class
__ = Locale
2279 _gdi_
.Locale_swigregister(LocalePtr
)
2281 def Locale_GetSystemLanguage(*args
, **kwargs
):
2282 """Locale_GetSystemLanguage() -> int"""
2283 return _gdi_
.Locale_GetSystemLanguage(*args
, **kwargs
)
2285 def Locale_GetSystemEncoding(*args
, **kwargs
):
2286 """Locale_GetSystemEncoding() -> int"""
2287 return _gdi_
.Locale_GetSystemEncoding(*args
, **kwargs
)
2289 def Locale_GetSystemEncodingName(*args
, **kwargs
):
2290 """Locale_GetSystemEncodingName() -> String"""
2291 return _gdi_
.Locale_GetSystemEncodingName(*args
, **kwargs
)
2293 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
2294 """Locale_AddCatalogLookupPathPrefix(String prefix)"""
2295 return _gdi_
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
2297 def Locale_GetLanguageInfo(*args
, **kwargs
):
2298 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
2299 return _gdi_
.Locale_GetLanguageInfo(*args
, **kwargs
)
2301 def Locale_GetLanguageName(*args
, **kwargs
):
2302 """Locale_GetLanguageName(int lang) -> String"""
2303 return _gdi_
.Locale_GetLanguageName(*args
, **kwargs
)
2305 def Locale_FindLanguageInfo(*args
, **kwargs
):
2306 """Locale_FindLanguageInfo(String locale) -> LanguageInfo"""
2307 return _gdi_
.Locale_FindLanguageInfo(*args
, **kwargs
)
2309 def Locale_AddLanguage(*args
, **kwargs
):
2310 """Locale_AddLanguage(LanguageInfo info)"""
2311 return _gdi_
.Locale_AddLanguage(*args
, **kwargs
)
2314 def GetLocale(*args
, **kwargs
):
2315 """GetLocale() -> Locale"""
2316 return _gdi_
.GetLocale(*args
, **kwargs
)
2317 #---------------------------------------------------------------------------
2319 CONVERT_STRICT
= _gdi_
.CONVERT_STRICT
2320 CONVERT_SUBSTITUTE
= _gdi_
.CONVERT_SUBSTITUTE
2321 PLATFORM_CURRENT
= _gdi_
.PLATFORM_CURRENT
2322 PLATFORM_UNIX
= _gdi_
.PLATFORM_UNIX
2323 PLATFORM_WINDOWS
= _gdi_
.PLATFORM_WINDOWS
2324 PLATFORM_OS2
= _gdi_
.PLATFORM_OS2
2325 PLATFORM_MAC
= _gdi_
.PLATFORM_MAC
2326 class EncodingConverter(_core
.Object
):
2328 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2329 def __init__(self
, *args
, **kwargs
):
2330 """__init__(self) -> EncodingConverter"""
2331 newobj
= _gdi_
.new_EncodingConverter(*args
, **kwargs
)
2332 self
.this
= newobj
.this
2335 def __del__(self
, destroy
=_gdi_
.delete_EncodingConverter
):
2338 if self
.thisown
: destroy(self
)
2341 def Init(*args
, **kwargs
):
2342 """Init(self, int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool"""
2343 return _gdi_
.EncodingConverter_Init(*args
, **kwargs
)
2345 def Convert(*args
, **kwargs
):
2346 """Convert(self, String input) -> String"""
2347 return _gdi_
.EncodingConverter_Convert(*args
, **kwargs
)
2349 def GetPlatformEquivalents(*args
, **kwargs
):
2350 """GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2351 return _gdi_
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2353 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2354 def GetAllEquivalents(*args
, **kwargs
):
2355 """GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2356 return _gdi_
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2358 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2359 def CanConvert(*args
, **kwargs
):
2360 """CanConvert(int encIn, int encOut) -> bool"""
2361 return _gdi_
.EncodingConverter_CanConvert(*args
, **kwargs
)
2363 CanConvert
= staticmethod(CanConvert
)
2364 def __nonzero__(self
): return self
.IsOk()
2366 class EncodingConverterPtr(EncodingConverter
):
2367 def __init__(self
, this
):
2369 if not hasattr(self
,"thisown"): self
.thisown
= 0
2370 self
.__class
__ = EncodingConverter
2371 _gdi_
.EncodingConverter_swigregister(EncodingConverterPtr
)
2373 def GetTranslation(*args
):
2375 GetTranslation(String str) -> String
2376 GetTranslation(String str, String strPlural, size_t n) -> String
2378 return _gdi_
.GetTranslation(*args
)
2380 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2381 """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2382 return _gdi_
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2384 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2385 """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2386 return _gdi_
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2388 def EncodingConverter_CanConvert(*args
, **kwargs
):
2389 """EncodingConverter_CanConvert(int encIn, int encOut) -> bool"""
2390 return _gdi_
.EncodingConverter_CanConvert(*args
, **kwargs
)
2392 #----------------------------------------------------------------------------
2393 # wxGTK sets the locale when initialized. Doing this at the Python
2394 # level should set it up to match what GTK is doing at the C level.
2395 if wx
.Platform
== "__WXGTK__":
2398 locale
.setlocale(locale
.LC_ALL
, "")
2402 # On MSW add the directory where the wxWindows catalogs were installed
2403 # to the default catalog path.
2404 if wx
.Platform
== "__WXMSW__":
2406 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2407 Locale_AddCatalogLookupPathPrefix(localedir
)
2410 #----------------------------------------------------------------------------
2412 #---------------------------------------------------------------------------
2414 class DC(_core
.Object
):
2415 def __init__(self
): raise RuntimeError, "No constructor defined"
2417 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2418 def __del__(self
, destroy
=_gdi_
.delete_DC
):
2421 if self
.thisown
: destroy(self
)
2424 def BeginDrawing(*args
, **kwargs
):
2425 """BeginDrawing(self)"""
2426 return _gdi_
.DC_BeginDrawing(*args
, **kwargs
)
2428 def EndDrawing(*args
, **kwargs
):
2429 """EndDrawing(self)"""
2430 return _gdi_
.DC_EndDrawing(*args
, **kwargs
)
2432 def FloodFill(*args
, **kwargs
):
2433 """FloodFill(self, int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2434 return _gdi_
.DC_FloodFill(*args
, **kwargs
)
2436 def FloodFillPoint(*args
, **kwargs
):
2437 """FloodFillPoint(self, Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2438 return _gdi_
.DC_FloodFillPoint(*args
, **kwargs
)
2440 def GetPixel(*args
, **kwargs
):
2441 """GetPixel(self, int x, int y) -> Colour"""
2442 return _gdi_
.DC_GetPixel(*args
, **kwargs
)
2444 def GetPixelPoint(*args
, **kwargs
):
2445 """GetPixelPoint(self, Point pt) -> Colour"""
2446 return _gdi_
.DC_GetPixelPoint(*args
, **kwargs
)
2448 def DrawLine(*args
, **kwargs
):
2449 """DrawLine(self, int x1, int y1, int x2, int y2)"""
2450 return _gdi_
.DC_DrawLine(*args
, **kwargs
)
2452 def DrawLinePoint(*args
, **kwargs
):
2453 """DrawLinePoint(self, Point pt1, Point pt2)"""
2454 return _gdi_
.DC_DrawLinePoint(*args
, **kwargs
)
2456 def CrossHair(*args
, **kwargs
):
2457 """CrossHair(self, int x, int y)"""
2458 return _gdi_
.DC_CrossHair(*args
, **kwargs
)
2460 def CrossHairPoint(*args
, **kwargs
):
2461 """CrossHairPoint(self, Point pt)"""
2462 return _gdi_
.DC_CrossHairPoint(*args
, **kwargs
)
2464 def DrawArc(*args
, **kwargs
):
2465 """DrawArc(self, int x1, int y1, int x2, int y2, int xc, int yc)"""
2466 return _gdi_
.DC_DrawArc(*args
, **kwargs
)
2468 def DrawArcPoint(*args
, **kwargs
):
2469 """DrawArcPoint(self, Point pt1, Point pt2, Point centre)"""
2470 return _gdi_
.DC_DrawArcPoint(*args
, **kwargs
)
2472 def DrawCheckMark(*args
, **kwargs
):
2473 """DrawCheckMark(self, int x, int y, int width, int height)"""
2474 return _gdi_
.DC_DrawCheckMark(*args
, **kwargs
)
2476 def DrawCheckMarkRect(*args
, **kwargs
):
2477 """DrawCheckMarkRect(self, Rect rect)"""
2478 return _gdi_
.DC_DrawCheckMarkRect(*args
, **kwargs
)
2480 def DrawEllipticArc(*args
, **kwargs
):
2481 """DrawEllipticArc(self, int x, int y, int w, int h, double sa, double ea)"""
2482 return _gdi_
.DC_DrawEllipticArc(*args
, **kwargs
)
2484 def DrawEllipticArcPointSize(*args
, **kwargs
):
2485 """DrawEllipticArcPointSize(self, Point pt, Size sz, double sa, double ea)"""
2486 return _gdi_
.DC_DrawEllipticArcPointSize(*args
, **kwargs
)
2488 def DrawPoint(*args
, **kwargs
):
2489 """DrawPoint(self, int x, int y)"""
2490 return _gdi_
.DC_DrawPoint(*args
, **kwargs
)
2492 def DrawPointPoint(*args
, **kwargs
):
2493 """DrawPointPoint(self, Point pt)"""
2494 return _gdi_
.DC_DrawPointPoint(*args
, **kwargs
)
2496 def DrawRectangle(*args
, **kwargs
):
2497 """DrawRectangle(self, int x, int y, int width, int height)"""
2498 return _gdi_
.DC_DrawRectangle(*args
, **kwargs
)
2500 def DrawRectangleRect(*args
, **kwargs
):
2501 """DrawRectangleRect(self, Rect rect)"""
2502 return _gdi_
.DC_DrawRectangleRect(*args
, **kwargs
)
2504 def DrawRectanglePointSize(*args
, **kwargs
):
2505 """DrawRectanglePointSize(self, Point pt, Size sz)"""
2506 return _gdi_
.DC_DrawRectanglePointSize(*args
, **kwargs
)
2508 def DrawRoundedRectangle(*args
, **kwargs
):
2509 """DrawRoundedRectangle(self, int x, int y, int width, int height, double radius)"""
2510 return _gdi_
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2512 def DrawRoundedRectangleRect(*args
, **kwargs
):
2513 """DrawRoundedRectangleRect(self, Rect r, double radius)"""
2514 return _gdi_
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2516 def DrawRoundedRectanglePointSize(*args
, **kwargs
):
2517 """DrawRoundedRectanglePointSize(self, Point pt, Size sz, double radius)"""
2518 return _gdi_
.DC_DrawRoundedRectanglePointSize(*args
, **kwargs
)
2520 def DrawCircle(*args
, **kwargs
):
2521 """DrawCircle(self, int x, int y, int radius)"""
2522 return _gdi_
.DC_DrawCircle(*args
, **kwargs
)
2524 def DrawCirclePoint(*args
, **kwargs
):
2525 """DrawCirclePoint(self, Point pt, int radius)"""
2526 return _gdi_
.DC_DrawCirclePoint(*args
, **kwargs
)
2528 def DrawEllipse(*args
, **kwargs
):
2529 """DrawEllipse(self, int x, int y, int width, int height)"""
2530 return _gdi_
.DC_DrawEllipse(*args
, **kwargs
)
2532 def DrawEllipseRect(*args
, **kwargs
):
2533 """DrawEllipseRect(self, Rect rect)"""
2534 return _gdi_
.DC_DrawEllipseRect(*args
, **kwargs
)
2536 def DrawEllipsePointSize(*args
, **kwargs
):
2537 """DrawEllipsePointSize(self, Point pt, Size sz)"""
2538 return _gdi_
.DC_DrawEllipsePointSize(*args
, **kwargs
)
2540 def DrawIcon(*args
, **kwargs
):
2541 """DrawIcon(self, Icon icon, int x, int y)"""
2542 return _gdi_
.DC_DrawIcon(*args
, **kwargs
)
2544 def DrawIconPoint(*args
, **kwargs
):
2545 """DrawIconPoint(self, Icon icon, Point pt)"""
2546 return _gdi_
.DC_DrawIconPoint(*args
, **kwargs
)
2548 def DrawBitmap(*args
, **kwargs
):
2549 """DrawBitmap(self, Bitmap bmp, int x, int y, bool useMask=False)"""
2550 return _gdi_
.DC_DrawBitmap(*args
, **kwargs
)
2552 def DrawBitmapPoint(*args
, **kwargs
):
2553 """DrawBitmapPoint(self, Bitmap bmp, Point pt, bool useMask=False)"""
2554 return _gdi_
.DC_DrawBitmapPoint(*args
, **kwargs
)
2556 def DrawText(*args
, **kwargs
):
2557 """DrawText(self, String text, int x, int y)"""
2558 return _gdi_
.DC_DrawText(*args
, **kwargs
)
2560 def DrawTextPoint(*args
, **kwargs
):
2561 """DrawTextPoint(self, String text, Point pt)"""
2562 return _gdi_
.DC_DrawTextPoint(*args
, **kwargs
)
2564 def DrawRotatedText(*args
, **kwargs
):
2565 """DrawRotatedText(self, String text, int x, int y, double angle)"""
2566 return _gdi_
.DC_DrawRotatedText(*args
, **kwargs
)
2568 def DrawRotatedTextPoint(*args
, **kwargs
):
2569 """DrawRotatedTextPoint(self, String text, Point pt, double angle)"""
2570 return _gdi_
.DC_DrawRotatedTextPoint(*args
, **kwargs
)
2572 def Blit(*args
, **kwargs
):
2574 Blit(self, int xdest, int ydest, int width, int height, DC source,
2575 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2576 int xsrcMask=-1, int ysrcMask=-1) -> bool
2578 return _gdi_
.DC_Blit(*args
, **kwargs
)
2580 def BlitPointSize(*args
, **kwargs
):
2582 BlitPointSize(self, Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2583 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
2585 return _gdi_
.DC_BlitPointSize(*args
, **kwargs
)
2587 def SetClippingRegion(*args
, **kwargs
):
2588 """SetClippingRegion(self, int x, int y, int width, int height)"""
2589 return _gdi_
.DC_SetClippingRegion(*args
, **kwargs
)
2591 def SetClippingRegionPointSize(*args
, **kwargs
):
2592 """SetClippingRegionPointSize(self, Point pt, Size sz)"""
2593 return _gdi_
.DC_SetClippingRegionPointSize(*args
, **kwargs
)
2595 def SetClippingRegionAsRegion(*args
, **kwargs
):
2596 """SetClippingRegionAsRegion(self, Region region)"""
2597 return _gdi_
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2599 def SetClippingRect(*args
, **kwargs
):
2600 """SetClippingRect(self, Rect rect)"""
2601 return _gdi_
.DC_SetClippingRect(*args
, **kwargs
)
2603 def DrawLines(*args
, **kwargs
):
2604 """DrawLines(self, int points, Point points_array, int xoffset=0, int yoffset=0)"""
2605 return _gdi_
.DC_DrawLines(*args
, **kwargs
)
2607 def DrawPolygon(*args
, **kwargs
):
2609 DrawPolygon(self, int points, Point points_array, int xoffset=0, int yoffset=0,
2610 int fillStyle=ODDEVEN_RULE)
2612 return _gdi_
.DC_DrawPolygon(*args
, **kwargs
)
2614 def DrawLabel(*args
, **kwargs
):
2616 DrawLabel(self, String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2619 return _gdi_
.DC_DrawLabel(*args
, **kwargs
)
2621 def DrawImageLabel(*args
, **kwargs
):
2623 DrawImageLabel(self, String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2624 int indexAccel=-1) -> Rect
2626 return _gdi_
.DC_DrawImageLabel(*args
, **kwargs
)
2628 def DrawSpline(*args
, **kwargs
):
2629 """DrawSpline(self, int points, Point points_array)"""
2630 return _gdi_
.DC_DrawSpline(*args
, **kwargs
)
2632 def Clear(*args
, **kwargs
):
2634 return _gdi_
.DC_Clear(*args
, **kwargs
)
2636 def StartDoc(*args
, **kwargs
):
2637 """StartDoc(self, String message) -> bool"""
2638 return _gdi_
.DC_StartDoc(*args
, **kwargs
)
2640 def EndDoc(*args
, **kwargs
):
2642 return _gdi_
.DC_EndDoc(*args
, **kwargs
)
2644 def StartPage(*args
, **kwargs
):
2645 """StartPage(self)"""
2646 return _gdi_
.DC_StartPage(*args
, **kwargs
)
2648 def EndPage(*args
, **kwargs
):
2650 return _gdi_
.DC_EndPage(*args
, **kwargs
)
2652 def SetFont(*args
, **kwargs
):
2653 """SetFont(self, Font font)"""
2654 return _gdi_
.DC_SetFont(*args
, **kwargs
)
2656 def SetPen(*args
, **kwargs
):
2657 """SetPen(self, Pen pen)"""
2658 return _gdi_
.DC_SetPen(*args
, **kwargs
)
2660 def SetBrush(*args
, **kwargs
):
2661 """SetBrush(self, Brush brush)"""
2662 return _gdi_
.DC_SetBrush(*args
, **kwargs
)
2664 def SetBackground(*args
, **kwargs
):
2665 """SetBackground(self, Brush brush)"""
2666 return _gdi_
.DC_SetBackground(*args
, **kwargs
)
2668 def SetBackgroundMode(*args
, **kwargs
):
2669 """SetBackgroundMode(self, int mode)"""
2670 return _gdi_
.DC_SetBackgroundMode(*args
, **kwargs
)
2672 def SetPalette(*args
, **kwargs
):
2673 """SetPalette(self, Palette palette)"""
2674 return _gdi_
.DC_SetPalette(*args
, **kwargs
)
2676 def DestroyClippingRegion(*args
, **kwargs
):
2677 """DestroyClippingRegion(self)"""
2678 return _gdi_
.DC_DestroyClippingRegion(*args
, **kwargs
)
2680 def GetClippingBox(*args
, **kwargs
):
2681 """GetClippingBox() -> (x, y, width, height)"""
2682 return _gdi_
.DC_GetClippingBox(*args
, **kwargs
)
2684 def GetClippingRect(*args
, **kwargs
):
2685 """GetClippingRect(self) -> Rect"""
2686 return _gdi_
.DC_GetClippingRect(*args
, **kwargs
)
2688 def GetCharHeight(*args
, **kwargs
):
2689 """GetCharHeight(self) -> int"""
2690 return _gdi_
.DC_GetCharHeight(*args
, **kwargs
)
2692 def GetCharWidth(*args
, **kwargs
):
2693 """GetCharWidth(self) -> int"""
2694 return _gdi_
.DC_GetCharWidth(*args
, **kwargs
)
2696 def GetTextExtent(*args
, **kwargs
):
2697 """GetTextExtent(wxString string) -> (width, height)"""
2698 return _gdi_
.DC_GetTextExtent(*args
, **kwargs
)
2700 def GetFullTextExtent(*args
, **kwargs
):
2702 GetFullTextExtent(wxString string, Font font=None) ->
2703 (width, height, descent, externalLeading)
2705 Get the width, height, decent and leading of the text using the
2706 current or specified font. Only works for single line strings.
2708 return _gdi_
.DC_GetFullTextExtent(*args
, **kwargs
)
2710 def GetMultiLineTextExtent(*args
, **kwargs
):
2712 GetMultiLineTextExtent(wxString string, Font font=None) ->
2713 (width, height, descent, externalLeading)
2715 return _gdi_
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2717 def GetPartialTextExtents(*args
, **kwargs
):
2718 """GetPartialTextExtents(self, String text) -> wxArrayInt"""
2719 return _gdi_
.DC_GetPartialTextExtents(*args
, **kwargs
)
2721 def GetSize(*args
, **kwargs
):
2723 GetSize(self) -> Size
2725 Get the DC size in device units.
2727 return _gdi_
.DC_GetSize(*args
, **kwargs
)
2729 def GetSizeTuple(*args
, **kwargs
):
2731 GetSizeTuple() -> (width, height)
2733 Get the DC size in device units.
2735 return _gdi_
.DC_GetSizeTuple(*args
, **kwargs
)
2737 def GetSizeMM(*args
, **kwargs
):
2739 GetSizeMM(self) -> Size
2741 Get the DC size in milimeters.
2743 return _gdi_
.DC_GetSizeMM(*args
, **kwargs
)
2745 def GetSizeMMTuple(*args
, **kwargs
):
2747 GetSizeMMTuple() -> (width, height)
2749 Get the DC size in milimeters.
2751 return _gdi_
.DC_GetSizeMMTuple(*args
, **kwargs
)
2753 def DeviceToLogicalX(*args
, **kwargs
):
2754 """DeviceToLogicalX(self, int x) -> int"""
2755 return _gdi_
.DC_DeviceToLogicalX(*args
, **kwargs
)
2757 def DeviceToLogicalY(*args
, **kwargs
):
2758 """DeviceToLogicalY(self, int y) -> int"""
2759 return _gdi_
.DC_DeviceToLogicalY(*args
, **kwargs
)
2761 def DeviceToLogicalXRel(*args
, **kwargs
):
2762 """DeviceToLogicalXRel(self, int x) -> int"""
2763 return _gdi_
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2765 def DeviceToLogicalYRel(*args
, **kwargs
):
2766 """DeviceToLogicalYRel(self, int y) -> int"""
2767 return _gdi_
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2769 def LogicalToDeviceX(*args
, **kwargs
):
2770 """LogicalToDeviceX(self, int x) -> int"""
2771 return _gdi_
.DC_LogicalToDeviceX(*args
, **kwargs
)
2773 def LogicalToDeviceY(*args
, **kwargs
):
2774 """LogicalToDeviceY(self, int y) -> int"""
2775 return _gdi_
.DC_LogicalToDeviceY(*args
, **kwargs
)
2777 def LogicalToDeviceXRel(*args
, **kwargs
):
2778 """LogicalToDeviceXRel(self, int x) -> int"""
2779 return _gdi_
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2781 def LogicalToDeviceYRel(*args
, **kwargs
):
2782 """LogicalToDeviceYRel(self, int y) -> int"""
2783 return _gdi_
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2785 def CanDrawBitmap(*args
, **kwargs
):
2786 """CanDrawBitmap(self) -> bool"""
2787 return _gdi_
.DC_CanDrawBitmap(*args
, **kwargs
)
2789 def CanGetTextExtent(*args
, **kwargs
):
2790 """CanGetTextExtent(self) -> bool"""
2791 return _gdi_
.DC_CanGetTextExtent(*args
, **kwargs
)
2793 def GetDepth(*args
, **kwargs
):
2794 """GetDepth(self) -> int"""
2795 return _gdi_
.DC_GetDepth(*args
, **kwargs
)
2797 def GetPPI(*args
, **kwargs
):
2798 """GetPPI(self) -> Size"""
2799 return _gdi_
.DC_GetPPI(*args
, **kwargs
)
2801 def Ok(*args
, **kwargs
):
2802 """Ok(self) -> bool"""
2803 return _gdi_
.DC_Ok(*args
, **kwargs
)
2805 def GetBackgroundMode(*args
, **kwargs
):
2806 """GetBackgroundMode(self) -> int"""
2807 return _gdi_
.DC_GetBackgroundMode(*args
, **kwargs
)
2809 def GetBackground(*args
, **kwargs
):
2810 """GetBackground(self) -> Brush"""
2811 return _gdi_
.DC_GetBackground(*args
, **kwargs
)
2813 def GetBrush(*args
, **kwargs
):
2814 """GetBrush(self) -> Brush"""
2815 return _gdi_
.DC_GetBrush(*args
, **kwargs
)
2817 def GetFont(*args
, **kwargs
):
2818 """GetFont(self) -> Font"""
2819 return _gdi_
.DC_GetFont(*args
, **kwargs
)
2821 def GetPen(*args
, **kwargs
):
2822 """GetPen(self) -> Pen"""
2823 return _gdi_
.DC_GetPen(*args
, **kwargs
)
2825 def GetTextBackground(*args
, **kwargs
):
2826 """GetTextBackground(self) -> Colour"""
2827 return _gdi_
.DC_GetTextBackground(*args
, **kwargs
)
2829 def GetTextForeground(*args
, **kwargs
):
2830 """GetTextForeground(self) -> Colour"""
2831 return _gdi_
.DC_GetTextForeground(*args
, **kwargs
)
2833 def SetTextForeground(*args
, **kwargs
):
2834 """SetTextForeground(self, Colour colour)"""
2835 return _gdi_
.DC_SetTextForeground(*args
, **kwargs
)
2837 def SetTextBackground(*args
, **kwargs
):
2838 """SetTextBackground(self, Colour colour)"""
2839 return _gdi_
.DC_SetTextBackground(*args
, **kwargs
)
2841 def GetMapMode(*args
, **kwargs
):
2842 """GetMapMode(self) -> int"""
2843 return _gdi_
.DC_GetMapMode(*args
, **kwargs
)
2845 def SetMapMode(*args
, **kwargs
):
2846 """SetMapMode(self, int mode)"""
2847 return _gdi_
.DC_SetMapMode(*args
, **kwargs
)
2849 def GetUserScale(*args
, **kwargs
):
2850 """GetUserScale() -> (xScale, yScale)"""
2851 return _gdi_
.DC_GetUserScale(*args
, **kwargs
)
2853 def SetUserScale(*args
, **kwargs
):
2854 """SetUserScale(self, double x, double y)"""
2855 return _gdi_
.DC_SetUserScale(*args
, **kwargs
)
2857 def GetLogicalScale(*args
, **kwargs
):
2858 """GetLogicalScale() -> (xScale, yScale)"""
2859 return _gdi_
.DC_GetLogicalScale(*args
, **kwargs
)
2861 def SetLogicalScale(*args
, **kwargs
):
2862 """SetLogicalScale(self, double x, double y)"""
2863 return _gdi_
.DC_SetLogicalScale(*args
, **kwargs
)
2865 def GetLogicalOrigin(*args
, **kwargs
):
2866 """GetLogicalOrigin(self) -> Point"""
2867 return _gdi_
.DC_GetLogicalOrigin(*args
, **kwargs
)
2869 def GetLogicalOriginTuple(*args
, **kwargs
):
2870 """GetLogicalOriginTuple() -> (x,y)"""
2871 return _gdi_
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2873 def SetLogicalOrigin(*args
, **kwargs
):
2874 """SetLogicalOrigin(self, int x, int y)"""
2875 return _gdi_
.DC_SetLogicalOrigin(*args
, **kwargs
)
2877 def SetLogicalOriginPoint(*args
, **kwargs
):
2878 """SetLogicalOriginPoint(self, Point point)"""
2879 return _gdi_
.DC_SetLogicalOriginPoint(*args
, **kwargs
)
2881 def GetDeviceOrigin(*args
, **kwargs
):
2882 """GetDeviceOrigin(self) -> Point"""
2883 return _gdi_
.DC_GetDeviceOrigin(*args
, **kwargs
)
2885 def GetDeviceOriginTuple(*args
, **kwargs
):
2886 """GetDeviceOriginTuple() -> (x,y)"""
2887 return _gdi_
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2889 def SetDeviceOrigin(*args
, **kwargs
):
2890 """SetDeviceOrigin(self, int x, int y)"""
2891 return _gdi_
.DC_SetDeviceOrigin(*args
, **kwargs
)
2893 def SetDeviceOriginPoint(*args
, **kwargs
):
2894 """SetDeviceOriginPoint(self, Point point)"""
2895 return _gdi_
.DC_SetDeviceOriginPoint(*args
, **kwargs
)
2897 def SetAxisOrientation(*args
, **kwargs
):
2898 """SetAxisOrientation(self, bool xLeftRight, bool yBottomUp)"""
2899 return _gdi_
.DC_SetAxisOrientation(*args
, **kwargs
)
2901 def GetLogicalFunction(*args
, **kwargs
):
2902 """GetLogicalFunction(self) -> int"""
2903 return _gdi_
.DC_GetLogicalFunction(*args
, **kwargs
)
2905 def SetLogicalFunction(*args
, **kwargs
):
2906 """SetLogicalFunction(self, int function)"""
2907 return _gdi_
.DC_SetLogicalFunction(*args
, **kwargs
)
2909 def SetOptimization(*args
, **kwargs
):
2910 """SetOptimization(self, bool opt)"""
2911 return _gdi_
.DC_SetOptimization(*args
, **kwargs
)
2913 def GetOptimization(*args
, **kwargs
):
2914 """GetOptimization(self) -> bool"""
2915 return _gdi_
.DC_GetOptimization(*args
, **kwargs
)
2917 def CalcBoundingBox(*args
, **kwargs
):
2918 """CalcBoundingBox(self, int x, int y)"""
2919 return _gdi_
.DC_CalcBoundingBox(*args
, **kwargs
)
2921 def CalcBoundingBoxPoint(*args
, **kwargs
):
2922 """CalcBoundingBoxPoint(self, Point point)"""
2923 return _gdi_
.DC_CalcBoundingBoxPoint(*args
, **kwargs
)
2925 def ResetBoundingBox(*args
, **kwargs
):
2926 """ResetBoundingBox(self)"""
2927 return _gdi_
.DC_ResetBoundingBox(*args
, **kwargs
)
2929 def MinX(*args
, **kwargs
):
2930 """MinX(self) -> int"""
2931 return _gdi_
.DC_MinX(*args
, **kwargs
)
2933 def MaxX(*args
, **kwargs
):
2934 """MaxX(self) -> int"""
2935 return _gdi_
.DC_MaxX(*args
, **kwargs
)
2937 def MinY(*args
, **kwargs
):
2938 """MinY(self) -> int"""
2939 return _gdi_
.DC_MinY(*args
, **kwargs
)
2941 def MaxY(*args
, **kwargs
):
2942 """MaxY(self) -> int"""
2943 return _gdi_
.DC_MaxY(*args
, **kwargs
)
2945 def GetBoundingBox(*args
, **kwargs
):
2946 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2947 return _gdi_
.DC_GetBoundingBox(*args
, **kwargs
)
2949 def __nonzero__(self
): return self
.Ok()
2950 def _DrawPointList(*args
, **kwargs
):
2951 """_DrawPointList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2952 return _gdi_
.DC__DrawPointList(*args
, **kwargs
)
2954 def _DrawLineList(*args
, **kwargs
):
2955 """_DrawLineList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2956 return _gdi_
.DC__DrawLineList(*args
, **kwargs
)
2958 def _DrawRectangleList(*args
, **kwargs
):
2959 """_DrawRectangleList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2960 return _gdi_
.DC__DrawRectangleList(*args
, **kwargs
)
2962 def _DrawEllipseList(*args
, **kwargs
):
2963 """_DrawEllipseList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2964 return _gdi_
.DC__DrawEllipseList(*args
, **kwargs
)
2966 def _DrawPolygonList(*args
, **kwargs
):
2967 """_DrawPolygonList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2968 return _gdi_
.DC__DrawPolygonList(*args
, **kwargs
)
2970 def _DrawTextList(*args
, **kwargs
):
2972 _DrawTextList(self, PyObject textList, PyObject pyPoints, PyObject foregroundList,
2973 PyObject backgroundList) -> PyObject
2975 return _gdi_
.DC__DrawTextList(*args
, **kwargs
)
2977 def DrawPointList(self
, points
, pens
=None):
2980 elif isinstance(pens
, wx
.Pen
):
2982 elif len(pens
) != len(points
):
2983 raise ValueError('points and pens must have same length')
2984 return self
._DrawPointList
(points
, pens
, [])
2987 def DrawLineList(self
, lines
, pens
=None):
2990 elif isinstance(pens
, wx
.Pen
):
2992 elif len(pens
) != len(lines
):
2993 raise ValueError('lines and pens must have same length')
2994 return self
._DrawLineList
(lines
, pens
, [])
2997 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
3000 elif isinstance(pens
, wx
.Pen
):
3002 elif len(pens
) != len(rectangles
):
3003 raise ValueError('rectangles and pens must have same length')
3006 elif isinstance(brushes
, wx
.Brush
):
3008 elif len(brushes
) != len(rectangles
):
3009 raise ValueError('rectangles and brushes must have same length')
3010 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
3013 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
3016 elif isinstance(pens
, wx
.Pen
):
3018 elif len(pens
) != len(ellipses
):
3019 raise ValueError('ellipses and pens must have same length')
3022 elif isinstance(brushes
, wx
.Brush
):
3024 elif len(brushes
) != len(ellipses
):
3025 raise ValueError('ellipses and brushes must have same length')
3026 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
3029 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
3030 ## Note: This does not currently support fill style or offset
3031 ## you can always use the non-List version if need be.
3034 elif isinstance(pens
, wx
.Pen
):
3036 elif len(pens
) != len(polygons
):
3037 raise ValueError('polygons and pens must have same length')
3040 elif isinstance(brushes
, wx
.Brush
):
3042 elif len(brushes
) != len(polygons
):
3043 raise ValueError('polygons and brushes must have same length')
3044 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
3047 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
3048 ## NOTE: this does not currently support changing the font
3049 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
3050 ## If you want backgounds to do anything.
3051 if type(textList
) == type(''):
3052 textList
= [textList
]
3053 elif len(textList
) != len(coords
):
3054 raise ValueError('textlist and coords must have same length')
3055 if foregrounds
is None:
3057 elif isinstance(foregrounds
, wx
.Colour
):
3058 foregrounds
= [foregrounds
]
3059 elif len(foregrounds
) != len(coords
):
3060 raise ValueError('foregrounds and coords must have same length')
3061 if backgrounds
is None:
3063 elif isinstance(backgrounds
, wx
.Colour
):
3064 backgrounds
= [backgrounds
]
3065 elif len(backgrounds
) != len(coords
):
3066 raise ValueError('backgrounds and coords must have same length')
3067 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
3071 def __init__(self
, this
):
3073 if not hasattr(self
,"thisown"): self
.thisown
= 0
3075 _gdi_
.DC_swigregister(DCPtr
)
3077 #---------------------------------------------------------------------------
3081 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3082 def __init__(self
, *args
, **kwargs
):
3083 """__init__(self) -> MemoryDC"""
3084 newobj
= _gdi_
.new_MemoryDC(*args
, **kwargs
)
3085 self
.this
= newobj
.this
3088 def SelectObject(*args
, **kwargs
):
3089 """SelectObject(self, Bitmap bitmap)"""
3090 return _gdi_
.MemoryDC_SelectObject(*args
, **kwargs
)
3093 class MemoryDCPtr(MemoryDC
):
3094 def __init__(self
, this
):
3096 if not hasattr(self
,"thisown"): self
.thisown
= 0
3097 self
.__class
__ = MemoryDC
3098 _gdi_
.MemoryDC_swigregister(MemoryDCPtr
)
3100 def MemoryDCFromDC(*args
, **kwargs
):
3101 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
3102 val
= _gdi_
.new_MemoryDCFromDC(*args
, **kwargs
)
3106 #---------------------------------------------------------------------------
3108 class BufferedDC(MemoryDC
):
3110 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3111 def __init__(self
, *args
):
3113 __init__(self, DC dc, Bitmap buffer) -> BufferedDC
3114 __init__(self, DC dc, Size area) -> BufferedDC
3116 newobj
= _gdi_
.new_BufferedDC(*args
)
3117 self
.this
= newobj
.this
3120 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
3122 def __del__(self
, destroy
=_gdi_
.delete_BufferedDC
):
3125 if self
.thisown
: destroy(self
)
3128 def UnMask(*args
, **kwargs
):
3130 return _gdi_
.BufferedDC_UnMask(*args
, **kwargs
)
3133 class BufferedDCPtr(BufferedDC
):
3134 def __init__(self
, this
):
3136 if not hasattr(self
,"thisown"): self
.thisown
= 0
3137 self
.__class
__ = BufferedDC
3138 _gdi_
.BufferedDC_swigregister(BufferedDCPtr
)
3140 def BufferedDCInternalBuffer(*args
):
3141 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
3142 val
= _gdi_
.new_BufferedDCInternalBuffer(*args
)
3144 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
3147 class BufferedPaintDC(BufferedDC
):
3149 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3150 def __init__(self
, *args
, **kwargs
):
3151 """__init__(self, Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
3152 newobj
= _gdi_
.new_BufferedPaintDC(*args
, **kwargs
)
3153 self
.this
= newobj
.this
3157 class BufferedPaintDCPtr(BufferedPaintDC
):
3158 def __init__(self
, this
):
3160 if not hasattr(self
,"thisown"): self
.thisown
= 0
3161 self
.__class
__ = BufferedPaintDC
3162 _gdi_
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
3164 #---------------------------------------------------------------------------
3168 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3169 def __init__(self
, *args
, **kwargs
):
3170 """__init__(self) -> ScreenDC"""
3171 newobj
= _gdi_
.new_ScreenDC(*args
, **kwargs
)
3172 self
.this
= newobj
.this
3175 def StartDrawingOnTopWin(*args
, **kwargs
):
3176 """StartDrawingOnTopWin(self, Window window) -> bool"""
3177 return _gdi_
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
3179 def StartDrawingOnTop(*args
, **kwargs
):
3180 """StartDrawingOnTop(self, Rect rect=None) -> bool"""
3181 return _gdi_
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
3183 def EndDrawingOnTop(*args
, **kwargs
):
3184 """EndDrawingOnTop(self) -> bool"""
3185 return _gdi_
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
3188 class ScreenDCPtr(ScreenDC
):
3189 def __init__(self
, this
):
3191 if not hasattr(self
,"thisown"): self
.thisown
= 0
3192 self
.__class
__ = ScreenDC
3193 _gdi_
.ScreenDC_swigregister(ScreenDCPtr
)
3195 #---------------------------------------------------------------------------
3199 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3200 def __init__(self
, *args
, **kwargs
):
3201 """__init__(self, Window win) -> ClientDC"""
3202 newobj
= _gdi_
.new_ClientDC(*args
, **kwargs
)
3203 self
.this
= newobj
.this
3207 class ClientDCPtr(ClientDC
):
3208 def __init__(self
, this
):
3210 if not hasattr(self
,"thisown"): self
.thisown
= 0
3211 self
.__class
__ = ClientDC
3212 _gdi_
.ClientDC_swigregister(ClientDCPtr
)
3214 #---------------------------------------------------------------------------
3218 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3219 def __init__(self
, *args
, **kwargs
):
3220 """__init__(self, Window win) -> PaintDC"""
3221 newobj
= _gdi_
.new_PaintDC(*args
, **kwargs
)
3222 self
.this
= newobj
.this
3226 class PaintDCPtr(PaintDC
):
3227 def __init__(self
, this
):
3229 if not hasattr(self
,"thisown"): self
.thisown
= 0
3230 self
.__class
__ = PaintDC
3231 _gdi_
.PaintDC_swigregister(PaintDCPtr
)
3233 #---------------------------------------------------------------------------
3237 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3238 def __init__(self
, *args
, **kwargs
):
3239 """__init__(self, Window win) -> WindowDC"""
3240 newobj
= _gdi_
.new_WindowDC(*args
, **kwargs
)
3241 self
.this
= newobj
.this
3245 class WindowDCPtr(WindowDC
):
3246 def __init__(self
, this
):
3248 if not hasattr(self
,"thisown"): self
.thisown
= 0
3249 self
.__class
__ = WindowDC
3250 _gdi_
.WindowDC_swigregister(WindowDCPtr
)
3252 #---------------------------------------------------------------------------
3256 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3257 def __init__(self
, *args
, **kwargs
):
3258 """__init__(self, DC dc, bool mirror) -> MirrorDC"""
3259 newobj
= _gdi_
.new_MirrorDC(*args
, **kwargs
)
3260 self
.this
= newobj
.this
3264 class MirrorDCPtr(MirrorDC
):
3265 def __init__(self
, this
):
3267 if not hasattr(self
,"thisown"): self
.thisown
= 0
3268 self
.__class
__ = MirrorDC
3269 _gdi_
.MirrorDC_swigregister(MirrorDCPtr
)
3271 #---------------------------------------------------------------------------
3273 class PostScriptDC(DC
):
3275 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3276 def __init__(self
, *args
, **kwargs
):
3277 """__init__(self, wxPrintData printData) -> PostScriptDC"""
3278 newobj
= _gdi_
.new_PostScriptDC(*args
, **kwargs
)
3279 self
.this
= newobj
.this
3282 def GetPrintData(*args
, **kwargs
):
3283 """GetPrintData(self) -> wxPrintData"""
3284 return _gdi_
.PostScriptDC_GetPrintData(*args
, **kwargs
)
3286 def SetPrintData(*args
, **kwargs
):
3287 """SetPrintData(self, wxPrintData data)"""
3288 return _gdi_
.PostScriptDC_SetPrintData(*args
, **kwargs
)
3290 def SetResolution(*args
, **kwargs
):
3291 """SetResolution(int ppi)"""
3292 return _gdi_
.PostScriptDC_SetResolution(*args
, **kwargs
)
3294 SetResolution
= staticmethod(SetResolution
)
3295 def GetResolution(*args
, **kwargs
):
3296 """GetResolution() -> int"""
3297 return _gdi_
.PostScriptDC_GetResolution(*args
, **kwargs
)
3299 GetResolution
= staticmethod(GetResolution
)
3301 class PostScriptDCPtr(PostScriptDC
):
3302 def __init__(self
, this
):
3304 if not hasattr(self
,"thisown"): self
.thisown
= 0
3305 self
.__class
__ = PostScriptDC
3306 _gdi_
.PostScriptDC_swigregister(PostScriptDCPtr
)
3308 def PostScriptDC_SetResolution(*args
, **kwargs
):
3309 """PostScriptDC_SetResolution(int ppi)"""
3310 return _gdi_
.PostScriptDC_SetResolution(*args
, **kwargs
)
3312 def PostScriptDC_GetResolution(*args
, **kwargs
):
3313 """PostScriptDC_GetResolution() -> int"""
3314 return _gdi_
.PostScriptDC_GetResolution(*args
, **kwargs
)
3316 #---------------------------------------------------------------------------
3318 class MetaFile(_core
.Object
):
3320 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3321 def __init__(self
, *args
, **kwargs
):
3322 """__init__(self, String filename=EmptyString) -> MetaFile"""
3323 newobj
= _gdi_
.new_MetaFile(*args
, **kwargs
)
3324 self
.this
= newobj
.this
3327 def __del__(self
, destroy
=_gdi_
.delete_MetaFile
):
3330 if self
.thisown
: destroy(self
)
3333 def Ok(*args
, **kwargs
):
3334 """Ok(self) -> bool"""
3335 return _gdi_
.MetaFile_Ok(*args
, **kwargs
)
3337 def SetClipboard(*args
, **kwargs
):
3338 """SetClipboard(self, int width=0, int height=0) -> bool"""
3339 return _gdi_
.MetaFile_SetClipboard(*args
, **kwargs
)
3341 def GetSize(*args
, **kwargs
):
3342 """GetSize(self) -> Size"""
3343 return _gdi_
.MetaFile_GetSize(*args
, **kwargs
)
3345 def GetWidth(*args
, **kwargs
):
3346 """GetWidth(self) -> int"""
3347 return _gdi_
.MetaFile_GetWidth(*args
, **kwargs
)
3349 def GetHeight(*args
, **kwargs
):
3350 """GetHeight(self) -> int"""
3351 return _gdi_
.MetaFile_GetHeight(*args
, **kwargs
)
3353 def GetFileName(*args
, **kwargs
):
3354 """GetFileName(self) -> String"""
3355 return _gdi_
.MetaFile_GetFileName(*args
, **kwargs
)
3357 def __nonzero__(self
): return self
.Ok()
3359 class MetaFilePtr(MetaFile
):
3360 def __init__(self
, this
):
3362 if not hasattr(self
,"thisown"): self
.thisown
= 0
3363 self
.__class
__ = MetaFile
3364 _gdi_
.MetaFile_swigregister(MetaFilePtr
)
3366 class MetaFileDC(DC
):
3368 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3369 def __init__(self
, *args
, **kwargs
):
3371 __init__(self, String filename=EmptyString, int width=0, int height=0,
3372 String description=EmptyString) -> MetaFileDC
3374 newobj
= _gdi_
.new_MetaFileDC(*args
, **kwargs
)
3375 self
.this
= newobj
.this
3378 def Close(*args
, **kwargs
):
3379 """Close(self) -> MetaFile"""
3380 return _gdi_
.MetaFileDC_Close(*args
, **kwargs
)
3383 class MetaFileDCPtr(MetaFileDC
):
3384 def __init__(self
, this
):
3386 if not hasattr(self
,"thisown"): self
.thisown
= 0
3387 self
.__class
__ = MetaFileDC
3388 _gdi_
.MetaFileDC_swigregister(MetaFileDCPtr
)
3390 class PrinterDC(DC
):
3392 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3393 def __init__(self
, *args
, **kwargs
):
3394 """__init__(self, wxPrintData printData) -> PrinterDC"""
3395 newobj
= _gdi_
.new_PrinterDC(*args
, **kwargs
)
3396 self
.this
= newobj
.this
3400 class PrinterDCPtr(PrinterDC
):
3401 def __init__(self
, this
):
3403 if not hasattr(self
,"thisown"): self
.thisown
= 0
3404 self
.__class
__ = PrinterDC
3405 _gdi_
.PrinterDC_swigregister(PrinterDCPtr
)
3407 #---------------------------------------------------------------------------
3409 IMAGELIST_DRAW_NORMAL
= _gdi_
.IMAGELIST_DRAW_NORMAL
3410 IMAGELIST_DRAW_TRANSPARENT
= _gdi_
.IMAGELIST_DRAW_TRANSPARENT
3411 IMAGELIST_DRAW_SELECTED
= _gdi_
.IMAGELIST_DRAW_SELECTED
3412 IMAGELIST_DRAW_FOCUSED
= _gdi_
.IMAGELIST_DRAW_FOCUSED
3413 IMAGE_LIST_NORMAL
= _gdi_
.IMAGE_LIST_NORMAL
3414 IMAGE_LIST_SMALL
= _gdi_
.IMAGE_LIST_SMALL
3415 IMAGE_LIST_STATE
= _gdi_
.IMAGE_LIST_STATE
3416 class ImageList(_core
.Object
):
3418 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3419 def __init__(self
, *args
, **kwargs
):
3420 """__init__(self, int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3421 newobj
= _gdi_
.new_ImageList(*args
, **kwargs
)
3422 self
.this
= newobj
.this
3425 def __del__(self
, destroy
=_gdi_
.delete_ImageList
):
3428 if self
.thisown
: destroy(self
)
3431 def Add(*args
, **kwargs
):
3432 """Add(self, Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3433 return _gdi_
.ImageList_Add(*args
, **kwargs
)
3435 def AddWithColourMask(*args
, **kwargs
):
3436 """AddWithColourMask(self, Bitmap bitmap, Colour maskColour) -> int"""
3437 return _gdi_
.ImageList_AddWithColourMask(*args
, **kwargs
)
3439 def AddIcon(*args
, **kwargs
):
3440 """AddIcon(self, Icon icon) -> int"""
3441 return _gdi_
.ImageList_AddIcon(*args
, **kwargs
)
3443 def Replace(*args
, **kwargs
):
3444 """Replace(self, int index, Bitmap bitmap, Bitmap mask=NullBitmap) -> bool"""
3445 return _gdi_
.ImageList_Replace(*args
, **kwargs
)
3447 def Draw(*args
, **kwargs
):
3449 Draw(self, int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3450 bool solidBackground=False) -> bool
3452 return _gdi_
.ImageList_Draw(*args
, **kwargs
)
3454 def GetImageCount(*args
, **kwargs
):
3455 """GetImageCount(self) -> int"""
3456 return _gdi_
.ImageList_GetImageCount(*args
, **kwargs
)
3458 def Remove(*args
, **kwargs
):
3459 """Remove(self, int index) -> bool"""
3460 return _gdi_
.ImageList_Remove(*args
, **kwargs
)
3462 def RemoveAll(*args
, **kwargs
):
3463 """RemoveAll(self) -> bool"""
3464 return _gdi_
.ImageList_RemoveAll(*args
, **kwargs
)
3466 def GetSize(*args
, **kwargs
):
3467 """GetSize() -> (width,height)"""
3468 return _gdi_
.ImageList_GetSize(*args
, **kwargs
)
3471 class ImageListPtr(ImageList
):
3472 def __init__(self
, this
):
3474 if not hasattr(self
,"thisown"): self
.thisown
= 0
3475 self
.__class
__ = ImageList
3476 _gdi_
.ImageList_swigregister(ImageListPtr
)
3478 #---------------------------------------------------------------------------
3480 class PenList(_core
.Object
):
3481 def __init__(self
): raise RuntimeError, "No constructor defined"
3483 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3484 def AddPen(*args
, **kwargs
):
3485 """AddPen(self, Pen pen)"""
3486 return _gdi_
.PenList_AddPen(*args
, **kwargs
)
3488 def FindOrCreatePen(*args
, **kwargs
):
3489 """FindOrCreatePen(self, Colour colour, int width, int style) -> Pen"""
3490 return _gdi_
.PenList_FindOrCreatePen(*args
, **kwargs
)
3492 def RemovePen(*args
, **kwargs
):
3493 """RemovePen(self, Pen pen)"""
3494 return _gdi_
.PenList_RemovePen(*args
, **kwargs
)
3496 def GetCount(*args
, **kwargs
):
3497 """GetCount(self) -> int"""
3498 return _gdi_
.PenList_GetCount(*args
, **kwargs
)
3501 class PenListPtr(PenList
):
3502 def __init__(self
, this
):
3504 if not hasattr(self
,"thisown"): self
.thisown
= 0
3505 self
.__class
__ = PenList
3506 _gdi_
.PenList_swigregister(PenListPtr
)
3508 NORMAL_FONT
= cvar
.NORMAL_FONT
3509 SMALL_FONT
= cvar
.SMALL_FONT
3510 ITALIC_FONT
= cvar
.ITALIC_FONT
3511 SWISS_FONT
= cvar
.SWISS_FONT
3512 RED_PEN
= cvar
.RED_PEN
3513 CYAN_PEN
= cvar
.CYAN_PEN
3514 GREEN_PEN
= cvar
.GREEN_PEN
3515 BLACK_PEN
= cvar
.BLACK_PEN
3516 WHITE_PEN
= cvar
.WHITE_PEN
3517 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3518 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3519 GREY_PEN
= cvar
.GREY_PEN
3520 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3521 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3522 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3523 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3524 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3525 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3526 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3527 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3528 RED_BRUSH
= cvar
.RED_BRUSH
3529 GREY_BRUSH
= cvar
.GREY_BRUSH
3530 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3531 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3538 LIGHT_GREY
= cvar
.LIGHT_GREY
3539 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3540 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3541 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3542 NullBitmap
= cvar
.NullBitmap
3543 NullIcon
= cvar
.NullIcon
3544 NullCursor
= cvar
.NullCursor
3545 NullPen
= cvar
.NullPen
3546 NullBrush
= cvar
.NullBrush
3547 NullPalette
= cvar
.NullPalette
3548 NullFont
= cvar
.NullFont
3549 NullColour
= cvar
.NullColour
3551 class BrushList(_core
.Object
):
3552 def __init__(self
): raise RuntimeError, "No constructor defined"
3554 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3555 def AddBrush(*args
, **kwargs
):
3556 """AddBrush(self, Brush brush)"""
3557 return _gdi_
.BrushList_AddBrush(*args
, **kwargs
)
3559 def FindOrCreateBrush(*args
, **kwargs
):
3560 """FindOrCreateBrush(self, Colour colour, int style) -> Brush"""
3561 return _gdi_
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3563 def RemoveBrush(*args
, **kwargs
):
3564 """RemoveBrush(self, Brush brush)"""
3565 return _gdi_
.BrushList_RemoveBrush(*args
, **kwargs
)
3567 def GetCount(*args
, **kwargs
):
3568 """GetCount(self) -> int"""
3569 return _gdi_
.BrushList_GetCount(*args
, **kwargs
)
3572 class BrushListPtr(BrushList
):
3573 def __init__(self
, this
):
3575 if not hasattr(self
,"thisown"): self
.thisown
= 0
3576 self
.__class
__ = BrushList
3577 _gdi_
.BrushList_swigregister(BrushListPtr
)
3579 class ColourDatabase(_core
.Object
):
3581 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3582 def __init__(self
, *args
, **kwargs
):
3583 """__init__(self) -> ColourDatabase"""
3584 newobj
= _gdi_
.new_ColourDatabase(*args
, **kwargs
)
3585 self
.this
= newobj
.this
3588 def __del__(self
, destroy
=_gdi_
.delete_ColourDatabase
):
3591 if self
.thisown
: destroy(self
)
3594 def Find(*args
, **kwargs
):
3595 """Find(self, String name) -> Colour"""
3596 return _gdi_
.ColourDatabase_Find(*args
, **kwargs
)
3598 def FindName(*args
, **kwargs
):
3599 """FindName(self, Colour colour) -> String"""
3600 return _gdi_
.ColourDatabase_FindName(*args
, **kwargs
)
3603 def AddColour(*args
, **kwargs
):
3604 """AddColour(self, String name, Colour colour)"""
3605 return _gdi_
.ColourDatabase_AddColour(*args
, **kwargs
)
3607 def Append(*args
, **kwargs
):
3608 """Append(self, String name, int red, int green, int blue)"""
3609 return _gdi_
.ColourDatabase_Append(*args
, **kwargs
)
3612 class ColourDatabasePtr(ColourDatabase
):
3613 def __init__(self
, this
):
3615 if not hasattr(self
,"thisown"): self
.thisown
= 0
3616 self
.__class
__ = ColourDatabase
3617 _gdi_
.ColourDatabase_swigregister(ColourDatabasePtr
)
3619 class FontList(_core
.Object
):
3620 def __init__(self
): raise RuntimeError, "No constructor defined"
3622 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3623 def AddFont(*args
, **kwargs
):
3624 """AddFont(self, Font font)"""
3625 return _gdi_
.FontList_AddFont(*args
, **kwargs
)
3627 def FindOrCreateFont(*args
, **kwargs
):
3629 FindOrCreateFont(self, int point_size, int family, int style, int weight,
3630 bool underline=False, String facename=EmptyString,
3631 int encoding=FONTENCODING_DEFAULT) -> Font
3633 return _gdi_
.FontList_FindOrCreateFont(*args
, **kwargs
)
3635 def RemoveFont(*args
, **kwargs
):
3636 """RemoveFont(self, Font font)"""
3637 return _gdi_
.FontList_RemoveFont(*args
, **kwargs
)
3639 def GetCount(*args
, **kwargs
):
3640 """GetCount(self) -> int"""
3641 return _gdi_
.FontList_GetCount(*args
, **kwargs
)
3644 class FontListPtr(FontList
):
3645 def __init__(self
, this
):
3647 if not hasattr(self
,"thisown"): self
.thisown
= 0
3648 self
.__class
__ = FontList
3649 _gdi_
.FontList_swigregister(FontListPtr
)
3651 #---------------------------------------------------------------------------
3653 NullColor
= NullColour
3654 #---------------------------------------------------------------------------
3656 class Effects(_core
.Object
):
3658 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3659 def __init__(self
, *args
, **kwargs
):
3660 """__init__(self) -> Effects"""
3661 newobj
= _gdi_
.new_Effects(*args
, **kwargs
)
3662 self
.this
= newobj
.this
3665 def GetHighlightColour(*args
, **kwargs
):
3666 """GetHighlightColour(self) -> Colour"""
3667 return _gdi_
.Effects_GetHighlightColour(*args
, **kwargs
)
3669 def GetLightShadow(*args
, **kwargs
):
3670 """GetLightShadow(self) -> Colour"""
3671 return _gdi_
.Effects_GetLightShadow(*args
, **kwargs
)
3673 def GetFaceColour(*args
, **kwargs
):
3674 """GetFaceColour(self) -> Colour"""
3675 return _gdi_
.Effects_GetFaceColour(*args
, **kwargs
)
3677 def GetMediumShadow(*args
, **kwargs
):
3678 """GetMediumShadow(self) -> Colour"""
3679 return _gdi_
.Effects_GetMediumShadow(*args
, **kwargs
)
3681 def GetDarkShadow(*args
, **kwargs
):
3682 """GetDarkShadow(self) -> Colour"""
3683 return _gdi_
.Effects_GetDarkShadow(*args
, **kwargs
)
3685 def SetHighlightColour(*args
, **kwargs
):
3686 """SetHighlightColour(self, Colour c)"""
3687 return _gdi_
.Effects_SetHighlightColour(*args
, **kwargs
)
3689 def SetLightShadow(*args
, **kwargs
):
3690 """SetLightShadow(self, Colour c)"""
3691 return _gdi_
.Effects_SetLightShadow(*args
, **kwargs
)
3693 def SetFaceColour(*args
, **kwargs
):
3694 """SetFaceColour(self, Colour c)"""
3695 return _gdi_
.Effects_SetFaceColour(*args
, **kwargs
)
3697 def SetMediumShadow(*args
, **kwargs
):
3698 """SetMediumShadow(self, Colour c)"""
3699 return _gdi_
.Effects_SetMediumShadow(*args
, **kwargs
)
3701 def SetDarkShadow(*args
, **kwargs
):
3702 """SetDarkShadow(self, Colour c)"""
3703 return _gdi_
.Effects_SetDarkShadow(*args
, **kwargs
)
3705 def Set(*args
, **kwargs
):
3707 Set(self, Colour highlightColour, Colour lightShadow, Colour faceColour,
3708 Colour mediumShadow, Colour darkShadow)
3710 return _gdi_
.Effects_Set(*args
, **kwargs
)
3712 def DrawSunkenEdge(*args
, **kwargs
):
3713 """DrawSunkenEdge(self, DC dc, Rect rect, int borderSize=1)"""
3714 return _gdi_
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3716 def TileBitmap(*args
, **kwargs
):
3717 """TileBitmap(self, Rect rect, DC dc, Bitmap bitmap) -> bool"""
3718 return _gdi_
.Effects_TileBitmap(*args
, **kwargs
)
3721 class EffectsPtr(Effects
):
3722 def __init__(self
, this
):
3724 if not hasattr(self
,"thisown"): self
.thisown
= 0
3725 self
.__class
__ = Effects
3726 _gdi_
.Effects_swigregister(EffectsPtr
)
3727 TheFontList
= cvar
.TheFontList
3728 ThePenList
= cvar
.ThePenList
3729 TheBrushList
= cvar
.TheBrushList
3730 TheColourDatabase
= cvar
.TheColourDatabase