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