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