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