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