]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/mac/gdi.py
Lots of bup fixes, API updates, etc
[wxWidgets.git] / wxPython / src / mac / gdi.py
... / ...
CommitLineData
1# This file was created automatically by SWIG.
2# Don't modify this file, modify the SWIG interface instead.
3
4import _gdi
5
6import core
7wx = core
8#---------------------------------------------------------------------------
9
10class GDIObject(core.Object):
11 """"""
12 def __repr__(self):
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
18 self.thisown = 1
19 del newobj.thisown
20 def __del__(self, destroy=_gdi.delete_GDIObject):
21 """__del__()"""
22 try:
23 if self.thisown: destroy(self)
24 except: pass
25
26 def GetVisible(*args, **kwargs):
27 """GetVisible() -> bool"""
28 return _gdi.GDIObject_GetVisible(*args, **kwargs)
29
30 def SetVisible(*args, **kwargs):
31 """SetVisible(bool visible)"""
32 return _gdi.GDIObject_SetVisible(*args, **kwargs)
33
34 def IsNull(*args, **kwargs):
35 """IsNull() -> bool"""
36 return _gdi.GDIObject_IsNull(*args, **kwargs)
37
38
39class GDIObjectPtr(GDIObject):
40 def __init__(self, this):
41 self.this = this
42 if not hasattr(self,"thisown"): self.thisown = 0
43 self.__class__ = GDIObject
44_gdi.GDIObject_swigregister(GDIObjectPtr)
45
46#---------------------------------------------------------------------------
47
48class Colour(core.Object):
49 """"""
50 def __repr__(self):
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
56 self.thisown = 1
57 del newobj.thisown
58 def __del__(self, destroy=_gdi.delete_Colour):
59 """__del__()"""
60 try:
61 if self.thisown: destroy(self)
62 except: pass
63
64 def Red(*args, **kwargs):
65 """Red() -> unsigned char"""
66 return _gdi.Colour_Red(*args, **kwargs)
67
68 def Green(*args, **kwargs):
69 """Green() -> unsigned char"""
70 return _gdi.Colour_Green(*args, **kwargs)
71
72 def Blue(*args, **kwargs):
73 """Blue() -> unsigned char"""
74 return _gdi.Colour_Blue(*args, **kwargs)
75
76 def Ok(*args, **kwargs):
77 """Ok() -> bool"""
78 return _gdi.Colour_Ok(*args, **kwargs)
79
80 def Set(*args, **kwargs):
81 """Set(unsigned char red, unsigned char green, unsigned char blue)"""
82 return _gdi.Colour_Set(*args, **kwargs)
83
84 def SetRBG(*args, **kwargs):
85 """SetRBG(unsigned long colRGB)"""
86 return _gdi.Colour_SetRBG(*args, **kwargs)
87
88 def __eq__(*args, **kwargs):
89 """__eq__(Colour colour) -> bool"""
90 return _gdi.Colour___eq__(*args, **kwargs)
91
92 def __ne__(*args, **kwargs):
93 """__ne__(Colour colour) -> bool"""
94 return _gdi.Colour___ne__(*args, **kwargs)
95
96 def Get(*args, **kwargs):
97 """Get() -> PyObject"""
98 return _gdi.Colour_Get(*args, **kwargs)
99
100 asTuple = Get
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)
107
108
109class ColourPtr(Colour):
110 def __init__(self, this):
111 self.this = this
112 if not hasattr(self,"thisown"): self.thisown = 0
113 self.__class__ = Colour
114_gdi.Colour_swigregister(ColourPtr)
115
116def NamedColour(*args, **kwargs):
117 """NamedColour(wxString colorName) -> Colour"""
118 val = _gdi.new_NamedColour(*args, **kwargs)
119 val.thisown = 1
120 return val
121
122def ColourRGB(*args, **kwargs):
123 """ColourRGB(unsigned long colRGB) -> Colour"""
124 val = _gdi.new_ColourRGB(*args, **kwargs)
125 val.thisown = 1
126 return val
127
128class Palette(GDIObject):
129 """"""
130 def __repr__(self):
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
136 self.thisown = 1
137 del newobj.thisown
138 def __del__(self, destroy=_gdi.delete_Palette):
139 """__del__()"""
140 try:
141 if self.thisown: destroy(self)
142 except: pass
143
144 def GetPixel(*args, **kwargs):
145 """GetPixel(byte red, byte green, byte blue) -> int"""
146 return _gdi.Palette_GetPixel(*args, **kwargs)
147
148 def GetRGB(*args, **kwargs):
149 """GetRGB(int pixel, byte OUTPUT, byte OUTPUT, byte OUTPUT) -> bool"""
150 return _gdi.Palette_GetRGB(*args, **kwargs)
151
152 def Ok(*args, **kwargs):
153 """Ok() -> bool"""
154 return _gdi.Palette_Ok(*args, **kwargs)
155
156
157class PalettePtr(Palette):
158 def __init__(self, this):
159 self.this = this
160 if not hasattr(self,"thisown"): self.thisown = 0
161 self.__class__ = Palette
162_gdi.Palette_swigregister(PalettePtr)
163
164#---------------------------------------------------------------------------
165
166class Pen(GDIObject):
167 """"""
168 def __repr__(self):
169 return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
170 def __init__(self, *args, **kwargs):
171 """__init__(Colour colour, int width=1, int style=SOLID) -> Pen"""
172 newobj = _gdi.new_Pen(*args, **kwargs)
173 self.this = newobj.this
174 self.thisown = 1
175 del newobj.thisown
176 def __del__(self, destroy=_gdi.delete_Pen):
177 """__del__()"""
178 try:
179 if self.thisown: destroy(self)
180 except: pass
181
182 def GetCap(*args, **kwargs):
183 """GetCap() -> int"""
184 return _gdi.Pen_GetCap(*args, **kwargs)
185
186 def GetColour(*args, **kwargs):
187 """GetColour() -> Colour"""
188 return _gdi.Pen_GetColour(*args, **kwargs)
189
190 def GetJoin(*args, **kwargs):
191 """GetJoin() -> int"""
192 return _gdi.Pen_GetJoin(*args, **kwargs)
193
194 def GetStyle(*args, **kwargs):
195 """GetStyle() -> int"""
196 return _gdi.Pen_GetStyle(*args, **kwargs)
197
198 def GetWidth(*args, **kwargs):
199 """GetWidth() -> int"""
200 return _gdi.Pen_GetWidth(*args, **kwargs)
201
202 def Ok(*args, **kwargs):
203 """Ok() -> bool"""
204 return _gdi.Pen_Ok(*args, **kwargs)
205
206 def SetCap(*args, **kwargs):
207 """SetCap(int cap_style)"""
208 return _gdi.Pen_SetCap(*args, **kwargs)
209
210 def SetColour(*args, **kwargs):
211 """SetColour(Colour colour)"""
212 return _gdi.Pen_SetColour(*args, **kwargs)
213
214 def SetJoin(*args, **kwargs):
215 """SetJoin(int join_style)"""
216 return _gdi.Pen_SetJoin(*args, **kwargs)
217
218 def SetStyle(*args, **kwargs):
219 """SetStyle(int style)"""
220 return _gdi.Pen_SetStyle(*args, **kwargs)
221
222 def SetWidth(*args, **kwargs):
223 """SetWidth(int width)"""
224 return _gdi.Pen_SetWidth(*args, **kwargs)
225
226 def SetDashes(*args, **kwargs):
227 """SetDashes(int dashes, wxDash dashes_array)"""
228 return _gdi.Pen_SetDashes(*args, **kwargs)
229
230 def GetDashes(*args, **kwargs):
231 """GetDashes() -> PyObject"""
232 return _gdi.Pen_GetDashes(*args, **kwargs)
233
234 def __nonzero__(self): return self.Ok()
235
236class PenPtr(Pen):
237 def __init__(self, this):
238 self.this = this
239 if not hasattr(self,"thisown"): self.thisown = 0
240 self.__class__ = Pen
241_gdi.Pen_swigregister(PenPtr)
242
243class PyPen(Pen):
244 """"""
245 def __repr__(self):
246 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
247 def __init__(self, *args, **kwargs):
248 """__init__(Colour colour, int width=1, int style=SOLID) -> PyPen"""
249 newobj = _gdi.new_PyPen(*args, **kwargs)
250 self.this = newobj.this
251 self.thisown = 1
252 del newobj.thisown
253 def __del__(self, destroy=_gdi.delete_PyPen):
254 """__del__()"""
255 try:
256 if self.thisown: destroy(self)
257 except: pass
258
259 def SetDashes(*args, **kwargs):
260 """SetDashes(int dashes, wxDash dashes_array)"""
261 return _gdi.PyPen_SetDashes(*args, **kwargs)
262
263
264class PyPenPtr(PyPen):
265 def __init__(self, this):
266 self.this = this
267 if not hasattr(self,"thisown"): self.thisown = 0
268 self.__class__ = PyPen
269_gdi.PyPen_swigregister(PyPenPtr)
270
271Pen = PyPen
272#---------------------------------------------------------------------------
273
274class Brush(GDIObject):
275 """"""
276 def __repr__(self):
277 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
278 def __init__(self, *args, **kwargs):
279 """__init__(Colour colour, int style=SOLID) -> Brush"""
280 newobj = _gdi.new_Brush(*args, **kwargs)
281 self.this = newobj.this
282 self.thisown = 1
283 del newobj.thisown
284 def __del__(self, destroy=_gdi.delete_Brush):
285 """__del__()"""
286 try:
287 if self.thisown: destroy(self)
288 except: pass
289
290 def SetColour(*args, **kwargs):
291 """SetColour(Colour col)"""
292 return _gdi.Brush_SetColour(*args, **kwargs)
293
294 def SetStyle(*args, **kwargs):
295 """SetStyle(int style)"""
296 return _gdi.Brush_SetStyle(*args, **kwargs)
297
298 def SetStipple(*args, **kwargs):
299 """SetStipple(Bitmap stipple)"""
300 return _gdi.Brush_SetStipple(*args, **kwargs)
301
302 def GetColour(*args, **kwargs):
303 """GetColour() -> Colour"""
304 return _gdi.Brush_GetColour(*args, **kwargs)
305
306 def GetStyle(*args, **kwargs):
307 """GetStyle() -> int"""
308 return _gdi.Brush_GetStyle(*args, **kwargs)
309
310 def GetStipple(*args, **kwargs):
311 """GetStipple() -> Bitmap"""
312 return _gdi.Brush_GetStipple(*args, **kwargs)
313
314 def Ok(*args, **kwargs):
315 """Ok() -> bool"""
316 return _gdi.Brush_Ok(*args, **kwargs)
317
318 def GetMacTheme(*args, **kwargs):
319 """GetMacTheme() -> short"""
320 return _gdi.Brush_GetMacTheme(*args, **kwargs)
321
322 def SetMacTheme(*args, **kwargs):
323 """SetMacTheme(short macThemeBrush)"""
324 return _gdi.Brush_SetMacTheme(*args, **kwargs)
325
326 def __nonzero__(self): return self.Ok()
327
328class BrushPtr(Brush):
329 def __init__(self, this):
330 self.this = this
331 if not hasattr(self,"thisown"): self.thisown = 0
332 self.__class__ = Brush
333_gdi.Brush_swigregister(BrushPtr)
334
335class Bitmap(GDIObject):
336 """"""
337 def __repr__(self):
338 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
339 def __init__(self, *args, **kwargs):
340 """__init__(wxString name, wxBitmapType type=BITMAP_TYPE_ANY) -> Bitmap"""
341 newobj = _gdi.new_Bitmap(*args, **kwargs)
342 self.this = newobj.this
343 self.thisown = 1
344 del newobj.thisown
345 def __del__(self, destroy=_gdi.delete_Bitmap):
346 """__del__()"""
347 try:
348 if self.thisown: destroy(self)
349 except: pass
350
351 def Ok(*args, **kwargs):
352 """Ok() -> bool"""
353 return _gdi.Bitmap_Ok(*args, **kwargs)
354
355 def GetWidth(*args, **kwargs):
356 """GetWidth() -> int"""
357 return _gdi.Bitmap_GetWidth(*args, **kwargs)
358
359 def GetHeight(*args, **kwargs):
360 """GetHeight() -> int"""
361 return _gdi.Bitmap_GetHeight(*args, **kwargs)
362
363 def GetDepth(*args, **kwargs):
364 """GetDepth() -> int"""
365 return _gdi.Bitmap_GetDepth(*args, **kwargs)
366
367 def ConvertToImage(*args, **kwargs):
368 """ConvertToImage() -> Image"""
369 return _gdi.Bitmap_ConvertToImage(*args, **kwargs)
370
371 def GetMask(*args, **kwargs):
372 """GetMask() -> Mask"""
373 return _gdi.Bitmap_GetMask(*args, **kwargs)
374
375 def SetMask(*args, **kwargs):
376 """SetMask(Mask mask)"""
377 return _gdi.Bitmap_SetMask(*args, **kwargs)
378
379 def SetMaskColour(*args, **kwargs):
380 """SetMaskColour(Colour colour)"""
381 return _gdi.Bitmap_SetMaskColour(*args, **kwargs)
382
383 def GetSubBitmap(*args, **kwargs):
384 """GetSubBitmap(Rect rect) -> Bitmap"""
385 return _gdi.Bitmap_GetSubBitmap(*args, **kwargs)
386
387 def SaveFile(*args, **kwargs):
388 """SaveFile(wxString name, wxBitmapType type, Palette palette=(wxPalette *) NULL) -> bool"""
389 return _gdi.Bitmap_SaveFile(*args, **kwargs)
390
391 def LoadFile(*args, **kwargs):
392 """LoadFile(wxString name, wxBitmapType type) -> bool"""
393 return _gdi.Bitmap_LoadFile(*args, **kwargs)
394
395 def CopyFromIcon(*args, **kwargs):
396 """CopyFromIcon(Icon icon) -> bool"""
397 return _gdi.Bitmap_CopyFromIcon(*args, **kwargs)
398
399 def SetHeight(*args, **kwargs):
400 """SetHeight(int height)"""
401 return _gdi.Bitmap_SetHeight(*args, **kwargs)
402
403 def SetWidth(*args, **kwargs):
404 """SetWidth(int width)"""
405 return _gdi.Bitmap_SetWidth(*args, **kwargs)
406
407 def SetDepth(*args, **kwargs):
408 """SetDepth(int depth)"""
409 return _gdi.Bitmap_SetDepth(*args, **kwargs)
410
411 def __nonzero__(self): return self.Ok()
412
413class BitmapPtr(Bitmap):
414 def __init__(self, this):
415 self.this = this
416 if not hasattr(self,"thisown"): self.thisown = 0
417 self.__class__ = Bitmap
418_gdi.Bitmap_swigregister(BitmapPtr)
419
420def EmptyBitmap(*args, **kwargs):
421 """EmptyBitmap(int width, int height, int depth=-1) -> Bitmap"""
422 val = _gdi.new_EmptyBitmap(*args, **kwargs)
423 val.thisown = 1
424 return val
425
426def BitmapFromIcon(*args, **kwargs):
427 """BitmapFromIcon(Icon icon) -> Bitmap"""
428 val = _gdi.new_BitmapFromIcon(*args, **kwargs)
429 val.thisown = 1
430 return val
431
432def BitmapFromImage(*args, **kwargs):
433 """BitmapFromImage(Image image, int depth=-1) -> Bitmap"""
434 val = _gdi.new_BitmapFromImage(*args, **kwargs)
435 val.thisown = 1
436 return val
437
438def BitmapFromXPMData(*args, **kwargs):
439 """BitmapFromXPMData(PyObject listOfStrings) -> Bitmap"""
440 val = _gdi.new_BitmapFromXPMData(*args, **kwargs)
441 val.thisown = 1
442 return val
443
444def BitmapFromBits(*args, **kwargs):
445 """BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap"""
446 val = _gdi.new_BitmapFromBits(*args, **kwargs)
447 val.thisown = 1
448 return val
449
450class Mask(core.Object):
451 """"""
452 def __repr__(self):
453 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
454 def __init__(self, *args, **kwargs):
455 """__init__(Bitmap bitmap) -> Mask"""
456 newobj = _gdi.new_Mask(*args, **kwargs)
457 self.this = newobj.this
458 self.thisown = 1
459 del newobj.thisown
460
461class MaskPtr(Mask):
462 def __init__(self, this):
463 self.this = this
464 if not hasattr(self,"thisown"): self.thisown = 0
465 self.__class__ = Mask
466_gdi.Mask_swigregister(MaskPtr)
467
468def MaskColour(*args, **kwargs):
469 """MaskColour(Bitmap bitmap, Colour colour) -> Mask"""
470 val = _gdi.new_MaskColour(*args, **kwargs)
471 val.thisown = 1
472 return val
473
474class Icon(GDIObject):
475 """"""
476 def __repr__(self):
477 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
478 def __init__(self, *args, **kwargs):
479 """__init__(wxString name, long flags, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
480 newobj = _gdi.new_Icon(*args, **kwargs)
481 self.this = newobj.this
482 self.thisown = 1
483 del newobj.thisown
484 def __del__(self, destroy=_gdi.delete_Icon):
485 """__del__()"""
486 try:
487 if self.thisown: destroy(self)
488 except: pass
489
490 def Ok(*args, **kwargs):
491 """Ok() -> bool"""
492 return _gdi.Icon_Ok(*args, **kwargs)
493
494 def GetWidth(*args, **kwargs):
495 """GetWidth() -> int"""
496 return _gdi.Icon_GetWidth(*args, **kwargs)
497
498 def GetHeight(*args, **kwargs):
499 """GetHeight() -> int"""
500 return _gdi.Icon_GetHeight(*args, **kwargs)
501
502 def GetDepth(*args, **kwargs):
503 """GetDepth() -> int"""
504 return _gdi.Icon_GetDepth(*args, **kwargs)
505
506 def SetWidth(*args, **kwargs):
507 """SetWidth(int w)"""
508 return _gdi.Icon_SetWidth(*args, **kwargs)
509
510 def SetHeight(*args, **kwargs):
511 """SetHeight(int h)"""
512 return _gdi.Icon_SetHeight(*args, **kwargs)
513
514 def SetDepth(*args, **kwargs):
515 """SetDepth(int d)"""
516 return _gdi.Icon_SetDepth(*args, **kwargs)
517
518 def CopyFromBitmap(*args, **kwargs):
519 """CopyFromBitmap(Bitmap bmp)"""
520 return _gdi.Icon_CopyFromBitmap(*args, **kwargs)
521
522 def __nonzero__(self): return self.Ok()
523
524class IconPtr(Icon):
525 def __init__(self, this):
526 self.this = this
527 if not hasattr(self,"thisown"): self.thisown = 0
528 self.__class__ = Icon
529_gdi.Icon_swigregister(IconPtr)
530
531def EmptyIcon(*args, **kwargs):
532 """EmptyIcon() -> Icon"""
533 val = _gdi.new_EmptyIcon(*args, **kwargs)
534 val.thisown = 1
535 return val
536
537def IconFromLocation(*args, **kwargs):
538 """IconFromLocation(IconLocation loc) -> Icon"""
539 val = _gdi.new_IconFromLocation(*args, **kwargs)
540 val.thisown = 1
541 return val
542
543def IconFromBitmap(*args, **kwargs):
544 """IconFromBitmap(Bitmap bmp) -> Icon"""
545 val = _gdi.new_IconFromBitmap(*args, **kwargs)
546 val.thisown = 1
547 return val
548
549def IconFromXPMData(*args, **kwargs):
550 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
551 val = _gdi.new_IconFromXPMData(*args, **kwargs)
552 val.thisown = 1
553 return val
554
555class IconLocation(object):
556 """"""
557 def __repr__(self):
558 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
559 def __init__(self, *args, **kwargs):
560 """__init__(wxString filename=&wxPyEmptyString, int num=0) -> IconLocation"""
561 newobj = _gdi.new_IconLocation(*args, **kwargs)
562 self.this = newobj.this
563 self.thisown = 1
564 del newobj.thisown
565 def __del__(self, destroy=_gdi.delete_IconLocation):
566 """__del__()"""
567 try:
568 if self.thisown: destroy(self)
569 except: pass
570
571 def IsOk(*args, **kwargs):
572 """IsOk() -> bool"""
573 return _gdi.IconLocation_IsOk(*args, **kwargs)
574
575 def __nonzero__(self): return self.Ok()
576 def SetFileName(*args, **kwargs):
577 """SetFileName(wxString filename)"""
578 return _gdi.IconLocation_SetFileName(*args, **kwargs)
579
580 def GetFileName(*args, **kwargs):
581 """GetFileName() -> wxString"""
582 return _gdi.IconLocation_GetFileName(*args, **kwargs)
583
584 def SetIndex(*args, **kwargs):
585 """SetIndex(int num)"""
586 return _gdi.IconLocation_SetIndex(*args, **kwargs)
587
588 def GetIndex(*args, **kwargs):
589 """GetIndex() -> int"""
590 return _gdi.IconLocation_GetIndex(*args, **kwargs)
591
592
593class IconLocationPtr(IconLocation):
594 def __init__(self, this):
595 self.this = this
596 if not hasattr(self,"thisown"): self.thisown = 0
597 self.__class__ = IconLocation
598_gdi.IconLocation_swigregister(IconLocationPtr)
599
600class IconBundle(object):
601 """"""
602 def __repr__(self):
603 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
604 def __init__(self, *args, **kwargs):
605 """__init__() -> IconBundle"""
606 newobj = _gdi.new_IconBundle(*args, **kwargs)
607 self.this = newobj.this
608 self.thisown = 1
609 del newobj.thisown
610 def __del__(self, destroy=_gdi.delete_IconBundle):
611 """__del__()"""
612 try:
613 if self.thisown: destroy(self)
614 except: pass
615
616 def AddIcon(*args, **kwargs):
617 """AddIcon(Icon icon)"""
618 return _gdi.IconBundle_AddIcon(*args, **kwargs)
619
620 def AddIconFromFile(*args, **kwargs):
621 """AddIconFromFile(wxString file, long type)"""
622 return _gdi.IconBundle_AddIconFromFile(*args, **kwargs)
623
624 def GetIcon(*args, **kwargs):
625 """GetIcon(Size size) -> Icon"""
626 return _gdi.IconBundle_GetIcon(*args, **kwargs)
627
628
629class IconBundlePtr(IconBundle):
630 def __init__(self, this):
631 self.this = this
632 if not hasattr(self,"thisown"): self.thisown = 0
633 self.__class__ = IconBundle
634_gdi.IconBundle_swigregister(IconBundlePtr)
635
636def IconBundleFromFile(*args, **kwargs):
637 """IconBundleFromFile(wxString file, long type) -> IconBundle"""
638 val = _gdi.new_IconBundleFromFile(*args, **kwargs)
639 val.thisown = 1
640 return val
641
642def IconBundleFromIcon(*args, **kwargs):
643 """IconBundleFromIcon(Icon icon) -> IconBundle"""
644 val = _gdi.new_IconBundleFromIcon(*args, **kwargs)
645 val.thisown = 1
646 return val
647
648class Cursor(GDIObject):
649 """"""
650 def __repr__(self):
651 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
652 def __init__(self, *args, **kwargs):
653 """__init__(wxString cursorName, long flags, int hotSpotX=0, int hotSpotY=0) -> Cursor"""
654 newobj = _gdi.new_Cursor(*args, **kwargs)
655 self.this = newobj.this
656 self.thisown = 1
657 del newobj.thisown
658 def __del__(self, destroy=_gdi.delete_Cursor):
659 """__del__()"""
660 try:
661 if self.thisown: destroy(self)
662 except: pass
663
664 def Ok(*args, **kwargs):
665 """Ok() -> bool"""
666 return _gdi.Cursor_Ok(*args, **kwargs)
667
668 def __nonzero__(self): return self.Ok()
669
670class CursorPtr(Cursor):
671 def __init__(self, this):
672 self.this = this
673 if not hasattr(self,"thisown"): self.thisown = 0
674 self.__class__ = Cursor
675_gdi.Cursor_swigregister(CursorPtr)
676
677def StockCursor(*args, **kwargs):
678 """StockCursor(int id) -> Cursor"""
679 val = _gdi.new_StockCursor(*args, **kwargs)
680 val.thisown = 1
681 return val
682
683def CursorFromImage(*args, **kwargs):
684 """CursorFromImage(Image image) -> Cursor"""
685 val = _gdi.new_CursorFromImage(*args, **kwargs)
686 val.thisown = 1
687 return val
688
689def CursorFromBits(*args, **kwargs):
690 """CursorFromBits(PyObject bits, int width, int height, int hotSpotX=-1,
691 int hotSpotY=-1, PyObject maskBits=0) -> Cursor"""
692 val = _gdi.new_CursorFromBits(*args, **kwargs)
693 val.thisown = 1
694 return val
695
696#---------------------------------------------------------------------------
697
698OutRegion = _gdi.OutRegion
699PartRegion = _gdi.PartRegion
700InRegion = _gdi.InRegion
701class Region(GDIObject):
702 """"""
703 def __repr__(self):
704 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
705 def __init__(self, *args, **kwargs):
706 """__init__(int x=0, int y=0, int width=0, int height=0) -> Region"""
707 newobj = _gdi.new_Region(*args, **kwargs)
708 self.this = newobj.this
709 self.thisown = 1
710 del newobj.thisown
711 def __del__(self, destroy=_gdi.delete_Region):
712 """__del__()"""
713 try:
714 if self.thisown: destroy(self)
715 except: pass
716
717 def Clear(*args, **kwargs):
718 """Clear()"""
719 return _gdi.Region_Clear(*args, **kwargs)
720
721 def Contains(*args, **kwargs):
722 """Contains(int x, int y) -> wxRegionContain"""
723 return _gdi.Region_Contains(*args, **kwargs)
724
725 def ContainsPoint(*args, **kwargs):
726 """ContainsPoint(Point pt) -> wxRegionContain"""
727 return _gdi.Region_ContainsPoint(*args, **kwargs)
728
729 def ContainsRect(*args, **kwargs):
730 """ContainsRect(Rect rect) -> wxRegionContain"""
731 return _gdi.Region_ContainsRect(*args, **kwargs)
732
733 def ContainsRectDim(*args, **kwargs):
734 """ContainsRectDim(int x, int y, int w, int h) -> wxRegionContain"""
735 return _gdi.Region_ContainsRectDim(*args, **kwargs)
736
737 def GetBox(*args, **kwargs):
738 """GetBox() -> Rect"""
739 return _gdi.Region_GetBox(*args, **kwargs)
740
741 def Intersect(*args, **kwargs):
742 """Intersect(int x, int y, int width, int height) -> bool"""
743 return _gdi.Region_Intersect(*args, **kwargs)
744
745 def IntersectRect(*args, **kwargs):
746 """IntersectRect(Rect rect) -> bool"""
747 return _gdi.Region_IntersectRect(*args, **kwargs)
748
749 def IntersectRegion(*args, **kwargs):
750 """IntersectRegion(Region region) -> bool"""
751 return _gdi.Region_IntersectRegion(*args, **kwargs)
752
753 def IsEmpty(*args, **kwargs):
754 """IsEmpty() -> bool"""
755 return _gdi.Region_IsEmpty(*args, **kwargs)
756
757 def Union(*args, **kwargs):
758 """Union(int x, int y, int width, int height) -> bool"""
759 return _gdi.Region_Union(*args, **kwargs)
760
761 def UnionRect(*args, **kwargs):
762 """UnionRect(Rect rect) -> bool"""
763 return _gdi.Region_UnionRect(*args, **kwargs)
764
765 def UnionRegion(*args, **kwargs):
766 """UnionRegion(Region region) -> bool"""
767 return _gdi.Region_UnionRegion(*args, **kwargs)
768
769 def Subtract(*args, **kwargs):
770 """Subtract(int x, int y, int width, int height) -> bool"""
771 return _gdi.Region_Subtract(*args, **kwargs)
772
773 def SubtractRect(*args, **kwargs):
774 """SubtractRect(Rect rect) -> bool"""
775 return _gdi.Region_SubtractRect(*args, **kwargs)
776
777 def SubtractRegion(*args, **kwargs):
778 """SubtractRegion(Region region) -> bool"""
779 return _gdi.Region_SubtractRegion(*args, **kwargs)
780
781 def Xor(*args, **kwargs):
782 """Xor(int x, int y, int width, int height) -> bool"""
783 return _gdi.Region_Xor(*args, **kwargs)
784
785 def XorRect(*args, **kwargs):
786 """XorRect(Rect rect) -> bool"""
787 return _gdi.Region_XorRect(*args, **kwargs)
788
789 def XorRegion(*args, **kwargs):
790 """XorRegion(Region region) -> bool"""
791 return _gdi.Region_XorRegion(*args, **kwargs)
792
793 def ConvertToBitmap(*args, **kwargs):
794 """ConvertToBitmap() -> Bitmap"""
795 return _gdi.Region_ConvertToBitmap(*args, **kwargs)
796
797 def UnionBitmap(*args, **kwargs):
798 """UnionBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> bool"""
799 return _gdi.Region_UnionBitmap(*args, **kwargs)
800
801
802class RegionPtr(Region):
803 def __init__(self, this):
804 self.this = this
805 if not hasattr(self,"thisown"): self.thisown = 0
806 self.__class__ = Region
807_gdi.Region_swigregister(RegionPtr)
808
809def RegionFromBitmap(*args, **kwargs):
810 """RegionFromBitmap(Bitmap bmp, Colour transColour=NullColour, int tolerance=0) -> Region"""
811 val = _gdi.new_RegionFromBitmap(*args, **kwargs)
812 val.thisown = 1
813 return val
814
815def RegionFromPoints(*args, **kwargs):
816 """RegionFromPoints(int points, Point points_array, int fillStyle=WINDING_RULE) -> Region"""
817 val = _gdi.new_RegionFromPoints(*args, **kwargs)
818 val.thisown = 1
819 return val
820
821class RegionIterator(core.Object):
822 """"""
823 def __repr__(self):
824 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
825 def __init__(self, *args, **kwargs):
826 """__init__(Region region) -> RegionIterator"""
827 newobj = _gdi.new_RegionIterator(*args, **kwargs)
828 self.this = newobj.this
829 self.thisown = 1
830 del newobj.thisown
831 def __del__(self, destroy=_gdi.delete_RegionIterator):
832 """__del__()"""
833 try:
834 if self.thisown: destroy(self)
835 except: pass
836
837 def GetX(*args, **kwargs):
838 """GetX() -> int"""
839 return _gdi.RegionIterator_GetX(*args, **kwargs)
840
841 def GetY(*args, **kwargs):
842 """GetY() -> int"""
843 return _gdi.RegionIterator_GetY(*args, **kwargs)
844
845 def GetW(*args, **kwargs):
846 """GetW() -> int"""
847 return _gdi.RegionIterator_GetW(*args, **kwargs)
848
849 def GetWidth(*args, **kwargs):
850 """GetWidth() -> int"""
851 return _gdi.RegionIterator_GetWidth(*args, **kwargs)
852
853 def GetH(*args, **kwargs):
854 """GetH() -> int"""
855 return _gdi.RegionIterator_GetH(*args, **kwargs)
856
857 def GetHeight(*args, **kwargs):
858 """GetHeight() -> int"""
859 return _gdi.RegionIterator_GetHeight(*args, **kwargs)
860
861 def GetRect(*args, **kwargs):
862 """GetRect() -> Rect"""
863 return _gdi.RegionIterator_GetRect(*args, **kwargs)
864
865 def HaveRects(*args, **kwargs):
866 """HaveRects() -> bool"""
867 return _gdi.RegionIterator_HaveRects(*args, **kwargs)
868
869 def Reset(*args, **kwargs):
870 """Reset()"""
871 return _gdi.RegionIterator_Reset(*args, **kwargs)
872
873 def Next(*args, **kwargs):
874 """Next()"""
875 return _gdi.RegionIterator_Next(*args, **kwargs)
876
877 def __nonzero__(*args, **kwargs):
878 """__nonzero__() -> bool"""
879 return _gdi.RegionIterator___nonzero__(*args, **kwargs)
880
881
882class RegionIteratorPtr(RegionIterator):
883 def __init__(self, this):
884 self.this = this
885 if not hasattr(self,"thisown"): self.thisown = 0
886 self.__class__ = RegionIterator
887_gdi.RegionIterator_swigregister(RegionIteratorPtr)
888
889#---------------------------------------------------------------------------
890
891FONTFAMILY_DEFAULT = _gdi.FONTFAMILY_DEFAULT
892FONTFAMILY_DECORATIVE = _gdi.FONTFAMILY_DECORATIVE
893FONTFAMILY_ROMAN = _gdi.FONTFAMILY_ROMAN
894FONTFAMILY_SCRIPT = _gdi.FONTFAMILY_SCRIPT
895FONTFAMILY_SWISS = _gdi.FONTFAMILY_SWISS
896FONTFAMILY_MODERN = _gdi.FONTFAMILY_MODERN
897FONTFAMILY_TELETYPE = _gdi.FONTFAMILY_TELETYPE
898FONTFAMILY_MAX = _gdi.FONTFAMILY_MAX
899FONTFAMILY_UNKNOWN = _gdi.FONTFAMILY_UNKNOWN
900FONTSTYLE_NORMAL = _gdi.FONTSTYLE_NORMAL
901FONTSTYLE_ITALIC = _gdi.FONTSTYLE_ITALIC
902FONTSTYLE_SLANT = _gdi.FONTSTYLE_SLANT
903FONTSTYLE_MAX = _gdi.FONTSTYLE_MAX
904FONTWEIGHT_NORMAL = _gdi.FONTWEIGHT_NORMAL
905FONTWEIGHT_LIGHT = _gdi.FONTWEIGHT_LIGHT
906FONTWEIGHT_BOLD = _gdi.FONTWEIGHT_BOLD
907FONTWEIGHT_MAX = _gdi.FONTWEIGHT_MAX
908FONTFLAG_DEFAULT = _gdi.FONTFLAG_DEFAULT
909FONTFLAG_ITALIC = _gdi.FONTFLAG_ITALIC
910FONTFLAG_SLANT = _gdi.FONTFLAG_SLANT
911FONTFLAG_LIGHT = _gdi.FONTFLAG_LIGHT
912FONTFLAG_BOLD = _gdi.FONTFLAG_BOLD
913FONTFLAG_ANTIALIASED = _gdi.FONTFLAG_ANTIALIASED
914FONTFLAG_NOT_ANTIALIASED = _gdi.FONTFLAG_NOT_ANTIALIASED
915FONTFLAG_UNDERLINED = _gdi.FONTFLAG_UNDERLINED
916FONTFLAG_STRIKETHROUGH = _gdi.FONTFLAG_STRIKETHROUGH
917FONTFLAG_MASK = _gdi.FONTFLAG_MASK
918FONTENCODING_SYSTEM = _gdi.FONTENCODING_SYSTEM
919FONTENCODING_DEFAULT = _gdi.FONTENCODING_DEFAULT
920FONTENCODING_ISO8859_1 = _gdi.FONTENCODING_ISO8859_1
921FONTENCODING_ISO8859_2 = _gdi.FONTENCODING_ISO8859_2
922FONTENCODING_ISO8859_3 = _gdi.FONTENCODING_ISO8859_3
923FONTENCODING_ISO8859_4 = _gdi.FONTENCODING_ISO8859_4
924FONTENCODING_ISO8859_5 = _gdi.FONTENCODING_ISO8859_5
925FONTENCODING_ISO8859_6 = _gdi.FONTENCODING_ISO8859_6
926FONTENCODING_ISO8859_7 = _gdi.FONTENCODING_ISO8859_7
927FONTENCODING_ISO8859_8 = _gdi.FONTENCODING_ISO8859_8
928FONTENCODING_ISO8859_9 = _gdi.FONTENCODING_ISO8859_9
929FONTENCODING_ISO8859_10 = _gdi.FONTENCODING_ISO8859_10
930FONTENCODING_ISO8859_11 = _gdi.FONTENCODING_ISO8859_11
931FONTENCODING_ISO8859_12 = _gdi.FONTENCODING_ISO8859_12
932FONTENCODING_ISO8859_13 = _gdi.FONTENCODING_ISO8859_13
933FONTENCODING_ISO8859_14 = _gdi.FONTENCODING_ISO8859_14
934FONTENCODING_ISO8859_15 = _gdi.FONTENCODING_ISO8859_15
935FONTENCODING_ISO8859_MAX = _gdi.FONTENCODING_ISO8859_MAX
936FONTENCODING_KOI8 = _gdi.FONTENCODING_KOI8
937FONTENCODING_ALTERNATIVE = _gdi.FONTENCODING_ALTERNATIVE
938FONTENCODING_BULGARIAN = _gdi.FONTENCODING_BULGARIAN
939FONTENCODING_CP437 = _gdi.FONTENCODING_CP437
940FONTENCODING_CP850 = _gdi.FONTENCODING_CP850
941FONTENCODING_CP852 = _gdi.FONTENCODING_CP852
942FONTENCODING_CP855 = _gdi.FONTENCODING_CP855
943FONTENCODING_CP866 = _gdi.FONTENCODING_CP866
944FONTENCODING_CP874 = _gdi.FONTENCODING_CP874
945FONTENCODING_CP932 = _gdi.FONTENCODING_CP932
946FONTENCODING_CP936 = _gdi.FONTENCODING_CP936
947FONTENCODING_CP949 = _gdi.FONTENCODING_CP949
948FONTENCODING_CP950 = _gdi.FONTENCODING_CP950
949FONTENCODING_CP1250 = _gdi.FONTENCODING_CP1250
950FONTENCODING_CP1251 = _gdi.FONTENCODING_CP1251
951FONTENCODING_CP1252 = _gdi.FONTENCODING_CP1252
952FONTENCODING_CP1253 = _gdi.FONTENCODING_CP1253
953FONTENCODING_CP1254 = _gdi.FONTENCODING_CP1254
954FONTENCODING_CP1255 = _gdi.FONTENCODING_CP1255
955FONTENCODING_CP1256 = _gdi.FONTENCODING_CP1256
956FONTENCODING_CP1257 = _gdi.FONTENCODING_CP1257
957FONTENCODING_CP12_MAX = _gdi.FONTENCODING_CP12_MAX
958FONTENCODING_UTF7 = _gdi.FONTENCODING_UTF7
959FONTENCODING_UTF8 = _gdi.FONTENCODING_UTF8
960FONTENCODING_EUC_JP = _gdi.FONTENCODING_EUC_JP
961FONTENCODING_UTF16BE = _gdi.FONTENCODING_UTF16BE
962FONTENCODING_UTF16LE = _gdi.FONTENCODING_UTF16LE
963FONTENCODING_UTF32BE = _gdi.FONTENCODING_UTF32BE
964FONTENCODING_UTF32LE = _gdi.FONTENCODING_UTF32LE
965FONTENCODING_MAX = _gdi.FONTENCODING_MAX
966FONTENCODING_UTF16 = _gdi.FONTENCODING_UTF16
967FONTENCODING_UTF32 = _gdi.FONTENCODING_UTF32
968FONTENCODING_UNICODE = _gdi.FONTENCODING_UNICODE
969FONTENCODING_GB2312 = _gdi.FONTENCODING_GB2312
970FONTENCODING_BIG5 = _gdi.FONTENCODING_BIG5
971FONTENCODING_SHIFT_JIS = _gdi.FONTENCODING_SHIFT_JIS
972#---------------------------------------------------------------------------
973
974class NativeFontInfo(object):
975 """"""
976 def __repr__(self):
977 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
978 def __init__(self, *args, **kwargs):
979 """__init__() -> NativeFontInfo"""
980 newobj = _gdi.new_NativeFontInfo(*args, **kwargs)
981 self.this = newobj.this
982 self.thisown = 1
983 del newobj.thisown
984 def __del__(self, destroy=_gdi.delete_NativeFontInfo):
985 """__del__()"""
986 try:
987 if self.thisown: destroy(self)
988 except: pass
989
990 def Init(*args, **kwargs):
991 """Init()"""
992 return _gdi.NativeFontInfo_Init(*args, **kwargs)
993
994 def InitFromFont(*args, **kwargs):
995 """InitFromFont(Font font)"""
996 return _gdi.NativeFontInfo_InitFromFont(*args, **kwargs)
997
998 def GetPointSize(*args, **kwargs):
999 """GetPointSize() -> int"""
1000 return _gdi.NativeFontInfo_GetPointSize(*args, **kwargs)
1001
1002 def GetStyle(*args, **kwargs):
1003 """GetStyle() -> wxFontStyle"""
1004 return _gdi.NativeFontInfo_GetStyle(*args, **kwargs)
1005
1006 def GetWeight(*args, **kwargs):
1007 """GetWeight() -> wxFontWeight"""
1008 return _gdi.NativeFontInfo_GetWeight(*args, **kwargs)
1009
1010 def GetUnderlined(*args, **kwargs):
1011 """GetUnderlined() -> bool"""
1012 return _gdi.NativeFontInfo_GetUnderlined(*args, **kwargs)
1013
1014 def GetFaceName(*args, **kwargs):
1015 """GetFaceName() -> wxString"""
1016 return _gdi.NativeFontInfo_GetFaceName(*args, **kwargs)
1017
1018 def GetFamily(*args, **kwargs):
1019 """GetFamily() -> wxFontFamily"""
1020 return _gdi.NativeFontInfo_GetFamily(*args, **kwargs)
1021
1022 def GetEncoding(*args, **kwargs):
1023 """GetEncoding() -> wxFontEncoding"""
1024 return _gdi.NativeFontInfo_GetEncoding(*args, **kwargs)
1025
1026 def SetPointSize(*args, **kwargs):
1027 """SetPointSize(int pointsize)"""
1028 return _gdi.NativeFontInfo_SetPointSize(*args, **kwargs)
1029
1030 def SetStyle(*args, **kwargs):
1031 """SetStyle(wxFontStyle style)"""
1032 return _gdi.NativeFontInfo_SetStyle(*args, **kwargs)
1033
1034 def SetWeight(*args, **kwargs):
1035 """SetWeight(wxFontWeight weight)"""
1036 return _gdi.NativeFontInfo_SetWeight(*args, **kwargs)
1037
1038 def SetUnderlined(*args, **kwargs):
1039 """SetUnderlined(bool underlined)"""
1040 return _gdi.NativeFontInfo_SetUnderlined(*args, **kwargs)
1041
1042 def SetFaceName(*args, **kwargs):
1043 """SetFaceName(wxString facename)"""
1044 return _gdi.NativeFontInfo_SetFaceName(*args, **kwargs)
1045
1046 def SetFamily(*args, **kwargs):
1047 """SetFamily(wxFontFamily family)"""
1048 return _gdi.NativeFontInfo_SetFamily(*args, **kwargs)
1049
1050 def SetEncoding(*args, **kwargs):
1051 """SetEncoding(wxFontEncoding encoding)"""
1052 return _gdi.NativeFontInfo_SetEncoding(*args, **kwargs)
1053
1054 def FromString(*args, **kwargs):
1055 """FromString(wxString s) -> bool"""
1056 return _gdi.NativeFontInfo_FromString(*args, **kwargs)
1057
1058 def ToString(*args, **kwargs):
1059 """ToString() -> wxString"""
1060 return _gdi.NativeFontInfo_ToString(*args, **kwargs)
1061
1062 def __str__(*args, **kwargs):
1063 """__str__() -> wxString"""
1064 return _gdi.NativeFontInfo___str__(*args, **kwargs)
1065
1066 def FromUserString(*args, **kwargs):
1067 """FromUserString(wxString s) -> bool"""
1068 return _gdi.NativeFontInfo_FromUserString(*args, **kwargs)
1069
1070 def ToUserString(*args, **kwargs):
1071 """ToUserString() -> wxString"""
1072 return _gdi.NativeFontInfo_ToUserString(*args, **kwargs)
1073
1074
1075class NativeFontInfoPtr(NativeFontInfo):
1076 def __init__(self, this):
1077 self.this = this
1078 if not hasattr(self,"thisown"): self.thisown = 0
1079 self.__class__ = NativeFontInfo
1080_gdi.NativeFontInfo_swigregister(NativeFontInfoPtr)
1081
1082class NativeEncodingInfo(object):
1083 """"""
1084 def __repr__(self):
1085 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1086 facename = property(_gdi.NativeEncodingInfo_facename_get, _gdi.NativeEncodingInfo_facename_set)
1087 encoding = property(_gdi.NativeEncodingInfo_encoding_get, _gdi.NativeEncodingInfo_encoding_set)
1088 def __init__(self, *args, **kwargs):
1089 """__init__() -> NativeEncodingInfo"""
1090 newobj = _gdi.new_NativeEncodingInfo(*args, **kwargs)
1091 self.this = newobj.this
1092 self.thisown = 1
1093 del newobj.thisown
1094 def __del__(self, destroy=_gdi.delete_NativeEncodingInfo):
1095 """__del__()"""
1096 try:
1097 if self.thisown: destroy(self)
1098 except: pass
1099
1100 def FromString(*args, **kwargs):
1101 """FromString(wxString s) -> bool"""
1102 return _gdi.NativeEncodingInfo_FromString(*args, **kwargs)
1103
1104 def ToString(*args, **kwargs):
1105 """ToString() -> wxString"""
1106 return _gdi.NativeEncodingInfo_ToString(*args, **kwargs)
1107
1108
1109class NativeEncodingInfoPtr(NativeEncodingInfo):
1110 def __init__(self, this):
1111 self.this = this
1112 if not hasattr(self,"thisown"): self.thisown = 0
1113 self.__class__ = NativeEncodingInfo
1114_gdi.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr)
1115
1116
1117def GetNativeFontEncoding(*args, **kwargs):
1118 """GetNativeFontEncoding(wxFontEncoding encoding) -> NativeEncodingInfo"""
1119 return _gdi.GetNativeFontEncoding(*args, **kwargs)
1120
1121def TestFontEncoding(*args, **kwargs):
1122 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1123 return _gdi.TestFontEncoding(*args, **kwargs)
1124#---------------------------------------------------------------------------
1125
1126class FontMapper(object):
1127 """"""
1128 def __repr__(self):
1129 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1130 def __init__(self, *args, **kwargs):
1131 """__init__() -> FontMapper"""
1132 newobj = _gdi.new_FontMapper(*args, **kwargs)
1133 self.this = newobj.this
1134 self.thisown = 1
1135 del newobj.thisown
1136 def __del__(self, destroy=_gdi.delete_FontMapper):
1137 """__del__()"""
1138 try:
1139 if self.thisown: destroy(self)
1140 except: pass
1141
1142 def Get(*args, **kwargs):
1143 """FontMapper.Get() -> FontMapper"""
1144 return _gdi.FontMapper_Get(*args, **kwargs)
1145
1146 Get = staticmethod(Get)
1147 def Set(*args, **kwargs):
1148 """FontMapper.Set(FontMapper mapper) -> FontMapper"""
1149 return _gdi.FontMapper_Set(*args, **kwargs)
1150
1151 Set = staticmethod(Set)
1152 def CharsetToEncoding(*args, **kwargs):
1153 """CharsetToEncoding(wxString charset, bool interactive=True) -> wxFontEncoding"""
1154 return _gdi.FontMapper_CharsetToEncoding(*args, **kwargs)
1155
1156 def GetSupportedEncodingsCount(*args, **kwargs):
1157 """FontMapper.GetSupportedEncodingsCount() -> size_t"""
1158 return _gdi.FontMapper_GetSupportedEncodingsCount(*args, **kwargs)
1159
1160 GetSupportedEncodingsCount = staticmethod(GetSupportedEncodingsCount)
1161 def GetEncoding(*args, **kwargs):
1162 """FontMapper.GetEncoding(size_t n) -> wxFontEncoding"""
1163 return _gdi.FontMapper_GetEncoding(*args, **kwargs)
1164
1165 GetEncoding = staticmethod(GetEncoding)
1166 def GetEncodingName(*args, **kwargs):
1167 """FontMapper.GetEncodingName(wxFontEncoding encoding) -> wxString"""
1168 return _gdi.FontMapper_GetEncodingName(*args, **kwargs)
1169
1170 GetEncodingName = staticmethod(GetEncodingName)
1171 def GetEncodingDescription(*args, **kwargs):
1172 """FontMapper.GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1173 return _gdi.FontMapper_GetEncodingDescription(*args, **kwargs)
1174
1175 GetEncodingDescription = staticmethod(GetEncodingDescription)
1176 def SetConfig(*args, **kwargs):
1177 """SetConfig(wxConfigBase config)"""
1178 return _gdi.FontMapper_SetConfig(*args, **kwargs)
1179
1180 def SetConfigPath(*args, **kwargs):
1181 """SetConfigPath(wxString prefix)"""
1182 return _gdi.FontMapper_SetConfigPath(*args, **kwargs)
1183
1184 def GetDefaultConfigPath(*args, **kwargs):
1185 """FontMapper.GetDefaultConfigPath() -> wxString"""
1186 return _gdi.FontMapper_GetDefaultConfigPath(*args, **kwargs)
1187
1188 GetDefaultConfigPath = staticmethod(GetDefaultConfigPath)
1189 def GetAltForEncoding(*args, **kwargs):
1190 """GetAltForEncoding(wxFontEncoding encoding, wxString facename=wxPyEmptyString,
1191 bool interactive=True) -> PyObject"""
1192 return _gdi.FontMapper_GetAltForEncoding(*args, **kwargs)
1193
1194 def IsEncodingAvailable(*args, **kwargs):
1195 """IsEncodingAvailable(wxFontEncoding encoding, wxString facename=wxPyEmptyString) -> bool"""
1196 return _gdi.FontMapper_IsEncodingAvailable(*args, **kwargs)
1197
1198 def SetDialogParent(*args, **kwargs):
1199 """SetDialogParent(Window parent)"""
1200 return _gdi.FontMapper_SetDialogParent(*args, **kwargs)
1201
1202 def SetDialogTitle(*args, **kwargs):
1203 """SetDialogTitle(wxString title)"""
1204 return _gdi.FontMapper_SetDialogTitle(*args, **kwargs)
1205
1206
1207class FontMapperPtr(FontMapper):
1208 def __init__(self, this):
1209 self.this = this
1210 if not hasattr(self,"thisown"): self.thisown = 0
1211 self.__class__ = FontMapper
1212_gdi.FontMapper_swigregister(FontMapperPtr)
1213
1214def FontMapper_Get(*args, **kwargs):
1215 """FontMapper_Get() -> FontMapper"""
1216 return _gdi.FontMapper_Get(*args, **kwargs)
1217
1218def FontMapper_Set(*args, **kwargs):
1219 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1220 return _gdi.FontMapper_Set(*args, **kwargs)
1221
1222def FontMapper_GetSupportedEncodingsCount(*args, **kwargs):
1223 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1224 return _gdi.FontMapper_GetSupportedEncodingsCount(*args, **kwargs)
1225
1226def FontMapper_GetEncoding(*args, **kwargs):
1227 """FontMapper_GetEncoding(size_t n) -> wxFontEncoding"""
1228 return _gdi.FontMapper_GetEncoding(*args, **kwargs)
1229
1230def FontMapper_GetEncodingName(*args, **kwargs):
1231 """FontMapper_GetEncodingName(wxFontEncoding encoding) -> wxString"""
1232 return _gdi.FontMapper_GetEncodingName(*args, **kwargs)
1233
1234def FontMapper_GetEncodingDescription(*args, **kwargs):
1235 """FontMapper_GetEncodingDescription(wxFontEncoding encoding) -> wxString"""
1236 return _gdi.FontMapper_GetEncodingDescription(*args, **kwargs)
1237
1238def FontMapper_GetDefaultConfigPath(*args, **kwargs):
1239 """FontMapper_GetDefaultConfigPath() -> wxString"""
1240 return _gdi.FontMapper_GetDefaultConfigPath(*args, **kwargs)
1241
1242#---------------------------------------------------------------------------
1243
1244class Font(GDIObject):
1245 """"""
1246 def __repr__(self):
1247 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1248 def __init__(self, *args, **kwargs):
1249 """__init__(int pointSize, int family, int style, int weight, bool underline=False,
1250 wxString face=wxPyEmptyString,
1251 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font"""
1252 newobj = _gdi.new_Font(*args, **kwargs)
1253 self.this = newobj.this
1254 self.thisown = 1
1255 del newobj.thisown
1256 def __del__(self, destroy=_gdi.delete_Font):
1257 """__del__()"""
1258 try:
1259 if self.thisown: destroy(self)
1260 except: pass
1261
1262 def Ok(*args, **kwargs):
1263 """Ok() -> bool"""
1264 return _gdi.Font_Ok(*args, **kwargs)
1265
1266 def __nonzero__(self): return self.Ok()
1267 def __eq__(*args, **kwargs):
1268 """__eq__(Font font) -> bool"""
1269 return _gdi.Font___eq__(*args, **kwargs)
1270
1271 def __ne__(*args, **kwargs):
1272 """__ne__(Font font) -> bool"""
1273 return _gdi.Font___ne__(*args, **kwargs)
1274
1275 def GetPointSize(*args, **kwargs):
1276 """GetPointSize() -> int"""
1277 return _gdi.Font_GetPointSize(*args, **kwargs)
1278
1279 def GetFamily(*args, **kwargs):
1280 """GetFamily() -> int"""
1281 return _gdi.Font_GetFamily(*args, **kwargs)
1282
1283 def GetStyle(*args, **kwargs):
1284 """GetStyle() -> int"""
1285 return _gdi.Font_GetStyle(*args, **kwargs)
1286
1287 def GetWeight(*args, **kwargs):
1288 """GetWeight() -> int"""
1289 return _gdi.Font_GetWeight(*args, **kwargs)
1290
1291 def GetUnderlined(*args, **kwargs):
1292 """GetUnderlined() -> bool"""
1293 return _gdi.Font_GetUnderlined(*args, **kwargs)
1294
1295 def GetFaceName(*args, **kwargs):
1296 """GetFaceName() -> wxString"""
1297 return _gdi.Font_GetFaceName(*args, **kwargs)
1298
1299 def GetEncoding(*args, **kwargs):
1300 """GetEncoding() -> wxFontEncoding"""
1301 return _gdi.Font_GetEncoding(*args, **kwargs)
1302
1303 def GetNativeFontInfo(*args, **kwargs):
1304 """GetNativeFontInfo() -> NativeFontInfo"""
1305 return _gdi.Font_GetNativeFontInfo(*args, **kwargs)
1306
1307 def IsFixedWidth(*args, **kwargs):
1308 """IsFixedWidth() -> bool"""
1309 return _gdi.Font_IsFixedWidth(*args, **kwargs)
1310
1311 def GetNativeFontInfoDesc(*args, **kwargs):
1312 """GetNativeFontInfoDesc() -> wxString"""
1313 return _gdi.Font_GetNativeFontInfoDesc(*args, **kwargs)
1314
1315 def GetNativeFontInfoUserDesc(*args, **kwargs):
1316 """GetNativeFontInfoUserDesc() -> wxString"""
1317 return _gdi.Font_GetNativeFontInfoUserDesc(*args, **kwargs)
1318
1319 def SetPointSize(*args, **kwargs):
1320 """SetPointSize(int pointSize)"""
1321 return _gdi.Font_SetPointSize(*args, **kwargs)
1322
1323 def SetFamily(*args, **kwargs):
1324 """SetFamily(int family)"""
1325 return _gdi.Font_SetFamily(*args, **kwargs)
1326
1327 def SetStyle(*args, **kwargs):
1328 """SetStyle(int style)"""
1329 return _gdi.Font_SetStyle(*args, **kwargs)
1330
1331 def SetWeight(*args, **kwargs):
1332 """SetWeight(int weight)"""
1333 return _gdi.Font_SetWeight(*args, **kwargs)
1334
1335 def SetFaceName(*args, **kwargs):
1336 """SetFaceName(wxString faceName)"""
1337 return _gdi.Font_SetFaceName(*args, **kwargs)
1338
1339 def SetUnderlined(*args, **kwargs):
1340 """SetUnderlined(bool underlined)"""
1341 return _gdi.Font_SetUnderlined(*args, **kwargs)
1342
1343 def SetEncoding(*args, **kwargs):
1344 """SetEncoding(wxFontEncoding encoding)"""
1345 return _gdi.Font_SetEncoding(*args, **kwargs)
1346
1347 def SetNativeFontInfo(*args, **kwargs):
1348 """SetNativeFontInfo(NativeFontInfo info)"""
1349 return _gdi.Font_SetNativeFontInfo(*args, **kwargs)
1350
1351 def SetNativeFontInfoFromString(*args, **kwargs):
1352 """SetNativeFontInfoFromString(wxString info)"""
1353 return _gdi.Font_SetNativeFontInfoFromString(*args, **kwargs)
1354
1355 def SetNativeFontInfoUserDesc(*args, **kwargs):
1356 """SetNativeFontInfoUserDesc(wxString info)"""
1357 return _gdi.Font_SetNativeFontInfoUserDesc(*args, **kwargs)
1358
1359 def GetFamilyString(*args, **kwargs):
1360 """GetFamilyString() -> wxString"""
1361 return _gdi.Font_GetFamilyString(*args, **kwargs)
1362
1363 def GetStyleString(*args, **kwargs):
1364 """GetStyleString() -> wxString"""
1365 return _gdi.Font_GetStyleString(*args, **kwargs)
1366
1367 def GetWeightString(*args, **kwargs):
1368 """GetWeightString() -> wxString"""
1369 return _gdi.Font_GetWeightString(*args, **kwargs)
1370
1371 def SetNoAntiAliasing(*args, **kwargs):
1372 """SetNoAntiAliasing(bool no=True)"""
1373 return _gdi.Font_SetNoAntiAliasing(*args, **kwargs)
1374
1375 def GetNoAntiAliasing(*args, **kwargs):
1376 """GetNoAntiAliasing() -> bool"""
1377 return _gdi.Font_GetNoAntiAliasing(*args, **kwargs)
1378
1379 def GetDefaultEncoding(*args, **kwargs):
1380 """Font.GetDefaultEncoding() -> wxFontEncoding"""
1381 return _gdi.Font_GetDefaultEncoding(*args, **kwargs)
1382
1383 GetDefaultEncoding = staticmethod(GetDefaultEncoding)
1384 def SetDefaultEncoding(*args, **kwargs):
1385 """Font.SetDefaultEncoding(wxFontEncoding encoding)"""
1386 return _gdi.Font_SetDefaultEncoding(*args, **kwargs)
1387
1388 SetDefaultEncoding = staticmethod(SetDefaultEncoding)
1389
1390class FontPtr(Font):
1391 def __init__(self, this):
1392 self.this = this
1393 if not hasattr(self,"thisown"): self.thisown = 0
1394 self.__class__ = Font
1395_gdi.Font_swigregister(FontPtr)
1396
1397def FontFromNativeInfo(*args, **kwargs):
1398 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1399 val = _gdi.new_FontFromNativeInfo(*args, **kwargs)
1400 val.thisown = 1
1401 return val
1402
1403def FontFromNativeInfoString(*args, **kwargs):
1404 """FontFromNativeInfoString(wxString info) -> Font"""
1405 val = _gdi.new_FontFromNativeInfoString(*args, **kwargs)
1406 val.thisown = 1
1407 return val
1408
1409def Font2(*args, **kwargs):
1410 """Font2(int pointSize, wxFontFamily family, int flags=FONTFLAG_DEFAULT,
1411 wxString face=wxPyEmptyString, wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font"""
1412 val = _gdi.new_Font2(*args, **kwargs)
1413 val.thisown = 1
1414 return val
1415
1416def Font_GetDefaultEncoding(*args, **kwargs):
1417 """Font_GetDefaultEncoding() -> wxFontEncoding"""
1418 return _gdi.Font_GetDefaultEncoding(*args, **kwargs)
1419
1420def Font_SetDefaultEncoding(*args, **kwargs):
1421 """Font_SetDefaultEncoding(wxFontEncoding encoding)"""
1422 return _gdi.Font_SetDefaultEncoding(*args, **kwargs)
1423
1424#---------------------------------------------------------------------------
1425
1426class FontEnumerator(object):
1427 """"""
1428 def __repr__(self):
1429 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1430 def __init__(self, *args, **kwargs):
1431 """__init__() -> FontEnumerator"""
1432 newobj = _gdi.new_FontEnumerator(*args, **kwargs)
1433 self.this = newobj.this
1434 self.thisown = 1
1435 del newobj.thisown
1436 self._setCallbackInfo(self, FontEnumerator, 0)
1437
1438 def __del__(self, destroy=_gdi.delete_FontEnumerator):
1439 """__del__()"""
1440 try:
1441 if self.thisown: destroy(self)
1442 except: pass
1443
1444 def _setCallbackInfo(*args, **kwargs):
1445 """_setCallbackInfo(PyObject self, PyObject _class, bool incref)"""
1446 return _gdi.FontEnumerator__setCallbackInfo(*args, **kwargs)
1447
1448 def EnumerateFacenames(*args, **kwargs):
1449 """EnumerateFacenames(wxFontEncoding encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1450 return _gdi.FontEnumerator_EnumerateFacenames(*args, **kwargs)
1451
1452 def EnumerateEncodings(*args, **kwargs):
1453 """EnumerateEncodings(wxString facename=wxPyEmptyString) -> bool"""
1454 return _gdi.FontEnumerator_EnumerateEncodings(*args, **kwargs)
1455
1456 def GetEncodings(*args, **kwargs):
1457 """GetEncodings() -> PyObject"""
1458 return _gdi.FontEnumerator_GetEncodings(*args, **kwargs)
1459
1460 def GetFacenames(*args, **kwargs):
1461 """GetFacenames() -> PyObject"""
1462 return _gdi.FontEnumerator_GetFacenames(*args, **kwargs)
1463
1464
1465class FontEnumeratorPtr(FontEnumerator):
1466 def __init__(self, this):
1467 self.this = this
1468 if not hasattr(self,"thisown"): self.thisown = 0
1469 self.__class__ = FontEnumerator
1470_gdi.FontEnumerator_swigregister(FontEnumeratorPtr)
1471
1472#---------------------------------------------------------------------------
1473
1474LANGUAGE_DEFAULT = _gdi.LANGUAGE_DEFAULT
1475LANGUAGE_UNKNOWN = _gdi.LANGUAGE_UNKNOWN
1476LANGUAGE_ABKHAZIAN = _gdi.LANGUAGE_ABKHAZIAN
1477LANGUAGE_AFAR = _gdi.LANGUAGE_AFAR
1478LANGUAGE_AFRIKAANS = _gdi.LANGUAGE_AFRIKAANS
1479LANGUAGE_ALBANIAN = _gdi.LANGUAGE_ALBANIAN
1480LANGUAGE_AMHARIC = _gdi.LANGUAGE_AMHARIC
1481LANGUAGE_ARABIC = _gdi.LANGUAGE_ARABIC
1482LANGUAGE_ARABIC_ALGERIA = _gdi.LANGUAGE_ARABIC_ALGERIA
1483LANGUAGE_ARABIC_BAHRAIN = _gdi.LANGUAGE_ARABIC_BAHRAIN
1484LANGUAGE_ARABIC_EGYPT = _gdi.LANGUAGE_ARABIC_EGYPT
1485LANGUAGE_ARABIC_IRAQ = _gdi.LANGUAGE_ARABIC_IRAQ
1486LANGUAGE_ARABIC_JORDAN = _gdi.LANGUAGE_ARABIC_JORDAN
1487LANGUAGE_ARABIC_KUWAIT = _gdi.LANGUAGE_ARABIC_KUWAIT
1488LANGUAGE_ARABIC_LEBANON = _gdi.LANGUAGE_ARABIC_LEBANON
1489LANGUAGE_ARABIC_LIBYA = _gdi.LANGUAGE_ARABIC_LIBYA
1490LANGUAGE_ARABIC_MOROCCO = _gdi.LANGUAGE_ARABIC_MOROCCO
1491LANGUAGE_ARABIC_OMAN = _gdi.LANGUAGE_ARABIC_OMAN
1492LANGUAGE_ARABIC_QATAR = _gdi.LANGUAGE_ARABIC_QATAR
1493LANGUAGE_ARABIC_SAUDI_ARABIA = _gdi.LANGUAGE_ARABIC_SAUDI_ARABIA
1494LANGUAGE_ARABIC_SUDAN = _gdi.LANGUAGE_ARABIC_SUDAN
1495LANGUAGE_ARABIC_SYRIA = _gdi.LANGUAGE_ARABIC_SYRIA
1496LANGUAGE_ARABIC_TUNISIA = _gdi.LANGUAGE_ARABIC_TUNISIA
1497LANGUAGE_ARABIC_UAE = _gdi.LANGUAGE_ARABIC_UAE
1498LANGUAGE_ARABIC_YEMEN = _gdi.LANGUAGE_ARABIC_YEMEN
1499LANGUAGE_ARMENIAN = _gdi.LANGUAGE_ARMENIAN
1500LANGUAGE_ASSAMESE = _gdi.LANGUAGE_ASSAMESE
1501LANGUAGE_AYMARA = _gdi.LANGUAGE_AYMARA
1502LANGUAGE_AZERI = _gdi.LANGUAGE_AZERI
1503LANGUAGE_AZERI_CYRILLIC = _gdi.LANGUAGE_AZERI_CYRILLIC
1504LANGUAGE_AZERI_LATIN = _gdi.LANGUAGE_AZERI_LATIN
1505LANGUAGE_BASHKIR = _gdi.LANGUAGE_BASHKIR
1506LANGUAGE_BASQUE = _gdi.LANGUAGE_BASQUE
1507LANGUAGE_BELARUSIAN = _gdi.LANGUAGE_BELARUSIAN
1508LANGUAGE_BENGALI = _gdi.LANGUAGE_BENGALI
1509LANGUAGE_BHUTANI = _gdi.LANGUAGE_BHUTANI
1510LANGUAGE_BIHARI = _gdi.LANGUAGE_BIHARI
1511LANGUAGE_BISLAMA = _gdi.LANGUAGE_BISLAMA
1512LANGUAGE_BRETON = _gdi.LANGUAGE_BRETON
1513LANGUAGE_BULGARIAN = _gdi.LANGUAGE_BULGARIAN
1514LANGUAGE_BURMESE = _gdi.LANGUAGE_BURMESE
1515LANGUAGE_CAMBODIAN = _gdi.LANGUAGE_CAMBODIAN
1516LANGUAGE_CATALAN = _gdi.LANGUAGE_CATALAN
1517LANGUAGE_CHINESE = _gdi.LANGUAGE_CHINESE
1518LANGUAGE_CHINESE_SIMPLIFIED = _gdi.LANGUAGE_CHINESE_SIMPLIFIED
1519LANGUAGE_CHINESE_TRADITIONAL = _gdi.LANGUAGE_CHINESE_TRADITIONAL
1520LANGUAGE_CHINESE_HONGKONG = _gdi.LANGUAGE_CHINESE_HONGKONG
1521LANGUAGE_CHINESE_MACAU = _gdi.LANGUAGE_CHINESE_MACAU
1522LANGUAGE_CHINESE_SINGAPORE = _gdi.LANGUAGE_CHINESE_SINGAPORE
1523LANGUAGE_CHINESE_TAIWAN = _gdi.LANGUAGE_CHINESE_TAIWAN
1524LANGUAGE_CORSICAN = _gdi.LANGUAGE_CORSICAN
1525LANGUAGE_CROATIAN = _gdi.LANGUAGE_CROATIAN
1526LANGUAGE_CZECH = _gdi.LANGUAGE_CZECH
1527LANGUAGE_DANISH = _gdi.LANGUAGE_DANISH
1528LANGUAGE_DUTCH = _gdi.LANGUAGE_DUTCH
1529LANGUAGE_DUTCH_BELGIAN = _gdi.LANGUAGE_DUTCH_BELGIAN
1530LANGUAGE_ENGLISH = _gdi.LANGUAGE_ENGLISH
1531LANGUAGE_ENGLISH_UK = _gdi.LANGUAGE_ENGLISH_UK
1532LANGUAGE_ENGLISH_US = _gdi.LANGUAGE_ENGLISH_US
1533LANGUAGE_ENGLISH_AUSTRALIA = _gdi.LANGUAGE_ENGLISH_AUSTRALIA
1534LANGUAGE_ENGLISH_BELIZE = _gdi.LANGUAGE_ENGLISH_BELIZE
1535LANGUAGE_ENGLISH_BOTSWANA = _gdi.LANGUAGE_ENGLISH_BOTSWANA
1536LANGUAGE_ENGLISH_CANADA = _gdi.LANGUAGE_ENGLISH_CANADA
1537LANGUAGE_ENGLISH_CARIBBEAN = _gdi.LANGUAGE_ENGLISH_CARIBBEAN
1538LANGUAGE_ENGLISH_DENMARK = _gdi.LANGUAGE_ENGLISH_DENMARK
1539LANGUAGE_ENGLISH_EIRE = _gdi.LANGUAGE_ENGLISH_EIRE
1540LANGUAGE_ENGLISH_JAMAICA = _gdi.LANGUAGE_ENGLISH_JAMAICA
1541LANGUAGE_ENGLISH_NEW_ZEALAND = _gdi.LANGUAGE_ENGLISH_NEW_ZEALAND
1542LANGUAGE_ENGLISH_PHILIPPINES = _gdi.LANGUAGE_ENGLISH_PHILIPPINES
1543LANGUAGE_ENGLISH_SOUTH_AFRICA = _gdi.LANGUAGE_ENGLISH_SOUTH_AFRICA
1544LANGUAGE_ENGLISH_TRINIDAD = _gdi.LANGUAGE_ENGLISH_TRINIDAD
1545LANGUAGE_ENGLISH_ZIMBABWE = _gdi.LANGUAGE_ENGLISH_ZIMBABWE
1546LANGUAGE_ESPERANTO = _gdi.LANGUAGE_ESPERANTO
1547LANGUAGE_ESTONIAN = _gdi.LANGUAGE_ESTONIAN
1548LANGUAGE_FAEROESE = _gdi.LANGUAGE_FAEROESE
1549LANGUAGE_FARSI = _gdi.LANGUAGE_FARSI
1550LANGUAGE_FIJI = _gdi.LANGUAGE_FIJI
1551LANGUAGE_FINNISH = _gdi.LANGUAGE_FINNISH
1552LANGUAGE_FRENCH = _gdi.LANGUAGE_FRENCH
1553LANGUAGE_FRENCH_BELGIAN = _gdi.LANGUAGE_FRENCH_BELGIAN
1554LANGUAGE_FRENCH_CANADIAN = _gdi.LANGUAGE_FRENCH_CANADIAN
1555LANGUAGE_FRENCH_LUXEMBOURG = _gdi.LANGUAGE_FRENCH_LUXEMBOURG
1556LANGUAGE_FRENCH_MONACO = _gdi.LANGUAGE_FRENCH_MONACO
1557LANGUAGE_FRENCH_SWISS = _gdi.LANGUAGE_FRENCH_SWISS
1558LANGUAGE_FRISIAN = _gdi.LANGUAGE_FRISIAN
1559LANGUAGE_GALICIAN = _gdi.LANGUAGE_GALICIAN
1560LANGUAGE_GEORGIAN = _gdi.LANGUAGE_GEORGIAN
1561LANGUAGE_GERMAN = _gdi.LANGUAGE_GERMAN
1562LANGUAGE_GERMAN_AUSTRIAN = _gdi.LANGUAGE_GERMAN_AUSTRIAN
1563LANGUAGE_GERMAN_BELGIUM = _gdi.LANGUAGE_GERMAN_BELGIUM
1564LANGUAGE_GERMAN_LIECHTENSTEIN = _gdi.LANGUAGE_GERMAN_LIECHTENSTEIN
1565LANGUAGE_GERMAN_LUXEMBOURG = _gdi.LANGUAGE_GERMAN_LUXEMBOURG
1566LANGUAGE_GERMAN_SWISS = _gdi.LANGUAGE_GERMAN_SWISS
1567LANGUAGE_GREEK = _gdi.LANGUAGE_GREEK
1568LANGUAGE_GREENLANDIC = _gdi.LANGUAGE_GREENLANDIC
1569LANGUAGE_GUARANI = _gdi.LANGUAGE_GUARANI
1570LANGUAGE_GUJARATI = _gdi.LANGUAGE_GUJARATI
1571LANGUAGE_HAUSA = _gdi.LANGUAGE_HAUSA
1572LANGUAGE_HEBREW = _gdi.LANGUAGE_HEBREW
1573LANGUAGE_HINDI = _gdi.LANGUAGE_HINDI
1574LANGUAGE_HUNGARIAN = _gdi.LANGUAGE_HUNGARIAN
1575LANGUAGE_ICELANDIC = _gdi.LANGUAGE_ICELANDIC
1576LANGUAGE_INDONESIAN = _gdi.LANGUAGE_INDONESIAN
1577LANGUAGE_INTERLINGUA = _gdi.LANGUAGE_INTERLINGUA
1578LANGUAGE_INTERLINGUE = _gdi.LANGUAGE_INTERLINGUE
1579LANGUAGE_INUKTITUT = _gdi.LANGUAGE_INUKTITUT
1580LANGUAGE_INUPIAK = _gdi.LANGUAGE_INUPIAK
1581LANGUAGE_IRISH = _gdi.LANGUAGE_IRISH
1582LANGUAGE_ITALIAN = _gdi.LANGUAGE_ITALIAN
1583LANGUAGE_ITALIAN_SWISS = _gdi.LANGUAGE_ITALIAN_SWISS
1584LANGUAGE_JAPANESE = _gdi.LANGUAGE_JAPANESE
1585LANGUAGE_JAVANESE = _gdi.LANGUAGE_JAVANESE
1586LANGUAGE_KANNADA = _gdi.LANGUAGE_KANNADA
1587LANGUAGE_KASHMIRI = _gdi.LANGUAGE_KASHMIRI
1588LANGUAGE_KASHMIRI_INDIA = _gdi.LANGUAGE_KASHMIRI_INDIA
1589LANGUAGE_KAZAKH = _gdi.LANGUAGE_KAZAKH
1590LANGUAGE_KERNEWEK = _gdi.LANGUAGE_KERNEWEK
1591LANGUAGE_KINYARWANDA = _gdi.LANGUAGE_KINYARWANDA
1592LANGUAGE_KIRGHIZ = _gdi.LANGUAGE_KIRGHIZ
1593LANGUAGE_KIRUNDI = _gdi.LANGUAGE_KIRUNDI
1594LANGUAGE_KONKANI = _gdi.LANGUAGE_KONKANI
1595LANGUAGE_KOREAN = _gdi.LANGUAGE_KOREAN
1596LANGUAGE_KURDISH = _gdi.LANGUAGE_KURDISH
1597LANGUAGE_LAOTHIAN = _gdi.LANGUAGE_LAOTHIAN
1598LANGUAGE_LATIN = _gdi.LANGUAGE_LATIN
1599LANGUAGE_LATVIAN = _gdi.LANGUAGE_LATVIAN
1600LANGUAGE_LINGALA = _gdi.LANGUAGE_LINGALA
1601LANGUAGE_LITHUANIAN = _gdi.LANGUAGE_LITHUANIAN
1602LANGUAGE_MACEDONIAN = _gdi.LANGUAGE_MACEDONIAN
1603LANGUAGE_MALAGASY = _gdi.LANGUAGE_MALAGASY
1604LANGUAGE_MALAY = _gdi.LANGUAGE_MALAY
1605LANGUAGE_MALAYALAM = _gdi.LANGUAGE_MALAYALAM
1606LANGUAGE_MALAY_BRUNEI_DARUSSALAM = _gdi.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
1607LANGUAGE_MALAY_MALAYSIA = _gdi.LANGUAGE_MALAY_MALAYSIA
1608LANGUAGE_MALTESE = _gdi.LANGUAGE_MALTESE
1609LANGUAGE_MANIPURI = _gdi.LANGUAGE_MANIPURI
1610LANGUAGE_MAORI = _gdi.LANGUAGE_MAORI
1611LANGUAGE_MARATHI = _gdi.LANGUAGE_MARATHI
1612LANGUAGE_MOLDAVIAN = _gdi.LANGUAGE_MOLDAVIAN
1613LANGUAGE_MONGOLIAN = _gdi.LANGUAGE_MONGOLIAN
1614LANGUAGE_NAURU = _gdi.LANGUAGE_NAURU
1615LANGUAGE_NEPALI = _gdi.LANGUAGE_NEPALI
1616LANGUAGE_NEPALI_INDIA = _gdi.LANGUAGE_NEPALI_INDIA
1617LANGUAGE_NORWEGIAN_BOKMAL = _gdi.LANGUAGE_NORWEGIAN_BOKMAL
1618LANGUAGE_NORWEGIAN_NYNORSK = _gdi.LANGUAGE_NORWEGIAN_NYNORSK
1619LANGUAGE_OCCITAN = _gdi.LANGUAGE_OCCITAN
1620LANGUAGE_ORIYA = _gdi.LANGUAGE_ORIYA
1621LANGUAGE_OROMO = _gdi.LANGUAGE_OROMO
1622LANGUAGE_PASHTO = _gdi.LANGUAGE_PASHTO
1623LANGUAGE_POLISH = _gdi.LANGUAGE_POLISH
1624LANGUAGE_PORTUGUESE = _gdi.LANGUAGE_PORTUGUESE
1625LANGUAGE_PORTUGUESE_BRAZILIAN = _gdi.LANGUAGE_PORTUGUESE_BRAZILIAN
1626LANGUAGE_PUNJABI = _gdi.LANGUAGE_PUNJABI
1627LANGUAGE_QUECHUA = _gdi.LANGUAGE_QUECHUA
1628LANGUAGE_RHAETO_ROMANCE = _gdi.LANGUAGE_RHAETO_ROMANCE
1629LANGUAGE_ROMANIAN = _gdi.LANGUAGE_ROMANIAN
1630LANGUAGE_RUSSIAN = _gdi.LANGUAGE_RUSSIAN
1631LANGUAGE_RUSSIAN_UKRAINE = _gdi.LANGUAGE_RUSSIAN_UKRAINE
1632LANGUAGE_SAMOAN = _gdi.LANGUAGE_SAMOAN
1633LANGUAGE_SANGHO = _gdi.LANGUAGE_SANGHO
1634LANGUAGE_SANSKRIT = _gdi.LANGUAGE_SANSKRIT
1635LANGUAGE_SCOTS_GAELIC = _gdi.LANGUAGE_SCOTS_GAELIC
1636LANGUAGE_SERBIAN = _gdi.LANGUAGE_SERBIAN
1637LANGUAGE_SERBIAN_CYRILLIC = _gdi.LANGUAGE_SERBIAN_CYRILLIC
1638LANGUAGE_SERBIAN_LATIN = _gdi.LANGUAGE_SERBIAN_LATIN
1639LANGUAGE_SERBO_CROATIAN = _gdi.LANGUAGE_SERBO_CROATIAN
1640LANGUAGE_SESOTHO = _gdi.LANGUAGE_SESOTHO
1641LANGUAGE_SETSWANA = _gdi.LANGUAGE_SETSWANA
1642LANGUAGE_SHONA = _gdi.LANGUAGE_SHONA
1643LANGUAGE_SINDHI = _gdi.LANGUAGE_SINDHI
1644LANGUAGE_SINHALESE = _gdi.LANGUAGE_SINHALESE
1645LANGUAGE_SISWATI = _gdi.LANGUAGE_SISWATI
1646LANGUAGE_SLOVAK = _gdi.LANGUAGE_SLOVAK
1647LANGUAGE_SLOVENIAN = _gdi.LANGUAGE_SLOVENIAN
1648LANGUAGE_SOMALI = _gdi.LANGUAGE_SOMALI
1649LANGUAGE_SPANISH = _gdi.LANGUAGE_SPANISH
1650LANGUAGE_SPANISH_ARGENTINA = _gdi.LANGUAGE_SPANISH_ARGENTINA
1651LANGUAGE_SPANISH_BOLIVIA = _gdi.LANGUAGE_SPANISH_BOLIVIA
1652LANGUAGE_SPANISH_CHILE = _gdi.LANGUAGE_SPANISH_CHILE
1653LANGUAGE_SPANISH_COLOMBIA = _gdi.LANGUAGE_SPANISH_COLOMBIA
1654LANGUAGE_SPANISH_COSTA_RICA = _gdi.LANGUAGE_SPANISH_COSTA_RICA
1655LANGUAGE_SPANISH_DOMINICAN_REPUBLIC = _gdi.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
1656LANGUAGE_SPANISH_ECUADOR = _gdi.LANGUAGE_SPANISH_ECUADOR
1657LANGUAGE_SPANISH_EL_SALVADOR = _gdi.LANGUAGE_SPANISH_EL_SALVADOR
1658LANGUAGE_SPANISH_GUATEMALA = _gdi.LANGUAGE_SPANISH_GUATEMALA
1659LANGUAGE_SPANISH_HONDURAS = _gdi.LANGUAGE_SPANISH_HONDURAS
1660LANGUAGE_SPANISH_MEXICAN = _gdi.LANGUAGE_SPANISH_MEXICAN
1661LANGUAGE_SPANISH_MODERN = _gdi.LANGUAGE_SPANISH_MODERN
1662LANGUAGE_SPANISH_NICARAGUA = _gdi.LANGUAGE_SPANISH_NICARAGUA
1663LANGUAGE_SPANISH_PANAMA = _gdi.LANGUAGE_SPANISH_PANAMA
1664LANGUAGE_SPANISH_PARAGUAY = _gdi.LANGUAGE_SPANISH_PARAGUAY
1665LANGUAGE_SPANISH_PERU = _gdi.LANGUAGE_SPANISH_PERU
1666LANGUAGE_SPANISH_PUERTO_RICO = _gdi.LANGUAGE_SPANISH_PUERTO_RICO
1667LANGUAGE_SPANISH_URUGUAY = _gdi.LANGUAGE_SPANISH_URUGUAY
1668LANGUAGE_SPANISH_US = _gdi.LANGUAGE_SPANISH_US
1669LANGUAGE_SPANISH_VENEZUELA = _gdi.LANGUAGE_SPANISH_VENEZUELA
1670LANGUAGE_SUNDANESE = _gdi.LANGUAGE_SUNDANESE
1671LANGUAGE_SWAHILI = _gdi.LANGUAGE_SWAHILI
1672LANGUAGE_SWEDISH = _gdi.LANGUAGE_SWEDISH
1673LANGUAGE_SWEDISH_FINLAND = _gdi.LANGUAGE_SWEDISH_FINLAND
1674LANGUAGE_TAGALOG = _gdi.LANGUAGE_TAGALOG
1675LANGUAGE_TAJIK = _gdi.LANGUAGE_TAJIK
1676LANGUAGE_TAMIL = _gdi.LANGUAGE_TAMIL
1677LANGUAGE_TATAR = _gdi.LANGUAGE_TATAR
1678LANGUAGE_TELUGU = _gdi.LANGUAGE_TELUGU
1679LANGUAGE_THAI = _gdi.LANGUAGE_THAI
1680LANGUAGE_TIBETAN = _gdi.LANGUAGE_TIBETAN
1681LANGUAGE_TIGRINYA = _gdi.LANGUAGE_TIGRINYA
1682LANGUAGE_TONGA = _gdi.LANGUAGE_TONGA
1683LANGUAGE_TSONGA = _gdi.LANGUAGE_TSONGA
1684LANGUAGE_TURKISH = _gdi.LANGUAGE_TURKISH
1685LANGUAGE_TURKMEN = _gdi.LANGUAGE_TURKMEN
1686LANGUAGE_TWI = _gdi.LANGUAGE_TWI
1687LANGUAGE_UIGHUR = _gdi.LANGUAGE_UIGHUR
1688LANGUAGE_UKRAINIAN = _gdi.LANGUAGE_UKRAINIAN
1689LANGUAGE_URDU = _gdi.LANGUAGE_URDU
1690LANGUAGE_URDU_INDIA = _gdi.LANGUAGE_URDU_INDIA
1691LANGUAGE_URDU_PAKISTAN = _gdi.LANGUAGE_URDU_PAKISTAN
1692LANGUAGE_UZBEK = _gdi.LANGUAGE_UZBEK
1693LANGUAGE_UZBEK_CYRILLIC = _gdi.LANGUAGE_UZBEK_CYRILLIC
1694LANGUAGE_UZBEK_LATIN = _gdi.LANGUAGE_UZBEK_LATIN
1695LANGUAGE_VIETNAMESE = _gdi.LANGUAGE_VIETNAMESE
1696LANGUAGE_VOLAPUK = _gdi.LANGUAGE_VOLAPUK
1697LANGUAGE_WELSH = _gdi.LANGUAGE_WELSH
1698LANGUAGE_WOLOF = _gdi.LANGUAGE_WOLOF
1699LANGUAGE_XHOSA = _gdi.LANGUAGE_XHOSA
1700LANGUAGE_YIDDISH = _gdi.LANGUAGE_YIDDISH
1701LANGUAGE_YORUBA = _gdi.LANGUAGE_YORUBA
1702LANGUAGE_ZHUANG = _gdi.LANGUAGE_ZHUANG
1703LANGUAGE_ZULU = _gdi.LANGUAGE_ZULU
1704LANGUAGE_USER_DEFINED = _gdi.LANGUAGE_USER_DEFINED
1705class LanguageInfo(object):
1706 """"""
1707 def __init__(self): raise RuntimeError, "No constructor defined"
1708 def __repr__(self):
1709 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1710 Language = property(_gdi.LanguageInfo_Language_get, _gdi.LanguageInfo_Language_set)
1711 CanonicalName = property(_gdi.LanguageInfo_CanonicalName_get, _gdi.LanguageInfo_CanonicalName_set)
1712 Description = property(_gdi.LanguageInfo_Description_get, _gdi.LanguageInfo_Description_set)
1713
1714class LanguageInfoPtr(LanguageInfo):
1715 def __init__(self, this):
1716 self.this = this
1717 if not hasattr(self,"thisown"): self.thisown = 0
1718 self.__class__ = LanguageInfo
1719_gdi.LanguageInfo_swigregister(LanguageInfoPtr)
1720
1721LOCALE_CAT_NUMBER = _gdi.LOCALE_CAT_NUMBER
1722LOCALE_CAT_DATE = _gdi.LOCALE_CAT_DATE
1723LOCALE_CAT_MONEY = _gdi.LOCALE_CAT_MONEY
1724LOCALE_CAT_MAX = _gdi.LOCALE_CAT_MAX
1725LOCALE_THOUSANDS_SEP = _gdi.LOCALE_THOUSANDS_SEP
1726LOCALE_DECIMAL_POINT = _gdi.LOCALE_DECIMAL_POINT
1727LOCALE_LOAD_DEFAULT = _gdi.LOCALE_LOAD_DEFAULT
1728LOCALE_CONV_ENCODING = _gdi.LOCALE_CONV_ENCODING
1729class Locale(object):
1730 """"""
1731 def __repr__(self):
1732 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1733 def __init__(self, *args, **kwargs):
1734 """__init__(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
1735 newobj = _gdi.new_Locale(*args, **kwargs)
1736 self.this = newobj.this
1737 self.thisown = 1
1738 del newobj.thisown
1739 def __del__(self, destroy=_gdi.delete_Locale):
1740 """__del__()"""
1741 try:
1742 if self.thisown: destroy(self)
1743 except: pass
1744
1745 def Init1(*args, **kwargs):
1746 """Init1(wxString szName, wxString szShort=wxPyEmptyString,
1747 wxString szLocale=wxPyEmptyString, bool bLoadDefault=True,
1748 bool bConvertEncoding=False) -> bool"""
1749 return _gdi.Locale_Init1(*args, **kwargs)
1750
1751 def Init2(*args, **kwargs):
1752 """Init2(int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
1753 return _gdi.Locale_Init2(*args, **kwargs)
1754
1755 def Init(self, *_args, **_kwargs):
1756 if type(_args[0]) in [type(''), type(u'')]:
1757 val = self.Init1(*_args, **_kwargs)
1758 else:
1759 val = self.Init2(*_args, **_kwargs)
1760 return val
1761
1762 def GetSystemLanguage(*args, **kwargs):
1763 """Locale.GetSystemLanguage() -> int"""
1764 return _gdi.Locale_GetSystemLanguage(*args, **kwargs)
1765
1766 GetSystemLanguage = staticmethod(GetSystemLanguage)
1767 def GetSystemEncoding(*args, **kwargs):
1768 """Locale.GetSystemEncoding() -> wxFontEncoding"""
1769 return _gdi.Locale_GetSystemEncoding(*args, **kwargs)
1770
1771 GetSystemEncoding = staticmethod(GetSystemEncoding)
1772 def GetSystemEncodingName(*args, **kwargs):
1773 """Locale.GetSystemEncodingName() -> wxString"""
1774 return _gdi.Locale_GetSystemEncodingName(*args, **kwargs)
1775
1776 GetSystemEncodingName = staticmethod(GetSystemEncodingName)
1777 def IsOk(*args, **kwargs):
1778 """IsOk() -> bool"""
1779 return _gdi.Locale_IsOk(*args, **kwargs)
1780
1781 def __nonzero__(self): return self.IsOk()
1782 def GetLocale(*args, **kwargs):
1783 """GetLocale() -> wxString"""
1784 return _gdi.Locale_GetLocale(*args, **kwargs)
1785
1786 def GetLanguage(*args, **kwargs):
1787 """GetLanguage() -> int"""
1788 return _gdi.Locale_GetLanguage(*args, **kwargs)
1789
1790 def GetSysName(*args, **kwargs):
1791 """GetSysName() -> wxString"""
1792 return _gdi.Locale_GetSysName(*args, **kwargs)
1793
1794 def GetCanonicalName(*args, **kwargs):
1795 """GetCanonicalName() -> wxString"""
1796 return _gdi.Locale_GetCanonicalName(*args, **kwargs)
1797
1798 def AddCatalogLookupPathPrefix(*args, **kwargs):
1799 """Locale.AddCatalogLookupPathPrefix(wxString prefix)"""
1800 return _gdi.Locale_AddCatalogLookupPathPrefix(*args, **kwargs)
1801
1802 AddCatalogLookupPathPrefix = staticmethod(AddCatalogLookupPathPrefix)
1803 def AddCatalog(*args, **kwargs):
1804 """AddCatalog(wxString szDomain) -> bool"""
1805 return _gdi.Locale_AddCatalog(*args, **kwargs)
1806
1807 def IsLoaded(*args, **kwargs):
1808 """IsLoaded(wxString szDomain) -> bool"""
1809 return _gdi.Locale_IsLoaded(*args, **kwargs)
1810
1811 def GetLanguageInfo(*args, **kwargs):
1812 """Locale.GetLanguageInfo(int lang) -> LanguageInfo"""
1813 return _gdi.Locale_GetLanguageInfo(*args, **kwargs)
1814
1815 GetLanguageInfo = staticmethod(GetLanguageInfo)
1816 def GetLanguageName(*args, **kwargs):
1817 """Locale.GetLanguageName(int lang) -> wxString"""
1818 return _gdi.Locale_GetLanguageName(*args, **kwargs)
1819
1820 GetLanguageName = staticmethod(GetLanguageName)
1821 def FindLanguageInfo(*args, **kwargs):
1822 """Locale.FindLanguageInfo(wxString locale) -> LanguageInfo"""
1823 return _gdi.Locale_FindLanguageInfo(*args, **kwargs)
1824
1825 FindLanguageInfo = staticmethod(FindLanguageInfo)
1826 def AddLanguage(*args, **kwargs):
1827 """Locale.AddLanguage(LanguageInfo info)"""
1828 return _gdi.Locale_AddLanguage(*args, **kwargs)
1829
1830 AddLanguage = staticmethod(AddLanguage)
1831 def GetString(*args, **kwargs):
1832 """GetString(wxString szOrigString, wxString szDomain=wxPyEmptyString) -> wxString"""
1833 return _gdi.Locale_GetString(*args, **kwargs)
1834
1835 def GetName(*args, **kwargs):
1836 """GetName() -> wxString"""
1837 return _gdi.Locale_GetName(*args, **kwargs)
1838
1839
1840class LocalePtr(Locale):
1841 def __init__(self, this):
1842 self.this = this
1843 if not hasattr(self,"thisown"): self.thisown = 0
1844 self.__class__ = Locale
1845_gdi.Locale_swigregister(LocalePtr)
1846
1847def Locale_GetSystemLanguage(*args, **kwargs):
1848 """Locale_GetSystemLanguage() -> int"""
1849 return _gdi.Locale_GetSystemLanguage(*args, **kwargs)
1850
1851def Locale_GetSystemEncoding(*args, **kwargs):
1852 """Locale_GetSystemEncoding() -> wxFontEncoding"""
1853 return _gdi.Locale_GetSystemEncoding(*args, **kwargs)
1854
1855def Locale_GetSystemEncodingName(*args, **kwargs):
1856 """Locale_GetSystemEncodingName() -> wxString"""
1857 return _gdi.Locale_GetSystemEncodingName(*args, **kwargs)
1858
1859def Locale_AddCatalogLookupPathPrefix(*args, **kwargs):
1860 """Locale_AddCatalogLookupPathPrefix(wxString prefix)"""
1861 return _gdi.Locale_AddCatalogLookupPathPrefix(*args, **kwargs)
1862
1863def Locale_GetLanguageInfo(*args, **kwargs):
1864 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
1865 return _gdi.Locale_GetLanguageInfo(*args, **kwargs)
1866
1867def Locale_GetLanguageName(*args, **kwargs):
1868 """Locale_GetLanguageName(int lang) -> wxString"""
1869 return _gdi.Locale_GetLanguageName(*args, **kwargs)
1870
1871def Locale_FindLanguageInfo(*args, **kwargs):
1872 """Locale_FindLanguageInfo(wxString locale) -> LanguageInfo"""
1873 return _gdi.Locale_FindLanguageInfo(*args, **kwargs)
1874
1875def Locale_AddLanguage(*args, **kwargs):
1876 """Locale_AddLanguage(LanguageInfo info)"""
1877 return _gdi.Locale_AddLanguage(*args, **kwargs)
1878
1879
1880def GetLocale(*args, **kwargs):
1881 """GetLocale() -> Locale"""
1882 return _gdi.GetLocale(*args, **kwargs)
1883#---------------------------------------------------------------------------
1884
1885CONVERT_STRICT = _gdi.CONVERT_STRICT
1886CONVERT_SUBSTITUTE = _gdi.CONVERT_SUBSTITUTE
1887PLATFORM_CURRENT = _gdi.PLATFORM_CURRENT
1888PLATFORM_UNIX = _gdi.PLATFORM_UNIX
1889PLATFORM_WINDOWS = _gdi.PLATFORM_WINDOWS
1890PLATFORM_OS2 = _gdi.PLATFORM_OS2
1891PLATFORM_MAC = _gdi.PLATFORM_MAC
1892class EncodingConverter(core.Object):
1893 """"""
1894 def __repr__(self):
1895 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1896 def __init__(self, *args, **kwargs):
1897 """__init__() -> EncodingConverter"""
1898 newobj = _gdi.new_EncodingConverter(*args, **kwargs)
1899 self.this = newobj.this
1900 self.thisown = 1
1901 del newobj.thisown
1902 def __del__(self, destroy=_gdi.delete_EncodingConverter):
1903 """__del__()"""
1904 try:
1905 if self.thisown: destroy(self)
1906 except: pass
1907
1908 def Init(*args, **kwargs):
1909 """Init(wxFontEncoding input_enc, wxFontEncoding output_enc,
1910 int method=CONVERT_STRICT) -> bool"""
1911 return _gdi.EncodingConverter_Init(*args, **kwargs)
1912
1913 def Convert(*args, **kwargs):
1914 """Convert(wxString input) -> wxString"""
1915 return _gdi.EncodingConverter_Convert(*args, **kwargs)
1916
1917 def GetPlatformEquivalents(*args, **kwargs):
1918 """EncodingConverter.GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
1919 return _gdi.EncodingConverter_GetPlatformEquivalents(*args, **kwargs)
1920
1921 GetPlatformEquivalents = staticmethod(GetPlatformEquivalents)
1922 def GetAllEquivalents(*args, **kwargs):
1923 """EncodingConverter.GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
1924 return _gdi.EncodingConverter_GetAllEquivalents(*args, **kwargs)
1925
1926 GetAllEquivalents = staticmethod(GetAllEquivalents)
1927 def CanConvert(*args, **kwargs):
1928 """EncodingConverter.CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
1929 return _gdi.EncodingConverter_CanConvert(*args, **kwargs)
1930
1931 CanConvert = staticmethod(CanConvert)
1932 def __nonzero__(self): return self.IsOk()
1933
1934class EncodingConverterPtr(EncodingConverter):
1935 def __init__(self, this):
1936 self.this = this
1937 if not hasattr(self,"thisown"): self.thisown = 0
1938 self.__class__ = EncodingConverter
1939_gdi.EncodingConverter_swigregister(EncodingConverterPtr)
1940
1941def GetTranslation(*args):
1942 """GetTranslation(wxString sz) -> wxString
1943GetTranslation(wxString sz1, wxString sz2, size_t n) -> wxString"""
1944 return _gdi.GetTranslation(*args)
1945
1946def EncodingConverter_GetPlatformEquivalents(*args, **kwargs):
1947 """EncodingConverter_GetPlatformEquivalents(wxFontEncoding enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
1948 return _gdi.EncodingConverter_GetPlatformEquivalents(*args, **kwargs)
1949
1950def EncodingConverter_GetAllEquivalents(*args, **kwargs):
1951 """EncodingConverter_GetAllEquivalents(wxFontEncoding enc) -> wxFontEncodingArray"""
1952 return _gdi.EncodingConverter_GetAllEquivalents(*args, **kwargs)
1953
1954def EncodingConverter_CanConvert(*args, **kwargs):
1955 """EncodingConverter_CanConvert(wxFontEncoding encIn, wxFontEncoding encOut) -> bool"""
1956 return _gdi.EncodingConverter_CanConvert(*args, **kwargs)
1957
1958#----------------------------------------------------------------------------
1959# wxGTK sets the locale when initialized. Doing this at the Python
1960# level should set it up to match what GTK is doing at the C level.
1961if wx.Platform == "__WXGTK__":
1962 try:
1963 import locale
1964 locale.setlocale(locale.LC_ALL, "")
1965 except:
1966 pass
1967
1968# On MSW add the directory where the wxWindows catalogs were installed
1969# to the default catalog path.
1970if wx.Platform == "__WXMSW__":
1971 import os
1972 localedir = os.path.join(os.path.split(__file__)[0], "locale")
1973 Locale_AddCatalogLookupPathPrefix(localedir)
1974 del os
1975
1976#----------------------------------------------------------------------------
1977
1978#---------------------------------------------------------------------------
1979
1980class DC(core.Object):
1981 """"""
1982 def __init__(self): raise RuntimeError, "No constructor defined"
1983 def __repr__(self):
1984 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1985 def __del__(self, destroy=_gdi.delete_DC):
1986 """__del__()"""
1987 try:
1988 if self.thisown: destroy(self)
1989 except: pass
1990
1991 def BeginDrawing(*args, **kwargs):
1992 """BeginDrawing()"""
1993 return _gdi.DC_BeginDrawing(*args, **kwargs)
1994
1995 def EndDrawing(*args, **kwargs):
1996 """EndDrawing()"""
1997 return _gdi.DC_EndDrawing(*args, **kwargs)
1998
1999 def FloodFillXY(*args, **kwargs):
2000 """FloodFillXY(int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool"""
2001 return _gdi.DC_FloodFillXY(*args, **kwargs)
2002
2003 def FloodFill(*args, **kwargs):
2004 """FloodFill(Point pt, Colour col, int style=FLOOD_SURFACE) -> bool"""
2005 return _gdi.DC_FloodFill(*args, **kwargs)
2006
2007 def GetPixelXY(*args, **kwargs):
2008 """GetPixelXY(int x, int y) -> Colour"""
2009 return _gdi.DC_GetPixelXY(*args, **kwargs)
2010
2011 def GetPixel(*args, **kwargs):
2012 """GetPixel(Point pt) -> Colour"""
2013 return _gdi.DC_GetPixel(*args, **kwargs)
2014
2015 def DrawLineXY(*args, **kwargs):
2016 """DrawLineXY(int x1, int y1, int x2, int y2)"""
2017 return _gdi.DC_DrawLineXY(*args, **kwargs)
2018
2019 def DrawLine(*args, **kwargs):
2020 """DrawLine(Point pt1, Point pt2)"""
2021 return _gdi.DC_DrawLine(*args, **kwargs)
2022
2023 def CrossHairXY(*args, **kwargs):
2024 """CrossHairXY(int x, int y)"""
2025 return _gdi.DC_CrossHairXY(*args, **kwargs)
2026
2027 def CrossHair(*args, **kwargs):
2028 """CrossHair(Point pt)"""
2029 return _gdi.DC_CrossHair(*args, **kwargs)
2030
2031 def DrawArcXY(*args, **kwargs):
2032 """DrawArcXY(int x1, int y1, int x2, int y2, int xc, int yc)"""
2033 return _gdi.DC_DrawArcXY(*args, **kwargs)
2034
2035 def DrawArc(*args, **kwargs):
2036 """DrawArc(Point pt1, Point pt2, Point centre)"""
2037 return _gdi.DC_DrawArc(*args, **kwargs)
2038
2039 def DrawCheckMarkXY(*args, **kwargs):
2040 """DrawCheckMarkXY(int x, int y, int width, int height)"""
2041 return _gdi.DC_DrawCheckMarkXY(*args, **kwargs)
2042
2043 def DrawCheckMark(*args, **kwargs):
2044 """DrawCheckMark(Rect rect)"""
2045 return _gdi.DC_DrawCheckMark(*args, **kwargs)
2046
2047 def DrawEllipticArcXY(*args, **kwargs):
2048 """DrawEllipticArcXY(int x, int y, int w, int h, double sa, double ea)"""
2049 return _gdi.DC_DrawEllipticArcXY(*args, **kwargs)
2050
2051 def DrawEllipticArc(*args, **kwargs):
2052 """DrawEllipticArc(Point pt, Size sz, double sa, double ea)"""
2053 return _gdi.DC_DrawEllipticArc(*args, **kwargs)
2054
2055 def DrawPointXY(*args, **kwargs):
2056 """DrawPointXY(int x, int y)"""
2057 return _gdi.DC_DrawPointXY(*args, **kwargs)
2058
2059 def DrawPoint(*args, **kwargs):
2060 """DrawPoint(Point pt)"""
2061 return _gdi.DC_DrawPoint(*args, **kwargs)
2062
2063 def DrawRectangleXY(*args, **kwargs):
2064 """DrawRectangleXY(int x, int y, int width, int height)"""
2065 return _gdi.DC_DrawRectangleXY(*args, **kwargs)
2066
2067 def DrawRectangle(*args, **kwargs):
2068 """DrawRectangle(Point pt, Size sz)"""
2069 return _gdi.DC_DrawRectangle(*args, **kwargs)
2070
2071 def DrawRectangleRect(*args, **kwargs):
2072 """DrawRectangleRect(Rect rect)"""
2073 return _gdi.DC_DrawRectangleRect(*args, **kwargs)
2074
2075 def DrawRoundedRectangleXY(*args, **kwargs):
2076 """DrawRoundedRectangleXY(int x, int y, int width, int height, double radius)"""
2077 return _gdi.DC_DrawRoundedRectangleXY(*args, **kwargs)
2078
2079 def DrawRoundedRectangle(*args, **kwargs):
2080 """DrawRoundedRectangle(Point pt, Size sz, double radius)"""
2081 return _gdi.DC_DrawRoundedRectangle(*args, **kwargs)
2082
2083 def DrawRoundedRectangleRect(*args, **kwargs):
2084 """DrawRoundedRectangleRect(Rect r, double radius)"""
2085 return _gdi.DC_DrawRoundedRectangleRect(*args, **kwargs)
2086
2087 def DrawCircleXY(*args, **kwargs):
2088 """DrawCircleXY(int x, int y, int radius)"""
2089 return _gdi.DC_DrawCircleXY(*args, **kwargs)
2090
2091 def DrawCircle(*args, **kwargs):
2092 """DrawCircle(Point pt, int radius)"""
2093 return _gdi.DC_DrawCircle(*args, **kwargs)
2094
2095 def DrawEllipseXY(*args, **kwargs):
2096 """DrawEllipseXY(int x, int y, int width, int height)"""
2097 return _gdi.DC_DrawEllipseXY(*args, **kwargs)
2098
2099 def DrawEllipse(*args, **kwargs):
2100 """DrawEllipse(Point pt, Size sz)"""
2101 return _gdi.DC_DrawEllipse(*args, **kwargs)
2102
2103 def DrawEllipseRect(*args, **kwargs):
2104 """DrawEllipseRect(Rect rect)"""
2105 return _gdi.DC_DrawEllipseRect(*args, **kwargs)
2106
2107 def DrawIconXY(*args, **kwargs):
2108 """DrawIconXY(Icon icon, int x, int y)"""
2109 return _gdi.DC_DrawIconXY(*args, **kwargs)
2110
2111 def DrawIcon(*args, **kwargs):
2112 """DrawIcon(Icon icon, Point pt)"""
2113 return _gdi.DC_DrawIcon(*args, **kwargs)
2114
2115 def DrawBitmapXY(*args, **kwargs):
2116 """DrawBitmapXY(Bitmap bmp, int x, int y, bool useMask=False)"""
2117 return _gdi.DC_DrawBitmapXY(*args, **kwargs)
2118
2119 def DrawBitmap(*args, **kwargs):
2120 """DrawBitmap(Bitmap bmp, Point pt, bool useMask=False)"""
2121 return _gdi.DC_DrawBitmap(*args, **kwargs)
2122
2123 def DrawTextXY(*args, **kwargs):
2124 """DrawTextXY(wxString text, int x, int y)"""
2125 return _gdi.DC_DrawTextXY(*args, **kwargs)
2126
2127 def DrawText(*args, **kwargs):
2128 """DrawText(wxString text, Point pt)"""
2129 return _gdi.DC_DrawText(*args, **kwargs)
2130
2131 def DrawRotatedTextXY(*args, **kwargs):
2132 """DrawRotatedTextXY(wxString text, int x, int y, double angle)"""
2133 return _gdi.DC_DrawRotatedTextXY(*args, **kwargs)
2134
2135 def DrawRotatedText(*args, **kwargs):
2136 """DrawRotatedText(wxString text, Point pt, double angle)"""
2137 return _gdi.DC_DrawRotatedText(*args, **kwargs)
2138
2139 def BlitXY(*args, **kwargs):
2140 """BlitXY(int xdest, int ydest, int width, int height, DC source,
2141 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2142 int xsrcMask=-1, int ysrcMask=-1) -> bool"""
2143 return _gdi.DC_BlitXY(*args, **kwargs)
2144
2145 def Blit(*args, **kwargs):
2146 """Blit(Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
2147 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool"""
2148 return _gdi.DC_Blit(*args, **kwargs)
2149
2150 def DrawLines(*args, **kwargs):
2151 """DrawLines(int points, Point points_array, int xoffset=0, int yoffset=0)"""
2152 return _gdi.DC_DrawLines(*args, **kwargs)
2153
2154 def DrawPolygon(*args, **kwargs):
2155 """DrawPolygon(int points, Point points_array, int xoffset=0, int yoffset=0,
2156 int fillStyle=ODDEVEN_RULE)"""
2157 return _gdi.DC_DrawPolygon(*args, **kwargs)
2158
2159 def DrawLabel(*args, **kwargs):
2160 """DrawLabel(wxString text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2161 int indexAccel=-1)"""
2162 return _gdi.DC_DrawLabel(*args, **kwargs)
2163
2164 def DrawImageLabel(*args, **kwargs):
2165 """DrawImageLabel(wxString text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
2166 int indexAccel=-1) -> Rect"""
2167 return _gdi.DC_DrawImageLabel(*args, **kwargs)
2168
2169 def DrawSpline(*args, **kwargs):
2170 """DrawSpline(int points, Point points_array)"""
2171 return _gdi.DC_DrawSpline(*args, **kwargs)
2172
2173 def Clear(*args, **kwargs):
2174 """Clear()"""
2175 return _gdi.DC_Clear(*args, **kwargs)
2176
2177 def StartDoc(*args, **kwargs):
2178 """StartDoc(wxString message) -> bool"""
2179 return _gdi.DC_StartDoc(*args, **kwargs)
2180
2181 def EndDoc(*args, **kwargs):
2182 """EndDoc()"""
2183 return _gdi.DC_EndDoc(*args, **kwargs)
2184
2185 def StartPage(*args, **kwargs):
2186 """StartPage()"""
2187 return _gdi.DC_StartPage(*args, **kwargs)
2188
2189 def EndPage(*args, **kwargs):
2190 """EndPage()"""
2191 return _gdi.DC_EndPage(*args, **kwargs)
2192
2193 def SetFont(*args, **kwargs):
2194 """SetFont(Font font)"""
2195 return _gdi.DC_SetFont(*args, **kwargs)
2196
2197 def SetPen(*args, **kwargs):
2198 """SetPen(Pen pen)"""
2199 return _gdi.DC_SetPen(*args, **kwargs)
2200
2201 def SetBrush(*args, **kwargs):
2202 """SetBrush(Brush brush)"""
2203 return _gdi.DC_SetBrush(*args, **kwargs)
2204
2205 def SetBackground(*args, **kwargs):
2206 """SetBackground(Brush brush)"""
2207 return _gdi.DC_SetBackground(*args, **kwargs)
2208
2209 def SetBackgroundMode(*args, **kwargs):
2210 """SetBackgroundMode(int mode)"""
2211 return _gdi.DC_SetBackgroundMode(*args, **kwargs)
2212
2213 def SetPalette(*args, **kwargs):
2214 """SetPalette(Palette palette)"""
2215 return _gdi.DC_SetPalette(*args, **kwargs)
2216
2217 def SetClippingRegion(*args, **kwargs):
2218 """SetClippingRegion(int x, int y, int width, int height)"""
2219 return _gdi.DC_SetClippingRegion(*args, **kwargs)
2220
2221 def SetClippingRect(*args, **kwargs):
2222 """SetClippingRect(Rect rect)"""
2223 return _gdi.DC_SetClippingRect(*args, **kwargs)
2224
2225 def SetClippingRegionAsRegion(*args, **kwargs):
2226 """SetClippingRegionAsRegion(Region region)"""
2227 return _gdi.DC_SetClippingRegionAsRegion(*args, **kwargs)
2228
2229 def DestroyClippingRegion(*args, **kwargs):
2230 """DestroyClippingRegion()"""
2231 return _gdi.DC_DestroyClippingRegion(*args, **kwargs)
2232
2233 def GetClippingBox(*args, **kwargs):
2234 """GetClippingBox(int OUTPUT, int OUTPUT, int OUTPUT, int OUTPUT)"""
2235 return _gdi.DC_GetClippingBox(*args, **kwargs)
2236
2237 def GetClippingRect(*args, **kwargs):
2238 """GetClippingRect() -> Rect"""
2239 return _gdi.DC_GetClippingRect(*args, **kwargs)
2240
2241 def GetCharHeight(*args, **kwargs):
2242 """GetCharHeight() -> int"""
2243 return _gdi.DC_GetCharHeight(*args, **kwargs)
2244
2245 def GetCharWidth(*args, **kwargs):
2246 """GetCharWidth() -> int"""
2247 return _gdi.DC_GetCharWidth(*args, **kwargs)
2248
2249 def GetTextExtent(*args, **kwargs):
2250 """GetTextExtent(wxString string, int OUTPUT, int OUTPUT)"""
2251 return _gdi.DC_GetTextExtent(*args, **kwargs)
2252
2253 def GetFullTextExtent(*args, **kwargs):
2254 """GetFullTextExtent(wxString string, int OUTPUT, int OUTPUT, int OUTPUT,
2255 int OUTPUT, Font font=None)"""
2256 return _gdi.DC_GetFullTextExtent(*args, **kwargs)
2257
2258 def GetMultiLineTextExtent(*args, **kwargs):
2259 """GetMultiLineTextExtent(wxString text, int OUTPUT, int OUTPUT, int OUTPUT,
2260 Font font=None)"""
2261 return _gdi.DC_GetMultiLineTextExtent(*args, **kwargs)
2262
2263 def GetSizeTuple(*args, **kwargs):
2264 """GetSizeTuple(int OUTPUT, int OUTPUT)"""
2265 return _gdi.DC_GetSizeTuple(*args, **kwargs)
2266
2267 def GetSize(*args, **kwargs):
2268 """GetSize() -> Size"""
2269 return _gdi.DC_GetSize(*args, **kwargs)
2270
2271 def GetSizeMMWH(*args, **kwargs):
2272 """GetSizeMMWH(int OUTPUT, int OUTPUT)"""
2273 return _gdi.DC_GetSizeMMWH(*args, **kwargs)
2274
2275 def GetSizeMM(*args, **kwargs):
2276 """GetSizeMM() -> Size"""
2277 return _gdi.DC_GetSizeMM(*args, **kwargs)
2278
2279 def DeviceToLogicalX(*args, **kwargs):
2280 """DeviceToLogicalX(int x) -> int"""
2281 return _gdi.DC_DeviceToLogicalX(*args, **kwargs)
2282
2283 def DeviceToLogicalY(*args, **kwargs):
2284 """DeviceToLogicalY(int y) -> int"""
2285 return _gdi.DC_DeviceToLogicalY(*args, **kwargs)
2286
2287 def DeviceToLogicalXRel(*args, **kwargs):
2288 """DeviceToLogicalXRel(int x) -> int"""
2289 return _gdi.DC_DeviceToLogicalXRel(*args, **kwargs)
2290
2291 def DeviceToLogicalYRel(*args, **kwargs):
2292 """DeviceToLogicalYRel(int y) -> int"""
2293 return _gdi.DC_DeviceToLogicalYRel(*args, **kwargs)
2294
2295 def LogicalToDeviceX(*args, **kwargs):
2296 """LogicalToDeviceX(int x) -> int"""
2297 return _gdi.DC_LogicalToDeviceX(*args, **kwargs)
2298
2299 def LogicalToDeviceY(*args, **kwargs):
2300 """LogicalToDeviceY(int y) -> int"""
2301 return _gdi.DC_LogicalToDeviceY(*args, **kwargs)
2302
2303 def LogicalToDeviceXRel(*args, **kwargs):
2304 """LogicalToDeviceXRel(int x) -> int"""
2305 return _gdi.DC_LogicalToDeviceXRel(*args, **kwargs)
2306
2307 def LogicalToDeviceYRel(*args, **kwargs):
2308 """LogicalToDeviceYRel(int y) -> int"""
2309 return _gdi.DC_LogicalToDeviceYRel(*args, **kwargs)
2310
2311 def CanDrawBitmap(*args, **kwargs):
2312 """CanDrawBitmap() -> bool"""
2313 return _gdi.DC_CanDrawBitmap(*args, **kwargs)
2314
2315 def CanGetTextExtent(*args, **kwargs):
2316 """CanGetTextExtent() -> bool"""
2317 return _gdi.DC_CanGetTextExtent(*args, **kwargs)
2318
2319 def GetDepth(*args, **kwargs):
2320 """GetDepth() -> int"""
2321 return _gdi.DC_GetDepth(*args, **kwargs)
2322
2323 def GetPPI(*args, **kwargs):
2324 """GetPPI() -> Size"""
2325 return _gdi.DC_GetPPI(*args, **kwargs)
2326
2327 def Ok(*args, **kwargs):
2328 """Ok() -> bool"""
2329 return _gdi.DC_Ok(*args, **kwargs)
2330
2331 def GetBackgroundMode(*args, **kwargs):
2332 """GetBackgroundMode() -> int"""
2333 return _gdi.DC_GetBackgroundMode(*args, **kwargs)
2334
2335 def GetBackground(*args, **kwargs):
2336 """GetBackground() -> Brush"""
2337 return _gdi.DC_GetBackground(*args, **kwargs)
2338
2339 def GetBrush(*args, **kwargs):
2340 """GetBrush() -> Brush"""
2341 return _gdi.DC_GetBrush(*args, **kwargs)
2342
2343 def GetFont(*args, **kwargs):
2344 """GetFont() -> Font"""
2345 return _gdi.DC_GetFont(*args, **kwargs)
2346
2347 def GetPen(*args, **kwargs):
2348 """GetPen() -> Pen"""
2349 return _gdi.DC_GetPen(*args, **kwargs)
2350
2351 def GetTextBackground(*args, **kwargs):
2352 """GetTextBackground() -> Colour"""
2353 return _gdi.DC_GetTextBackground(*args, **kwargs)
2354
2355 def GetTextForeground(*args, **kwargs):
2356 """GetTextForeground() -> Colour"""
2357 return _gdi.DC_GetTextForeground(*args, **kwargs)
2358
2359 def SetTextForeground(*args, **kwargs):
2360 """SetTextForeground(Colour colour)"""
2361 return _gdi.DC_SetTextForeground(*args, **kwargs)
2362
2363 def SetTextBackground(*args, **kwargs):
2364 """SetTextBackground(Colour colour)"""
2365 return _gdi.DC_SetTextBackground(*args, **kwargs)
2366
2367 def GetMapMode(*args, **kwargs):
2368 """GetMapMode() -> int"""
2369 return _gdi.DC_GetMapMode(*args, **kwargs)
2370
2371 def SetMapMode(*args, **kwargs):
2372 """SetMapMode(int mode)"""
2373 return _gdi.DC_SetMapMode(*args, **kwargs)
2374
2375 def GetUserScale(*args, **kwargs):
2376 """GetUserScale(double OUTPUT, double OUTPUT)"""
2377 return _gdi.DC_GetUserScale(*args, **kwargs)
2378
2379 def SetUserScale(*args, **kwargs):
2380 """SetUserScale(double x, double y)"""
2381 return _gdi.DC_SetUserScale(*args, **kwargs)
2382
2383 def GetLogicalScale(*args, **kwargs):
2384 """GetLogicalScale(double OUTPUT, double OUTPUT)"""
2385 return _gdi.DC_GetLogicalScale(*args, **kwargs)
2386
2387 def SetLogicalScale(*args, **kwargs):
2388 """SetLogicalScale(double x, double y)"""
2389 return _gdi.DC_SetLogicalScale(*args, **kwargs)
2390
2391 def GetLogicalOriginTuple(*args, **kwargs):
2392 """GetLogicalOriginTuple(int OUTPUT, int OUTPUT)"""
2393 return _gdi.DC_GetLogicalOriginTuple(*args, **kwargs)
2394
2395 def GetLogicalOrigin(*args, **kwargs):
2396 """GetLogicalOrigin() -> Point"""
2397 return _gdi.DC_GetLogicalOrigin(*args, **kwargs)
2398
2399 def SetLogicalOrigin(*args, **kwargs):
2400 """SetLogicalOrigin(int x, int y)"""
2401 return _gdi.DC_SetLogicalOrigin(*args, **kwargs)
2402
2403 def GetDeviceOriginTuple(*args, **kwargs):
2404 """GetDeviceOriginTuple(int OUTPUT, int OUTPUT)"""
2405 return _gdi.DC_GetDeviceOriginTuple(*args, **kwargs)
2406
2407 def GetDeviceOrigin(*args, **kwargs):
2408 """GetDeviceOrigin() -> Point"""
2409 return _gdi.DC_GetDeviceOrigin(*args, **kwargs)
2410
2411 def SetDeviceOrigin(*args, **kwargs):
2412 """SetDeviceOrigin(int x, int y)"""
2413 return _gdi.DC_SetDeviceOrigin(*args, **kwargs)
2414
2415 def SetAxisOrientation(*args, **kwargs):
2416 """SetAxisOrientation(bool xLeftRight, bool yBottomUp)"""
2417 return _gdi.DC_SetAxisOrientation(*args, **kwargs)
2418
2419 def GetLogicalFunction(*args, **kwargs):
2420 """GetLogicalFunction() -> int"""
2421 return _gdi.DC_GetLogicalFunction(*args, **kwargs)
2422
2423 def SetLogicalFunction(*args, **kwargs):
2424 """SetLogicalFunction(int function)"""
2425 return _gdi.DC_SetLogicalFunction(*args, **kwargs)
2426
2427 def SetOptimization(*args, **kwargs):
2428 """SetOptimization(bool opt)"""
2429 return _gdi.DC_SetOptimization(*args, **kwargs)
2430
2431 def GetOptimization(*args, **kwargs):
2432 """GetOptimization() -> bool"""
2433 return _gdi.DC_GetOptimization(*args, **kwargs)
2434
2435 def CalcBoundingBox(*args, **kwargs):
2436 """CalcBoundingBox(int x, int y)"""
2437 return _gdi.DC_CalcBoundingBox(*args, **kwargs)
2438
2439 def ResetBoundingBox(*args, **kwargs):
2440 """ResetBoundingBox()"""
2441 return _gdi.DC_ResetBoundingBox(*args, **kwargs)
2442
2443 def MinX(*args, **kwargs):
2444 """MinX() -> int"""
2445 return _gdi.DC_MinX(*args, **kwargs)
2446
2447 def MaxX(*args, **kwargs):
2448 """MaxX() -> int"""
2449 return _gdi.DC_MaxX(*args, **kwargs)
2450
2451 def MinY(*args, **kwargs):
2452 """MinY() -> int"""
2453 return _gdi.DC_MinY(*args, **kwargs)
2454
2455 def MaxY(*args, **kwargs):
2456 """MaxY() -> int"""
2457 return _gdi.DC_MaxY(*args, **kwargs)
2458
2459 def GetBoundingBox(*args, **kwargs):
2460 """GetBoundingBox(int OUTPUT, int OUTPUT, int OUTPUT, int OUTPUT)"""
2461 return _gdi.DC_GetBoundingBox(*args, **kwargs)
2462
2463 def __nonzero__(self): return self.Ok()
2464 def _DrawPointList(*args, **kwargs):
2465 """_DrawPointList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2466 return _gdi.DC__DrawPointList(*args, **kwargs)
2467
2468 def _DrawLineList(*args, **kwargs):
2469 """_DrawLineList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2470 return _gdi.DC__DrawLineList(*args, **kwargs)
2471
2472 def _DrawRectangleList(*args, **kwargs):
2473 """_DrawRectangleList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2474 return _gdi.DC__DrawRectangleList(*args, **kwargs)
2475
2476 def _DrawEllipseList(*args, **kwargs):
2477 """_DrawEllipseList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2478 return _gdi.DC__DrawEllipseList(*args, **kwargs)
2479
2480 def _DrawPolygonList(*args, **kwargs):
2481 """_DrawPolygonList(PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
2482 return _gdi.DC__DrawPolygonList(*args, **kwargs)
2483
2484 def _DrawTextList(*args, **kwargs):
2485 """_DrawTextList(PyObject textList, PyObject pyPoints, PyObject foregroundList,
2486 PyObject backgroundList) -> PyObject"""
2487 return _gdi.DC__DrawTextList(*args, **kwargs)
2488
2489 def DrawPointList(self, points, pens=None):
2490 if pens is None:
2491 pens = []
2492 elif isinstance(pens, wx.Pen):
2493 pens = [pens]
2494 elif len(pens) != len(points):
2495 raise ValueError('points and pens must have same length')
2496 return self._DrawPointList(points, pens, [])
2497
2498
2499 def DrawLineList(self, lines, pens=None):
2500 if pens is None:
2501 pens = []
2502 elif isinstance(pens, wx.Pen):
2503 pens = [pens]
2504 elif len(pens) != len(lines):
2505 raise ValueError('lines and pens must have same length')
2506 return self._DrawLineList(lines, pens, [])
2507
2508
2509 def DrawRectangleList(self, rectangles, pens=None, brushes=None):
2510 if pens is None:
2511 pens = []
2512 elif isinstance(pens, wx.Pen):
2513 pens = [pens]
2514 elif len(pens) != len(rectangles):
2515 raise ValueError('rectangles and pens must have same length')
2516 if brushes is None:
2517 brushes = []
2518 elif isinstance(brushes, wx.Brush):
2519 brushes = [brushes]
2520 elif len(brushes) != len(rectangles):
2521 raise ValueError('rectangles and brushes must have same length')
2522 return self._DrawRectangleList(rectangles, pens, brushes)
2523
2524
2525 def DrawEllipseList(self, ellipses, pens=None, brushes=None):
2526 if pens is None:
2527 pens = []
2528 elif isinstance(pens, wx.Pen):
2529 pens = [pens]
2530 elif len(pens) != len(ellipses):
2531 raise ValueError('ellipses and pens must have same length')
2532 if brushes is None:
2533 brushes = []
2534 elif isinstance(brushes, wx.Brush):
2535 brushes = [brushes]
2536 elif len(brushes) != len(ellipses):
2537 raise ValueError('ellipses and brushes must have same length')
2538 return self._DrawEllipseList(ellipses, pens, brushes)
2539
2540
2541 def DrawPolygonList(self, polygons, pens=None, brushes=None):
2542
2543
2544 if pens is None:
2545 pens = []
2546 elif isinstance(pens, wx.Pen):
2547 pens = [pens]
2548 elif len(pens) != len(polygons):
2549 raise ValueError('polygons and pens must have same length')
2550 if brushes is None:
2551 brushes = []
2552 elif isinstance(brushes, wx.Brush):
2553 brushes = [brushes]
2554 elif len(brushes) != len(polygons):
2555 raise ValueError('polygons and brushes must have same length')
2556 return self._DrawPolygonList(polygons, pens, brushes)
2557
2558
2559 def DrawTextList(self, textList, coords, foregrounds = None, backgrounds = None, fonts = None):
2560
2561
2562
2563 if type(textList) == type(''):
2564 textList = [textList]
2565 elif len(textList) != len(coords):
2566 raise ValueError('textlist and coords must have same length')
2567 if foregrounds is None:
2568 foregrounds = []
2569 elif isinstance(foregrounds, wxColour):
2570 foregrounds = [foregrounds]
2571 elif len(foregrounds) != len(coords):
2572 raise ValueError('foregrounds and coords must have same length')
2573 if backgrounds is None:
2574 backgrounds = []
2575 elif isinstance(backgrounds, wxColour):
2576 backgrounds = [backgrounds]
2577 elif len(backgrounds) != len(coords):
2578 raise ValueError('backgrounds and coords must have same length')
2579 return self._DrawTextList(textList, coords, foregrounds, backgrounds)
2580
2581
2582class DCPtr(DC):
2583 def __init__(self, this):
2584 self.this = this
2585 if not hasattr(self,"thisown"): self.thisown = 0
2586 self.__class__ = DC
2587_gdi.DC_swigregister(DCPtr)
2588
2589#---------------------------------------------------------------------------
2590
2591class MemoryDC(DC):
2592 """"""
2593 def __repr__(self):
2594 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2595 def __init__(self, *args, **kwargs):
2596 """__init__() -> MemoryDC"""
2597 newobj = _gdi.new_MemoryDC(*args, **kwargs)
2598 self.this = newobj.this
2599 self.thisown = 1
2600 del newobj.thisown
2601 def SelectObject(*args, **kwargs):
2602 """SelectObject(Bitmap bitmap)"""
2603 return _gdi.MemoryDC_SelectObject(*args, **kwargs)
2604
2605
2606class MemoryDCPtr(MemoryDC):
2607 def __init__(self, this):
2608 self.this = this
2609 if not hasattr(self,"thisown"): self.thisown = 0
2610 self.__class__ = MemoryDC
2611_gdi.MemoryDC_swigregister(MemoryDCPtr)
2612
2613def MemoryDCFromDC(*args, **kwargs):
2614 """MemoryDCFromDC(DC oldDC) -> MemoryDC"""
2615 val = _gdi.new_MemoryDCFromDC(*args, **kwargs)
2616 val.thisown = 1
2617 return val
2618
2619#---------------------------------------------------------------------------
2620
2621class BufferedDC(MemoryDC):
2622 """"""
2623 def __repr__(self):
2624 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2625 def __init__(self, *args, **kwargs):
2626 """__init__(DC dc, Bitmap buffer) -> BufferedDC"""
2627 newobj = _gdi.new_BufferedDC(*args, **kwargs)
2628 self.this = newobj.this
2629 self.thisown = 1
2630 del newobj.thisown
2631 self._dc = args[0] # save a ref so the other dc will not be deleted before self
2632
2633 def UnMask(*args, **kwargs):
2634 """UnMask()"""
2635 return _gdi.BufferedDC_UnMask(*args, **kwargs)
2636
2637
2638class BufferedDCPtr(BufferedDC):
2639 def __init__(self, this):
2640 self.this = this
2641 if not hasattr(self,"thisown"): self.thisown = 0
2642 self.__class__ = BufferedDC
2643_gdi.BufferedDC_swigregister(BufferedDCPtr)
2644
2645def BufferedDCInternalBuffer(*args, **kwargs):
2646 """BufferedDCInternalBuffer(DC dc, Size area) -> BufferedDC"""
2647 val = _gdi.new_BufferedDCInternalBuffer(*args, **kwargs)
2648 val.thisown = 1
2649 val._dc = args[0] # save a ref so the other dc will not be deleted before self
2650 return val
2651
2652class BufferedPaintDC(BufferedDC):
2653 """"""
2654 def __repr__(self):
2655 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2656 def __init__(self, *args, **kwargs):
2657 """__init__(Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC"""
2658 newobj = _gdi.new_BufferedPaintDC(*args, **kwargs)
2659 self.this = newobj.this
2660 self.thisown = 1
2661 del newobj.thisown
2662
2663class BufferedPaintDCPtr(BufferedPaintDC):
2664 def __init__(self, this):
2665 self.this = this
2666 if not hasattr(self,"thisown"): self.thisown = 0
2667 self.__class__ = BufferedPaintDC
2668_gdi.BufferedPaintDC_swigregister(BufferedPaintDCPtr)
2669
2670#---------------------------------------------------------------------------
2671
2672class ScreenDC(DC):
2673 """"""
2674 def __repr__(self):
2675 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2676 def __init__(self, *args, **kwargs):
2677 """__init__() -> ScreenDC"""
2678 newobj = _gdi.new_ScreenDC(*args, **kwargs)
2679 self.this = newobj.this
2680 self.thisown = 1
2681 del newobj.thisown
2682 def StartDrawingOnTopWin(*args, **kwargs):
2683 """StartDrawingOnTopWin(Window window) -> bool"""
2684 return _gdi.ScreenDC_StartDrawingOnTopWin(*args, **kwargs)
2685
2686 def StartDrawingOnTop(*args, **kwargs):
2687 """StartDrawingOnTop(Rect rect=None) -> bool"""
2688 return _gdi.ScreenDC_StartDrawingOnTop(*args, **kwargs)
2689
2690 def EndDrawingOnTop(*args, **kwargs):
2691 """EndDrawingOnTop() -> bool"""
2692 return _gdi.ScreenDC_EndDrawingOnTop(*args, **kwargs)
2693
2694
2695class ScreenDCPtr(ScreenDC):
2696 def __init__(self, this):
2697 self.this = this
2698 if not hasattr(self,"thisown"): self.thisown = 0
2699 self.__class__ = ScreenDC
2700_gdi.ScreenDC_swigregister(ScreenDCPtr)
2701
2702#---------------------------------------------------------------------------
2703
2704class ClientDC(DC):
2705 """"""
2706 def __repr__(self):
2707 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2708 def __init__(self, *args, **kwargs):
2709 """__init__(Window win) -> ClientDC"""
2710 newobj = _gdi.new_ClientDC(*args, **kwargs)
2711 self.this = newobj.this
2712 self.thisown = 1
2713 del newobj.thisown
2714
2715class ClientDCPtr(ClientDC):
2716 def __init__(self, this):
2717 self.this = this
2718 if not hasattr(self,"thisown"): self.thisown = 0
2719 self.__class__ = ClientDC
2720_gdi.ClientDC_swigregister(ClientDCPtr)
2721
2722#---------------------------------------------------------------------------
2723
2724class PaintDC(DC):
2725 """"""
2726 def __repr__(self):
2727 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2728 def __init__(self, *args, **kwargs):
2729 """__init__(Window win) -> PaintDC"""
2730 newobj = _gdi.new_PaintDC(*args, **kwargs)
2731 self.this = newobj.this
2732 self.thisown = 1
2733 del newobj.thisown
2734
2735class PaintDCPtr(PaintDC):
2736 def __init__(self, this):
2737 self.this = this
2738 if not hasattr(self,"thisown"): self.thisown = 0
2739 self.__class__ = PaintDC
2740_gdi.PaintDC_swigregister(PaintDCPtr)
2741
2742#---------------------------------------------------------------------------
2743
2744class WindowDC(DC):
2745 """"""
2746 def __repr__(self):
2747 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2748 def __init__(self, *args, **kwargs):
2749 """__init__(Window win) -> WindowDC"""
2750 newobj = _gdi.new_WindowDC(*args, **kwargs)
2751 self.this = newobj.this
2752 self.thisown = 1
2753 del newobj.thisown
2754
2755class WindowDCPtr(WindowDC):
2756 def __init__(self, this):
2757 self.this = this
2758 if not hasattr(self,"thisown"): self.thisown = 0
2759 self.__class__ = WindowDC
2760_gdi.WindowDC_swigregister(WindowDCPtr)
2761
2762#---------------------------------------------------------------------------
2763
2764class MirrorDC(DC):
2765 """"""
2766 def __repr__(self):
2767 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2768 def __init__(self, *args, **kwargs):
2769 """__init__(DC dc, bool mirror) -> MirrorDC"""
2770 newobj = _gdi.new_MirrorDC(*args, **kwargs)
2771 self.this = newobj.this
2772 self.thisown = 1
2773 del newobj.thisown
2774
2775class MirrorDCPtr(MirrorDC):
2776 def __init__(self, this):
2777 self.this = this
2778 if not hasattr(self,"thisown"): self.thisown = 0
2779 self.__class__ = MirrorDC
2780_gdi.MirrorDC_swigregister(MirrorDCPtr)
2781
2782#---------------------------------------------------------------------------
2783
2784class PostScriptDC(DC):
2785 """"""
2786 def __repr__(self):
2787 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2788 def __init__(self, *args, **kwargs):
2789 """__init__(wxPrintData printData) -> PostScriptDC"""
2790 newobj = _gdi.new_PostScriptDC(*args, **kwargs)
2791 self.this = newobj.this
2792 self.thisown = 1
2793 del newobj.thisown
2794 def GetPrintData(*args, **kwargs):
2795 """GetPrintData() -> wxPrintData"""
2796 return _gdi.PostScriptDC_GetPrintData(*args, **kwargs)
2797
2798 def SetPrintData(*args, **kwargs):
2799 """SetPrintData(wxPrintData data)"""
2800 return _gdi.PostScriptDC_SetPrintData(*args, **kwargs)
2801
2802 def SetResolution(*args, **kwargs):
2803 """PostScriptDC.SetResolution(int ppi)"""
2804 return _gdi.PostScriptDC_SetResolution(*args, **kwargs)
2805
2806 SetResolution = staticmethod(SetResolution)
2807 def GetResolution(*args, **kwargs):
2808 """PostScriptDC.GetResolution() -> int"""
2809 return _gdi.PostScriptDC_GetResolution(*args, **kwargs)
2810
2811 GetResolution = staticmethod(GetResolution)
2812
2813class PostScriptDCPtr(PostScriptDC):
2814 def __init__(self, this):
2815 self.this = this
2816 if not hasattr(self,"thisown"): self.thisown = 0
2817 self.__class__ = PostScriptDC
2818_gdi.PostScriptDC_swigregister(PostScriptDCPtr)
2819
2820def PostScriptDC_SetResolution(*args, **kwargs):
2821 """PostScriptDC_SetResolution(int ppi)"""
2822 return _gdi.PostScriptDC_SetResolution(*args, **kwargs)
2823
2824def PostScriptDC_GetResolution(*args, **kwargs):
2825 """PostScriptDC_GetResolution() -> int"""
2826 return _gdi.PostScriptDC_GetResolution(*args, **kwargs)
2827
2828#---------------------------------------------------------------------------
2829
2830class MetaFile(core.Object):
2831 """"""
2832 def __repr__(self):
2833 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2834 def __init__(self, *args, **kwargs):
2835 """__init__(wxString filename=wxPyEmptyString) -> MetaFile"""
2836 newobj = _gdi.new_MetaFile(*args, **kwargs)
2837 self.this = newobj.this
2838 self.thisown = 1
2839 del newobj.thisown
2840
2841class MetaFilePtr(MetaFile):
2842 def __init__(self, this):
2843 self.this = this
2844 if not hasattr(self,"thisown"): self.thisown = 0
2845 self.__class__ = MetaFile
2846_gdi.MetaFile_swigregister(MetaFilePtr)
2847
2848class MetaFileDC(DC):
2849 """"""
2850 def __repr__(self):
2851 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2852 def __init__(self, *args, **kwargs):
2853 """__init__(wxString filename=wxPyEmptyString, int width=0, int height=0,
2854 wxString description=wxPyEmptyString) -> MetaFileDC"""
2855 newobj = _gdi.new_MetaFileDC(*args, **kwargs)
2856 self.this = newobj.this
2857 self.thisown = 1
2858 del newobj.thisown
2859
2860class MetaFileDCPtr(MetaFileDC):
2861 def __init__(self, this):
2862 self.this = this
2863 if not hasattr(self,"thisown"): self.thisown = 0
2864 self.__class__ = MetaFileDC
2865_gdi.MetaFileDC_swigregister(MetaFileDCPtr)
2866
2867class PrinterDC(DC):
2868 """"""
2869 def __repr__(self):
2870 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2871 def __init__(self, *args, **kwargs):
2872 """__init__(wxPrintData printData) -> PrinterDC"""
2873 newobj = _gdi.new_PrinterDC(*args, **kwargs)
2874 self.this = newobj.this
2875 self.thisown = 1
2876 del newobj.thisown
2877
2878class PrinterDCPtr(PrinterDC):
2879 def __init__(self, this):
2880 self.this = this
2881 if not hasattr(self,"thisown"): self.thisown = 0
2882 self.__class__ = PrinterDC
2883_gdi.PrinterDC_swigregister(PrinterDCPtr)
2884
2885#---------------------------------------------------------------------------
2886
2887IMAGELIST_DRAW_NORMAL = _gdi.IMAGELIST_DRAW_NORMAL
2888IMAGELIST_DRAW_TRANSPARENT = _gdi.IMAGELIST_DRAW_TRANSPARENT
2889IMAGELIST_DRAW_SELECTED = _gdi.IMAGELIST_DRAW_SELECTED
2890IMAGELIST_DRAW_FOCUSED = _gdi.IMAGELIST_DRAW_FOCUSED
2891IMAGE_LIST_NORMAL = _gdi.IMAGE_LIST_NORMAL
2892IMAGE_LIST_SMALL = _gdi.IMAGE_LIST_SMALL
2893IMAGE_LIST_STATE = _gdi.IMAGE_LIST_STATE
2894class ImageList(core.Object):
2895 """"""
2896 def __repr__(self):
2897 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2898 def __init__(self, *args, **kwargs):
2899 """__init__(int width, int height, int mask=True, int initialCount=1) -> ImageList"""
2900 newobj = _gdi.new_ImageList(*args, **kwargs)
2901 self.this = newobj.this
2902 self.thisown = 1
2903 del newobj.thisown
2904 def __del__(self, destroy=_gdi.delete_ImageList):
2905 """__del__()"""
2906 try:
2907 if self.thisown: destroy(self)
2908 except: pass
2909
2910 def Add(*args, **kwargs):
2911 """Add(Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
2912 return _gdi.ImageList_Add(*args, **kwargs)
2913
2914 def AddWithColourMask(*args, **kwargs):
2915 """AddWithColourMask(Bitmap bitmap, Colour maskColour) -> int"""
2916 return _gdi.ImageList_AddWithColourMask(*args, **kwargs)
2917
2918 def AddIcon(*args, **kwargs):
2919 """AddIcon(Icon icon) -> int"""
2920 return _gdi.ImageList_AddIcon(*args, **kwargs)
2921
2922 def Replace(*args, **kwargs):
2923 """Replace(int index, Bitmap bitmap) -> bool"""
2924 return _gdi.ImageList_Replace(*args, **kwargs)
2925
2926 def Draw(*args, **kwargs):
2927 """Draw(int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
2928 bool solidBackground=False) -> bool"""
2929 return _gdi.ImageList_Draw(*args, **kwargs)
2930
2931 def GetImageCount(*args, **kwargs):
2932 """GetImageCount() -> int"""
2933 return _gdi.ImageList_GetImageCount(*args, **kwargs)
2934
2935 def Remove(*args, **kwargs):
2936 """Remove(int index) -> bool"""
2937 return _gdi.ImageList_Remove(*args, **kwargs)
2938
2939 def RemoveAll(*args, **kwargs):
2940 """RemoveAll() -> bool"""
2941 return _gdi.ImageList_RemoveAll(*args, **kwargs)
2942
2943 def GetSize(*args, **kwargs):
2944 """GetSize(int index, int OUTPUT, int OUTPUT)"""
2945 return _gdi.ImageList_GetSize(*args, **kwargs)
2946
2947
2948class ImageListPtr(ImageList):
2949 def __init__(self, this):
2950 self.this = this
2951 if not hasattr(self,"thisown"): self.thisown = 0
2952 self.__class__ = ImageList
2953_gdi.ImageList_swigregister(ImageListPtr)
2954
2955#---------------------------------------------------------------------------
2956
2957class PenList(core.Object):
2958 """"""
2959 def __init__(self): raise RuntimeError, "No constructor defined"
2960 def __repr__(self):
2961 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2962 def AddPen(*args, **kwargs):
2963 """AddPen(Pen pen)"""
2964 return _gdi.PenList_AddPen(*args, **kwargs)
2965
2966 def FindOrCreatePen(*args, **kwargs):
2967 """FindOrCreatePen(Colour colour, int width, int style) -> Pen"""
2968 return _gdi.PenList_FindOrCreatePen(*args, **kwargs)
2969
2970 def RemovePen(*args, **kwargs):
2971 """RemovePen(Pen pen)"""
2972 return _gdi.PenList_RemovePen(*args, **kwargs)
2973
2974 def GetCount(*args, **kwargs):
2975 """GetCount() -> int"""
2976 return _gdi.PenList_GetCount(*args, **kwargs)
2977
2978
2979class PenListPtr(PenList):
2980 def __init__(self, this):
2981 self.this = this
2982 if not hasattr(self,"thisown"): self.thisown = 0
2983 self.__class__ = PenList
2984_gdi.PenList_swigregister(PenListPtr)
2985
2986class BrushList(core.Object):
2987 """"""
2988 def __init__(self): raise RuntimeError, "No constructor defined"
2989 def __repr__(self):
2990 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2991 def AddBrush(*args, **kwargs):
2992 """AddBrush(Brush brush)"""
2993 return _gdi.BrushList_AddBrush(*args, **kwargs)
2994
2995 def FindOrCreateBrush(*args, **kwargs):
2996 """FindOrCreateBrush(Colour colour, int style) -> Brush"""
2997 return _gdi.BrushList_FindOrCreateBrush(*args, **kwargs)
2998
2999 def RemoveBrush(*args, **kwargs):
3000 """RemoveBrush(Brush brush)"""
3001 return _gdi.BrushList_RemoveBrush(*args, **kwargs)
3002
3003 def GetCount(*args, **kwargs):
3004 """GetCount() -> int"""
3005 return _gdi.BrushList_GetCount(*args, **kwargs)
3006
3007
3008class BrushListPtr(BrushList):
3009 def __init__(self, this):
3010 self.this = this
3011 if not hasattr(self,"thisown"): self.thisown = 0
3012 self.__class__ = BrushList
3013_gdi.BrushList_swigregister(BrushListPtr)
3014
3015class ColourDatabase(core.Object):
3016 """"""
3017 def __repr__(self):
3018 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3019 def __init__(self, *args, **kwargs):
3020 """__init__() -> ColourDatabase"""
3021 newobj = _gdi.new_ColourDatabase(*args, **kwargs)
3022 self.this = newobj.this
3023 self.thisown = 1
3024 del newobj.thisown
3025 def __del__(self, destroy=_gdi.delete_ColourDatabase):
3026 """__del__()"""
3027 try:
3028 if self.thisown: destroy(self)
3029 except: pass
3030
3031 def Find(*args, **kwargs):
3032 """Find(wxString name) -> Colour"""
3033 return _gdi.ColourDatabase_Find(*args, **kwargs)
3034
3035 def FindName(*args, **kwargs):
3036 """FindName(Colour colour) -> wxString"""
3037 return _gdi.ColourDatabase_FindName(*args, **kwargs)
3038
3039 FindColour = Find
3040 def AddColour(*args, **kwargs):
3041 """AddColour(wxString name, Colour colour)"""
3042 return _gdi.ColourDatabase_AddColour(*args, **kwargs)
3043
3044 def Append(*args, **kwargs):
3045 """Append(wxString name, int red, int green, int blue)"""
3046 return _gdi.ColourDatabase_Append(*args, **kwargs)
3047
3048
3049class ColourDatabasePtr(ColourDatabase):
3050 def __init__(self, this):
3051 self.this = this
3052 if not hasattr(self,"thisown"): self.thisown = 0
3053 self.__class__ = ColourDatabase
3054_gdi.ColourDatabase_swigregister(ColourDatabasePtr)
3055
3056class FontList(core.Object):
3057 """"""
3058 def __init__(self): raise RuntimeError, "No constructor defined"
3059 def __repr__(self):
3060 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3061 def AddFont(*args, **kwargs):
3062 """AddFont(Font font)"""
3063 return _gdi.FontList_AddFont(*args, **kwargs)
3064
3065 def FindOrCreateFont(*args, **kwargs):
3066 """FindOrCreateFont(int point_size, int family, int style, int weight,
3067 bool underline=False, wxString facename=wxPyEmptyString,
3068 wxFontEncoding encoding=FONTENCODING_DEFAULT) -> Font"""
3069 return _gdi.FontList_FindOrCreateFont(*args, **kwargs)
3070
3071 def RemoveFont(*args, **kwargs):
3072 """RemoveFont(Font font)"""
3073 return _gdi.FontList_RemoveFont(*args, **kwargs)
3074
3075 def GetCount(*args, **kwargs):
3076 """GetCount() -> int"""
3077 return _gdi.FontList_GetCount(*args, **kwargs)
3078
3079
3080class FontListPtr(FontList):
3081 def __init__(self, this):
3082 self.this = this
3083 if not hasattr(self,"thisown"): self.thisown = 0
3084 self.__class__ = FontList
3085_gdi.FontList_swigregister(FontListPtr)
3086
3087#---------------------------------------------------------------------------
3088
3089#---------------------------------------------------------------------------
3090
3091class Effects(core.Object):
3092 """"""
3093 def __repr__(self):
3094 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3095 def __init__(self, *args, **kwargs):
3096 """__init__() -> Effects"""
3097 newobj = _gdi.new_Effects(*args, **kwargs)
3098 self.this = newobj.this
3099 self.thisown = 1
3100 del newobj.thisown
3101 def GetHighlightColour(*args, **kwargs):
3102 """GetHighlightColour() -> Colour"""
3103 return _gdi.Effects_GetHighlightColour(*args, **kwargs)
3104
3105 def GetLightShadow(*args, **kwargs):
3106 """GetLightShadow() -> Colour"""
3107 return _gdi.Effects_GetLightShadow(*args, **kwargs)
3108
3109 def GetFaceColour(*args, **kwargs):
3110 """GetFaceColour() -> Colour"""
3111 return _gdi.Effects_GetFaceColour(*args, **kwargs)
3112
3113 def GetMediumShadow(*args, **kwargs):
3114 """GetMediumShadow() -> Colour"""
3115 return _gdi.Effects_GetMediumShadow(*args, **kwargs)
3116
3117 def GetDarkShadow(*args, **kwargs):
3118 """GetDarkShadow() -> Colour"""
3119 return _gdi.Effects_GetDarkShadow(*args, **kwargs)
3120
3121 def SetHighlightColour(*args, **kwargs):
3122 """SetHighlightColour(Colour c)"""
3123 return _gdi.Effects_SetHighlightColour(*args, **kwargs)
3124
3125 def SetLightShadow(*args, **kwargs):
3126 """SetLightShadow(Colour c)"""
3127 return _gdi.Effects_SetLightShadow(*args, **kwargs)
3128
3129 def SetFaceColour(*args, **kwargs):
3130 """SetFaceColour(Colour c)"""
3131 return _gdi.Effects_SetFaceColour(*args, **kwargs)
3132
3133 def SetMediumShadow(*args, **kwargs):
3134 """SetMediumShadow(Colour c)"""
3135 return _gdi.Effects_SetMediumShadow(*args, **kwargs)
3136
3137 def SetDarkShadow(*args, **kwargs):
3138 """SetDarkShadow(Colour c)"""
3139 return _gdi.Effects_SetDarkShadow(*args, **kwargs)
3140
3141 def Set(*args, **kwargs):
3142 """Set(Colour highlightColour, Colour lightShadow, Colour faceColour,
3143 Colour mediumShadow, Colour darkShadow)"""
3144 return _gdi.Effects_Set(*args, **kwargs)
3145
3146 def DrawSunkenEdge(*args, **kwargs):
3147 """DrawSunkenEdge(DC dc, Rect rect, int borderSize=1)"""
3148 return _gdi.Effects_DrawSunkenEdge(*args, **kwargs)
3149
3150 def TileBitmap(*args, **kwargs):
3151 """TileBitmap(Rect rect, DC dc, Bitmap bitmap) -> bool"""
3152 return _gdi.Effects_TileBitmap(*args, **kwargs)
3153
3154
3155class EffectsPtr(Effects):
3156 def __init__(self, this):
3157 self.this = this
3158 if not hasattr(self,"thisown"): self.thisown = 0
3159 self.__class__ = Effects
3160_gdi.Effects_swigregister(EffectsPtr)
3161cvar = _gdi.cvar
3162NORMAL_FONT = cvar.NORMAL_FONT
3163SMALL_FONT = cvar.SMALL_FONT
3164ITALIC_FONT = cvar.ITALIC_FONT
3165SWISS_FONT = cvar.SWISS_FONT
3166RED_PEN = cvar.RED_PEN
3167CYAN_PEN = cvar.CYAN_PEN
3168GREEN_PEN = cvar.GREEN_PEN
3169BLACK_PEN = cvar.BLACK_PEN
3170WHITE_PEN = cvar.WHITE_PEN
3171TRANSPARENT_PEN = cvar.TRANSPARENT_PEN
3172BLACK_DASHED_PEN = cvar.BLACK_DASHED_PEN
3173GREY_PEN = cvar.GREY_PEN
3174MEDIUM_GREY_PEN = cvar.MEDIUM_GREY_PEN
3175LIGHT_GREY_PEN = cvar.LIGHT_GREY_PEN
3176BLUE_BRUSH = cvar.BLUE_BRUSH
3177GREEN_BRUSH = cvar.GREEN_BRUSH
3178WHITE_BRUSH = cvar.WHITE_BRUSH
3179BLACK_BRUSH = cvar.BLACK_BRUSH
3180TRANSPARENT_BRUSH = cvar.TRANSPARENT_BRUSH
3181CYAN_BRUSH = cvar.CYAN_BRUSH
3182RED_BRUSH = cvar.RED_BRUSH
3183GREY_BRUSH = cvar.GREY_BRUSH
3184MEDIUM_GREY_BRUSH = cvar.MEDIUM_GREY_BRUSH
3185LIGHT_GREY_BRUSH = cvar.LIGHT_GREY_BRUSH
3186BLACK = cvar.BLACK
3187WHITE = cvar.WHITE
3188RED = cvar.RED
3189BLUE = cvar.BLUE
3190GREEN = cvar.GREEN
3191CYAN = cvar.CYAN
3192LIGHT_GREY = cvar.LIGHT_GREY
3193STANDARD_CURSOR = cvar.STANDARD_CURSOR
3194HOURGLASS_CURSOR = cvar.HOURGLASS_CURSOR
3195CROSS_CURSOR = cvar.CROSS_CURSOR
3196NullBitmap = cvar.NullBitmap
3197NullIcon = cvar.NullIcon
3198NullCursor = cvar.NullCursor
3199NullPen = cvar.NullPen
3200NullBrush = cvar.NullBrush
3201NullPalette = cvar.NullPalette
3202NullFont = cvar.NullFont
3203NullColour = cvar.NullColour
3204TheFontList = cvar.TheFontList
3205ThePenList = cvar.ThePenList
3206TheBrushList = cvar.TheBrushList
3207TheColourDatabase = cvar.TheColourDatabase
3208
3209