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
):
278 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
279 def __init__(self
, *args
, **kwargs
):
280 """__init__(Colour colour, int style=SOLID) -> Brush"""
281 newobj
= _gdi
.new_Brush(*args
, **kwargs
)
282 self
.this
= newobj
.this
285 def __del__(self
, destroy
=_gdi
.delete_Brush
):
288 if self
.thisown
: destroy(self
)
291 def SetColour(*args
, **kwargs
):
292 """SetColour(Colour col)"""
293 return _gdi
.Brush_SetColour(*args
, **kwargs
)
295 def SetStyle(*args
, **kwargs
):
296 """SetStyle(int style)"""
297 return _gdi
.Brush_SetStyle(*args
, **kwargs
)
299 def SetStipple(*args
, **kwargs
):
300 """SetStipple(Bitmap stipple)"""
301 return _gdi
.Brush_SetStipple(*args
, **kwargs
)
303 def GetColour(*args
, **kwargs
):
304 """GetColour() -> Colour"""
305 return _gdi
.Brush_GetColour(*args
, **kwargs
)
307 def GetStyle(*args
, **kwargs
):
308 """GetStyle() -> int"""
309 return _gdi
.Brush_GetStyle(*args
, **kwargs
)
311 def GetStipple(*args
, **kwargs
):
312 """GetStipple() -> Bitmap"""
313 return _gdi
.Brush_GetStipple(*args
, **kwargs
)
315 def Ok(*args
, **kwargs
):
317 return _gdi
.Brush_Ok(*args
, **kwargs
)
319 def GetMacTheme(*args
, **kwargs
):
320 """GetMacTheme() -> short"""
321 return _gdi
.Brush_GetMacTheme(*args
, **kwargs
)
323 def SetMacTheme(*args
, **kwargs
):
324 """SetMacTheme(short macThemeBrush)"""
325 return _gdi
.Brush_SetMacTheme(*args
, **kwargs
)
327 def __nonzero__(self
): return self
.Ok()
329 class BrushPtr(Brush
):
330 def __init__(self
, this
):
332 if not hasattr(self
,"thisown"): self
.thisown
= 0
333 self
.__class
__ = Brush
334 _gdi
.Brush_swigregister(BrushPtr
)
336 class Bitmap(GDIObject
):
339 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
340 def __init__(self
, *args
, **kwargs
):
341 """__init__(wxString name, wxBitmapType type=BITMAP_TYPE_ANY) -> Bitmap"""
342 newobj
= _gdi
.new_Bitmap(*args
, **kwargs
)
343 self
.this
= newobj
.this
346 def __del__(self
, destroy
=_gdi
.delete_Bitmap
):
349 if self
.thisown
: destroy(self
)
352 def Ok(*args
, **kwargs
):
354 return _gdi
.Bitmap_Ok(*args
, **kwargs
)
356 def GetWidth(*args
, **kwargs
):
357 """GetWidth() -> int"""
358 return _gdi
.Bitmap_GetWidth(*args
, **kwargs
)
360 def GetHeight(*args
, **kwargs
):
361 """GetHeight() -> int"""
362 return _gdi
.Bitmap_GetHeight(*args
, **kwargs
)
364 def GetDepth(*args
, **kwargs
):
365 """GetDepth() -> int"""
366 return _gdi
.Bitmap_GetDepth(*args
, **kwargs
)
368 def ConvertToImage(*args
, **kwargs
):
369 """ConvertToImage() -> Image"""
370 return _gdi
.Bitmap_ConvertToImage(*args
, **kwargs
)
372 def GetMask(*args
, **kwargs
):
373 """GetMask() -> Mask"""
374 return _gdi
.Bitmap_GetMask(*args
, **kwargs
)
376 def SetMask(*args
, **kwargs
):
377 """SetMask(Mask mask)"""
378 return _gdi
.Bitmap_SetMask(*args
, **kwargs
)
380 def SetMaskColour(*args
, **kwargs
):
381 """SetMaskColour(Colour colour)"""
382 return _gdi
.Bitmap_SetMaskColour(*args
, **kwargs
)
384 def GetSubBitmap(*args
, **kwargs
):
385 """GetSubBitmap(Rect rect) -> Bitmap"""
386 return _gdi
.Bitmap_GetSubBitmap(*args
, **kwargs
)
388 def SaveFile(*args
, **kwargs
):
389 """SaveFile(wxString name, wxBitmapType type, Palette palette=(wxPalette *) NULL) -> bool"""
390 return _gdi
.Bitmap_SaveFile(*args
, **kwargs
)
392 def LoadFile(*args
, **kwargs
):
393 """LoadFile(wxString name, wxBitmapType type) -> bool"""
394 return _gdi
.Bitmap_LoadFile(*args
, **kwargs
)
396 def CopyFromIcon(*args
, **kwargs
):
397 """CopyFromIcon(Icon icon) -> bool"""
398 return _gdi
.Bitmap_CopyFromIcon(*args
, **kwargs
)
400 def SetHeight(*args
, **kwargs
):
401 """SetHeight(int height)"""
402 return _gdi
.Bitmap_SetHeight(*args
, **kwargs
)
404 def SetWidth(*args
, **kwargs
):
405 """SetWidth(int width)"""
406 return _gdi
.Bitmap_SetWidth(*args
, **kwargs
)
408 def SetDepth(*args
, **kwargs
):
409 """SetDepth(int depth)"""
410 return _gdi
.Bitmap_SetDepth(*args
, **kwargs
)
412 def __nonzero__(self
): return self
.Ok()
414 class BitmapPtr(Bitmap
):
415 def __init__(self
, this
):
417 if not hasattr(self
,"thisown"): self
.thisown
= 0
418 self
.__class
__ = Bitmap
419 _gdi
.Bitmap_swigregister(BitmapPtr
)
421 def EmptyBitmap(*args
, **kwargs
):
422 """EmptyBitmap(int width, int height, int depth=-1) -> Bitmap"""
423 val
= _gdi
.new_EmptyBitmap(*args
, **kwargs
)
427 def BitmapFromIcon(*args
, **kwargs
):
428 """BitmapFromIcon(Icon icon) -> Bitmap"""
429 val
= _gdi
.new_BitmapFromIcon(*args
, **kwargs
)
433 def BitmapFromImage(*args
, **kwargs
):
434 """BitmapFromImage(Image image, int depth=-1) -> Bitmap"""
435 val
= _gdi
.new_BitmapFromImage(*args
, **kwargs
)
439 def BitmapFromXPMData(*args
, **kwargs
):
440 """BitmapFromXPMData(PyObject listOfStrings) -> Bitmap"""
441 val
= _gdi
.new_BitmapFromXPMData(*args
, **kwargs
)
445 def BitmapFromBits(*args
, **kwargs
):
446 """BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap"""
447 val
= _gdi
.new_BitmapFromBits(*args
, **kwargs
)
451 class Mask(core
.Object
):
454 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
455 def __init__(self
, *args
, **kwargs
):
456 """__init__(Bitmap bitmap) -> Mask"""
457 newobj
= _gdi
.new_Mask(*args
, **kwargs
)
458 self
.this
= newobj
.this
463 def __init__(self
, this
):
465 if not hasattr(self
,"thisown"): self
.thisown
= 0
466 self
.__class
__ = Mask
467 _gdi
.Mask_swigregister(MaskPtr
)
469 def MaskColour(*args
, **kwargs
):
470 """MaskColour(Bitmap bitmap, Colour colour) -> Mask"""
471 val
= _gdi
.new_MaskColour(*args
, **kwargs
)
475 class Icon(GDIObject
):
478 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
479 def __init__(self
, *args
, **kwargs
):
480 """__init__(wxString name, long flags, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
481 newobj
= _gdi
.new_Icon(*args
, **kwargs
)
482 self
.this
= newobj
.this
485 def __del__(self
, destroy
=_gdi
.delete_Icon
):
488 if self
.thisown
: destroy(self
)
491 def Ok(*args
, **kwargs
):
493 return _gdi
.Icon_Ok(*args
, **kwargs
)
495 def GetWidth(*args
, **kwargs
):
496 """GetWidth() -> int"""
497 return _gdi
.Icon_GetWidth(*args
, **kwargs
)
499 def GetHeight(*args
, **kwargs
):
500 """GetHeight() -> int"""
501 return _gdi
.Icon_GetHeight(*args
, **kwargs
)
503 def GetDepth(*args
, **kwargs
):
504 """GetDepth() -> int"""
505 return _gdi
.Icon_GetDepth(*args
, **kwargs
)
507 def SetWidth(*args
, **kwargs
):
508 """SetWidth(int w)"""
509 return _gdi
.Icon_SetWidth(*args
, **kwargs
)
511 def SetHeight(*args
, **kwargs
):
512 """SetHeight(int h)"""
513 return _gdi
.Icon_SetHeight(*args
, **kwargs
)
515 def SetDepth(*args
, **kwargs
):
516 """SetDepth(int d)"""
517 return _gdi
.Icon_SetDepth(*args
, **kwargs
)
519 def CopyFromBitmap(*args
, **kwargs
):
520 """CopyFromBitmap(Bitmap bmp)"""
521 return _gdi
.Icon_CopyFromBitmap(*args
, **kwargs
)
523 def __nonzero__(self
): return self
.Ok()
526 def __init__(self
, this
):
528 if not hasattr(self
,"thisown"): self
.thisown
= 0
529 self
.__class
__ = Icon
530 _gdi
.Icon_swigregister(IconPtr
)
532 def EmptyIcon(*args
, **kwargs
):
533 """EmptyIcon() -> Icon"""
534 val
= _gdi
.new_EmptyIcon(*args
, **kwargs
)
538 def IconFromLocation(*args
, **kwargs
):
539 """IconFromLocation(IconLocation loc) -> Icon"""
540 val
= _gdi
.new_IconFromLocation(*args
, **kwargs
)
544 def IconFromBitmap(*args
, **kwargs
):
545 """IconFromBitmap(Bitmap bmp) -> Icon"""
546 val
= _gdi
.new_IconFromBitmap(*args
, **kwargs
)
550 def IconFromXPMData(*args
, **kwargs
):
551 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
552 val
= _gdi
.new_IconFromXPMData(*args
, **kwargs
)
556 class IconLocation(object):
559 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
560 def __init__(self
, *args
, **kwargs
):
561 """__init__(wxString filename=&wxPyEmptyString, int num=0) -> IconLocation"""
562 newobj
= _gdi
.new_IconLocation(*args
, **kwargs
)
563 self
.this
= newobj
.this
566 def __del__(self
, destroy
=_gdi
.delete_IconLocation
):
569 if self
.thisown
: destroy(self
)
572 def IsOk(*args
, **kwargs
):
574 return _gdi
.IconLocation_IsOk(*args
, **kwargs
)
576 def __nonzero__(self
): return self
.Ok()
577 def SetFileName(*args
, **kwargs
):
578 """SetFileName(wxString filename)"""
579 return _gdi
.IconLocation_SetFileName(*args
, **kwargs
)
581 def GetFileName(*args
, **kwargs
):
582 """GetFileName() -> wxString"""
583 return _gdi
.IconLocation_GetFileName(*args
, **kwargs
)
585 def SetIndex(*args
, **kwargs
):
586 """SetIndex(int num)"""
587 return _gdi
.IconLocation_SetIndex(*args
, **kwargs
)
589 def GetIndex(*args
, **kwargs
):
590 """GetIndex() -> int"""
591 return _gdi
.IconLocation_GetIndex(*args
, **kwargs
)
594 class IconLocationPtr(IconLocation
):
595 def __init__(self
, this
):
597 if not hasattr(self
,"thisown"): self
.thisown
= 0
598 self
.__class
__ = IconLocation
599 _gdi
.IconLocation_swigregister(IconLocationPtr
)
601 class IconBundle(object):
604 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
605 def __init__(self
, *args
, **kwargs
):
606 """__init__() -> IconBundle"""
607 newobj
= _gdi
.new_IconBundle(*args
, **kwargs
)
608 self
.this
= newobj
.this
611 def __del__(self
, destroy
=_gdi
.delete_IconBundle
):
614 if self
.thisown
: destroy(self
)
617 def AddIcon(*args
, **kwargs
):
618 """AddIcon(Icon icon)"""
619 return _gdi
.IconBundle_AddIcon(*args
, **kwargs
)
621 def AddIconFromFile(*args
, **kwargs
):
622 """AddIconFromFile(wxString file, long type)"""
623 return _gdi
.IconBundle_AddIconFromFile(*args
, **kwargs
)
625 def GetIcon(*args
, **kwargs
):
626 """GetIcon(Size size) -> Icon"""
627 return _gdi
.IconBundle_GetIcon(*args
, **kwargs
)
630 class IconBundlePtr(IconBundle
):
631 def __init__(self
, this
):
633 if not hasattr(self
,"thisown"): self
.thisown
= 0
634 self
.__class
__ = IconBundle
635 _gdi
.IconBundle_swigregister(IconBundlePtr
)
637 def IconBundleFromFile(*args
, **kwargs
):
638 """IconBundleFromFile(wxString file, long type) -> IconBundle"""
639 val
= _gdi
.new_IconBundleFromFile(*args
, **kwargs
)
643 def IconBundleFromIcon(*args
, **kwargs
):
644 """IconBundleFromIcon(Icon icon) -> IconBundle"""
645 val
= _gdi
.new_IconBundleFromIcon(*args
, **kwargs
)
649 class Cursor(GDIObject
):
652 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
653 def __init__(self
, *args
, **kwargs
):
654 """__init__(wxString cursorName, long flags, int hotSpotX=0, int hotSpotY=0) -> Cursor"""
655 newobj
= _gdi
.new_Cursor(*args
, **kwargs
)
656 self
.this
= newobj
.this
659 def __del__(self
, destroy
=_gdi
.delete_Cursor
):
662 if self
.thisown
: destroy(self
)
665 def Ok(*args
, **kwargs
):
667 return _gdi
.Cursor_Ok(*args
, **kwargs
)
669 def __nonzero__(self
): return self
.Ok()
671 class CursorPtr(Cursor
):
672 def __init__(self
, this
):
674 if not hasattr(self
,"thisown"): self
.thisown
= 0
675 self
.__class
__ = Cursor
676 _gdi
.Cursor_swigregister(CursorPtr
)
678 def StockCursor(*args
, **kwargs
):
679 """StockCursor(int id) -> Cursor"""
680 val
= _gdi
.new_StockCursor(*args
, **kwargs
)
684 def CursorFromImage(*args
, **kwargs
):
685 """CursorFromImage(Image image) -> Cursor"""
686 val
= _gdi
.new_CursorFromImage(*args
, **kwargs
)
690 def CursorFromBits(*args
, **kwargs
):
691 """CursorFromBits(PyObject bits, int width, int height, int hotSpotX=-1,
692 int hotSpotY=-1, PyObject maskBits=0) -> Cursor"""
693 val
= _gdi
.new_CursorFromBits(*args
, **kwargs
)
697 #---------------------------------------------------------------------------
699 OutRegion
= _gdi
.OutRegion
700 PartRegion
= _gdi
.PartRegion
701 InRegion
= _gdi
.InRegion
702 class Region(GDIObject
):
705 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
706 def __init__(self
, *args
, **kwargs
):
707 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
708 newobj
= _gdi
.new_Region(*args
, **kwargs
)
709 self
.this
= newobj
.this
712 def __del__(self
, destroy
=_gdi
.delete_Region
):
715 if self
.thisown
: destroy(self
)
718 def Clear(*args
, **kwargs
):
720 return _gdi
.Region_Clear(*args
, **kwargs
)
722 def Contains(*args
, **kwargs
):
723 """Contains(int x, int y) -> wxRegionContain"""
724 return _gdi
.Region_Contains(*args
, **kwargs
)
726 def ContainsPoint(*args
, **kwargs
):
727 """ContainsPoint(Point pt) -> wxRegionContain"""
728 return _gdi
.Region_ContainsPoint(*args
, **kwargs
)
730 def ContainsRect(*args
, **kwargs
):
731 """ContainsRect(Rect rect) -> wxRegionContain"""
732 return _gdi
.Region_ContainsRect(*args
, **kwargs
)
734 def ContainsRectDim(*args
, **kwargs
):
735 """ContainsRectDim(int x, int y, int w, int h) -> wxRegionContain"""
736 return _gdi
.Region_ContainsRectDim(*args
, **kwargs
)
738 def GetBox(*args
, **kwargs
):
739 """GetBox() -> Rect"""
740 return _gdi
.Region_GetBox(*args
, **kwargs
)
742 def Intersect(*args
, **kwargs
):
743 """Intersect(int x, int y, int width, int height) -> bool"""
744 return _gdi
.Region_Intersect(*args
, **kwargs
)
746 def IntersectRect(*args
, **kwargs
):
747 """IntersectRect(Rect rect) -> bool"""
748 return _gdi
.Region_IntersectRect(*args
, **kwargs
)
750 def IntersectRegion(*args
, **kwargs
):
751 """IntersectRegion(Region region) -> bool"""
752 return _gdi
.Region_IntersectRegion(*args
, **kwargs
)
754 def IsEmpty(*args
, **kwargs
):
755 """IsEmpty() -> bool"""
756 return _gdi
.Region_IsEmpty(*args
, **kwargs
)
758 def Union(*args
, **kwargs
):
759 """Union(int x, int y, int width, int height) -> bool"""
760 return _gdi
.Region_Union(*args
, **kwargs
)
762 def UnionRect(*args
, **kwargs
):
763 """UnionRect(Rect rect) -> bool"""
764 return _gdi
.Region_UnionRect(*args
, **kwargs
)
766 def UnionRegion(*args
, **kwargs
):
767 """UnionRegion(Region region) -> bool"""
768 return _gdi
.Region_UnionRegion(*args
, **kwargs
)
770 def Subtract(*args
, **kwargs
):
771 """Subtract(int x, int y, int width, int height) -> bool"""
772 return _gdi
.Region_Subtract(*args
, **kwargs
)
774 def SubtractRect(*args
, **kwargs
):
775 """SubtractRect(Rect rect) -> bool"""
776 return _gdi
.Region_SubtractRect(*args
, **kwargs
)
778 def SubtractRegion(*args
, **kwargs
):
779 """SubtractRegion(Region region) -> bool"""
780 return _gdi
.Region_SubtractRegion(*args
, **kwargs
)
782 def Xor(*args
, **kwargs
):
783 """Xor(int x, int y, int width, int height) -> bool"""
784 return _gdi
.Region_Xor(*args
, **kwargs
)
786 def XorRect(*args
, **kwargs
):
787 """XorRect(Rect rect) -> bool"""
788 return _gdi
.Region_XorRect(*args
, **kwargs
)
790 def XorRegion(*args
, **kwargs
):
791 """XorRegion(Region region) -> bool"""
792 return _gdi
.Region_XorRegion(*args
, **kwargs
)
794 def ConvertToBitmap(*args
, **kwargs
):
795 """ConvertToBitmap() -> Bitmap"""
796 return _gdi
.Region_ConvertToBitmap(*args
, **kwargs
)
798 def UnionBitmap(*args
, **kwargs
):
799 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
800 return _gdi
.Region_UnionBitmap(*args
, **kwargs
)
803 class RegionPtr(Region
):
804 def __init__(self
, this
):
806 if not hasattr(self
,"thisown"): self
.thisown
= 0
807 self
.__class
__ = Region
808 _gdi
.Region_swigregister(RegionPtr
)
810 def RegionFromBitmap(*args
, **kwargs
):
811 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
812 val
= _gdi
.new_RegionFromBitmap(*args
, **kwargs
)
816 def RegionFromPoints(*args
, **kwargs
):
817 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
818 val
= _gdi
.new_RegionFromPoints(*args
, **kwargs
)
822 class RegionIterator(core
.Object
):
825 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
826 def __init__(self
, *args
, **kwargs
):
827 """__init__(Region region) -> RegionIterator"""
828 newobj
= _gdi
.new_RegionIterator(*args
, **kwargs
)
829 self
.this
= newobj
.this
832 def __del__(self
, destroy
=_gdi
.delete_RegionIterator
):
835 if self
.thisown
: destroy(self
)
838 def GetX(*args
, **kwargs
):
840 return _gdi
.RegionIterator_GetX(*args
, **kwargs
)
842 def GetY(*args
, **kwargs
):
844 return _gdi
.RegionIterator_GetY(*args
, **kwargs
)
846 def GetW(*args
, **kwargs
):
848 return _gdi
.RegionIterator_GetW(*args
, **kwargs
)
850 def GetWidth(*args
, **kwargs
):
851 """GetWidth() -> int"""
852 return _gdi
.RegionIterator_GetWidth(*args
, **kwargs
)
854 def GetH(*args
, **kwargs
):
856 return _gdi
.RegionIterator_GetH(*args
, **kwargs
)
858 def GetHeight(*args
, **kwargs
):
859 """GetHeight() -> int"""
860 return _gdi
.RegionIterator_GetHeight(*args
, **kwargs
)
862 def GetRect(*args
, **kwargs
):
863 """GetRect() -> Rect"""
864 return _gdi
.RegionIterator_GetRect(*args
, **kwargs
)
866 def HaveRects(*args
, **kwargs
):
867 """HaveRects() -> bool"""
868 return _gdi
.RegionIterator_HaveRects(*args
, **kwargs
)
870 def Reset(*args
, **kwargs
):
872 return _gdi
.RegionIterator_Reset(*args
, **kwargs
)
874 def Next(*args
, **kwargs
):
876 return _gdi
.RegionIterator_Next(*args
, **kwargs
)
878 def __nonzero__(*args
, **kwargs
):
879 """__nonzero__() -> bool"""
880 return _gdi
.RegionIterator___nonzero__(*args
, **kwargs
)
883 class RegionIteratorPtr(RegionIterator
):
884 def __init__(self
, this
):
886 if not hasattr(self
,"thisown"): self
.thisown
= 0
887 self
.__class
__ = RegionIterator
888 _gdi
.RegionIterator_swigregister(RegionIteratorPtr
)
890 #---------------------------------------------------------------------------
892 FONTFAMILY_DEFAULT
= _gdi
.FONTFAMILY_DEFAULT
893 FONTFAMILY_DECORATIVE
= _gdi
.FONTFAMILY_DECORATIVE
894 FONTFAMILY_ROMAN
= _gdi
.FONTFAMILY_ROMAN
895 FONTFAMILY_SCRIPT
= _gdi
.FONTFAMILY_SCRIPT
896 FONTFAMILY_SWISS
= _gdi
.FONTFAMILY_SWISS
897 FONTFAMILY_MODERN
= _gdi
.FONTFAMILY_MODERN
898 FONTFAMILY_TELETYPE
= _gdi
.FONTFAMILY_TELETYPE
899 FONTFAMILY_MAX
= _gdi
.FONTFAMILY_MAX
900 FONTFAMILY_UNKNOWN
= _gdi
.FONTFAMILY_UNKNOWN
901 FONTSTYLE_NORMAL
= _gdi
.FONTSTYLE_NORMAL
902 FONTSTYLE_ITALIC
= _gdi
.FONTSTYLE_ITALIC
903 FONTSTYLE_SLANT
= _gdi
.FONTSTYLE_SLANT
904 FONTSTYLE_MAX
= _gdi
.FONTSTYLE_MAX
905 FONTWEIGHT_NORMAL
= _gdi
.FONTWEIGHT_NORMAL
906 FONTWEIGHT_LIGHT
= _gdi
.FONTWEIGHT_LIGHT
907 FONTWEIGHT_BOLD
= _gdi
.FONTWEIGHT_BOLD
908 FONTWEIGHT_MAX
= _gdi
.FONTWEIGHT_MAX
909 FONTFLAG_DEFAULT
= _gdi
.FONTFLAG_DEFAULT
910 FONTFLAG_ITALIC
= _gdi
.FONTFLAG_ITALIC
911 FONTFLAG_SLANT
= _gdi
.FONTFLAG_SLANT
912 FONTFLAG_LIGHT
= _gdi
.FONTFLAG_LIGHT
913 FONTFLAG_BOLD
= _gdi
.FONTFLAG_BOLD
914 FONTFLAG_ANTIALIASED
= _gdi
.FONTFLAG_ANTIALIASED
915 FONTFLAG_NOT_ANTIALIASED
= _gdi
.FONTFLAG_NOT_ANTIALIASED
916 FONTFLAG_UNDERLINED
= _gdi
.FONTFLAG_UNDERLINED
917 FONTFLAG_STRIKETHROUGH
= _gdi
.FONTFLAG_STRIKETHROUGH
918 FONTFLAG_MASK
= _gdi
.FONTFLAG_MASK
919 FONTENCODING_SYSTEM
= _gdi
.FONTENCODING_SYSTEM
920 FONTENCODING_DEFAULT
= _gdi
.FONTENCODING_DEFAULT
921 FONTENCODING_ISO8859_1
= _gdi
.FONTENCODING_ISO8859_1
922 FONTENCODING_ISO8859_2
= _gdi
.FONTENCODING_ISO8859_2
923 FONTENCODING_ISO8859_3
= _gdi
.FONTENCODING_ISO8859_3
924 FONTENCODING_ISO8859_4
= _gdi
.FONTENCODING_ISO8859_4
925 FONTENCODING_ISO8859_5
= _gdi
.FONTENCODING_ISO8859_5
926 FONTENCODING_ISO8859_6
= _gdi
.FONTENCODING_ISO8859_6
927 FONTENCODING_ISO8859_7
= _gdi
.FONTENCODING_ISO8859_7
928 FONTENCODING_ISO8859_8
= _gdi
.FONTENCODING_ISO8859_8
929 FONTENCODING_ISO8859_9
= _gdi
.FONTENCODING_ISO8859_9
930 FONTENCODING_ISO8859_10
= _gdi
.FONTENCODING_ISO8859_10
931 FONTENCODING_ISO8859_11
= _gdi
.FONTENCODING_ISO8859_11
932 FONTENCODING_ISO8859_12
= _gdi
.FONTENCODING_ISO8859_12
933 FONTENCODING_ISO8859_13
= _gdi
.FONTENCODING_ISO8859_13
934 FONTENCODING_ISO8859_14
= _gdi
.FONTENCODING_ISO8859_14
935 FONTENCODING_ISO8859_15
= _gdi
.FONTENCODING_ISO8859_15
936 FONTENCODING_ISO8859_MAX
= _gdi
.FONTENCODING_ISO8859_MAX
937 FONTENCODING_KOI8
= _gdi
.FONTENCODING_KOI8
938 FONTENCODING_ALTERNATIVE
= _gdi
.FONTENCODING_ALTERNATIVE
939 FONTENCODING_BULGARIAN
= _gdi
.FONTENCODING_BULGARIAN
940 FONTENCODING_CP437
= _gdi
.FONTENCODING_CP437
941 FONTENCODING_CP850
= _gdi
.FONTENCODING_CP850
942 FONTENCODING_CP852
= _gdi
.FONTENCODING_CP852
943 FONTENCODING_CP855
= _gdi
.FONTENCODING_CP855
944 FONTENCODING_CP866
= _gdi
.FONTENCODING_CP866
945 FONTENCODING_CP874
= _gdi
.FONTENCODING_CP874
946 FONTENCODING_CP932
= _gdi
.FONTENCODING_CP932
947 FONTENCODING_CP936
= _gdi
.FONTENCODING_CP936
948 FONTENCODING_CP949
= _gdi
.FONTENCODING_CP949
949 FONTENCODING_CP950
= _gdi
.FONTENCODING_CP950
950 FONTENCODING_CP1250
= _gdi
.FONTENCODING_CP1250
951 FONTENCODING_CP1251
= _gdi
.FONTENCODING_CP1251
952 FONTENCODING_CP1252
= _gdi
.FONTENCODING_CP1252
953 FONTENCODING_CP1253
= _gdi
.FONTENCODING_CP1253
954 FONTENCODING_CP1254
= _gdi
.FONTENCODING_CP1254
955 FONTENCODING_CP1255
= _gdi
.FONTENCODING_CP1255
956 FONTENCODING_CP1256
= _gdi
.FONTENCODING_CP1256
957 FONTENCODING_CP1257
= _gdi
.FONTENCODING_CP1257
958 FONTENCODING_CP12_MAX
= _gdi
.FONTENCODING_CP12_MAX
959 FONTENCODING_UTF7
= _gdi
.FONTENCODING_UTF7
960 FONTENCODING_UTF8
= _gdi
.FONTENCODING_UTF8
961 FONTENCODING_EUC_JP
= _gdi
.FONTENCODING_EUC_JP
962 FONTENCODING_UTF16BE
= _gdi
.FONTENCODING_UTF16BE
963 FONTENCODING_UTF16LE
= _gdi
.FONTENCODING_UTF16LE
964 FONTENCODING_UTF32BE
= _gdi
.FONTENCODING_UTF32BE
965 FONTENCODING_UTF32LE
= _gdi
.FONTENCODING_UTF32LE
966 FONTENCODING_MAX
= _gdi
.FONTENCODING_MAX
967 FONTENCODING_UTF16
= _gdi
.FONTENCODING_UTF16
968 FONTENCODING_UTF32
= _gdi
.FONTENCODING_UTF32
969 FONTENCODING_UNICODE
= _gdi
.FONTENCODING_UNICODE
970 FONTENCODING_GB2312
= _gdi
.FONTENCODING_GB2312
971 FONTENCODING_BIG5
= _gdi
.FONTENCODING_BIG5
972 FONTENCODING_SHIFT_JIS
= _gdi
.FONTENCODING_SHIFT_JIS
973 #---------------------------------------------------------------------------
975 class NativeFontInfo(object):
978 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
979 def __init__(self
, *args
, **kwargs
):
980 """__init__() -> NativeFontInfo"""
981 newobj
= _gdi
.new_NativeFontInfo(*args
, **kwargs
)
982 self
.this
= newobj
.this
985 def __del__(self
, destroy
=_gdi
.delete_NativeFontInfo
):
988 if self
.thisown
: destroy(self
)
991 def Init(*args
, **kwargs
):
993 return _gdi
.NativeFontInfo_Init(*args
, **kwargs
)
995 def InitFromFont(*args
, **kwargs
):
996 """InitFromFont(Font font)"""
997 return _gdi
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
999 def GetPointSize(*args
, **kwargs
):
1000 """GetPointSize() -> int"""
1001 return _gdi
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1003 def GetStyle(*args
, **kwargs
):
1004 """GetStyle() -> wxFontStyle"""
1005 return _gdi
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1007 def GetWeight(*args
, **kwargs
):
1008 """GetWeight() -> wxFontWeight"""
1009 return _gdi
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1011 def GetUnderlined(*args
, **kwargs
):
1012 """GetUnderlined() -> bool"""
1013 return _gdi
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1015 def GetFaceName(*args
, **kwargs
):
1016 """GetFaceName() -> wxString"""
1017 return _gdi
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1019 def GetFamily(*args
, **kwargs
):
1020 """GetFamily() -> wxFontFamily"""
1021 return _gdi
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1023 def GetEncoding(*args
, **kwargs
):
1024 """GetEncoding() -> wxFontEncoding"""
1025 return _gdi
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1027 def SetPointSize(*args
, **kwargs
):
1028 """SetPointSize(int pointsize)"""
1029 return _gdi
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1031 def SetStyle(*args
, **kwargs
):
1032 """SetStyle(wxFontStyle style)"""
1033 return _gdi
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1035 def SetWeight(*args
, **kwargs
):
1036 """SetWeight(wxFontWeight weight)"""
1037 return _gdi
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1039 def SetUnderlined(*args
, **kwargs
):
1040 """SetUnderlined(bool underlined)"""
1041 return _gdi
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1043 def SetFaceName(*args
, **kwargs
):
1044 """SetFaceName(wxString facename)"""
1045 return _gdi
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1047 def SetFamily(*args
, **kwargs
):
1048 """SetFamily(wxFontFamily family)"""
1049 return _gdi
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1051 def SetEncoding(*args
, **kwargs
):
1052 """SetEncoding(wxFontEncoding encoding)"""
1053 return _gdi
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1055 def FromString(*args
, **kwargs
):
1056 """FromString(wxString s) -> bool"""
1057 return _gdi
.NativeFontInfo_FromString(*args
, **kwargs
)
1059 def ToString(*args
, **kwargs
):
1060 """ToString() -> wxString"""
1061 return _gdi
.NativeFontInfo_ToString(*args
, **kwargs
)
1063 def __str__(*args
, **kwargs
):
1064 """__str__() -> wxString"""
1065 return _gdi
.NativeFontInfo___str__(*args
, **kwargs
)
1067 def FromUserString(*args
, **kwargs
):
1068 """FromUserString(wxString s) -> bool"""
1069 return _gdi
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1071 def ToUserString(*args
, **kwargs
):
1072 """ToUserString() -> wxString"""
1073 return _gdi
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1076 class NativeFontInfoPtr(NativeFontInfo
):
1077 def __init__(self
, this
):
1079 if not hasattr(self
,"thisown"): self
.thisown
= 0
1080 self
.__class
__ = NativeFontInfo
1081 _gdi
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1083 class NativeEncodingInfo(object):
1086 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1087 facename
= property(_gdi
.NativeEncodingInfo_facename_get
, _gdi
.NativeEncodingInfo_facename_set
)
1088 encoding
= property(_gdi
.NativeEncodingInfo_encoding_get
, _gdi
.NativeEncodingInfo_encoding_set
)
1089 def __init__(self
, *args
, **kwargs
):
1090 """__init__() -> NativeEncodingInfo"""
1091 newobj
= _gdi
.new_NativeEncodingInfo(*args
, **kwargs
)
1092 self
.this
= newobj
.this
1095 def __del__(self
, destroy
=_gdi
.delete_NativeEncodingInfo
):
1098 if self
.thisown
: destroy(self
)
1101 def FromString(*args
, **kwargs
):
1102 """FromString(wxString s) -> bool"""
1103 return _gdi
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1105 def ToString(*args
, **kwargs
):
1106 """ToString() -> wxString"""
1107 return _gdi
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1110 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1111 def __init__(self
, this
):
1113 if not hasattr(self
,"thisown"): self
.thisown
= 0
1114 self
.__class
__ = NativeEncodingInfo
1115 _gdi
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1118 def GetNativeFontEncoding(*args
, **kwargs
):
1119 """GetNativeFontEncoding(wxFontEncoding encoding) -> NativeEncodingInfo"""
1120 return _gdi
.GetNativeFontEncoding(*args
, **kwargs
)
1122 def TestFontEncoding(*args
, **kwargs
):
1123 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1124 return _gdi
.TestFontEncoding(*args
, **kwargs
)
1125 #---------------------------------------------------------------------------
1127 class FontMapper(object):
1130 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1131 def __init__(self
, *args
, **kwargs
):
1132 """__init__() -> FontMapper"""
1133 newobj
= _gdi
.new_FontMapper(*args
, **kwargs
)
1134 self
.this
= newobj
.this
1137 def __del__(self
, destroy
=_gdi
.delete_FontMapper
):
1140 if self
.thisown
: destroy(self
)
1143 def Get(*args
, **kwargs
):
1144 """FontMapper.Get() -> FontMapper"""
1145 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1147 Get
= staticmethod(Get
)
1148 def Set(*args
, **kwargs
):
1149 """FontMapper.Set(FontMapper mapper) -> FontMapper"""
1150 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1152 Set
= staticmethod(Set
)
1153 def CharsetToEncoding(*args
, **kwargs
):
1154 """CharsetToEncoding(wxString charset, bool interactive=True) -> wxFontEncoding"""
1155 return _gdi
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1157 def GetSupportedEncodingsCount(*args
, **kwargs
):
1158 """FontMapper.GetSupportedEncodingsCount() -> size_t"""
1159 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1161 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1162 def GetEncoding(*args
, **kwargs
):
1163 """FontMapper.GetEncoding(size_t n) -> wxFontEncoding"""
1164 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1166 GetEncoding
= staticmethod(GetEncoding
)
1167 def GetEncodingName(*args
, **kwargs
):
1168 """FontMapper.GetEncodingName(wxFontEncoding encoding) -> wxString"""
1169 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1171 GetEncodingName
= staticmethod(GetEncodingName
)
1172 def GetEncodingDescription(*args
, **kwargs
):
1173 """FontMapper.GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1174 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1176 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1177 def SetConfig(*args
, **kwargs
):
1178 """SetConfig(wxConfigBase config)"""
1179 return _gdi
.FontMapper_SetConfig(*args
, **kwargs
)
1181 def SetConfigPath(*args
, **kwargs
):
1182 """SetConfigPath(wxString prefix)"""
1183 return _gdi
.FontMapper_SetConfigPath(*args
, **kwargs
)
1185 def GetDefaultConfigPath(*args
, **kwargs
):
1186 """FontMapper.GetDefaultConfigPath() -> wxString"""
1187 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1189 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1190 def GetAltForEncoding(*args
, **kwargs
):
1191 """GetAltForEncoding(wxFontEncoding encoding, wxString facename=wxPyEmptyString,
1192 bool interactive=True) -> PyObject"""
1193 return _gdi
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1195 def IsEncodingAvailable(*args
, **kwargs
):
1196 """IsEncodingAvailable(wxFontEncoding encoding, wxString facename=wxPyEmptyString) -> bool"""
1197 return _gdi
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1199 def SetDialogParent(*args
, **kwargs
):
1200 """SetDialogParent(Window parent)"""
1201 return _gdi
.FontMapper_SetDialogParent(*args
, **kwargs
)
1203 def SetDialogTitle(*args
, **kwargs
):
1204 """SetDialogTitle(wxString title)"""
1205 return _gdi
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1208 class FontMapperPtr(FontMapper
):
1209 def __init__(self
, this
):
1211 if not hasattr(self
,"thisown"): self
.thisown
= 0
1212 self
.__class
__ = FontMapper
1213 _gdi
.FontMapper_swigregister(FontMapperPtr
)
1215 def FontMapper_Get(*args
, **kwargs
):
1216 """FontMapper_Get() -> FontMapper"""
1217 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1219 def FontMapper_Set(*args
, **kwargs
):
1220 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1221 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1223 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1224 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1225 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1227 def FontMapper_GetEncoding(*args
, **kwargs
):
1228 """FontMapper_GetEncoding(size_t n) -> wxFontEncoding"""
1229 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1231 def FontMapper_GetEncodingName(*args
, **kwargs
):
1232 """FontMapper_GetEncodingName(wxFontEncoding encoding) -> wxString"""
1233 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1235 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1236 """FontMapper_GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1237 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1239 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1240 """FontMapper_GetDefaultConfigPath() -> wxString"""
1241 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1243 #---------------------------------------------------------------------------
1245 class Font(GDIObject
):
1248 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1249 def __init__(self
, *args
, **kwargs
):
1250 """__init__(int pointSize, int family, int style, int weight, bool underline=False,
1251 wxString face=wxPyEmptyString,
1252 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font"""
1253 newobj
= _gdi
.new_Font(*args
, **kwargs
)
1254 self
.this
= newobj
.this
1257 def __del__(self
, destroy
=_gdi
.delete_Font
):
1260 if self
.thisown
: destroy(self
)
1263 def Ok(*args
, **kwargs
):
1265 return _gdi
.Font_Ok(*args
, **kwargs
)
1267 def __nonzero__(self
): return self
.Ok()
1268 def __eq__(*args
, **kwargs
):
1269 """__eq__(Font font) -> bool"""
1270 return _gdi
.Font___eq__(*args
, **kwargs
)
1272 def __ne__(*args
, **kwargs
):
1273 """__ne__(Font font) -> bool"""
1274 return _gdi
.Font___ne__(*args
, **kwargs
)
1276 def GetPointSize(*args
, **kwargs
):
1277 """GetPointSize() -> int"""
1278 return _gdi
.Font_GetPointSize(*args
, **kwargs
)
1280 def GetFamily(*args
, **kwargs
):
1281 """GetFamily() -> int"""
1282 return _gdi
.Font_GetFamily(*args
, **kwargs
)
1284 def GetStyle(*args
, **kwargs
):
1285 """GetStyle() -> int"""
1286 return _gdi
.Font_GetStyle(*args
, **kwargs
)
1288 def GetWeight(*args
, **kwargs
):
1289 """GetWeight() -> int"""
1290 return _gdi
.Font_GetWeight(*args
, **kwargs
)
1292 def GetUnderlined(*args
, **kwargs
):
1293 """GetUnderlined() -> bool"""
1294 return _gdi
.Font_GetUnderlined(*args
, **kwargs
)
1296 def GetFaceName(*args
, **kwargs
):
1297 """GetFaceName() -> wxString"""
1298 return _gdi
.Font_GetFaceName(*args
, **kwargs
)
1300 def GetEncoding(*args
, **kwargs
):
1301 """GetEncoding() -> wxFontEncoding"""
1302 return _gdi
.Font_GetEncoding(*args
, **kwargs
)
1304 def GetNativeFontInfo(*args
, **kwargs
):
1305 """GetNativeFontInfo() -> NativeFontInfo"""
1306 return _gdi
.Font_GetNativeFontInfo(*args
, **kwargs
)
1308 def IsFixedWidth(*args
, **kwargs
):
1309 """IsFixedWidth() -> bool"""
1310 return _gdi
.Font_IsFixedWidth(*args
, **kwargs
)
1312 def GetNativeFontInfoDesc(*args
, **kwargs
):
1313 """GetNativeFontInfoDesc() -> wxString"""
1314 return _gdi
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1316 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1317 """GetNativeFontInfoUserDesc() -> wxString"""
1318 return _gdi
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1320 def SetPointSize(*args
, **kwargs
):
1321 """SetPointSize(int pointSize)"""
1322 return _gdi
.Font_SetPointSize(*args
, **kwargs
)
1324 def SetFamily(*args
, **kwargs
):
1325 """SetFamily(int family)"""
1326 return _gdi
.Font_SetFamily(*args
, **kwargs
)
1328 def SetStyle(*args
, **kwargs
):
1329 """SetStyle(int style)"""
1330 return _gdi
.Font_SetStyle(*args
, **kwargs
)
1332 def SetWeight(*args
, **kwargs
):
1333 """SetWeight(int weight)"""
1334 return _gdi
.Font_SetWeight(*args
, **kwargs
)
1336 def SetFaceName(*args
, **kwargs
):
1337 """SetFaceName(wxString faceName)"""
1338 return _gdi
.Font_SetFaceName(*args
, **kwargs
)
1340 def SetUnderlined(*args
, **kwargs
):
1341 """SetUnderlined(bool underlined)"""
1342 return _gdi
.Font_SetUnderlined(*args
, **kwargs
)
1344 def SetEncoding(*args
, **kwargs
):
1345 """SetEncoding(wxFontEncoding encoding)"""
1346 return _gdi
.Font_SetEncoding(*args
, **kwargs
)
1348 def SetNativeFontInfo(*args
, **kwargs
):
1349 """SetNativeFontInfo(NativeFontInfo info)"""
1350 return _gdi
.Font_SetNativeFontInfo(*args
, **kwargs
)
1352 def SetNativeFontInfoFromString(*args
, **kwargs
):
1353 """SetNativeFontInfoFromString(wxString info)"""
1354 return _gdi
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1356 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1357 """SetNativeFontInfoUserDesc(wxString info)"""
1358 return _gdi
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1360 def GetFamilyString(*args
, **kwargs
):
1361 """GetFamilyString() -> wxString"""
1362 return _gdi
.Font_GetFamilyString(*args
, **kwargs
)
1364 def GetStyleString(*args
, **kwargs
):
1365 """GetStyleString() -> wxString"""
1366 return _gdi
.Font_GetStyleString(*args
, **kwargs
)
1368 def GetWeightString(*args
, **kwargs
):
1369 """GetWeightString() -> wxString"""
1370 return _gdi
.Font_GetWeightString(*args
, **kwargs
)
1372 def SetNoAntiAliasing(*args
, **kwargs
):
1373 """SetNoAntiAliasing(bool no=True)"""
1374 return _gdi
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1376 def GetNoAntiAliasing(*args
, **kwargs
):
1377 """GetNoAntiAliasing() -> bool"""
1378 return _gdi
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1380 def GetDefaultEncoding(*args
, **kwargs
):
1381 """Font.GetDefaultEncoding() -> wxFontEncoding"""
1382 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1384 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1385 def SetDefaultEncoding(*args
, **kwargs
):
1386 """Font.SetDefaultEncoding(wxFontEncoding encoding)"""
1387 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1389 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1391 class FontPtr(Font
):
1392 def __init__(self
, this
):
1394 if not hasattr(self
,"thisown"): self
.thisown
= 0
1395 self
.__class
__ = Font
1396 _gdi
.Font_swigregister(FontPtr
)
1398 def FontFromNativeInfo(*args
, **kwargs
):
1399 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1400 val
= _gdi
.new_FontFromNativeInfo(*args
, **kwargs
)
1404 def FontFromNativeInfoString(*args
, **kwargs
):
1405 """FontFromNativeInfoString(wxString info) -> Font"""
1406 val
= _gdi
.new_FontFromNativeInfoString(*args
, **kwargs
)
1410 def Font2(*args
, **kwargs
):
1411 """Font2(int pointSize, wxFontFamily family, int flags=FONTFLAG_DEFAULT,
1412 wxString face=wxPyEmptyString, wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font"""
1413 val
= _gdi
.new_Font2(*args
, **kwargs
)
1417 def Font_GetDefaultEncoding(*args
, **kwargs
):
1418 """Font_GetDefaultEncoding() -> wxFontEncoding"""
1419 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1421 def Font_SetDefaultEncoding(*args
, **kwargs
):
1422 """Font_SetDefaultEncoding(wxFontEncoding encoding)"""
1423 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1425 #---------------------------------------------------------------------------
1427 class FontEnumerator(object):
1430 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1431 def __init__(self
, *args
, **kwargs
):
1432 """__init__() -> FontEnumerator"""
1433 newobj
= _gdi
.new_FontEnumerator(*args
, **kwargs
)
1434 self
.this
= newobj
.this
1437 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1439 def __del__(self
, destroy
=_gdi
.delete_FontEnumerator
):
1442 if self
.thisown
: destroy(self
)
1445 def _setCallbackInfo(*args
, **kwargs
):
1446 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1447 return _gdi
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1449 def EnumerateFacenames(*args
, **kwargs
):
1450 """EnumerateFacenames(wxFontEncoding encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1451 return _gdi
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1453 def EnumerateEncodings(*args
, **kwargs
):
1454 """EnumerateEncodings(wxString facename=wxPyEmptyString) -> bool"""
1455 return _gdi
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1457 def GetEncodings(*args
, **kwargs
):
1458 """GetEncodings() -> PyObject"""
1459 return _gdi
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1461 def GetFacenames(*args
, **kwargs
):
1462 """GetFacenames() -> PyObject"""
1463 return _gdi
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1466 class FontEnumeratorPtr(FontEnumerator
):
1467 def __init__(self
, this
):
1469 if not hasattr(self
,"thisown"): self
.thisown
= 0
1470 self
.__class
__ = FontEnumerator
1471 _gdi
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1473 #---------------------------------------------------------------------------
1475 LANGUAGE_DEFAULT
= _gdi
.LANGUAGE_DEFAULT
1476 LANGUAGE_UNKNOWN
= _gdi
.LANGUAGE_UNKNOWN
1477 LANGUAGE_ABKHAZIAN
= _gdi
.LANGUAGE_ABKHAZIAN
1478 LANGUAGE_AFAR
= _gdi
.LANGUAGE_AFAR
1479 LANGUAGE_AFRIKAANS
= _gdi
.LANGUAGE_AFRIKAANS
1480 LANGUAGE_ALBANIAN
= _gdi
.LANGUAGE_ALBANIAN
1481 LANGUAGE_AMHARIC
= _gdi
.LANGUAGE_AMHARIC
1482 LANGUAGE_ARABIC
= _gdi
.LANGUAGE_ARABIC
1483 LANGUAGE_ARABIC_ALGERIA
= _gdi
.LANGUAGE_ARABIC_ALGERIA
1484 LANGUAGE_ARABIC_BAHRAIN
= _gdi
.LANGUAGE_ARABIC_BAHRAIN
1485 LANGUAGE_ARABIC_EGYPT
= _gdi
.LANGUAGE_ARABIC_EGYPT
1486 LANGUAGE_ARABIC_IRAQ
= _gdi
.LANGUAGE_ARABIC_IRAQ
1487 LANGUAGE_ARABIC_JORDAN
= _gdi
.LANGUAGE_ARABIC_JORDAN
1488 LANGUAGE_ARABIC_KUWAIT
= _gdi
.LANGUAGE_ARABIC_KUWAIT
1489 LANGUAGE_ARABIC_LEBANON
= _gdi
.LANGUAGE_ARABIC_LEBANON
1490 LANGUAGE_ARABIC_LIBYA
= _gdi
.LANGUAGE_ARABIC_LIBYA
1491 LANGUAGE_ARABIC_MOROCCO
= _gdi
.LANGUAGE_ARABIC_MOROCCO
1492 LANGUAGE_ARABIC_OMAN
= _gdi
.LANGUAGE_ARABIC_OMAN
1493 LANGUAGE_ARABIC_QATAR
= _gdi
.LANGUAGE_ARABIC_QATAR
1494 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi
.LANGUAGE_ARABIC_SAUDI_ARABIA
1495 LANGUAGE_ARABIC_SUDAN
= _gdi
.LANGUAGE_ARABIC_SUDAN
1496 LANGUAGE_ARABIC_SYRIA
= _gdi
.LANGUAGE_ARABIC_SYRIA
1497 LANGUAGE_ARABIC_TUNISIA
= _gdi
.LANGUAGE_ARABIC_TUNISIA
1498 LANGUAGE_ARABIC_UAE
= _gdi
.LANGUAGE_ARABIC_UAE
1499 LANGUAGE_ARABIC_YEMEN
= _gdi
.LANGUAGE_ARABIC_YEMEN
1500 LANGUAGE_ARMENIAN
= _gdi
.LANGUAGE_ARMENIAN
1501 LANGUAGE_ASSAMESE
= _gdi
.LANGUAGE_ASSAMESE
1502 LANGUAGE_AYMARA
= _gdi
.LANGUAGE_AYMARA
1503 LANGUAGE_AZERI
= _gdi
.LANGUAGE_AZERI
1504 LANGUAGE_AZERI_CYRILLIC
= _gdi
.LANGUAGE_AZERI_CYRILLIC
1505 LANGUAGE_AZERI_LATIN
= _gdi
.LANGUAGE_AZERI_LATIN
1506 LANGUAGE_BASHKIR
= _gdi
.LANGUAGE_BASHKIR
1507 LANGUAGE_BASQUE
= _gdi
.LANGUAGE_BASQUE
1508 LANGUAGE_BELARUSIAN
= _gdi
.LANGUAGE_BELARUSIAN
1509 LANGUAGE_BENGALI
= _gdi
.LANGUAGE_BENGALI
1510 LANGUAGE_BHUTANI
= _gdi
.LANGUAGE_BHUTANI
1511 LANGUAGE_BIHARI
= _gdi
.LANGUAGE_BIHARI
1512 LANGUAGE_BISLAMA
= _gdi
.LANGUAGE_BISLAMA
1513 LANGUAGE_BRETON
= _gdi
.LANGUAGE_BRETON
1514 LANGUAGE_BULGARIAN
= _gdi
.LANGUAGE_BULGARIAN
1515 LANGUAGE_BURMESE
= _gdi
.LANGUAGE_BURMESE
1516 LANGUAGE_CAMBODIAN
= _gdi
.LANGUAGE_CAMBODIAN
1517 LANGUAGE_CATALAN
= _gdi
.LANGUAGE_CATALAN
1518 LANGUAGE_CHINESE
= _gdi
.LANGUAGE_CHINESE
1519 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi
.LANGUAGE_CHINESE_SIMPLIFIED
1520 LANGUAGE_CHINESE_TRADITIONAL
= _gdi
.LANGUAGE_CHINESE_TRADITIONAL
1521 LANGUAGE_CHINESE_HONGKONG
= _gdi
.LANGUAGE_CHINESE_HONGKONG
1522 LANGUAGE_CHINESE_MACAU
= _gdi
.LANGUAGE_CHINESE_MACAU
1523 LANGUAGE_CHINESE_SINGAPORE
= _gdi
.LANGUAGE_CHINESE_SINGAPORE
1524 LANGUAGE_CHINESE_TAIWAN
= _gdi
.LANGUAGE_CHINESE_TAIWAN
1525 LANGUAGE_CORSICAN
= _gdi
.LANGUAGE_CORSICAN
1526 LANGUAGE_CROATIAN
= _gdi
.LANGUAGE_CROATIAN
1527 LANGUAGE_CZECH
= _gdi
.LANGUAGE_CZECH
1528 LANGUAGE_DANISH
= _gdi
.LANGUAGE_DANISH
1529 LANGUAGE_DUTCH
= _gdi
.LANGUAGE_DUTCH
1530 LANGUAGE_DUTCH_BELGIAN
= _gdi
.LANGUAGE_DUTCH_BELGIAN
1531 LANGUAGE_ENGLISH
= _gdi
.LANGUAGE_ENGLISH
1532 LANGUAGE_ENGLISH_UK
= _gdi
.LANGUAGE_ENGLISH_UK
1533 LANGUAGE_ENGLISH_US
= _gdi
.LANGUAGE_ENGLISH_US
1534 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi
.LANGUAGE_ENGLISH_AUSTRALIA
1535 LANGUAGE_ENGLISH_BELIZE
= _gdi
.LANGUAGE_ENGLISH_BELIZE
1536 LANGUAGE_ENGLISH_BOTSWANA
= _gdi
.LANGUAGE_ENGLISH_BOTSWANA
1537 LANGUAGE_ENGLISH_CANADA
= _gdi
.LANGUAGE_ENGLISH_CANADA
1538 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi
.LANGUAGE_ENGLISH_CARIBBEAN
1539 LANGUAGE_ENGLISH_DENMARK
= _gdi
.LANGUAGE_ENGLISH_DENMARK
1540 LANGUAGE_ENGLISH_EIRE
= _gdi
.LANGUAGE_ENGLISH_EIRE
1541 LANGUAGE_ENGLISH_JAMAICA
= _gdi
.LANGUAGE_ENGLISH_JAMAICA
1542 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi
.LANGUAGE_ENGLISH_NEW_ZEALAND
1543 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi
.LANGUAGE_ENGLISH_PHILIPPINES
1544 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1545 LANGUAGE_ENGLISH_TRINIDAD
= _gdi
.LANGUAGE_ENGLISH_TRINIDAD
1546 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi
.LANGUAGE_ENGLISH_ZIMBABWE
1547 LANGUAGE_ESPERANTO
= _gdi
.LANGUAGE_ESPERANTO
1548 LANGUAGE_ESTONIAN
= _gdi
.LANGUAGE_ESTONIAN
1549 LANGUAGE_FAEROESE
= _gdi
.LANGUAGE_FAEROESE
1550 LANGUAGE_FARSI
= _gdi
.LANGUAGE_FARSI
1551 LANGUAGE_FIJI
= _gdi
.LANGUAGE_FIJI
1552 LANGUAGE_FINNISH
= _gdi
.LANGUAGE_FINNISH
1553 LANGUAGE_FRENCH
= _gdi
.LANGUAGE_FRENCH
1554 LANGUAGE_FRENCH_BELGIAN
= _gdi
.LANGUAGE_FRENCH_BELGIAN
1555 LANGUAGE_FRENCH_CANADIAN
= _gdi
.LANGUAGE_FRENCH_CANADIAN
1556 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi
.LANGUAGE_FRENCH_LUXEMBOURG
1557 LANGUAGE_FRENCH_MONACO
= _gdi
.LANGUAGE_FRENCH_MONACO
1558 LANGUAGE_FRENCH_SWISS
= _gdi
.LANGUAGE_FRENCH_SWISS
1559 LANGUAGE_FRISIAN
= _gdi
.LANGUAGE_FRISIAN
1560 LANGUAGE_GALICIAN
= _gdi
.LANGUAGE_GALICIAN
1561 LANGUAGE_GEORGIAN
= _gdi
.LANGUAGE_GEORGIAN
1562 LANGUAGE_GERMAN
= _gdi
.LANGUAGE_GERMAN
1563 LANGUAGE_GERMAN_AUSTRIAN
= _gdi
.LANGUAGE_GERMAN_AUSTRIAN
1564 LANGUAGE_GERMAN_BELGIUM
= _gdi
.LANGUAGE_GERMAN_BELGIUM
1565 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi
.LANGUAGE_GERMAN_LIECHTENSTEIN
1566 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi
.LANGUAGE_GERMAN_LUXEMBOURG
1567 LANGUAGE_GERMAN_SWISS
= _gdi
.LANGUAGE_GERMAN_SWISS
1568 LANGUAGE_GREEK
= _gdi
.LANGUAGE_GREEK
1569 LANGUAGE_GREENLANDIC
= _gdi
.LANGUAGE_GREENLANDIC
1570 LANGUAGE_GUARANI
= _gdi
.LANGUAGE_GUARANI
1571 LANGUAGE_GUJARATI
= _gdi
.LANGUAGE_GUJARATI
1572 LANGUAGE_HAUSA
= _gdi
.LANGUAGE_HAUSA
1573 LANGUAGE_HEBREW
= _gdi
.LANGUAGE_HEBREW
1574 LANGUAGE_HINDI
= _gdi
.LANGUAGE_HINDI
1575 LANGUAGE_HUNGARIAN
= _gdi
.LANGUAGE_HUNGARIAN
1576 LANGUAGE_ICELANDIC
= _gdi
.LANGUAGE_ICELANDIC
1577 LANGUAGE_INDONESIAN
= _gdi
.LANGUAGE_INDONESIAN
1578 LANGUAGE_INTERLINGUA
= _gdi
.LANGUAGE_INTERLINGUA
1579 LANGUAGE_INTERLINGUE
= _gdi
.LANGUAGE_INTERLINGUE
1580 LANGUAGE_INUKTITUT
= _gdi
.LANGUAGE_INUKTITUT
1581 LANGUAGE_INUPIAK
= _gdi
.LANGUAGE_INUPIAK
1582 LANGUAGE_IRISH
= _gdi
.LANGUAGE_IRISH
1583 LANGUAGE_ITALIAN
= _gdi
.LANGUAGE_ITALIAN
1584 LANGUAGE_ITALIAN_SWISS
= _gdi
.LANGUAGE_ITALIAN_SWISS
1585 LANGUAGE_JAPANESE
= _gdi
.LANGUAGE_JAPANESE
1586 LANGUAGE_JAVANESE
= _gdi
.LANGUAGE_JAVANESE
1587 LANGUAGE_KANNADA
= _gdi
.LANGUAGE_KANNADA
1588 LANGUAGE_KASHMIRI
= _gdi
.LANGUAGE_KASHMIRI
1589 LANGUAGE_KASHMIRI_INDIA
= _gdi
.LANGUAGE_KASHMIRI_INDIA
1590 LANGUAGE_KAZAKH
= _gdi
.LANGUAGE_KAZAKH
1591 LANGUAGE_KERNEWEK
= _gdi
.LANGUAGE_KERNEWEK
1592 LANGUAGE_KINYARWANDA
= _gdi
.LANGUAGE_KINYARWANDA
1593 LANGUAGE_KIRGHIZ
= _gdi
.LANGUAGE_KIRGHIZ
1594 LANGUAGE_KIRUNDI
= _gdi
.LANGUAGE_KIRUNDI
1595 LANGUAGE_KONKANI
= _gdi
.LANGUAGE_KONKANI
1596 LANGUAGE_KOREAN
= _gdi
.LANGUAGE_KOREAN
1597 LANGUAGE_KURDISH
= _gdi
.LANGUAGE_KURDISH
1598 LANGUAGE_LAOTHIAN
= _gdi
.LANGUAGE_LAOTHIAN
1599 LANGUAGE_LATIN
= _gdi
.LANGUAGE_LATIN
1600 LANGUAGE_LATVIAN
= _gdi
.LANGUAGE_LATVIAN
1601 LANGUAGE_LINGALA
= _gdi
.LANGUAGE_LINGALA
1602 LANGUAGE_LITHUANIAN
= _gdi
.LANGUAGE_LITHUANIAN
1603 LANGUAGE_MACEDONIAN
= _gdi
.LANGUAGE_MACEDONIAN
1604 LANGUAGE_MALAGASY
= _gdi
.LANGUAGE_MALAGASY
1605 LANGUAGE_MALAY
= _gdi
.LANGUAGE_MALAY
1606 LANGUAGE_MALAYALAM
= _gdi
.LANGUAGE_MALAYALAM
1607 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1608 LANGUAGE_MALAY_MALAYSIA
= _gdi
.LANGUAGE_MALAY_MALAYSIA
1609 LANGUAGE_MALTESE
= _gdi
.LANGUAGE_MALTESE
1610 LANGUAGE_MANIPURI
= _gdi
.LANGUAGE_MANIPURI
1611 LANGUAGE_MAORI
= _gdi
.LANGUAGE_MAORI
1612 LANGUAGE_MARATHI
= _gdi
.LANGUAGE_MARATHI
1613 LANGUAGE_MOLDAVIAN
= _gdi
.LANGUAGE_MOLDAVIAN
1614 LANGUAGE_MONGOLIAN
= _gdi
.LANGUAGE_MONGOLIAN
1615 LANGUAGE_NAURU
= _gdi
.LANGUAGE_NAURU
1616 LANGUAGE_NEPALI
= _gdi
.LANGUAGE_NEPALI
1617 LANGUAGE_NEPALI_INDIA
= _gdi
.LANGUAGE_NEPALI_INDIA
1618 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi
.LANGUAGE_NORWEGIAN_BOKMAL
1619 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi
.LANGUAGE_NORWEGIAN_NYNORSK
1620 LANGUAGE_OCCITAN
= _gdi
.LANGUAGE_OCCITAN
1621 LANGUAGE_ORIYA
= _gdi
.LANGUAGE_ORIYA
1622 LANGUAGE_OROMO
= _gdi
.LANGUAGE_OROMO
1623 LANGUAGE_PASHTO
= _gdi
.LANGUAGE_PASHTO
1624 LANGUAGE_POLISH
= _gdi
.LANGUAGE_POLISH
1625 LANGUAGE_PORTUGUESE
= _gdi
.LANGUAGE_PORTUGUESE
1626 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi
.LANGUAGE_PORTUGUESE_BRAZILIAN
1627 LANGUAGE_PUNJABI
= _gdi
.LANGUAGE_PUNJABI
1628 LANGUAGE_QUECHUA
= _gdi
.LANGUAGE_QUECHUA
1629 LANGUAGE_RHAETO_ROMANCE
= _gdi
.LANGUAGE_RHAETO_ROMANCE
1630 LANGUAGE_ROMANIAN
= _gdi
.LANGUAGE_ROMANIAN
1631 LANGUAGE_RUSSIAN
= _gdi
.LANGUAGE_RUSSIAN
1632 LANGUAGE_RUSSIAN_UKRAINE
= _gdi
.LANGUAGE_RUSSIAN_UKRAINE
1633 LANGUAGE_SAMOAN
= _gdi
.LANGUAGE_SAMOAN
1634 LANGUAGE_SANGHO
= _gdi
.LANGUAGE_SANGHO
1635 LANGUAGE_SANSKRIT
= _gdi
.LANGUAGE_SANSKRIT
1636 LANGUAGE_SCOTS_GAELIC
= _gdi
.LANGUAGE_SCOTS_GAELIC
1637 LANGUAGE_SERBIAN
= _gdi
.LANGUAGE_SERBIAN
1638 LANGUAGE_SERBIAN_CYRILLIC
= _gdi
.LANGUAGE_SERBIAN_CYRILLIC
1639 LANGUAGE_SERBIAN_LATIN
= _gdi
.LANGUAGE_SERBIAN_LATIN
1640 LANGUAGE_SERBO_CROATIAN
= _gdi
.LANGUAGE_SERBO_CROATIAN
1641 LANGUAGE_SESOTHO
= _gdi
.LANGUAGE_SESOTHO
1642 LANGUAGE_SETSWANA
= _gdi
.LANGUAGE_SETSWANA
1643 LANGUAGE_SHONA
= _gdi
.LANGUAGE_SHONA
1644 LANGUAGE_SINDHI
= _gdi
.LANGUAGE_SINDHI
1645 LANGUAGE_SINHALESE
= _gdi
.LANGUAGE_SINHALESE
1646 LANGUAGE_SISWATI
= _gdi
.LANGUAGE_SISWATI
1647 LANGUAGE_SLOVAK
= _gdi
.LANGUAGE_SLOVAK
1648 LANGUAGE_SLOVENIAN
= _gdi
.LANGUAGE_SLOVENIAN
1649 LANGUAGE_SOMALI
= _gdi
.LANGUAGE_SOMALI
1650 LANGUAGE_SPANISH
= _gdi
.LANGUAGE_SPANISH
1651 LANGUAGE_SPANISH_ARGENTINA
= _gdi
.LANGUAGE_SPANISH_ARGENTINA
1652 LANGUAGE_SPANISH_BOLIVIA
= _gdi
.LANGUAGE_SPANISH_BOLIVIA
1653 LANGUAGE_SPANISH_CHILE
= _gdi
.LANGUAGE_SPANISH_CHILE
1654 LANGUAGE_SPANISH_COLOMBIA
= _gdi
.LANGUAGE_SPANISH_COLOMBIA
1655 LANGUAGE_SPANISH_COSTA_RICA
= _gdi
.LANGUAGE_SPANISH_COSTA_RICA
1656 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
1657 LANGUAGE_SPANISH_ECUADOR
= _gdi
.LANGUAGE_SPANISH_ECUADOR
1658 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi
.LANGUAGE_SPANISH_EL_SALVADOR
1659 LANGUAGE_SPANISH_GUATEMALA
= _gdi
.LANGUAGE_SPANISH_GUATEMALA
1660 LANGUAGE_SPANISH_HONDURAS
= _gdi
.LANGUAGE_SPANISH_HONDURAS
1661 LANGUAGE_SPANISH_MEXICAN
= _gdi
.LANGUAGE_SPANISH_MEXICAN
1662 LANGUAGE_SPANISH_MODERN
= _gdi
.LANGUAGE_SPANISH_MODERN
1663 LANGUAGE_SPANISH_NICARAGUA
= _gdi
.LANGUAGE_SPANISH_NICARAGUA
1664 LANGUAGE_SPANISH_PANAMA
= _gdi
.LANGUAGE_SPANISH_PANAMA
1665 LANGUAGE_SPANISH_PARAGUAY
= _gdi
.LANGUAGE_SPANISH_PARAGUAY
1666 LANGUAGE_SPANISH_PERU
= _gdi
.LANGUAGE_SPANISH_PERU
1667 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi
.LANGUAGE_SPANISH_PUERTO_RICO
1668 LANGUAGE_SPANISH_URUGUAY
= _gdi
.LANGUAGE_SPANISH_URUGUAY
1669 LANGUAGE_SPANISH_US
= _gdi
.LANGUAGE_SPANISH_US
1670 LANGUAGE_SPANISH_VENEZUELA
= _gdi
.LANGUAGE_SPANISH_VENEZUELA
1671 LANGUAGE_SUNDANESE
= _gdi
.LANGUAGE_SUNDANESE
1672 LANGUAGE_SWAHILI
= _gdi
.LANGUAGE_SWAHILI
1673 LANGUAGE_SWEDISH
= _gdi
.LANGUAGE_SWEDISH
1674 LANGUAGE_SWEDISH_FINLAND
= _gdi
.LANGUAGE_SWEDISH_FINLAND
1675 LANGUAGE_TAGALOG
= _gdi
.LANGUAGE_TAGALOG
1676 LANGUAGE_TAJIK
= _gdi
.LANGUAGE_TAJIK
1677 LANGUAGE_TAMIL
= _gdi
.LANGUAGE_TAMIL
1678 LANGUAGE_TATAR
= _gdi
.LANGUAGE_TATAR
1679 LANGUAGE_TELUGU
= _gdi
.LANGUAGE_TELUGU
1680 LANGUAGE_THAI
= _gdi
.LANGUAGE_THAI
1681 LANGUAGE_TIBETAN
= _gdi
.LANGUAGE_TIBETAN
1682 LANGUAGE_TIGRINYA
= _gdi
.LANGUAGE_TIGRINYA
1683 LANGUAGE_TONGA
= _gdi
.LANGUAGE_TONGA
1684 LANGUAGE_TSONGA
= _gdi
.LANGUAGE_TSONGA
1685 LANGUAGE_TURKISH
= _gdi
.LANGUAGE_TURKISH
1686 LANGUAGE_TURKMEN
= _gdi
.LANGUAGE_TURKMEN
1687 LANGUAGE_TWI
= _gdi
.LANGUAGE_TWI
1688 LANGUAGE_UIGHUR
= _gdi
.LANGUAGE_UIGHUR
1689 LANGUAGE_UKRAINIAN
= _gdi
.LANGUAGE_UKRAINIAN
1690 LANGUAGE_URDU
= _gdi
.LANGUAGE_URDU
1691 LANGUAGE_URDU_INDIA
= _gdi
.LANGUAGE_URDU_INDIA
1692 LANGUAGE_URDU_PAKISTAN
= _gdi
.LANGUAGE_URDU_PAKISTAN
1693 LANGUAGE_UZBEK
= _gdi
.LANGUAGE_UZBEK
1694 LANGUAGE_UZBEK_CYRILLIC
= _gdi
.LANGUAGE_UZBEK_CYRILLIC
1695 LANGUAGE_UZBEK_LATIN
= _gdi
.LANGUAGE_UZBEK_LATIN
1696 LANGUAGE_VIETNAMESE
= _gdi
.LANGUAGE_VIETNAMESE
1697 LANGUAGE_VOLAPUK
= _gdi
.LANGUAGE_VOLAPUK
1698 LANGUAGE_WELSH
= _gdi
.LANGUAGE_WELSH
1699 LANGUAGE_WOLOF
= _gdi
.LANGUAGE_WOLOF
1700 LANGUAGE_XHOSA
= _gdi
.LANGUAGE_XHOSA
1701 LANGUAGE_YIDDISH
= _gdi
.LANGUAGE_YIDDISH
1702 LANGUAGE_YORUBA
= _gdi
.LANGUAGE_YORUBA
1703 LANGUAGE_ZHUANG
= _gdi
.LANGUAGE_ZHUANG
1704 LANGUAGE_ZULU
= _gdi
.LANGUAGE_ZULU
1705 LANGUAGE_USER_DEFINED
= _gdi
.LANGUAGE_USER_DEFINED
1706 class LanguageInfo(object):
1708 def __init__(self
): raise RuntimeError, "No constructor defined"
1710 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1711 Language
= property(_gdi
.LanguageInfo_Language_get
, _gdi
.LanguageInfo_Language_set
)
1712 CanonicalName
= property(_gdi
.LanguageInfo_CanonicalName_get
, _gdi
.LanguageInfo_CanonicalName_set
)
1713 Description
= property(_gdi
.LanguageInfo_Description_get
, _gdi
.LanguageInfo_Description_set
)
1715 class LanguageInfoPtr(LanguageInfo
):
1716 def __init__(self
, this
):
1718 if not hasattr(self
,"thisown"): self
.thisown
= 0
1719 self
.__class
__ = LanguageInfo
1720 _gdi
.LanguageInfo_swigregister(LanguageInfoPtr
)
1722 LOCALE_CAT_NUMBER
= _gdi
.LOCALE_CAT_NUMBER
1723 LOCALE_CAT_DATE
= _gdi
.LOCALE_CAT_DATE
1724 LOCALE_CAT_MONEY
= _gdi
.LOCALE_CAT_MONEY
1725 LOCALE_CAT_MAX
= _gdi
.LOCALE_CAT_MAX
1726 LOCALE_THOUSANDS_SEP
= _gdi
.LOCALE_THOUSANDS_SEP
1727 LOCALE_DECIMAL_POINT
= _gdi
.LOCALE_DECIMAL_POINT
1728 LOCALE_LOAD_DEFAULT
= _gdi
.LOCALE_LOAD_DEFAULT
1729 LOCALE_CONV_ENCODING
= _gdi
.LOCALE_CONV_ENCODING
1730 class Locale(object):
1733 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1734 def __init__(self
, *args
, **kwargs
):
1735 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
1736 newobj
= _gdi
.new_Locale(*args
, **kwargs
)
1737 self
.this
= newobj
.this
1740 def __del__(self
, destroy
=_gdi
.delete_Locale
):
1743 if self
.thisown
: destroy(self
)
1746 def Init1(*args
, **kwargs
):
1747 """Init1(wxString szName, wxString szShort=wxPyEmptyString,
1748 wxString szLocale=wxPyEmptyString, bool bLoadDefault=True,
1749 bool bConvertEncoding=False) -> bool"""
1750 return _gdi
.Locale_Init1(*args
, **kwargs
)
1752 def Init2(*args
, **kwargs
):
1753 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
1754 return _gdi
.Locale_Init2(*args
, **kwargs
)
1756 def Init(self
, *_args
, **_kwargs
):
1757 if type(_args
[0]) in [type(''), type(u
'')]:
1758 val
= self
.Init1(*_args
, **_kwargs
)
1760 val
= self
.Init2(*_args
, **_kwargs
)
1763 def GetSystemLanguage(*args
, **kwargs
):
1764 """Locale.GetSystemLanguage() -> int"""
1765 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1767 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
1768 def GetSystemEncoding(*args
, **kwargs
):
1769 """Locale.GetSystemEncoding() -> wxFontEncoding"""
1770 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1772 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
1773 def GetSystemEncodingName(*args
, **kwargs
):
1774 """Locale.GetSystemEncodingName() -> wxString"""
1775 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1777 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
1778 def IsOk(*args
, **kwargs
):
1779 """IsOk() -> bool"""
1780 return _gdi
.Locale_IsOk(*args
, **kwargs
)
1782 def __nonzero__(self
): return self
.IsOk()
1783 def GetLocale(*args
, **kwargs
):
1784 """GetLocale() -> wxString"""
1785 return _gdi
.Locale_GetLocale(*args
, **kwargs
)
1787 def GetLanguage(*args
, **kwargs
):
1788 """GetLanguage() -> int"""
1789 return _gdi
.Locale_GetLanguage(*args
, **kwargs
)
1791 def GetSysName(*args
, **kwargs
):
1792 """GetSysName() -> wxString"""
1793 return _gdi
.Locale_GetSysName(*args
, **kwargs
)
1795 def GetCanonicalName(*args
, **kwargs
):
1796 """GetCanonicalName() -> wxString"""
1797 return _gdi
.Locale_GetCanonicalName(*args
, **kwargs
)
1799 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
1800 """Locale.AddCatalogLookupPathPrefix(wxString prefix)"""
1801 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1803 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
1804 def AddCatalog(*args
, **kwargs
):
1805 """AddCatalog(wxString szDomain) -> bool"""
1806 return _gdi
.Locale_AddCatalog(*args
, **kwargs
)
1808 def IsLoaded(*args
, **kwargs
):
1809 """IsLoaded(wxString szDomain) -> bool"""
1810 return _gdi
.Locale_IsLoaded(*args
, **kwargs
)
1812 def GetLanguageInfo(*args
, **kwargs
):
1813 """Locale.GetLanguageInfo(int lang) -> LanguageInfo"""
1814 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1816 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
1817 def GetLanguageName(*args
, **kwargs
):
1818 """Locale.GetLanguageName(int lang) -> wxString"""
1819 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1821 GetLanguageName
= staticmethod(GetLanguageName
)
1822 def FindLanguageInfo(*args
, **kwargs
):
1823 """Locale.FindLanguageInfo(wxString locale) -> LanguageInfo"""
1824 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1826 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
1827 def AddLanguage(*args
, **kwargs
):
1828 """Locale.AddLanguage(LanguageInfo info)"""
1829 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1831 AddLanguage
= staticmethod(AddLanguage
)
1832 def GetString(*args
, **kwargs
):
1833 """GetString(wxString szOrigString, wxString szDomain=wxPyEmptyString) -> wxString"""
1834 return _gdi
.Locale_GetString(*args
, **kwargs
)
1836 def GetName(*args
, **kwargs
):
1837 """GetName() -> wxString"""
1838 return _gdi
.Locale_GetName(*args
, **kwargs
)
1841 class LocalePtr(Locale
):
1842 def __init__(self
, this
):
1844 if not hasattr(self
,"thisown"): self
.thisown
= 0
1845 self
.__class
__ = Locale
1846 _gdi
.Locale_swigregister(LocalePtr
)
1848 def Locale_GetSystemLanguage(*args
, **kwargs
):
1849 """Locale_GetSystemLanguage() -> int"""
1850 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1852 def Locale_GetSystemEncoding(*args
, **kwargs
):
1853 """Locale_GetSystemEncoding() -> wxFontEncoding"""
1854 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1856 def Locale_GetSystemEncodingName(*args
, **kwargs
):
1857 """Locale_GetSystemEncodingName() -> wxString"""
1858 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1860 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
1861 """Locale_AddCatalogLookupPathPrefix(wxString prefix)"""
1862 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1864 def Locale_GetLanguageInfo(*args
, **kwargs
):
1865 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
1866 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1868 def Locale_GetLanguageName(*args
, **kwargs
):
1869 """Locale_GetLanguageName(int lang) -> wxString"""
1870 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1872 def Locale_FindLanguageInfo(*args
, **kwargs
):
1873 """Locale_FindLanguageInfo(wxString locale) -> LanguageInfo"""
1874 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1876 def Locale_AddLanguage(*args
, **kwargs
):
1877 """Locale_AddLanguage(LanguageInfo info)"""
1878 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1881 def GetLocale(*args
, **kwargs
):
1882 """GetLocale() -> Locale"""
1883 return _gdi
.GetLocale(*args
, **kwargs
)
1884 #---------------------------------------------------------------------------
1886 CONVERT_STRICT
= _gdi
.CONVERT_STRICT
1887 CONVERT_SUBSTITUTE
= _gdi
.CONVERT_SUBSTITUTE
1888 PLATFORM_CURRENT
= _gdi
.PLATFORM_CURRENT
1889 PLATFORM_UNIX
= _gdi
.PLATFORM_UNIX
1890 PLATFORM_WINDOWS
= _gdi
.PLATFORM_WINDOWS
1891 PLATFORM_OS2
= _gdi
.PLATFORM_OS2
1892 PLATFORM_MAC
= _gdi
.PLATFORM_MAC
1893 class EncodingConverter(core
.Object
):
1896 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1897 def __init__(self
, *args
, **kwargs
):
1898 """__init__() -> EncodingConverter"""
1899 newobj
= _gdi
.new_EncodingConverter(*args
, **kwargs
)
1900 self
.this
= newobj
.this
1903 def __del__(self
, destroy
=_gdi
.delete_EncodingConverter
):
1906 if self
.thisown
: destroy(self
)
1909 def Init(*args
, **kwargs
):
1910 """Init(wxFontEncoding input_enc, wxFontEncoding output_enc,
1911 int method=CONVERT_STRICT) -> bool"""
1912 return _gdi
.EncodingConverter_Init(*args
, **kwargs
)
1914 def Convert(*args
, **kwargs
):
1915 """Convert(wxString input) -> wxString"""
1916 return _gdi
.EncodingConverter_Convert(*args
, **kwargs
)
1918 def GetPlatformEquivalents(*args
, **kwargs
):
1919 """EncodingConverter.GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
1920 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
1922 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
1923 def GetAllEquivalents(*args
, **kwargs
):
1924 """EncodingConverter.GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
1925 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
1927 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
1928 def CanConvert(*args
, **kwargs
):
1929 """EncodingConverter.CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
1930 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
1932 CanConvert
= staticmethod(CanConvert
)
1933 def __nonzero__(self
): return self
.IsOk()
1935 class EncodingConverterPtr(EncodingConverter
):
1936 def __init__(self
, this
):
1938 if not hasattr(self
,"thisown"): self
.thisown
= 0
1939 self
.__class
__ = EncodingConverter
1940 _gdi
.EncodingConverter_swigregister(EncodingConverterPtr
)
1942 def GetTranslation(*args
):
1943 """GetTranslation(wxString sz) -> wxString
1944 GetTranslation(wxString sz1, wxString sz2, size_t n) -> wxString"""
1945 return _gdi
.GetTranslation(*args
)
1947 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
1948 """EncodingConverter_GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
1949 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
1951 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
1952 """EncodingConverter_GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
1953 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
1955 def EncodingConverter_CanConvert(*args
, **kwargs
):
1956 """EncodingConverter_CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
1957 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
1959 #----------------------------------------------------------------------------
1960 # wxGTK sets the locale when initialized. Doing this at the Python
1961 # level should set it up to match what GTK is doing at the C level.
1962 if wx
.Platform
== "__WXGTK__":
1965 locale
.setlocale(locale
.LC_ALL
, "")
1969 # On MSW add the directory where the wxWindows catalogs were installed
1970 # to the default catalog path.
1971 if wx
.Platform
== "__WXMSW__":
1973 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
1974 Locale_AddCatalogLookupPathPrefix(localedir
)
1977 #----------------------------------------------------------------------------
1979 #---------------------------------------------------------------------------
1981 class DC(core
.Object
):
1983 def __init__(self
): raise RuntimeError, "No constructor defined"
1985 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1986 def __del__(self
, destroy
=_gdi
.delete_DC
):
1989 if self
.thisown
: destroy(self
)
1992 def BeginDrawing(*args
, **kwargs
):
1993 """BeginDrawing()"""
1994 return _gdi
.DC_BeginDrawing(*args
, **kwargs
)
1996 def EndDrawing(*args
, **kwargs
):
1998 return _gdi
.DC_EndDrawing(*args
, **kwargs
)
2000 def FloodFillXY(*args
, **kwargs
):
2001 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2002 return _gdi
.DC_FloodFillXY(*args
, **kwargs
)
2004 def FloodFill(*args
, **kwargs
):
2005 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2006 return _gdi
.DC_FloodFill(*args
, **kwargs
)
2008 def GetPixelXY(*args
, **kwargs
):
2009 """GetPixelXY(int x, int y) -> Colour"""
2010 return _gdi
.DC_GetPixelXY(*args
, **kwargs
)
2012 def GetPixel(*args
, **kwargs
):
2013 """GetPixel(Point pt) -> Colour"""
2014 return _gdi
.DC_GetPixel(*args
, **kwargs
)
2016 def DrawLineXY(*args
, **kwargs
):
2017 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2018 return _gdi
.DC_DrawLineXY(*args
, **kwargs
)
2020 def DrawLine(*args
, **kwargs
):
2021 """DrawLine(Point pt1, Point pt2)"""
2022 return _gdi
.DC_DrawLine(*args
, **kwargs
)
2024 def CrossHairXY(*args
, **kwargs
):
2025 """CrossHairXY(int x, int y)"""
2026 return _gdi
.DC_CrossHairXY(*args
, **kwargs
)
2028 def CrossHair(*args
, **kwargs
):
2029 """CrossHair(Point pt)"""
2030 return _gdi
.DC_CrossHair(*args
, **kwargs
)
2032 def DrawArcXY(*args
, **kwargs
):
2033 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2034 return _gdi
.DC_DrawArcXY(*args
, **kwargs
)
2036 def DrawArc(*args
, **kwargs
):
2037 """DrawArc(Point pt1, Point pt2, Point centre)"""
2038 return _gdi
.DC_DrawArc(*args
, **kwargs
)
2040 def DrawCheckMarkXY(*args
, **kwargs
):
2041 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2042 return _gdi
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2044 def DrawCheckMark(*args
, **kwargs
):
2045 """DrawCheckMark(Rect rect)"""
2046 return _gdi
.DC_DrawCheckMark(*args
, **kwargs
)
2048 def DrawEllipticArcXY(*args
, **kwargs
):
2049 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2050 return _gdi
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2052 def DrawEllipticArc(*args
, **kwargs
):
2053 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2054 return _gdi
.DC_DrawEllipticArc(*args
, **kwargs
)
2056 def DrawPointXY(*args
, **kwargs
):
2057 """DrawPointXY(int x, int y)"""
2058 return _gdi
.DC_DrawPointXY(*args
, **kwargs
)
2060 def DrawPoint(*args
, **kwargs
):
2061 """DrawPoint(Point pt)"""
2062 return _gdi
.DC_DrawPoint(*args
, **kwargs
)
2064 def DrawRectangleXY(*args
, **kwargs
):
2065 """DrawRectangleXY(int x, int y, int width, int height)"""
2066 return _gdi
.DC_DrawRectangleXY(*args
, **kwargs
)
2068 def DrawRectangle(*args
, **kwargs
):
2069 """DrawRectangle(Point pt, Size sz)"""
2070 return _gdi
.DC_DrawRectangle(*args
, **kwargs
)
2072 def DrawRectangleRect(*args
, **kwargs
):
2073 """DrawRectangleRect(Rect rect)"""
2074 return _gdi
.DC_DrawRectangleRect(*args
, **kwargs
)
2076 def DrawRoundedRectangleXY(*args
, **kwargs
):
2077 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2078 return _gdi
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2080 def DrawRoundedRectangle(*args
, **kwargs
):
2081 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2082 return _gdi
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2084 def DrawRoundedRectangleRect(*args
, **kwargs
):
2085 """DrawRoundedRectangleRect(Rect r, double radius)"""
2086 return _gdi
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2088 def DrawCircleXY(*args
, **kwargs
):
2089 """DrawCircleXY(int x, int y, int radius)"""
2090 return _gdi
.DC_DrawCircleXY(*args
, **kwargs
)
2092 def DrawCircle(*args
, **kwargs
):
2093 """DrawCircle(Point pt, int radius)"""
2094 return _gdi
.DC_DrawCircle(*args
, **kwargs
)
2096 def DrawEllipseXY(*args
, **kwargs
):
2097 """DrawEllipseXY(int x, int y, int width, int height)"""
2098 return _gdi
.DC_DrawEllipseXY(*args
, **kwargs
)
2100 def DrawEllipse(*args
, **kwargs
):
2101 """DrawEllipse(Point pt, Size sz)"""
2102 return _gdi
.DC_DrawEllipse(*args
, **kwargs
)
2104 def DrawEllipseRect(*args
, **kwargs
):
2105 """DrawEllipseRect(Rect rect)"""
2106 return _gdi
.DC_DrawEllipseRect(*args
, **kwargs
)
2108 def DrawIconXY(*args
, **kwargs
):
2109 """DrawIconXY(Icon icon, int x, int y)"""
2110 return _gdi
.DC_DrawIconXY(*args
, **kwargs
)
2112 def DrawIcon(*args
, **kwargs
):
2113 """DrawIcon(Icon icon, Point pt)"""
2114 return _gdi
.DC_DrawIcon(*args
, **kwargs
)
2116 def DrawBitmapXY(*args
, **kwargs
):
2117 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2118 return _gdi
.DC_DrawBitmapXY(*args
, **kwargs
)
2120 def DrawBitmap(*args
, **kwargs
):
2121 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2122 return _gdi
.DC_DrawBitmap(*args
, **kwargs
)
2124 def DrawTextXY(*args
, **kwargs
):
2125 """DrawTextXY(wxString text, int x, int y)"""
2126 return _gdi
.DC_DrawTextXY(*args
, **kwargs
)
2128 def DrawText(*args
, **kwargs
):
2129 """DrawText(wxString text, Point pt)"""
2130 return _gdi
.DC_DrawText(*args
, **kwargs
)
2132 def DrawRotatedTextXY(*args
, **kwargs
):
2133 """DrawRotatedTextXY(wxString text, int x, int y, double angle)"""
2134 return _gdi
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2136 def DrawRotatedText(*args
, **kwargs
):
2137 """DrawRotatedText(wxString text, Point pt, double angle)"""
2138 return _gdi
.DC_DrawRotatedText(*args
, **kwargs
)
2140 def BlitXY(*args
, **kwargs
):
2141 """BlitXY(int xdest, int ydest, int width, int height, DC source,
2142 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2143 int xsrcMask=-1, int ysrcMask=-1) -> bool"""
2144 return _gdi
.DC_BlitXY(*args
, **kwargs
)
2146 def Blit(*args
, **kwargs
):
2147 """Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2148 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool"""
2149 return _gdi
.DC_Blit(*args
, **kwargs
)
2151 def DrawLines(*args
, **kwargs
):
2152 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2153 return _gdi
.DC_DrawLines(*args
, **kwargs
)
2155 def DrawPolygon(*args
, **kwargs
):
2156 """DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2157 int fillStyle=ODDEVEN_RULE)"""
2158 return _gdi
.DC_DrawPolygon(*args
, **kwargs
)
2160 def DrawLabel(*args
, **kwargs
):
2161 """DrawLabel(wxString text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2162 int indexAccel=-1)"""
2163 return _gdi
.DC_DrawLabel(*args
, **kwargs
)
2165 def DrawImageLabel(*args
, **kwargs
):
2166 """DrawImageLabel(wxString text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2167 int indexAccel=-1) -> Rect"""
2168 return _gdi
.DC_DrawImageLabel(*args
, **kwargs
)
2170 def DrawSpline(*args
, **kwargs
):
2171 """DrawSpline(int points, Point points_array)"""
2172 return _gdi
.DC_DrawSpline(*args
, **kwargs
)
2174 def Clear(*args
, **kwargs
):
2176 return _gdi
.DC_Clear(*args
, **kwargs
)
2178 def StartDoc(*args
, **kwargs
):
2179 """StartDoc(wxString message) -> bool"""
2180 return _gdi
.DC_StartDoc(*args
, **kwargs
)
2182 def EndDoc(*args
, **kwargs
):
2184 return _gdi
.DC_EndDoc(*args
, **kwargs
)
2186 def StartPage(*args
, **kwargs
):
2188 return _gdi
.DC_StartPage(*args
, **kwargs
)
2190 def EndPage(*args
, **kwargs
):
2192 return _gdi
.DC_EndPage(*args
, **kwargs
)
2194 def SetFont(*args
, **kwargs
):
2195 """SetFont(Font font)"""
2196 return _gdi
.DC_SetFont(*args
, **kwargs
)
2198 def SetPen(*args
, **kwargs
):
2199 """SetPen(Pen pen)"""
2200 return _gdi
.DC_SetPen(*args
, **kwargs
)
2202 def SetBrush(*args
, **kwargs
):
2203 """SetBrush(Brush brush)"""
2204 return _gdi
.DC_SetBrush(*args
, **kwargs
)
2206 def SetBackground(*args
, **kwargs
):
2207 """SetBackground(Brush brush)"""
2208 return _gdi
.DC_SetBackground(*args
, **kwargs
)
2210 def SetBackgroundMode(*args
, **kwargs
):
2211 """SetBackgroundMode(int mode)"""
2212 return _gdi
.DC_SetBackgroundMode(*args
, **kwargs
)
2214 def SetPalette(*args
, **kwargs
):
2215 """SetPalette(Palette palette)"""
2216 return _gdi
.DC_SetPalette(*args
, **kwargs
)
2218 def SetClippingRegion(*args
, **kwargs
):
2219 """SetClippingRegion(int x, int y, int width, int height)"""
2220 return _gdi
.DC_SetClippingRegion(*args
, **kwargs
)
2222 def SetClippingRect(*args
, **kwargs
):
2223 """SetClippingRect(Rect rect)"""
2224 return _gdi
.DC_SetClippingRect(*args
, **kwargs
)
2226 def SetClippingRegionAsRegion(*args
, **kwargs
):
2227 """SetClippingRegionAsRegion(Region region)"""
2228 return _gdi
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2230 def DestroyClippingRegion(*args
, **kwargs
):
2231 """DestroyClippingRegion()"""
2232 return _gdi
.DC_DestroyClippingRegion(*args
, **kwargs
)
2234 def GetClippingBox(*args
, **kwargs
):
2235 """GetClippingBox() -> (x, y, width, height)"""
2236 return _gdi
.DC_GetClippingBox(*args
, **kwargs
)
2238 def GetClippingRect(*args
, **kwargs
):
2239 """GetClippingRect() -> Rect"""
2240 return _gdi
.DC_GetClippingRect(*args
, **kwargs
)
2242 def GetCharHeight(*args
, **kwargs
):
2243 """GetCharHeight() -> int"""
2244 return _gdi
.DC_GetCharHeight(*args
, **kwargs
)
2246 def GetCharWidth(*args
, **kwargs
):
2247 """GetCharWidth() -> int"""
2248 return _gdi
.DC_GetCharWidth(*args
, **kwargs
)
2250 def GetTextExtent(*args
, **kwargs
):
2251 """GetTextExtent(wxString string) -> (width, height)
2253 Get the width and height of the text using the current font.
2254 Only works for single line strings."""
2255 return _gdi
.DC_GetTextExtent(*args
, **kwargs
)
2257 def GetFullTextExtent(*args
, **kwargs
):
2258 """GetFullTextExtent(wxString string, Font font=None) ->
2259 (width, height, descent, externalLeading)
2261 Get the width, height, decent and leading of the text using the current or specified font.
2262 Only works for single line strings."""
2263 return _gdi
.DC_GetFullTextExtent(*args
, **kwargs
)
2265 def GetMultiLineTextExtent(*args
, **kwargs
):
2266 """GetMultiLineTextExtent(wxString string, Font font=None) ->
2267 (width, height, descent, externalLeading)
2269 Get the width, height, decent and leading of the text using the current or specified font.
2270 Works for single as well as multi-line strings."""
2271 return _gdi
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2273 def GetSize(*args
, **kwargs
):
2274 """GetSize() -> Size
2276 Get the DC size in device units."""
2277 return _gdi
.DC_GetSize(*args
, **kwargs
)
2279 def GetSizeTuple(*args
, **kwargs
):
2280 """GetSizeTuple() -> (width, height)
2282 Get the DC size in device units."""
2283 return _gdi
.DC_GetSizeTuple(*args
, **kwargs
)
2285 def GetSizeMM(*args
, **kwargs
):
2286 """GetSizeMM() -> Size
2288 Get the DC size in milimeters."""
2289 return _gdi
.DC_GetSizeMM(*args
, **kwargs
)
2291 def GetSizeMMTuple(*args
, **kwargs
):
2292 """GetSizeMMTuple() -> (width, height)
2294 Get the DC size in milimeters."""
2295 return _gdi
.DC_GetSizeMMTuple(*args
, **kwargs
)
2297 def DeviceToLogicalX(*args
, **kwargs
):
2298 """DeviceToLogicalX(int x) -> int"""
2299 return _gdi
.DC_DeviceToLogicalX(*args
, **kwargs
)
2301 def DeviceToLogicalY(*args
, **kwargs
):
2302 """DeviceToLogicalY(int y) -> int"""
2303 return _gdi
.DC_DeviceToLogicalY(*args
, **kwargs
)
2305 def DeviceToLogicalXRel(*args
, **kwargs
):
2306 """DeviceToLogicalXRel(int x) -> int"""
2307 return _gdi
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2309 def DeviceToLogicalYRel(*args
, **kwargs
):
2310 """DeviceToLogicalYRel(int y) -> int"""
2311 return _gdi
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2313 def LogicalToDeviceX(*args
, **kwargs
):
2314 """LogicalToDeviceX(int x) -> int"""
2315 return _gdi
.DC_LogicalToDeviceX(*args
, **kwargs
)
2317 def LogicalToDeviceY(*args
, **kwargs
):
2318 """LogicalToDeviceY(int y) -> int"""
2319 return _gdi
.DC_LogicalToDeviceY(*args
, **kwargs
)
2321 def LogicalToDeviceXRel(*args
, **kwargs
):
2322 """LogicalToDeviceXRel(int x) -> int"""
2323 return _gdi
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2325 def LogicalToDeviceYRel(*args
, **kwargs
):
2326 """LogicalToDeviceYRel(int y) -> int"""
2327 return _gdi
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2329 def CanDrawBitmap(*args
, **kwargs
):
2330 """CanDrawBitmap() -> bool"""
2331 return _gdi
.DC_CanDrawBitmap(*args
, **kwargs
)
2333 def CanGetTextExtent(*args
, **kwargs
):
2334 """CanGetTextExtent() -> bool"""
2335 return _gdi
.DC_CanGetTextExtent(*args
, **kwargs
)
2337 def GetDepth(*args
, **kwargs
):
2338 """GetDepth() -> int"""
2339 return _gdi
.DC_GetDepth(*args
, **kwargs
)
2341 def GetPPI(*args
, **kwargs
):
2342 """GetPPI() -> Size"""
2343 return _gdi
.DC_GetPPI(*args
, **kwargs
)
2345 def Ok(*args
, **kwargs
):
2347 return _gdi
.DC_Ok(*args
, **kwargs
)
2349 def GetBackgroundMode(*args
, **kwargs
):
2350 """GetBackgroundMode() -> int"""
2351 return _gdi
.DC_GetBackgroundMode(*args
, **kwargs
)
2353 def GetBackground(*args
, **kwargs
):
2354 """GetBackground() -> Brush"""
2355 return _gdi
.DC_GetBackground(*args
, **kwargs
)
2357 def GetBrush(*args
, **kwargs
):
2358 """GetBrush() -> Brush"""
2359 return _gdi
.DC_GetBrush(*args
, **kwargs
)
2361 def GetFont(*args
, **kwargs
):
2362 """GetFont() -> Font"""
2363 return _gdi
.DC_GetFont(*args
, **kwargs
)
2365 def GetPen(*args
, **kwargs
):
2366 """GetPen() -> Pen"""
2367 return _gdi
.DC_GetPen(*args
, **kwargs
)
2369 def GetTextBackground(*args
, **kwargs
):
2370 """GetTextBackground() -> Colour"""
2371 return _gdi
.DC_GetTextBackground(*args
, **kwargs
)
2373 def GetTextForeground(*args
, **kwargs
):
2374 """GetTextForeground() -> Colour"""
2375 return _gdi
.DC_GetTextForeground(*args
, **kwargs
)
2377 def SetTextForeground(*args
, **kwargs
):
2378 """SetTextForeground(Colour colour)"""
2379 return _gdi
.DC_SetTextForeground(*args
, **kwargs
)
2381 def SetTextBackground(*args
, **kwargs
):
2382 """SetTextBackground(Colour colour)"""
2383 return _gdi
.DC_SetTextBackground(*args
, **kwargs
)
2385 def GetMapMode(*args
, **kwargs
):
2386 """GetMapMode() -> int"""
2387 return _gdi
.DC_GetMapMode(*args
, **kwargs
)
2389 def SetMapMode(*args
, **kwargs
):
2390 """SetMapMode(int mode)"""
2391 return _gdi
.DC_SetMapMode(*args
, **kwargs
)
2393 def GetUserScale(*args
, **kwargs
):
2394 """GetUserScale() -> (xScale, yScale)"""
2395 return _gdi
.DC_GetUserScale(*args
, **kwargs
)
2397 def SetUserScale(*args
, **kwargs
):
2398 """SetUserScale(double x, double y)"""
2399 return _gdi
.DC_SetUserScale(*args
, **kwargs
)
2401 def GetLogicalScale(*args
, **kwargs
):
2402 """GetLogicalScale() -> (xScale, yScale)"""
2403 return _gdi
.DC_GetLogicalScale(*args
, **kwargs
)
2405 def SetLogicalScale(*args
, **kwargs
):
2406 """SetLogicalScale(double x, double y)"""
2407 return _gdi
.DC_SetLogicalScale(*args
, **kwargs
)
2409 def GetLogicalOrigin(*args
, **kwargs
):
2410 """GetLogicalOrigin() -> Point"""
2411 return _gdi
.DC_GetLogicalOrigin(*args
, **kwargs
)
2413 def GetLogicalOriginTuple(*args
, **kwargs
):
2414 """GetLogicalOriginTuple() -> (x,y)"""
2415 return _gdi
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2417 def SetLogicalOrigin(*args
, **kwargs
):
2418 """SetLogicalOrigin(int x, int y)"""
2419 return _gdi
.DC_SetLogicalOrigin(*args
, **kwargs
)
2421 def GetDeviceOrigin(*args
, **kwargs
):
2422 """GetDeviceOrigin() -> Point"""
2423 return _gdi
.DC_GetDeviceOrigin(*args
, **kwargs
)
2425 def GetDeviceOriginTuple(*args
, **kwargs
):
2426 """GetDeviceOriginTuple() -> (x,y)"""
2427 return _gdi
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2429 def SetDeviceOrigin(*args
, **kwargs
):
2430 """SetDeviceOrigin(int x, int y)"""
2431 return _gdi
.DC_SetDeviceOrigin(*args
, **kwargs
)
2433 def SetAxisOrientation(*args
, **kwargs
):
2434 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2435 return _gdi
.DC_SetAxisOrientation(*args
, **kwargs
)
2437 def GetLogicalFunction(*args
, **kwargs
):
2438 """GetLogicalFunction() -> int"""
2439 return _gdi
.DC_GetLogicalFunction(*args
, **kwargs
)
2441 def SetLogicalFunction(*args
, **kwargs
):
2442 """SetLogicalFunction(int function)"""
2443 return _gdi
.DC_SetLogicalFunction(*args
, **kwargs
)
2445 def SetOptimization(*args
, **kwargs
):
2446 """SetOptimization(bool opt)"""
2447 return _gdi
.DC_SetOptimization(*args
, **kwargs
)
2449 def GetOptimization(*args
, **kwargs
):
2450 """GetOptimization() -> bool"""
2451 return _gdi
.DC_GetOptimization(*args
, **kwargs
)
2453 def CalcBoundingBox(*args
, **kwargs
):
2454 """CalcBoundingBox(int x, int y)"""
2455 return _gdi
.DC_CalcBoundingBox(*args
, **kwargs
)
2457 def ResetBoundingBox(*args
, **kwargs
):
2458 """ResetBoundingBox()"""
2459 return _gdi
.DC_ResetBoundingBox(*args
, **kwargs
)
2461 def MinX(*args
, **kwargs
):
2463 return _gdi
.DC_MinX(*args
, **kwargs
)
2465 def MaxX(*args
, **kwargs
):
2467 return _gdi
.DC_MaxX(*args
, **kwargs
)
2469 def MinY(*args
, **kwargs
):
2471 return _gdi
.DC_MinY(*args
, **kwargs
)
2473 def MaxY(*args
, **kwargs
):
2475 return _gdi
.DC_MaxY(*args
, **kwargs
)
2477 def GetBoundingBox(*args
, **kwargs
):
2478 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2479 return _gdi
.DC_GetBoundingBox(*args
, **kwargs
)
2481 def __nonzero__(self
): return self
.Ok()
2482 def _DrawPointList(*args
, **kwargs
):
2483 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2484 return _gdi
.DC__DrawPointList(*args
, **kwargs
)
2486 def _DrawLineList(*args
, **kwargs
):
2487 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2488 return _gdi
.DC__DrawLineList(*args
, **kwargs
)
2490 def _DrawRectangleList(*args
, **kwargs
):
2491 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2492 return _gdi
.DC__DrawRectangleList(*args
, **kwargs
)
2494 def _DrawEllipseList(*args
, **kwargs
):
2495 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2496 return _gdi
.DC__DrawEllipseList(*args
, **kwargs
)
2498 def _DrawPolygonList(*args
, **kwargs
):
2499 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2500 return _gdi
.DC__DrawPolygonList(*args
, **kwargs
)
2502 def _DrawTextList(*args
, **kwargs
):
2503 """_DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2504 PyObject backgroundList) -> PyObject"""
2505 return _gdi
.DC__DrawTextList(*args
, **kwargs
)
2507 def DrawPointList(self
, points
, pens
=None):
2510 elif isinstance(pens
, wx
.Pen
):
2512 elif len(pens
) != len(points
):
2513 raise ValueError('points and pens must have same length')
2514 return self
._DrawPointList
(points
, pens
, [])
2517 def DrawLineList(self
, lines
, pens
=None):
2520 elif isinstance(pens
, wx
.Pen
):
2522 elif len(pens
) != len(lines
):
2523 raise ValueError('lines and pens must have same length')
2524 return self
._DrawLineList
(lines
, pens
, [])
2527 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2530 elif isinstance(pens
, wx
.Pen
):
2532 elif len(pens
) != len(rectangles
):
2533 raise ValueError('rectangles and pens must have same length')
2536 elif isinstance(brushes
, wx
.Brush
):
2538 elif len(brushes
) != len(rectangles
):
2539 raise ValueError('rectangles and brushes must have same length')
2540 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2543 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2546 elif isinstance(pens
, wx
.Pen
):
2548 elif len(pens
) != len(ellipses
):
2549 raise ValueError('ellipses and pens must have same length')
2552 elif isinstance(brushes
, wx
.Brush
):
2554 elif len(brushes
) != len(ellipses
):
2555 raise ValueError('ellipses and brushes must have same length')
2556 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2559 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2564 elif isinstance(pens
, wx
.Pen
):
2566 elif len(pens
) != len(polygons
):
2567 raise ValueError('polygons and pens must have same length')
2570 elif isinstance(brushes
, wx
.Brush
):
2572 elif len(brushes
) != len(polygons
):
2573 raise ValueError('polygons and brushes must have same length')
2574 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2577 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2581 if type(textList
) == type(''):
2582 textList
= [textList
]
2583 elif len(textList
) != len(coords
):
2584 raise ValueError('textlist and coords must have same length')
2585 if foregrounds
is None:
2587 elif isinstance(foregrounds
, wxColour
):
2588 foregrounds
= [foregrounds
]
2589 elif len(foregrounds
) != len(coords
):
2590 raise ValueError('foregrounds and coords must have same length')
2591 if backgrounds
is None:
2593 elif isinstance(backgrounds
, wxColour
):
2594 backgrounds
= [backgrounds
]
2595 elif len(backgrounds
) != len(coords
):
2596 raise ValueError('backgrounds and coords must have same length')
2597 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2601 def __init__(self
, this
):
2603 if not hasattr(self
,"thisown"): self
.thisown
= 0
2605 _gdi
.DC_swigregister(DCPtr
)
2607 #---------------------------------------------------------------------------
2612 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2613 def __init__(self
, *args
, **kwargs
):
2614 """__init__() -> MemoryDC"""
2615 newobj
= _gdi
.new_MemoryDC(*args
, **kwargs
)
2616 self
.this
= newobj
.this
2619 def SelectObject(*args
, **kwargs
):
2620 """SelectObject(Bitmap bitmap)"""
2621 return _gdi
.MemoryDC_SelectObject(*args
, **kwargs
)
2624 class MemoryDCPtr(MemoryDC
):
2625 def __init__(self
, this
):
2627 if not hasattr(self
,"thisown"): self
.thisown
= 0
2628 self
.__class
__ = MemoryDC
2629 _gdi
.MemoryDC_swigregister(MemoryDCPtr
)
2631 def MemoryDCFromDC(*args
, **kwargs
):
2632 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
2633 val
= _gdi
.new_MemoryDCFromDC(*args
, **kwargs
)
2637 #---------------------------------------------------------------------------
2639 class BufferedDC(MemoryDC
):
2642 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2643 def __init__(self
, *args
, **kwargs
):
2644 """__init__(DC dc, Bitmap buffer) -> BufferedDC"""
2645 newobj
= _gdi
.new_BufferedDC(*args
, **kwargs
)
2646 self
.this
= newobj
.this
2649 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2651 def UnMask(*args
, **kwargs
):
2653 return _gdi
.BufferedDC_UnMask(*args
, **kwargs
)
2656 class BufferedDCPtr(BufferedDC
):
2657 def __init__(self
, this
):
2659 if not hasattr(self
,"thisown"): self
.thisown
= 0
2660 self
.__class
__ = BufferedDC
2661 _gdi
.BufferedDC_swigregister(BufferedDCPtr
)
2663 def BufferedDCInternalBuffer(*args
, **kwargs
):
2664 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
2665 val
= _gdi
.new_BufferedDCInternalBuffer(*args
, **kwargs
)
2667 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2670 class BufferedPaintDC(BufferedDC
):
2673 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2674 def __init__(self
, *args
, **kwargs
):
2675 """__init__(Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
2676 newobj
= _gdi
.new_BufferedPaintDC(*args
, **kwargs
)
2677 self
.this
= newobj
.this
2681 class BufferedPaintDCPtr(BufferedPaintDC
):
2682 def __init__(self
, this
):
2684 if not hasattr(self
,"thisown"): self
.thisown
= 0
2685 self
.__class
__ = BufferedPaintDC
2686 _gdi
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
2688 #---------------------------------------------------------------------------
2693 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2694 def __init__(self
, *args
, **kwargs
):
2695 """__init__() -> ScreenDC"""
2696 newobj
= _gdi
.new_ScreenDC(*args
, **kwargs
)
2697 self
.this
= newobj
.this
2700 def StartDrawingOnTopWin(*args
, **kwargs
):
2701 """StartDrawingOnTopWin(Window window) -> bool"""
2702 return _gdi
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
2704 def StartDrawingOnTop(*args
, **kwargs
):
2705 """StartDrawingOnTop(Rect rect=None) -> bool"""
2706 return _gdi
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
2708 def EndDrawingOnTop(*args
, **kwargs
):
2709 """EndDrawingOnTop() -> bool"""
2710 return _gdi
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
2713 class ScreenDCPtr(ScreenDC
):
2714 def __init__(self
, this
):
2716 if not hasattr(self
,"thisown"): self
.thisown
= 0
2717 self
.__class
__ = ScreenDC
2718 _gdi
.ScreenDC_swigregister(ScreenDCPtr
)
2720 #---------------------------------------------------------------------------
2725 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2726 def __init__(self
, *args
, **kwargs
):
2727 """__init__(Window win) -> ClientDC"""
2728 newobj
= _gdi
.new_ClientDC(*args
, **kwargs
)
2729 self
.this
= newobj
.this
2733 class ClientDCPtr(ClientDC
):
2734 def __init__(self
, this
):
2736 if not hasattr(self
,"thisown"): self
.thisown
= 0
2737 self
.__class
__ = ClientDC
2738 _gdi
.ClientDC_swigregister(ClientDCPtr
)
2740 #---------------------------------------------------------------------------
2745 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2746 def __init__(self
, *args
, **kwargs
):
2747 """__init__(Window win) -> PaintDC"""
2748 newobj
= _gdi
.new_PaintDC(*args
, **kwargs
)
2749 self
.this
= newobj
.this
2753 class PaintDCPtr(PaintDC
):
2754 def __init__(self
, this
):
2756 if not hasattr(self
,"thisown"): self
.thisown
= 0
2757 self
.__class
__ = PaintDC
2758 _gdi
.PaintDC_swigregister(PaintDCPtr
)
2760 #---------------------------------------------------------------------------
2765 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2766 def __init__(self
, *args
, **kwargs
):
2767 """__init__(Window win) -> WindowDC"""
2768 newobj
= _gdi
.new_WindowDC(*args
, **kwargs
)
2769 self
.this
= newobj
.this
2773 class WindowDCPtr(WindowDC
):
2774 def __init__(self
, this
):
2776 if not hasattr(self
,"thisown"): self
.thisown
= 0
2777 self
.__class
__ = WindowDC
2778 _gdi
.WindowDC_swigregister(WindowDCPtr
)
2780 #---------------------------------------------------------------------------
2785 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2786 def __init__(self
, *args
, **kwargs
):
2787 """__init__(DC dc, bool mirror) -> MirrorDC"""
2788 newobj
= _gdi
.new_MirrorDC(*args
, **kwargs
)
2789 self
.this
= newobj
.this
2793 class MirrorDCPtr(MirrorDC
):
2794 def __init__(self
, this
):
2796 if not hasattr(self
,"thisown"): self
.thisown
= 0
2797 self
.__class
__ = MirrorDC
2798 _gdi
.MirrorDC_swigregister(MirrorDCPtr
)
2800 #---------------------------------------------------------------------------
2802 class PostScriptDC(DC
):
2805 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2806 def __init__(self
, *args
, **kwargs
):
2807 """__init__(wxPrintData printData) -> PostScriptDC"""
2808 newobj
= _gdi
.new_PostScriptDC(*args
, **kwargs
)
2809 self
.this
= newobj
.this
2812 def GetPrintData(*args
, **kwargs
):
2813 """GetPrintData() -> wxPrintData"""
2814 return _gdi
.PostScriptDC_GetPrintData(*args
, **kwargs
)
2816 def SetPrintData(*args
, **kwargs
):
2817 """SetPrintData(wxPrintData data)"""
2818 return _gdi
.PostScriptDC_SetPrintData(*args
, **kwargs
)
2820 def SetResolution(*args
, **kwargs
):
2821 """PostScriptDC.SetResolution(int ppi)"""
2822 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
2824 SetResolution
= staticmethod(SetResolution
)
2825 def GetResolution(*args
, **kwargs
):
2826 """PostScriptDC.GetResolution() -> int"""
2827 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
2829 GetResolution
= staticmethod(GetResolution
)
2831 class PostScriptDCPtr(PostScriptDC
):
2832 def __init__(self
, this
):
2834 if not hasattr(self
,"thisown"): self
.thisown
= 0
2835 self
.__class
__ = PostScriptDC
2836 _gdi
.PostScriptDC_swigregister(PostScriptDCPtr
)
2838 def PostScriptDC_SetResolution(*args
, **kwargs
):
2839 """PostScriptDC_SetResolution(int ppi)"""
2840 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
2842 def PostScriptDC_GetResolution(*args
, **kwargs
):
2843 """PostScriptDC_GetResolution() -> int"""
2844 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
2846 #---------------------------------------------------------------------------
2848 class MetaFile(core
.Object
):
2851 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2852 def __init__(self
, *args
, **kwargs
):
2853 """__init__(wxString filename=wxPyEmptyString) -> MetaFile"""
2854 newobj
= _gdi
.new_MetaFile(*args
, **kwargs
)
2855 self
.this
= newobj
.this
2859 class MetaFilePtr(MetaFile
):
2860 def __init__(self
, this
):
2862 if not hasattr(self
,"thisown"): self
.thisown
= 0
2863 self
.__class
__ = MetaFile
2864 _gdi
.MetaFile_swigregister(MetaFilePtr
)
2866 class MetaFileDC(DC
):
2869 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2870 def __init__(self
, *args
, **kwargs
):
2871 """__init__(wxString filename=wxPyEmptyString, int width=0, int height=0,
2872 wxString description=wxPyEmptyString) -> MetaFileDC"""
2873 newobj
= _gdi
.new_MetaFileDC(*args
, **kwargs
)
2874 self
.this
= newobj
.this
2878 class MetaFileDCPtr(MetaFileDC
):
2879 def __init__(self
, this
):
2881 if not hasattr(self
,"thisown"): self
.thisown
= 0
2882 self
.__class
__ = MetaFileDC
2883 _gdi
.MetaFileDC_swigregister(MetaFileDCPtr
)
2885 class PrinterDC(DC
):
2888 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2889 def __init__(self
, *args
, **kwargs
):
2890 """__init__(wxPrintData printData) -> PrinterDC"""
2891 newobj
= _gdi
.new_PrinterDC(*args
, **kwargs
)
2892 self
.this
= newobj
.this
2896 class PrinterDCPtr(PrinterDC
):
2897 def __init__(self
, this
):
2899 if not hasattr(self
,"thisown"): self
.thisown
= 0
2900 self
.__class
__ = PrinterDC
2901 _gdi
.PrinterDC_swigregister(PrinterDCPtr
)
2903 #---------------------------------------------------------------------------
2905 IMAGELIST_DRAW_NORMAL
= _gdi
.IMAGELIST_DRAW_NORMAL
2906 IMAGELIST_DRAW_TRANSPARENT
= _gdi
.IMAGELIST_DRAW_TRANSPARENT
2907 IMAGELIST_DRAW_SELECTED
= _gdi
.IMAGELIST_DRAW_SELECTED
2908 IMAGELIST_DRAW_FOCUSED
= _gdi
.IMAGELIST_DRAW_FOCUSED
2909 IMAGE_LIST_NORMAL
= _gdi
.IMAGE_LIST_NORMAL
2910 IMAGE_LIST_SMALL
= _gdi
.IMAGE_LIST_SMALL
2911 IMAGE_LIST_STATE
= _gdi
.IMAGE_LIST_STATE
2912 class ImageList(core
.Object
):
2915 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2916 def __init__(self
, *args
, **kwargs
):
2917 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
2918 newobj
= _gdi
.new_ImageList(*args
, **kwargs
)
2919 self
.this
= newobj
.this
2922 def __del__(self
, destroy
=_gdi
.delete_ImageList
):
2925 if self
.thisown
: destroy(self
)
2928 def Add(*args
, **kwargs
):
2929 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
2930 return _gdi
.ImageList_Add(*args
, **kwargs
)
2932 def AddWithColourMask(*args
, **kwargs
):
2933 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
2934 return _gdi
.ImageList_AddWithColourMask(*args
, **kwargs
)
2936 def AddIcon(*args
, **kwargs
):
2937 """AddIcon(Icon icon) -> int"""
2938 return _gdi
.ImageList_AddIcon(*args
, **kwargs
)
2940 def Replace(*args
, **kwargs
):
2941 """Replace(int index, Bitmap bitmap) -> bool"""
2942 return _gdi
.ImageList_Replace(*args
, **kwargs
)
2944 def Draw(*args
, **kwargs
):
2945 """Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
2946 bool solidBackground=False) -> bool"""
2947 return _gdi
.ImageList_Draw(*args
, **kwargs
)
2949 def GetImageCount(*args
, **kwargs
):
2950 """GetImageCount() -> int"""
2951 return _gdi
.ImageList_GetImageCount(*args
, **kwargs
)
2953 def Remove(*args
, **kwargs
):
2954 """Remove(int index) -> bool"""
2955 return _gdi
.ImageList_Remove(*args
, **kwargs
)
2957 def RemoveAll(*args
, **kwargs
):
2958 """RemoveAll() -> bool"""
2959 return _gdi
.ImageList_RemoveAll(*args
, **kwargs
)
2961 def GetSize(*args
, **kwargs
):
2962 """GetSize() -> (width,height)"""
2963 return _gdi
.ImageList_GetSize(*args
, **kwargs
)
2966 class ImageListPtr(ImageList
):
2967 def __init__(self
, this
):
2969 if not hasattr(self
,"thisown"): self
.thisown
= 0
2970 self
.__class
__ = ImageList
2971 _gdi
.ImageList_swigregister(ImageListPtr
)
2973 #---------------------------------------------------------------------------
2975 class PenList(core
.Object
):
2977 def __init__(self
): raise RuntimeError, "No constructor defined"
2979 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2980 def AddPen(*args
, **kwargs
):
2981 """AddPen(Pen pen)"""
2982 return _gdi
.PenList_AddPen(*args
, **kwargs
)
2984 def FindOrCreatePen(*args
, **kwargs
):
2985 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
2986 return _gdi
.PenList_FindOrCreatePen(*args
, **kwargs
)
2988 def RemovePen(*args
, **kwargs
):
2989 """RemovePen(Pen pen)"""
2990 return _gdi
.PenList_RemovePen(*args
, **kwargs
)
2992 def GetCount(*args
, **kwargs
):
2993 """GetCount() -> int"""
2994 return _gdi
.PenList_GetCount(*args
, **kwargs
)
2997 class PenListPtr(PenList
):
2998 def __init__(self
, this
):
3000 if not hasattr(self
,"thisown"): self
.thisown
= 0
3001 self
.__class
__ = PenList
3002 _gdi
.PenList_swigregister(PenListPtr
)
3004 class BrushList(core
.Object
):
3006 def __init__(self
): raise RuntimeError, "No constructor defined"
3008 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3009 def AddBrush(*args
, **kwargs
):
3010 """AddBrush(Brush brush)"""
3011 return _gdi
.BrushList_AddBrush(*args
, **kwargs
)
3013 def FindOrCreateBrush(*args
, **kwargs
):
3014 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
3015 return _gdi
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3017 def RemoveBrush(*args
, **kwargs
):
3018 """RemoveBrush(Brush brush)"""
3019 return _gdi
.BrushList_RemoveBrush(*args
, **kwargs
)
3021 def GetCount(*args
, **kwargs
):
3022 """GetCount() -> int"""
3023 return _gdi
.BrushList_GetCount(*args
, **kwargs
)
3026 class BrushListPtr(BrushList
):
3027 def __init__(self
, this
):
3029 if not hasattr(self
,"thisown"): self
.thisown
= 0
3030 self
.__class
__ = BrushList
3031 _gdi
.BrushList_swigregister(BrushListPtr
)
3033 class ColourDatabase(core
.Object
):
3036 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3037 def __init__(self
, *args
, **kwargs
):
3038 """__init__() -> ColourDatabase"""
3039 newobj
= _gdi
.new_ColourDatabase(*args
, **kwargs
)
3040 self
.this
= newobj
.this
3043 def __del__(self
, destroy
=_gdi
.delete_ColourDatabase
):
3046 if self
.thisown
: destroy(self
)
3049 def Find(*args
, **kwargs
):
3050 """Find(wxString name) -> Colour"""
3051 return _gdi
.ColourDatabase_Find(*args
, **kwargs
)
3053 def FindName(*args
, **kwargs
):
3054 """FindName(Colour colour) -> wxString"""
3055 return _gdi
.ColourDatabase_FindName(*args
, **kwargs
)
3058 def AddColour(*args
, **kwargs
):
3059 """AddColour(wxString name, Colour colour)"""
3060 return _gdi
.ColourDatabase_AddColour(*args
, **kwargs
)
3062 def Append(*args
, **kwargs
):
3063 """Append(wxString name, int red, int green, int blue)"""
3064 return _gdi
.ColourDatabase_Append(*args
, **kwargs
)
3067 class ColourDatabasePtr(ColourDatabase
):
3068 def __init__(self
, this
):
3070 if not hasattr(self
,"thisown"): self
.thisown
= 0
3071 self
.__class
__ = ColourDatabase
3072 _gdi
.ColourDatabase_swigregister(ColourDatabasePtr
)
3074 class FontList(core
.Object
):
3076 def __init__(self
): raise RuntimeError, "No constructor defined"
3078 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3079 def AddFont(*args
, **kwargs
):
3080 """AddFont(Font font)"""
3081 return _gdi
.FontList_AddFont(*args
, **kwargs
)
3083 def FindOrCreateFont(*args
, **kwargs
):
3084 """FindOrCreateFont(int point_size, int family, int style, int weight,
3085 bool underline=False, wxString facename=wxPyEmptyString,
3086 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font"""
3087 return _gdi
.FontList_FindOrCreateFont(*args
, **kwargs
)
3089 def RemoveFont(*args
, **kwargs
):
3090 """RemoveFont(Font font)"""
3091 return _gdi
.FontList_RemoveFont(*args
, **kwargs
)
3093 def GetCount(*args
, **kwargs
):
3094 """GetCount() -> int"""
3095 return _gdi
.FontList_GetCount(*args
, **kwargs
)
3098 class FontListPtr(FontList
):
3099 def __init__(self
, this
):
3101 if not hasattr(self
,"thisown"): self
.thisown
= 0
3102 self
.__class
__ = FontList
3103 _gdi
.FontList_swigregister(FontListPtr
)
3105 #---------------------------------------------------------------------------
3107 #---------------------------------------------------------------------------
3109 class Effects(core
.Object
):
3112 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3113 def __init__(self
, *args
, **kwargs
):
3114 """__init__() -> Effects"""
3115 newobj
= _gdi
.new_Effects(*args
, **kwargs
)
3116 self
.this
= newobj
.this
3119 def GetHighlightColour(*args
, **kwargs
):
3120 """GetHighlightColour() -> Colour"""
3121 return _gdi
.Effects_GetHighlightColour(*args
, **kwargs
)
3123 def GetLightShadow(*args
, **kwargs
):
3124 """GetLightShadow() -> Colour"""
3125 return _gdi
.Effects_GetLightShadow(*args
, **kwargs
)
3127 def GetFaceColour(*args
, **kwargs
):
3128 """GetFaceColour() -> Colour"""
3129 return _gdi
.Effects_GetFaceColour(*args
, **kwargs
)
3131 def GetMediumShadow(*args
, **kwargs
):
3132 """GetMediumShadow() -> Colour"""
3133 return _gdi
.Effects_GetMediumShadow(*args
, **kwargs
)
3135 def GetDarkShadow(*args
, **kwargs
):
3136 """GetDarkShadow() -> Colour"""
3137 return _gdi
.Effects_GetDarkShadow(*args
, **kwargs
)
3139 def SetHighlightColour(*args
, **kwargs
):
3140 """SetHighlightColour(Colour c)"""
3141 return _gdi
.Effects_SetHighlightColour(*args
, **kwargs
)
3143 def SetLightShadow(*args
, **kwargs
):
3144 """SetLightShadow(Colour c)"""
3145 return _gdi
.Effects_SetLightShadow(*args
, **kwargs
)
3147 def SetFaceColour(*args
, **kwargs
):
3148 """SetFaceColour(Colour c)"""
3149 return _gdi
.Effects_SetFaceColour(*args
, **kwargs
)
3151 def SetMediumShadow(*args
, **kwargs
):
3152 """SetMediumShadow(Colour c)"""
3153 return _gdi
.Effects_SetMediumShadow(*args
, **kwargs
)
3155 def SetDarkShadow(*args
, **kwargs
):
3156 """SetDarkShadow(Colour c)"""
3157 return _gdi
.Effects_SetDarkShadow(*args
, **kwargs
)
3159 def Set(*args
, **kwargs
):
3160 """Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3161 Colour mediumShadow, Colour darkShadow)"""
3162 return _gdi
.Effects_Set(*args
, **kwargs
)
3164 def DrawSunkenEdge(*args
, **kwargs
):
3165 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3166 return _gdi
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3168 def TileBitmap(*args
, **kwargs
):
3169 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3170 return _gdi
.Effects_TileBitmap(*args
, **kwargs
)
3173 class EffectsPtr(Effects
):
3174 def __init__(self
, this
):
3176 if not hasattr(self
,"thisown"): self
.thisown
= 0
3177 self
.__class
__ = Effects
3178 _gdi
.Effects_swigregister(EffectsPtr
)
3180 NORMAL_FONT
= cvar
.NORMAL_FONT
3181 SMALL_FONT
= cvar
.SMALL_FONT
3182 ITALIC_FONT
= cvar
.ITALIC_FONT
3183 SWISS_FONT
= cvar
.SWISS_FONT
3184 RED_PEN
= cvar
.RED_PEN
3185 CYAN_PEN
= cvar
.CYAN_PEN
3186 GREEN_PEN
= cvar
.GREEN_PEN
3187 BLACK_PEN
= cvar
.BLACK_PEN
3188 WHITE_PEN
= cvar
.WHITE_PEN
3189 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3190 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3191 GREY_PEN
= cvar
.GREY_PEN
3192 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3193 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3194 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3195 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3196 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3197 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3198 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3199 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3200 RED_BRUSH
= cvar
.RED_BRUSH
3201 GREY_BRUSH
= cvar
.GREY_BRUSH
3202 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3203 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3210 LIGHT_GREY
= cvar
.LIGHT_GREY
3211 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3212 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3213 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3214 NullBitmap
= cvar
.NullBitmap
3215 NullIcon
= cvar
.NullIcon
3216 NullCursor
= cvar
.NullCursor
3217 NullPen
= cvar
.NullPen
3218 NullBrush
= cvar
.NullBrush
3219 NullPalette
= cvar
.NullPalette
3220 NullFont
= cvar
.NullFont
3221 NullColour
= cvar
.NullColour
3222 TheFontList
= cvar
.TheFontList
3223 ThePenList
= cvar
.ThePenList
3224 TheBrushList
= cvar
.TheBrushList
3225 TheColourDatabase
= cvar
.TheColourDatabase