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
):
13 return "<%s.%s; proxy of C++ wxGDIObject instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
14 def __init__(self
, *args
, **kwargs
):
15 """__init__() -> GDIObject"""
16 newobj
= _gdi
.new_GDIObject(*args
, **kwargs
)
17 self
.this
= newobj
.this
20 def __del__(self
, destroy
=_gdi
.delete_GDIObject
):
23 if self
.thisown
: destroy(self
)
26 def GetVisible(*args
, **kwargs
):
27 """GetVisible() -> bool"""
28 return _gdi
.GDIObject_GetVisible(*args
, **kwargs
)
30 def SetVisible(*args
, **kwargs
):
31 """SetVisible(bool visible)"""
32 return _gdi
.GDIObject_SetVisible(*args
, **kwargs
)
34 def IsNull(*args
, **kwargs
):
35 """IsNull() -> bool"""
36 return _gdi
.GDIObject_IsNull(*args
, **kwargs
)
39 class GDIObjectPtr(GDIObject
):
40 def __init__(self
, this
):
42 if not hasattr(self
,"thisown"): self
.thisown
= 0
43 self
.__class
__ = GDIObject
44 _gdi
.GDIObject_swigregister(GDIObjectPtr
)
46 #---------------------------------------------------------------------------
48 class Colour(core
.Object
):
51 return "<%s.%s; proxy of C++ wxColour instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
52 def __init__(self
, *args
, **kwargs
):
53 """__init__(unsigned char red=0, unsigned char green=0, unsigned char blue=0) -> Colour"""
54 newobj
= _gdi
.new_Colour(*args
, **kwargs
)
55 self
.this
= newobj
.this
58 def __del__(self
, destroy
=_gdi
.delete_Colour
):
61 if self
.thisown
: destroy(self
)
64 def Red(*args
, **kwargs
):
65 """Red() -> unsigned char"""
66 return _gdi
.Colour_Red(*args
, **kwargs
)
68 def Green(*args
, **kwargs
):
69 """Green() -> unsigned char"""
70 return _gdi
.Colour_Green(*args
, **kwargs
)
72 def Blue(*args
, **kwargs
):
73 """Blue() -> unsigned char"""
74 return _gdi
.Colour_Blue(*args
, **kwargs
)
76 def Ok(*args
, **kwargs
):
78 return _gdi
.Colour_Ok(*args
, **kwargs
)
80 def Set(*args
, **kwargs
):
81 """Set(unsigned char red, unsigned char green, unsigned char blue)"""
82 return _gdi
.Colour_Set(*args
, **kwargs
)
84 def SetRBG(*args
, **kwargs
):
85 """SetRBG(unsigned long colRGB)"""
86 return _gdi
.Colour_SetRBG(*args
, **kwargs
)
88 def __eq__(*args
, **kwargs
):
89 """__eq__(Colour colour) -> bool"""
90 return _gdi
.Colour___eq__(*args
, **kwargs
)
92 def __ne__(*args
, **kwargs
):
93 """__ne__(Colour colour) -> bool"""
94 return _gdi
.Colour___ne__(*args
, **kwargs
)
96 def Get(*args
, **kwargs
):
97 """Get() -> PyObject"""
98 return _gdi
.Colour_Get(*args
, **kwargs
)
101 def __str__(self
): return str(self
.asTuple())
102 def __repr__(self
): return 'wxColour' + str(self
.asTuple())
103 def __nonzero__(self
): return self
.Ok()
104 def __getinitargs__(self
): return ()
105 def __getstate__(self
): return self
.asTuple()
106 def __setstate__(self
, state
): self
.Set(*state
)
109 class ColourPtr(Colour
):
110 def __init__(self
, this
):
112 if not hasattr(self
,"thisown"): self
.thisown
= 0
113 self
.__class
__ = Colour
114 _gdi
.Colour_swigregister(ColourPtr
)
116 def NamedColour(*args
, **kwargs
):
117 """NamedColour(wxString colorName) -> Colour"""
118 val
= _gdi
.new_NamedColour(*args
, **kwargs
)
122 def ColourRGB(*args
, **kwargs
):
123 """ColourRGB(unsigned long colRGB) -> Colour"""
124 val
= _gdi
.new_ColourRGB(*args
, **kwargs
)
128 class Palette(GDIObject
):
131 return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
132 def __init__(self
, *args
, **kwargs
):
133 """__init__(int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette"""
134 newobj
= _gdi
.new_Palette(*args
, **kwargs
)
135 self
.this
= newobj
.this
138 def __del__(self
, destroy
=_gdi
.delete_Palette
):
141 if self
.thisown
: destroy(self
)
144 def GetPixel(*args
, **kwargs
):
145 """GetPixel(byte red, byte green, byte blue) -> int"""
146 return _gdi
.Palette_GetPixel(*args
, **kwargs
)
148 def GetRGB(*args
, **kwargs
):
149 """GetRGB(int pixel) -> (R,G,B)"""
150 return _gdi
.Palette_GetRGB(*args
, **kwargs
)
152 def Ok(*args
, **kwargs
):
154 return _gdi
.Palette_Ok(*args
, **kwargs
)
156 def __nonzero__(self
): return self
.Ok()
158 class PalettePtr(Palette
):
159 def __init__(self
, this
):
161 if not hasattr(self
,"thisown"): self
.thisown
= 0
162 self
.__class
__ = Palette
163 _gdi
.Palette_swigregister(PalettePtr
)
165 #---------------------------------------------------------------------------
167 class Pen(GDIObject
):
170 return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
171 def __init__(self
, *args
, **kwargs
):
172 """__init__(Colour colour, int width=1, int style=SOLID) -> Pen"""
173 newobj
= _gdi
.new_Pen(*args
, **kwargs
)
174 self
.this
= newobj
.this
177 def __del__(self
, destroy
=_gdi
.delete_Pen
):
180 if self
.thisown
: destroy(self
)
183 def GetCap(*args
, **kwargs
):
184 """GetCap() -> int"""
185 return _gdi
.Pen_GetCap(*args
, **kwargs
)
187 def GetColour(*args
, **kwargs
):
188 """GetColour() -> Colour"""
189 return _gdi
.Pen_GetColour(*args
, **kwargs
)
191 def GetJoin(*args
, **kwargs
):
192 """GetJoin() -> int"""
193 return _gdi
.Pen_GetJoin(*args
, **kwargs
)
195 def GetStyle(*args
, **kwargs
):
196 """GetStyle() -> int"""
197 return _gdi
.Pen_GetStyle(*args
, **kwargs
)
199 def GetWidth(*args
, **kwargs
):
200 """GetWidth() -> int"""
201 return _gdi
.Pen_GetWidth(*args
, **kwargs
)
203 def Ok(*args
, **kwargs
):
205 return _gdi
.Pen_Ok(*args
, **kwargs
)
207 def SetCap(*args
, **kwargs
):
208 """SetCap(int cap_style)"""
209 return _gdi
.Pen_SetCap(*args
, **kwargs
)
211 def SetColour(*args
, **kwargs
):
212 """SetColour(Colour colour)"""
213 return _gdi
.Pen_SetColour(*args
, **kwargs
)
215 def SetJoin(*args
, **kwargs
):
216 """SetJoin(int join_style)"""
217 return _gdi
.Pen_SetJoin(*args
, **kwargs
)
219 def SetStyle(*args
, **kwargs
):
220 """SetStyle(int style)"""
221 return _gdi
.Pen_SetStyle(*args
, **kwargs
)
223 def SetWidth(*args
, **kwargs
):
224 """SetWidth(int width)"""
225 return _gdi
.Pen_SetWidth(*args
, **kwargs
)
227 def SetDashes(*args
, **kwargs
):
228 """SetDashes(int dashes, wxDash dashes_array)"""
229 return _gdi
.Pen_SetDashes(*args
, **kwargs
)
231 def GetDashes(*args
, **kwargs
):
232 """GetDashes() -> PyObject"""
233 return _gdi
.Pen_GetDashes(*args
, **kwargs
)
235 def __nonzero__(self
): return self
.Ok()
238 def __init__(self
, this
):
240 if not hasattr(self
,"thisown"): self
.thisown
= 0
242 _gdi
.Pen_swigregister(PenPtr
)
247 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
248 def __init__(self
, *args
, **kwargs
):
249 """__init__(Colour colour, int width=1, int style=SOLID) -> PyPen"""
250 newobj
= _gdi
.new_PyPen(*args
, **kwargs
)
251 self
.this
= newobj
.this
254 def __del__(self
, destroy
=_gdi
.delete_PyPen
):
257 if self
.thisown
: destroy(self
)
260 def SetDashes(*args
, **kwargs
):
261 """SetDashes(int dashes, wxDash dashes_array)"""
262 return _gdi
.PyPen_SetDashes(*args
, **kwargs
)
265 class PyPenPtr(PyPen
):
266 def __init__(self
, this
):
268 if not hasattr(self
,"thisown"): self
.thisown
= 0
269 self
.__class
__ = PyPen
270 _gdi
.PyPen_swigregister(PyPenPtr
)
273 #---------------------------------------------------------------------------
275 class Brush(GDIObject
):
276 """A brush is a drawing tool for filling in areas. It is used for painting the
277 background of rectangles, ellipses, etc. It has a colour and a style."""
279 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
280 def __init__(self
, *args
, **kwargs
):
281 """__init__(Colour colour, int style=SOLID) -> Brush
283 Constructs a brush from a colour object and style."""
284 newobj
= _gdi
.new_Brush(*args
, **kwargs
)
285 self
.this
= newobj
.this
288 def __del__(self
, destroy
=_gdi
.delete_Brush
):
291 if self
.thisown
: destroy(self
)
294 def SetColour(*args
, **kwargs
):
295 """SetColour(Colour col)"""
296 return _gdi
.Brush_SetColour(*args
, **kwargs
)
298 def SetStyle(*args
, **kwargs
):
299 """SetStyle(int style)"""
300 return _gdi
.Brush_SetStyle(*args
, **kwargs
)
302 def SetStipple(*args
, **kwargs
):
303 """SetStipple(Bitmap stipple)"""
304 return _gdi
.Brush_SetStipple(*args
, **kwargs
)
306 def GetColour(*args
, **kwargs
):
307 """GetColour() -> Colour"""
308 return _gdi
.Brush_GetColour(*args
, **kwargs
)
310 def GetStyle(*args
, **kwargs
):
311 """GetStyle() -> int"""
312 return _gdi
.Brush_GetStyle(*args
, **kwargs
)
314 def GetStipple(*args
, **kwargs
):
315 """GetStipple() -> Bitmap"""
316 return _gdi
.Brush_GetStipple(*args
, **kwargs
)
318 def Ok(*args
, **kwargs
):
320 return _gdi
.Brush_Ok(*args
, **kwargs
)
322 def __nonzero__(self
): return self
.Ok()
324 class BrushPtr(Brush
):
325 def __init__(self
, this
):
327 if not hasattr(self
,"thisown"): self
.thisown
= 0
328 self
.__class
__ = Brush
329 _gdi
.Brush_swigregister(BrushPtr
)
331 class Bitmap(GDIObject
):
334 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
335 def __init__(self
, *args
, **kwargs
):
336 """__init__(wxString name, wxBitmapType type=BITMAP_TYPE_ANY) -> Bitmap
338 Loads a bitmap from a file."""
339 newobj
= _gdi
.new_Bitmap(*args
, **kwargs
)
340 self
.this
= newobj
.this
343 def __del__(self
, destroy
=_gdi
.delete_Bitmap
):
346 if self
.thisown
: destroy(self
)
349 def Ok(*args
, **kwargs
):
351 return _gdi
.Bitmap_Ok(*args
, **kwargs
)
353 def GetWidth(*args
, **kwargs
):
356 Gets the width of the bitmap in pixels."""
357 return _gdi
.Bitmap_GetWidth(*args
, **kwargs
)
359 def GetHeight(*args
, **kwargs
):
360 """GetHeight() -> int
362 Gets the height of the bitmap in pixels."""
363 return _gdi
.Bitmap_GetHeight(*args
, **kwargs
)
365 def GetDepth(*args
, **kwargs
):
368 Gets the colour depth of the bitmap. A value of 1 indicates a
369 monochrome bitmap."""
370 return _gdi
.Bitmap_GetDepth(*args
, **kwargs
)
372 def ConvertToImage(*args
, **kwargs
):
373 """ConvertToImage() -> Image
375 Creates a platform-independent image from a platform-dependent bitmap. This
376 preserves mask information so that bitmaps and images can be converted back
377 and forth without loss in that respect."""
378 return _gdi
.Bitmap_ConvertToImage(*args
, **kwargs
)
380 def GetMask(*args
, **kwargs
):
383 Gets the associated mask (if any) which may have been loaded from a file
384 or explpicitly set for the bitmap."""
385 return _gdi
.Bitmap_GetMask(*args
, **kwargs
)
387 def SetMask(*args
, **kwargs
):
388 """SetMask(Mask mask)
390 Sets the mask for this bitmap."""
391 return _gdi
.Bitmap_SetMask(*args
, **kwargs
)
393 def SetMaskColour(*args
, **kwargs
):
394 """SetMaskColour(Colour colour)
396 Create a Mask based on a specified colour in the Bitmap."""
397 return _gdi
.Bitmap_SetMaskColour(*args
, **kwargs
)
399 def GetSubBitmap(*args
, **kwargs
):
400 """GetSubBitmap(Rect rect) -> Bitmap
402 Returns a sub bitmap of the current one as long as the rect belongs entirely
403 to the bitmap. This function preserves bit depth and mask information."""
404 return _gdi
.Bitmap_GetSubBitmap(*args
, **kwargs
)
406 def SaveFile(*args
, **kwargs
):
407 """SaveFile(wxString name, wxBitmapType type, Palette palette=(wxPalette *) NULL) -> bool
409 Saves a bitmap in the named file."""
410 return _gdi
.Bitmap_SaveFile(*args
, **kwargs
)
412 def LoadFile(*args
, **kwargs
):
413 """LoadFile(wxString name, wxBitmapType type) -> bool
415 Loads a bitmap from a file"""
416 return _gdi
.Bitmap_LoadFile(*args
, **kwargs
)
418 def CopyFromIcon(*args
, **kwargs
):
419 """CopyFromIcon(Icon icon) -> bool"""
420 return _gdi
.Bitmap_CopyFromIcon(*args
, **kwargs
)
422 def SetHeight(*args
, **kwargs
):
423 """SetHeight(int height)
425 Set the height property (does not affect the bitmap data)."""
426 return _gdi
.Bitmap_SetHeight(*args
, **kwargs
)
428 def SetWidth(*args
, **kwargs
):
429 """SetWidth(int width)
431 Set the width property (does not affect the bitmap data)."""
432 return _gdi
.Bitmap_SetWidth(*args
, **kwargs
)
434 def SetDepth(*args
, **kwargs
):
435 """SetDepth(int depth)
437 Set the depth property (does not affect the bitmap data)."""
438 return _gdi
.Bitmap_SetDepth(*args
, **kwargs
)
440 def __nonzero__(self
): return self
.Ok()
442 class BitmapPtr(Bitmap
):
443 def __init__(self
, this
):
445 if not hasattr(self
,"thisown"): self
.thisown
= 0
446 self
.__class
__ = Bitmap
447 _gdi
.Bitmap_swigregister(BitmapPtr
)
449 def EmptyBitmap(*args
, **kwargs
):
450 """EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
452 Creates a new bitmap of the given size. A depth of -1 indicates the depth of
453 the current screen or visual. Some platforms only support 1 for monochrome and
454 -1 for the current colour setting."""
455 val
= _gdi
.new_EmptyBitmap(*args
, **kwargs
)
459 def BitmapFromIcon(*args
, **kwargs
):
460 """BitmapFromIcon(Icon icon) -> Bitmap
462 Create a new bitmap from an Icon object."""
463 val
= _gdi
.new_BitmapFromIcon(*args
, **kwargs
)
467 def BitmapFromImage(*args
, **kwargs
):
468 """BitmapFromImage(Image image, int depth=-1) -> Bitmap
470 Creates bitmap object from the image. This has to be done to actually display
471 an image as you cannot draw an image directly on a window. The resulting
472 bitmap will use the provided colour depth (or that of the current system if
473 depth is -1) which entails that a colour reduction has to take place."""
474 val
= _gdi
.new_BitmapFromImage(*args
, **kwargs
)
478 def BitmapFromXPMData(*args
, **kwargs
):
479 """BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
481 Construct a Bitmap from a list of strings formatted as XPM data."""
482 val
= _gdi
.new_BitmapFromXPMData(*args
, **kwargs
)
486 def BitmapFromBits(*args
, **kwargs
):
487 """BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
489 Creates a bitmap from an array of bits. You should only use this function for
490 monochrome bitmaps (depth 1) in portable programs: in this case the bits
491 parameter should contain an XBM image. For other bit depths, the behaviour is
492 platform dependent."""
493 val
= _gdi
.new_BitmapFromBits(*args
, **kwargs
)
497 class Mask(core
.Object
):
498 """This class encapsulates a monochrome mask bitmap, where the masked area is
499 black and the unmasked area is white. When associated with a bitmap and drawn
500 in a device context, the unmasked area of the bitmap will be drawn, and the
501 masked area will not be drawn."""
503 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
504 def __init__(self
, *args
, **kwargs
):
505 """__init__(Bitmap bitmap) -> Mask
507 Constructs a mask from a monochrome bitmap."""
508 newobj
= _gdi
.new_Mask(*args
, **kwargs
)
509 self
.this
= newobj
.this
514 def __init__(self
, this
):
516 if not hasattr(self
,"thisown"): self
.thisown
= 0
517 self
.__class
__ = Mask
518 _gdi
.Mask_swigregister(MaskPtr
)
520 def MaskColour(*args
, **kwargs
):
521 """MaskColour(Bitmap bitmap, Colour colour) -> Mask
523 Constructs a mask from a bitmap and a colour in that bitmap that indicates the
525 val
= _gdi
.new_MaskColour(*args
, **kwargs
)
529 class Icon(GDIObject
):
532 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
533 def __init__(self
, *args
, **kwargs
):
534 """__init__(wxString name, long flags, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
535 newobj
= _gdi
.new_Icon(*args
, **kwargs
)
536 self
.this
= newobj
.this
539 def __del__(self
, destroy
=_gdi
.delete_Icon
):
542 if self
.thisown
: destroy(self
)
545 def LoadFile(*args
, **kwargs
):
546 """LoadFile(wxString name, long flags) -> bool"""
547 return _gdi
.Icon_LoadFile(*args
, **kwargs
)
549 def Ok(*args
, **kwargs
):
551 return _gdi
.Icon_Ok(*args
, **kwargs
)
553 def GetWidth(*args
, **kwargs
):
554 """GetWidth() -> int"""
555 return _gdi
.Icon_GetWidth(*args
, **kwargs
)
557 def GetHeight(*args
, **kwargs
):
558 """GetHeight() -> int"""
559 return _gdi
.Icon_GetHeight(*args
, **kwargs
)
561 def GetDepth(*args
, **kwargs
):
562 """GetDepth() -> int"""
563 return _gdi
.Icon_GetDepth(*args
, **kwargs
)
565 def SetWidth(*args
, **kwargs
):
566 """SetWidth(int w)"""
567 return _gdi
.Icon_SetWidth(*args
, **kwargs
)
569 def SetHeight(*args
, **kwargs
):
570 """SetHeight(int h)"""
571 return _gdi
.Icon_SetHeight(*args
, **kwargs
)
573 def SetDepth(*args
, **kwargs
):
574 """SetDepth(int d)"""
575 return _gdi
.Icon_SetDepth(*args
, **kwargs
)
577 def CopyFromBitmap(*args
, **kwargs
):
578 """CopyFromBitmap(Bitmap bmp)"""
579 return _gdi
.Icon_CopyFromBitmap(*args
, **kwargs
)
581 def __nonzero__(self
): return self
.Ok()
584 def __init__(self
, this
):
586 if not hasattr(self
,"thisown"): self
.thisown
= 0
587 self
.__class
__ = Icon
588 _gdi
.Icon_swigregister(IconPtr
)
590 def EmptyIcon(*args
, **kwargs
):
591 """EmptyIcon() -> Icon"""
592 val
= _gdi
.new_EmptyIcon(*args
, **kwargs
)
596 def IconFromLocation(*args
, **kwargs
):
597 """IconFromLocation(IconLocation loc) -> Icon"""
598 val
= _gdi
.new_IconFromLocation(*args
, **kwargs
)
602 def IconFromBitmap(*args
, **kwargs
):
603 """IconFromBitmap(Bitmap bmp) -> Icon"""
604 val
= _gdi
.new_IconFromBitmap(*args
, **kwargs
)
608 def IconFromXPMData(*args
, **kwargs
):
609 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
610 val
= _gdi
.new_IconFromXPMData(*args
, **kwargs
)
614 class IconLocation(object):
617 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
618 def __init__(self
, *args
, **kwargs
):
619 """__init__(wxString filename=&wxPyEmptyString, int num=0) -> IconLocation"""
620 newobj
= _gdi
.new_IconLocation(*args
, **kwargs
)
621 self
.this
= newobj
.this
624 def __del__(self
, destroy
=_gdi
.delete_IconLocation
):
627 if self
.thisown
: destroy(self
)
630 def IsOk(*args
, **kwargs
):
632 return _gdi
.IconLocation_IsOk(*args
, **kwargs
)
634 def __nonzero__(self
): return self
.Ok()
635 def SetFileName(*args
, **kwargs
):
636 """SetFileName(wxString filename)"""
637 return _gdi
.IconLocation_SetFileName(*args
, **kwargs
)
639 def GetFileName(*args
, **kwargs
):
640 """GetFileName() -> wxString"""
641 return _gdi
.IconLocation_GetFileName(*args
, **kwargs
)
643 def SetIndex(*args
, **kwargs
):
644 """SetIndex(int num)"""
645 return _gdi
.IconLocation_SetIndex(*args
, **kwargs
)
647 def GetIndex(*args
, **kwargs
):
648 """GetIndex() -> int"""
649 return _gdi
.IconLocation_GetIndex(*args
, **kwargs
)
652 class IconLocationPtr(IconLocation
):
653 def __init__(self
, this
):
655 if not hasattr(self
,"thisown"): self
.thisown
= 0
656 self
.__class
__ = IconLocation
657 _gdi
.IconLocation_swigregister(IconLocationPtr
)
659 class IconBundle(object):
662 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
663 def __init__(self
, *args
, **kwargs
):
664 """__init__() -> IconBundle"""
665 newobj
= _gdi
.new_IconBundle(*args
, **kwargs
)
666 self
.this
= newobj
.this
669 def __del__(self
, destroy
=_gdi
.delete_IconBundle
):
672 if self
.thisown
: destroy(self
)
675 def AddIcon(*args
, **kwargs
):
676 """AddIcon(Icon icon)"""
677 return _gdi
.IconBundle_AddIcon(*args
, **kwargs
)
679 def AddIconFromFile(*args
, **kwargs
):
680 """AddIconFromFile(wxString file, long type)"""
681 return _gdi
.IconBundle_AddIconFromFile(*args
, **kwargs
)
683 def GetIcon(*args
, **kwargs
):
684 """GetIcon(Size size) -> Icon"""
685 return _gdi
.IconBundle_GetIcon(*args
, **kwargs
)
688 class IconBundlePtr(IconBundle
):
689 def __init__(self
, this
):
691 if not hasattr(self
,"thisown"): self
.thisown
= 0
692 self
.__class
__ = IconBundle
693 _gdi
.IconBundle_swigregister(IconBundlePtr
)
695 def IconBundleFromFile(*args
, **kwargs
):
696 """IconBundleFromFile(wxString file, long type) -> IconBundle"""
697 val
= _gdi
.new_IconBundleFromFile(*args
, **kwargs
)
701 def IconBundleFromIcon(*args
, **kwargs
):
702 """IconBundleFromIcon(Icon icon) -> IconBundle"""
703 val
= _gdi
.new_IconBundleFromIcon(*args
, **kwargs
)
707 class Cursor(GDIObject
):
710 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
711 def __init__(self
, *args
, **kwargs
):
712 """__init__(wxString cursorName, long flags, int hotSpotX=0, int hotSpotY=0) -> Cursor"""
713 newobj
= _gdi
.new_Cursor(*args
, **kwargs
)
714 self
.this
= newobj
.this
717 def __del__(self
, destroy
=_gdi
.delete_Cursor
):
720 if self
.thisown
: destroy(self
)
723 def Ok(*args
, **kwargs
):
725 return _gdi
.Cursor_Ok(*args
, **kwargs
)
727 def __nonzero__(self
): return self
.Ok()
729 class CursorPtr(Cursor
):
730 def __init__(self
, this
):
732 if not hasattr(self
,"thisown"): self
.thisown
= 0
733 self
.__class
__ = Cursor
734 _gdi
.Cursor_swigregister(CursorPtr
)
736 def StockCursor(*args
, **kwargs
):
737 """StockCursor(int id) -> Cursor"""
738 val
= _gdi
.new_StockCursor(*args
, **kwargs
)
742 def CursorFromImage(*args
, **kwargs
):
743 """CursorFromImage(Image image) -> Cursor"""
744 val
= _gdi
.new_CursorFromImage(*args
, **kwargs
)
748 def CursorFromBits(*args
, **kwargs
):
749 """CursorFromBits(PyObject bits, int width, int height, int hotSpotX=-1,
750 int hotSpotY=-1, PyObject maskBits=0) -> Cursor"""
751 val
= _gdi
.new_CursorFromBits(*args
, **kwargs
)
755 #---------------------------------------------------------------------------
757 OutRegion
= _gdi
.OutRegion
758 PartRegion
= _gdi
.PartRegion
759 InRegion
= _gdi
.InRegion
760 class Region(GDIObject
):
763 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
764 def __init__(self
, *args
, **kwargs
):
765 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
766 newobj
= _gdi
.new_Region(*args
, **kwargs
)
767 self
.this
= newobj
.this
770 def __del__(self
, destroy
=_gdi
.delete_Region
):
773 if self
.thisown
: destroy(self
)
776 def Clear(*args
, **kwargs
):
778 return _gdi
.Region_Clear(*args
, **kwargs
)
780 def Offset(*args
, **kwargs
):
781 """Offset(int x, int y) -> bool"""
782 return _gdi
.Region_Offset(*args
, **kwargs
)
784 def Contains(*args
, **kwargs
):
785 """Contains(int x, int y) -> wxRegionContain"""
786 return _gdi
.Region_Contains(*args
, **kwargs
)
788 def ContainsPoint(*args
, **kwargs
):
789 """ContainsPoint(Point pt) -> wxRegionContain"""
790 return _gdi
.Region_ContainsPoint(*args
, **kwargs
)
792 def ContainsRect(*args
, **kwargs
):
793 """ContainsRect(Rect rect) -> wxRegionContain"""
794 return _gdi
.Region_ContainsRect(*args
, **kwargs
)
796 def ContainsRectDim(*args
, **kwargs
):
797 """ContainsRectDim(int x, int y, int w, int h) -> wxRegionContain"""
798 return _gdi
.Region_ContainsRectDim(*args
, **kwargs
)
800 def GetBox(*args
, **kwargs
):
801 """GetBox() -> Rect"""
802 return _gdi
.Region_GetBox(*args
, **kwargs
)
804 def Intersect(*args
, **kwargs
):
805 """Intersect(int x, int y, int width, int height) -> bool"""
806 return _gdi
.Region_Intersect(*args
, **kwargs
)
808 def IntersectRect(*args
, **kwargs
):
809 """IntersectRect(Rect rect) -> bool"""
810 return _gdi
.Region_IntersectRect(*args
, **kwargs
)
812 def IntersectRegion(*args
, **kwargs
):
813 """IntersectRegion(Region region) -> bool"""
814 return _gdi
.Region_IntersectRegion(*args
, **kwargs
)
816 def IsEmpty(*args
, **kwargs
):
817 """IsEmpty() -> bool"""
818 return _gdi
.Region_IsEmpty(*args
, **kwargs
)
820 def Union(*args
, **kwargs
):
821 """Union(int x, int y, int width, int height) -> bool"""
822 return _gdi
.Region_Union(*args
, **kwargs
)
824 def UnionRect(*args
, **kwargs
):
825 """UnionRect(Rect rect) -> bool"""
826 return _gdi
.Region_UnionRect(*args
, **kwargs
)
828 def UnionRegion(*args
, **kwargs
):
829 """UnionRegion(Region region) -> bool"""
830 return _gdi
.Region_UnionRegion(*args
, **kwargs
)
832 def Subtract(*args
, **kwargs
):
833 """Subtract(int x, int y, int width, int height) -> bool"""
834 return _gdi
.Region_Subtract(*args
, **kwargs
)
836 def SubtractRect(*args
, **kwargs
):
837 """SubtractRect(Rect rect) -> bool"""
838 return _gdi
.Region_SubtractRect(*args
, **kwargs
)
840 def SubtractRegion(*args
, **kwargs
):
841 """SubtractRegion(Region region) -> bool"""
842 return _gdi
.Region_SubtractRegion(*args
, **kwargs
)
844 def Xor(*args
, **kwargs
):
845 """Xor(int x, int y, int width, int height) -> bool"""
846 return _gdi
.Region_Xor(*args
, **kwargs
)
848 def XorRect(*args
, **kwargs
):
849 """XorRect(Rect rect) -> bool"""
850 return _gdi
.Region_XorRect(*args
, **kwargs
)
852 def XorRegion(*args
, **kwargs
):
853 """XorRegion(Region region) -> bool"""
854 return _gdi
.Region_XorRegion(*args
, **kwargs
)
856 def ConvertToBitmap(*args
, **kwargs
):
857 """ConvertToBitmap() -> Bitmap"""
858 return _gdi
.Region_ConvertToBitmap(*args
, **kwargs
)
860 def UnionBitmap(*args
, **kwargs
):
861 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
862 return _gdi
.Region_UnionBitmap(*args
, **kwargs
)
865 class RegionPtr(Region
):
866 def __init__(self
, this
):
868 if not hasattr(self
,"thisown"): self
.thisown
= 0
869 self
.__class
__ = Region
870 _gdi
.Region_swigregister(RegionPtr
)
872 def RegionFromBitmap(*args
, **kwargs
):
873 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
874 val
= _gdi
.new_RegionFromBitmap(*args
, **kwargs
)
878 def RegionFromPoints(*args
, **kwargs
):
879 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
880 val
= _gdi
.new_RegionFromPoints(*args
, **kwargs
)
884 class RegionIterator(core
.Object
):
887 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
888 def __init__(self
, *args
, **kwargs
):
889 """__init__(Region region) -> RegionIterator"""
890 newobj
= _gdi
.new_RegionIterator(*args
, **kwargs
)
891 self
.this
= newobj
.this
894 def __del__(self
, destroy
=_gdi
.delete_RegionIterator
):
897 if self
.thisown
: destroy(self
)
900 def GetX(*args
, **kwargs
):
902 return _gdi
.RegionIterator_GetX(*args
, **kwargs
)
904 def GetY(*args
, **kwargs
):
906 return _gdi
.RegionIterator_GetY(*args
, **kwargs
)
908 def GetW(*args
, **kwargs
):
910 return _gdi
.RegionIterator_GetW(*args
, **kwargs
)
912 def GetWidth(*args
, **kwargs
):
913 """GetWidth() -> int"""
914 return _gdi
.RegionIterator_GetWidth(*args
, **kwargs
)
916 def GetH(*args
, **kwargs
):
918 return _gdi
.RegionIterator_GetH(*args
, **kwargs
)
920 def GetHeight(*args
, **kwargs
):
921 """GetHeight() -> int"""
922 return _gdi
.RegionIterator_GetHeight(*args
, **kwargs
)
924 def GetRect(*args
, **kwargs
):
925 """GetRect() -> Rect"""
926 return _gdi
.RegionIterator_GetRect(*args
, **kwargs
)
928 def HaveRects(*args
, **kwargs
):
929 """HaveRects() -> bool"""
930 return _gdi
.RegionIterator_HaveRects(*args
, **kwargs
)
932 def Reset(*args
, **kwargs
):
934 return _gdi
.RegionIterator_Reset(*args
, **kwargs
)
936 def Next(*args
, **kwargs
):
938 return _gdi
.RegionIterator_Next(*args
, **kwargs
)
940 def __nonzero__(*args
, **kwargs
):
941 """__nonzero__() -> bool"""
942 return _gdi
.RegionIterator___nonzero__(*args
, **kwargs
)
945 class RegionIteratorPtr(RegionIterator
):
946 def __init__(self
, this
):
948 if not hasattr(self
,"thisown"): self
.thisown
= 0
949 self
.__class
__ = RegionIterator
950 _gdi
.RegionIterator_swigregister(RegionIteratorPtr
)
952 #---------------------------------------------------------------------------
954 FONTFAMILY_DEFAULT
= _gdi
.FONTFAMILY_DEFAULT
955 FONTFAMILY_DECORATIVE
= _gdi
.FONTFAMILY_DECORATIVE
956 FONTFAMILY_ROMAN
= _gdi
.FONTFAMILY_ROMAN
957 FONTFAMILY_SCRIPT
= _gdi
.FONTFAMILY_SCRIPT
958 FONTFAMILY_SWISS
= _gdi
.FONTFAMILY_SWISS
959 FONTFAMILY_MODERN
= _gdi
.FONTFAMILY_MODERN
960 FONTFAMILY_TELETYPE
= _gdi
.FONTFAMILY_TELETYPE
961 FONTFAMILY_MAX
= _gdi
.FONTFAMILY_MAX
962 FONTFAMILY_UNKNOWN
= _gdi
.FONTFAMILY_UNKNOWN
963 FONTSTYLE_NORMAL
= _gdi
.FONTSTYLE_NORMAL
964 FONTSTYLE_ITALIC
= _gdi
.FONTSTYLE_ITALIC
965 FONTSTYLE_SLANT
= _gdi
.FONTSTYLE_SLANT
966 FONTSTYLE_MAX
= _gdi
.FONTSTYLE_MAX
967 FONTWEIGHT_NORMAL
= _gdi
.FONTWEIGHT_NORMAL
968 FONTWEIGHT_LIGHT
= _gdi
.FONTWEIGHT_LIGHT
969 FONTWEIGHT_BOLD
= _gdi
.FONTWEIGHT_BOLD
970 FONTWEIGHT_MAX
= _gdi
.FONTWEIGHT_MAX
971 FONTFLAG_DEFAULT
= _gdi
.FONTFLAG_DEFAULT
972 FONTFLAG_ITALIC
= _gdi
.FONTFLAG_ITALIC
973 FONTFLAG_SLANT
= _gdi
.FONTFLAG_SLANT
974 FONTFLAG_LIGHT
= _gdi
.FONTFLAG_LIGHT
975 FONTFLAG_BOLD
= _gdi
.FONTFLAG_BOLD
976 FONTFLAG_ANTIALIASED
= _gdi
.FONTFLAG_ANTIALIASED
977 FONTFLAG_NOT_ANTIALIASED
= _gdi
.FONTFLAG_NOT_ANTIALIASED
978 FONTFLAG_UNDERLINED
= _gdi
.FONTFLAG_UNDERLINED
979 FONTFLAG_STRIKETHROUGH
= _gdi
.FONTFLAG_STRIKETHROUGH
980 FONTFLAG_MASK
= _gdi
.FONTFLAG_MASK
981 FONTENCODING_SYSTEM
= _gdi
.FONTENCODING_SYSTEM
982 FONTENCODING_DEFAULT
= _gdi
.FONTENCODING_DEFAULT
983 FONTENCODING_ISO8859_1
= _gdi
.FONTENCODING_ISO8859_1
984 FONTENCODING_ISO8859_2
= _gdi
.FONTENCODING_ISO8859_2
985 FONTENCODING_ISO8859_3
= _gdi
.FONTENCODING_ISO8859_3
986 FONTENCODING_ISO8859_4
= _gdi
.FONTENCODING_ISO8859_4
987 FONTENCODING_ISO8859_5
= _gdi
.FONTENCODING_ISO8859_5
988 FONTENCODING_ISO8859_6
= _gdi
.FONTENCODING_ISO8859_6
989 FONTENCODING_ISO8859_7
= _gdi
.FONTENCODING_ISO8859_7
990 FONTENCODING_ISO8859_8
= _gdi
.FONTENCODING_ISO8859_8
991 FONTENCODING_ISO8859_9
= _gdi
.FONTENCODING_ISO8859_9
992 FONTENCODING_ISO8859_10
= _gdi
.FONTENCODING_ISO8859_10
993 FONTENCODING_ISO8859_11
= _gdi
.FONTENCODING_ISO8859_11
994 FONTENCODING_ISO8859_12
= _gdi
.FONTENCODING_ISO8859_12
995 FONTENCODING_ISO8859_13
= _gdi
.FONTENCODING_ISO8859_13
996 FONTENCODING_ISO8859_14
= _gdi
.FONTENCODING_ISO8859_14
997 FONTENCODING_ISO8859_15
= _gdi
.FONTENCODING_ISO8859_15
998 FONTENCODING_ISO8859_MAX
= _gdi
.FONTENCODING_ISO8859_MAX
999 FONTENCODING_KOI8
= _gdi
.FONTENCODING_KOI8
1000 FONTENCODING_ALTERNATIVE
= _gdi
.FONTENCODING_ALTERNATIVE
1001 FONTENCODING_BULGARIAN
= _gdi
.FONTENCODING_BULGARIAN
1002 FONTENCODING_CP437
= _gdi
.FONTENCODING_CP437
1003 FONTENCODING_CP850
= _gdi
.FONTENCODING_CP850
1004 FONTENCODING_CP852
= _gdi
.FONTENCODING_CP852
1005 FONTENCODING_CP855
= _gdi
.FONTENCODING_CP855
1006 FONTENCODING_CP866
= _gdi
.FONTENCODING_CP866
1007 FONTENCODING_CP874
= _gdi
.FONTENCODING_CP874
1008 FONTENCODING_CP932
= _gdi
.FONTENCODING_CP932
1009 FONTENCODING_CP936
= _gdi
.FONTENCODING_CP936
1010 FONTENCODING_CP949
= _gdi
.FONTENCODING_CP949
1011 FONTENCODING_CP950
= _gdi
.FONTENCODING_CP950
1012 FONTENCODING_CP1250
= _gdi
.FONTENCODING_CP1250
1013 FONTENCODING_CP1251
= _gdi
.FONTENCODING_CP1251
1014 FONTENCODING_CP1252
= _gdi
.FONTENCODING_CP1252
1015 FONTENCODING_CP1253
= _gdi
.FONTENCODING_CP1253
1016 FONTENCODING_CP1254
= _gdi
.FONTENCODING_CP1254
1017 FONTENCODING_CP1255
= _gdi
.FONTENCODING_CP1255
1018 FONTENCODING_CP1256
= _gdi
.FONTENCODING_CP1256
1019 FONTENCODING_CP1257
= _gdi
.FONTENCODING_CP1257
1020 FONTENCODING_CP12_MAX
= _gdi
.FONTENCODING_CP12_MAX
1021 FONTENCODING_UTF7
= _gdi
.FONTENCODING_UTF7
1022 FONTENCODING_UTF8
= _gdi
.FONTENCODING_UTF8
1023 FONTENCODING_EUC_JP
= _gdi
.FONTENCODING_EUC_JP
1024 FONTENCODING_UTF16BE
= _gdi
.FONTENCODING_UTF16BE
1025 FONTENCODING_UTF16LE
= _gdi
.FONTENCODING_UTF16LE
1026 FONTENCODING_UTF32BE
= _gdi
.FONTENCODING_UTF32BE
1027 FONTENCODING_UTF32LE
= _gdi
.FONTENCODING_UTF32LE
1028 FONTENCODING_MAX
= _gdi
.FONTENCODING_MAX
1029 FONTENCODING_UTF16
= _gdi
.FONTENCODING_UTF16
1030 FONTENCODING_UTF32
= _gdi
.FONTENCODING_UTF32
1031 FONTENCODING_UNICODE
= _gdi
.FONTENCODING_UNICODE
1032 FONTENCODING_GB2312
= _gdi
.FONTENCODING_GB2312
1033 FONTENCODING_BIG5
= _gdi
.FONTENCODING_BIG5
1034 FONTENCODING_SHIFT_JIS
= _gdi
.FONTENCODING_SHIFT_JIS
1035 #---------------------------------------------------------------------------
1037 class NativeFontInfo(object):
1040 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1041 def __init__(self
, *args
, **kwargs
):
1042 """__init__() -> NativeFontInfo"""
1043 newobj
= _gdi
.new_NativeFontInfo(*args
, **kwargs
)
1044 self
.this
= newobj
.this
1047 def __del__(self
, destroy
=_gdi
.delete_NativeFontInfo
):
1050 if self
.thisown
: destroy(self
)
1053 def Init(*args
, **kwargs
):
1055 return _gdi
.NativeFontInfo_Init(*args
, **kwargs
)
1057 def InitFromFont(*args
, **kwargs
):
1058 """InitFromFont(Font font)"""
1059 return _gdi
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1061 def GetPointSize(*args
, **kwargs
):
1062 """GetPointSize() -> int"""
1063 return _gdi
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1065 def GetStyle(*args
, **kwargs
):
1066 """GetStyle() -> wxFontStyle"""
1067 return _gdi
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1069 def GetWeight(*args
, **kwargs
):
1070 """GetWeight() -> wxFontWeight"""
1071 return _gdi
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1073 def GetUnderlined(*args
, **kwargs
):
1074 """GetUnderlined() -> bool"""
1075 return _gdi
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1077 def GetFaceName(*args
, **kwargs
):
1078 """GetFaceName() -> wxString"""
1079 return _gdi
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1081 def GetFamily(*args
, **kwargs
):
1082 """GetFamily() -> wxFontFamily"""
1083 return _gdi
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1085 def GetEncoding(*args
, **kwargs
):
1086 """GetEncoding() -> wxFontEncoding"""
1087 return _gdi
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1089 def SetPointSize(*args
, **kwargs
):
1090 """SetPointSize(int pointsize)"""
1091 return _gdi
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1093 def SetStyle(*args
, **kwargs
):
1094 """SetStyle(wxFontStyle style)"""
1095 return _gdi
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1097 def SetWeight(*args
, **kwargs
):
1098 """SetWeight(wxFontWeight weight)"""
1099 return _gdi
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1101 def SetUnderlined(*args
, **kwargs
):
1102 """SetUnderlined(bool underlined)"""
1103 return _gdi
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1105 def SetFaceName(*args
, **kwargs
):
1106 """SetFaceName(wxString facename)"""
1107 return _gdi
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1109 def SetFamily(*args
, **kwargs
):
1110 """SetFamily(wxFontFamily family)"""
1111 return _gdi
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1113 def SetEncoding(*args
, **kwargs
):
1114 """SetEncoding(wxFontEncoding encoding)"""
1115 return _gdi
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1117 def FromString(*args
, **kwargs
):
1118 """FromString(wxString s) -> bool"""
1119 return _gdi
.NativeFontInfo_FromString(*args
, **kwargs
)
1121 def ToString(*args
, **kwargs
):
1122 """ToString() -> wxString"""
1123 return _gdi
.NativeFontInfo_ToString(*args
, **kwargs
)
1125 def __str__(*args
, **kwargs
):
1126 """__str__() -> wxString"""
1127 return _gdi
.NativeFontInfo___str__(*args
, **kwargs
)
1129 def FromUserString(*args
, **kwargs
):
1130 """FromUserString(wxString s) -> bool"""
1131 return _gdi
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1133 def ToUserString(*args
, **kwargs
):
1134 """ToUserString() -> wxString"""
1135 return _gdi
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1138 class NativeFontInfoPtr(NativeFontInfo
):
1139 def __init__(self
, this
):
1141 if not hasattr(self
,"thisown"): self
.thisown
= 0
1142 self
.__class
__ = NativeFontInfo
1143 _gdi
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1145 class NativeEncodingInfo(object):
1148 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1149 facename
= property(_gdi
.NativeEncodingInfo_facename_get
, _gdi
.NativeEncodingInfo_facename_set
)
1150 encoding
= property(_gdi
.NativeEncodingInfo_encoding_get
, _gdi
.NativeEncodingInfo_encoding_set
)
1151 def __init__(self
, *args
, **kwargs
):
1152 """__init__() -> NativeEncodingInfo"""
1153 newobj
= _gdi
.new_NativeEncodingInfo(*args
, **kwargs
)
1154 self
.this
= newobj
.this
1157 def __del__(self
, destroy
=_gdi
.delete_NativeEncodingInfo
):
1160 if self
.thisown
: destroy(self
)
1163 def FromString(*args
, **kwargs
):
1164 """FromString(wxString s) -> bool"""
1165 return _gdi
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1167 def ToString(*args
, **kwargs
):
1168 """ToString() -> wxString"""
1169 return _gdi
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1172 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1173 def __init__(self
, this
):
1175 if not hasattr(self
,"thisown"): self
.thisown
= 0
1176 self
.__class
__ = NativeEncodingInfo
1177 _gdi
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1180 def GetNativeFontEncoding(*args
, **kwargs
):
1181 """GetNativeFontEncoding(wxFontEncoding encoding) -> NativeEncodingInfo"""
1182 return _gdi
.GetNativeFontEncoding(*args
, **kwargs
)
1184 def TestFontEncoding(*args
, **kwargs
):
1185 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1186 return _gdi
.TestFontEncoding(*args
, **kwargs
)
1187 #---------------------------------------------------------------------------
1189 class FontMapper(object):
1192 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1193 def __init__(self
, *args
, **kwargs
):
1194 """__init__() -> FontMapper"""
1195 newobj
= _gdi
.new_FontMapper(*args
, **kwargs
)
1196 self
.this
= newobj
.this
1199 def __del__(self
, destroy
=_gdi
.delete_FontMapper
):
1202 if self
.thisown
: destroy(self
)
1205 def Get(*args
, **kwargs
):
1206 """FontMapper.Get() -> FontMapper"""
1207 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1209 Get
= staticmethod(Get
)
1210 def Set(*args
, **kwargs
):
1211 """FontMapper.Set(FontMapper mapper) -> FontMapper"""
1212 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1214 Set
= staticmethod(Set
)
1215 def CharsetToEncoding(*args
, **kwargs
):
1216 """CharsetToEncoding(wxString charset, bool interactive=True) -> wxFontEncoding"""
1217 return _gdi
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1219 def GetSupportedEncodingsCount(*args
, **kwargs
):
1220 """FontMapper.GetSupportedEncodingsCount() -> size_t"""
1221 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1223 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1224 def GetEncoding(*args
, **kwargs
):
1225 """FontMapper.GetEncoding(size_t n) -> wxFontEncoding"""
1226 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1228 GetEncoding
= staticmethod(GetEncoding
)
1229 def GetEncodingName(*args
, **kwargs
):
1230 """FontMapper.GetEncodingName(wxFontEncoding encoding) -> wxString"""
1231 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1233 GetEncodingName
= staticmethod(GetEncodingName
)
1234 def GetEncodingDescription(*args
, **kwargs
):
1235 """FontMapper.GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1236 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1238 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1239 def SetConfig(*args
, **kwargs
):
1240 """SetConfig(wxConfigBase config)"""
1241 return _gdi
.FontMapper_SetConfig(*args
, **kwargs
)
1243 def SetConfigPath(*args
, **kwargs
):
1244 """SetConfigPath(wxString prefix)"""
1245 return _gdi
.FontMapper_SetConfigPath(*args
, **kwargs
)
1247 def GetDefaultConfigPath(*args
, **kwargs
):
1248 """FontMapper.GetDefaultConfigPath() -> wxString"""
1249 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1251 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1252 def GetAltForEncoding(*args
, **kwargs
):
1253 """GetAltForEncoding(wxFontEncoding encoding, wxString facename=wxPyEmptyString,
1254 bool interactive=True) -> PyObject"""
1255 return _gdi
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1257 def IsEncodingAvailable(*args
, **kwargs
):
1258 """IsEncodingAvailable(wxFontEncoding encoding, wxString facename=wxPyEmptyString) -> bool"""
1259 return _gdi
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1261 def SetDialogParent(*args
, **kwargs
):
1262 """SetDialogParent(Window parent)"""
1263 return _gdi
.FontMapper_SetDialogParent(*args
, **kwargs
)
1265 def SetDialogTitle(*args
, **kwargs
):
1266 """SetDialogTitle(wxString title)"""
1267 return _gdi
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1270 class FontMapperPtr(FontMapper
):
1271 def __init__(self
, this
):
1273 if not hasattr(self
,"thisown"): self
.thisown
= 0
1274 self
.__class
__ = FontMapper
1275 _gdi
.FontMapper_swigregister(FontMapperPtr
)
1277 def FontMapper_Get(*args
, **kwargs
):
1278 """FontMapper_Get() -> FontMapper"""
1279 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1281 def FontMapper_Set(*args
, **kwargs
):
1282 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1283 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1285 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1286 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1287 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1289 def FontMapper_GetEncoding(*args
, **kwargs
):
1290 """FontMapper_GetEncoding(size_t n) -> wxFontEncoding"""
1291 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1293 def FontMapper_GetEncodingName(*args
, **kwargs
):
1294 """FontMapper_GetEncodingName(wxFontEncoding encoding) -> wxString"""
1295 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1297 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1298 """FontMapper_GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1299 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1301 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1302 """FontMapper_GetDefaultConfigPath() -> wxString"""
1303 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1305 #---------------------------------------------------------------------------
1307 class Font(GDIObject
):
1310 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1311 def __init__(self
, *args
, **kwargs
):
1312 """__init__(int pointSize, int family, int style, int weight, bool underline=False,
1313 wxString face=wxPyEmptyString,
1314 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font"""
1315 newobj
= _gdi
.new_Font(*args
, **kwargs
)
1316 self
.this
= newobj
.this
1319 def __del__(self
, destroy
=_gdi
.delete_Font
):
1322 if self
.thisown
: destroy(self
)
1325 def Ok(*args
, **kwargs
):
1327 return _gdi
.Font_Ok(*args
, **kwargs
)
1329 def __nonzero__(self
): return self
.Ok()
1330 def __eq__(*args
, **kwargs
):
1331 """__eq__(Font font) -> bool"""
1332 return _gdi
.Font___eq__(*args
, **kwargs
)
1334 def __ne__(*args
, **kwargs
):
1335 """__ne__(Font font) -> bool"""
1336 return _gdi
.Font___ne__(*args
, **kwargs
)
1338 def GetPointSize(*args
, **kwargs
):
1339 """GetPointSize() -> int"""
1340 return _gdi
.Font_GetPointSize(*args
, **kwargs
)
1342 def GetFamily(*args
, **kwargs
):
1343 """GetFamily() -> int"""
1344 return _gdi
.Font_GetFamily(*args
, **kwargs
)
1346 def GetStyle(*args
, **kwargs
):
1347 """GetStyle() -> int"""
1348 return _gdi
.Font_GetStyle(*args
, **kwargs
)
1350 def GetWeight(*args
, **kwargs
):
1351 """GetWeight() -> int"""
1352 return _gdi
.Font_GetWeight(*args
, **kwargs
)
1354 def GetUnderlined(*args
, **kwargs
):
1355 """GetUnderlined() -> bool"""
1356 return _gdi
.Font_GetUnderlined(*args
, **kwargs
)
1358 def GetFaceName(*args
, **kwargs
):
1359 """GetFaceName() -> wxString"""
1360 return _gdi
.Font_GetFaceName(*args
, **kwargs
)
1362 def GetEncoding(*args
, **kwargs
):
1363 """GetEncoding() -> wxFontEncoding"""
1364 return _gdi
.Font_GetEncoding(*args
, **kwargs
)
1366 def GetNativeFontInfo(*args
, **kwargs
):
1367 """GetNativeFontInfo() -> NativeFontInfo"""
1368 return _gdi
.Font_GetNativeFontInfo(*args
, **kwargs
)
1370 def IsFixedWidth(*args
, **kwargs
):
1371 """IsFixedWidth() -> bool"""
1372 return _gdi
.Font_IsFixedWidth(*args
, **kwargs
)
1374 def GetNativeFontInfoDesc(*args
, **kwargs
):
1375 """GetNativeFontInfoDesc() -> wxString"""
1376 return _gdi
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1378 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1379 """GetNativeFontInfoUserDesc() -> wxString"""
1380 return _gdi
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1382 def SetPointSize(*args
, **kwargs
):
1383 """SetPointSize(int pointSize)"""
1384 return _gdi
.Font_SetPointSize(*args
, **kwargs
)
1386 def SetFamily(*args
, **kwargs
):
1387 """SetFamily(int family)"""
1388 return _gdi
.Font_SetFamily(*args
, **kwargs
)
1390 def SetStyle(*args
, **kwargs
):
1391 """SetStyle(int style)"""
1392 return _gdi
.Font_SetStyle(*args
, **kwargs
)
1394 def SetWeight(*args
, **kwargs
):
1395 """SetWeight(int weight)"""
1396 return _gdi
.Font_SetWeight(*args
, **kwargs
)
1398 def SetFaceName(*args
, **kwargs
):
1399 """SetFaceName(wxString faceName)"""
1400 return _gdi
.Font_SetFaceName(*args
, **kwargs
)
1402 def SetUnderlined(*args
, **kwargs
):
1403 """SetUnderlined(bool underlined)"""
1404 return _gdi
.Font_SetUnderlined(*args
, **kwargs
)
1406 def SetEncoding(*args
, **kwargs
):
1407 """SetEncoding(wxFontEncoding encoding)"""
1408 return _gdi
.Font_SetEncoding(*args
, **kwargs
)
1410 def SetNativeFontInfo(*args
, **kwargs
):
1411 """SetNativeFontInfo(NativeFontInfo info)"""
1412 return _gdi
.Font_SetNativeFontInfo(*args
, **kwargs
)
1414 def SetNativeFontInfoFromString(*args
, **kwargs
):
1415 """SetNativeFontInfoFromString(wxString info)"""
1416 return _gdi
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1418 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1419 """SetNativeFontInfoUserDesc(wxString info)"""
1420 return _gdi
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1422 def GetFamilyString(*args
, **kwargs
):
1423 """GetFamilyString() -> wxString"""
1424 return _gdi
.Font_GetFamilyString(*args
, **kwargs
)
1426 def GetStyleString(*args
, **kwargs
):
1427 """GetStyleString() -> wxString"""
1428 return _gdi
.Font_GetStyleString(*args
, **kwargs
)
1430 def GetWeightString(*args
, **kwargs
):
1431 """GetWeightString() -> wxString"""
1432 return _gdi
.Font_GetWeightString(*args
, **kwargs
)
1434 def SetNoAntiAliasing(*args
, **kwargs
):
1435 """SetNoAntiAliasing(bool no=True)"""
1436 return _gdi
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1438 def GetNoAntiAliasing(*args
, **kwargs
):
1439 """GetNoAntiAliasing() -> bool"""
1440 return _gdi
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1442 def GetDefaultEncoding(*args
, **kwargs
):
1443 """Font.GetDefaultEncoding() -> wxFontEncoding"""
1444 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1446 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1447 def SetDefaultEncoding(*args
, **kwargs
):
1448 """Font.SetDefaultEncoding(wxFontEncoding encoding)"""
1449 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1451 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1453 class FontPtr(Font
):
1454 def __init__(self
, this
):
1456 if not hasattr(self
,"thisown"): self
.thisown
= 0
1457 self
.__class
__ = Font
1458 _gdi
.Font_swigregister(FontPtr
)
1460 def FontFromNativeInfo(*args
, **kwargs
):
1461 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1462 val
= _gdi
.new_FontFromNativeInfo(*args
, **kwargs
)
1466 def FontFromNativeInfoString(*args
, **kwargs
):
1467 """FontFromNativeInfoString(wxString info) -> Font"""
1468 val
= _gdi
.new_FontFromNativeInfoString(*args
, **kwargs
)
1472 def Font2(*args
, **kwargs
):
1473 """Font2(int pointSize, wxFontFamily family, int flags=FONTFLAG_DEFAULT,
1474 wxString face=wxPyEmptyString, wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font"""
1475 val
= _gdi
.new_Font2(*args
, **kwargs
)
1479 def Font_GetDefaultEncoding(*args
, **kwargs
):
1480 """Font_GetDefaultEncoding() -> wxFontEncoding"""
1481 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1483 def Font_SetDefaultEncoding(*args
, **kwargs
):
1484 """Font_SetDefaultEncoding(wxFontEncoding encoding)"""
1485 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1487 #---------------------------------------------------------------------------
1489 class FontEnumerator(object):
1492 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1493 def __init__(self
, *args
, **kwargs
):
1494 """__init__() -> FontEnumerator"""
1495 newobj
= _gdi
.new_FontEnumerator(*args
, **kwargs
)
1496 self
.this
= newobj
.this
1499 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1501 def __del__(self
, destroy
=_gdi
.delete_FontEnumerator
):
1504 if self
.thisown
: destroy(self
)
1507 def _setCallbackInfo(*args
, **kwargs
):
1508 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1509 return _gdi
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1511 def EnumerateFacenames(*args
, **kwargs
):
1512 """EnumerateFacenames(wxFontEncoding encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1513 return _gdi
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1515 def EnumerateEncodings(*args
, **kwargs
):
1516 """EnumerateEncodings(wxString facename=wxPyEmptyString) -> bool"""
1517 return _gdi
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1519 def GetEncodings(*args
, **kwargs
):
1520 """GetEncodings() -> PyObject"""
1521 return _gdi
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1523 def GetFacenames(*args
, **kwargs
):
1524 """GetFacenames() -> PyObject"""
1525 return _gdi
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1528 class FontEnumeratorPtr(FontEnumerator
):
1529 def __init__(self
, this
):
1531 if not hasattr(self
,"thisown"): self
.thisown
= 0
1532 self
.__class
__ = FontEnumerator
1533 _gdi
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1535 #---------------------------------------------------------------------------
1537 LANGUAGE_DEFAULT
= _gdi
.LANGUAGE_DEFAULT
1538 LANGUAGE_UNKNOWN
= _gdi
.LANGUAGE_UNKNOWN
1539 LANGUAGE_ABKHAZIAN
= _gdi
.LANGUAGE_ABKHAZIAN
1540 LANGUAGE_AFAR
= _gdi
.LANGUAGE_AFAR
1541 LANGUAGE_AFRIKAANS
= _gdi
.LANGUAGE_AFRIKAANS
1542 LANGUAGE_ALBANIAN
= _gdi
.LANGUAGE_ALBANIAN
1543 LANGUAGE_AMHARIC
= _gdi
.LANGUAGE_AMHARIC
1544 LANGUAGE_ARABIC
= _gdi
.LANGUAGE_ARABIC
1545 LANGUAGE_ARABIC_ALGERIA
= _gdi
.LANGUAGE_ARABIC_ALGERIA
1546 LANGUAGE_ARABIC_BAHRAIN
= _gdi
.LANGUAGE_ARABIC_BAHRAIN
1547 LANGUAGE_ARABIC_EGYPT
= _gdi
.LANGUAGE_ARABIC_EGYPT
1548 LANGUAGE_ARABIC_IRAQ
= _gdi
.LANGUAGE_ARABIC_IRAQ
1549 LANGUAGE_ARABIC_JORDAN
= _gdi
.LANGUAGE_ARABIC_JORDAN
1550 LANGUAGE_ARABIC_KUWAIT
= _gdi
.LANGUAGE_ARABIC_KUWAIT
1551 LANGUAGE_ARABIC_LEBANON
= _gdi
.LANGUAGE_ARABIC_LEBANON
1552 LANGUAGE_ARABIC_LIBYA
= _gdi
.LANGUAGE_ARABIC_LIBYA
1553 LANGUAGE_ARABIC_MOROCCO
= _gdi
.LANGUAGE_ARABIC_MOROCCO
1554 LANGUAGE_ARABIC_OMAN
= _gdi
.LANGUAGE_ARABIC_OMAN
1555 LANGUAGE_ARABIC_QATAR
= _gdi
.LANGUAGE_ARABIC_QATAR
1556 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi
.LANGUAGE_ARABIC_SAUDI_ARABIA
1557 LANGUAGE_ARABIC_SUDAN
= _gdi
.LANGUAGE_ARABIC_SUDAN
1558 LANGUAGE_ARABIC_SYRIA
= _gdi
.LANGUAGE_ARABIC_SYRIA
1559 LANGUAGE_ARABIC_TUNISIA
= _gdi
.LANGUAGE_ARABIC_TUNISIA
1560 LANGUAGE_ARABIC_UAE
= _gdi
.LANGUAGE_ARABIC_UAE
1561 LANGUAGE_ARABIC_YEMEN
= _gdi
.LANGUAGE_ARABIC_YEMEN
1562 LANGUAGE_ARMENIAN
= _gdi
.LANGUAGE_ARMENIAN
1563 LANGUAGE_ASSAMESE
= _gdi
.LANGUAGE_ASSAMESE
1564 LANGUAGE_AYMARA
= _gdi
.LANGUAGE_AYMARA
1565 LANGUAGE_AZERI
= _gdi
.LANGUAGE_AZERI
1566 LANGUAGE_AZERI_CYRILLIC
= _gdi
.LANGUAGE_AZERI_CYRILLIC
1567 LANGUAGE_AZERI_LATIN
= _gdi
.LANGUAGE_AZERI_LATIN
1568 LANGUAGE_BASHKIR
= _gdi
.LANGUAGE_BASHKIR
1569 LANGUAGE_BASQUE
= _gdi
.LANGUAGE_BASQUE
1570 LANGUAGE_BELARUSIAN
= _gdi
.LANGUAGE_BELARUSIAN
1571 LANGUAGE_BENGALI
= _gdi
.LANGUAGE_BENGALI
1572 LANGUAGE_BHUTANI
= _gdi
.LANGUAGE_BHUTANI
1573 LANGUAGE_BIHARI
= _gdi
.LANGUAGE_BIHARI
1574 LANGUAGE_BISLAMA
= _gdi
.LANGUAGE_BISLAMA
1575 LANGUAGE_BRETON
= _gdi
.LANGUAGE_BRETON
1576 LANGUAGE_BULGARIAN
= _gdi
.LANGUAGE_BULGARIAN
1577 LANGUAGE_BURMESE
= _gdi
.LANGUAGE_BURMESE
1578 LANGUAGE_CAMBODIAN
= _gdi
.LANGUAGE_CAMBODIAN
1579 LANGUAGE_CATALAN
= _gdi
.LANGUAGE_CATALAN
1580 LANGUAGE_CHINESE
= _gdi
.LANGUAGE_CHINESE
1581 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi
.LANGUAGE_CHINESE_SIMPLIFIED
1582 LANGUAGE_CHINESE_TRADITIONAL
= _gdi
.LANGUAGE_CHINESE_TRADITIONAL
1583 LANGUAGE_CHINESE_HONGKONG
= _gdi
.LANGUAGE_CHINESE_HONGKONG
1584 LANGUAGE_CHINESE_MACAU
= _gdi
.LANGUAGE_CHINESE_MACAU
1585 LANGUAGE_CHINESE_SINGAPORE
= _gdi
.LANGUAGE_CHINESE_SINGAPORE
1586 LANGUAGE_CHINESE_TAIWAN
= _gdi
.LANGUAGE_CHINESE_TAIWAN
1587 LANGUAGE_CORSICAN
= _gdi
.LANGUAGE_CORSICAN
1588 LANGUAGE_CROATIAN
= _gdi
.LANGUAGE_CROATIAN
1589 LANGUAGE_CZECH
= _gdi
.LANGUAGE_CZECH
1590 LANGUAGE_DANISH
= _gdi
.LANGUAGE_DANISH
1591 LANGUAGE_DUTCH
= _gdi
.LANGUAGE_DUTCH
1592 LANGUAGE_DUTCH_BELGIAN
= _gdi
.LANGUAGE_DUTCH_BELGIAN
1593 LANGUAGE_ENGLISH
= _gdi
.LANGUAGE_ENGLISH
1594 LANGUAGE_ENGLISH_UK
= _gdi
.LANGUAGE_ENGLISH_UK
1595 LANGUAGE_ENGLISH_US
= _gdi
.LANGUAGE_ENGLISH_US
1596 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi
.LANGUAGE_ENGLISH_AUSTRALIA
1597 LANGUAGE_ENGLISH_BELIZE
= _gdi
.LANGUAGE_ENGLISH_BELIZE
1598 LANGUAGE_ENGLISH_BOTSWANA
= _gdi
.LANGUAGE_ENGLISH_BOTSWANA
1599 LANGUAGE_ENGLISH_CANADA
= _gdi
.LANGUAGE_ENGLISH_CANADA
1600 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi
.LANGUAGE_ENGLISH_CARIBBEAN
1601 LANGUAGE_ENGLISH_DENMARK
= _gdi
.LANGUAGE_ENGLISH_DENMARK
1602 LANGUAGE_ENGLISH_EIRE
= _gdi
.LANGUAGE_ENGLISH_EIRE
1603 LANGUAGE_ENGLISH_JAMAICA
= _gdi
.LANGUAGE_ENGLISH_JAMAICA
1604 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi
.LANGUAGE_ENGLISH_NEW_ZEALAND
1605 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi
.LANGUAGE_ENGLISH_PHILIPPINES
1606 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1607 LANGUAGE_ENGLISH_TRINIDAD
= _gdi
.LANGUAGE_ENGLISH_TRINIDAD
1608 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi
.LANGUAGE_ENGLISH_ZIMBABWE
1609 LANGUAGE_ESPERANTO
= _gdi
.LANGUAGE_ESPERANTO
1610 LANGUAGE_ESTONIAN
= _gdi
.LANGUAGE_ESTONIAN
1611 LANGUAGE_FAEROESE
= _gdi
.LANGUAGE_FAEROESE
1612 LANGUAGE_FARSI
= _gdi
.LANGUAGE_FARSI
1613 LANGUAGE_FIJI
= _gdi
.LANGUAGE_FIJI
1614 LANGUAGE_FINNISH
= _gdi
.LANGUAGE_FINNISH
1615 LANGUAGE_FRENCH
= _gdi
.LANGUAGE_FRENCH
1616 LANGUAGE_FRENCH_BELGIAN
= _gdi
.LANGUAGE_FRENCH_BELGIAN
1617 LANGUAGE_FRENCH_CANADIAN
= _gdi
.LANGUAGE_FRENCH_CANADIAN
1618 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi
.LANGUAGE_FRENCH_LUXEMBOURG
1619 LANGUAGE_FRENCH_MONACO
= _gdi
.LANGUAGE_FRENCH_MONACO
1620 LANGUAGE_FRENCH_SWISS
= _gdi
.LANGUAGE_FRENCH_SWISS
1621 LANGUAGE_FRISIAN
= _gdi
.LANGUAGE_FRISIAN
1622 LANGUAGE_GALICIAN
= _gdi
.LANGUAGE_GALICIAN
1623 LANGUAGE_GEORGIAN
= _gdi
.LANGUAGE_GEORGIAN
1624 LANGUAGE_GERMAN
= _gdi
.LANGUAGE_GERMAN
1625 LANGUAGE_GERMAN_AUSTRIAN
= _gdi
.LANGUAGE_GERMAN_AUSTRIAN
1626 LANGUAGE_GERMAN_BELGIUM
= _gdi
.LANGUAGE_GERMAN_BELGIUM
1627 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi
.LANGUAGE_GERMAN_LIECHTENSTEIN
1628 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi
.LANGUAGE_GERMAN_LUXEMBOURG
1629 LANGUAGE_GERMAN_SWISS
= _gdi
.LANGUAGE_GERMAN_SWISS
1630 LANGUAGE_GREEK
= _gdi
.LANGUAGE_GREEK
1631 LANGUAGE_GREENLANDIC
= _gdi
.LANGUAGE_GREENLANDIC
1632 LANGUAGE_GUARANI
= _gdi
.LANGUAGE_GUARANI
1633 LANGUAGE_GUJARATI
= _gdi
.LANGUAGE_GUJARATI
1634 LANGUAGE_HAUSA
= _gdi
.LANGUAGE_HAUSA
1635 LANGUAGE_HEBREW
= _gdi
.LANGUAGE_HEBREW
1636 LANGUAGE_HINDI
= _gdi
.LANGUAGE_HINDI
1637 LANGUAGE_HUNGARIAN
= _gdi
.LANGUAGE_HUNGARIAN
1638 LANGUAGE_ICELANDIC
= _gdi
.LANGUAGE_ICELANDIC
1639 LANGUAGE_INDONESIAN
= _gdi
.LANGUAGE_INDONESIAN
1640 LANGUAGE_INTERLINGUA
= _gdi
.LANGUAGE_INTERLINGUA
1641 LANGUAGE_INTERLINGUE
= _gdi
.LANGUAGE_INTERLINGUE
1642 LANGUAGE_INUKTITUT
= _gdi
.LANGUAGE_INUKTITUT
1643 LANGUAGE_INUPIAK
= _gdi
.LANGUAGE_INUPIAK
1644 LANGUAGE_IRISH
= _gdi
.LANGUAGE_IRISH
1645 LANGUAGE_ITALIAN
= _gdi
.LANGUAGE_ITALIAN
1646 LANGUAGE_ITALIAN_SWISS
= _gdi
.LANGUAGE_ITALIAN_SWISS
1647 LANGUAGE_JAPANESE
= _gdi
.LANGUAGE_JAPANESE
1648 LANGUAGE_JAVANESE
= _gdi
.LANGUAGE_JAVANESE
1649 LANGUAGE_KANNADA
= _gdi
.LANGUAGE_KANNADA
1650 LANGUAGE_KASHMIRI
= _gdi
.LANGUAGE_KASHMIRI
1651 LANGUAGE_KASHMIRI_INDIA
= _gdi
.LANGUAGE_KASHMIRI_INDIA
1652 LANGUAGE_KAZAKH
= _gdi
.LANGUAGE_KAZAKH
1653 LANGUAGE_KERNEWEK
= _gdi
.LANGUAGE_KERNEWEK
1654 LANGUAGE_KINYARWANDA
= _gdi
.LANGUAGE_KINYARWANDA
1655 LANGUAGE_KIRGHIZ
= _gdi
.LANGUAGE_KIRGHIZ
1656 LANGUAGE_KIRUNDI
= _gdi
.LANGUAGE_KIRUNDI
1657 LANGUAGE_KONKANI
= _gdi
.LANGUAGE_KONKANI
1658 LANGUAGE_KOREAN
= _gdi
.LANGUAGE_KOREAN
1659 LANGUAGE_KURDISH
= _gdi
.LANGUAGE_KURDISH
1660 LANGUAGE_LAOTHIAN
= _gdi
.LANGUAGE_LAOTHIAN
1661 LANGUAGE_LATIN
= _gdi
.LANGUAGE_LATIN
1662 LANGUAGE_LATVIAN
= _gdi
.LANGUAGE_LATVIAN
1663 LANGUAGE_LINGALA
= _gdi
.LANGUAGE_LINGALA
1664 LANGUAGE_LITHUANIAN
= _gdi
.LANGUAGE_LITHUANIAN
1665 LANGUAGE_MACEDONIAN
= _gdi
.LANGUAGE_MACEDONIAN
1666 LANGUAGE_MALAGASY
= _gdi
.LANGUAGE_MALAGASY
1667 LANGUAGE_MALAY
= _gdi
.LANGUAGE_MALAY
1668 LANGUAGE_MALAYALAM
= _gdi
.LANGUAGE_MALAYALAM
1669 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1670 LANGUAGE_MALAY_MALAYSIA
= _gdi
.LANGUAGE_MALAY_MALAYSIA
1671 LANGUAGE_MALTESE
= _gdi
.LANGUAGE_MALTESE
1672 LANGUAGE_MANIPURI
= _gdi
.LANGUAGE_MANIPURI
1673 LANGUAGE_MAORI
= _gdi
.LANGUAGE_MAORI
1674 LANGUAGE_MARATHI
= _gdi
.LANGUAGE_MARATHI
1675 LANGUAGE_MOLDAVIAN
= _gdi
.LANGUAGE_MOLDAVIAN
1676 LANGUAGE_MONGOLIAN
= _gdi
.LANGUAGE_MONGOLIAN
1677 LANGUAGE_NAURU
= _gdi
.LANGUAGE_NAURU
1678 LANGUAGE_NEPALI
= _gdi
.LANGUAGE_NEPALI
1679 LANGUAGE_NEPALI_INDIA
= _gdi
.LANGUAGE_NEPALI_INDIA
1680 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi
.LANGUAGE_NORWEGIAN_BOKMAL
1681 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi
.LANGUAGE_NORWEGIAN_NYNORSK
1682 LANGUAGE_OCCITAN
= _gdi
.LANGUAGE_OCCITAN
1683 LANGUAGE_ORIYA
= _gdi
.LANGUAGE_ORIYA
1684 LANGUAGE_OROMO
= _gdi
.LANGUAGE_OROMO
1685 LANGUAGE_PASHTO
= _gdi
.LANGUAGE_PASHTO
1686 LANGUAGE_POLISH
= _gdi
.LANGUAGE_POLISH
1687 LANGUAGE_PORTUGUESE
= _gdi
.LANGUAGE_PORTUGUESE
1688 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi
.LANGUAGE_PORTUGUESE_BRAZILIAN
1689 LANGUAGE_PUNJABI
= _gdi
.LANGUAGE_PUNJABI
1690 LANGUAGE_QUECHUA
= _gdi
.LANGUAGE_QUECHUA
1691 LANGUAGE_RHAETO_ROMANCE
= _gdi
.LANGUAGE_RHAETO_ROMANCE
1692 LANGUAGE_ROMANIAN
= _gdi
.LANGUAGE_ROMANIAN
1693 LANGUAGE_RUSSIAN
= _gdi
.LANGUAGE_RUSSIAN
1694 LANGUAGE_RUSSIAN_UKRAINE
= _gdi
.LANGUAGE_RUSSIAN_UKRAINE
1695 LANGUAGE_SAMOAN
= _gdi
.LANGUAGE_SAMOAN
1696 LANGUAGE_SANGHO
= _gdi
.LANGUAGE_SANGHO
1697 LANGUAGE_SANSKRIT
= _gdi
.LANGUAGE_SANSKRIT
1698 LANGUAGE_SCOTS_GAELIC
= _gdi
.LANGUAGE_SCOTS_GAELIC
1699 LANGUAGE_SERBIAN
= _gdi
.LANGUAGE_SERBIAN
1700 LANGUAGE_SERBIAN_CYRILLIC
= _gdi
.LANGUAGE_SERBIAN_CYRILLIC
1701 LANGUAGE_SERBIAN_LATIN
= _gdi
.LANGUAGE_SERBIAN_LATIN
1702 LANGUAGE_SERBO_CROATIAN
= _gdi
.LANGUAGE_SERBO_CROATIAN
1703 LANGUAGE_SESOTHO
= _gdi
.LANGUAGE_SESOTHO
1704 LANGUAGE_SETSWANA
= _gdi
.LANGUAGE_SETSWANA
1705 LANGUAGE_SHONA
= _gdi
.LANGUAGE_SHONA
1706 LANGUAGE_SINDHI
= _gdi
.LANGUAGE_SINDHI
1707 LANGUAGE_SINHALESE
= _gdi
.LANGUAGE_SINHALESE
1708 LANGUAGE_SISWATI
= _gdi
.LANGUAGE_SISWATI
1709 LANGUAGE_SLOVAK
= _gdi
.LANGUAGE_SLOVAK
1710 LANGUAGE_SLOVENIAN
= _gdi
.LANGUAGE_SLOVENIAN
1711 LANGUAGE_SOMALI
= _gdi
.LANGUAGE_SOMALI
1712 LANGUAGE_SPANISH
= _gdi
.LANGUAGE_SPANISH
1713 LANGUAGE_SPANISH_ARGENTINA
= _gdi
.LANGUAGE_SPANISH_ARGENTINA
1714 LANGUAGE_SPANISH_BOLIVIA
= _gdi
.LANGUAGE_SPANISH_BOLIVIA
1715 LANGUAGE_SPANISH_CHILE
= _gdi
.LANGUAGE_SPANISH_CHILE
1716 LANGUAGE_SPANISH_COLOMBIA
= _gdi
.LANGUAGE_SPANISH_COLOMBIA
1717 LANGUAGE_SPANISH_COSTA_RICA
= _gdi
.LANGUAGE_SPANISH_COSTA_RICA
1718 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
1719 LANGUAGE_SPANISH_ECUADOR
= _gdi
.LANGUAGE_SPANISH_ECUADOR
1720 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi
.LANGUAGE_SPANISH_EL_SALVADOR
1721 LANGUAGE_SPANISH_GUATEMALA
= _gdi
.LANGUAGE_SPANISH_GUATEMALA
1722 LANGUAGE_SPANISH_HONDURAS
= _gdi
.LANGUAGE_SPANISH_HONDURAS
1723 LANGUAGE_SPANISH_MEXICAN
= _gdi
.LANGUAGE_SPANISH_MEXICAN
1724 LANGUAGE_SPANISH_MODERN
= _gdi
.LANGUAGE_SPANISH_MODERN
1725 LANGUAGE_SPANISH_NICARAGUA
= _gdi
.LANGUAGE_SPANISH_NICARAGUA
1726 LANGUAGE_SPANISH_PANAMA
= _gdi
.LANGUAGE_SPANISH_PANAMA
1727 LANGUAGE_SPANISH_PARAGUAY
= _gdi
.LANGUAGE_SPANISH_PARAGUAY
1728 LANGUAGE_SPANISH_PERU
= _gdi
.LANGUAGE_SPANISH_PERU
1729 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi
.LANGUAGE_SPANISH_PUERTO_RICO
1730 LANGUAGE_SPANISH_URUGUAY
= _gdi
.LANGUAGE_SPANISH_URUGUAY
1731 LANGUAGE_SPANISH_US
= _gdi
.LANGUAGE_SPANISH_US
1732 LANGUAGE_SPANISH_VENEZUELA
= _gdi
.LANGUAGE_SPANISH_VENEZUELA
1733 LANGUAGE_SUNDANESE
= _gdi
.LANGUAGE_SUNDANESE
1734 LANGUAGE_SWAHILI
= _gdi
.LANGUAGE_SWAHILI
1735 LANGUAGE_SWEDISH
= _gdi
.LANGUAGE_SWEDISH
1736 LANGUAGE_SWEDISH_FINLAND
= _gdi
.LANGUAGE_SWEDISH_FINLAND
1737 LANGUAGE_TAGALOG
= _gdi
.LANGUAGE_TAGALOG
1738 LANGUAGE_TAJIK
= _gdi
.LANGUAGE_TAJIK
1739 LANGUAGE_TAMIL
= _gdi
.LANGUAGE_TAMIL
1740 LANGUAGE_TATAR
= _gdi
.LANGUAGE_TATAR
1741 LANGUAGE_TELUGU
= _gdi
.LANGUAGE_TELUGU
1742 LANGUAGE_THAI
= _gdi
.LANGUAGE_THAI
1743 LANGUAGE_TIBETAN
= _gdi
.LANGUAGE_TIBETAN
1744 LANGUAGE_TIGRINYA
= _gdi
.LANGUAGE_TIGRINYA
1745 LANGUAGE_TONGA
= _gdi
.LANGUAGE_TONGA
1746 LANGUAGE_TSONGA
= _gdi
.LANGUAGE_TSONGA
1747 LANGUAGE_TURKISH
= _gdi
.LANGUAGE_TURKISH
1748 LANGUAGE_TURKMEN
= _gdi
.LANGUAGE_TURKMEN
1749 LANGUAGE_TWI
= _gdi
.LANGUAGE_TWI
1750 LANGUAGE_UIGHUR
= _gdi
.LANGUAGE_UIGHUR
1751 LANGUAGE_UKRAINIAN
= _gdi
.LANGUAGE_UKRAINIAN
1752 LANGUAGE_URDU
= _gdi
.LANGUAGE_URDU
1753 LANGUAGE_URDU_INDIA
= _gdi
.LANGUAGE_URDU_INDIA
1754 LANGUAGE_URDU_PAKISTAN
= _gdi
.LANGUAGE_URDU_PAKISTAN
1755 LANGUAGE_UZBEK
= _gdi
.LANGUAGE_UZBEK
1756 LANGUAGE_UZBEK_CYRILLIC
= _gdi
.LANGUAGE_UZBEK_CYRILLIC
1757 LANGUAGE_UZBEK_LATIN
= _gdi
.LANGUAGE_UZBEK_LATIN
1758 LANGUAGE_VIETNAMESE
= _gdi
.LANGUAGE_VIETNAMESE
1759 LANGUAGE_VOLAPUK
= _gdi
.LANGUAGE_VOLAPUK
1760 LANGUAGE_WELSH
= _gdi
.LANGUAGE_WELSH
1761 LANGUAGE_WOLOF
= _gdi
.LANGUAGE_WOLOF
1762 LANGUAGE_XHOSA
= _gdi
.LANGUAGE_XHOSA
1763 LANGUAGE_YIDDISH
= _gdi
.LANGUAGE_YIDDISH
1764 LANGUAGE_YORUBA
= _gdi
.LANGUAGE_YORUBA
1765 LANGUAGE_ZHUANG
= _gdi
.LANGUAGE_ZHUANG
1766 LANGUAGE_ZULU
= _gdi
.LANGUAGE_ZULU
1767 LANGUAGE_USER_DEFINED
= _gdi
.LANGUAGE_USER_DEFINED
1768 class LanguageInfo(object):
1770 def __init__(self
): raise RuntimeError, "No constructor defined"
1772 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1773 Language
= property(_gdi
.LanguageInfo_Language_get
, _gdi
.LanguageInfo_Language_set
)
1774 CanonicalName
= property(_gdi
.LanguageInfo_CanonicalName_get
, _gdi
.LanguageInfo_CanonicalName_set
)
1775 Description
= property(_gdi
.LanguageInfo_Description_get
, _gdi
.LanguageInfo_Description_set
)
1777 class LanguageInfoPtr(LanguageInfo
):
1778 def __init__(self
, this
):
1780 if not hasattr(self
,"thisown"): self
.thisown
= 0
1781 self
.__class
__ = LanguageInfo
1782 _gdi
.LanguageInfo_swigregister(LanguageInfoPtr
)
1784 LOCALE_CAT_NUMBER
= _gdi
.LOCALE_CAT_NUMBER
1785 LOCALE_CAT_DATE
= _gdi
.LOCALE_CAT_DATE
1786 LOCALE_CAT_MONEY
= _gdi
.LOCALE_CAT_MONEY
1787 LOCALE_CAT_MAX
= _gdi
.LOCALE_CAT_MAX
1788 LOCALE_THOUSANDS_SEP
= _gdi
.LOCALE_THOUSANDS_SEP
1789 LOCALE_DECIMAL_POINT
= _gdi
.LOCALE_DECIMAL_POINT
1790 LOCALE_LOAD_DEFAULT
= _gdi
.LOCALE_LOAD_DEFAULT
1791 LOCALE_CONV_ENCODING
= _gdi
.LOCALE_CONV_ENCODING
1792 class Locale(object):
1795 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1796 def __init__(self
, *args
, **kwargs
):
1797 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
1798 newobj
= _gdi
.new_Locale(*args
, **kwargs
)
1799 self
.this
= newobj
.this
1802 def __del__(self
, destroy
=_gdi
.delete_Locale
):
1805 if self
.thisown
: destroy(self
)
1808 def Init1(*args
, **kwargs
):
1809 """Init1(wxString szName, wxString szShort=wxPyEmptyString,
1810 wxString szLocale=wxPyEmptyString, bool bLoadDefault=True,
1811 bool bConvertEncoding=False) -> bool"""
1812 return _gdi
.Locale_Init1(*args
, **kwargs
)
1814 def Init2(*args
, **kwargs
):
1815 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
1816 return _gdi
.Locale_Init2(*args
, **kwargs
)
1818 def Init(self
, *_args
, **_kwargs
):
1819 if type(_args
[0]) in [type(''), type(u
'')]:
1820 val
= self
.Init1(*_args
, **_kwargs
)
1822 val
= self
.Init2(*_args
, **_kwargs
)
1825 def GetSystemLanguage(*args
, **kwargs
):
1826 """Locale.GetSystemLanguage() -> int"""
1827 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1829 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
1830 def GetSystemEncoding(*args
, **kwargs
):
1831 """Locale.GetSystemEncoding() -> wxFontEncoding"""
1832 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1834 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
1835 def GetSystemEncodingName(*args
, **kwargs
):
1836 """Locale.GetSystemEncodingName() -> wxString"""
1837 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1839 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
1840 def IsOk(*args
, **kwargs
):
1841 """IsOk() -> bool"""
1842 return _gdi
.Locale_IsOk(*args
, **kwargs
)
1844 def __nonzero__(self
): return self
.IsOk()
1845 def GetLocale(*args
, **kwargs
):
1846 """GetLocale() -> wxString"""
1847 return _gdi
.Locale_GetLocale(*args
, **kwargs
)
1849 def GetLanguage(*args
, **kwargs
):
1850 """GetLanguage() -> int"""
1851 return _gdi
.Locale_GetLanguage(*args
, **kwargs
)
1853 def GetSysName(*args
, **kwargs
):
1854 """GetSysName() -> wxString"""
1855 return _gdi
.Locale_GetSysName(*args
, **kwargs
)
1857 def GetCanonicalName(*args
, **kwargs
):
1858 """GetCanonicalName() -> wxString"""
1859 return _gdi
.Locale_GetCanonicalName(*args
, **kwargs
)
1861 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
1862 """Locale.AddCatalogLookupPathPrefix(wxString prefix)"""
1863 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1865 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
1866 def AddCatalog(*args
, **kwargs
):
1867 """AddCatalog(wxString szDomain) -> bool"""
1868 return _gdi
.Locale_AddCatalog(*args
, **kwargs
)
1870 def IsLoaded(*args
, **kwargs
):
1871 """IsLoaded(wxString szDomain) -> bool"""
1872 return _gdi
.Locale_IsLoaded(*args
, **kwargs
)
1874 def GetLanguageInfo(*args
, **kwargs
):
1875 """Locale.GetLanguageInfo(int lang) -> LanguageInfo"""
1876 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1878 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
1879 def GetLanguageName(*args
, **kwargs
):
1880 """Locale.GetLanguageName(int lang) -> wxString"""
1881 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1883 GetLanguageName
= staticmethod(GetLanguageName
)
1884 def FindLanguageInfo(*args
, **kwargs
):
1885 """Locale.FindLanguageInfo(wxString locale) -> LanguageInfo"""
1886 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1888 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
1889 def AddLanguage(*args
, **kwargs
):
1890 """Locale.AddLanguage(LanguageInfo info)"""
1891 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1893 AddLanguage
= staticmethod(AddLanguage
)
1894 def GetString(*args
, **kwargs
):
1895 """GetString(wxString szOrigString, wxString szDomain=wxPyEmptyString) -> wxString"""
1896 return _gdi
.Locale_GetString(*args
, **kwargs
)
1898 def GetName(*args
, **kwargs
):
1899 """GetName() -> wxString"""
1900 return _gdi
.Locale_GetName(*args
, **kwargs
)
1903 class LocalePtr(Locale
):
1904 def __init__(self
, this
):
1906 if not hasattr(self
,"thisown"): self
.thisown
= 0
1907 self
.__class
__ = Locale
1908 _gdi
.Locale_swigregister(LocalePtr
)
1910 def Locale_GetSystemLanguage(*args
, **kwargs
):
1911 """Locale_GetSystemLanguage() -> int"""
1912 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1914 def Locale_GetSystemEncoding(*args
, **kwargs
):
1915 """Locale_GetSystemEncoding() -> wxFontEncoding"""
1916 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1918 def Locale_GetSystemEncodingName(*args
, **kwargs
):
1919 """Locale_GetSystemEncodingName() -> wxString"""
1920 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1922 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
1923 """Locale_AddCatalogLookupPathPrefix(wxString prefix)"""
1924 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1926 def Locale_GetLanguageInfo(*args
, **kwargs
):
1927 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
1928 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1930 def Locale_GetLanguageName(*args
, **kwargs
):
1931 """Locale_GetLanguageName(int lang) -> wxString"""
1932 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1934 def Locale_FindLanguageInfo(*args
, **kwargs
):
1935 """Locale_FindLanguageInfo(wxString locale) -> LanguageInfo"""
1936 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1938 def Locale_AddLanguage(*args
, **kwargs
):
1939 """Locale_AddLanguage(LanguageInfo info)"""
1940 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1943 def GetLocale(*args
, **kwargs
):
1944 """GetLocale() -> Locale"""
1945 return _gdi
.GetLocale(*args
, **kwargs
)
1946 #---------------------------------------------------------------------------
1948 CONVERT_STRICT
= _gdi
.CONVERT_STRICT
1949 CONVERT_SUBSTITUTE
= _gdi
.CONVERT_SUBSTITUTE
1950 PLATFORM_CURRENT
= _gdi
.PLATFORM_CURRENT
1951 PLATFORM_UNIX
= _gdi
.PLATFORM_UNIX
1952 PLATFORM_WINDOWS
= _gdi
.PLATFORM_WINDOWS
1953 PLATFORM_OS2
= _gdi
.PLATFORM_OS2
1954 PLATFORM_MAC
= _gdi
.PLATFORM_MAC
1955 class EncodingConverter(core
.Object
):
1958 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1959 def __init__(self
, *args
, **kwargs
):
1960 """__init__() -> EncodingConverter"""
1961 newobj
= _gdi
.new_EncodingConverter(*args
, **kwargs
)
1962 self
.this
= newobj
.this
1965 def __del__(self
, destroy
=_gdi
.delete_EncodingConverter
):
1968 if self
.thisown
: destroy(self
)
1971 def Init(*args
, **kwargs
):
1972 """Init(wxFontEncoding input_enc, wxFontEncoding output_enc,
1973 int method=CONVERT_STRICT) -> bool"""
1974 return _gdi
.EncodingConverter_Init(*args
, **kwargs
)
1976 def Convert(*args
, **kwargs
):
1977 """Convert(wxString input) -> wxString"""
1978 return _gdi
.EncodingConverter_Convert(*args
, **kwargs
)
1980 def GetPlatformEquivalents(*args
, **kwargs
):
1981 """EncodingConverter.GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
1982 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
1984 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
1985 def GetAllEquivalents(*args
, **kwargs
):
1986 """EncodingConverter.GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
1987 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
1989 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
1990 def CanConvert(*args
, **kwargs
):
1991 """EncodingConverter.CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
1992 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
1994 CanConvert
= staticmethod(CanConvert
)
1995 def __nonzero__(self
): return self
.IsOk()
1997 class EncodingConverterPtr(EncodingConverter
):
1998 def __init__(self
, this
):
2000 if not hasattr(self
,"thisown"): self
.thisown
= 0
2001 self
.__class
__ = EncodingConverter
2002 _gdi
.EncodingConverter_swigregister(EncodingConverterPtr
)
2004 def GetTranslation(*args
):
2005 """GetTranslation(wxString sz) -> wxString
2006 GetTranslation(wxString sz1, wxString sz2, size_t n) -> wxString"""
2007 return _gdi
.GetTranslation(*args
)
2009 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2010 """EncodingConverter_GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2011 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2013 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2014 """EncodingConverter_GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
2015 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2017 def EncodingConverter_CanConvert(*args
, **kwargs
):
2018 """EncodingConverter_CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
2019 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2021 #----------------------------------------------------------------------------
2022 # wxGTK sets the locale when initialized. Doing this at the Python
2023 # level should set it up to match what GTK is doing at the C level.
2024 if wx
.Platform
== "__WXGTK__":
2027 locale
.setlocale(locale
.LC_ALL
, "")
2031 # On MSW add the directory where the wxWindows catalogs were installed
2032 # to the default catalog path.
2033 if wx
.Platform
== "__WXMSW__":
2035 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2036 Locale_AddCatalogLookupPathPrefix(localedir
)
2039 #----------------------------------------------------------------------------
2041 #---------------------------------------------------------------------------
2043 class DC(core
.Object
):
2045 def __init__(self
): raise RuntimeError, "No constructor defined"
2047 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2048 def __del__(self
, destroy
=_gdi
.delete_DC
):
2051 if self
.thisown
: destroy(self
)
2054 def BeginDrawing(*args
, **kwargs
):
2055 """BeginDrawing()"""
2056 return _gdi
.DC_BeginDrawing(*args
, **kwargs
)
2058 def EndDrawing(*args
, **kwargs
):
2060 return _gdi
.DC_EndDrawing(*args
, **kwargs
)
2062 def FloodFillXY(*args
, **kwargs
):
2063 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2064 return _gdi
.DC_FloodFillXY(*args
, **kwargs
)
2066 def FloodFill(*args
, **kwargs
):
2067 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2068 return _gdi
.DC_FloodFill(*args
, **kwargs
)
2070 def GetPixelXY(*args
, **kwargs
):
2071 """GetPixelXY(int x, int y) -> Colour"""
2072 return _gdi
.DC_GetPixelXY(*args
, **kwargs
)
2074 def GetPixel(*args
, **kwargs
):
2075 """GetPixel(Point pt) -> Colour"""
2076 return _gdi
.DC_GetPixel(*args
, **kwargs
)
2078 def DrawLineXY(*args
, **kwargs
):
2079 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2080 return _gdi
.DC_DrawLineXY(*args
, **kwargs
)
2082 def DrawLine(*args
, **kwargs
):
2083 """DrawLine(Point pt1, Point pt2)"""
2084 return _gdi
.DC_DrawLine(*args
, **kwargs
)
2086 def CrossHairXY(*args
, **kwargs
):
2087 """CrossHairXY(int x, int y)"""
2088 return _gdi
.DC_CrossHairXY(*args
, **kwargs
)
2090 def CrossHair(*args
, **kwargs
):
2091 """CrossHair(Point pt)"""
2092 return _gdi
.DC_CrossHair(*args
, **kwargs
)
2094 def DrawArcXY(*args
, **kwargs
):
2095 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2096 return _gdi
.DC_DrawArcXY(*args
, **kwargs
)
2098 def DrawArc(*args
, **kwargs
):
2099 """DrawArc(Point pt1, Point pt2, Point centre)"""
2100 return _gdi
.DC_DrawArc(*args
, **kwargs
)
2102 def DrawCheckMarkXY(*args
, **kwargs
):
2103 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2104 return _gdi
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2106 def DrawCheckMark(*args
, **kwargs
):
2107 """DrawCheckMark(Rect rect)"""
2108 return _gdi
.DC_DrawCheckMark(*args
, **kwargs
)
2110 def DrawEllipticArcXY(*args
, **kwargs
):
2111 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2112 return _gdi
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2114 def DrawEllipticArc(*args
, **kwargs
):
2115 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2116 return _gdi
.DC_DrawEllipticArc(*args
, **kwargs
)
2118 def DrawPointXY(*args
, **kwargs
):
2119 """DrawPointXY(int x, int y)"""
2120 return _gdi
.DC_DrawPointXY(*args
, **kwargs
)
2122 def DrawPoint(*args
, **kwargs
):
2123 """DrawPoint(Point pt)"""
2124 return _gdi
.DC_DrawPoint(*args
, **kwargs
)
2126 def DrawRectangleXY(*args
, **kwargs
):
2127 """DrawRectangleXY(int x, int y, int width, int height)"""
2128 return _gdi
.DC_DrawRectangleXY(*args
, **kwargs
)
2130 def DrawRectangle(*args
, **kwargs
):
2131 """DrawRectangle(Point pt, Size sz)"""
2132 return _gdi
.DC_DrawRectangle(*args
, **kwargs
)
2134 def DrawRectangleRect(*args
, **kwargs
):
2135 """DrawRectangleRect(Rect rect)"""
2136 return _gdi
.DC_DrawRectangleRect(*args
, **kwargs
)
2138 def DrawRoundedRectangleXY(*args
, **kwargs
):
2139 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2140 return _gdi
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2142 def DrawRoundedRectangle(*args
, **kwargs
):
2143 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2144 return _gdi
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2146 def DrawRoundedRectangleRect(*args
, **kwargs
):
2147 """DrawRoundedRectangleRect(Rect r, double radius)"""
2148 return _gdi
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2150 def DrawCircleXY(*args
, **kwargs
):
2151 """DrawCircleXY(int x, int y, int radius)"""
2152 return _gdi
.DC_DrawCircleXY(*args
, **kwargs
)
2154 def DrawCircle(*args
, **kwargs
):
2155 """DrawCircle(Point pt, int radius)"""
2156 return _gdi
.DC_DrawCircle(*args
, **kwargs
)
2158 def DrawEllipseXY(*args
, **kwargs
):
2159 """DrawEllipseXY(int x, int y, int width, int height)"""
2160 return _gdi
.DC_DrawEllipseXY(*args
, **kwargs
)
2162 def DrawEllipse(*args
, **kwargs
):
2163 """DrawEllipse(Point pt, Size sz)"""
2164 return _gdi
.DC_DrawEllipse(*args
, **kwargs
)
2166 def DrawEllipseRect(*args
, **kwargs
):
2167 """DrawEllipseRect(Rect rect)"""
2168 return _gdi
.DC_DrawEllipseRect(*args
, **kwargs
)
2170 def DrawIconXY(*args
, **kwargs
):
2171 """DrawIconXY(Icon icon, int x, int y)"""
2172 return _gdi
.DC_DrawIconXY(*args
, **kwargs
)
2174 def DrawIcon(*args
, **kwargs
):
2175 """DrawIcon(Icon icon, Point pt)"""
2176 return _gdi
.DC_DrawIcon(*args
, **kwargs
)
2178 def DrawBitmapXY(*args
, **kwargs
):
2179 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2180 return _gdi
.DC_DrawBitmapXY(*args
, **kwargs
)
2182 def DrawBitmap(*args
, **kwargs
):
2183 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2184 return _gdi
.DC_DrawBitmap(*args
, **kwargs
)
2186 def DrawTextXY(*args
, **kwargs
):
2187 """DrawTextXY(wxString text, int x, int y)"""
2188 return _gdi
.DC_DrawTextXY(*args
, **kwargs
)
2190 def DrawText(*args
, **kwargs
):
2191 """DrawText(wxString text, Point pt)"""
2192 return _gdi
.DC_DrawText(*args
, **kwargs
)
2194 def DrawRotatedTextXY(*args
, **kwargs
):
2195 """DrawRotatedTextXY(wxString text, int x, int y, double angle)"""
2196 return _gdi
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2198 def DrawRotatedText(*args
, **kwargs
):
2199 """DrawRotatedText(wxString text, Point pt, double angle)"""
2200 return _gdi
.DC_DrawRotatedText(*args
, **kwargs
)
2202 def BlitXY(*args
, **kwargs
):
2203 """BlitXY(int xdest, int ydest, int width, int height, DC source,
2204 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2205 int xsrcMask=-1, int ysrcMask=-1) -> bool"""
2206 return _gdi
.DC_BlitXY(*args
, **kwargs
)
2208 def Blit(*args
, **kwargs
):
2209 """Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2210 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool"""
2211 return _gdi
.DC_Blit(*args
, **kwargs
)
2213 def DrawLines(*args
, **kwargs
):
2214 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2215 return _gdi
.DC_DrawLines(*args
, **kwargs
)
2217 def DrawPolygon(*args
, **kwargs
):
2218 """DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2219 int fillStyle=ODDEVEN_RULE)"""
2220 return _gdi
.DC_DrawPolygon(*args
, **kwargs
)
2222 def DrawLabel(*args
, **kwargs
):
2223 """DrawLabel(wxString text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2224 int indexAccel=-1)"""
2225 return _gdi
.DC_DrawLabel(*args
, **kwargs
)
2227 def DrawImageLabel(*args
, **kwargs
):
2228 """DrawImageLabel(wxString text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2229 int indexAccel=-1) -> Rect"""
2230 return _gdi
.DC_DrawImageLabel(*args
, **kwargs
)
2232 def DrawSpline(*args
, **kwargs
):
2233 """DrawSpline(int points, Point points_array)"""
2234 return _gdi
.DC_DrawSpline(*args
, **kwargs
)
2236 def Clear(*args
, **kwargs
):
2238 return _gdi
.DC_Clear(*args
, **kwargs
)
2240 def StartDoc(*args
, **kwargs
):
2241 """StartDoc(wxString message) -> bool"""
2242 return _gdi
.DC_StartDoc(*args
, **kwargs
)
2244 def EndDoc(*args
, **kwargs
):
2246 return _gdi
.DC_EndDoc(*args
, **kwargs
)
2248 def StartPage(*args
, **kwargs
):
2250 return _gdi
.DC_StartPage(*args
, **kwargs
)
2252 def EndPage(*args
, **kwargs
):
2254 return _gdi
.DC_EndPage(*args
, **kwargs
)
2256 def SetFont(*args
, **kwargs
):
2257 """SetFont(Font font)"""
2258 return _gdi
.DC_SetFont(*args
, **kwargs
)
2260 def SetPen(*args
, **kwargs
):
2261 """SetPen(Pen pen)"""
2262 return _gdi
.DC_SetPen(*args
, **kwargs
)
2264 def SetBrush(*args
, **kwargs
):
2265 """SetBrush(Brush brush)"""
2266 return _gdi
.DC_SetBrush(*args
, **kwargs
)
2268 def SetBackground(*args
, **kwargs
):
2269 """SetBackground(Brush brush)"""
2270 return _gdi
.DC_SetBackground(*args
, **kwargs
)
2272 def SetBackgroundMode(*args
, **kwargs
):
2273 """SetBackgroundMode(int mode)"""
2274 return _gdi
.DC_SetBackgroundMode(*args
, **kwargs
)
2276 def SetPalette(*args
, **kwargs
):
2277 """SetPalette(Palette palette)"""
2278 return _gdi
.DC_SetPalette(*args
, **kwargs
)
2280 def SetClippingRegion(*args
, **kwargs
):
2281 """SetClippingRegion(int x, int y, int width, int height)"""
2282 return _gdi
.DC_SetClippingRegion(*args
, **kwargs
)
2284 def SetClippingRect(*args
, **kwargs
):
2285 """SetClippingRect(Rect rect)"""
2286 return _gdi
.DC_SetClippingRect(*args
, **kwargs
)
2288 def SetClippingRegionAsRegion(*args
, **kwargs
):
2289 """SetClippingRegionAsRegion(Region region)"""
2290 return _gdi
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2292 def DestroyClippingRegion(*args
, **kwargs
):
2293 """DestroyClippingRegion()"""
2294 return _gdi
.DC_DestroyClippingRegion(*args
, **kwargs
)
2296 def GetClippingBox(*args
, **kwargs
):
2297 """GetClippingBox() -> (x, y, width, height)"""
2298 return _gdi
.DC_GetClippingBox(*args
, **kwargs
)
2300 def GetClippingRect(*args
, **kwargs
):
2301 """GetClippingRect() -> Rect"""
2302 return _gdi
.DC_GetClippingRect(*args
, **kwargs
)
2304 def GetCharHeight(*args
, **kwargs
):
2305 """GetCharHeight() -> int"""
2306 return _gdi
.DC_GetCharHeight(*args
, **kwargs
)
2308 def GetCharWidth(*args
, **kwargs
):
2309 """GetCharWidth() -> int"""
2310 return _gdi
.DC_GetCharWidth(*args
, **kwargs
)
2312 def GetTextExtent(*args
, **kwargs
):
2313 """GetTextExtent(wxString string) -> (width, height)
2315 Get the width and height of the text using the current font.
2316 Only works for single line strings."""
2317 return _gdi
.DC_GetTextExtent(*args
, **kwargs
)
2319 def GetFullTextExtent(*args
, **kwargs
):
2320 """GetFullTextExtent(wxString string, Font font=None) ->
2321 (width, height, descent, externalLeading)
2323 Get the width, height, decent and leading of the text using the current or specified font.
2324 Only works for single line strings."""
2325 return _gdi
.DC_GetFullTextExtent(*args
, **kwargs
)
2327 def GetMultiLineTextExtent(*args
, **kwargs
):
2328 """GetMultiLineTextExtent(wxString string, Font font=None) ->
2329 (width, height, descent, externalLeading)
2331 Get the width, height, decent and leading of the text using the current or specified font.
2332 Works for single as well as multi-line strings."""
2333 return _gdi
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2335 def GetSize(*args
, **kwargs
):
2336 """GetSize() -> Size
2338 Get the DC size in device units."""
2339 return _gdi
.DC_GetSize(*args
, **kwargs
)
2341 def GetSizeTuple(*args
, **kwargs
):
2342 """GetSizeTuple() -> (width, height)
2344 Get the DC size in device units."""
2345 return _gdi
.DC_GetSizeTuple(*args
, **kwargs
)
2347 def GetSizeMM(*args
, **kwargs
):
2348 """GetSizeMM() -> Size
2350 Get the DC size in milimeters."""
2351 return _gdi
.DC_GetSizeMM(*args
, **kwargs
)
2353 def GetSizeMMTuple(*args
, **kwargs
):
2354 """GetSizeMMTuple() -> (width, height)
2356 Get the DC size in milimeters."""
2357 return _gdi
.DC_GetSizeMMTuple(*args
, **kwargs
)
2359 def DeviceToLogicalX(*args
, **kwargs
):
2360 """DeviceToLogicalX(int x) -> int"""
2361 return _gdi
.DC_DeviceToLogicalX(*args
, **kwargs
)
2363 def DeviceToLogicalY(*args
, **kwargs
):
2364 """DeviceToLogicalY(int y) -> int"""
2365 return _gdi
.DC_DeviceToLogicalY(*args
, **kwargs
)
2367 def DeviceToLogicalXRel(*args
, **kwargs
):
2368 """DeviceToLogicalXRel(int x) -> int"""
2369 return _gdi
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2371 def DeviceToLogicalYRel(*args
, **kwargs
):
2372 """DeviceToLogicalYRel(int y) -> int"""
2373 return _gdi
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2375 def LogicalToDeviceX(*args
, **kwargs
):
2376 """LogicalToDeviceX(int x) -> int"""
2377 return _gdi
.DC_LogicalToDeviceX(*args
, **kwargs
)
2379 def LogicalToDeviceY(*args
, **kwargs
):
2380 """LogicalToDeviceY(int y) -> int"""
2381 return _gdi
.DC_LogicalToDeviceY(*args
, **kwargs
)
2383 def LogicalToDeviceXRel(*args
, **kwargs
):
2384 """LogicalToDeviceXRel(int x) -> int"""
2385 return _gdi
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2387 def LogicalToDeviceYRel(*args
, **kwargs
):
2388 """LogicalToDeviceYRel(int y) -> int"""
2389 return _gdi
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2391 def CanDrawBitmap(*args
, **kwargs
):
2392 """CanDrawBitmap() -> bool"""
2393 return _gdi
.DC_CanDrawBitmap(*args
, **kwargs
)
2395 def CanGetTextExtent(*args
, **kwargs
):
2396 """CanGetTextExtent() -> bool"""
2397 return _gdi
.DC_CanGetTextExtent(*args
, **kwargs
)
2399 def GetDepth(*args
, **kwargs
):
2400 """GetDepth() -> int"""
2401 return _gdi
.DC_GetDepth(*args
, **kwargs
)
2403 def GetPPI(*args
, **kwargs
):
2404 """GetPPI() -> Size"""
2405 return _gdi
.DC_GetPPI(*args
, **kwargs
)
2407 def Ok(*args
, **kwargs
):
2409 return _gdi
.DC_Ok(*args
, **kwargs
)
2411 def GetBackgroundMode(*args
, **kwargs
):
2412 """GetBackgroundMode() -> int"""
2413 return _gdi
.DC_GetBackgroundMode(*args
, **kwargs
)
2415 def GetBackground(*args
, **kwargs
):
2416 """GetBackground() -> Brush"""
2417 return _gdi
.DC_GetBackground(*args
, **kwargs
)
2419 def GetBrush(*args
, **kwargs
):
2420 """GetBrush() -> Brush"""
2421 return _gdi
.DC_GetBrush(*args
, **kwargs
)
2423 def GetFont(*args
, **kwargs
):
2424 """GetFont() -> Font"""
2425 return _gdi
.DC_GetFont(*args
, **kwargs
)
2427 def GetPen(*args
, **kwargs
):
2428 """GetPen() -> Pen"""
2429 return _gdi
.DC_GetPen(*args
, **kwargs
)
2431 def GetTextBackground(*args
, **kwargs
):
2432 """GetTextBackground() -> Colour"""
2433 return _gdi
.DC_GetTextBackground(*args
, **kwargs
)
2435 def GetTextForeground(*args
, **kwargs
):
2436 """GetTextForeground() -> Colour"""
2437 return _gdi
.DC_GetTextForeground(*args
, **kwargs
)
2439 def SetTextForeground(*args
, **kwargs
):
2440 """SetTextForeground(Colour colour)"""
2441 return _gdi
.DC_SetTextForeground(*args
, **kwargs
)
2443 def SetTextBackground(*args
, **kwargs
):
2444 """SetTextBackground(Colour colour)"""
2445 return _gdi
.DC_SetTextBackground(*args
, **kwargs
)
2447 def GetMapMode(*args
, **kwargs
):
2448 """GetMapMode() -> int"""
2449 return _gdi
.DC_GetMapMode(*args
, **kwargs
)
2451 def SetMapMode(*args
, **kwargs
):
2452 """SetMapMode(int mode)"""
2453 return _gdi
.DC_SetMapMode(*args
, **kwargs
)
2455 def GetUserScale(*args
, **kwargs
):
2456 """GetUserScale() -> (xScale, yScale)"""
2457 return _gdi
.DC_GetUserScale(*args
, **kwargs
)
2459 def SetUserScale(*args
, **kwargs
):
2460 """SetUserScale(double x, double y)"""
2461 return _gdi
.DC_SetUserScale(*args
, **kwargs
)
2463 def GetLogicalScale(*args
, **kwargs
):
2464 """GetLogicalScale() -> (xScale, yScale)"""
2465 return _gdi
.DC_GetLogicalScale(*args
, **kwargs
)
2467 def SetLogicalScale(*args
, **kwargs
):
2468 """SetLogicalScale(double x, double y)"""
2469 return _gdi
.DC_SetLogicalScale(*args
, **kwargs
)
2471 def GetLogicalOrigin(*args
, **kwargs
):
2472 """GetLogicalOrigin() -> Point"""
2473 return _gdi
.DC_GetLogicalOrigin(*args
, **kwargs
)
2475 def GetLogicalOriginTuple(*args
, **kwargs
):
2476 """GetLogicalOriginTuple() -> (x,y)"""
2477 return _gdi
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2479 def SetLogicalOrigin(*args
, **kwargs
):
2480 """SetLogicalOrigin(int x, int y)"""
2481 return _gdi
.DC_SetLogicalOrigin(*args
, **kwargs
)
2483 def GetDeviceOrigin(*args
, **kwargs
):
2484 """GetDeviceOrigin() -> Point"""
2485 return _gdi
.DC_GetDeviceOrigin(*args
, **kwargs
)
2487 def GetDeviceOriginTuple(*args
, **kwargs
):
2488 """GetDeviceOriginTuple() -> (x,y)"""
2489 return _gdi
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2491 def SetDeviceOrigin(*args
, **kwargs
):
2492 """SetDeviceOrigin(int x, int y)"""
2493 return _gdi
.DC_SetDeviceOrigin(*args
, **kwargs
)
2495 def SetAxisOrientation(*args
, **kwargs
):
2496 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2497 return _gdi
.DC_SetAxisOrientation(*args
, **kwargs
)
2499 def GetLogicalFunction(*args
, **kwargs
):
2500 """GetLogicalFunction() -> int"""
2501 return _gdi
.DC_GetLogicalFunction(*args
, **kwargs
)
2503 def SetLogicalFunction(*args
, **kwargs
):
2504 """SetLogicalFunction(int function)"""
2505 return _gdi
.DC_SetLogicalFunction(*args
, **kwargs
)
2507 def SetOptimization(*args
, **kwargs
):
2508 """SetOptimization(bool opt)"""
2509 return _gdi
.DC_SetOptimization(*args
, **kwargs
)
2511 def GetOptimization(*args
, **kwargs
):
2512 """GetOptimization() -> bool"""
2513 return _gdi
.DC_GetOptimization(*args
, **kwargs
)
2515 def CalcBoundingBox(*args
, **kwargs
):
2516 """CalcBoundingBox(int x, int y)"""
2517 return _gdi
.DC_CalcBoundingBox(*args
, **kwargs
)
2519 def ResetBoundingBox(*args
, **kwargs
):
2520 """ResetBoundingBox()"""
2521 return _gdi
.DC_ResetBoundingBox(*args
, **kwargs
)
2523 def MinX(*args
, **kwargs
):
2525 return _gdi
.DC_MinX(*args
, **kwargs
)
2527 def MaxX(*args
, **kwargs
):
2529 return _gdi
.DC_MaxX(*args
, **kwargs
)
2531 def MinY(*args
, **kwargs
):
2533 return _gdi
.DC_MinY(*args
, **kwargs
)
2535 def MaxY(*args
, **kwargs
):
2537 return _gdi
.DC_MaxY(*args
, **kwargs
)
2539 def GetBoundingBox(*args
, **kwargs
):
2540 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2541 return _gdi
.DC_GetBoundingBox(*args
, **kwargs
)
2543 def __nonzero__(self
): return self
.Ok()
2544 def _DrawPointList(*args
, **kwargs
):
2545 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2546 return _gdi
.DC__DrawPointList(*args
, **kwargs
)
2548 def _DrawLineList(*args
, **kwargs
):
2549 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2550 return _gdi
.DC__DrawLineList(*args
, **kwargs
)
2552 def _DrawRectangleList(*args
, **kwargs
):
2553 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2554 return _gdi
.DC__DrawRectangleList(*args
, **kwargs
)
2556 def _DrawEllipseList(*args
, **kwargs
):
2557 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2558 return _gdi
.DC__DrawEllipseList(*args
, **kwargs
)
2560 def _DrawPolygonList(*args
, **kwargs
):
2561 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2562 return _gdi
.DC__DrawPolygonList(*args
, **kwargs
)
2564 def _DrawTextList(*args
, **kwargs
):
2565 """_DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2566 PyObject backgroundList) -> PyObject"""
2567 return _gdi
.DC__DrawTextList(*args
, **kwargs
)
2569 def DrawPointList(self
, points
, pens
=None):
2572 elif isinstance(pens
, wx
.Pen
):
2574 elif len(pens
) != len(points
):
2575 raise ValueError('points and pens must have same length')
2576 return self
._DrawPointList
(points
, pens
, [])
2579 def DrawLineList(self
, lines
, pens
=None):
2582 elif isinstance(pens
, wx
.Pen
):
2584 elif len(pens
) != len(lines
):
2585 raise ValueError('lines and pens must have same length')
2586 return self
._DrawLineList
(lines
, pens
, [])
2589 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2592 elif isinstance(pens
, wx
.Pen
):
2594 elif len(pens
) != len(rectangles
):
2595 raise ValueError('rectangles and pens must have same length')
2598 elif isinstance(brushes
, wx
.Brush
):
2600 elif len(brushes
) != len(rectangles
):
2601 raise ValueError('rectangles and brushes must have same length')
2602 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2605 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2608 elif isinstance(pens
, wx
.Pen
):
2610 elif len(pens
) != len(ellipses
):
2611 raise ValueError('ellipses and pens must have same length')
2614 elif isinstance(brushes
, wx
.Brush
):
2616 elif len(brushes
) != len(ellipses
):
2617 raise ValueError('ellipses and brushes must have same length')
2618 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2621 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2626 elif isinstance(pens
, wx
.Pen
):
2628 elif len(pens
) != len(polygons
):
2629 raise ValueError('polygons and pens must have same length')
2632 elif isinstance(brushes
, wx
.Brush
):
2634 elif len(brushes
) != len(polygons
):
2635 raise ValueError('polygons and brushes must have same length')
2636 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2639 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2643 if type(textList
) == type(''):
2644 textList
= [textList
]
2645 elif len(textList
) != len(coords
):
2646 raise ValueError('textlist and coords must have same length')
2647 if foregrounds
is None:
2649 elif isinstance(foregrounds
, wx
.Colour
):
2650 foregrounds
= [foregrounds
]
2651 elif len(foregrounds
) != len(coords
):
2652 raise ValueError('foregrounds and coords must have same length')
2653 if backgrounds
is None:
2655 elif isinstance(backgrounds
, wx
.Colour
):
2656 backgrounds
= [backgrounds
]
2657 elif len(backgrounds
) != len(coords
):
2658 raise ValueError('backgrounds and coords must have same length')
2659 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2663 def __init__(self
, this
):
2665 if not hasattr(self
,"thisown"): self
.thisown
= 0
2667 _gdi
.DC_swigregister(DCPtr
)
2669 #---------------------------------------------------------------------------
2674 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2675 def __init__(self
, *args
, **kwargs
):
2676 """__init__() -> MemoryDC"""
2677 newobj
= _gdi
.new_MemoryDC(*args
, **kwargs
)
2678 self
.this
= newobj
.this
2681 def SelectObject(*args
, **kwargs
):
2682 """SelectObject(Bitmap bitmap)"""
2683 return _gdi
.MemoryDC_SelectObject(*args
, **kwargs
)
2686 class MemoryDCPtr(MemoryDC
):
2687 def __init__(self
, this
):
2689 if not hasattr(self
,"thisown"): self
.thisown
= 0
2690 self
.__class
__ = MemoryDC
2691 _gdi
.MemoryDC_swigregister(MemoryDCPtr
)
2693 def MemoryDCFromDC(*args
, **kwargs
):
2694 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
2695 val
= _gdi
.new_MemoryDCFromDC(*args
, **kwargs
)
2699 #---------------------------------------------------------------------------
2701 class BufferedDC(MemoryDC
):
2704 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2705 def __init__(self
, *args
, **kwargs
):
2706 """__init__(DC dc, Bitmap buffer) -> BufferedDC"""
2707 newobj
= _gdi
.new_BufferedDC(*args
, **kwargs
)
2708 self
.this
= newobj
.this
2711 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2713 def UnMask(*args
, **kwargs
):
2715 return _gdi
.BufferedDC_UnMask(*args
, **kwargs
)
2718 class BufferedDCPtr(BufferedDC
):
2719 def __init__(self
, this
):
2721 if not hasattr(self
,"thisown"): self
.thisown
= 0
2722 self
.__class
__ = BufferedDC
2723 _gdi
.BufferedDC_swigregister(BufferedDCPtr
)
2725 def BufferedDCInternalBuffer(*args
, **kwargs
):
2726 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
2727 val
= _gdi
.new_BufferedDCInternalBuffer(*args
, **kwargs
)
2729 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2732 class BufferedPaintDC(BufferedDC
):
2735 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2736 def __init__(self
, *args
, **kwargs
):
2737 """__init__(Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
2738 newobj
= _gdi
.new_BufferedPaintDC(*args
, **kwargs
)
2739 self
.this
= newobj
.this
2743 class BufferedPaintDCPtr(BufferedPaintDC
):
2744 def __init__(self
, this
):
2746 if not hasattr(self
,"thisown"): self
.thisown
= 0
2747 self
.__class
__ = BufferedPaintDC
2748 _gdi
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
2750 #---------------------------------------------------------------------------
2755 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2756 def __init__(self
, *args
, **kwargs
):
2757 """__init__() -> ScreenDC"""
2758 newobj
= _gdi
.new_ScreenDC(*args
, **kwargs
)
2759 self
.this
= newobj
.this
2762 def StartDrawingOnTopWin(*args
, **kwargs
):
2763 """StartDrawingOnTopWin(Window window) -> bool"""
2764 return _gdi
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
2766 def StartDrawingOnTop(*args
, **kwargs
):
2767 """StartDrawingOnTop(Rect rect=None) -> bool"""
2768 return _gdi
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
2770 def EndDrawingOnTop(*args
, **kwargs
):
2771 """EndDrawingOnTop() -> bool"""
2772 return _gdi
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
2775 class ScreenDCPtr(ScreenDC
):
2776 def __init__(self
, this
):
2778 if not hasattr(self
,"thisown"): self
.thisown
= 0
2779 self
.__class
__ = ScreenDC
2780 _gdi
.ScreenDC_swigregister(ScreenDCPtr
)
2782 #---------------------------------------------------------------------------
2787 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2788 def __init__(self
, *args
, **kwargs
):
2789 """__init__(Window win) -> ClientDC"""
2790 newobj
= _gdi
.new_ClientDC(*args
, **kwargs
)
2791 self
.this
= newobj
.this
2795 class ClientDCPtr(ClientDC
):
2796 def __init__(self
, this
):
2798 if not hasattr(self
,"thisown"): self
.thisown
= 0
2799 self
.__class
__ = ClientDC
2800 _gdi
.ClientDC_swigregister(ClientDCPtr
)
2802 #---------------------------------------------------------------------------
2807 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2808 def __init__(self
, *args
, **kwargs
):
2809 """__init__(Window win) -> PaintDC"""
2810 newobj
= _gdi
.new_PaintDC(*args
, **kwargs
)
2811 self
.this
= newobj
.this
2815 class PaintDCPtr(PaintDC
):
2816 def __init__(self
, this
):
2818 if not hasattr(self
,"thisown"): self
.thisown
= 0
2819 self
.__class
__ = PaintDC
2820 _gdi
.PaintDC_swigregister(PaintDCPtr
)
2822 #---------------------------------------------------------------------------
2827 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2828 def __init__(self
, *args
, **kwargs
):
2829 """__init__(Window win) -> WindowDC"""
2830 newobj
= _gdi
.new_WindowDC(*args
, **kwargs
)
2831 self
.this
= newobj
.this
2835 class WindowDCPtr(WindowDC
):
2836 def __init__(self
, this
):
2838 if not hasattr(self
,"thisown"): self
.thisown
= 0
2839 self
.__class
__ = WindowDC
2840 _gdi
.WindowDC_swigregister(WindowDCPtr
)
2842 #---------------------------------------------------------------------------
2847 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2848 def __init__(self
, *args
, **kwargs
):
2849 """__init__(DC dc, bool mirror) -> MirrorDC"""
2850 newobj
= _gdi
.new_MirrorDC(*args
, **kwargs
)
2851 self
.this
= newobj
.this
2855 class MirrorDCPtr(MirrorDC
):
2856 def __init__(self
, this
):
2858 if not hasattr(self
,"thisown"): self
.thisown
= 0
2859 self
.__class
__ = MirrorDC
2860 _gdi
.MirrorDC_swigregister(MirrorDCPtr
)
2862 #---------------------------------------------------------------------------
2864 class PostScriptDC(DC
):
2867 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2868 def __init__(self
, *args
, **kwargs
):
2869 """__init__(wxPrintData printData) -> PostScriptDC"""
2870 newobj
= _gdi
.new_PostScriptDC(*args
, **kwargs
)
2871 self
.this
= newobj
.this
2874 def GetPrintData(*args
, **kwargs
):
2875 """GetPrintData() -> wxPrintData"""
2876 return _gdi
.PostScriptDC_GetPrintData(*args
, **kwargs
)
2878 def SetPrintData(*args
, **kwargs
):
2879 """SetPrintData(wxPrintData data)"""
2880 return _gdi
.PostScriptDC_SetPrintData(*args
, **kwargs
)
2882 def SetResolution(*args
, **kwargs
):
2883 """PostScriptDC.SetResolution(int ppi)"""
2884 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
2886 SetResolution
= staticmethod(SetResolution
)
2887 def GetResolution(*args
, **kwargs
):
2888 """PostScriptDC.GetResolution() -> int"""
2889 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
2891 GetResolution
= staticmethod(GetResolution
)
2893 class PostScriptDCPtr(PostScriptDC
):
2894 def __init__(self
, this
):
2896 if not hasattr(self
,"thisown"): self
.thisown
= 0
2897 self
.__class
__ = PostScriptDC
2898 _gdi
.PostScriptDC_swigregister(PostScriptDCPtr
)
2900 def PostScriptDC_SetResolution(*args
, **kwargs
):
2901 """PostScriptDC_SetResolution(int ppi)"""
2902 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
2904 def PostScriptDC_GetResolution(*args
, **kwargs
):
2905 """PostScriptDC_GetResolution() -> int"""
2906 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
2908 #---------------------------------------------------------------------------
2910 class MetaFile(core
.Object
):
2913 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2914 def __init__(self
, *args
, **kwargs
):
2915 """__init__(wxString filename=wxPyEmptyString) -> MetaFile"""
2916 newobj
= _gdi
.new_MetaFile(*args
, **kwargs
)
2917 self
.this
= newobj
.this
2921 class MetaFilePtr(MetaFile
):
2922 def __init__(self
, this
):
2924 if not hasattr(self
,"thisown"): self
.thisown
= 0
2925 self
.__class
__ = MetaFile
2926 _gdi
.MetaFile_swigregister(MetaFilePtr
)
2928 class MetaFileDC(DC
):
2931 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2932 def __init__(self
, *args
, **kwargs
):
2933 """__init__(wxString filename=wxPyEmptyString, int width=0, int height=0,
2934 wxString description=wxPyEmptyString) -> MetaFileDC"""
2935 newobj
= _gdi
.new_MetaFileDC(*args
, **kwargs
)
2936 self
.this
= newobj
.this
2940 class MetaFileDCPtr(MetaFileDC
):
2941 def __init__(self
, this
):
2943 if not hasattr(self
,"thisown"): self
.thisown
= 0
2944 self
.__class
__ = MetaFileDC
2945 _gdi
.MetaFileDC_swigregister(MetaFileDCPtr
)
2947 class PrinterDC(DC
):
2950 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2951 def __init__(self
, *args
, **kwargs
):
2952 """__init__(wxPrintData printData) -> PrinterDC"""
2953 newobj
= _gdi
.new_PrinterDC(*args
, **kwargs
)
2954 self
.this
= newobj
.this
2958 class PrinterDCPtr(PrinterDC
):
2959 def __init__(self
, this
):
2961 if not hasattr(self
,"thisown"): self
.thisown
= 0
2962 self
.__class
__ = PrinterDC
2963 _gdi
.PrinterDC_swigregister(PrinterDCPtr
)
2965 #---------------------------------------------------------------------------
2967 IMAGELIST_DRAW_NORMAL
= _gdi
.IMAGELIST_DRAW_NORMAL
2968 IMAGELIST_DRAW_TRANSPARENT
= _gdi
.IMAGELIST_DRAW_TRANSPARENT
2969 IMAGELIST_DRAW_SELECTED
= _gdi
.IMAGELIST_DRAW_SELECTED
2970 IMAGELIST_DRAW_FOCUSED
= _gdi
.IMAGELIST_DRAW_FOCUSED
2971 IMAGE_LIST_NORMAL
= _gdi
.IMAGE_LIST_NORMAL
2972 IMAGE_LIST_SMALL
= _gdi
.IMAGE_LIST_SMALL
2973 IMAGE_LIST_STATE
= _gdi
.IMAGE_LIST_STATE
2974 class ImageList(core
.Object
):
2977 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2978 def __init__(self
, *args
, **kwargs
):
2979 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
2980 newobj
= _gdi
.new_ImageList(*args
, **kwargs
)
2981 self
.this
= newobj
.this
2984 def __del__(self
, destroy
=_gdi
.delete_ImageList
):
2987 if self
.thisown
: destroy(self
)
2990 def Add(*args
, **kwargs
):
2991 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
2992 return _gdi
.ImageList_Add(*args
, **kwargs
)
2994 def AddWithColourMask(*args
, **kwargs
):
2995 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
2996 return _gdi
.ImageList_AddWithColourMask(*args
, **kwargs
)
2998 def AddIcon(*args
, **kwargs
):
2999 """AddIcon(Icon icon) -> int"""
3000 return _gdi
.ImageList_AddIcon(*args
, **kwargs
)
3002 def Replace(*args
, **kwargs
):
3003 """Replace(int index, Bitmap bitmap) -> bool"""
3004 return _gdi
.ImageList_Replace(*args
, **kwargs
)
3006 def Draw(*args
, **kwargs
):
3007 """Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3008 bool solidBackground=False) -> bool"""
3009 return _gdi
.ImageList_Draw(*args
, **kwargs
)
3011 def GetImageCount(*args
, **kwargs
):
3012 """GetImageCount() -> int"""
3013 return _gdi
.ImageList_GetImageCount(*args
, **kwargs
)
3015 def Remove(*args
, **kwargs
):
3016 """Remove(int index) -> bool"""
3017 return _gdi
.ImageList_Remove(*args
, **kwargs
)
3019 def RemoveAll(*args
, **kwargs
):
3020 """RemoveAll() -> bool"""
3021 return _gdi
.ImageList_RemoveAll(*args
, **kwargs
)
3023 def GetSize(*args
, **kwargs
):
3024 """GetSize() -> (width,height)"""
3025 return _gdi
.ImageList_GetSize(*args
, **kwargs
)
3028 class ImageListPtr(ImageList
):
3029 def __init__(self
, this
):
3031 if not hasattr(self
,"thisown"): self
.thisown
= 0
3032 self
.__class
__ = ImageList
3033 _gdi
.ImageList_swigregister(ImageListPtr
)
3035 #---------------------------------------------------------------------------
3037 class PenList(core
.Object
):
3039 def __init__(self
): raise RuntimeError, "No constructor defined"
3041 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3042 def AddPen(*args
, **kwargs
):
3043 """AddPen(Pen pen)"""
3044 return _gdi
.PenList_AddPen(*args
, **kwargs
)
3046 def FindOrCreatePen(*args
, **kwargs
):
3047 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
3048 return _gdi
.PenList_FindOrCreatePen(*args
, **kwargs
)
3050 def RemovePen(*args
, **kwargs
):
3051 """RemovePen(Pen pen)"""
3052 return _gdi
.PenList_RemovePen(*args
, **kwargs
)
3054 def GetCount(*args
, **kwargs
):
3055 """GetCount() -> int"""
3056 return _gdi
.PenList_GetCount(*args
, **kwargs
)
3059 class PenListPtr(PenList
):
3060 def __init__(self
, this
):
3062 if not hasattr(self
,"thisown"): self
.thisown
= 0
3063 self
.__class
__ = PenList
3064 _gdi
.PenList_swigregister(PenListPtr
)
3066 class BrushList(core
.Object
):
3068 def __init__(self
): raise RuntimeError, "No constructor defined"
3070 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3071 def AddBrush(*args
, **kwargs
):
3072 """AddBrush(Brush brush)"""
3073 return _gdi
.BrushList_AddBrush(*args
, **kwargs
)
3075 def FindOrCreateBrush(*args
, **kwargs
):
3076 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
3077 return _gdi
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3079 def RemoveBrush(*args
, **kwargs
):
3080 """RemoveBrush(Brush brush)"""
3081 return _gdi
.BrushList_RemoveBrush(*args
, **kwargs
)
3083 def GetCount(*args
, **kwargs
):
3084 """GetCount() -> int"""
3085 return _gdi
.BrushList_GetCount(*args
, **kwargs
)
3088 class BrushListPtr(BrushList
):
3089 def __init__(self
, this
):
3091 if not hasattr(self
,"thisown"): self
.thisown
= 0
3092 self
.__class
__ = BrushList
3093 _gdi
.BrushList_swigregister(BrushListPtr
)
3095 class ColourDatabase(core
.Object
):
3098 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3099 def __init__(self
, *args
, **kwargs
):
3100 """__init__() -> ColourDatabase"""
3101 newobj
= _gdi
.new_ColourDatabase(*args
, **kwargs
)
3102 self
.this
= newobj
.this
3105 def __del__(self
, destroy
=_gdi
.delete_ColourDatabase
):
3108 if self
.thisown
: destroy(self
)
3111 def Find(*args
, **kwargs
):
3112 """Find(wxString name) -> Colour"""
3113 return _gdi
.ColourDatabase_Find(*args
, **kwargs
)
3115 def FindName(*args
, **kwargs
):
3116 """FindName(Colour colour) -> wxString"""
3117 return _gdi
.ColourDatabase_FindName(*args
, **kwargs
)
3120 def AddColour(*args
, **kwargs
):
3121 """AddColour(wxString name, Colour colour)"""
3122 return _gdi
.ColourDatabase_AddColour(*args
, **kwargs
)
3124 def Append(*args
, **kwargs
):
3125 """Append(wxString name, int red, int green, int blue)"""
3126 return _gdi
.ColourDatabase_Append(*args
, **kwargs
)
3129 class ColourDatabasePtr(ColourDatabase
):
3130 def __init__(self
, this
):
3132 if not hasattr(self
,"thisown"): self
.thisown
= 0
3133 self
.__class
__ = ColourDatabase
3134 _gdi
.ColourDatabase_swigregister(ColourDatabasePtr
)
3136 class FontList(core
.Object
):
3138 def __init__(self
): raise RuntimeError, "No constructor defined"
3140 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3141 def AddFont(*args
, **kwargs
):
3142 """AddFont(Font font)"""
3143 return _gdi
.FontList_AddFont(*args
, **kwargs
)
3145 def FindOrCreateFont(*args
, **kwargs
):
3146 """FindOrCreateFont(int point_size, int family, int style, int weight,
3147 bool underline=False, wxString facename=wxPyEmptyString,
3148 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font"""
3149 return _gdi
.FontList_FindOrCreateFont(*args
, **kwargs
)
3151 def RemoveFont(*args
, **kwargs
):
3152 """RemoveFont(Font font)"""
3153 return _gdi
.FontList_RemoveFont(*args
, **kwargs
)
3155 def GetCount(*args
, **kwargs
):
3156 """GetCount() -> int"""
3157 return _gdi
.FontList_GetCount(*args
, **kwargs
)
3160 class FontListPtr(FontList
):
3161 def __init__(self
, this
):
3163 if not hasattr(self
,"thisown"): self
.thisown
= 0
3164 self
.__class
__ = FontList
3165 _gdi
.FontList_swigregister(FontListPtr
)
3167 #---------------------------------------------------------------------------
3169 #---------------------------------------------------------------------------
3171 class Effects(core
.Object
):
3174 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3175 def __init__(self
, *args
, **kwargs
):
3176 """__init__() -> Effects"""
3177 newobj
= _gdi
.new_Effects(*args
, **kwargs
)
3178 self
.this
= newobj
.this
3181 def GetHighlightColour(*args
, **kwargs
):
3182 """GetHighlightColour() -> Colour"""
3183 return _gdi
.Effects_GetHighlightColour(*args
, **kwargs
)
3185 def GetLightShadow(*args
, **kwargs
):
3186 """GetLightShadow() -> Colour"""
3187 return _gdi
.Effects_GetLightShadow(*args
, **kwargs
)
3189 def GetFaceColour(*args
, **kwargs
):
3190 """GetFaceColour() -> Colour"""
3191 return _gdi
.Effects_GetFaceColour(*args
, **kwargs
)
3193 def GetMediumShadow(*args
, **kwargs
):
3194 """GetMediumShadow() -> Colour"""
3195 return _gdi
.Effects_GetMediumShadow(*args
, **kwargs
)
3197 def GetDarkShadow(*args
, **kwargs
):
3198 """GetDarkShadow() -> Colour"""
3199 return _gdi
.Effects_GetDarkShadow(*args
, **kwargs
)
3201 def SetHighlightColour(*args
, **kwargs
):
3202 """SetHighlightColour(Colour c)"""
3203 return _gdi
.Effects_SetHighlightColour(*args
, **kwargs
)
3205 def SetLightShadow(*args
, **kwargs
):
3206 """SetLightShadow(Colour c)"""
3207 return _gdi
.Effects_SetLightShadow(*args
, **kwargs
)
3209 def SetFaceColour(*args
, **kwargs
):
3210 """SetFaceColour(Colour c)"""
3211 return _gdi
.Effects_SetFaceColour(*args
, **kwargs
)
3213 def SetMediumShadow(*args
, **kwargs
):
3214 """SetMediumShadow(Colour c)"""
3215 return _gdi
.Effects_SetMediumShadow(*args
, **kwargs
)
3217 def SetDarkShadow(*args
, **kwargs
):
3218 """SetDarkShadow(Colour c)"""
3219 return _gdi
.Effects_SetDarkShadow(*args
, **kwargs
)
3221 def Set(*args
, **kwargs
):
3222 """Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3223 Colour mediumShadow, Colour darkShadow)"""
3224 return _gdi
.Effects_Set(*args
, **kwargs
)
3226 def DrawSunkenEdge(*args
, **kwargs
):
3227 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3228 return _gdi
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3230 def TileBitmap(*args
, **kwargs
):
3231 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3232 return _gdi
.Effects_TileBitmap(*args
, **kwargs
)
3235 class EffectsPtr(Effects
):
3236 def __init__(self
, this
):
3238 if not hasattr(self
,"thisown"): self
.thisown
= 0
3239 self
.__class
__ = Effects
3240 _gdi
.Effects_swigregister(EffectsPtr
)
3242 NORMAL_FONT
= cvar
.NORMAL_FONT
3243 SMALL_FONT
= cvar
.SMALL_FONT
3244 ITALIC_FONT
= cvar
.ITALIC_FONT
3245 SWISS_FONT
= cvar
.SWISS_FONT
3246 RED_PEN
= cvar
.RED_PEN
3247 CYAN_PEN
= cvar
.CYAN_PEN
3248 GREEN_PEN
= cvar
.GREEN_PEN
3249 BLACK_PEN
= cvar
.BLACK_PEN
3250 WHITE_PEN
= cvar
.WHITE_PEN
3251 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3252 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3253 GREY_PEN
= cvar
.GREY_PEN
3254 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3255 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3256 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3257 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3258 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3259 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3260 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3261 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3262 RED_BRUSH
= cvar
.RED_BRUSH
3263 GREY_BRUSH
= cvar
.GREY_BRUSH
3264 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3265 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3272 LIGHT_GREY
= cvar
.LIGHT_GREY
3273 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3274 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3275 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3276 NullBitmap
= cvar
.NullBitmap
3277 NullIcon
= cvar
.NullIcon
3278 NullCursor
= cvar
.NullCursor
3279 NullPen
= cvar
.NullPen
3280 NullBrush
= cvar
.NullBrush
3281 NullPalette
= cvar
.NullPalette
3282 NullFont
= cvar
.NullFont
3283 NullColour
= cvar
.NullColour
3284 TheFontList
= cvar
.TheFontList
3285 ThePenList
= cvar
.ThePenList
3286 TheBrushList
= cvar
.TheBrushList
3287 TheColourDatabase
= cvar
.TheColourDatabase