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