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