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