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