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