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