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