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