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 GetStipple(*args
, **kwargs
):
236 """GetStipple() -> Bitmap"""
237 return _gdi
.Pen_GetStipple(*args
, **kwargs
)
239 def SetStipple(*args
, **kwargs
):
240 """SetStipple(Bitmap stipple)"""
241 return _gdi
.Pen_SetStipple(*args
, **kwargs
)
243 def __nonzero__(self
): return self
.Ok()
246 def __init__(self
, this
):
248 if not hasattr(self
,"thisown"): self
.thisown
= 0
250 _gdi
.Pen_swigregister(PenPtr
)
255 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
256 def __init__(self
, *args
, **kwargs
):
257 """__init__(Colour colour, int width=1, int style=SOLID) -> PyPen"""
258 newobj
= _gdi
.new_PyPen(*args
, **kwargs
)
259 self
.this
= newobj
.this
262 def __del__(self
, destroy
=_gdi
.delete_PyPen
):
265 if self
.thisown
: destroy(self
)
268 def SetDashes(*args
, **kwargs
):
269 """SetDashes(int dashes, wxDash dashes_array)"""
270 return _gdi
.PyPen_SetDashes(*args
, **kwargs
)
273 class PyPenPtr(PyPen
):
274 def __init__(self
, this
):
276 if not hasattr(self
,"thisown"): self
.thisown
= 0
277 self
.__class
__ = PyPen
278 _gdi
.PyPen_swigregister(PyPenPtr
)
281 #---------------------------------------------------------------------------
283 class Brush(GDIObject
):
286 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
287 def __init__(self
, *args
, **kwargs
):
288 """__init__(Colour colour, int style=SOLID) -> Brush"""
289 newobj
= _gdi
.new_Brush(*args
, **kwargs
)
290 self
.this
= newobj
.this
293 def __del__(self
, destroy
=_gdi
.delete_Brush
):
296 if self
.thisown
: destroy(self
)
299 def SetColour(*args
, **kwargs
):
300 """SetColour(Colour col)"""
301 return _gdi
.Brush_SetColour(*args
, **kwargs
)
303 def SetStyle(*args
, **kwargs
):
304 """SetStyle(int style)"""
305 return _gdi
.Brush_SetStyle(*args
, **kwargs
)
307 def SetStipple(*args
, **kwargs
):
308 """SetStipple(Bitmap stipple)"""
309 return _gdi
.Brush_SetStipple(*args
, **kwargs
)
311 def GetColour(*args
, **kwargs
):
312 """GetColour() -> Colour"""
313 return _gdi
.Brush_GetColour(*args
, **kwargs
)
315 def GetStyle(*args
, **kwargs
):
316 """GetStyle() -> int"""
317 return _gdi
.Brush_GetStyle(*args
, **kwargs
)
319 def GetStipple(*args
, **kwargs
):
320 """GetStipple() -> Bitmap"""
321 return _gdi
.Brush_GetStipple(*args
, **kwargs
)
323 def Ok(*args
, **kwargs
):
325 return _gdi
.Brush_Ok(*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 SetPalette(*args
, **kwargs
):
353 """SetPalette(Palette palette)"""
354 return _gdi
.Bitmap_SetPalette(*args
, **kwargs
)
356 def GetHandle(*args
, **kwargs
):
357 """GetHandle() -> long"""
358 return _gdi
.Bitmap_GetHandle(*args
, **kwargs
)
360 def SetHandle(*args
, **kwargs
):
361 """SetHandle(long handle)"""
362 return _gdi
.Bitmap_SetHandle(*args
, **kwargs
)
364 def Ok(*args
, **kwargs
):
366 return _gdi
.Bitmap_Ok(*args
, **kwargs
)
368 def GetWidth(*args
, **kwargs
):
369 """GetWidth() -> int"""
370 return _gdi
.Bitmap_GetWidth(*args
, **kwargs
)
372 def GetHeight(*args
, **kwargs
):
373 """GetHeight() -> int"""
374 return _gdi
.Bitmap_GetHeight(*args
, **kwargs
)
376 def GetDepth(*args
, **kwargs
):
377 """GetDepth() -> int"""
378 return _gdi
.Bitmap_GetDepth(*args
, **kwargs
)
380 def ConvertToImage(*args
, **kwargs
):
381 """ConvertToImage() -> Image"""
382 return _gdi
.Bitmap_ConvertToImage(*args
, **kwargs
)
384 def GetMask(*args
, **kwargs
):
385 """GetMask() -> Mask"""
386 return _gdi
.Bitmap_GetMask(*args
, **kwargs
)
388 def SetMask(*args
, **kwargs
):
389 """SetMask(Mask mask)"""
390 return _gdi
.Bitmap_SetMask(*args
, **kwargs
)
392 def SetMaskColour(*args
, **kwargs
):
393 """SetMaskColour(Colour colour)"""
394 return _gdi
.Bitmap_SetMaskColour(*args
, **kwargs
)
396 def GetSubBitmap(*args
, **kwargs
):
397 """GetSubBitmap(Rect rect) -> Bitmap"""
398 return _gdi
.Bitmap_GetSubBitmap(*args
, **kwargs
)
400 def SaveFile(*args
, **kwargs
):
401 """SaveFile(wxString name, wxBitmapType type, Palette palette=(wxPalette *) NULL) -> bool"""
402 return _gdi
.Bitmap_SaveFile(*args
, **kwargs
)
404 def LoadFile(*args
, **kwargs
):
405 """LoadFile(wxString name, wxBitmapType type) -> bool"""
406 return _gdi
.Bitmap_LoadFile(*args
, **kwargs
)
408 def CopyFromIcon(*args
, **kwargs
):
409 """CopyFromIcon(Icon icon) -> bool"""
410 return _gdi
.Bitmap_CopyFromIcon(*args
, **kwargs
)
412 def SetHeight(*args
, **kwargs
):
413 """SetHeight(int height)"""
414 return _gdi
.Bitmap_SetHeight(*args
, **kwargs
)
416 def SetWidth(*args
, **kwargs
):
417 """SetWidth(int width)"""
418 return _gdi
.Bitmap_SetWidth(*args
, **kwargs
)
420 def SetDepth(*args
, **kwargs
):
421 """SetDepth(int depth)"""
422 return _gdi
.Bitmap_SetDepth(*args
, **kwargs
)
424 def CopyFromCursor(*args
, **kwargs
):
425 """CopyFromCursor(Cursor cursor) -> bool"""
426 return _gdi
.Bitmap_CopyFromCursor(*args
, **kwargs
)
428 def GetQuality(*args
, **kwargs
):
429 """GetQuality() -> int"""
430 return _gdi
.Bitmap_GetQuality(*args
, **kwargs
)
432 def SetQuality(*args
, **kwargs
):
433 """SetQuality(int q)"""
434 return _gdi
.Bitmap_SetQuality(*args
, **kwargs
)
436 def __nonzero__(self
): return self
.Ok()
438 class BitmapPtr(Bitmap
):
439 def __init__(self
, this
):
441 if not hasattr(self
,"thisown"): self
.thisown
= 0
442 self
.__class
__ = Bitmap
443 _gdi
.Bitmap_swigregister(BitmapPtr
)
445 def EmptyBitmap(*args
, **kwargs
):
446 """EmptyBitmap(int width, int height, int depth=-1) -> Bitmap"""
447 val
= _gdi
.new_EmptyBitmap(*args
, **kwargs
)
451 def BitmapFromIcon(*args
, **kwargs
):
452 """BitmapFromIcon(Icon icon) -> Bitmap"""
453 val
= _gdi
.new_BitmapFromIcon(*args
, **kwargs
)
457 def BitmapFromImage(*args
, **kwargs
):
458 """BitmapFromImage(Image image, int depth=-1) -> Bitmap"""
459 val
= _gdi
.new_BitmapFromImage(*args
, **kwargs
)
463 def BitmapFromXPMData(*args
, **kwargs
):
464 """BitmapFromXPMData(PyObject listOfStrings) -> Bitmap"""
465 val
= _gdi
.new_BitmapFromXPMData(*args
, **kwargs
)
469 def BitmapFromBits(*args
, **kwargs
):
470 """BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap"""
471 val
= _gdi
.new_BitmapFromBits(*args
, **kwargs
)
475 class Mask(core
.Object
):
478 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
479 def __init__(self
, *args
, **kwargs
):
480 """__init__(Bitmap bitmap) -> Mask"""
481 newobj
= _gdi
.new_Mask(*args
, **kwargs
)
482 self
.this
= newobj
.this
487 def __init__(self
, this
):
489 if not hasattr(self
,"thisown"): self
.thisown
= 0
490 self
.__class
__ = Mask
491 _gdi
.Mask_swigregister(MaskPtr
)
493 def MaskColour(*args
, **kwargs
):
494 """MaskColour(Bitmap bitmap, Colour colour) -> Mask"""
495 val
= _gdi
.new_MaskColour(*args
, **kwargs
)
499 class Icon(GDIObject
):
502 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
503 def __init__(self
, *args
, **kwargs
):
504 """__init__(wxString name, long flags, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
505 newobj
= _gdi
.new_Icon(*args
, **kwargs
)
506 self
.this
= newobj
.this
509 def __del__(self
, destroy
=_gdi
.delete_Icon
):
512 if self
.thisown
: destroy(self
)
515 def LoadFile(*args
, **kwargs
):
516 """LoadFile(wxString name, long flags) -> bool"""
517 return _gdi
.Icon_LoadFile(*args
, **kwargs
)
519 def GetHandle(*args
, **kwargs
):
520 """GetHandle() -> long"""
521 return _gdi
.Icon_GetHandle(*args
, **kwargs
)
523 def SetHandle(*args
, **kwargs
):
524 """SetHandle(long handle)"""
525 return _gdi
.Icon_SetHandle(*args
, **kwargs
)
527 def Ok(*args
, **kwargs
):
529 return _gdi
.Icon_Ok(*args
, **kwargs
)
531 def GetWidth(*args
, **kwargs
):
532 """GetWidth() -> int"""
533 return _gdi
.Icon_GetWidth(*args
, **kwargs
)
535 def GetHeight(*args
, **kwargs
):
536 """GetHeight() -> int"""
537 return _gdi
.Icon_GetHeight(*args
, **kwargs
)
539 def GetDepth(*args
, **kwargs
):
540 """GetDepth() -> int"""
541 return _gdi
.Icon_GetDepth(*args
, **kwargs
)
543 def SetWidth(*args
, **kwargs
):
544 """SetWidth(int w)"""
545 return _gdi
.Icon_SetWidth(*args
, **kwargs
)
547 def SetHeight(*args
, **kwargs
):
548 """SetHeight(int h)"""
549 return _gdi
.Icon_SetHeight(*args
, **kwargs
)
551 def SetDepth(*args
, **kwargs
):
552 """SetDepth(int d)"""
553 return _gdi
.Icon_SetDepth(*args
, **kwargs
)
555 def SetSize(*args
, **kwargs
):
556 """SetSize(Size size)"""
557 return _gdi
.Icon_SetSize(*args
, **kwargs
)
559 def CopyFromBitmap(*args
, **kwargs
):
560 """CopyFromBitmap(Bitmap bmp)"""
561 return _gdi
.Icon_CopyFromBitmap(*args
, **kwargs
)
563 def __nonzero__(self
): return self
.Ok()
566 def __init__(self
, this
):
568 if not hasattr(self
,"thisown"): self
.thisown
= 0
569 self
.__class
__ = Icon
570 _gdi
.Icon_swigregister(IconPtr
)
572 def EmptyIcon(*args
, **kwargs
):
573 """EmptyIcon() -> Icon"""
574 val
= _gdi
.new_EmptyIcon(*args
, **kwargs
)
578 def IconFromLocation(*args
, **kwargs
):
579 """IconFromLocation(IconLocation loc) -> Icon"""
580 val
= _gdi
.new_IconFromLocation(*args
, **kwargs
)
584 def IconFromBitmap(*args
, **kwargs
):
585 """IconFromBitmap(Bitmap bmp) -> Icon"""
586 val
= _gdi
.new_IconFromBitmap(*args
, **kwargs
)
590 def IconFromXPMData(*args
, **kwargs
):
591 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
592 val
= _gdi
.new_IconFromXPMData(*args
, **kwargs
)
596 class IconLocation(object):
599 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
600 def __init__(self
, *args
, **kwargs
):
601 """__init__(wxString filename=&wxPyEmptyString, int num=0) -> IconLocation"""
602 newobj
= _gdi
.new_IconLocation(*args
, **kwargs
)
603 self
.this
= newobj
.this
606 def __del__(self
, destroy
=_gdi
.delete_IconLocation
):
609 if self
.thisown
: destroy(self
)
612 def IsOk(*args
, **kwargs
):
614 return _gdi
.IconLocation_IsOk(*args
, **kwargs
)
616 def __nonzero__(self
): return self
.Ok()
617 def SetFileName(*args
, **kwargs
):
618 """SetFileName(wxString filename)"""
619 return _gdi
.IconLocation_SetFileName(*args
, **kwargs
)
621 def GetFileName(*args
, **kwargs
):
622 """GetFileName() -> wxString"""
623 return _gdi
.IconLocation_GetFileName(*args
, **kwargs
)
625 def SetIndex(*args
, **kwargs
):
626 """SetIndex(int num)"""
627 return _gdi
.IconLocation_SetIndex(*args
, **kwargs
)
629 def GetIndex(*args
, **kwargs
):
630 """GetIndex() -> int"""
631 return _gdi
.IconLocation_GetIndex(*args
, **kwargs
)
634 class IconLocationPtr(IconLocation
):
635 def __init__(self
, this
):
637 if not hasattr(self
,"thisown"): self
.thisown
= 0
638 self
.__class
__ = IconLocation
639 _gdi
.IconLocation_swigregister(IconLocationPtr
)
641 class IconBundle(object):
644 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
645 def __init__(self
, *args
, **kwargs
):
646 """__init__() -> IconBundle"""
647 newobj
= _gdi
.new_IconBundle(*args
, **kwargs
)
648 self
.this
= newobj
.this
651 def __del__(self
, destroy
=_gdi
.delete_IconBundle
):
654 if self
.thisown
: destroy(self
)
657 def AddIcon(*args
, **kwargs
):
658 """AddIcon(Icon icon)"""
659 return _gdi
.IconBundle_AddIcon(*args
, **kwargs
)
661 def AddIconFromFile(*args
, **kwargs
):
662 """AddIconFromFile(wxString file, long type)"""
663 return _gdi
.IconBundle_AddIconFromFile(*args
, **kwargs
)
665 def GetIcon(*args
, **kwargs
):
666 """GetIcon(Size size) -> Icon"""
667 return _gdi
.IconBundle_GetIcon(*args
, **kwargs
)
670 class IconBundlePtr(IconBundle
):
671 def __init__(self
, this
):
673 if not hasattr(self
,"thisown"): self
.thisown
= 0
674 self
.__class
__ = IconBundle
675 _gdi
.IconBundle_swigregister(IconBundlePtr
)
677 def IconBundleFromFile(*args
, **kwargs
):
678 """IconBundleFromFile(wxString file, long type) -> IconBundle"""
679 val
= _gdi
.new_IconBundleFromFile(*args
, **kwargs
)
683 def IconBundleFromIcon(*args
, **kwargs
):
684 """IconBundleFromIcon(Icon icon) -> IconBundle"""
685 val
= _gdi
.new_IconBundleFromIcon(*args
, **kwargs
)
689 class Cursor(GDIObject
):
692 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
693 def __init__(self
, *args
, **kwargs
):
694 """__init__(wxString cursorName, long flags, int hotSpotX=0, int hotSpotY=0) -> Cursor"""
695 newobj
= _gdi
.new_Cursor(*args
, **kwargs
)
696 self
.this
= newobj
.this
699 def __del__(self
, destroy
=_gdi
.delete_Cursor
):
702 if self
.thisown
: destroy(self
)
705 def GetHandle(*args
, **kwargs
):
706 """GetHandle() -> long"""
707 return _gdi
.Cursor_GetHandle(*args
, **kwargs
)
709 def SetHandle(*args
, **kwargs
):
710 """SetHandle(long handle)"""
711 return _gdi
.Cursor_SetHandle(*args
, **kwargs
)
713 def Ok(*args
, **kwargs
):
715 return _gdi
.Cursor_Ok(*args
, **kwargs
)
717 def GetWidth(*args
, **kwargs
):
718 """GetWidth() -> int"""
719 return _gdi
.Cursor_GetWidth(*args
, **kwargs
)
721 def GetHeight(*args
, **kwargs
):
722 """GetHeight() -> int"""
723 return _gdi
.Cursor_GetHeight(*args
, **kwargs
)
725 def GetDepth(*args
, **kwargs
):
726 """GetDepth() -> int"""
727 return _gdi
.Cursor_GetDepth(*args
, **kwargs
)
729 def SetWidth(*args
, **kwargs
):
730 """SetWidth(int w)"""
731 return _gdi
.Cursor_SetWidth(*args
, **kwargs
)
733 def SetHeight(*args
, **kwargs
):
734 """SetHeight(int h)"""
735 return _gdi
.Cursor_SetHeight(*args
, **kwargs
)
737 def SetDepth(*args
, **kwargs
):
738 """SetDepth(int d)"""
739 return _gdi
.Cursor_SetDepth(*args
, **kwargs
)
741 def SetSize(*args
, **kwargs
):
742 """SetSize(Size size)"""
743 return _gdi
.Cursor_SetSize(*args
, **kwargs
)
745 def __nonzero__(self
): return self
.Ok()
747 class CursorPtr(Cursor
):
748 def __init__(self
, this
):
750 if not hasattr(self
,"thisown"): self
.thisown
= 0
751 self
.__class
__ = Cursor
752 _gdi
.Cursor_swigregister(CursorPtr
)
754 def StockCursor(*args
, **kwargs
):
755 """StockCursor(int id) -> Cursor"""
756 val
= _gdi
.new_StockCursor(*args
, **kwargs
)
760 def CursorFromImage(*args
, **kwargs
):
761 """CursorFromImage(Image image) -> Cursor"""
762 val
= _gdi
.new_CursorFromImage(*args
, **kwargs
)
766 def CursorFromBits(*args
, **kwargs
):
767 """CursorFromBits(PyObject bits, int width, int height, int hotSpotX=-1,
768 int hotSpotY=-1, PyObject maskBits=0) -> Cursor"""
769 val
= _gdi
.new_CursorFromBits(*args
, **kwargs
)
773 #---------------------------------------------------------------------------
775 OutRegion
= _gdi
.OutRegion
776 PartRegion
= _gdi
.PartRegion
777 InRegion
= _gdi
.InRegion
778 class Region(GDIObject
):
781 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
782 def __init__(self
, *args
, **kwargs
):
783 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
784 newobj
= _gdi
.new_Region(*args
, **kwargs
)
785 self
.this
= newobj
.this
788 def __del__(self
, destroy
=_gdi
.delete_Region
):
791 if self
.thisown
: destroy(self
)
794 def Clear(*args
, **kwargs
):
796 return _gdi
.Region_Clear(*args
, **kwargs
)
798 def Offset(*args
, **kwargs
):
799 """Offset(int x, int y) -> bool"""
800 return _gdi
.Region_Offset(*args
, **kwargs
)
802 def Contains(*args
, **kwargs
):
803 """Contains(int x, int y) -> wxRegionContain"""
804 return _gdi
.Region_Contains(*args
, **kwargs
)
806 def ContainsPoint(*args
, **kwargs
):
807 """ContainsPoint(Point pt) -> wxRegionContain"""
808 return _gdi
.Region_ContainsPoint(*args
, **kwargs
)
810 def ContainsRect(*args
, **kwargs
):
811 """ContainsRect(Rect rect) -> wxRegionContain"""
812 return _gdi
.Region_ContainsRect(*args
, **kwargs
)
814 def ContainsRectDim(*args
, **kwargs
):
815 """ContainsRectDim(int x, int y, int w, int h) -> wxRegionContain"""
816 return _gdi
.Region_ContainsRectDim(*args
, **kwargs
)
818 def GetBox(*args
, **kwargs
):
819 """GetBox() -> Rect"""
820 return _gdi
.Region_GetBox(*args
, **kwargs
)
822 def Intersect(*args
, **kwargs
):
823 """Intersect(int x, int y, int width, int height) -> bool"""
824 return _gdi
.Region_Intersect(*args
, **kwargs
)
826 def IntersectRect(*args
, **kwargs
):
827 """IntersectRect(Rect rect) -> bool"""
828 return _gdi
.Region_IntersectRect(*args
, **kwargs
)
830 def IntersectRegion(*args
, **kwargs
):
831 """IntersectRegion(Region region) -> bool"""
832 return _gdi
.Region_IntersectRegion(*args
, **kwargs
)
834 def IsEmpty(*args
, **kwargs
):
835 """IsEmpty() -> bool"""
836 return _gdi
.Region_IsEmpty(*args
, **kwargs
)
838 def Union(*args
, **kwargs
):
839 """Union(int x, int y, int width, int height) -> bool"""
840 return _gdi
.Region_Union(*args
, **kwargs
)
842 def UnionRect(*args
, **kwargs
):
843 """UnionRect(Rect rect) -> bool"""
844 return _gdi
.Region_UnionRect(*args
, **kwargs
)
846 def UnionRegion(*args
, **kwargs
):
847 """UnionRegion(Region region) -> bool"""
848 return _gdi
.Region_UnionRegion(*args
, **kwargs
)
850 def Subtract(*args
, **kwargs
):
851 """Subtract(int x, int y, int width, int height) -> bool"""
852 return _gdi
.Region_Subtract(*args
, **kwargs
)
854 def SubtractRect(*args
, **kwargs
):
855 """SubtractRect(Rect rect) -> bool"""
856 return _gdi
.Region_SubtractRect(*args
, **kwargs
)
858 def SubtractRegion(*args
, **kwargs
):
859 """SubtractRegion(Region region) -> bool"""
860 return _gdi
.Region_SubtractRegion(*args
, **kwargs
)
862 def Xor(*args
, **kwargs
):
863 """Xor(int x, int y, int width, int height) -> bool"""
864 return _gdi
.Region_Xor(*args
, **kwargs
)
866 def XorRect(*args
, **kwargs
):
867 """XorRect(Rect rect) -> bool"""
868 return _gdi
.Region_XorRect(*args
, **kwargs
)
870 def XorRegion(*args
, **kwargs
):
871 """XorRegion(Region region) -> bool"""
872 return _gdi
.Region_XorRegion(*args
, **kwargs
)
874 def ConvertToBitmap(*args
, **kwargs
):
875 """ConvertToBitmap() -> Bitmap"""
876 return _gdi
.Region_ConvertToBitmap(*args
, **kwargs
)
878 def UnionBitmap(*args
, **kwargs
):
879 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
880 return _gdi
.Region_UnionBitmap(*args
, **kwargs
)
883 class RegionPtr(Region
):
884 def __init__(self
, this
):
886 if not hasattr(self
,"thisown"): self
.thisown
= 0
887 self
.__class
__ = Region
888 _gdi
.Region_swigregister(RegionPtr
)
890 def RegionFromBitmap(*args
, **kwargs
):
891 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
892 val
= _gdi
.new_RegionFromBitmap(*args
, **kwargs
)
896 def RegionFromPoints(*args
, **kwargs
):
897 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
898 val
= _gdi
.new_RegionFromPoints(*args
, **kwargs
)
902 class RegionIterator(core
.Object
):
905 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
906 def __init__(self
, *args
, **kwargs
):
907 """__init__(Region region) -> RegionIterator"""
908 newobj
= _gdi
.new_RegionIterator(*args
, **kwargs
)
909 self
.this
= newobj
.this
912 def __del__(self
, destroy
=_gdi
.delete_RegionIterator
):
915 if self
.thisown
: destroy(self
)
918 def GetX(*args
, **kwargs
):
920 return _gdi
.RegionIterator_GetX(*args
, **kwargs
)
922 def GetY(*args
, **kwargs
):
924 return _gdi
.RegionIterator_GetY(*args
, **kwargs
)
926 def GetW(*args
, **kwargs
):
928 return _gdi
.RegionIterator_GetW(*args
, **kwargs
)
930 def GetWidth(*args
, **kwargs
):
931 """GetWidth() -> int"""
932 return _gdi
.RegionIterator_GetWidth(*args
, **kwargs
)
934 def GetH(*args
, **kwargs
):
936 return _gdi
.RegionIterator_GetH(*args
, **kwargs
)
938 def GetHeight(*args
, **kwargs
):
939 """GetHeight() -> int"""
940 return _gdi
.RegionIterator_GetHeight(*args
, **kwargs
)
942 def GetRect(*args
, **kwargs
):
943 """GetRect() -> Rect"""
944 return _gdi
.RegionIterator_GetRect(*args
, **kwargs
)
946 def HaveRects(*args
, **kwargs
):
947 """HaveRects() -> bool"""
948 return _gdi
.RegionIterator_HaveRects(*args
, **kwargs
)
950 def Reset(*args
, **kwargs
):
952 return _gdi
.RegionIterator_Reset(*args
, **kwargs
)
954 def Next(*args
, **kwargs
):
956 return _gdi
.RegionIterator_Next(*args
, **kwargs
)
958 def __nonzero__(*args
, **kwargs
):
959 """__nonzero__() -> bool"""
960 return _gdi
.RegionIterator___nonzero__(*args
, **kwargs
)
963 class RegionIteratorPtr(RegionIterator
):
964 def __init__(self
, this
):
966 if not hasattr(self
,"thisown"): self
.thisown
= 0
967 self
.__class
__ = RegionIterator
968 _gdi
.RegionIterator_swigregister(RegionIteratorPtr
)
970 #---------------------------------------------------------------------------
972 FONTFAMILY_DEFAULT
= _gdi
.FONTFAMILY_DEFAULT
973 FONTFAMILY_DECORATIVE
= _gdi
.FONTFAMILY_DECORATIVE
974 FONTFAMILY_ROMAN
= _gdi
.FONTFAMILY_ROMAN
975 FONTFAMILY_SCRIPT
= _gdi
.FONTFAMILY_SCRIPT
976 FONTFAMILY_SWISS
= _gdi
.FONTFAMILY_SWISS
977 FONTFAMILY_MODERN
= _gdi
.FONTFAMILY_MODERN
978 FONTFAMILY_TELETYPE
= _gdi
.FONTFAMILY_TELETYPE
979 FONTFAMILY_MAX
= _gdi
.FONTFAMILY_MAX
980 FONTFAMILY_UNKNOWN
= _gdi
.FONTFAMILY_UNKNOWN
981 FONTSTYLE_NORMAL
= _gdi
.FONTSTYLE_NORMAL
982 FONTSTYLE_ITALIC
= _gdi
.FONTSTYLE_ITALIC
983 FONTSTYLE_SLANT
= _gdi
.FONTSTYLE_SLANT
984 FONTSTYLE_MAX
= _gdi
.FONTSTYLE_MAX
985 FONTWEIGHT_NORMAL
= _gdi
.FONTWEIGHT_NORMAL
986 FONTWEIGHT_LIGHT
= _gdi
.FONTWEIGHT_LIGHT
987 FONTWEIGHT_BOLD
= _gdi
.FONTWEIGHT_BOLD
988 FONTWEIGHT_MAX
= _gdi
.FONTWEIGHT_MAX
989 FONTFLAG_DEFAULT
= _gdi
.FONTFLAG_DEFAULT
990 FONTFLAG_ITALIC
= _gdi
.FONTFLAG_ITALIC
991 FONTFLAG_SLANT
= _gdi
.FONTFLAG_SLANT
992 FONTFLAG_LIGHT
= _gdi
.FONTFLAG_LIGHT
993 FONTFLAG_BOLD
= _gdi
.FONTFLAG_BOLD
994 FONTFLAG_ANTIALIASED
= _gdi
.FONTFLAG_ANTIALIASED
995 FONTFLAG_NOT_ANTIALIASED
= _gdi
.FONTFLAG_NOT_ANTIALIASED
996 FONTFLAG_UNDERLINED
= _gdi
.FONTFLAG_UNDERLINED
997 FONTFLAG_STRIKETHROUGH
= _gdi
.FONTFLAG_STRIKETHROUGH
998 FONTFLAG_MASK
= _gdi
.FONTFLAG_MASK
999 FONTENCODING_SYSTEM
= _gdi
.FONTENCODING_SYSTEM
1000 FONTENCODING_DEFAULT
= _gdi
.FONTENCODING_DEFAULT
1001 FONTENCODING_ISO8859_1
= _gdi
.FONTENCODING_ISO8859_1
1002 FONTENCODING_ISO8859_2
= _gdi
.FONTENCODING_ISO8859_2
1003 FONTENCODING_ISO8859_3
= _gdi
.FONTENCODING_ISO8859_3
1004 FONTENCODING_ISO8859_4
= _gdi
.FONTENCODING_ISO8859_4
1005 FONTENCODING_ISO8859_5
= _gdi
.FONTENCODING_ISO8859_5
1006 FONTENCODING_ISO8859_6
= _gdi
.FONTENCODING_ISO8859_6
1007 FONTENCODING_ISO8859_7
= _gdi
.FONTENCODING_ISO8859_7
1008 FONTENCODING_ISO8859_8
= _gdi
.FONTENCODING_ISO8859_8
1009 FONTENCODING_ISO8859_9
= _gdi
.FONTENCODING_ISO8859_9
1010 FONTENCODING_ISO8859_10
= _gdi
.FONTENCODING_ISO8859_10
1011 FONTENCODING_ISO8859_11
= _gdi
.FONTENCODING_ISO8859_11
1012 FONTENCODING_ISO8859_12
= _gdi
.FONTENCODING_ISO8859_12
1013 FONTENCODING_ISO8859_13
= _gdi
.FONTENCODING_ISO8859_13
1014 FONTENCODING_ISO8859_14
= _gdi
.FONTENCODING_ISO8859_14
1015 FONTENCODING_ISO8859_15
= _gdi
.FONTENCODING_ISO8859_15
1016 FONTENCODING_ISO8859_MAX
= _gdi
.FONTENCODING_ISO8859_MAX
1017 FONTENCODING_KOI8
= _gdi
.FONTENCODING_KOI8
1018 FONTENCODING_ALTERNATIVE
= _gdi
.FONTENCODING_ALTERNATIVE
1019 FONTENCODING_BULGARIAN
= _gdi
.FONTENCODING_BULGARIAN
1020 FONTENCODING_CP437
= _gdi
.FONTENCODING_CP437
1021 FONTENCODING_CP850
= _gdi
.FONTENCODING_CP850
1022 FONTENCODING_CP852
= _gdi
.FONTENCODING_CP852
1023 FONTENCODING_CP855
= _gdi
.FONTENCODING_CP855
1024 FONTENCODING_CP866
= _gdi
.FONTENCODING_CP866
1025 FONTENCODING_CP874
= _gdi
.FONTENCODING_CP874
1026 FONTENCODING_CP932
= _gdi
.FONTENCODING_CP932
1027 FONTENCODING_CP936
= _gdi
.FONTENCODING_CP936
1028 FONTENCODING_CP949
= _gdi
.FONTENCODING_CP949
1029 FONTENCODING_CP950
= _gdi
.FONTENCODING_CP950
1030 FONTENCODING_CP1250
= _gdi
.FONTENCODING_CP1250
1031 FONTENCODING_CP1251
= _gdi
.FONTENCODING_CP1251
1032 FONTENCODING_CP1252
= _gdi
.FONTENCODING_CP1252
1033 FONTENCODING_CP1253
= _gdi
.FONTENCODING_CP1253
1034 FONTENCODING_CP1254
= _gdi
.FONTENCODING_CP1254
1035 FONTENCODING_CP1255
= _gdi
.FONTENCODING_CP1255
1036 FONTENCODING_CP1256
= _gdi
.FONTENCODING_CP1256
1037 FONTENCODING_CP1257
= _gdi
.FONTENCODING_CP1257
1038 FONTENCODING_CP12_MAX
= _gdi
.FONTENCODING_CP12_MAX
1039 FONTENCODING_UTF7
= _gdi
.FONTENCODING_UTF7
1040 FONTENCODING_UTF8
= _gdi
.FONTENCODING_UTF8
1041 FONTENCODING_EUC_JP
= _gdi
.FONTENCODING_EUC_JP
1042 FONTENCODING_UTF16BE
= _gdi
.FONTENCODING_UTF16BE
1043 FONTENCODING_UTF16LE
= _gdi
.FONTENCODING_UTF16LE
1044 FONTENCODING_UTF32BE
= _gdi
.FONTENCODING_UTF32BE
1045 FONTENCODING_UTF32LE
= _gdi
.FONTENCODING_UTF32LE
1046 FONTENCODING_MAX
= _gdi
.FONTENCODING_MAX
1047 FONTENCODING_UTF16
= _gdi
.FONTENCODING_UTF16
1048 FONTENCODING_UTF32
= _gdi
.FONTENCODING_UTF32
1049 FONTENCODING_UNICODE
= _gdi
.FONTENCODING_UNICODE
1050 FONTENCODING_GB2312
= _gdi
.FONTENCODING_GB2312
1051 FONTENCODING_BIG5
= _gdi
.FONTENCODING_BIG5
1052 FONTENCODING_SHIFT_JIS
= _gdi
.FONTENCODING_SHIFT_JIS
1053 #---------------------------------------------------------------------------
1055 class NativeFontInfo(object):
1058 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1059 def __init__(self
, *args
, **kwargs
):
1060 """__init__() -> NativeFontInfo"""
1061 newobj
= _gdi
.new_NativeFontInfo(*args
, **kwargs
)
1062 self
.this
= newobj
.this
1065 def __del__(self
, destroy
=_gdi
.delete_NativeFontInfo
):
1068 if self
.thisown
: destroy(self
)
1071 def Init(*args
, **kwargs
):
1073 return _gdi
.NativeFontInfo_Init(*args
, **kwargs
)
1075 def InitFromFont(*args
, **kwargs
):
1076 """InitFromFont(Font font)"""
1077 return _gdi
.NativeFontInfo_InitFromFont(*args
, **kwargs
)
1079 def GetPointSize(*args
, **kwargs
):
1080 """GetPointSize() -> int"""
1081 return _gdi
.NativeFontInfo_GetPointSize(*args
, **kwargs
)
1083 def GetStyle(*args
, **kwargs
):
1084 """GetStyle() -> wxFontStyle"""
1085 return _gdi
.NativeFontInfo_GetStyle(*args
, **kwargs
)
1087 def GetWeight(*args
, **kwargs
):
1088 """GetWeight() -> wxFontWeight"""
1089 return _gdi
.NativeFontInfo_GetWeight(*args
, **kwargs
)
1091 def GetUnderlined(*args
, **kwargs
):
1092 """GetUnderlined() -> bool"""
1093 return _gdi
.NativeFontInfo_GetUnderlined(*args
, **kwargs
)
1095 def GetFaceName(*args
, **kwargs
):
1096 """GetFaceName() -> wxString"""
1097 return _gdi
.NativeFontInfo_GetFaceName(*args
, **kwargs
)
1099 def GetFamily(*args
, **kwargs
):
1100 """GetFamily() -> wxFontFamily"""
1101 return _gdi
.NativeFontInfo_GetFamily(*args
, **kwargs
)
1103 def GetEncoding(*args
, **kwargs
):
1104 """GetEncoding() -> wxFontEncoding"""
1105 return _gdi
.NativeFontInfo_GetEncoding(*args
, **kwargs
)
1107 def SetPointSize(*args
, **kwargs
):
1108 """SetPointSize(int pointsize)"""
1109 return _gdi
.NativeFontInfo_SetPointSize(*args
, **kwargs
)
1111 def SetStyle(*args
, **kwargs
):
1112 """SetStyle(wxFontStyle style)"""
1113 return _gdi
.NativeFontInfo_SetStyle(*args
, **kwargs
)
1115 def SetWeight(*args
, **kwargs
):
1116 """SetWeight(wxFontWeight weight)"""
1117 return _gdi
.NativeFontInfo_SetWeight(*args
, **kwargs
)
1119 def SetUnderlined(*args
, **kwargs
):
1120 """SetUnderlined(bool underlined)"""
1121 return _gdi
.NativeFontInfo_SetUnderlined(*args
, **kwargs
)
1123 def SetFaceName(*args
, **kwargs
):
1124 """SetFaceName(wxString facename)"""
1125 return _gdi
.NativeFontInfo_SetFaceName(*args
, **kwargs
)
1127 def SetFamily(*args
, **kwargs
):
1128 """SetFamily(wxFontFamily family)"""
1129 return _gdi
.NativeFontInfo_SetFamily(*args
, **kwargs
)
1131 def SetEncoding(*args
, **kwargs
):
1132 """SetEncoding(wxFontEncoding encoding)"""
1133 return _gdi
.NativeFontInfo_SetEncoding(*args
, **kwargs
)
1135 def FromString(*args
, **kwargs
):
1136 """FromString(wxString s) -> bool"""
1137 return _gdi
.NativeFontInfo_FromString(*args
, **kwargs
)
1139 def ToString(*args
, **kwargs
):
1140 """ToString() -> wxString"""
1141 return _gdi
.NativeFontInfo_ToString(*args
, **kwargs
)
1143 def __str__(*args
, **kwargs
):
1144 """__str__() -> wxString"""
1145 return _gdi
.NativeFontInfo___str__(*args
, **kwargs
)
1147 def FromUserString(*args
, **kwargs
):
1148 """FromUserString(wxString s) -> bool"""
1149 return _gdi
.NativeFontInfo_FromUserString(*args
, **kwargs
)
1151 def ToUserString(*args
, **kwargs
):
1152 """ToUserString() -> wxString"""
1153 return _gdi
.NativeFontInfo_ToUserString(*args
, **kwargs
)
1156 class NativeFontInfoPtr(NativeFontInfo
):
1157 def __init__(self
, this
):
1159 if not hasattr(self
,"thisown"): self
.thisown
= 0
1160 self
.__class
__ = NativeFontInfo
1161 _gdi
.NativeFontInfo_swigregister(NativeFontInfoPtr
)
1163 class NativeEncodingInfo(object):
1166 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1167 facename
= property(_gdi
.NativeEncodingInfo_facename_get
, _gdi
.NativeEncodingInfo_facename_set
)
1168 encoding
= property(_gdi
.NativeEncodingInfo_encoding_get
, _gdi
.NativeEncodingInfo_encoding_set
)
1169 def __init__(self
, *args
, **kwargs
):
1170 """__init__() -> NativeEncodingInfo"""
1171 newobj
= _gdi
.new_NativeEncodingInfo(*args
, **kwargs
)
1172 self
.this
= newobj
.this
1175 def __del__(self
, destroy
=_gdi
.delete_NativeEncodingInfo
):
1178 if self
.thisown
: destroy(self
)
1181 def FromString(*args
, **kwargs
):
1182 """FromString(wxString s) -> bool"""
1183 return _gdi
.NativeEncodingInfo_FromString(*args
, **kwargs
)
1185 def ToString(*args
, **kwargs
):
1186 """ToString() -> wxString"""
1187 return _gdi
.NativeEncodingInfo_ToString(*args
, **kwargs
)
1190 class NativeEncodingInfoPtr(NativeEncodingInfo
):
1191 def __init__(self
, this
):
1193 if not hasattr(self
,"thisown"): self
.thisown
= 0
1194 self
.__class
__ = NativeEncodingInfo
1195 _gdi
.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr
)
1198 def GetNativeFontEncoding(*args
, **kwargs
):
1199 """GetNativeFontEncoding(wxFontEncoding encoding) -> NativeEncodingInfo"""
1200 return _gdi
.GetNativeFontEncoding(*args
, **kwargs
)
1202 def TestFontEncoding(*args
, **kwargs
):
1203 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1204 return _gdi
.TestFontEncoding(*args
, **kwargs
)
1205 #---------------------------------------------------------------------------
1207 class FontMapper(object):
1210 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1211 def __init__(self
, *args
, **kwargs
):
1212 """__init__() -> FontMapper"""
1213 newobj
= _gdi
.new_FontMapper(*args
, **kwargs
)
1214 self
.this
= newobj
.this
1217 def __del__(self
, destroy
=_gdi
.delete_FontMapper
):
1220 if self
.thisown
: destroy(self
)
1223 def Get(*args
, **kwargs
):
1224 """FontMapper.Get() -> FontMapper"""
1225 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1227 Get
= staticmethod(Get
)
1228 def Set(*args
, **kwargs
):
1229 """FontMapper.Set(FontMapper mapper) -> FontMapper"""
1230 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1232 Set
= staticmethod(Set
)
1233 def CharsetToEncoding(*args
, **kwargs
):
1234 """CharsetToEncoding(wxString charset, bool interactive=True) -> wxFontEncoding"""
1235 return _gdi
.FontMapper_CharsetToEncoding(*args
, **kwargs
)
1237 def GetSupportedEncodingsCount(*args
, **kwargs
):
1238 """FontMapper.GetSupportedEncodingsCount() -> size_t"""
1239 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1241 GetSupportedEncodingsCount
= staticmethod(GetSupportedEncodingsCount
)
1242 def GetEncoding(*args
, **kwargs
):
1243 """FontMapper.GetEncoding(size_t n) -> wxFontEncoding"""
1244 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1246 GetEncoding
= staticmethod(GetEncoding
)
1247 def GetEncodingName(*args
, **kwargs
):
1248 """FontMapper.GetEncodingName(wxFontEncoding encoding) -> wxString"""
1249 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1251 GetEncodingName
= staticmethod(GetEncodingName
)
1252 def GetEncodingDescription(*args
, **kwargs
):
1253 """FontMapper.GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1254 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1256 GetEncodingDescription
= staticmethod(GetEncodingDescription
)
1257 def SetConfig(*args
, **kwargs
):
1258 """SetConfig(wxConfigBase config)"""
1259 return _gdi
.FontMapper_SetConfig(*args
, **kwargs
)
1261 def SetConfigPath(*args
, **kwargs
):
1262 """SetConfigPath(wxString prefix)"""
1263 return _gdi
.FontMapper_SetConfigPath(*args
, **kwargs
)
1265 def GetDefaultConfigPath(*args
, **kwargs
):
1266 """FontMapper.GetDefaultConfigPath() -> wxString"""
1267 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1269 GetDefaultConfigPath
= staticmethod(GetDefaultConfigPath
)
1270 def GetAltForEncoding(*args
, **kwargs
):
1271 """GetAltForEncoding(wxFontEncoding encoding, wxString facename=wxPyEmptyString,
1272 bool interactive=True) -> PyObject"""
1273 return _gdi
.FontMapper_GetAltForEncoding(*args
, **kwargs
)
1275 def IsEncodingAvailable(*args
, **kwargs
):
1276 """IsEncodingAvailable(wxFontEncoding encoding, wxString facename=wxPyEmptyString) -> bool"""
1277 return _gdi
.FontMapper_IsEncodingAvailable(*args
, **kwargs
)
1279 def SetDialogParent(*args
, **kwargs
):
1280 """SetDialogParent(Window parent)"""
1281 return _gdi
.FontMapper_SetDialogParent(*args
, **kwargs
)
1283 def SetDialogTitle(*args
, **kwargs
):
1284 """SetDialogTitle(wxString title)"""
1285 return _gdi
.FontMapper_SetDialogTitle(*args
, **kwargs
)
1288 class FontMapperPtr(FontMapper
):
1289 def __init__(self
, this
):
1291 if not hasattr(self
,"thisown"): self
.thisown
= 0
1292 self
.__class
__ = FontMapper
1293 _gdi
.FontMapper_swigregister(FontMapperPtr
)
1295 def FontMapper_Get(*args
, **kwargs
):
1296 """FontMapper_Get() -> FontMapper"""
1297 return _gdi
.FontMapper_Get(*args
, **kwargs
)
1299 def FontMapper_Set(*args
, **kwargs
):
1300 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1301 return _gdi
.FontMapper_Set(*args
, **kwargs
)
1303 def FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
):
1304 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1305 return _gdi
.FontMapper_GetSupportedEncodingsCount(*args
, **kwargs
)
1307 def FontMapper_GetEncoding(*args
, **kwargs
):
1308 """FontMapper_GetEncoding(size_t n) -> wxFontEncoding"""
1309 return _gdi
.FontMapper_GetEncoding(*args
, **kwargs
)
1311 def FontMapper_GetEncodingName(*args
, **kwargs
):
1312 """FontMapper_GetEncodingName(wxFontEncoding encoding) -> wxString"""
1313 return _gdi
.FontMapper_GetEncodingName(*args
, **kwargs
)
1315 def FontMapper_GetEncodingDescription(*args
, **kwargs
):
1316 """FontMapper_GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1317 return _gdi
.FontMapper_GetEncodingDescription(*args
, **kwargs
)
1319 def FontMapper_GetDefaultConfigPath(*args
, **kwargs
):
1320 """FontMapper_GetDefaultConfigPath() -> wxString"""
1321 return _gdi
.FontMapper_GetDefaultConfigPath(*args
, **kwargs
)
1323 #---------------------------------------------------------------------------
1325 class Font(GDIObject
):
1328 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1329 def __init__(self
, *args
, **kwargs
):
1330 """__init__(int pointSize, int family, int style, int weight, bool underline=False,
1331 wxString face=wxPyEmptyString,
1332 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font"""
1333 newobj
= _gdi
.new_Font(*args
, **kwargs
)
1334 self
.this
= newobj
.this
1337 def __del__(self
, destroy
=_gdi
.delete_Font
):
1340 if self
.thisown
: destroy(self
)
1343 def Ok(*args
, **kwargs
):
1345 return _gdi
.Font_Ok(*args
, **kwargs
)
1347 def __nonzero__(self
): return self
.Ok()
1348 def __eq__(*args
, **kwargs
):
1349 """__eq__(Font font) -> bool"""
1350 return _gdi
.Font___eq__(*args
, **kwargs
)
1352 def __ne__(*args
, **kwargs
):
1353 """__ne__(Font font) -> bool"""
1354 return _gdi
.Font___ne__(*args
, **kwargs
)
1356 def GetPointSize(*args
, **kwargs
):
1357 """GetPointSize() -> int"""
1358 return _gdi
.Font_GetPointSize(*args
, **kwargs
)
1360 def GetFamily(*args
, **kwargs
):
1361 """GetFamily() -> int"""
1362 return _gdi
.Font_GetFamily(*args
, **kwargs
)
1364 def GetStyle(*args
, **kwargs
):
1365 """GetStyle() -> int"""
1366 return _gdi
.Font_GetStyle(*args
, **kwargs
)
1368 def GetWeight(*args
, **kwargs
):
1369 """GetWeight() -> int"""
1370 return _gdi
.Font_GetWeight(*args
, **kwargs
)
1372 def GetUnderlined(*args
, **kwargs
):
1373 """GetUnderlined() -> bool"""
1374 return _gdi
.Font_GetUnderlined(*args
, **kwargs
)
1376 def GetFaceName(*args
, **kwargs
):
1377 """GetFaceName() -> wxString"""
1378 return _gdi
.Font_GetFaceName(*args
, **kwargs
)
1380 def GetEncoding(*args
, **kwargs
):
1381 """GetEncoding() -> wxFontEncoding"""
1382 return _gdi
.Font_GetEncoding(*args
, **kwargs
)
1384 def GetNativeFontInfo(*args
, **kwargs
):
1385 """GetNativeFontInfo() -> NativeFontInfo"""
1386 return _gdi
.Font_GetNativeFontInfo(*args
, **kwargs
)
1388 def IsFixedWidth(*args
, **kwargs
):
1389 """IsFixedWidth() -> bool"""
1390 return _gdi
.Font_IsFixedWidth(*args
, **kwargs
)
1392 def GetNativeFontInfoDesc(*args
, **kwargs
):
1393 """GetNativeFontInfoDesc() -> wxString"""
1394 return _gdi
.Font_GetNativeFontInfoDesc(*args
, **kwargs
)
1396 def GetNativeFontInfoUserDesc(*args
, **kwargs
):
1397 """GetNativeFontInfoUserDesc() -> wxString"""
1398 return _gdi
.Font_GetNativeFontInfoUserDesc(*args
, **kwargs
)
1400 def SetPointSize(*args
, **kwargs
):
1401 """SetPointSize(int pointSize)"""
1402 return _gdi
.Font_SetPointSize(*args
, **kwargs
)
1404 def SetFamily(*args
, **kwargs
):
1405 """SetFamily(int family)"""
1406 return _gdi
.Font_SetFamily(*args
, **kwargs
)
1408 def SetStyle(*args
, **kwargs
):
1409 """SetStyle(int style)"""
1410 return _gdi
.Font_SetStyle(*args
, **kwargs
)
1412 def SetWeight(*args
, **kwargs
):
1413 """SetWeight(int weight)"""
1414 return _gdi
.Font_SetWeight(*args
, **kwargs
)
1416 def SetFaceName(*args
, **kwargs
):
1417 """SetFaceName(wxString faceName)"""
1418 return _gdi
.Font_SetFaceName(*args
, **kwargs
)
1420 def SetUnderlined(*args
, **kwargs
):
1421 """SetUnderlined(bool underlined)"""
1422 return _gdi
.Font_SetUnderlined(*args
, **kwargs
)
1424 def SetEncoding(*args
, **kwargs
):
1425 """SetEncoding(wxFontEncoding encoding)"""
1426 return _gdi
.Font_SetEncoding(*args
, **kwargs
)
1428 def SetNativeFontInfo(*args
, **kwargs
):
1429 """SetNativeFontInfo(NativeFontInfo info)"""
1430 return _gdi
.Font_SetNativeFontInfo(*args
, **kwargs
)
1432 def SetNativeFontInfoFromString(*args
, **kwargs
):
1433 """SetNativeFontInfoFromString(wxString info)"""
1434 return _gdi
.Font_SetNativeFontInfoFromString(*args
, **kwargs
)
1436 def SetNativeFontInfoUserDesc(*args
, **kwargs
):
1437 """SetNativeFontInfoUserDesc(wxString info)"""
1438 return _gdi
.Font_SetNativeFontInfoUserDesc(*args
, **kwargs
)
1440 def GetFamilyString(*args
, **kwargs
):
1441 """GetFamilyString() -> wxString"""
1442 return _gdi
.Font_GetFamilyString(*args
, **kwargs
)
1444 def GetStyleString(*args
, **kwargs
):
1445 """GetStyleString() -> wxString"""
1446 return _gdi
.Font_GetStyleString(*args
, **kwargs
)
1448 def GetWeightString(*args
, **kwargs
):
1449 """GetWeightString() -> wxString"""
1450 return _gdi
.Font_GetWeightString(*args
, **kwargs
)
1452 def SetNoAntiAliasing(*args
, **kwargs
):
1453 """SetNoAntiAliasing(bool no=True)"""
1454 return _gdi
.Font_SetNoAntiAliasing(*args
, **kwargs
)
1456 def GetNoAntiAliasing(*args
, **kwargs
):
1457 """GetNoAntiAliasing() -> bool"""
1458 return _gdi
.Font_GetNoAntiAliasing(*args
, **kwargs
)
1460 def GetDefaultEncoding(*args
, **kwargs
):
1461 """Font.GetDefaultEncoding() -> wxFontEncoding"""
1462 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1464 GetDefaultEncoding
= staticmethod(GetDefaultEncoding
)
1465 def SetDefaultEncoding(*args
, **kwargs
):
1466 """Font.SetDefaultEncoding(wxFontEncoding encoding)"""
1467 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1469 SetDefaultEncoding
= staticmethod(SetDefaultEncoding
)
1471 class FontPtr(Font
):
1472 def __init__(self
, this
):
1474 if not hasattr(self
,"thisown"): self
.thisown
= 0
1475 self
.__class
__ = Font
1476 _gdi
.Font_swigregister(FontPtr
)
1478 def FontFromNativeInfo(*args
, **kwargs
):
1479 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1480 val
= _gdi
.new_FontFromNativeInfo(*args
, **kwargs
)
1484 def FontFromNativeInfoString(*args
, **kwargs
):
1485 """FontFromNativeInfoString(wxString info) -> Font"""
1486 val
= _gdi
.new_FontFromNativeInfoString(*args
, **kwargs
)
1490 def Font2(*args
, **kwargs
):
1491 """Font2(int pointSize, wxFontFamily family, int flags=FONTFLAG_DEFAULT,
1492 wxString face=wxPyEmptyString, wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font"""
1493 val
= _gdi
.new_Font2(*args
, **kwargs
)
1497 def Font_GetDefaultEncoding(*args
, **kwargs
):
1498 """Font_GetDefaultEncoding() -> wxFontEncoding"""
1499 return _gdi
.Font_GetDefaultEncoding(*args
, **kwargs
)
1501 def Font_SetDefaultEncoding(*args
, **kwargs
):
1502 """Font_SetDefaultEncoding(wxFontEncoding encoding)"""
1503 return _gdi
.Font_SetDefaultEncoding(*args
, **kwargs
)
1505 #---------------------------------------------------------------------------
1507 class FontEnumerator(object):
1510 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1511 def __init__(self
, *args
, **kwargs
):
1512 """__init__() -> FontEnumerator"""
1513 newobj
= _gdi
.new_FontEnumerator(*args
, **kwargs
)
1514 self
.this
= newobj
.this
1517 self
._setCallbackInfo
(self
, FontEnumerator
, 0)
1519 def __del__(self
, destroy
=_gdi
.delete_FontEnumerator
):
1522 if self
.thisown
: destroy(self
)
1525 def _setCallbackInfo(*args
, **kwargs
):
1526 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1527 return _gdi
.FontEnumerator__setCallbackInfo(*args
, **kwargs
)
1529 def EnumerateFacenames(*args
, **kwargs
):
1530 """EnumerateFacenames(wxFontEncoding encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1531 return _gdi
.FontEnumerator_EnumerateFacenames(*args
, **kwargs
)
1533 def EnumerateEncodings(*args
, **kwargs
):
1534 """EnumerateEncodings(wxString facename=wxPyEmptyString) -> bool"""
1535 return _gdi
.FontEnumerator_EnumerateEncodings(*args
, **kwargs
)
1537 def GetEncodings(*args
, **kwargs
):
1538 """GetEncodings() -> PyObject"""
1539 return _gdi
.FontEnumerator_GetEncodings(*args
, **kwargs
)
1541 def GetFacenames(*args
, **kwargs
):
1542 """GetFacenames() -> PyObject"""
1543 return _gdi
.FontEnumerator_GetFacenames(*args
, **kwargs
)
1546 class FontEnumeratorPtr(FontEnumerator
):
1547 def __init__(self
, this
):
1549 if not hasattr(self
,"thisown"): self
.thisown
= 0
1550 self
.__class
__ = FontEnumerator
1551 _gdi
.FontEnumerator_swigregister(FontEnumeratorPtr
)
1553 #---------------------------------------------------------------------------
1555 LANGUAGE_DEFAULT
= _gdi
.LANGUAGE_DEFAULT
1556 LANGUAGE_UNKNOWN
= _gdi
.LANGUAGE_UNKNOWN
1557 LANGUAGE_ABKHAZIAN
= _gdi
.LANGUAGE_ABKHAZIAN
1558 LANGUAGE_AFAR
= _gdi
.LANGUAGE_AFAR
1559 LANGUAGE_AFRIKAANS
= _gdi
.LANGUAGE_AFRIKAANS
1560 LANGUAGE_ALBANIAN
= _gdi
.LANGUAGE_ALBANIAN
1561 LANGUAGE_AMHARIC
= _gdi
.LANGUAGE_AMHARIC
1562 LANGUAGE_ARABIC
= _gdi
.LANGUAGE_ARABIC
1563 LANGUAGE_ARABIC_ALGERIA
= _gdi
.LANGUAGE_ARABIC_ALGERIA
1564 LANGUAGE_ARABIC_BAHRAIN
= _gdi
.LANGUAGE_ARABIC_BAHRAIN
1565 LANGUAGE_ARABIC_EGYPT
= _gdi
.LANGUAGE_ARABIC_EGYPT
1566 LANGUAGE_ARABIC_IRAQ
= _gdi
.LANGUAGE_ARABIC_IRAQ
1567 LANGUAGE_ARABIC_JORDAN
= _gdi
.LANGUAGE_ARABIC_JORDAN
1568 LANGUAGE_ARABIC_KUWAIT
= _gdi
.LANGUAGE_ARABIC_KUWAIT
1569 LANGUAGE_ARABIC_LEBANON
= _gdi
.LANGUAGE_ARABIC_LEBANON
1570 LANGUAGE_ARABIC_LIBYA
= _gdi
.LANGUAGE_ARABIC_LIBYA
1571 LANGUAGE_ARABIC_MOROCCO
= _gdi
.LANGUAGE_ARABIC_MOROCCO
1572 LANGUAGE_ARABIC_OMAN
= _gdi
.LANGUAGE_ARABIC_OMAN
1573 LANGUAGE_ARABIC_QATAR
= _gdi
.LANGUAGE_ARABIC_QATAR
1574 LANGUAGE_ARABIC_SAUDI_ARABIA
= _gdi
.LANGUAGE_ARABIC_SAUDI_ARABIA
1575 LANGUAGE_ARABIC_SUDAN
= _gdi
.LANGUAGE_ARABIC_SUDAN
1576 LANGUAGE_ARABIC_SYRIA
= _gdi
.LANGUAGE_ARABIC_SYRIA
1577 LANGUAGE_ARABIC_TUNISIA
= _gdi
.LANGUAGE_ARABIC_TUNISIA
1578 LANGUAGE_ARABIC_UAE
= _gdi
.LANGUAGE_ARABIC_UAE
1579 LANGUAGE_ARABIC_YEMEN
= _gdi
.LANGUAGE_ARABIC_YEMEN
1580 LANGUAGE_ARMENIAN
= _gdi
.LANGUAGE_ARMENIAN
1581 LANGUAGE_ASSAMESE
= _gdi
.LANGUAGE_ASSAMESE
1582 LANGUAGE_AYMARA
= _gdi
.LANGUAGE_AYMARA
1583 LANGUAGE_AZERI
= _gdi
.LANGUAGE_AZERI
1584 LANGUAGE_AZERI_CYRILLIC
= _gdi
.LANGUAGE_AZERI_CYRILLIC
1585 LANGUAGE_AZERI_LATIN
= _gdi
.LANGUAGE_AZERI_LATIN
1586 LANGUAGE_BASHKIR
= _gdi
.LANGUAGE_BASHKIR
1587 LANGUAGE_BASQUE
= _gdi
.LANGUAGE_BASQUE
1588 LANGUAGE_BELARUSIAN
= _gdi
.LANGUAGE_BELARUSIAN
1589 LANGUAGE_BENGALI
= _gdi
.LANGUAGE_BENGALI
1590 LANGUAGE_BHUTANI
= _gdi
.LANGUAGE_BHUTANI
1591 LANGUAGE_BIHARI
= _gdi
.LANGUAGE_BIHARI
1592 LANGUAGE_BISLAMA
= _gdi
.LANGUAGE_BISLAMA
1593 LANGUAGE_BRETON
= _gdi
.LANGUAGE_BRETON
1594 LANGUAGE_BULGARIAN
= _gdi
.LANGUAGE_BULGARIAN
1595 LANGUAGE_BURMESE
= _gdi
.LANGUAGE_BURMESE
1596 LANGUAGE_CAMBODIAN
= _gdi
.LANGUAGE_CAMBODIAN
1597 LANGUAGE_CATALAN
= _gdi
.LANGUAGE_CATALAN
1598 LANGUAGE_CHINESE
= _gdi
.LANGUAGE_CHINESE
1599 LANGUAGE_CHINESE_SIMPLIFIED
= _gdi
.LANGUAGE_CHINESE_SIMPLIFIED
1600 LANGUAGE_CHINESE_TRADITIONAL
= _gdi
.LANGUAGE_CHINESE_TRADITIONAL
1601 LANGUAGE_CHINESE_HONGKONG
= _gdi
.LANGUAGE_CHINESE_HONGKONG
1602 LANGUAGE_CHINESE_MACAU
= _gdi
.LANGUAGE_CHINESE_MACAU
1603 LANGUAGE_CHINESE_SINGAPORE
= _gdi
.LANGUAGE_CHINESE_SINGAPORE
1604 LANGUAGE_CHINESE_TAIWAN
= _gdi
.LANGUAGE_CHINESE_TAIWAN
1605 LANGUAGE_CORSICAN
= _gdi
.LANGUAGE_CORSICAN
1606 LANGUAGE_CROATIAN
= _gdi
.LANGUAGE_CROATIAN
1607 LANGUAGE_CZECH
= _gdi
.LANGUAGE_CZECH
1608 LANGUAGE_DANISH
= _gdi
.LANGUAGE_DANISH
1609 LANGUAGE_DUTCH
= _gdi
.LANGUAGE_DUTCH
1610 LANGUAGE_DUTCH_BELGIAN
= _gdi
.LANGUAGE_DUTCH_BELGIAN
1611 LANGUAGE_ENGLISH
= _gdi
.LANGUAGE_ENGLISH
1612 LANGUAGE_ENGLISH_UK
= _gdi
.LANGUAGE_ENGLISH_UK
1613 LANGUAGE_ENGLISH_US
= _gdi
.LANGUAGE_ENGLISH_US
1614 LANGUAGE_ENGLISH_AUSTRALIA
= _gdi
.LANGUAGE_ENGLISH_AUSTRALIA
1615 LANGUAGE_ENGLISH_BELIZE
= _gdi
.LANGUAGE_ENGLISH_BELIZE
1616 LANGUAGE_ENGLISH_BOTSWANA
= _gdi
.LANGUAGE_ENGLISH_BOTSWANA
1617 LANGUAGE_ENGLISH_CANADA
= _gdi
.LANGUAGE_ENGLISH_CANADA
1618 LANGUAGE_ENGLISH_CARIBBEAN
= _gdi
.LANGUAGE_ENGLISH_CARIBBEAN
1619 LANGUAGE_ENGLISH_DENMARK
= _gdi
.LANGUAGE_ENGLISH_DENMARK
1620 LANGUAGE_ENGLISH_EIRE
= _gdi
.LANGUAGE_ENGLISH_EIRE
1621 LANGUAGE_ENGLISH_JAMAICA
= _gdi
.LANGUAGE_ENGLISH_JAMAICA
1622 LANGUAGE_ENGLISH_NEW_ZEALAND
= _gdi
.LANGUAGE_ENGLISH_NEW_ZEALAND
1623 LANGUAGE_ENGLISH_PHILIPPINES
= _gdi
.LANGUAGE_ENGLISH_PHILIPPINES
1624 LANGUAGE_ENGLISH_SOUTH_AFRICA
= _gdi
.LANGUAGE_ENGLISH_SOUTH_AFRICA
1625 LANGUAGE_ENGLISH_TRINIDAD
= _gdi
.LANGUAGE_ENGLISH_TRINIDAD
1626 LANGUAGE_ENGLISH_ZIMBABWE
= _gdi
.LANGUAGE_ENGLISH_ZIMBABWE
1627 LANGUAGE_ESPERANTO
= _gdi
.LANGUAGE_ESPERANTO
1628 LANGUAGE_ESTONIAN
= _gdi
.LANGUAGE_ESTONIAN
1629 LANGUAGE_FAEROESE
= _gdi
.LANGUAGE_FAEROESE
1630 LANGUAGE_FARSI
= _gdi
.LANGUAGE_FARSI
1631 LANGUAGE_FIJI
= _gdi
.LANGUAGE_FIJI
1632 LANGUAGE_FINNISH
= _gdi
.LANGUAGE_FINNISH
1633 LANGUAGE_FRENCH
= _gdi
.LANGUAGE_FRENCH
1634 LANGUAGE_FRENCH_BELGIAN
= _gdi
.LANGUAGE_FRENCH_BELGIAN
1635 LANGUAGE_FRENCH_CANADIAN
= _gdi
.LANGUAGE_FRENCH_CANADIAN
1636 LANGUAGE_FRENCH_LUXEMBOURG
= _gdi
.LANGUAGE_FRENCH_LUXEMBOURG
1637 LANGUAGE_FRENCH_MONACO
= _gdi
.LANGUAGE_FRENCH_MONACO
1638 LANGUAGE_FRENCH_SWISS
= _gdi
.LANGUAGE_FRENCH_SWISS
1639 LANGUAGE_FRISIAN
= _gdi
.LANGUAGE_FRISIAN
1640 LANGUAGE_GALICIAN
= _gdi
.LANGUAGE_GALICIAN
1641 LANGUAGE_GEORGIAN
= _gdi
.LANGUAGE_GEORGIAN
1642 LANGUAGE_GERMAN
= _gdi
.LANGUAGE_GERMAN
1643 LANGUAGE_GERMAN_AUSTRIAN
= _gdi
.LANGUAGE_GERMAN_AUSTRIAN
1644 LANGUAGE_GERMAN_BELGIUM
= _gdi
.LANGUAGE_GERMAN_BELGIUM
1645 LANGUAGE_GERMAN_LIECHTENSTEIN
= _gdi
.LANGUAGE_GERMAN_LIECHTENSTEIN
1646 LANGUAGE_GERMAN_LUXEMBOURG
= _gdi
.LANGUAGE_GERMAN_LUXEMBOURG
1647 LANGUAGE_GERMAN_SWISS
= _gdi
.LANGUAGE_GERMAN_SWISS
1648 LANGUAGE_GREEK
= _gdi
.LANGUAGE_GREEK
1649 LANGUAGE_GREENLANDIC
= _gdi
.LANGUAGE_GREENLANDIC
1650 LANGUAGE_GUARANI
= _gdi
.LANGUAGE_GUARANI
1651 LANGUAGE_GUJARATI
= _gdi
.LANGUAGE_GUJARATI
1652 LANGUAGE_HAUSA
= _gdi
.LANGUAGE_HAUSA
1653 LANGUAGE_HEBREW
= _gdi
.LANGUAGE_HEBREW
1654 LANGUAGE_HINDI
= _gdi
.LANGUAGE_HINDI
1655 LANGUAGE_HUNGARIAN
= _gdi
.LANGUAGE_HUNGARIAN
1656 LANGUAGE_ICELANDIC
= _gdi
.LANGUAGE_ICELANDIC
1657 LANGUAGE_INDONESIAN
= _gdi
.LANGUAGE_INDONESIAN
1658 LANGUAGE_INTERLINGUA
= _gdi
.LANGUAGE_INTERLINGUA
1659 LANGUAGE_INTERLINGUE
= _gdi
.LANGUAGE_INTERLINGUE
1660 LANGUAGE_INUKTITUT
= _gdi
.LANGUAGE_INUKTITUT
1661 LANGUAGE_INUPIAK
= _gdi
.LANGUAGE_INUPIAK
1662 LANGUAGE_IRISH
= _gdi
.LANGUAGE_IRISH
1663 LANGUAGE_ITALIAN
= _gdi
.LANGUAGE_ITALIAN
1664 LANGUAGE_ITALIAN_SWISS
= _gdi
.LANGUAGE_ITALIAN_SWISS
1665 LANGUAGE_JAPANESE
= _gdi
.LANGUAGE_JAPANESE
1666 LANGUAGE_JAVANESE
= _gdi
.LANGUAGE_JAVANESE
1667 LANGUAGE_KANNADA
= _gdi
.LANGUAGE_KANNADA
1668 LANGUAGE_KASHMIRI
= _gdi
.LANGUAGE_KASHMIRI
1669 LANGUAGE_KASHMIRI_INDIA
= _gdi
.LANGUAGE_KASHMIRI_INDIA
1670 LANGUAGE_KAZAKH
= _gdi
.LANGUAGE_KAZAKH
1671 LANGUAGE_KERNEWEK
= _gdi
.LANGUAGE_KERNEWEK
1672 LANGUAGE_KINYARWANDA
= _gdi
.LANGUAGE_KINYARWANDA
1673 LANGUAGE_KIRGHIZ
= _gdi
.LANGUAGE_KIRGHIZ
1674 LANGUAGE_KIRUNDI
= _gdi
.LANGUAGE_KIRUNDI
1675 LANGUAGE_KONKANI
= _gdi
.LANGUAGE_KONKANI
1676 LANGUAGE_KOREAN
= _gdi
.LANGUAGE_KOREAN
1677 LANGUAGE_KURDISH
= _gdi
.LANGUAGE_KURDISH
1678 LANGUAGE_LAOTHIAN
= _gdi
.LANGUAGE_LAOTHIAN
1679 LANGUAGE_LATIN
= _gdi
.LANGUAGE_LATIN
1680 LANGUAGE_LATVIAN
= _gdi
.LANGUAGE_LATVIAN
1681 LANGUAGE_LINGALA
= _gdi
.LANGUAGE_LINGALA
1682 LANGUAGE_LITHUANIAN
= _gdi
.LANGUAGE_LITHUANIAN
1683 LANGUAGE_MACEDONIAN
= _gdi
.LANGUAGE_MACEDONIAN
1684 LANGUAGE_MALAGASY
= _gdi
.LANGUAGE_MALAGASY
1685 LANGUAGE_MALAY
= _gdi
.LANGUAGE_MALAY
1686 LANGUAGE_MALAYALAM
= _gdi
.LANGUAGE_MALAYALAM
1687 LANGUAGE_MALAY_BRUNEI_DARUSSALAM
= _gdi
.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1688 LANGUAGE_MALAY_MALAYSIA
= _gdi
.LANGUAGE_MALAY_MALAYSIA
1689 LANGUAGE_MALTESE
= _gdi
.LANGUAGE_MALTESE
1690 LANGUAGE_MANIPURI
= _gdi
.LANGUAGE_MANIPURI
1691 LANGUAGE_MAORI
= _gdi
.LANGUAGE_MAORI
1692 LANGUAGE_MARATHI
= _gdi
.LANGUAGE_MARATHI
1693 LANGUAGE_MOLDAVIAN
= _gdi
.LANGUAGE_MOLDAVIAN
1694 LANGUAGE_MONGOLIAN
= _gdi
.LANGUAGE_MONGOLIAN
1695 LANGUAGE_NAURU
= _gdi
.LANGUAGE_NAURU
1696 LANGUAGE_NEPALI
= _gdi
.LANGUAGE_NEPALI
1697 LANGUAGE_NEPALI_INDIA
= _gdi
.LANGUAGE_NEPALI_INDIA
1698 LANGUAGE_NORWEGIAN_BOKMAL
= _gdi
.LANGUAGE_NORWEGIAN_BOKMAL
1699 LANGUAGE_NORWEGIAN_NYNORSK
= _gdi
.LANGUAGE_NORWEGIAN_NYNORSK
1700 LANGUAGE_OCCITAN
= _gdi
.LANGUAGE_OCCITAN
1701 LANGUAGE_ORIYA
= _gdi
.LANGUAGE_ORIYA
1702 LANGUAGE_OROMO
= _gdi
.LANGUAGE_OROMO
1703 LANGUAGE_PASHTO
= _gdi
.LANGUAGE_PASHTO
1704 LANGUAGE_POLISH
= _gdi
.LANGUAGE_POLISH
1705 LANGUAGE_PORTUGUESE
= _gdi
.LANGUAGE_PORTUGUESE
1706 LANGUAGE_PORTUGUESE_BRAZILIAN
= _gdi
.LANGUAGE_PORTUGUESE_BRAZILIAN
1707 LANGUAGE_PUNJABI
= _gdi
.LANGUAGE_PUNJABI
1708 LANGUAGE_QUECHUA
= _gdi
.LANGUAGE_QUECHUA
1709 LANGUAGE_RHAETO_ROMANCE
= _gdi
.LANGUAGE_RHAETO_ROMANCE
1710 LANGUAGE_ROMANIAN
= _gdi
.LANGUAGE_ROMANIAN
1711 LANGUAGE_RUSSIAN
= _gdi
.LANGUAGE_RUSSIAN
1712 LANGUAGE_RUSSIAN_UKRAINE
= _gdi
.LANGUAGE_RUSSIAN_UKRAINE
1713 LANGUAGE_SAMOAN
= _gdi
.LANGUAGE_SAMOAN
1714 LANGUAGE_SANGHO
= _gdi
.LANGUAGE_SANGHO
1715 LANGUAGE_SANSKRIT
= _gdi
.LANGUAGE_SANSKRIT
1716 LANGUAGE_SCOTS_GAELIC
= _gdi
.LANGUAGE_SCOTS_GAELIC
1717 LANGUAGE_SERBIAN
= _gdi
.LANGUAGE_SERBIAN
1718 LANGUAGE_SERBIAN_CYRILLIC
= _gdi
.LANGUAGE_SERBIAN_CYRILLIC
1719 LANGUAGE_SERBIAN_LATIN
= _gdi
.LANGUAGE_SERBIAN_LATIN
1720 LANGUAGE_SERBO_CROATIAN
= _gdi
.LANGUAGE_SERBO_CROATIAN
1721 LANGUAGE_SESOTHO
= _gdi
.LANGUAGE_SESOTHO
1722 LANGUAGE_SETSWANA
= _gdi
.LANGUAGE_SETSWANA
1723 LANGUAGE_SHONA
= _gdi
.LANGUAGE_SHONA
1724 LANGUAGE_SINDHI
= _gdi
.LANGUAGE_SINDHI
1725 LANGUAGE_SINHALESE
= _gdi
.LANGUAGE_SINHALESE
1726 LANGUAGE_SISWATI
= _gdi
.LANGUAGE_SISWATI
1727 LANGUAGE_SLOVAK
= _gdi
.LANGUAGE_SLOVAK
1728 LANGUAGE_SLOVENIAN
= _gdi
.LANGUAGE_SLOVENIAN
1729 LANGUAGE_SOMALI
= _gdi
.LANGUAGE_SOMALI
1730 LANGUAGE_SPANISH
= _gdi
.LANGUAGE_SPANISH
1731 LANGUAGE_SPANISH_ARGENTINA
= _gdi
.LANGUAGE_SPANISH_ARGENTINA
1732 LANGUAGE_SPANISH_BOLIVIA
= _gdi
.LANGUAGE_SPANISH_BOLIVIA
1733 LANGUAGE_SPANISH_CHILE
= _gdi
.LANGUAGE_SPANISH_CHILE
1734 LANGUAGE_SPANISH_COLOMBIA
= _gdi
.LANGUAGE_SPANISH_COLOMBIA
1735 LANGUAGE_SPANISH_COSTA_RICA
= _gdi
.LANGUAGE_SPANISH_COSTA_RICA
1736 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
= _gdi
.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
1737 LANGUAGE_SPANISH_ECUADOR
= _gdi
.LANGUAGE_SPANISH_ECUADOR
1738 LANGUAGE_SPANISH_EL_SALVADOR
= _gdi
.LANGUAGE_SPANISH_EL_SALVADOR
1739 LANGUAGE_SPANISH_GUATEMALA
= _gdi
.LANGUAGE_SPANISH_GUATEMALA
1740 LANGUAGE_SPANISH_HONDURAS
= _gdi
.LANGUAGE_SPANISH_HONDURAS
1741 LANGUAGE_SPANISH_MEXICAN
= _gdi
.LANGUAGE_SPANISH_MEXICAN
1742 LANGUAGE_SPANISH_MODERN
= _gdi
.LANGUAGE_SPANISH_MODERN
1743 LANGUAGE_SPANISH_NICARAGUA
= _gdi
.LANGUAGE_SPANISH_NICARAGUA
1744 LANGUAGE_SPANISH_PANAMA
= _gdi
.LANGUAGE_SPANISH_PANAMA
1745 LANGUAGE_SPANISH_PARAGUAY
= _gdi
.LANGUAGE_SPANISH_PARAGUAY
1746 LANGUAGE_SPANISH_PERU
= _gdi
.LANGUAGE_SPANISH_PERU
1747 LANGUAGE_SPANISH_PUERTO_RICO
= _gdi
.LANGUAGE_SPANISH_PUERTO_RICO
1748 LANGUAGE_SPANISH_URUGUAY
= _gdi
.LANGUAGE_SPANISH_URUGUAY
1749 LANGUAGE_SPANISH_US
= _gdi
.LANGUAGE_SPANISH_US
1750 LANGUAGE_SPANISH_VENEZUELA
= _gdi
.LANGUAGE_SPANISH_VENEZUELA
1751 LANGUAGE_SUNDANESE
= _gdi
.LANGUAGE_SUNDANESE
1752 LANGUAGE_SWAHILI
= _gdi
.LANGUAGE_SWAHILI
1753 LANGUAGE_SWEDISH
= _gdi
.LANGUAGE_SWEDISH
1754 LANGUAGE_SWEDISH_FINLAND
= _gdi
.LANGUAGE_SWEDISH_FINLAND
1755 LANGUAGE_TAGALOG
= _gdi
.LANGUAGE_TAGALOG
1756 LANGUAGE_TAJIK
= _gdi
.LANGUAGE_TAJIK
1757 LANGUAGE_TAMIL
= _gdi
.LANGUAGE_TAMIL
1758 LANGUAGE_TATAR
= _gdi
.LANGUAGE_TATAR
1759 LANGUAGE_TELUGU
= _gdi
.LANGUAGE_TELUGU
1760 LANGUAGE_THAI
= _gdi
.LANGUAGE_THAI
1761 LANGUAGE_TIBETAN
= _gdi
.LANGUAGE_TIBETAN
1762 LANGUAGE_TIGRINYA
= _gdi
.LANGUAGE_TIGRINYA
1763 LANGUAGE_TONGA
= _gdi
.LANGUAGE_TONGA
1764 LANGUAGE_TSONGA
= _gdi
.LANGUAGE_TSONGA
1765 LANGUAGE_TURKISH
= _gdi
.LANGUAGE_TURKISH
1766 LANGUAGE_TURKMEN
= _gdi
.LANGUAGE_TURKMEN
1767 LANGUAGE_TWI
= _gdi
.LANGUAGE_TWI
1768 LANGUAGE_UIGHUR
= _gdi
.LANGUAGE_UIGHUR
1769 LANGUAGE_UKRAINIAN
= _gdi
.LANGUAGE_UKRAINIAN
1770 LANGUAGE_URDU
= _gdi
.LANGUAGE_URDU
1771 LANGUAGE_URDU_INDIA
= _gdi
.LANGUAGE_URDU_INDIA
1772 LANGUAGE_URDU_PAKISTAN
= _gdi
.LANGUAGE_URDU_PAKISTAN
1773 LANGUAGE_UZBEK
= _gdi
.LANGUAGE_UZBEK
1774 LANGUAGE_UZBEK_CYRILLIC
= _gdi
.LANGUAGE_UZBEK_CYRILLIC
1775 LANGUAGE_UZBEK_LATIN
= _gdi
.LANGUAGE_UZBEK_LATIN
1776 LANGUAGE_VIETNAMESE
= _gdi
.LANGUAGE_VIETNAMESE
1777 LANGUAGE_VOLAPUK
= _gdi
.LANGUAGE_VOLAPUK
1778 LANGUAGE_WELSH
= _gdi
.LANGUAGE_WELSH
1779 LANGUAGE_WOLOF
= _gdi
.LANGUAGE_WOLOF
1780 LANGUAGE_XHOSA
= _gdi
.LANGUAGE_XHOSA
1781 LANGUAGE_YIDDISH
= _gdi
.LANGUAGE_YIDDISH
1782 LANGUAGE_YORUBA
= _gdi
.LANGUAGE_YORUBA
1783 LANGUAGE_ZHUANG
= _gdi
.LANGUAGE_ZHUANG
1784 LANGUAGE_ZULU
= _gdi
.LANGUAGE_ZULU
1785 LANGUAGE_USER_DEFINED
= _gdi
.LANGUAGE_USER_DEFINED
1786 class LanguageInfo(object):
1788 def __init__(self
): raise RuntimeError, "No constructor defined"
1790 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1791 Language
= property(_gdi
.LanguageInfo_Language_get
, _gdi
.LanguageInfo_Language_set
)
1792 CanonicalName
= property(_gdi
.LanguageInfo_CanonicalName_get
, _gdi
.LanguageInfo_CanonicalName_set
)
1793 Description
= property(_gdi
.LanguageInfo_Description_get
, _gdi
.LanguageInfo_Description_set
)
1795 class LanguageInfoPtr(LanguageInfo
):
1796 def __init__(self
, this
):
1798 if not hasattr(self
,"thisown"): self
.thisown
= 0
1799 self
.__class
__ = LanguageInfo
1800 _gdi
.LanguageInfo_swigregister(LanguageInfoPtr
)
1802 LOCALE_CAT_NUMBER
= _gdi
.LOCALE_CAT_NUMBER
1803 LOCALE_CAT_DATE
= _gdi
.LOCALE_CAT_DATE
1804 LOCALE_CAT_MONEY
= _gdi
.LOCALE_CAT_MONEY
1805 LOCALE_CAT_MAX
= _gdi
.LOCALE_CAT_MAX
1806 LOCALE_THOUSANDS_SEP
= _gdi
.LOCALE_THOUSANDS_SEP
1807 LOCALE_DECIMAL_POINT
= _gdi
.LOCALE_DECIMAL_POINT
1808 LOCALE_LOAD_DEFAULT
= _gdi
.LOCALE_LOAD_DEFAULT
1809 LOCALE_CONV_ENCODING
= _gdi
.LOCALE_CONV_ENCODING
1810 class Locale(object):
1813 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1814 def __init__(self
, *args
, **kwargs
):
1815 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
1816 newobj
= _gdi
.new_Locale(*args
, **kwargs
)
1817 self
.this
= newobj
.this
1820 def __del__(self
, destroy
=_gdi
.delete_Locale
):
1823 if self
.thisown
: destroy(self
)
1826 def Init1(*args
, **kwargs
):
1827 """Init1(wxString szName, wxString szShort=wxPyEmptyString,
1828 wxString szLocale=wxPyEmptyString, bool bLoadDefault=True,
1829 bool bConvertEncoding=False) -> bool"""
1830 return _gdi
.Locale_Init1(*args
, **kwargs
)
1832 def Init2(*args
, **kwargs
):
1833 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
1834 return _gdi
.Locale_Init2(*args
, **kwargs
)
1836 def Init(self
, *_args
, **_kwargs
):
1837 if type(_args
[0]) in [type(''), type(u
'')]:
1838 val
= self
.Init1(*_args
, **_kwargs
)
1840 val
= self
.Init2(*_args
, **_kwargs
)
1843 def GetSystemLanguage(*args
, **kwargs
):
1844 """Locale.GetSystemLanguage() -> int"""
1845 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1847 GetSystemLanguage
= staticmethod(GetSystemLanguage
)
1848 def GetSystemEncoding(*args
, **kwargs
):
1849 """Locale.GetSystemEncoding() -> wxFontEncoding"""
1850 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1852 GetSystemEncoding
= staticmethod(GetSystemEncoding
)
1853 def GetSystemEncodingName(*args
, **kwargs
):
1854 """Locale.GetSystemEncodingName() -> wxString"""
1855 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1857 GetSystemEncodingName
= staticmethod(GetSystemEncodingName
)
1858 def IsOk(*args
, **kwargs
):
1859 """IsOk() -> bool"""
1860 return _gdi
.Locale_IsOk(*args
, **kwargs
)
1862 def __nonzero__(self
): return self
.IsOk()
1863 def GetLocale(*args
, **kwargs
):
1864 """GetLocale() -> wxString"""
1865 return _gdi
.Locale_GetLocale(*args
, **kwargs
)
1867 def GetLanguage(*args
, **kwargs
):
1868 """GetLanguage() -> int"""
1869 return _gdi
.Locale_GetLanguage(*args
, **kwargs
)
1871 def GetSysName(*args
, **kwargs
):
1872 """GetSysName() -> wxString"""
1873 return _gdi
.Locale_GetSysName(*args
, **kwargs
)
1875 def GetCanonicalName(*args
, **kwargs
):
1876 """GetCanonicalName() -> wxString"""
1877 return _gdi
.Locale_GetCanonicalName(*args
, **kwargs
)
1879 def AddCatalogLookupPathPrefix(*args
, **kwargs
):
1880 """Locale.AddCatalogLookupPathPrefix(wxString prefix)"""
1881 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1883 AddCatalogLookupPathPrefix
= staticmethod(AddCatalogLookupPathPrefix
)
1884 def AddCatalog(*args
, **kwargs
):
1885 """AddCatalog(wxString szDomain) -> bool"""
1886 return _gdi
.Locale_AddCatalog(*args
, **kwargs
)
1888 def IsLoaded(*args
, **kwargs
):
1889 """IsLoaded(wxString szDomain) -> bool"""
1890 return _gdi
.Locale_IsLoaded(*args
, **kwargs
)
1892 def GetLanguageInfo(*args
, **kwargs
):
1893 """Locale.GetLanguageInfo(int lang) -> LanguageInfo"""
1894 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1896 GetLanguageInfo
= staticmethod(GetLanguageInfo
)
1897 def GetLanguageName(*args
, **kwargs
):
1898 """Locale.GetLanguageName(int lang) -> wxString"""
1899 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1901 GetLanguageName
= staticmethod(GetLanguageName
)
1902 def FindLanguageInfo(*args
, **kwargs
):
1903 """Locale.FindLanguageInfo(wxString locale) -> LanguageInfo"""
1904 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1906 FindLanguageInfo
= staticmethod(FindLanguageInfo
)
1907 def AddLanguage(*args
, **kwargs
):
1908 """Locale.AddLanguage(LanguageInfo info)"""
1909 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1911 AddLanguage
= staticmethod(AddLanguage
)
1912 def GetString(*args
, **kwargs
):
1913 """GetString(wxString szOrigString, wxString szDomain=wxPyEmptyString) -> wxString"""
1914 return _gdi
.Locale_GetString(*args
, **kwargs
)
1916 def GetName(*args
, **kwargs
):
1917 """GetName() -> wxString"""
1918 return _gdi
.Locale_GetName(*args
, **kwargs
)
1921 class LocalePtr(Locale
):
1922 def __init__(self
, this
):
1924 if not hasattr(self
,"thisown"): self
.thisown
= 0
1925 self
.__class
__ = Locale
1926 _gdi
.Locale_swigregister(LocalePtr
)
1928 def Locale_GetSystemLanguage(*args
, **kwargs
):
1929 """Locale_GetSystemLanguage() -> int"""
1930 return _gdi
.Locale_GetSystemLanguage(*args
, **kwargs
)
1932 def Locale_GetSystemEncoding(*args
, **kwargs
):
1933 """Locale_GetSystemEncoding() -> wxFontEncoding"""
1934 return _gdi
.Locale_GetSystemEncoding(*args
, **kwargs
)
1936 def Locale_GetSystemEncodingName(*args
, **kwargs
):
1937 """Locale_GetSystemEncodingName() -> wxString"""
1938 return _gdi
.Locale_GetSystemEncodingName(*args
, **kwargs
)
1940 def Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
):
1941 """Locale_AddCatalogLookupPathPrefix(wxString prefix)"""
1942 return _gdi
.Locale_AddCatalogLookupPathPrefix(*args
, **kwargs
)
1944 def Locale_GetLanguageInfo(*args
, **kwargs
):
1945 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
1946 return _gdi
.Locale_GetLanguageInfo(*args
, **kwargs
)
1948 def Locale_GetLanguageName(*args
, **kwargs
):
1949 """Locale_GetLanguageName(int lang) -> wxString"""
1950 return _gdi
.Locale_GetLanguageName(*args
, **kwargs
)
1952 def Locale_FindLanguageInfo(*args
, **kwargs
):
1953 """Locale_FindLanguageInfo(wxString locale) -> LanguageInfo"""
1954 return _gdi
.Locale_FindLanguageInfo(*args
, **kwargs
)
1956 def Locale_AddLanguage(*args
, **kwargs
):
1957 """Locale_AddLanguage(LanguageInfo info)"""
1958 return _gdi
.Locale_AddLanguage(*args
, **kwargs
)
1961 def GetLocale(*args
, **kwargs
):
1962 """GetLocale() -> Locale"""
1963 return _gdi
.GetLocale(*args
, **kwargs
)
1964 #---------------------------------------------------------------------------
1966 CONVERT_STRICT
= _gdi
.CONVERT_STRICT
1967 CONVERT_SUBSTITUTE
= _gdi
.CONVERT_SUBSTITUTE
1968 PLATFORM_CURRENT
= _gdi
.PLATFORM_CURRENT
1969 PLATFORM_UNIX
= _gdi
.PLATFORM_UNIX
1970 PLATFORM_WINDOWS
= _gdi
.PLATFORM_WINDOWS
1971 PLATFORM_OS2
= _gdi
.PLATFORM_OS2
1972 PLATFORM_MAC
= _gdi
.PLATFORM_MAC
1973 class EncodingConverter(core
.Object
):
1976 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1977 def __init__(self
, *args
, **kwargs
):
1978 """__init__() -> EncodingConverter"""
1979 newobj
= _gdi
.new_EncodingConverter(*args
, **kwargs
)
1980 self
.this
= newobj
.this
1983 def __del__(self
, destroy
=_gdi
.delete_EncodingConverter
):
1986 if self
.thisown
: destroy(self
)
1989 def Init(*args
, **kwargs
):
1990 """Init(wxFontEncoding input_enc, wxFontEncoding output_enc,
1991 int method=CONVERT_STRICT) -> bool"""
1992 return _gdi
.EncodingConverter_Init(*args
, **kwargs
)
1994 def Convert(*args
, **kwargs
):
1995 """Convert(wxString input) -> wxString"""
1996 return _gdi
.EncodingConverter_Convert(*args
, **kwargs
)
1998 def GetPlatformEquivalents(*args
, **kwargs
):
1999 """EncodingConverter.GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2000 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2002 GetPlatformEquivalents
= staticmethod(GetPlatformEquivalents
)
2003 def GetAllEquivalents(*args
, **kwargs
):
2004 """EncodingConverter.GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
2005 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2007 GetAllEquivalents
= staticmethod(GetAllEquivalents
)
2008 def CanConvert(*args
, **kwargs
):
2009 """EncodingConverter.CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
2010 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2012 CanConvert
= staticmethod(CanConvert
)
2013 def __nonzero__(self
): return self
.IsOk()
2015 class EncodingConverterPtr(EncodingConverter
):
2016 def __init__(self
, this
):
2018 if not hasattr(self
,"thisown"): self
.thisown
= 0
2019 self
.__class
__ = EncodingConverter
2020 _gdi
.EncodingConverter_swigregister(EncodingConverterPtr
)
2022 def GetTranslation(*args
):
2023 """GetTranslation(wxString sz) -> wxString
2024 GetTranslation(wxString sz1, wxString sz2, size_t n) -> wxString"""
2025 return _gdi
.GetTranslation(*args
)
2027 def EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
):
2028 """EncodingConverter_GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2029 return _gdi
.EncodingConverter_GetPlatformEquivalents(*args
, **kwargs
)
2031 def EncodingConverter_GetAllEquivalents(*args
, **kwargs
):
2032 """EncodingConverter_GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
2033 return _gdi
.EncodingConverter_GetAllEquivalents(*args
, **kwargs
)
2035 def EncodingConverter_CanConvert(*args
, **kwargs
):
2036 """EncodingConverter_CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
2037 return _gdi
.EncodingConverter_CanConvert(*args
, **kwargs
)
2039 #----------------------------------------------------------------------------
2040 # wxGTK sets the locale when initialized. Doing this at the Python
2041 # level should set it up to match what GTK is doing at the C level.
2042 if wx
.Platform
== "__WXGTK__":
2045 locale
.setlocale(locale
.LC_ALL
, "")
2049 # On MSW add the directory where the wxWindows catalogs were installed
2050 # to the default catalog path.
2051 if wx
.Platform
== "__WXMSW__":
2053 localedir
= os
.path
.join(os
.path
.split(__file__
)[0], "locale")
2054 Locale_AddCatalogLookupPathPrefix(localedir
)
2057 #----------------------------------------------------------------------------
2059 #---------------------------------------------------------------------------
2061 class DC(core
.Object
):
2063 def __init__(self
): raise RuntimeError, "No constructor defined"
2065 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2066 def __del__(self
, destroy
=_gdi
.delete_DC
):
2069 if self
.thisown
: destroy(self
)
2072 def BeginDrawing(*args
, **kwargs
):
2073 """BeginDrawing()"""
2074 return _gdi
.DC_BeginDrawing(*args
, **kwargs
)
2076 def EndDrawing(*args
, **kwargs
):
2078 return _gdi
.DC_EndDrawing(*args
, **kwargs
)
2080 def FloodFillXY(*args
, **kwargs
):
2081 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2082 return _gdi
.DC_FloodFillXY(*args
, **kwargs
)
2084 def FloodFill(*args
, **kwargs
):
2085 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2086 return _gdi
.DC_FloodFill(*args
, **kwargs
)
2088 def GetPixelXY(*args
, **kwargs
):
2089 """GetPixelXY(int x, int y) -> Colour"""
2090 return _gdi
.DC_GetPixelXY(*args
, **kwargs
)
2092 def GetPixel(*args
, **kwargs
):
2093 """GetPixel(Point pt) -> Colour"""
2094 return _gdi
.DC_GetPixel(*args
, **kwargs
)
2096 def DrawLineXY(*args
, **kwargs
):
2097 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2098 return _gdi
.DC_DrawLineXY(*args
, **kwargs
)
2100 def DrawLine(*args
, **kwargs
):
2101 """DrawLine(Point pt1, Point pt2)"""
2102 return _gdi
.DC_DrawLine(*args
, **kwargs
)
2104 def CrossHairXY(*args
, **kwargs
):
2105 """CrossHairXY(int x, int y)"""
2106 return _gdi
.DC_CrossHairXY(*args
, **kwargs
)
2108 def CrossHair(*args
, **kwargs
):
2109 """CrossHair(Point pt)"""
2110 return _gdi
.DC_CrossHair(*args
, **kwargs
)
2112 def DrawArcXY(*args
, **kwargs
):
2113 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2114 return _gdi
.DC_DrawArcXY(*args
, **kwargs
)
2116 def DrawArc(*args
, **kwargs
):
2117 """DrawArc(Point pt1, Point pt2, Point centre)"""
2118 return _gdi
.DC_DrawArc(*args
, **kwargs
)
2120 def DrawCheckMarkXY(*args
, **kwargs
):
2121 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2122 return _gdi
.DC_DrawCheckMarkXY(*args
, **kwargs
)
2124 def DrawCheckMark(*args
, **kwargs
):
2125 """DrawCheckMark(Rect rect)"""
2126 return _gdi
.DC_DrawCheckMark(*args
, **kwargs
)
2128 def DrawEllipticArcXY(*args
, **kwargs
):
2129 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2130 return _gdi
.DC_DrawEllipticArcXY(*args
, **kwargs
)
2132 def DrawEllipticArc(*args
, **kwargs
):
2133 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2134 return _gdi
.DC_DrawEllipticArc(*args
, **kwargs
)
2136 def DrawPointXY(*args
, **kwargs
):
2137 """DrawPointXY(int x, int y)"""
2138 return _gdi
.DC_DrawPointXY(*args
, **kwargs
)
2140 def DrawPoint(*args
, **kwargs
):
2141 """DrawPoint(Point pt)"""
2142 return _gdi
.DC_DrawPoint(*args
, **kwargs
)
2144 def DrawRectangleXY(*args
, **kwargs
):
2145 """DrawRectangleXY(int x, int y, int width, int height)"""
2146 return _gdi
.DC_DrawRectangleXY(*args
, **kwargs
)
2148 def DrawRectangle(*args
, **kwargs
):
2149 """DrawRectangle(Point pt, Size sz)"""
2150 return _gdi
.DC_DrawRectangle(*args
, **kwargs
)
2152 def DrawRectangleRect(*args
, **kwargs
):
2153 """DrawRectangleRect(Rect rect)"""
2154 return _gdi
.DC_DrawRectangleRect(*args
, **kwargs
)
2156 def DrawRoundedRectangleXY(*args
, **kwargs
):
2157 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2158 return _gdi
.DC_DrawRoundedRectangleXY(*args
, **kwargs
)
2160 def DrawRoundedRectangle(*args
, **kwargs
):
2161 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2162 return _gdi
.DC_DrawRoundedRectangle(*args
, **kwargs
)
2164 def DrawRoundedRectangleRect(*args
, **kwargs
):
2165 """DrawRoundedRectangleRect(Rect r, double radius)"""
2166 return _gdi
.DC_DrawRoundedRectangleRect(*args
, **kwargs
)
2168 def DrawCircleXY(*args
, **kwargs
):
2169 """DrawCircleXY(int x, int y, int radius)"""
2170 return _gdi
.DC_DrawCircleXY(*args
, **kwargs
)
2172 def DrawCircle(*args
, **kwargs
):
2173 """DrawCircle(Point pt, int radius)"""
2174 return _gdi
.DC_DrawCircle(*args
, **kwargs
)
2176 def DrawEllipseXY(*args
, **kwargs
):
2177 """DrawEllipseXY(int x, int y, int width, int height)"""
2178 return _gdi
.DC_DrawEllipseXY(*args
, **kwargs
)
2180 def DrawEllipse(*args
, **kwargs
):
2181 """DrawEllipse(Point pt, Size sz)"""
2182 return _gdi
.DC_DrawEllipse(*args
, **kwargs
)
2184 def DrawEllipseRect(*args
, **kwargs
):
2185 """DrawEllipseRect(Rect rect)"""
2186 return _gdi
.DC_DrawEllipseRect(*args
, **kwargs
)
2188 def DrawIconXY(*args
, **kwargs
):
2189 """DrawIconXY(Icon icon, int x, int y)"""
2190 return _gdi
.DC_DrawIconXY(*args
, **kwargs
)
2192 def DrawIcon(*args
, **kwargs
):
2193 """DrawIcon(Icon icon, Point pt)"""
2194 return _gdi
.DC_DrawIcon(*args
, **kwargs
)
2196 def DrawBitmapXY(*args
, **kwargs
):
2197 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2198 return _gdi
.DC_DrawBitmapXY(*args
, **kwargs
)
2200 def DrawBitmap(*args
, **kwargs
):
2201 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2202 return _gdi
.DC_DrawBitmap(*args
, **kwargs
)
2204 def DrawTextXY(*args
, **kwargs
):
2205 """DrawTextXY(wxString text, int x, int y)"""
2206 return _gdi
.DC_DrawTextXY(*args
, **kwargs
)
2208 def DrawText(*args
, **kwargs
):
2209 """DrawText(wxString text, Point pt)"""
2210 return _gdi
.DC_DrawText(*args
, **kwargs
)
2212 def DrawRotatedTextXY(*args
, **kwargs
):
2213 """DrawRotatedTextXY(wxString text, int x, int y, double angle)"""
2214 return _gdi
.DC_DrawRotatedTextXY(*args
, **kwargs
)
2216 def DrawRotatedText(*args
, **kwargs
):
2217 """DrawRotatedText(wxString text, Point pt, double angle)"""
2218 return _gdi
.DC_DrawRotatedText(*args
, **kwargs
)
2220 def BlitXY(*args
, **kwargs
):
2221 """BlitXY(int xdest, int ydest, int width, int height, DC source,
2222 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2223 int xsrcMask=-1, int ysrcMask=-1) -> bool"""
2224 return _gdi
.DC_BlitXY(*args
, **kwargs
)
2226 def Blit(*args
, **kwargs
):
2227 """Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2228 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool"""
2229 return _gdi
.DC_Blit(*args
, **kwargs
)
2231 def DrawLines(*args
, **kwargs
):
2232 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2233 return _gdi
.DC_DrawLines(*args
, **kwargs
)
2235 def DrawPolygon(*args
, **kwargs
):
2236 """DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2237 int fillStyle=ODDEVEN_RULE)"""
2238 return _gdi
.DC_DrawPolygon(*args
, **kwargs
)
2240 def DrawLabel(*args
, **kwargs
):
2241 """DrawLabel(wxString text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2242 int indexAccel=-1)"""
2243 return _gdi
.DC_DrawLabel(*args
, **kwargs
)
2245 def DrawImageLabel(*args
, **kwargs
):
2246 """DrawImageLabel(wxString text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2247 int indexAccel=-1) -> Rect"""
2248 return _gdi
.DC_DrawImageLabel(*args
, **kwargs
)
2250 def DrawSpline(*args
, **kwargs
):
2251 """DrawSpline(int points, Point points_array)"""
2252 return _gdi
.DC_DrawSpline(*args
, **kwargs
)
2254 def Clear(*args
, **kwargs
):
2256 return _gdi
.DC_Clear(*args
, **kwargs
)
2258 def StartDoc(*args
, **kwargs
):
2259 """StartDoc(wxString message) -> bool"""
2260 return _gdi
.DC_StartDoc(*args
, **kwargs
)
2262 def EndDoc(*args
, **kwargs
):
2264 return _gdi
.DC_EndDoc(*args
, **kwargs
)
2266 def StartPage(*args
, **kwargs
):
2268 return _gdi
.DC_StartPage(*args
, **kwargs
)
2270 def EndPage(*args
, **kwargs
):
2272 return _gdi
.DC_EndPage(*args
, **kwargs
)
2274 def SetFont(*args
, **kwargs
):
2275 """SetFont(Font font)"""
2276 return _gdi
.DC_SetFont(*args
, **kwargs
)
2278 def SetPen(*args
, **kwargs
):
2279 """SetPen(Pen pen)"""
2280 return _gdi
.DC_SetPen(*args
, **kwargs
)
2282 def SetBrush(*args
, **kwargs
):
2283 """SetBrush(Brush brush)"""
2284 return _gdi
.DC_SetBrush(*args
, **kwargs
)
2286 def SetBackground(*args
, **kwargs
):
2287 """SetBackground(Brush brush)"""
2288 return _gdi
.DC_SetBackground(*args
, **kwargs
)
2290 def SetBackgroundMode(*args
, **kwargs
):
2291 """SetBackgroundMode(int mode)"""
2292 return _gdi
.DC_SetBackgroundMode(*args
, **kwargs
)
2294 def SetPalette(*args
, **kwargs
):
2295 """SetPalette(Palette palette)"""
2296 return _gdi
.DC_SetPalette(*args
, **kwargs
)
2298 def SetClippingRegion(*args
, **kwargs
):
2299 """SetClippingRegion(int x, int y, int width, int height)"""
2300 return _gdi
.DC_SetClippingRegion(*args
, **kwargs
)
2302 def SetClippingRect(*args
, **kwargs
):
2303 """SetClippingRect(Rect rect)"""
2304 return _gdi
.DC_SetClippingRect(*args
, **kwargs
)
2306 def SetClippingRegionAsRegion(*args
, **kwargs
):
2307 """SetClippingRegionAsRegion(Region region)"""
2308 return _gdi
.DC_SetClippingRegionAsRegion(*args
, **kwargs
)
2310 def DestroyClippingRegion(*args
, **kwargs
):
2311 """DestroyClippingRegion()"""
2312 return _gdi
.DC_DestroyClippingRegion(*args
, **kwargs
)
2314 def GetClippingBox(*args
, **kwargs
):
2315 """GetClippingBox() -> (x, y, width, height)"""
2316 return _gdi
.DC_GetClippingBox(*args
, **kwargs
)
2318 def GetClippingRect(*args
, **kwargs
):
2319 """GetClippingRect() -> Rect"""
2320 return _gdi
.DC_GetClippingRect(*args
, **kwargs
)
2322 def GetCharHeight(*args
, **kwargs
):
2323 """GetCharHeight() -> int"""
2324 return _gdi
.DC_GetCharHeight(*args
, **kwargs
)
2326 def GetCharWidth(*args
, **kwargs
):
2327 """GetCharWidth() -> int"""
2328 return _gdi
.DC_GetCharWidth(*args
, **kwargs
)
2330 def GetTextExtent(*args
, **kwargs
):
2331 """GetTextExtent(wxString string) -> (width, height)
2333 Get the width and height of the text using the current font.
2334 Only works for single line strings."""
2335 return _gdi
.DC_GetTextExtent(*args
, **kwargs
)
2337 def GetFullTextExtent(*args
, **kwargs
):
2338 """GetFullTextExtent(wxString string, Font font=None) ->
2339 (width, height, descent, externalLeading)
2341 Get the width, height, decent and leading of the text using the current or specified font.
2342 Only works for single line strings."""
2343 return _gdi
.DC_GetFullTextExtent(*args
, **kwargs
)
2345 def GetMultiLineTextExtent(*args
, **kwargs
):
2346 """GetMultiLineTextExtent(wxString string, Font font=None) ->
2347 (width, height, descent, externalLeading)
2349 Get the width, height, decent and leading of the text using the current or specified font.
2350 Works for single as well as multi-line strings."""
2351 return _gdi
.DC_GetMultiLineTextExtent(*args
, **kwargs
)
2353 def GetSize(*args
, **kwargs
):
2354 """GetSize() -> Size
2356 Get the DC size in device units."""
2357 return _gdi
.DC_GetSize(*args
, **kwargs
)
2359 def GetSizeTuple(*args
, **kwargs
):
2360 """GetSizeTuple() -> (width, height)
2362 Get the DC size in device units."""
2363 return _gdi
.DC_GetSizeTuple(*args
, **kwargs
)
2365 def GetSizeMM(*args
, **kwargs
):
2366 """GetSizeMM() -> Size
2368 Get the DC size in milimeters."""
2369 return _gdi
.DC_GetSizeMM(*args
, **kwargs
)
2371 def GetSizeMMTuple(*args
, **kwargs
):
2372 """GetSizeMMTuple() -> (width, height)
2374 Get the DC size in milimeters."""
2375 return _gdi
.DC_GetSizeMMTuple(*args
, **kwargs
)
2377 def DeviceToLogicalX(*args
, **kwargs
):
2378 """DeviceToLogicalX(int x) -> int"""
2379 return _gdi
.DC_DeviceToLogicalX(*args
, **kwargs
)
2381 def DeviceToLogicalY(*args
, **kwargs
):
2382 """DeviceToLogicalY(int y) -> int"""
2383 return _gdi
.DC_DeviceToLogicalY(*args
, **kwargs
)
2385 def DeviceToLogicalXRel(*args
, **kwargs
):
2386 """DeviceToLogicalXRel(int x) -> int"""
2387 return _gdi
.DC_DeviceToLogicalXRel(*args
, **kwargs
)
2389 def DeviceToLogicalYRel(*args
, **kwargs
):
2390 """DeviceToLogicalYRel(int y) -> int"""
2391 return _gdi
.DC_DeviceToLogicalYRel(*args
, **kwargs
)
2393 def LogicalToDeviceX(*args
, **kwargs
):
2394 """LogicalToDeviceX(int x) -> int"""
2395 return _gdi
.DC_LogicalToDeviceX(*args
, **kwargs
)
2397 def LogicalToDeviceY(*args
, **kwargs
):
2398 """LogicalToDeviceY(int y) -> int"""
2399 return _gdi
.DC_LogicalToDeviceY(*args
, **kwargs
)
2401 def LogicalToDeviceXRel(*args
, **kwargs
):
2402 """LogicalToDeviceXRel(int x) -> int"""
2403 return _gdi
.DC_LogicalToDeviceXRel(*args
, **kwargs
)
2405 def LogicalToDeviceYRel(*args
, **kwargs
):
2406 """LogicalToDeviceYRel(int y) -> int"""
2407 return _gdi
.DC_LogicalToDeviceYRel(*args
, **kwargs
)
2409 def CanDrawBitmap(*args
, **kwargs
):
2410 """CanDrawBitmap() -> bool"""
2411 return _gdi
.DC_CanDrawBitmap(*args
, **kwargs
)
2413 def CanGetTextExtent(*args
, **kwargs
):
2414 """CanGetTextExtent() -> bool"""
2415 return _gdi
.DC_CanGetTextExtent(*args
, **kwargs
)
2417 def GetDepth(*args
, **kwargs
):
2418 """GetDepth() -> int"""
2419 return _gdi
.DC_GetDepth(*args
, **kwargs
)
2421 def GetPPI(*args
, **kwargs
):
2422 """GetPPI() -> Size"""
2423 return _gdi
.DC_GetPPI(*args
, **kwargs
)
2425 def Ok(*args
, **kwargs
):
2427 return _gdi
.DC_Ok(*args
, **kwargs
)
2429 def GetBackgroundMode(*args
, **kwargs
):
2430 """GetBackgroundMode() -> int"""
2431 return _gdi
.DC_GetBackgroundMode(*args
, **kwargs
)
2433 def GetBackground(*args
, **kwargs
):
2434 """GetBackground() -> Brush"""
2435 return _gdi
.DC_GetBackground(*args
, **kwargs
)
2437 def GetBrush(*args
, **kwargs
):
2438 """GetBrush() -> Brush"""
2439 return _gdi
.DC_GetBrush(*args
, **kwargs
)
2441 def GetFont(*args
, **kwargs
):
2442 """GetFont() -> Font"""
2443 return _gdi
.DC_GetFont(*args
, **kwargs
)
2445 def GetPen(*args
, **kwargs
):
2446 """GetPen() -> Pen"""
2447 return _gdi
.DC_GetPen(*args
, **kwargs
)
2449 def GetTextBackground(*args
, **kwargs
):
2450 """GetTextBackground() -> Colour"""
2451 return _gdi
.DC_GetTextBackground(*args
, **kwargs
)
2453 def GetTextForeground(*args
, **kwargs
):
2454 """GetTextForeground() -> Colour"""
2455 return _gdi
.DC_GetTextForeground(*args
, **kwargs
)
2457 def SetTextForeground(*args
, **kwargs
):
2458 """SetTextForeground(Colour colour)"""
2459 return _gdi
.DC_SetTextForeground(*args
, **kwargs
)
2461 def SetTextBackground(*args
, **kwargs
):
2462 """SetTextBackground(Colour colour)"""
2463 return _gdi
.DC_SetTextBackground(*args
, **kwargs
)
2465 def GetMapMode(*args
, **kwargs
):
2466 """GetMapMode() -> int"""
2467 return _gdi
.DC_GetMapMode(*args
, **kwargs
)
2469 def SetMapMode(*args
, **kwargs
):
2470 """SetMapMode(int mode)"""
2471 return _gdi
.DC_SetMapMode(*args
, **kwargs
)
2473 def GetUserScale(*args
, **kwargs
):
2474 """GetUserScale() -> (xScale, yScale)"""
2475 return _gdi
.DC_GetUserScale(*args
, **kwargs
)
2477 def SetUserScale(*args
, **kwargs
):
2478 """SetUserScale(double x, double y)"""
2479 return _gdi
.DC_SetUserScale(*args
, **kwargs
)
2481 def GetLogicalScale(*args
, **kwargs
):
2482 """GetLogicalScale() -> (xScale, yScale)"""
2483 return _gdi
.DC_GetLogicalScale(*args
, **kwargs
)
2485 def SetLogicalScale(*args
, **kwargs
):
2486 """SetLogicalScale(double x, double y)"""
2487 return _gdi
.DC_SetLogicalScale(*args
, **kwargs
)
2489 def GetLogicalOrigin(*args
, **kwargs
):
2490 """GetLogicalOrigin() -> Point"""
2491 return _gdi
.DC_GetLogicalOrigin(*args
, **kwargs
)
2493 def GetLogicalOriginTuple(*args
, **kwargs
):
2494 """GetLogicalOriginTuple() -> (x,y)"""
2495 return _gdi
.DC_GetLogicalOriginTuple(*args
, **kwargs
)
2497 def SetLogicalOrigin(*args
, **kwargs
):
2498 """SetLogicalOrigin(int x, int y)"""
2499 return _gdi
.DC_SetLogicalOrigin(*args
, **kwargs
)
2501 def GetDeviceOrigin(*args
, **kwargs
):
2502 """GetDeviceOrigin() -> Point"""
2503 return _gdi
.DC_GetDeviceOrigin(*args
, **kwargs
)
2505 def GetDeviceOriginTuple(*args
, **kwargs
):
2506 """GetDeviceOriginTuple() -> (x,y)"""
2507 return _gdi
.DC_GetDeviceOriginTuple(*args
, **kwargs
)
2509 def SetDeviceOrigin(*args
, **kwargs
):
2510 """SetDeviceOrigin(int x, int y)"""
2511 return _gdi
.DC_SetDeviceOrigin(*args
, **kwargs
)
2513 def SetAxisOrientation(*args
, **kwargs
):
2514 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2515 return _gdi
.DC_SetAxisOrientation(*args
, **kwargs
)
2517 def GetLogicalFunction(*args
, **kwargs
):
2518 """GetLogicalFunction() -> int"""
2519 return _gdi
.DC_GetLogicalFunction(*args
, **kwargs
)
2521 def SetLogicalFunction(*args
, **kwargs
):
2522 """SetLogicalFunction(int function)"""
2523 return _gdi
.DC_SetLogicalFunction(*args
, **kwargs
)
2525 def SetOptimization(*args
, **kwargs
):
2526 """SetOptimization(bool opt)"""
2527 return _gdi
.DC_SetOptimization(*args
, **kwargs
)
2529 def GetOptimization(*args
, **kwargs
):
2530 """GetOptimization() -> bool"""
2531 return _gdi
.DC_GetOptimization(*args
, **kwargs
)
2533 def CalcBoundingBox(*args
, **kwargs
):
2534 """CalcBoundingBox(int x, int y)"""
2535 return _gdi
.DC_CalcBoundingBox(*args
, **kwargs
)
2537 def ResetBoundingBox(*args
, **kwargs
):
2538 """ResetBoundingBox()"""
2539 return _gdi
.DC_ResetBoundingBox(*args
, **kwargs
)
2541 def MinX(*args
, **kwargs
):
2543 return _gdi
.DC_MinX(*args
, **kwargs
)
2545 def MaxX(*args
, **kwargs
):
2547 return _gdi
.DC_MaxX(*args
, **kwargs
)
2549 def MinY(*args
, **kwargs
):
2551 return _gdi
.DC_MinY(*args
, **kwargs
)
2553 def MaxY(*args
, **kwargs
):
2555 return _gdi
.DC_MaxY(*args
, **kwargs
)
2557 def GetBoundingBox(*args
, **kwargs
):
2558 """GetBoundingBox() -> (x1,y1, x2,y2)"""
2559 return _gdi
.DC_GetBoundingBox(*args
, **kwargs
)
2561 def __nonzero__(self
): return self
.Ok()
2562 def _DrawPointList(*args
, **kwargs
):
2563 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2564 return _gdi
.DC__DrawPointList(*args
, **kwargs
)
2566 def _DrawLineList(*args
, **kwargs
):
2567 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2568 return _gdi
.DC__DrawLineList(*args
, **kwargs
)
2570 def _DrawRectangleList(*args
, **kwargs
):
2571 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2572 return _gdi
.DC__DrawRectangleList(*args
, **kwargs
)
2574 def _DrawEllipseList(*args
, **kwargs
):
2575 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2576 return _gdi
.DC__DrawEllipseList(*args
, **kwargs
)
2578 def _DrawPolygonList(*args
, **kwargs
):
2579 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2580 return _gdi
.DC__DrawPolygonList(*args
, **kwargs
)
2582 def _DrawTextList(*args
, **kwargs
):
2583 """_DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2584 PyObject backgroundList) -> PyObject"""
2585 return _gdi
.DC__DrawTextList(*args
, **kwargs
)
2587 def DrawPointList(self
, points
, pens
=None):
2590 elif isinstance(pens
, wx
.Pen
):
2592 elif len(pens
) != len(points
):
2593 raise ValueError('points and pens must have same length')
2594 return self
._DrawPointList
(points
, pens
, [])
2597 def DrawLineList(self
, lines
, pens
=None):
2600 elif isinstance(pens
, wx
.Pen
):
2602 elif len(pens
) != len(lines
):
2603 raise ValueError('lines and pens must have same length')
2604 return self
._DrawLineList
(lines
, pens
, [])
2607 def DrawRectangleList(self
, rectangles
, pens
=None, brushes
=None):
2610 elif isinstance(pens
, wx
.Pen
):
2612 elif len(pens
) != len(rectangles
):
2613 raise ValueError('rectangles and pens must have same length')
2616 elif isinstance(brushes
, wx
.Brush
):
2618 elif len(brushes
) != len(rectangles
):
2619 raise ValueError('rectangles and brushes must have same length')
2620 return self
._DrawRectangleList
(rectangles
, pens
, brushes
)
2623 def DrawEllipseList(self
, ellipses
, pens
=None, brushes
=None):
2626 elif isinstance(pens
, wx
.Pen
):
2628 elif len(pens
) != len(ellipses
):
2629 raise ValueError('ellipses and pens must have same length')
2632 elif isinstance(brushes
, wx
.Brush
):
2634 elif len(brushes
) != len(ellipses
):
2635 raise ValueError('ellipses and brushes must have same length')
2636 return self
._DrawEllipseList
(ellipses
, pens
, brushes
)
2639 def DrawPolygonList(self
, polygons
, pens
=None, brushes
=None):
2644 elif isinstance(pens
, wx
.Pen
):
2646 elif len(pens
) != len(polygons
):
2647 raise ValueError('polygons and pens must have same length')
2650 elif isinstance(brushes
, wx
.Brush
):
2652 elif len(brushes
) != len(polygons
):
2653 raise ValueError('polygons and brushes must have same length')
2654 return self
._DrawPolygonList
(polygons
, pens
, brushes
)
2657 def DrawTextList(self
, textList
, coords
, foregrounds
= None, backgrounds
= None, fonts
= None):
2661 if type(textList
) == type(''):
2662 textList
= [textList
]
2663 elif len(textList
) != len(coords
):
2664 raise ValueError('textlist and coords must have same length')
2665 if foregrounds
is None:
2667 elif isinstance(foregrounds
, wx
.Colour
):
2668 foregrounds
= [foregrounds
]
2669 elif len(foregrounds
) != len(coords
):
2670 raise ValueError('foregrounds and coords must have same length')
2671 if backgrounds
is None:
2673 elif isinstance(backgrounds
, wx
.Colour
):
2674 backgrounds
= [backgrounds
]
2675 elif len(backgrounds
) != len(coords
):
2676 raise ValueError('backgrounds and coords must have same length')
2677 return self
._DrawTextList
(textList
, coords
, foregrounds
, backgrounds
)
2681 def __init__(self
, this
):
2683 if not hasattr(self
,"thisown"): self
.thisown
= 0
2685 _gdi
.DC_swigregister(DCPtr
)
2687 #---------------------------------------------------------------------------
2692 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2693 def __init__(self
, *args
, **kwargs
):
2694 """__init__() -> MemoryDC"""
2695 newobj
= _gdi
.new_MemoryDC(*args
, **kwargs
)
2696 self
.this
= newobj
.this
2699 def SelectObject(*args
, **kwargs
):
2700 """SelectObject(Bitmap bitmap)"""
2701 return _gdi
.MemoryDC_SelectObject(*args
, **kwargs
)
2704 class MemoryDCPtr(MemoryDC
):
2705 def __init__(self
, this
):
2707 if not hasattr(self
,"thisown"): self
.thisown
= 0
2708 self
.__class
__ = MemoryDC
2709 _gdi
.MemoryDC_swigregister(MemoryDCPtr
)
2711 def MemoryDCFromDC(*args
, **kwargs
):
2712 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
2713 val
= _gdi
.new_MemoryDCFromDC(*args
, **kwargs
)
2717 #---------------------------------------------------------------------------
2719 class BufferedDC(MemoryDC
):
2722 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2723 def __init__(self
, *args
, **kwargs
):
2724 """__init__(DC dc, Bitmap buffer) -> BufferedDC"""
2725 newobj
= _gdi
.new_BufferedDC(*args
, **kwargs
)
2726 self
.this
= newobj
.this
2729 self
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2731 def UnMask(*args
, **kwargs
):
2733 return _gdi
.BufferedDC_UnMask(*args
, **kwargs
)
2736 class BufferedDCPtr(BufferedDC
):
2737 def __init__(self
, this
):
2739 if not hasattr(self
,"thisown"): self
.thisown
= 0
2740 self
.__class
__ = BufferedDC
2741 _gdi
.BufferedDC_swigregister(BufferedDCPtr
)
2743 def BufferedDCInternalBuffer(*args
, **kwargs
):
2744 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
2745 val
= _gdi
.new_BufferedDCInternalBuffer(*args
, **kwargs
)
2747 val
._dc
= args
[0] # save a ref so the other dc will not be deleted before self
2750 class BufferedPaintDC(BufferedDC
):
2753 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2754 def __init__(self
, *args
, **kwargs
):
2755 """__init__(Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
2756 newobj
= _gdi
.new_BufferedPaintDC(*args
, **kwargs
)
2757 self
.this
= newobj
.this
2761 class BufferedPaintDCPtr(BufferedPaintDC
):
2762 def __init__(self
, this
):
2764 if not hasattr(self
,"thisown"): self
.thisown
= 0
2765 self
.__class
__ = BufferedPaintDC
2766 _gdi
.BufferedPaintDC_swigregister(BufferedPaintDCPtr
)
2768 #---------------------------------------------------------------------------
2773 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2774 def __init__(self
, *args
, **kwargs
):
2775 """__init__() -> ScreenDC"""
2776 newobj
= _gdi
.new_ScreenDC(*args
, **kwargs
)
2777 self
.this
= newobj
.this
2780 def StartDrawingOnTopWin(*args
, **kwargs
):
2781 """StartDrawingOnTopWin(Window window) -> bool"""
2782 return _gdi
.ScreenDC_StartDrawingOnTopWin(*args
, **kwargs
)
2784 def StartDrawingOnTop(*args
, **kwargs
):
2785 """StartDrawingOnTop(Rect rect=None) -> bool"""
2786 return _gdi
.ScreenDC_StartDrawingOnTop(*args
, **kwargs
)
2788 def EndDrawingOnTop(*args
, **kwargs
):
2789 """EndDrawingOnTop() -> bool"""
2790 return _gdi
.ScreenDC_EndDrawingOnTop(*args
, **kwargs
)
2793 class ScreenDCPtr(ScreenDC
):
2794 def __init__(self
, this
):
2796 if not hasattr(self
,"thisown"): self
.thisown
= 0
2797 self
.__class
__ = ScreenDC
2798 _gdi
.ScreenDC_swigregister(ScreenDCPtr
)
2800 #---------------------------------------------------------------------------
2805 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2806 def __init__(self
, *args
, **kwargs
):
2807 """__init__(Window win) -> ClientDC"""
2808 newobj
= _gdi
.new_ClientDC(*args
, **kwargs
)
2809 self
.this
= newobj
.this
2813 class ClientDCPtr(ClientDC
):
2814 def __init__(self
, this
):
2816 if not hasattr(self
,"thisown"): self
.thisown
= 0
2817 self
.__class
__ = ClientDC
2818 _gdi
.ClientDC_swigregister(ClientDCPtr
)
2820 #---------------------------------------------------------------------------
2825 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2826 def __init__(self
, *args
, **kwargs
):
2827 """__init__(Window win) -> PaintDC"""
2828 newobj
= _gdi
.new_PaintDC(*args
, **kwargs
)
2829 self
.this
= newobj
.this
2833 class PaintDCPtr(PaintDC
):
2834 def __init__(self
, this
):
2836 if not hasattr(self
,"thisown"): self
.thisown
= 0
2837 self
.__class
__ = PaintDC
2838 _gdi
.PaintDC_swigregister(PaintDCPtr
)
2840 #---------------------------------------------------------------------------
2845 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2846 def __init__(self
, *args
, **kwargs
):
2847 """__init__(Window win) -> WindowDC"""
2848 newobj
= _gdi
.new_WindowDC(*args
, **kwargs
)
2849 self
.this
= newobj
.this
2853 class WindowDCPtr(WindowDC
):
2854 def __init__(self
, this
):
2856 if not hasattr(self
,"thisown"): self
.thisown
= 0
2857 self
.__class
__ = WindowDC
2858 _gdi
.WindowDC_swigregister(WindowDCPtr
)
2860 #---------------------------------------------------------------------------
2865 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2866 def __init__(self
, *args
, **kwargs
):
2867 """__init__(DC dc, bool mirror) -> MirrorDC"""
2868 newobj
= _gdi
.new_MirrorDC(*args
, **kwargs
)
2869 self
.this
= newobj
.this
2873 class MirrorDCPtr(MirrorDC
):
2874 def __init__(self
, this
):
2876 if not hasattr(self
,"thisown"): self
.thisown
= 0
2877 self
.__class
__ = MirrorDC
2878 _gdi
.MirrorDC_swigregister(MirrorDCPtr
)
2880 #---------------------------------------------------------------------------
2882 class PostScriptDC(DC
):
2885 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2886 def __init__(self
, *args
, **kwargs
):
2887 """__init__(wxPrintData printData) -> PostScriptDC"""
2888 newobj
= _gdi
.new_PostScriptDC(*args
, **kwargs
)
2889 self
.this
= newobj
.this
2892 def GetPrintData(*args
, **kwargs
):
2893 """GetPrintData() -> wxPrintData"""
2894 return _gdi
.PostScriptDC_GetPrintData(*args
, **kwargs
)
2896 def SetPrintData(*args
, **kwargs
):
2897 """SetPrintData(wxPrintData data)"""
2898 return _gdi
.PostScriptDC_SetPrintData(*args
, **kwargs
)
2900 def SetResolution(*args
, **kwargs
):
2901 """PostScriptDC.SetResolution(int ppi)"""
2902 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
2904 SetResolution
= staticmethod(SetResolution
)
2905 def GetResolution(*args
, **kwargs
):
2906 """PostScriptDC.GetResolution() -> int"""
2907 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
2909 GetResolution
= staticmethod(GetResolution
)
2911 class PostScriptDCPtr(PostScriptDC
):
2912 def __init__(self
, this
):
2914 if not hasattr(self
,"thisown"): self
.thisown
= 0
2915 self
.__class
__ = PostScriptDC
2916 _gdi
.PostScriptDC_swigregister(PostScriptDCPtr
)
2918 def PostScriptDC_SetResolution(*args
, **kwargs
):
2919 """PostScriptDC_SetResolution(int ppi)"""
2920 return _gdi
.PostScriptDC_SetResolution(*args
, **kwargs
)
2922 def PostScriptDC_GetResolution(*args
, **kwargs
):
2923 """PostScriptDC_GetResolution() -> int"""
2924 return _gdi
.PostScriptDC_GetResolution(*args
, **kwargs
)
2926 #---------------------------------------------------------------------------
2928 class MetaFile(core
.Object
):
2931 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2932 def __init__(self
, *args
, **kwargs
):
2933 """__init__(wxString filename=wxPyEmptyString) -> MetaFile"""
2934 newobj
= _gdi
.new_MetaFile(*args
, **kwargs
)
2935 self
.this
= newobj
.this
2938 def __del__(self
, destroy
=_gdi
.delete_MetaFile
):
2941 if self
.thisown
: destroy(self
)
2944 def Ok(*args
, **kwargs
):
2946 return _gdi
.MetaFile_Ok(*args
, **kwargs
)
2948 def SetClipboard(*args
, **kwargs
):
2949 """SetClipboard(int width=0, int height=0) -> bool"""
2950 return _gdi
.MetaFile_SetClipboard(*args
, **kwargs
)
2952 def GetSize(*args
, **kwargs
):
2953 """GetSize() -> Size"""
2954 return _gdi
.MetaFile_GetSize(*args
, **kwargs
)
2956 def GetWidth(*args
, **kwargs
):
2957 """GetWidth() -> int"""
2958 return _gdi
.MetaFile_GetWidth(*args
, **kwargs
)
2960 def GetHeight(*args
, **kwargs
):
2961 """GetHeight() -> int"""
2962 return _gdi
.MetaFile_GetHeight(*args
, **kwargs
)
2964 def GetFileName(*args
, **kwargs
):
2965 """GetFileName() -> wxString"""
2966 return _gdi
.MetaFile_GetFileName(*args
, **kwargs
)
2968 def __nonzero__(self
): return self
.Ok()
2970 class MetaFilePtr(MetaFile
):
2971 def __init__(self
, this
):
2973 if not hasattr(self
,"thisown"): self
.thisown
= 0
2974 self
.__class
__ = MetaFile
2975 _gdi
.MetaFile_swigregister(MetaFilePtr
)
2977 class MetaFileDC(DC
):
2980 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2981 def __init__(self
, *args
, **kwargs
):
2982 """__init__(wxString filename=wxPyEmptyString, int width=0, int height=0,
2983 wxString description=wxPyEmptyString) -> MetaFileDC"""
2984 newobj
= _gdi
.new_MetaFileDC(*args
, **kwargs
)
2985 self
.this
= newobj
.this
2988 def Close(*args
, **kwargs
):
2989 """Close() -> MetaFile"""
2990 return _gdi
.MetaFileDC_Close(*args
, **kwargs
)
2993 class MetaFileDCPtr(MetaFileDC
):
2994 def __init__(self
, this
):
2996 if not hasattr(self
,"thisown"): self
.thisown
= 0
2997 self
.__class
__ = MetaFileDC
2998 _gdi
.MetaFileDC_swigregister(MetaFileDCPtr
)
3000 class PrinterDC(DC
):
3003 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3004 def __init__(self
, *args
, **kwargs
):
3005 """__init__(wxPrintData printData) -> PrinterDC"""
3006 newobj
= _gdi
.new_PrinterDC(*args
, **kwargs
)
3007 self
.this
= newobj
.this
3011 class PrinterDCPtr(PrinterDC
):
3012 def __init__(self
, this
):
3014 if not hasattr(self
,"thisown"): self
.thisown
= 0
3015 self
.__class
__ = PrinterDC
3016 _gdi
.PrinterDC_swigregister(PrinterDCPtr
)
3018 #---------------------------------------------------------------------------
3020 IMAGELIST_DRAW_NORMAL
= _gdi
.IMAGELIST_DRAW_NORMAL
3021 IMAGELIST_DRAW_TRANSPARENT
= _gdi
.IMAGELIST_DRAW_TRANSPARENT
3022 IMAGELIST_DRAW_SELECTED
= _gdi
.IMAGELIST_DRAW_SELECTED
3023 IMAGELIST_DRAW_FOCUSED
= _gdi
.IMAGELIST_DRAW_FOCUSED
3024 IMAGE_LIST_NORMAL
= _gdi
.IMAGE_LIST_NORMAL
3025 IMAGE_LIST_SMALL
= _gdi
.IMAGE_LIST_SMALL
3026 IMAGE_LIST_STATE
= _gdi
.IMAGE_LIST_STATE
3027 class ImageList(core
.Object
):
3030 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3031 def __init__(self
, *args
, **kwargs
):
3032 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
3033 newobj
= _gdi
.new_ImageList(*args
, **kwargs
)
3034 self
.this
= newobj
.this
3037 def __del__(self
, destroy
=_gdi
.delete_ImageList
):
3040 if self
.thisown
: destroy(self
)
3043 def Add(*args
, **kwargs
):
3044 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
3045 return _gdi
.ImageList_Add(*args
, **kwargs
)
3047 def AddWithColourMask(*args
, **kwargs
):
3048 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
3049 return _gdi
.ImageList_AddWithColourMask(*args
, **kwargs
)
3051 def AddIcon(*args
, **kwargs
):
3052 """AddIcon(Icon icon) -> int"""
3053 return _gdi
.ImageList_AddIcon(*args
, **kwargs
)
3055 def Replace(*args
, **kwargs
):
3056 """Replace(int index, Bitmap bitmap, Bitmap mask=NullBitmap) -> bool"""
3057 return _gdi
.ImageList_Replace(*args
, **kwargs
)
3059 def Draw(*args
, **kwargs
):
3060 """Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
3061 bool solidBackground=False) -> bool"""
3062 return _gdi
.ImageList_Draw(*args
, **kwargs
)
3064 def GetImageCount(*args
, **kwargs
):
3065 """GetImageCount() -> int"""
3066 return _gdi
.ImageList_GetImageCount(*args
, **kwargs
)
3068 def Remove(*args
, **kwargs
):
3069 """Remove(int index) -> bool"""
3070 return _gdi
.ImageList_Remove(*args
, **kwargs
)
3072 def RemoveAll(*args
, **kwargs
):
3073 """RemoveAll() -> bool"""
3074 return _gdi
.ImageList_RemoveAll(*args
, **kwargs
)
3076 def GetSize(*args
, **kwargs
):
3077 """GetSize() -> (width,height)"""
3078 return _gdi
.ImageList_GetSize(*args
, **kwargs
)
3081 class ImageListPtr(ImageList
):
3082 def __init__(self
, this
):
3084 if not hasattr(self
,"thisown"): self
.thisown
= 0
3085 self
.__class
__ = ImageList
3086 _gdi
.ImageList_swigregister(ImageListPtr
)
3088 #---------------------------------------------------------------------------
3090 class PenList(core
.Object
):
3092 def __init__(self
): raise RuntimeError, "No constructor defined"
3094 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3095 def AddPen(*args
, **kwargs
):
3096 """AddPen(Pen pen)"""
3097 return _gdi
.PenList_AddPen(*args
, **kwargs
)
3099 def FindOrCreatePen(*args
, **kwargs
):
3100 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
3101 return _gdi
.PenList_FindOrCreatePen(*args
, **kwargs
)
3103 def RemovePen(*args
, **kwargs
):
3104 """RemovePen(Pen pen)"""
3105 return _gdi
.PenList_RemovePen(*args
, **kwargs
)
3107 def GetCount(*args
, **kwargs
):
3108 """GetCount() -> int"""
3109 return _gdi
.PenList_GetCount(*args
, **kwargs
)
3112 class PenListPtr(PenList
):
3113 def __init__(self
, this
):
3115 if not hasattr(self
,"thisown"): self
.thisown
= 0
3116 self
.__class
__ = PenList
3117 _gdi
.PenList_swigregister(PenListPtr
)
3119 class BrushList(core
.Object
):
3121 def __init__(self
): raise RuntimeError, "No constructor defined"
3123 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3124 def AddBrush(*args
, **kwargs
):
3125 """AddBrush(Brush brush)"""
3126 return _gdi
.BrushList_AddBrush(*args
, **kwargs
)
3128 def FindOrCreateBrush(*args
, **kwargs
):
3129 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
3130 return _gdi
.BrushList_FindOrCreateBrush(*args
, **kwargs
)
3132 def RemoveBrush(*args
, **kwargs
):
3133 """RemoveBrush(Brush brush)"""
3134 return _gdi
.BrushList_RemoveBrush(*args
, **kwargs
)
3136 def GetCount(*args
, **kwargs
):
3137 """GetCount() -> int"""
3138 return _gdi
.BrushList_GetCount(*args
, **kwargs
)
3141 class BrushListPtr(BrushList
):
3142 def __init__(self
, this
):
3144 if not hasattr(self
,"thisown"): self
.thisown
= 0
3145 self
.__class
__ = BrushList
3146 _gdi
.BrushList_swigregister(BrushListPtr
)
3148 class ColourDatabase(core
.Object
):
3151 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3152 def __init__(self
, *args
, **kwargs
):
3153 """__init__() -> ColourDatabase"""
3154 newobj
= _gdi
.new_ColourDatabase(*args
, **kwargs
)
3155 self
.this
= newobj
.this
3158 def __del__(self
, destroy
=_gdi
.delete_ColourDatabase
):
3161 if self
.thisown
: destroy(self
)
3164 def Find(*args
, **kwargs
):
3165 """Find(wxString name) -> Colour"""
3166 return _gdi
.ColourDatabase_Find(*args
, **kwargs
)
3168 def FindName(*args
, **kwargs
):
3169 """FindName(Colour colour) -> wxString"""
3170 return _gdi
.ColourDatabase_FindName(*args
, **kwargs
)
3173 def AddColour(*args
, **kwargs
):
3174 """AddColour(wxString name, Colour colour)"""
3175 return _gdi
.ColourDatabase_AddColour(*args
, **kwargs
)
3177 def Append(*args
, **kwargs
):
3178 """Append(wxString name, int red, int green, int blue)"""
3179 return _gdi
.ColourDatabase_Append(*args
, **kwargs
)
3182 class ColourDatabasePtr(ColourDatabase
):
3183 def __init__(self
, this
):
3185 if not hasattr(self
,"thisown"): self
.thisown
= 0
3186 self
.__class
__ = ColourDatabase
3187 _gdi
.ColourDatabase_swigregister(ColourDatabasePtr
)
3189 class FontList(core
.Object
):
3191 def __init__(self
): raise RuntimeError, "No constructor defined"
3193 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3194 def AddFont(*args
, **kwargs
):
3195 """AddFont(Font font)"""
3196 return _gdi
.FontList_AddFont(*args
, **kwargs
)
3198 def FindOrCreateFont(*args
, **kwargs
):
3199 """FindOrCreateFont(int point_size, int family, int style, int weight,
3200 bool underline=False, wxString facename=wxPyEmptyString,
3201 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font"""
3202 return _gdi
.FontList_FindOrCreateFont(*args
, **kwargs
)
3204 def RemoveFont(*args
, **kwargs
):
3205 """RemoveFont(Font font)"""
3206 return _gdi
.FontList_RemoveFont(*args
, **kwargs
)
3208 def GetCount(*args
, **kwargs
):
3209 """GetCount() -> int"""
3210 return _gdi
.FontList_GetCount(*args
, **kwargs
)
3213 class FontListPtr(FontList
):
3214 def __init__(self
, this
):
3216 if not hasattr(self
,"thisown"): self
.thisown
= 0
3217 self
.__class
__ = FontList
3218 _gdi
.FontList_swigregister(FontListPtr
)
3220 #---------------------------------------------------------------------------
3222 #---------------------------------------------------------------------------
3224 class Effects(core
.Object
):
3227 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3228 def __init__(self
, *args
, **kwargs
):
3229 """__init__() -> Effects"""
3230 newobj
= _gdi
.new_Effects(*args
, **kwargs
)
3231 self
.this
= newobj
.this
3234 def GetHighlightColour(*args
, **kwargs
):
3235 """GetHighlightColour() -> Colour"""
3236 return _gdi
.Effects_GetHighlightColour(*args
, **kwargs
)
3238 def GetLightShadow(*args
, **kwargs
):
3239 """GetLightShadow() -> Colour"""
3240 return _gdi
.Effects_GetLightShadow(*args
, **kwargs
)
3242 def GetFaceColour(*args
, **kwargs
):
3243 """GetFaceColour() -> Colour"""
3244 return _gdi
.Effects_GetFaceColour(*args
, **kwargs
)
3246 def GetMediumShadow(*args
, **kwargs
):
3247 """GetMediumShadow() -> Colour"""
3248 return _gdi
.Effects_GetMediumShadow(*args
, **kwargs
)
3250 def GetDarkShadow(*args
, **kwargs
):
3251 """GetDarkShadow() -> Colour"""
3252 return _gdi
.Effects_GetDarkShadow(*args
, **kwargs
)
3254 def SetHighlightColour(*args
, **kwargs
):
3255 """SetHighlightColour(Colour c)"""
3256 return _gdi
.Effects_SetHighlightColour(*args
, **kwargs
)
3258 def SetLightShadow(*args
, **kwargs
):
3259 """SetLightShadow(Colour c)"""
3260 return _gdi
.Effects_SetLightShadow(*args
, **kwargs
)
3262 def SetFaceColour(*args
, **kwargs
):
3263 """SetFaceColour(Colour c)"""
3264 return _gdi
.Effects_SetFaceColour(*args
, **kwargs
)
3266 def SetMediumShadow(*args
, **kwargs
):
3267 """SetMediumShadow(Colour c)"""
3268 return _gdi
.Effects_SetMediumShadow(*args
, **kwargs
)
3270 def SetDarkShadow(*args
, **kwargs
):
3271 """SetDarkShadow(Colour c)"""
3272 return _gdi
.Effects_SetDarkShadow(*args
, **kwargs
)
3274 def Set(*args
, **kwargs
):
3275 """Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3276 Colour mediumShadow, Colour darkShadow)"""
3277 return _gdi
.Effects_Set(*args
, **kwargs
)
3279 def DrawSunkenEdge(*args
, **kwargs
):
3280 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3281 return _gdi
.Effects_DrawSunkenEdge(*args
, **kwargs
)
3283 def TileBitmap(*args
, **kwargs
):
3284 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3285 return _gdi
.Effects_TileBitmap(*args
, **kwargs
)
3288 class EffectsPtr(Effects
):
3289 def __init__(self
, this
):
3291 if not hasattr(self
,"thisown"): self
.thisown
= 0
3292 self
.__class
__ = Effects
3293 _gdi
.Effects_swigregister(EffectsPtr
)
3295 NORMAL_FONT
= cvar
.NORMAL_FONT
3296 SMALL_FONT
= cvar
.SMALL_FONT
3297 ITALIC_FONT
= cvar
.ITALIC_FONT
3298 SWISS_FONT
= cvar
.SWISS_FONT
3299 RED_PEN
= cvar
.RED_PEN
3300 CYAN_PEN
= cvar
.CYAN_PEN
3301 GREEN_PEN
= cvar
.GREEN_PEN
3302 BLACK_PEN
= cvar
.BLACK_PEN
3303 WHITE_PEN
= cvar
.WHITE_PEN
3304 TRANSPARENT_PEN
= cvar
.TRANSPARENT_PEN
3305 BLACK_DASHED_PEN
= cvar
.BLACK_DASHED_PEN
3306 GREY_PEN
= cvar
.GREY_PEN
3307 MEDIUM_GREY_PEN
= cvar
.MEDIUM_GREY_PEN
3308 LIGHT_GREY_PEN
= cvar
.LIGHT_GREY_PEN
3309 BLUE_BRUSH
= cvar
.BLUE_BRUSH
3310 GREEN_BRUSH
= cvar
.GREEN_BRUSH
3311 WHITE_BRUSH
= cvar
.WHITE_BRUSH
3312 BLACK_BRUSH
= cvar
.BLACK_BRUSH
3313 TRANSPARENT_BRUSH
= cvar
.TRANSPARENT_BRUSH
3314 CYAN_BRUSH
= cvar
.CYAN_BRUSH
3315 RED_BRUSH
= cvar
.RED_BRUSH
3316 GREY_BRUSH
= cvar
.GREY_BRUSH
3317 MEDIUM_GREY_BRUSH
= cvar
.MEDIUM_GREY_BRUSH
3318 LIGHT_GREY_BRUSH
= cvar
.LIGHT_GREY_BRUSH
3325 LIGHT_GREY
= cvar
.LIGHT_GREY
3326 STANDARD_CURSOR
= cvar
.STANDARD_CURSOR
3327 HOURGLASS_CURSOR
= cvar
.HOURGLASS_CURSOR
3328 CROSS_CURSOR
= cvar
.CROSS_CURSOR
3329 NullBitmap
= cvar
.NullBitmap
3330 NullIcon
= cvar
.NullIcon
3331 NullCursor
= cvar
.NullCursor
3332 NullPen
= cvar
.NullPen
3333 NullBrush
= cvar
.NullBrush
3334 NullPalette
= cvar
.NullPalette
3335 NullFont
= cvar
.NullFont
3336 NullColour
= cvar
.NullColour
3337 TheFontList
= cvar
.TheFontList
3338 ThePenList
= cvar
.ThePenList
3339 TheBrushList
= cvar
.TheBrushList
3340 TheColourDatabase
= cvar
.TheColourDatabase