]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi.py
added a test to check how exception handling works with Win32 SEH; corrected copyright
[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 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
7 if (name == "this"):
8 if isinstance(value, class_type):
9 self.__dict__[name] = value.this
10 if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
11 del value.thisown
12 return
13 method = class_type.__swig_setmethods__.get(name,None)
14 if method: return method(self,value)
15 if (not static) or hasattr(self,name) or (name == "thisown"):
16 self.__dict__[name] = value
17 else:
18 raise AttributeError("You cannot add attributes to %s" % self)
19
20 def _swig_setattr(self,class_type,name,value):
21 return _swig_setattr_nondynamic(self,class_type,name,value,0)
22
23 def _swig_getattr(self,class_type,name):
24 method = class_type.__swig_getmethods__.get(name,None)
25 if method: return method(self)
26 raise AttributeError,name
27
28 import types
29 try:
30 _object = types.ObjectType
31 _newclass = 1
32 except AttributeError:
33 class _object : pass
34 _newclass = 0
35 del types
36
37
38 def _swig_setattr_nondynamic_method(set):
39 def set_attr(self,name,value):
40 if hasattr(self,name) or (name in ("this", "thisown")):
41 set(self,name,value)
42 else:
43 raise AttributeError("You cannot add attributes to %s" % self)
44 return set_attr
45
46
47 import _core
48 wx = _core
49 #---------------------------------------------------------------------------
50
51 class GDIObject(_core.Object):
52 """Proxy of C++ GDIObject class"""
53 def __repr__(self):
54 return "<%s.%s; proxy of C++ wxGDIObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
55 def __init__(self, *args, **kwargs):
56 """__init__(self) -> GDIObject"""
57 newobj = _gdi_.new_GDIObject(*args, **kwargs)
58 self.this = newobj.this
59 self.thisown = 1
60 del newobj.thisown
61 def __del__(self, destroy=_gdi_.delete_GDIObject):
62 """__del__(self)"""
63 try:
64 if self.thisown: destroy(self)
65 except: pass
66
67 def GetVisible(*args, **kwargs):
68 """GetVisible(self) -> bool"""
69 return _gdi_.GDIObject_GetVisible(*args, **kwargs)
70
71 def SetVisible(*args, **kwargs):
72 """SetVisible(self, bool visible)"""
73 return _gdi_.GDIObject_SetVisible(*args, **kwargs)
74
75 def IsNull(*args, **kwargs):
76 """IsNull(self) -> bool"""
77 return _gdi_.GDIObject_IsNull(*args, **kwargs)
78
79
80 class GDIObjectPtr(GDIObject):
81 def __init__(self, this):
82 self.this = this
83 if not hasattr(self,"thisown"): self.thisown = 0
84 self.__class__ = GDIObject
85 _gdi_.GDIObject_swigregister(GDIObjectPtr)
86
87 #---------------------------------------------------------------------------
88
89 class Colour(_core.Object):
90 """
91 A colour is an object representing a combination of Red, Green, and
92 Blue (RGB) intensity values, and is used to determine drawing colours,
93 window colours, etc. Valid RGB values are in the range 0 to 255.
94
95 In wxPython there are typemaps that will automatically convert from a
96 colour name, or from a '#RRGGBB' colour hex value string to a
97 wx.Colour object when calling C++ methods that expect a wxColour.
98 This means that the following are all equivallent::
99
100 win.SetBackgroundColour(wxColour(0,0,255))
101 win.SetBackgroundColour('BLUE')
102 win.SetBackgroundColour('#0000FF')
103
104 Additional colour names and their coresponding values can be added
105 using `wx.ColourDatabase`. Various system colours (as set in the
106 user's system preferences) can be retrieved with
107 `wx.SystemSettings.GetColour`.
108
109 """
110 def __repr__(self):
111 return "<%s.%s; proxy of C++ wxColour instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
112 def __init__(self, *args, **kwargs):
113 """
114 __init__(self, byte red=0, byte green=0, byte blue=0) -> Colour
115
116 Constructs a colour from red, green and blue values.
117
118 :see: Alternate constructors `wx.NamedColour` and `wx.ColourRGB`.
119
120 """
121 newobj = _gdi_.new_Colour(*args, **kwargs)
122 self.this = newobj.this
123 self.thisown = 1
124 del newobj.thisown
125 def __del__(self, destroy=_gdi_.delete_Colour):
126 """__del__(self)"""
127 try:
128 if self.thisown: destroy(self)
129 except: pass
130
131 def Red(*args, **kwargs):
132 """
133 Red(self) -> byte
134
135 Returns the red intensity.
136 """
137 return _gdi_.Colour_Red(*args, **kwargs)
138
139 def Green(*args, **kwargs):
140 """
141 Green(self) -> byte
142
143 Returns the green intensity.
144 """
145 return _gdi_.Colour_Green(*args, **kwargs)
146
147 def Blue(*args, **kwargs):
148 """
149 Blue(self) -> byte
150
151 Returns the blue intensity.
152 """
153 return _gdi_.Colour_Blue(*args, **kwargs)
154
155 def Ok(*args, **kwargs):
156 """
157 Ok(self) -> bool
158
159 Returns True if the colour object is valid (the colour has been
160 initialised with RGB values).
161 """
162 return _gdi_.Colour_Ok(*args, **kwargs)
163
164 def Set(*args, **kwargs):
165 """
166 Set(self, byte red, byte green, byte blue)
167
168 Sets the RGB intensity values.
169 """
170 return _gdi_.Colour_Set(*args, **kwargs)
171
172 def SetRGB(*args, **kwargs):
173 """
174 SetRGB(self, unsigned long colRGB)
175
176 Sets the RGB intensity values from a packed RGB value.
177 """
178 return _gdi_.Colour_SetRGB(*args, **kwargs)
179
180 def SetFromName(*args, **kwargs):
181 """
182 SetFromName(self, String colourName)
183
184 Sets the RGB intensity values using a colour name listed in
185 ``wx.TheColourDatabase``.
186 """
187 return _gdi_.Colour_SetFromName(*args, **kwargs)
188
189 def GetPixel(*args, **kwargs):
190 """
191 GetPixel(self) -> long
192
193 Returns a pixel value which is platform-dependent. On Windows, a
194 COLORREF is returned. On X, an allocated pixel value is returned. -1
195 is returned if the pixel is invalid (on X, unallocated).
196 """
197 return _gdi_.Colour_GetPixel(*args, **kwargs)
198
199 def __eq__(*args, **kwargs):
200 """
201 __eq__(self, Colour colour) -> bool
202
203 Compare colours for equality
204 """
205 return _gdi_.Colour___eq__(*args, **kwargs)
206
207 def __ne__(*args, **kwargs):
208 """
209 __ne__(self, Colour colour) -> bool
210
211 Compare colours for inequality
212 """
213 return _gdi_.Colour___ne__(*args, **kwargs)
214
215 def Get(*args, **kwargs):
216 """
217 Get() -> (r, g, b)
218
219 Returns the RGB intensity values as a tuple.
220 """
221 return _gdi_.Colour_Get(*args, **kwargs)
222
223 def GetRGB(*args, **kwargs):
224 """
225 GetRGB(self) -> unsigned long
226
227 Return the colour as a packed RGB value
228 """
229 return _gdi_.Colour_GetRGB(*args, **kwargs)
230
231 asTuple = wx._deprecated(Get, "asTuple is deprecated, use `Get` instead")
232 def __str__(self): return str(self.Get())
233 def __repr__(self): return 'wx.Colour' + str(self.Get())
234 def __nonzero__(self): return self.Ok()
235 __safe_for_unpickling__ = True
236 def __reduce__(self): return (Colour, self.Get())
237
238
239 class ColourPtr(Colour):
240 def __init__(self, this):
241 self.this = this
242 if not hasattr(self,"thisown"): self.thisown = 0
243 self.__class__ = Colour
244 _gdi_.Colour_swigregister(ColourPtr)
245
246 def NamedColour(*args, **kwargs):
247 """
248 NamedColour(String colorName) -> Colour
249
250 Constructs a colour object using a colour name listed in
251 ``wx.TheColourDatabase``.
252 """
253 val = _gdi_.new_NamedColour(*args, **kwargs)
254 val.thisown = 1
255 return val
256
257 def ColourRGB(*args, **kwargs):
258 """
259 ColourRGB(unsigned long colRGB) -> Colour
260
261 Constructs a colour from a packed RGB value.
262 """
263 val = _gdi_.new_ColourRGB(*args, **kwargs)
264 val.thisown = 1
265 return val
266
267 Color = Colour
268 NamedColor = NamedColour
269 ColorRGB = ColourRGB
270
271 class Palette(GDIObject):
272 """Proxy of C++ Palette class"""
273 def __repr__(self):
274 return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
275 def __init__(self, *args, **kwargs):
276 """__init__(self, int n, unsigned char red, unsigned char green, unsigned char blue) -> Palette"""
277 newobj = _gdi_.new_Palette(*args, **kwargs)
278 self.this = newobj.this
279 self.thisown = 1
280 del newobj.thisown
281 def __del__(self, destroy=_gdi_.delete_Palette):
282 """__del__(self)"""
283 try:
284 if self.thisown: destroy(self)
285 except: pass
286
287 def GetPixel(*args, **kwargs):
288 """GetPixel(self, byte red, byte green, byte blue) -> int"""
289 return _gdi_.Palette_GetPixel(*args, **kwargs)
290
291 def GetRGB(*args, **kwargs):
292 """GetRGB(self, int pixel) -> (R,G,B)"""
293 return _gdi_.Palette_GetRGB(*args, **kwargs)
294
295 def GetColoursCount(*args, **kwargs):
296 """GetColoursCount(self) -> int"""
297 return _gdi_.Palette_GetColoursCount(*args, **kwargs)
298
299 def Ok(*args, **kwargs):
300 """Ok(self) -> bool"""
301 return _gdi_.Palette_Ok(*args, **kwargs)
302
303 def __nonzero__(self): return self.Ok()
304
305 class PalettePtr(Palette):
306 def __init__(self, this):
307 self.this = this
308 if not hasattr(self,"thisown"): self.thisown = 0
309 self.__class__ = Palette
310 _gdi_.Palette_swigregister(PalettePtr)
311
312 #---------------------------------------------------------------------------
313
314 class Pen(GDIObject):
315 """Proxy of C++ Pen class"""
316 def __repr__(self):
317 return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
318 def __init__(self, *args, **kwargs):
319 """__init__(self, Colour colour, int width=1, int style=SOLID) -> Pen"""
320 newobj = _gdi_.new_Pen(*args, **kwargs)
321 self.this = newobj.this
322 self.thisown = 1
323 del newobj.thisown
324 def __del__(self, destroy=_gdi_.delete_Pen):
325 """__del__(self)"""
326 try:
327 if self.thisown: destroy(self)
328 except: pass
329
330 def GetCap(*args, **kwargs):
331 """GetCap(self) -> int"""
332 return _gdi_.Pen_GetCap(*args, **kwargs)
333
334 def GetColour(*args, **kwargs):
335 """GetColour(self) -> Colour"""
336 return _gdi_.Pen_GetColour(*args, **kwargs)
337
338 def GetJoin(*args, **kwargs):
339 """GetJoin(self) -> int"""
340 return _gdi_.Pen_GetJoin(*args, **kwargs)
341
342 def GetStyle(*args, **kwargs):
343 """GetStyle(self) -> int"""
344 return _gdi_.Pen_GetStyle(*args, **kwargs)
345
346 def GetWidth(*args, **kwargs):
347 """GetWidth(self) -> int"""
348 return _gdi_.Pen_GetWidth(*args, **kwargs)
349
350 def Ok(*args, **kwargs):
351 """Ok(self) -> bool"""
352 return _gdi_.Pen_Ok(*args, **kwargs)
353
354 def SetCap(*args, **kwargs):
355 """SetCap(self, int cap_style)"""
356 return _gdi_.Pen_SetCap(*args, **kwargs)
357
358 def SetColour(*args, **kwargs):
359 """SetColour(self, Colour colour)"""
360 return _gdi_.Pen_SetColour(*args, **kwargs)
361
362 def SetJoin(*args, **kwargs):
363 """SetJoin(self, int join_style)"""
364 return _gdi_.Pen_SetJoin(*args, **kwargs)
365
366 def SetStyle(*args, **kwargs):
367 """SetStyle(self, int style)"""
368 return _gdi_.Pen_SetStyle(*args, **kwargs)
369
370 def SetWidth(*args, **kwargs):
371 """SetWidth(self, int width)"""
372 return _gdi_.Pen_SetWidth(*args, **kwargs)
373
374 def SetDashes(*args, **kwargs):
375 """SetDashes(self, int dashes)"""
376 return _gdi_.Pen_SetDashes(*args, **kwargs)
377
378 def GetDashes(*args, **kwargs):
379 """GetDashes(self) -> PyObject"""
380 return _gdi_.Pen_GetDashes(*args, **kwargs)
381
382 def _SetDashes(*args, **kwargs):
383 """_SetDashes(self, PyObject _self, PyObject pyDashes)"""
384 return _gdi_.Pen__SetDashes(*args, **kwargs)
385
386 def SetDashes(self, dashes):
387 """
388 Associate a list of dash lengths with the Pen.
389 """
390 self._SetDashes(self, dashes)
391
392 def GetDashCount(*args, **kwargs):
393 """GetDashCount(self) -> int"""
394 return _gdi_.Pen_GetDashCount(*args, **kwargs)
395
396 def GetStipple(*args, **kwargs):
397 """GetStipple(self) -> Bitmap"""
398 return _gdi_.Pen_GetStipple(*args, **kwargs)
399
400 def SetStipple(*args, **kwargs):
401 """SetStipple(self, Bitmap stipple)"""
402 return _gdi_.Pen_SetStipple(*args, **kwargs)
403
404 def __eq__(*args, **kwargs):
405 """__eq__(self, Pen other) -> bool"""
406 return _gdi_.Pen___eq__(*args, **kwargs)
407
408 def __ne__(*args, **kwargs):
409 """__ne__(self, Pen other) -> bool"""
410 return _gdi_.Pen___ne__(*args, **kwargs)
411
412 def __nonzero__(self): return self.Ok()
413
414 class PenPtr(Pen):
415 def __init__(self, this):
416 self.this = this
417 if not hasattr(self,"thisown"): self.thisown = 0
418 self.__class__ = Pen
419 _gdi_.Pen_swigregister(PenPtr)
420
421 #---------------------------------------------------------------------------
422
423 class Brush(GDIObject):
424 """
425 A brush is a drawing tool for filling in areas. It is used for
426 painting the background of rectangles, ellipses, etc. when drawing on
427 a `wx.DC`. It has a colour and a style.
428 """
429 def __repr__(self):
430 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
431 def __init__(self, *args, **kwargs):
432 """
433 __init__(self, Colour colour, int style=SOLID) -> Brush
434
435 Constructs a brush from a `wx.Colour` object and a style.
436 """
437 newobj = _gdi_.new_Brush(*args, **kwargs)
438 self.this = newobj.this
439 self.thisown = 1
440 del newobj.thisown
441 def __del__(self, destroy=_gdi_.delete_Brush):
442 """__del__(self)"""
443 try:
444 if self.thisown: destroy(self)
445 except: pass
446
447 def SetColour(*args, **kwargs):
448 """
449 SetColour(self, Colour col)
450
451 Set the brush's `wx.Colour`.
452 """
453 return _gdi_.Brush_SetColour(*args, **kwargs)
454
455 def SetStyle(*args, **kwargs):
456 """
457 SetStyle(self, int style)
458
459 Sets the style of the brush. See `__init__` for a listing of styles.
460 """
461 return _gdi_.Brush_SetStyle(*args, **kwargs)
462
463 def SetStipple(*args, **kwargs):
464 """
465 SetStipple(self, Bitmap stipple)
466
467 Sets the stipple `wx.Bitmap`.
468 """
469 return _gdi_.Brush_SetStipple(*args, **kwargs)
470
471 def GetColour(*args, **kwargs):
472 """
473 GetColour(self) -> Colour
474
475 Returns the `wx.Colour` of the brush.
476 """
477 return _gdi_.Brush_GetColour(*args, **kwargs)
478
479 def GetStyle(*args, **kwargs):
480 """
481 GetStyle(self) -> int
482
483 Returns the style of the brush. See `__init__` for a listing of
484 styles.
485 """
486 return _gdi_.Brush_GetStyle(*args, **kwargs)
487
488 def GetStipple(*args, **kwargs):
489 """
490 GetStipple(self) -> Bitmap
491
492 Returns the stiple `wx.Bitmap` of the brush. If the brush does not
493 have a wx.STIPPLE style, then the return value may be non-None but an
494 uninitialised bitmap (`wx.Bitmap.Ok` returns False).
495 """
496 return _gdi_.Brush_GetStipple(*args, **kwargs)
497
498 def IsHatch(*args, **kwargs):
499 """
500 IsHatch(self) -> bool
501
502 Is the current style a hatch type?
503 """
504 return _gdi_.Brush_IsHatch(*args, **kwargs)
505
506 def Ok(*args, **kwargs):
507 """
508 Ok(self) -> bool
509
510 Returns True if the brush is initialised and valid.
511 """
512 return _gdi_.Brush_Ok(*args, **kwargs)
513
514 def __nonzero__(self): return self.Ok()
515
516 class BrushPtr(Brush):
517 def __init__(self, this):
518 self.this = this
519 if not hasattr(self,"thisown"): self.thisown = 0
520 self.__class__ = Brush
521 _gdi_.Brush_swigregister(BrushPtr)
522
523 class Bitmap(GDIObject):
524 """
525 The wx.Bitmap class encapsulates the concept of a platform-dependent
526 bitmap. It can be either monochrome or colour, and either loaded from
527 a file or created dynamically. A bitmap can be selected into a memory
528 device context (instance of `wx.MemoryDC`). This enables the bitmap to
529 be copied to a window or memory device context using `wx.DC.Blit`, or
530 to be used as a drawing surface.
531 """
532 def __repr__(self):
533 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
534 def __init__(self, *args, **kwargs):
535 """
536 __init__(self, String name, int type=BITMAP_TYPE_ANY) -> Bitmap
537
538 Loads a bitmap from a file.
539 """
540 newobj = _gdi_.new_Bitmap(*args, **kwargs)
541 self.this = newobj.this
542 self.thisown = 1
543 del newobj.thisown
544 def __del__(self, destroy=_gdi_.delete_Bitmap):
545 """__del__(self)"""
546 try:
547 if self.thisown: destroy(self)
548 except: pass
549
550 def GetHandle(*args, **kwargs):
551 """GetHandle(self) -> long"""
552 return _gdi_.Bitmap_GetHandle(*args, **kwargs)
553
554 def SetHandle(*args, **kwargs):
555 """SetHandle(self, long handle)"""
556 return _gdi_.Bitmap_SetHandle(*args, **kwargs)
557
558 def Ok(*args, **kwargs):
559 """Ok(self) -> bool"""
560 return _gdi_.Bitmap_Ok(*args, **kwargs)
561
562 def GetWidth(*args, **kwargs):
563 """
564 GetWidth(self) -> int
565
566 Gets the width of the bitmap in pixels.
567 """
568 return _gdi_.Bitmap_GetWidth(*args, **kwargs)
569
570 def GetHeight(*args, **kwargs):
571 """
572 GetHeight(self) -> int
573
574 Gets the height of the bitmap in pixels.
575 """
576 return _gdi_.Bitmap_GetHeight(*args, **kwargs)
577
578 def GetDepth(*args, **kwargs):
579 """
580 GetDepth(self) -> int
581
582 Gets the colour depth of the bitmap. A value of 1 indicates a
583 monochrome bitmap.
584 """
585 return _gdi_.Bitmap_GetDepth(*args, **kwargs)
586
587 def GetSize(*args, **kwargs):
588 """
589 GetSize(self) -> Size
590
591 Get the size of the bitmap.
592 """
593 return _gdi_.Bitmap_GetSize(*args, **kwargs)
594
595 def ConvertToImage(*args, **kwargs):
596 """
597 ConvertToImage(self) -> Image
598
599 Creates a platform-independent image from a platform-dependent
600 bitmap. This preserves mask information so that bitmaps and images can
601 be converted back and forth without loss in that respect.
602 """
603 return _gdi_.Bitmap_ConvertToImage(*args, **kwargs)
604
605 def GetMask(*args, **kwargs):
606 """
607 GetMask(self) -> Mask
608
609 Gets the associated mask (if any) which may have been loaded from a
610 file or explpicitly set for the bitmap.
611
612 :see: `SetMask`, `wx.Mask`
613
614 """
615 return _gdi_.Bitmap_GetMask(*args, **kwargs)
616
617 def SetMask(*args, **kwargs):
618 """
619 SetMask(self, Mask mask)
620
621 Sets the mask for this bitmap.
622
623 :see: `GetMask`, `wx.Mask`
624
625 """
626 return _gdi_.Bitmap_SetMask(*args, **kwargs)
627
628 def SetMaskColour(*args, **kwargs):
629 """
630 SetMaskColour(self, Colour colour)
631
632 Create a Mask based on a specified colour in the Bitmap.
633 """
634 return _gdi_.Bitmap_SetMaskColour(*args, **kwargs)
635
636 def GetSubBitmap(*args, **kwargs):
637 """
638 GetSubBitmap(self, Rect rect) -> Bitmap
639
640 Returns a sub-bitmap of the current one as long as the rect belongs
641 entirely to the bitmap. This function preserves bit depth and mask
642 information.
643 """
644 return _gdi_.Bitmap_GetSubBitmap(*args, **kwargs)
645
646 def SaveFile(*args, **kwargs):
647 """
648 SaveFile(self, String name, int type, Palette palette=None) -> bool
649
650 Saves a bitmap in the named file. See `__init__` for a description of
651 the ``type`` parameter.
652 """
653 return _gdi_.Bitmap_SaveFile(*args, **kwargs)
654
655 def LoadFile(*args, **kwargs):
656 """
657 LoadFile(self, String name, int type) -> bool
658
659 Loads a bitmap from a file. See `__init__` for a description of the
660 ``type`` parameter.
661 """
662 return _gdi_.Bitmap_LoadFile(*args, **kwargs)
663
664 def GetPalette(*args, **kwargs):
665 """GetPalette(self) -> Palette"""
666 return _gdi_.Bitmap_GetPalette(*args, **kwargs)
667
668 def SetPalette(*args, **kwargs):
669 """SetPalette(self, Palette palette)"""
670 return _gdi_.Bitmap_SetPalette(*args, **kwargs)
671
672 def CopyFromIcon(*args, **kwargs):
673 """CopyFromIcon(self, Icon icon) -> bool"""
674 return _gdi_.Bitmap_CopyFromIcon(*args, **kwargs)
675
676 def SetHeight(*args, **kwargs):
677 """
678 SetHeight(self, int height)
679
680 Set the height property (does not affect the existing bitmap data).
681 """
682 return _gdi_.Bitmap_SetHeight(*args, **kwargs)
683
684 def SetWidth(*args, **kwargs):
685 """
686 SetWidth(self, int width)
687
688 Set the width property (does not affect the existing bitmap data).
689 """
690 return _gdi_.Bitmap_SetWidth(*args, **kwargs)
691
692 def SetDepth(*args, **kwargs):
693 """
694 SetDepth(self, int depth)
695
696 Set the depth property (does not affect the existing bitmap data).
697 """
698 return _gdi_.Bitmap_SetDepth(*args, **kwargs)
699
700 def SetSize(*args, **kwargs):
701 """
702 SetSize(self, Size size)
703
704 Set the bitmap size (does not affect the existing bitmap data).
705 """
706 return _gdi_.Bitmap_SetSize(*args, **kwargs)
707
708 def CopyFromCursor(*args, **kwargs):
709 """CopyFromCursor(self, Cursor cursor) -> bool"""
710 return _gdi_.Bitmap_CopyFromCursor(*args, **kwargs)
711
712 def GetQuality(*args, **kwargs):
713 """GetQuality(self) -> int"""
714 return _gdi_.Bitmap_GetQuality(*args, **kwargs)
715
716 def SetQuality(*args, **kwargs):
717 """SetQuality(self, int q)"""
718 return _gdi_.Bitmap_SetQuality(*args, **kwargs)
719
720 def __nonzero__(self): return self.Ok()
721 def __eq__(*args, **kwargs):
722 """__eq__(self, Bitmap other) -> bool"""
723 return _gdi_.Bitmap___eq__(*args, **kwargs)
724
725 def __ne__(*args, **kwargs):
726 """__ne__(self, Bitmap other) -> bool"""
727 return _gdi_.Bitmap___ne__(*args, **kwargs)
728
729
730 class BitmapPtr(Bitmap):
731 def __init__(self, this):
732 self.this = this
733 if not hasattr(self,"thisown"): self.thisown = 0
734 self.__class__ = Bitmap
735 _gdi_.Bitmap_swigregister(BitmapPtr)
736
737 def EmptyBitmap(*args, **kwargs):
738 """
739 EmptyBitmap(int width, int height, int depth=-1) -> Bitmap
740
741 Creates a new bitmap of the given size. A depth of -1 indicates the
742 depth of the current screen or visual. Some platforms only support 1
743 for monochrome and -1 for the current colour setting.
744 """
745 val = _gdi_.new_EmptyBitmap(*args, **kwargs)
746 val.thisown = 1
747 return val
748
749 def BitmapFromIcon(*args, **kwargs):
750 """
751 BitmapFromIcon(Icon icon) -> Bitmap
752
753 Create a new bitmap from a `wx.Icon` object.
754 """
755 val = _gdi_.new_BitmapFromIcon(*args, **kwargs)
756 val.thisown = 1
757 return val
758
759 def BitmapFromImage(*args, **kwargs):
760 """
761 BitmapFromImage(Image image, int depth=-1) -> Bitmap
762
763 Creates bitmap object from a `wx.Image`. This has to be done to
764 actually display a `wx.Image` as you cannot draw an image directly on
765 a window. The resulting bitmap will use the provided colour depth (or
766 that of the current screen colour depth if depth is -1) which entails
767 that a colour reduction may have to take place.
768 """
769 val = _gdi_.new_BitmapFromImage(*args, **kwargs)
770 val.thisown = 1
771 return val
772
773 def BitmapFromXPMData(*args, **kwargs):
774 """
775 BitmapFromXPMData(PyObject listOfStrings) -> Bitmap
776
777 Construct a Bitmap from a list of strings formatted as XPM data.
778 """
779 val = _gdi_.new_BitmapFromXPMData(*args, **kwargs)
780 val.thisown = 1
781 return val
782
783 def BitmapFromBits(*args, **kwargs):
784 """
785 BitmapFromBits(PyObject bits, int width, int height, int depth=1) -> Bitmap
786
787 Creates a bitmap from an array of bits. You should only use this
788 function for monochrome bitmaps (depth 1) in portable programs: in
789 this case the bits parameter should contain an XBM image. For other
790 bit depths, the behaviour is platform dependent.
791 """
792 val = _gdi_.new_BitmapFromBits(*args, **kwargs)
793 val.thisown = 1
794 return val
795
796 class Mask(_core.Object):
797 """
798 This class encapsulates a monochrome mask bitmap, where the masked
799 area is black and the unmasked area is white. When associated with a
800 bitmap and drawn in a device context, the unmasked area of the bitmap
801 will be drawn, and the masked area will not be drawn.
802
803 A mask may be associated with a `wx.Bitmap`. It is used in
804 `wx.DC.DrawBitmap` or `wx.DC.Blit` when the source device context is a
805 `wx.MemoryDC` with a `wx.Bitmap` selected into it that contains a
806 mask.
807 """
808 def __repr__(self):
809 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
810 def __init__(self, *args, **kwargs):
811 """
812 __init__(self, Bitmap bitmap, Colour colour=NullColour) -> Mask
813
814 Constructs a mask from a `wx.Bitmap` and a `wx.Colour` in that bitmap
815 that indicates the transparent portions of the mask. In other words,
816 the pixels in ``bitmap`` that match ``colour`` will be the transparent
817 portions of the mask. If no ``colour`` or an invalid ``colour`` is
818 passed then BLACK is used.
819
820 :see: `wx.Bitmap`, `wx.Colour`
821 """
822 newobj = _gdi_.new_Mask(*args, **kwargs)
823 self.this = newobj.this
824 self.thisown = 1
825 del newobj.thisown
826
827 class MaskPtr(Mask):
828 def __init__(self, this):
829 self.this = this
830 if not hasattr(self,"thisown"): self.thisown = 0
831 self.__class__ = Mask
832 _gdi_.Mask_swigregister(MaskPtr)
833
834 MaskColour = wx._deprecated(Mask, "wx.MaskColour is deprecated, use `wx.Mask` instead.")
835 class Icon(GDIObject):
836 """Proxy of C++ Icon class"""
837 def __repr__(self):
838 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
839 def __init__(self, *args, **kwargs):
840 """__init__(self, String name, int type, int desiredWidth=-1, int desiredHeight=-1) -> Icon"""
841 newobj = _gdi_.new_Icon(*args, **kwargs)
842 self.this = newobj.this
843 self.thisown = 1
844 del newobj.thisown
845 def __del__(self, destroy=_gdi_.delete_Icon):
846 """__del__(self)"""
847 try:
848 if self.thisown: destroy(self)
849 except: pass
850
851 def LoadFile(*args, **kwargs):
852 """LoadFile(self, String name, int type) -> bool"""
853 return _gdi_.Icon_LoadFile(*args, **kwargs)
854
855 def GetHandle(*args, **kwargs):
856 """GetHandle(self) -> long"""
857 return _gdi_.Icon_GetHandle(*args, **kwargs)
858
859 def SetHandle(*args, **kwargs):
860 """SetHandle(self, long handle)"""
861 return _gdi_.Icon_SetHandle(*args, **kwargs)
862
863 def Ok(*args, **kwargs):
864 """Ok(self) -> bool"""
865 return _gdi_.Icon_Ok(*args, **kwargs)
866
867 def GetWidth(*args, **kwargs):
868 """GetWidth(self) -> int"""
869 return _gdi_.Icon_GetWidth(*args, **kwargs)
870
871 def GetHeight(*args, **kwargs):
872 """GetHeight(self) -> int"""
873 return _gdi_.Icon_GetHeight(*args, **kwargs)
874
875 def GetDepth(*args, **kwargs):
876 """GetDepth(self) -> int"""
877 return _gdi_.Icon_GetDepth(*args, **kwargs)
878
879 def SetWidth(*args, **kwargs):
880 """SetWidth(self, int w)"""
881 return _gdi_.Icon_SetWidth(*args, **kwargs)
882
883 def SetHeight(*args, **kwargs):
884 """SetHeight(self, int h)"""
885 return _gdi_.Icon_SetHeight(*args, **kwargs)
886
887 def SetDepth(*args, **kwargs):
888 """SetDepth(self, int d)"""
889 return _gdi_.Icon_SetDepth(*args, **kwargs)
890
891 def SetSize(*args, **kwargs):
892 """SetSize(self, Size size)"""
893 return _gdi_.Icon_SetSize(*args, **kwargs)
894
895 def CopyFromBitmap(*args, **kwargs):
896 """CopyFromBitmap(self, Bitmap bmp)"""
897 return _gdi_.Icon_CopyFromBitmap(*args, **kwargs)
898
899 def __nonzero__(self): return self.Ok()
900
901 class IconPtr(Icon):
902 def __init__(self, this):
903 self.this = this
904 if not hasattr(self,"thisown"): self.thisown = 0
905 self.__class__ = Icon
906 _gdi_.Icon_swigregister(IconPtr)
907
908 def EmptyIcon(*args, **kwargs):
909 """EmptyIcon() -> Icon"""
910 val = _gdi_.new_EmptyIcon(*args, **kwargs)
911 val.thisown = 1
912 return val
913
914 def IconFromLocation(*args, **kwargs):
915 """IconFromLocation(IconLocation loc) -> Icon"""
916 val = _gdi_.new_IconFromLocation(*args, **kwargs)
917 val.thisown = 1
918 return val
919
920 def IconFromBitmap(*args, **kwargs):
921 """IconFromBitmap(Bitmap bmp) -> Icon"""
922 val = _gdi_.new_IconFromBitmap(*args, **kwargs)
923 val.thisown = 1
924 return val
925
926 def IconFromXPMData(*args, **kwargs):
927 """IconFromXPMData(PyObject listOfStrings) -> Icon"""
928 val = _gdi_.new_IconFromXPMData(*args, **kwargs)
929 val.thisown = 1
930 return val
931
932 class IconLocation(object):
933 """Proxy of C++ IconLocation class"""
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 """Proxy of C++ IconBundle class"""
979 def __repr__(self):
980 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
981 def __init__(self, *args, **kwargs):
982 """__init__(self) -> IconBundle"""
983 newobj = _gdi_.new_IconBundle(*args, **kwargs)
984 self.this = newobj.this
985 self.thisown = 1
986 del newobj.thisown
987 def __del__(self, destroy=_gdi_.delete_IconBundle):
988 """__del__(self)"""
989 try:
990 if self.thisown: destroy(self)
991 except: pass
992
993 def AddIcon(*args, **kwargs):
994 """AddIcon(self, Icon icon)"""
995 return _gdi_.IconBundle_AddIcon(*args, **kwargs)
996
997 def AddIconFromFile(*args, **kwargs):
998 """AddIconFromFile(self, String file, long type)"""
999 return _gdi_.IconBundle_AddIconFromFile(*args, **kwargs)
1000
1001 def GetIcon(*args, **kwargs):
1002 """GetIcon(self, Size size) -> Icon"""
1003 return _gdi_.IconBundle_GetIcon(*args, **kwargs)
1004
1005
1006 class IconBundlePtr(IconBundle):
1007 def __init__(self, this):
1008 self.this = this
1009 if not hasattr(self,"thisown"): self.thisown = 0
1010 self.__class__ = IconBundle
1011 _gdi_.IconBundle_swigregister(IconBundlePtr)
1012
1013 def IconBundleFromFile(*args, **kwargs):
1014 """IconBundleFromFile(String file, long type) -> IconBundle"""
1015 val = _gdi_.new_IconBundleFromFile(*args, **kwargs)
1016 val.thisown = 1
1017 return val
1018
1019 def IconBundleFromIcon(*args, **kwargs):
1020 """IconBundleFromIcon(Icon icon) -> IconBundle"""
1021 val = _gdi_.new_IconBundleFromIcon(*args, **kwargs)
1022 val.thisown = 1
1023 return val
1024
1025 class Cursor(GDIObject):
1026 """
1027 A cursor is a small bitmap usually used for denoting where the mouse
1028 pointer is, with a picture that might indicate the interpretation of a
1029 mouse click.
1030
1031 A single cursor object may be used in many windows (any subwindow
1032 type). The wxWindows convention is to set the cursor for a window, as
1033 in X, rather than to set it globally as in MS Windows, although a
1034 global `wx.SetCursor` function is also available for use on MS Windows.
1035
1036 """
1037 def __repr__(self):
1038 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1039 def __init__(self, *args, **kwargs):
1040 """
1041 __init__(self, String cursorName, long type, int hotSpotX=0, int hotSpotY=0) -> Cursor
1042
1043 Construct a Cursor from a file. Specify the type of file using
1044 wx.BITAMP_TYPE* constants, and specify the hotspot if not using a cur
1045 file.
1046
1047 This constructor is not available on wxGTK, use ``wx.StockCursor``,
1048 ``wx.CursorFromImage``, or ``wx.CursorFromBits`` instead.
1049 """
1050 newobj = _gdi_.new_Cursor(*args, **kwargs)
1051 self.this = newobj.this
1052 self.thisown = 1
1053 del newobj.thisown
1054 def __del__(self, destroy=_gdi_.delete_Cursor):
1055 """__del__(self)"""
1056 try:
1057 if self.thisown: destroy(self)
1058 except: pass
1059
1060 def GetHandle(*args, **kwargs):
1061 """
1062 GetHandle(self) -> long
1063
1064 Get the MS Windows handle for the cursor
1065 """
1066 return _gdi_.Cursor_GetHandle(*args, **kwargs)
1067
1068 def SetHandle(*args, **kwargs):
1069 """
1070 SetHandle(self, long handle)
1071
1072 Set the MS Windows handle to use for the cursor
1073 """
1074 return _gdi_.Cursor_SetHandle(*args, **kwargs)
1075
1076 def Ok(*args, **kwargs):
1077 """Ok(self) -> bool"""
1078 return _gdi_.Cursor_Ok(*args, **kwargs)
1079
1080 def __nonzero__(self): return self.Ok()
1081 def GetWidth(*args, **kwargs):
1082 """GetWidth(self) -> int"""
1083 return _gdi_.Cursor_GetWidth(*args, **kwargs)
1084
1085 def GetHeight(*args, **kwargs):
1086 """GetHeight(self) -> int"""
1087 return _gdi_.Cursor_GetHeight(*args, **kwargs)
1088
1089 def GetDepth(*args, **kwargs):
1090 """GetDepth(self) -> int"""
1091 return _gdi_.Cursor_GetDepth(*args, **kwargs)
1092
1093 def SetWidth(*args, **kwargs):
1094 """SetWidth(self, int w)"""
1095 return _gdi_.Cursor_SetWidth(*args, **kwargs)
1096
1097 def SetHeight(*args, **kwargs):
1098 """SetHeight(self, int h)"""
1099 return _gdi_.Cursor_SetHeight(*args, **kwargs)
1100
1101 def SetDepth(*args, **kwargs):
1102 """SetDepth(self, int d)"""
1103 return _gdi_.Cursor_SetDepth(*args, **kwargs)
1104
1105 def SetSize(*args, **kwargs):
1106 """SetSize(self, Size size)"""
1107 return _gdi_.Cursor_SetSize(*args, **kwargs)
1108
1109
1110 class CursorPtr(Cursor):
1111 def __init__(self, this):
1112 self.this = this
1113 if not hasattr(self,"thisown"): self.thisown = 0
1114 self.__class__ = Cursor
1115 _gdi_.Cursor_swigregister(CursorPtr)
1116
1117 def StockCursor(*args, **kwargs):
1118 """
1119 StockCursor(int id) -> Cursor
1120
1121 Create a cursor using one of the stock cursors. Note that not all
1122 cursors are available on all platforms.
1123 """
1124 val = _gdi_.new_StockCursor(*args, **kwargs)
1125 val.thisown = 1
1126 return val
1127
1128 def CursorFromImage(*args, **kwargs):
1129 """
1130 CursorFromImage(Image image) -> Cursor
1131
1132 Constructs a cursor from a wxImage. The cursor is monochrome, colors
1133 with the RGB elements all greater than 127 will be foreground, colors
1134 less than this background. The mask (if any) will be used as
1135 transparent.
1136 """
1137 val = _gdi_.new_CursorFromImage(*args, **kwargs)
1138 val.thisown = 1
1139 return val
1140
1141 #---------------------------------------------------------------------------
1142
1143 OutRegion = _gdi_.OutRegion
1144 PartRegion = _gdi_.PartRegion
1145 InRegion = _gdi_.InRegion
1146 class Region(GDIObject):
1147 """Proxy of C++ Region class"""
1148 def __repr__(self):
1149 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1150 def __init__(self, *args, **kwargs):
1151 """__init__(self, int x=0, int y=0, int width=0, int height=0) -> Region"""
1152 newobj = _gdi_.new_Region(*args, **kwargs)
1153 self.this = newobj.this
1154 self.thisown = 1
1155 del newobj.thisown
1156 def __del__(self, destroy=_gdi_.delete_Region):
1157 """__del__(self)"""
1158 try:
1159 if self.thisown: destroy(self)
1160 except: pass
1161
1162 def Clear(*args, **kwargs):
1163 """Clear(self)"""
1164 return _gdi_.Region_Clear(*args, **kwargs)
1165
1166 def Offset(*args, **kwargs):
1167 """Offset(self, int x, int y) -> bool"""
1168 return _gdi_.Region_Offset(*args, **kwargs)
1169
1170 def Contains(*args, **kwargs):
1171 """Contains(self, int x, int y) -> int"""
1172 return _gdi_.Region_Contains(*args, **kwargs)
1173
1174 def ContainsPoint(*args, **kwargs):
1175 """ContainsPoint(self, Point pt) -> int"""
1176 return _gdi_.Region_ContainsPoint(*args, **kwargs)
1177
1178 def ContainsRect(*args, **kwargs):
1179 """ContainsRect(self, Rect rect) -> int"""
1180 return _gdi_.Region_ContainsRect(*args, **kwargs)
1181
1182 def ContainsRectDim(*args, **kwargs):
1183 """ContainsRectDim(self, int x, int y, int w, int h) -> int"""
1184 return _gdi_.Region_ContainsRectDim(*args, **kwargs)
1185
1186 def GetBox(*args, **kwargs):
1187 """GetBox(self) -> Rect"""
1188 return _gdi_.Region_GetBox(*args, **kwargs)
1189
1190 def Intersect(*args, **kwargs):
1191 """Intersect(self, int x, int y, int width, int height) -> bool"""
1192 return _gdi_.Region_Intersect(*args, **kwargs)
1193
1194 def IntersectRect(*args, **kwargs):
1195 """IntersectRect(self, Rect rect) -> bool"""
1196 return _gdi_.Region_IntersectRect(*args, **kwargs)
1197
1198 def IntersectRegion(*args, **kwargs):
1199 """IntersectRegion(self, Region region) -> bool"""
1200 return _gdi_.Region_IntersectRegion(*args, **kwargs)
1201
1202 def IsEmpty(*args, **kwargs):
1203 """IsEmpty(self) -> bool"""
1204 return _gdi_.Region_IsEmpty(*args, **kwargs)
1205
1206 def Union(*args, **kwargs):
1207 """Union(self, int x, int y, int width, int height) -> bool"""
1208 return _gdi_.Region_Union(*args, **kwargs)
1209
1210 def UnionRect(*args, **kwargs):
1211 """UnionRect(self, Rect rect) -> bool"""
1212 return _gdi_.Region_UnionRect(*args, **kwargs)
1213
1214 def UnionRegion(*args, **kwargs):
1215 """UnionRegion(self, Region region) -> bool"""
1216 return _gdi_.Region_UnionRegion(*args, **kwargs)
1217
1218 def Subtract(*args, **kwargs):
1219 """Subtract(self, int x, int y, int width, int height) -> bool"""
1220 return _gdi_.Region_Subtract(*args, **kwargs)
1221
1222 def SubtractRect(*args, **kwargs):
1223 """SubtractRect(self, Rect rect) -> bool"""
1224 return _gdi_.Region_SubtractRect(*args, **kwargs)
1225
1226 def SubtractRegion(*args, **kwargs):
1227 """SubtractRegion(self, Region region) -> bool"""
1228 return _gdi_.Region_SubtractRegion(*args, **kwargs)
1229
1230 def Xor(*args, **kwargs):
1231 """Xor(self, int x, int y, int width, int height) -> bool"""
1232 return _gdi_.Region_Xor(*args, **kwargs)
1233
1234 def XorRect(*args, **kwargs):
1235 """XorRect(self, Rect rect) -> bool"""
1236 return _gdi_.Region_XorRect(*args, **kwargs)
1237
1238 def XorRegion(*args, **kwargs):
1239 """XorRegion(self, Region region) -> bool"""
1240 return _gdi_.Region_XorRegion(*args, **kwargs)
1241
1242 def ConvertToBitmap(*args, **kwargs):
1243 """ConvertToBitmap(self) -> Bitmap"""
1244 return _gdi_.Region_ConvertToBitmap(*args, **kwargs)
1245
1246 def UnionBitmap(*args, **kwargs):
1247 """UnionBitmap(self, Bitmap bmp) -> bool"""
1248 return _gdi_.Region_UnionBitmap(*args, **kwargs)
1249
1250 def UnionBitmapColour(*args, **kwargs):
1251 """UnionBitmapColour(self, Bitmap bmp, Colour transColour, int tolerance=0) -> bool"""
1252 return _gdi_.Region_UnionBitmapColour(*args, **kwargs)
1253
1254
1255 class RegionPtr(Region):
1256 def __init__(self, this):
1257 self.this = this
1258 if not hasattr(self,"thisown"): self.thisown = 0
1259 self.__class__ = Region
1260 _gdi_.Region_swigregister(RegionPtr)
1261
1262 def RegionFromBitmap(*args, **kwargs):
1263 """RegionFromBitmap(Bitmap bmp) -> Region"""
1264 val = _gdi_.new_RegionFromBitmap(*args, **kwargs)
1265 val.thisown = 1
1266 return val
1267
1268 def RegionFromBitmapColour(*args, **kwargs):
1269 """RegionFromBitmapColour(Bitmap bmp, Colour transColour, int tolerance=0) -> Region"""
1270 val = _gdi_.new_RegionFromBitmapColour(*args, **kwargs)
1271 val.thisown = 1
1272 return val
1273
1274 def RegionFromPoints(*args, **kwargs):
1275 """RegionFromPoints(int points, int fillStyle=WINDING_RULE) -> Region"""
1276 val = _gdi_.new_RegionFromPoints(*args, **kwargs)
1277 val.thisown = 1
1278 return val
1279
1280 class RegionIterator(_core.Object):
1281 """Proxy of C++ RegionIterator class"""
1282 def __repr__(self):
1283 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1284 def __init__(self, *args, **kwargs):
1285 """__init__(self, Region region) -> RegionIterator"""
1286 newobj = _gdi_.new_RegionIterator(*args, **kwargs)
1287 self.this = newobj.this
1288 self.thisown = 1
1289 del newobj.thisown
1290 def __del__(self, destroy=_gdi_.delete_RegionIterator):
1291 """__del__(self)"""
1292 try:
1293 if self.thisown: destroy(self)
1294 except: pass
1295
1296 def GetX(*args, **kwargs):
1297 """GetX(self) -> int"""
1298 return _gdi_.RegionIterator_GetX(*args, **kwargs)
1299
1300 def GetY(*args, **kwargs):
1301 """GetY(self) -> int"""
1302 return _gdi_.RegionIterator_GetY(*args, **kwargs)
1303
1304 def GetW(*args, **kwargs):
1305 """GetW(self) -> int"""
1306 return _gdi_.RegionIterator_GetW(*args, **kwargs)
1307
1308 def GetWidth(*args, **kwargs):
1309 """GetWidth(self) -> int"""
1310 return _gdi_.RegionIterator_GetWidth(*args, **kwargs)
1311
1312 def GetH(*args, **kwargs):
1313 """GetH(self) -> int"""
1314 return _gdi_.RegionIterator_GetH(*args, **kwargs)
1315
1316 def GetHeight(*args, **kwargs):
1317 """GetHeight(self) -> int"""
1318 return _gdi_.RegionIterator_GetHeight(*args, **kwargs)
1319
1320 def GetRect(*args, **kwargs):
1321 """GetRect(self) -> Rect"""
1322 return _gdi_.RegionIterator_GetRect(*args, **kwargs)
1323
1324 def HaveRects(*args, **kwargs):
1325 """HaveRects(self) -> bool"""
1326 return _gdi_.RegionIterator_HaveRects(*args, **kwargs)
1327
1328 def Reset(*args, **kwargs):
1329 """Reset(self)"""
1330 return _gdi_.RegionIterator_Reset(*args, **kwargs)
1331
1332 def Next(*args, **kwargs):
1333 """Next(self)"""
1334 return _gdi_.RegionIterator_Next(*args, **kwargs)
1335
1336 def __nonzero__(*args, **kwargs):
1337 """__nonzero__(self) -> bool"""
1338 return _gdi_.RegionIterator___nonzero__(*args, **kwargs)
1339
1340
1341 class RegionIteratorPtr(RegionIterator):
1342 def __init__(self, this):
1343 self.this = this
1344 if not hasattr(self,"thisown"): self.thisown = 0
1345 self.__class__ = RegionIterator
1346 _gdi_.RegionIterator_swigregister(RegionIteratorPtr)
1347
1348 #---------------------------------------------------------------------------
1349
1350 FONTFAMILY_DEFAULT = _gdi_.FONTFAMILY_DEFAULT
1351 FONTFAMILY_DECORATIVE = _gdi_.FONTFAMILY_DECORATIVE
1352 FONTFAMILY_ROMAN = _gdi_.FONTFAMILY_ROMAN
1353 FONTFAMILY_SCRIPT = _gdi_.FONTFAMILY_SCRIPT
1354 FONTFAMILY_SWISS = _gdi_.FONTFAMILY_SWISS
1355 FONTFAMILY_MODERN = _gdi_.FONTFAMILY_MODERN
1356 FONTFAMILY_TELETYPE = _gdi_.FONTFAMILY_TELETYPE
1357 FONTFAMILY_MAX = _gdi_.FONTFAMILY_MAX
1358 FONTFAMILY_UNKNOWN = _gdi_.FONTFAMILY_UNKNOWN
1359 FONTSTYLE_NORMAL = _gdi_.FONTSTYLE_NORMAL
1360 FONTSTYLE_ITALIC = _gdi_.FONTSTYLE_ITALIC
1361 FONTSTYLE_SLANT = _gdi_.FONTSTYLE_SLANT
1362 FONTSTYLE_MAX = _gdi_.FONTSTYLE_MAX
1363 FONTWEIGHT_NORMAL = _gdi_.FONTWEIGHT_NORMAL
1364 FONTWEIGHT_LIGHT = _gdi_.FONTWEIGHT_LIGHT
1365 FONTWEIGHT_BOLD = _gdi_.FONTWEIGHT_BOLD
1366 FONTWEIGHT_MAX = _gdi_.FONTWEIGHT_MAX
1367 FONTFLAG_DEFAULT = _gdi_.FONTFLAG_DEFAULT
1368 FONTFLAG_ITALIC = _gdi_.FONTFLAG_ITALIC
1369 FONTFLAG_SLANT = _gdi_.FONTFLAG_SLANT
1370 FONTFLAG_LIGHT = _gdi_.FONTFLAG_LIGHT
1371 FONTFLAG_BOLD = _gdi_.FONTFLAG_BOLD
1372 FONTFLAG_ANTIALIASED = _gdi_.FONTFLAG_ANTIALIASED
1373 FONTFLAG_NOT_ANTIALIASED = _gdi_.FONTFLAG_NOT_ANTIALIASED
1374 FONTFLAG_UNDERLINED = _gdi_.FONTFLAG_UNDERLINED
1375 FONTFLAG_STRIKETHROUGH = _gdi_.FONTFLAG_STRIKETHROUGH
1376 FONTFLAG_MASK = _gdi_.FONTFLAG_MASK
1377 FONTENCODING_SYSTEM = _gdi_.FONTENCODING_SYSTEM
1378 FONTENCODING_DEFAULT = _gdi_.FONTENCODING_DEFAULT
1379 FONTENCODING_ISO8859_1 = _gdi_.FONTENCODING_ISO8859_1
1380 FONTENCODING_ISO8859_2 = _gdi_.FONTENCODING_ISO8859_2
1381 FONTENCODING_ISO8859_3 = _gdi_.FONTENCODING_ISO8859_3
1382 FONTENCODING_ISO8859_4 = _gdi_.FONTENCODING_ISO8859_4
1383 FONTENCODING_ISO8859_5 = _gdi_.FONTENCODING_ISO8859_5
1384 FONTENCODING_ISO8859_6 = _gdi_.FONTENCODING_ISO8859_6
1385 FONTENCODING_ISO8859_7 = _gdi_.FONTENCODING_ISO8859_7
1386 FONTENCODING_ISO8859_8 = _gdi_.FONTENCODING_ISO8859_8
1387 FONTENCODING_ISO8859_9 = _gdi_.FONTENCODING_ISO8859_9
1388 FONTENCODING_ISO8859_10 = _gdi_.FONTENCODING_ISO8859_10
1389 FONTENCODING_ISO8859_11 = _gdi_.FONTENCODING_ISO8859_11
1390 FONTENCODING_ISO8859_12 = _gdi_.FONTENCODING_ISO8859_12
1391 FONTENCODING_ISO8859_13 = _gdi_.FONTENCODING_ISO8859_13
1392 FONTENCODING_ISO8859_14 = _gdi_.FONTENCODING_ISO8859_14
1393 FONTENCODING_ISO8859_15 = _gdi_.FONTENCODING_ISO8859_15
1394 FONTENCODING_ISO8859_MAX = _gdi_.FONTENCODING_ISO8859_MAX
1395 FONTENCODING_KOI8 = _gdi_.FONTENCODING_KOI8
1396 FONTENCODING_KOI8_U = _gdi_.FONTENCODING_KOI8_U
1397 FONTENCODING_ALTERNATIVE = _gdi_.FONTENCODING_ALTERNATIVE
1398 FONTENCODING_BULGARIAN = _gdi_.FONTENCODING_BULGARIAN
1399 FONTENCODING_CP437 = _gdi_.FONTENCODING_CP437
1400 FONTENCODING_CP850 = _gdi_.FONTENCODING_CP850
1401 FONTENCODING_CP852 = _gdi_.FONTENCODING_CP852
1402 FONTENCODING_CP855 = _gdi_.FONTENCODING_CP855
1403 FONTENCODING_CP866 = _gdi_.FONTENCODING_CP866
1404 FONTENCODING_CP874 = _gdi_.FONTENCODING_CP874
1405 FONTENCODING_CP932 = _gdi_.FONTENCODING_CP932
1406 FONTENCODING_CP936 = _gdi_.FONTENCODING_CP936
1407 FONTENCODING_CP949 = _gdi_.FONTENCODING_CP949
1408 FONTENCODING_CP950 = _gdi_.FONTENCODING_CP950
1409 FONTENCODING_CP1250 = _gdi_.FONTENCODING_CP1250
1410 FONTENCODING_CP1251 = _gdi_.FONTENCODING_CP1251
1411 FONTENCODING_CP1252 = _gdi_.FONTENCODING_CP1252
1412 FONTENCODING_CP1253 = _gdi_.FONTENCODING_CP1253
1413 FONTENCODING_CP1254 = _gdi_.FONTENCODING_CP1254
1414 FONTENCODING_CP1255 = _gdi_.FONTENCODING_CP1255
1415 FONTENCODING_CP1256 = _gdi_.FONTENCODING_CP1256
1416 FONTENCODING_CP1257 = _gdi_.FONTENCODING_CP1257
1417 FONTENCODING_CP12_MAX = _gdi_.FONTENCODING_CP12_MAX
1418 FONTENCODING_UTF7 = _gdi_.FONTENCODING_UTF7
1419 FONTENCODING_UTF8 = _gdi_.FONTENCODING_UTF8
1420 FONTENCODING_EUC_JP = _gdi_.FONTENCODING_EUC_JP
1421 FONTENCODING_UTF16BE = _gdi_.FONTENCODING_UTF16BE
1422 FONTENCODING_UTF16LE = _gdi_.FONTENCODING_UTF16LE
1423 FONTENCODING_UTF32BE = _gdi_.FONTENCODING_UTF32BE
1424 FONTENCODING_UTF32LE = _gdi_.FONTENCODING_UTF32LE
1425 FONTENCODING_MACROMAN = _gdi_.FONTENCODING_MACROMAN
1426 FONTENCODING_MACJAPANESE = _gdi_.FONTENCODING_MACJAPANESE
1427 FONTENCODING_MACCHINESETRAD = _gdi_.FONTENCODING_MACCHINESETRAD
1428 FONTENCODING_MACKOREAN = _gdi_.FONTENCODING_MACKOREAN
1429 FONTENCODING_MACARABIC = _gdi_.FONTENCODING_MACARABIC
1430 FONTENCODING_MACHEBREW = _gdi_.FONTENCODING_MACHEBREW
1431 FONTENCODING_MACGREEK = _gdi_.FONTENCODING_MACGREEK
1432 FONTENCODING_MACCYRILLIC = _gdi_.FONTENCODING_MACCYRILLIC
1433 FONTENCODING_MACDEVANAGARI = _gdi_.FONTENCODING_MACDEVANAGARI
1434 FONTENCODING_MACGURMUKHI = _gdi_.FONTENCODING_MACGURMUKHI
1435 FONTENCODING_MACGUJARATI = _gdi_.FONTENCODING_MACGUJARATI
1436 FONTENCODING_MACORIYA = _gdi_.FONTENCODING_MACORIYA
1437 FONTENCODING_MACBENGALI = _gdi_.FONTENCODING_MACBENGALI
1438 FONTENCODING_MACTAMIL = _gdi_.FONTENCODING_MACTAMIL
1439 FONTENCODING_MACTELUGU = _gdi_.FONTENCODING_MACTELUGU
1440 FONTENCODING_MACKANNADA = _gdi_.FONTENCODING_MACKANNADA
1441 FONTENCODING_MACMALAJALAM = _gdi_.FONTENCODING_MACMALAJALAM
1442 FONTENCODING_MACSINHALESE = _gdi_.FONTENCODING_MACSINHALESE
1443 FONTENCODING_MACBURMESE = _gdi_.FONTENCODING_MACBURMESE
1444 FONTENCODING_MACKHMER = _gdi_.FONTENCODING_MACKHMER
1445 FONTENCODING_MACTHAI = _gdi_.FONTENCODING_MACTHAI
1446 FONTENCODING_MACLAOTIAN = _gdi_.FONTENCODING_MACLAOTIAN
1447 FONTENCODING_MACGEORGIAN = _gdi_.FONTENCODING_MACGEORGIAN
1448 FONTENCODING_MACARMENIAN = _gdi_.FONTENCODING_MACARMENIAN
1449 FONTENCODING_MACCHINESESIMP = _gdi_.FONTENCODING_MACCHINESESIMP
1450 FONTENCODING_MACTIBETAN = _gdi_.FONTENCODING_MACTIBETAN
1451 FONTENCODING_MACMONGOLIAN = _gdi_.FONTENCODING_MACMONGOLIAN
1452 FONTENCODING_MACETHIOPIC = _gdi_.FONTENCODING_MACETHIOPIC
1453 FONTENCODING_MACCENTRALEUR = _gdi_.FONTENCODING_MACCENTRALEUR
1454 FONTENCODING_MACVIATNAMESE = _gdi_.FONTENCODING_MACVIATNAMESE
1455 FONTENCODING_MACARABICEXT = _gdi_.FONTENCODING_MACARABICEXT
1456 FONTENCODING_MACSYMBOL = _gdi_.FONTENCODING_MACSYMBOL
1457 FONTENCODING_MACDINGBATS = _gdi_.FONTENCODING_MACDINGBATS
1458 FONTENCODING_MACTURKISH = _gdi_.FONTENCODING_MACTURKISH
1459 FONTENCODING_MACCROATIAN = _gdi_.FONTENCODING_MACCROATIAN
1460 FONTENCODING_MACICELANDIC = _gdi_.FONTENCODING_MACICELANDIC
1461 FONTENCODING_MACROMANIAN = _gdi_.FONTENCODING_MACROMANIAN
1462 FONTENCODING_MACCELTIC = _gdi_.FONTENCODING_MACCELTIC
1463 FONTENCODING_MACGAELIC = _gdi_.FONTENCODING_MACGAELIC
1464 FONTENCODING_MACKEYBOARD = _gdi_.FONTENCODING_MACKEYBOARD
1465 FONTENCODING_MACMIN = _gdi_.FONTENCODING_MACMIN
1466 FONTENCODING_MACMAX = _gdi_.FONTENCODING_MACMAX
1467 FONTENCODING_MAX = _gdi_.FONTENCODING_MAX
1468 FONTENCODING_UTF16 = _gdi_.FONTENCODING_UTF16
1469 FONTENCODING_UTF32 = _gdi_.FONTENCODING_UTF32
1470 FONTENCODING_UNICODE = _gdi_.FONTENCODING_UNICODE
1471 FONTENCODING_GB2312 = _gdi_.FONTENCODING_GB2312
1472 FONTENCODING_BIG5 = _gdi_.FONTENCODING_BIG5
1473 FONTENCODING_SHIFT_JIS = _gdi_.FONTENCODING_SHIFT_JIS
1474 #---------------------------------------------------------------------------
1475
1476 class NativeFontInfo(object):
1477 """Proxy of C++ NativeFontInfo class"""
1478 def __repr__(self):
1479 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1480 def __init__(self, *args, **kwargs):
1481 """__init__(self) -> NativeFontInfo"""
1482 newobj = _gdi_.new_NativeFontInfo(*args, **kwargs)
1483 self.this = newobj.this
1484 self.thisown = 1
1485 del newobj.thisown
1486 def __del__(self, destroy=_gdi_.delete_NativeFontInfo):
1487 """__del__(self)"""
1488 try:
1489 if self.thisown: destroy(self)
1490 except: pass
1491
1492 def Init(*args, **kwargs):
1493 """Init(self)"""
1494 return _gdi_.NativeFontInfo_Init(*args, **kwargs)
1495
1496 def InitFromFont(*args, **kwargs):
1497 """InitFromFont(self, Font font)"""
1498 return _gdi_.NativeFontInfo_InitFromFont(*args, **kwargs)
1499
1500 def GetPointSize(*args, **kwargs):
1501 """GetPointSize(self) -> int"""
1502 return _gdi_.NativeFontInfo_GetPointSize(*args, **kwargs)
1503
1504 def GetPixelSize(*args, **kwargs):
1505 """GetPixelSize(self) -> Size"""
1506 return _gdi_.NativeFontInfo_GetPixelSize(*args, **kwargs)
1507
1508 def GetStyle(*args, **kwargs):
1509 """GetStyle(self) -> int"""
1510 return _gdi_.NativeFontInfo_GetStyle(*args, **kwargs)
1511
1512 def GetWeight(*args, **kwargs):
1513 """GetWeight(self) -> int"""
1514 return _gdi_.NativeFontInfo_GetWeight(*args, **kwargs)
1515
1516 def GetUnderlined(*args, **kwargs):
1517 """GetUnderlined(self) -> bool"""
1518 return _gdi_.NativeFontInfo_GetUnderlined(*args, **kwargs)
1519
1520 def GetFaceName(*args, **kwargs):
1521 """GetFaceName(self) -> String"""
1522 return _gdi_.NativeFontInfo_GetFaceName(*args, **kwargs)
1523
1524 def GetFamily(*args, **kwargs):
1525 """GetFamily(self) -> int"""
1526 return _gdi_.NativeFontInfo_GetFamily(*args, **kwargs)
1527
1528 def GetEncoding(*args, **kwargs):
1529 """GetEncoding(self) -> int"""
1530 return _gdi_.NativeFontInfo_GetEncoding(*args, **kwargs)
1531
1532 def SetPointSize(*args, **kwargs):
1533 """SetPointSize(self, int pointsize)"""
1534 return _gdi_.NativeFontInfo_SetPointSize(*args, **kwargs)
1535
1536 def SetPixelSize(*args, **kwargs):
1537 """SetPixelSize(self, Size pixelSize)"""
1538 return _gdi_.NativeFontInfo_SetPixelSize(*args, **kwargs)
1539
1540 def SetStyle(*args, **kwargs):
1541 """SetStyle(self, int style)"""
1542 return _gdi_.NativeFontInfo_SetStyle(*args, **kwargs)
1543
1544 def SetWeight(*args, **kwargs):
1545 """SetWeight(self, int weight)"""
1546 return _gdi_.NativeFontInfo_SetWeight(*args, **kwargs)
1547
1548 def SetUnderlined(*args, **kwargs):
1549 """SetUnderlined(self, bool underlined)"""
1550 return _gdi_.NativeFontInfo_SetUnderlined(*args, **kwargs)
1551
1552 def SetFaceName(*args, **kwargs):
1553 """SetFaceName(self, String facename)"""
1554 return _gdi_.NativeFontInfo_SetFaceName(*args, **kwargs)
1555
1556 def SetFamily(*args, **kwargs):
1557 """SetFamily(self, int family)"""
1558 return _gdi_.NativeFontInfo_SetFamily(*args, **kwargs)
1559
1560 def SetEncoding(*args, **kwargs):
1561 """SetEncoding(self, int encoding)"""
1562 return _gdi_.NativeFontInfo_SetEncoding(*args, **kwargs)
1563
1564 def FromString(*args, **kwargs):
1565 """FromString(self, String s) -> bool"""
1566 return _gdi_.NativeFontInfo_FromString(*args, **kwargs)
1567
1568 def ToString(*args, **kwargs):
1569 """ToString(self) -> String"""
1570 return _gdi_.NativeFontInfo_ToString(*args, **kwargs)
1571
1572 def __str__(*args, **kwargs):
1573 """__str__(self) -> String"""
1574 return _gdi_.NativeFontInfo___str__(*args, **kwargs)
1575
1576 def FromUserString(*args, **kwargs):
1577 """FromUserString(self, String s) -> bool"""
1578 return _gdi_.NativeFontInfo_FromUserString(*args, **kwargs)
1579
1580 def ToUserString(*args, **kwargs):
1581 """ToUserString(self) -> String"""
1582 return _gdi_.NativeFontInfo_ToUserString(*args, **kwargs)
1583
1584
1585 class NativeFontInfoPtr(NativeFontInfo):
1586 def __init__(self, this):
1587 self.this = this
1588 if not hasattr(self,"thisown"): self.thisown = 0
1589 self.__class__ = NativeFontInfo
1590 _gdi_.NativeFontInfo_swigregister(NativeFontInfoPtr)
1591
1592 class NativeEncodingInfo(object):
1593 """Proxy of C++ NativeEncodingInfo class"""
1594 def __repr__(self):
1595 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1596 facename = property(_gdi_.NativeEncodingInfo_facename_get, _gdi_.NativeEncodingInfo_facename_set)
1597 encoding = property(_gdi_.NativeEncodingInfo_encoding_get, _gdi_.NativeEncodingInfo_encoding_set)
1598 def __init__(self, *args, **kwargs):
1599 """__init__(self) -> NativeEncodingInfo"""
1600 newobj = _gdi_.new_NativeEncodingInfo(*args, **kwargs)
1601 self.this = newobj.this
1602 self.thisown = 1
1603 del newobj.thisown
1604 def __del__(self, destroy=_gdi_.delete_NativeEncodingInfo):
1605 """__del__(self)"""
1606 try:
1607 if self.thisown: destroy(self)
1608 except: pass
1609
1610 def FromString(*args, **kwargs):
1611 """FromString(self, String s) -> bool"""
1612 return _gdi_.NativeEncodingInfo_FromString(*args, **kwargs)
1613
1614 def ToString(*args, **kwargs):
1615 """ToString(self) -> String"""
1616 return _gdi_.NativeEncodingInfo_ToString(*args, **kwargs)
1617
1618
1619 class NativeEncodingInfoPtr(NativeEncodingInfo):
1620 def __init__(self, this):
1621 self.this = this
1622 if not hasattr(self,"thisown"): self.thisown = 0
1623 self.__class__ = NativeEncodingInfo
1624 _gdi_.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr)
1625
1626
1627 def GetNativeFontEncoding(*args, **kwargs):
1628 """GetNativeFontEncoding(int encoding) -> NativeEncodingInfo"""
1629 return _gdi_.GetNativeFontEncoding(*args, **kwargs)
1630
1631 def TestFontEncoding(*args, **kwargs):
1632 """TestFontEncoding(NativeEncodingInfo info) -> bool"""
1633 return _gdi_.TestFontEncoding(*args, **kwargs)
1634 #---------------------------------------------------------------------------
1635
1636 class FontMapper(object):
1637 """Proxy of C++ FontMapper class"""
1638 def __repr__(self):
1639 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1640 def __init__(self, *args, **kwargs):
1641 """__init__(self) -> FontMapper"""
1642 newobj = _gdi_.new_FontMapper(*args, **kwargs)
1643 self.this = newobj.this
1644 self.thisown = 1
1645 del newobj.thisown
1646 def __del__(self, destroy=_gdi_.delete_FontMapper):
1647 """__del__(self)"""
1648 try:
1649 if self.thisown: destroy(self)
1650 except: pass
1651
1652 def Get(*args, **kwargs):
1653 """Get() -> FontMapper"""
1654 return _gdi_.FontMapper_Get(*args, **kwargs)
1655
1656 Get = staticmethod(Get)
1657 def Set(*args, **kwargs):
1658 """Set(FontMapper mapper) -> FontMapper"""
1659 return _gdi_.FontMapper_Set(*args, **kwargs)
1660
1661 Set = staticmethod(Set)
1662 def CharsetToEncoding(*args, **kwargs):
1663 """CharsetToEncoding(self, String charset, bool interactive=True) -> int"""
1664 return _gdi_.FontMapper_CharsetToEncoding(*args, **kwargs)
1665
1666 def GetSupportedEncodingsCount(*args, **kwargs):
1667 """GetSupportedEncodingsCount() -> size_t"""
1668 return _gdi_.FontMapper_GetSupportedEncodingsCount(*args, **kwargs)
1669
1670 GetSupportedEncodingsCount = staticmethod(GetSupportedEncodingsCount)
1671 def GetEncoding(*args, **kwargs):
1672 """GetEncoding(size_t n) -> int"""
1673 return _gdi_.FontMapper_GetEncoding(*args, **kwargs)
1674
1675 GetEncoding = staticmethod(GetEncoding)
1676 def GetEncodingName(*args, **kwargs):
1677 """GetEncodingName(int encoding) -> String"""
1678 return _gdi_.FontMapper_GetEncodingName(*args, **kwargs)
1679
1680 GetEncodingName = staticmethod(GetEncodingName)
1681 def GetEncodingDescription(*args, **kwargs):
1682 """GetEncodingDescription(int encoding) -> String"""
1683 return _gdi_.FontMapper_GetEncodingDescription(*args, **kwargs)
1684
1685 GetEncodingDescription = staticmethod(GetEncodingDescription)
1686 def GetEncodingFromName(*args, **kwargs):
1687 """GetEncodingFromName(String name) -> int"""
1688 return _gdi_.FontMapper_GetEncodingFromName(*args, **kwargs)
1689
1690 GetEncodingFromName = staticmethod(GetEncodingFromName)
1691 def SetConfig(*args, **kwargs):
1692 """SetConfig(self, ConfigBase config)"""
1693 return _gdi_.FontMapper_SetConfig(*args, **kwargs)
1694
1695 def SetConfigPath(*args, **kwargs):
1696 """SetConfigPath(self, String prefix)"""
1697 return _gdi_.FontMapper_SetConfigPath(*args, **kwargs)
1698
1699 def GetDefaultConfigPath(*args, **kwargs):
1700 """GetDefaultConfigPath() -> String"""
1701 return _gdi_.FontMapper_GetDefaultConfigPath(*args, **kwargs)
1702
1703 GetDefaultConfigPath = staticmethod(GetDefaultConfigPath)
1704 def GetAltForEncoding(*args, **kwargs):
1705 """GetAltForEncoding(self, int encoding, String facename=EmptyString, bool interactive=True) -> PyObject"""
1706 return _gdi_.FontMapper_GetAltForEncoding(*args, **kwargs)
1707
1708 def IsEncodingAvailable(*args, **kwargs):
1709 """IsEncodingAvailable(self, int encoding, String facename=EmptyString) -> bool"""
1710 return _gdi_.FontMapper_IsEncodingAvailable(*args, **kwargs)
1711
1712 def SetDialogParent(*args, **kwargs):
1713 """SetDialogParent(self, Window parent)"""
1714 return _gdi_.FontMapper_SetDialogParent(*args, **kwargs)
1715
1716 def SetDialogTitle(*args, **kwargs):
1717 """SetDialogTitle(self, String title)"""
1718 return _gdi_.FontMapper_SetDialogTitle(*args, **kwargs)
1719
1720
1721 class FontMapperPtr(FontMapper):
1722 def __init__(self, this):
1723 self.this = this
1724 if not hasattr(self,"thisown"): self.thisown = 0
1725 self.__class__ = FontMapper
1726 _gdi_.FontMapper_swigregister(FontMapperPtr)
1727
1728 def FontMapper_Get(*args, **kwargs):
1729 """FontMapper_Get() -> FontMapper"""
1730 return _gdi_.FontMapper_Get(*args, **kwargs)
1731
1732 def FontMapper_Set(*args, **kwargs):
1733 """FontMapper_Set(FontMapper mapper) -> FontMapper"""
1734 return _gdi_.FontMapper_Set(*args, **kwargs)
1735
1736 def FontMapper_GetSupportedEncodingsCount(*args, **kwargs):
1737 """FontMapper_GetSupportedEncodingsCount() -> size_t"""
1738 return _gdi_.FontMapper_GetSupportedEncodingsCount(*args, **kwargs)
1739
1740 def FontMapper_GetEncoding(*args, **kwargs):
1741 """FontMapper_GetEncoding(size_t n) -> int"""
1742 return _gdi_.FontMapper_GetEncoding(*args, **kwargs)
1743
1744 def FontMapper_GetEncodingName(*args, **kwargs):
1745 """FontMapper_GetEncodingName(int encoding) -> String"""
1746 return _gdi_.FontMapper_GetEncodingName(*args, **kwargs)
1747
1748 def FontMapper_GetEncodingDescription(*args, **kwargs):
1749 """FontMapper_GetEncodingDescription(int encoding) -> String"""
1750 return _gdi_.FontMapper_GetEncodingDescription(*args, **kwargs)
1751
1752 def FontMapper_GetEncodingFromName(*args, **kwargs):
1753 """FontMapper_GetEncodingFromName(String name) -> int"""
1754 return _gdi_.FontMapper_GetEncodingFromName(*args, **kwargs)
1755
1756 def FontMapper_GetDefaultConfigPath(*args, **kwargs):
1757 """FontMapper_GetDefaultConfigPath() -> String"""
1758 return _gdi_.FontMapper_GetDefaultConfigPath(*args, **kwargs)
1759
1760 #---------------------------------------------------------------------------
1761
1762 class Font(GDIObject):
1763 """Proxy of C++ Font class"""
1764 def __repr__(self):
1765 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1766 def __init__(self, *args, **kwargs):
1767 """
1768 __init__(self, int pointSize, int family, int style, int weight, bool underline=False,
1769 String face=EmptyString,
1770 int encoding=FONTENCODING_DEFAULT) -> Font
1771 """
1772 if kwargs.has_key('faceName'): kwargs['face'] = kwargs['faceName'];del kwargs['faceName']
1773 newobj = _gdi_.new_Font(*args, **kwargs)
1774 self.this = newobj.this
1775 self.thisown = 1
1776 del newobj.thisown
1777 def __del__(self, destroy=_gdi_.delete_Font):
1778 """__del__(self)"""
1779 try:
1780 if self.thisown: destroy(self)
1781 except: pass
1782
1783 def Ok(*args, **kwargs):
1784 """Ok(self) -> bool"""
1785 return _gdi_.Font_Ok(*args, **kwargs)
1786
1787 def __nonzero__(self): return self.Ok()
1788 def __eq__(*args, **kwargs):
1789 """__eq__(self, Font other) -> bool"""
1790 return _gdi_.Font___eq__(*args, **kwargs)
1791
1792 def __ne__(*args, **kwargs):
1793 """__ne__(self, Font other) -> bool"""
1794 return _gdi_.Font___ne__(*args, **kwargs)
1795
1796 def GetPointSize(*args, **kwargs):
1797 """GetPointSize(self) -> int"""
1798 return _gdi_.Font_GetPointSize(*args, **kwargs)
1799
1800 def GetPixelSize(*args, **kwargs):
1801 """GetPixelSize(self) -> Size"""
1802 return _gdi_.Font_GetPixelSize(*args, **kwargs)
1803
1804 def IsUsingSizeInPixels(*args, **kwargs):
1805 """IsUsingSizeInPixels(self) -> bool"""
1806 return _gdi_.Font_IsUsingSizeInPixels(*args, **kwargs)
1807
1808 def GetFamily(*args, **kwargs):
1809 """GetFamily(self) -> int"""
1810 return _gdi_.Font_GetFamily(*args, **kwargs)
1811
1812 def GetStyle(*args, **kwargs):
1813 """GetStyle(self) -> int"""
1814 return _gdi_.Font_GetStyle(*args, **kwargs)
1815
1816 def GetWeight(*args, **kwargs):
1817 """GetWeight(self) -> int"""
1818 return _gdi_.Font_GetWeight(*args, **kwargs)
1819
1820 def GetUnderlined(*args, **kwargs):
1821 """GetUnderlined(self) -> bool"""
1822 return _gdi_.Font_GetUnderlined(*args, **kwargs)
1823
1824 def GetFaceName(*args, **kwargs):
1825 """GetFaceName(self) -> String"""
1826 return _gdi_.Font_GetFaceName(*args, **kwargs)
1827
1828 def GetEncoding(*args, **kwargs):
1829 """GetEncoding(self) -> int"""
1830 return _gdi_.Font_GetEncoding(*args, **kwargs)
1831
1832 def GetNativeFontInfo(*args, **kwargs):
1833 """GetNativeFontInfo(self) -> NativeFontInfo"""
1834 return _gdi_.Font_GetNativeFontInfo(*args, **kwargs)
1835
1836 def IsFixedWidth(*args, **kwargs):
1837 """IsFixedWidth(self) -> bool"""
1838 return _gdi_.Font_IsFixedWidth(*args, **kwargs)
1839
1840 def GetNativeFontInfoDesc(*args, **kwargs):
1841 """GetNativeFontInfoDesc(self) -> String"""
1842 return _gdi_.Font_GetNativeFontInfoDesc(*args, **kwargs)
1843
1844 def GetNativeFontInfoUserDesc(*args, **kwargs):
1845 """GetNativeFontInfoUserDesc(self) -> String"""
1846 return _gdi_.Font_GetNativeFontInfoUserDesc(*args, **kwargs)
1847
1848 def SetPointSize(*args, **kwargs):
1849 """SetPointSize(self, int pointSize)"""
1850 return _gdi_.Font_SetPointSize(*args, **kwargs)
1851
1852 def SetPixelSize(*args, **kwargs):
1853 """SetPixelSize(self, Size pixelSize)"""
1854 return _gdi_.Font_SetPixelSize(*args, **kwargs)
1855
1856 def SetFamily(*args, **kwargs):
1857 """SetFamily(self, int family)"""
1858 return _gdi_.Font_SetFamily(*args, **kwargs)
1859
1860 def SetStyle(*args, **kwargs):
1861 """SetStyle(self, int style)"""
1862 return _gdi_.Font_SetStyle(*args, **kwargs)
1863
1864 def SetWeight(*args, **kwargs):
1865 """SetWeight(self, int weight)"""
1866 return _gdi_.Font_SetWeight(*args, **kwargs)
1867
1868 def SetFaceName(*args, **kwargs):
1869 """SetFaceName(self, String faceName)"""
1870 return _gdi_.Font_SetFaceName(*args, **kwargs)
1871
1872 def SetUnderlined(*args, **kwargs):
1873 """SetUnderlined(self, bool underlined)"""
1874 return _gdi_.Font_SetUnderlined(*args, **kwargs)
1875
1876 def SetEncoding(*args, **kwargs):
1877 """SetEncoding(self, int encoding)"""
1878 return _gdi_.Font_SetEncoding(*args, **kwargs)
1879
1880 def SetNativeFontInfo(*args, **kwargs):
1881 """SetNativeFontInfo(self, NativeFontInfo info)"""
1882 return _gdi_.Font_SetNativeFontInfo(*args, **kwargs)
1883
1884 def SetNativeFontInfoFromString(*args, **kwargs):
1885 """SetNativeFontInfoFromString(self, String info)"""
1886 return _gdi_.Font_SetNativeFontInfoFromString(*args, **kwargs)
1887
1888 def SetNativeFontInfoUserDesc(*args, **kwargs):
1889 """SetNativeFontInfoUserDesc(self, String info)"""
1890 return _gdi_.Font_SetNativeFontInfoUserDesc(*args, **kwargs)
1891
1892 def GetFamilyString(*args, **kwargs):
1893 """GetFamilyString(self) -> String"""
1894 return _gdi_.Font_GetFamilyString(*args, **kwargs)
1895
1896 def GetStyleString(*args, **kwargs):
1897 """GetStyleString(self) -> String"""
1898 return _gdi_.Font_GetStyleString(*args, **kwargs)
1899
1900 def GetWeightString(*args, **kwargs):
1901 """GetWeightString(self) -> String"""
1902 return _gdi_.Font_GetWeightString(*args, **kwargs)
1903
1904 def SetNoAntiAliasing(*args, **kwargs):
1905 """SetNoAntiAliasing(self, bool no=True)"""
1906 return _gdi_.Font_SetNoAntiAliasing(*args, **kwargs)
1907
1908 def GetNoAntiAliasing(*args, **kwargs):
1909 """GetNoAntiAliasing(self) -> bool"""
1910 return _gdi_.Font_GetNoAntiAliasing(*args, **kwargs)
1911
1912 def GetDefaultEncoding(*args, **kwargs):
1913 """GetDefaultEncoding() -> int"""
1914 return _gdi_.Font_GetDefaultEncoding(*args, **kwargs)
1915
1916 GetDefaultEncoding = staticmethod(GetDefaultEncoding)
1917 def SetDefaultEncoding(*args, **kwargs):
1918 """SetDefaultEncoding(int encoding)"""
1919 return _gdi_.Font_SetDefaultEncoding(*args, **kwargs)
1920
1921 SetDefaultEncoding = staticmethod(SetDefaultEncoding)
1922
1923 class FontPtr(Font):
1924 def __init__(self, this):
1925 self.this = this
1926 if not hasattr(self,"thisown"): self.thisown = 0
1927 self.__class__ = Font
1928 _gdi_.Font_swigregister(FontPtr)
1929
1930 def FontFromNativeInfo(*args, **kwargs):
1931 """FontFromNativeInfo(NativeFontInfo info) -> Font"""
1932 if kwargs.has_key('faceName'): kwargs['face'] = kwargs['faceName'];del kwargs['faceName']
1933 val = _gdi_.new_FontFromNativeInfo(*args, **kwargs)
1934 val.thisown = 1
1935 return val
1936
1937 def FontFromNativeInfoString(*args, **kwargs):
1938 """FontFromNativeInfoString(String info) -> Font"""
1939 if kwargs.has_key('faceName'): kwargs['face'] = kwargs['faceName'];del kwargs['faceName']
1940 val = _gdi_.new_FontFromNativeInfoString(*args, **kwargs)
1941 val.thisown = 1
1942 return val
1943
1944 def Font2(*args, **kwargs):
1945 """
1946 Font2(int pointSize, int family, int flags=FONTFLAG_DEFAULT,
1947 String face=EmptyString, int encoding=FONTENCODING_DEFAULT) -> Font
1948 """
1949 if kwargs.has_key('faceName'): kwargs['face'] = kwargs['faceName'];del kwargs['faceName']
1950 val = _gdi_.new_Font2(*args, **kwargs)
1951 val.thisown = 1
1952 return val
1953
1954 def FontFromPixelSize(*args, **kwargs):
1955 """
1956 FontFromPixelSize(Size pixelSize, int family, int style, int weight,
1957 bool underlined=False, String face=wxEmptyString,
1958 int encoding=FONTENCODING_DEFAULT) -> Font
1959 """
1960 if kwargs.has_key('faceName'): kwargs['face'] = kwargs['faceName'];del kwargs['faceName']
1961 val = _gdi_.new_FontFromPixelSize(*args, **kwargs)
1962 val.thisown = 1
1963 return val
1964
1965 def Font_GetDefaultEncoding(*args, **kwargs):
1966 """Font_GetDefaultEncoding() -> int"""
1967 return _gdi_.Font_GetDefaultEncoding(*args, **kwargs)
1968
1969 def Font_SetDefaultEncoding(*args, **kwargs):
1970 """Font_SetDefaultEncoding(int encoding)"""
1971 return _gdi_.Font_SetDefaultEncoding(*args, **kwargs)
1972
1973 #---------------------------------------------------------------------------
1974
1975 class FontEnumerator(object):
1976 """Proxy of C++ FontEnumerator class"""
1977 def __repr__(self):
1978 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1979 def __init__(self, *args, **kwargs):
1980 """__init__(self) -> FontEnumerator"""
1981 newobj = _gdi_.new_FontEnumerator(*args, **kwargs)
1982 self.this = newobj.this
1983 self.thisown = 1
1984 del newobj.thisown
1985 self._setCallbackInfo(self, FontEnumerator, 0)
1986
1987 def __del__(self, destroy=_gdi_.delete_FontEnumerator):
1988 """__del__(self)"""
1989 try:
1990 if self.thisown: destroy(self)
1991 except: pass
1992
1993 def _setCallbackInfo(*args, **kwargs):
1994 """_setCallbackInfo(self, PyObject self, PyObject _class, bool incref)"""
1995 return _gdi_.FontEnumerator__setCallbackInfo(*args, **kwargs)
1996
1997 def EnumerateFacenames(*args, **kwargs):
1998 """EnumerateFacenames(self, int encoding=FONTENCODING_SYSTEM, bool fixedWidthOnly=False) -> bool"""
1999 return _gdi_.FontEnumerator_EnumerateFacenames(*args, **kwargs)
2000
2001 def EnumerateEncodings(*args, **kwargs):
2002 """EnumerateEncodings(self, String facename=EmptyString) -> bool"""
2003 return _gdi_.FontEnumerator_EnumerateEncodings(*args, **kwargs)
2004
2005 def GetEncodings(*args, **kwargs):
2006 """GetEncodings(self) -> PyObject"""
2007 return _gdi_.FontEnumerator_GetEncodings(*args, **kwargs)
2008
2009 def GetFacenames(*args, **kwargs):
2010 """GetFacenames(self) -> PyObject"""
2011 return _gdi_.FontEnumerator_GetFacenames(*args, **kwargs)
2012
2013
2014 class FontEnumeratorPtr(FontEnumerator):
2015 def __init__(self, this):
2016 self.this = this
2017 if not hasattr(self,"thisown"): self.thisown = 0
2018 self.__class__ = FontEnumerator
2019 _gdi_.FontEnumerator_swigregister(FontEnumeratorPtr)
2020
2021 #---------------------------------------------------------------------------
2022
2023 LANGUAGE_DEFAULT = _gdi_.LANGUAGE_DEFAULT
2024 LANGUAGE_UNKNOWN = _gdi_.LANGUAGE_UNKNOWN
2025 LANGUAGE_ABKHAZIAN = _gdi_.LANGUAGE_ABKHAZIAN
2026 LANGUAGE_AFAR = _gdi_.LANGUAGE_AFAR
2027 LANGUAGE_AFRIKAANS = _gdi_.LANGUAGE_AFRIKAANS
2028 LANGUAGE_ALBANIAN = _gdi_.LANGUAGE_ALBANIAN
2029 LANGUAGE_AMHARIC = _gdi_.LANGUAGE_AMHARIC
2030 LANGUAGE_ARABIC = _gdi_.LANGUAGE_ARABIC
2031 LANGUAGE_ARABIC_ALGERIA = _gdi_.LANGUAGE_ARABIC_ALGERIA
2032 LANGUAGE_ARABIC_BAHRAIN = _gdi_.LANGUAGE_ARABIC_BAHRAIN
2033 LANGUAGE_ARABIC_EGYPT = _gdi_.LANGUAGE_ARABIC_EGYPT
2034 LANGUAGE_ARABIC_IRAQ = _gdi_.LANGUAGE_ARABIC_IRAQ
2035 LANGUAGE_ARABIC_JORDAN = _gdi_.LANGUAGE_ARABIC_JORDAN
2036 LANGUAGE_ARABIC_KUWAIT = _gdi_.LANGUAGE_ARABIC_KUWAIT
2037 LANGUAGE_ARABIC_LEBANON = _gdi_.LANGUAGE_ARABIC_LEBANON
2038 LANGUAGE_ARABIC_LIBYA = _gdi_.LANGUAGE_ARABIC_LIBYA
2039 LANGUAGE_ARABIC_MOROCCO = _gdi_.LANGUAGE_ARABIC_MOROCCO
2040 LANGUAGE_ARABIC_OMAN = _gdi_.LANGUAGE_ARABIC_OMAN
2041 LANGUAGE_ARABIC_QATAR = _gdi_.LANGUAGE_ARABIC_QATAR
2042 LANGUAGE_ARABIC_SAUDI_ARABIA = _gdi_.LANGUAGE_ARABIC_SAUDI_ARABIA
2043 LANGUAGE_ARABIC_SUDAN = _gdi_.LANGUAGE_ARABIC_SUDAN
2044 LANGUAGE_ARABIC_SYRIA = _gdi_.LANGUAGE_ARABIC_SYRIA
2045 LANGUAGE_ARABIC_TUNISIA = _gdi_.LANGUAGE_ARABIC_TUNISIA
2046 LANGUAGE_ARABIC_UAE = _gdi_.LANGUAGE_ARABIC_UAE
2047 LANGUAGE_ARABIC_YEMEN = _gdi_.LANGUAGE_ARABIC_YEMEN
2048 LANGUAGE_ARMENIAN = _gdi_.LANGUAGE_ARMENIAN
2049 LANGUAGE_ASSAMESE = _gdi_.LANGUAGE_ASSAMESE
2050 LANGUAGE_AYMARA = _gdi_.LANGUAGE_AYMARA
2051 LANGUAGE_AZERI = _gdi_.LANGUAGE_AZERI
2052 LANGUAGE_AZERI_CYRILLIC = _gdi_.LANGUAGE_AZERI_CYRILLIC
2053 LANGUAGE_AZERI_LATIN = _gdi_.LANGUAGE_AZERI_LATIN
2054 LANGUAGE_BASHKIR = _gdi_.LANGUAGE_BASHKIR
2055 LANGUAGE_BASQUE = _gdi_.LANGUAGE_BASQUE
2056 LANGUAGE_BELARUSIAN = _gdi_.LANGUAGE_BELARUSIAN
2057 LANGUAGE_BENGALI = _gdi_.LANGUAGE_BENGALI
2058 LANGUAGE_BHUTANI = _gdi_.LANGUAGE_BHUTANI
2059 LANGUAGE_BIHARI = _gdi_.LANGUAGE_BIHARI
2060 LANGUAGE_BISLAMA = _gdi_.LANGUAGE_BISLAMA
2061 LANGUAGE_BRETON = _gdi_.LANGUAGE_BRETON
2062 LANGUAGE_BULGARIAN = _gdi_.LANGUAGE_BULGARIAN
2063 LANGUAGE_BURMESE = _gdi_.LANGUAGE_BURMESE
2064 LANGUAGE_CAMBODIAN = _gdi_.LANGUAGE_CAMBODIAN
2065 LANGUAGE_CATALAN = _gdi_.LANGUAGE_CATALAN
2066 LANGUAGE_CHINESE = _gdi_.LANGUAGE_CHINESE
2067 LANGUAGE_CHINESE_SIMPLIFIED = _gdi_.LANGUAGE_CHINESE_SIMPLIFIED
2068 LANGUAGE_CHINESE_TRADITIONAL = _gdi_.LANGUAGE_CHINESE_TRADITIONAL
2069 LANGUAGE_CHINESE_HONGKONG = _gdi_.LANGUAGE_CHINESE_HONGKONG
2070 LANGUAGE_CHINESE_MACAU = _gdi_.LANGUAGE_CHINESE_MACAU
2071 LANGUAGE_CHINESE_SINGAPORE = _gdi_.LANGUAGE_CHINESE_SINGAPORE
2072 LANGUAGE_CHINESE_TAIWAN = _gdi_.LANGUAGE_CHINESE_TAIWAN
2073 LANGUAGE_CORSICAN = _gdi_.LANGUAGE_CORSICAN
2074 LANGUAGE_CROATIAN = _gdi_.LANGUAGE_CROATIAN
2075 LANGUAGE_CZECH = _gdi_.LANGUAGE_CZECH
2076 LANGUAGE_DANISH = _gdi_.LANGUAGE_DANISH
2077 LANGUAGE_DUTCH = _gdi_.LANGUAGE_DUTCH
2078 LANGUAGE_DUTCH_BELGIAN = _gdi_.LANGUAGE_DUTCH_BELGIAN
2079 LANGUAGE_ENGLISH = _gdi_.LANGUAGE_ENGLISH
2080 LANGUAGE_ENGLISH_UK = _gdi_.LANGUAGE_ENGLISH_UK
2081 LANGUAGE_ENGLISH_US = _gdi_.LANGUAGE_ENGLISH_US
2082 LANGUAGE_ENGLISH_AUSTRALIA = _gdi_.LANGUAGE_ENGLISH_AUSTRALIA
2083 LANGUAGE_ENGLISH_BELIZE = _gdi_.LANGUAGE_ENGLISH_BELIZE
2084 LANGUAGE_ENGLISH_BOTSWANA = _gdi_.LANGUAGE_ENGLISH_BOTSWANA
2085 LANGUAGE_ENGLISH_CANADA = _gdi_.LANGUAGE_ENGLISH_CANADA
2086 LANGUAGE_ENGLISH_CARIBBEAN = _gdi_.LANGUAGE_ENGLISH_CARIBBEAN
2087 LANGUAGE_ENGLISH_DENMARK = _gdi_.LANGUAGE_ENGLISH_DENMARK
2088 LANGUAGE_ENGLISH_EIRE = _gdi_.LANGUAGE_ENGLISH_EIRE
2089 LANGUAGE_ENGLISH_JAMAICA = _gdi_.LANGUAGE_ENGLISH_JAMAICA
2090 LANGUAGE_ENGLISH_NEW_ZEALAND = _gdi_.LANGUAGE_ENGLISH_NEW_ZEALAND
2091 LANGUAGE_ENGLISH_PHILIPPINES = _gdi_.LANGUAGE_ENGLISH_PHILIPPINES
2092 LANGUAGE_ENGLISH_SOUTH_AFRICA = _gdi_.LANGUAGE_ENGLISH_SOUTH_AFRICA
2093 LANGUAGE_ENGLISH_TRINIDAD = _gdi_.LANGUAGE_ENGLISH_TRINIDAD
2094 LANGUAGE_ENGLISH_ZIMBABWE = _gdi_.LANGUAGE_ENGLISH_ZIMBABWE
2095 LANGUAGE_ESPERANTO = _gdi_.LANGUAGE_ESPERANTO
2096 LANGUAGE_ESTONIAN = _gdi_.LANGUAGE_ESTONIAN
2097 LANGUAGE_FAEROESE = _gdi_.LANGUAGE_FAEROESE
2098 LANGUAGE_FARSI = _gdi_.LANGUAGE_FARSI
2099 LANGUAGE_FIJI = _gdi_.LANGUAGE_FIJI
2100 LANGUAGE_FINNISH = _gdi_.LANGUAGE_FINNISH
2101 LANGUAGE_FRENCH = _gdi_.LANGUAGE_FRENCH
2102 LANGUAGE_FRENCH_BELGIAN = _gdi_.LANGUAGE_FRENCH_BELGIAN
2103 LANGUAGE_FRENCH_CANADIAN = _gdi_.LANGUAGE_FRENCH_CANADIAN
2104 LANGUAGE_FRENCH_LUXEMBOURG = _gdi_.LANGUAGE_FRENCH_LUXEMBOURG
2105 LANGUAGE_FRENCH_MONACO = _gdi_.LANGUAGE_FRENCH_MONACO
2106 LANGUAGE_FRENCH_SWISS = _gdi_.LANGUAGE_FRENCH_SWISS
2107 LANGUAGE_FRISIAN = _gdi_.LANGUAGE_FRISIAN
2108 LANGUAGE_GALICIAN = _gdi_.LANGUAGE_GALICIAN
2109 LANGUAGE_GEORGIAN = _gdi_.LANGUAGE_GEORGIAN
2110 LANGUAGE_GERMAN = _gdi_.LANGUAGE_GERMAN
2111 LANGUAGE_GERMAN_AUSTRIAN = _gdi_.LANGUAGE_GERMAN_AUSTRIAN
2112 LANGUAGE_GERMAN_BELGIUM = _gdi_.LANGUAGE_GERMAN_BELGIUM
2113 LANGUAGE_GERMAN_LIECHTENSTEIN = _gdi_.LANGUAGE_GERMAN_LIECHTENSTEIN
2114 LANGUAGE_GERMAN_LUXEMBOURG = _gdi_.LANGUAGE_GERMAN_LUXEMBOURG
2115 LANGUAGE_GERMAN_SWISS = _gdi_.LANGUAGE_GERMAN_SWISS
2116 LANGUAGE_GREEK = _gdi_.LANGUAGE_GREEK
2117 LANGUAGE_GREENLANDIC = _gdi_.LANGUAGE_GREENLANDIC
2118 LANGUAGE_GUARANI = _gdi_.LANGUAGE_GUARANI
2119 LANGUAGE_GUJARATI = _gdi_.LANGUAGE_GUJARATI
2120 LANGUAGE_HAUSA = _gdi_.LANGUAGE_HAUSA
2121 LANGUAGE_HEBREW = _gdi_.LANGUAGE_HEBREW
2122 LANGUAGE_HINDI = _gdi_.LANGUAGE_HINDI
2123 LANGUAGE_HUNGARIAN = _gdi_.LANGUAGE_HUNGARIAN
2124 LANGUAGE_ICELANDIC = _gdi_.LANGUAGE_ICELANDIC
2125 LANGUAGE_INDONESIAN = _gdi_.LANGUAGE_INDONESIAN
2126 LANGUAGE_INTERLINGUA = _gdi_.LANGUAGE_INTERLINGUA
2127 LANGUAGE_INTERLINGUE = _gdi_.LANGUAGE_INTERLINGUE
2128 LANGUAGE_INUKTITUT = _gdi_.LANGUAGE_INUKTITUT
2129 LANGUAGE_INUPIAK = _gdi_.LANGUAGE_INUPIAK
2130 LANGUAGE_IRISH = _gdi_.LANGUAGE_IRISH
2131 LANGUAGE_ITALIAN = _gdi_.LANGUAGE_ITALIAN
2132 LANGUAGE_ITALIAN_SWISS = _gdi_.LANGUAGE_ITALIAN_SWISS
2133 LANGUAGE_JAPANESE = _gdi_.LANGUAGE_JAPANESE
2134 LANGUAGE_JAVANESE = _gdi_.LANGUAGE_JAVANESE
2135 LANGUAGE_KANNADA = _gdi_.LANGUAGE_KANNADA
2136 LANGUAGE_KASHMIRI = _gdi_.LANGUAGE_KASHMIRI
2137 LANGUAGE_KASHMIRI_INDIA = _gdi_.LANGUAGE_KASHMIRI_INDIA
2138 LANGUAGE_KAZAKH = _gdi_.LANGUAGE_KAZAKH
2139 LANGUAGE_KERNEWEK = _gdi_.LANGUAGE_KERNEWEK
2140 LANGUAGE_KINYARWANDA = _gdi_.LANGUAGE_KINYARWANDA
2141 LANGUAGE_KIRGHIZ = _gdi_.LANGUAGE_KIRGHIZ
2142 LANGUAGE_KIRUNDI = _gdi_.LANGUAGE_KIRUNDI
2143 LANGUAGE_KONKANI = _gdi_.LANGUAGE_KONKANI
2144 LANGUAGE_KOREAN = _gdi_.LANGUAGE_KOREAN
2145 LANGUAGE_KURDISH = _gdi_.LANGUAGE_KURDISH
2146 LANGUAGE_LAOTHIAN = _gdi_.LANGUAGE_LAOTHIAN
2147 LANGUAGE_LATIN = _gdi_.LANGUAGE_LATIN
2148 LANGUAGE_LATVIAN = _gdi_.LANGUAGE_LATVIAN
2149 LANGUAGE_LINGALA = _gdi_.LANGUAGE_LINGALA
2150 LANGUAGE_LITHUANIAN = _gdi_.LANGUAGE_LITHUANIAN
2151 LANGUAGE_MACEDONIAN = _gdi_.LANGUAGE_MACEDONIAN
2152 LANGUAGE_MALAGASY = _gdi_.LANGUAGE_MALAGASY
2153 LANGUAGE_MALAY = _gdi_.LANGUAGE_MALAY
2154 LANGUAGE_MALAYALAM = _gdi_.LANGUAGE_MALAYALAM
2155 LANGUAGE_MALAY_BRUNEI_DARUSSALAM = _gdi_.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
2156 LANGUAGE_MALAY_MALAYSIA = _gdi_.LANGUAGE_MALAY_MALAYSIA
2157 LANGUAGE_MALTESE = _gdi_.LANGUAGE_MALTESE
2158 LANGUAGE_MANIPURI = _gdi_.LANGUAGE_MANIPURI
2159 LANGUAGE_MAORI = _gdi_.LANGUAGE_MAORI
2160 LANGUAGE_MARATHI = _gdi_.LANGUAGE_MARATHI
2161 LANGUAGE_MOLDAVIAN = _gdi_.LANGUAGE_MOLDAVIAN
2162 LANGUAGE_MONGOLIAN = _gdi_.LANGUAGE_MONGOLIAN
2163 LANGUAGE_NAURU = _gdi_.LANGUAGE_NAURU
2164 LANGUAGE_NEPALI = _gdi_.LANGUAGE_NEPALI
2165 LANGUAGE_NEPALI_INDIA = _gdi_.LANGUAGE_NEPALI_INDIA
2166 LANGUAGE_NORWEGIAN_BOKMAL = _gdi_.LANGUAGE_NORWEGIAN_BOKMAL
2167 LANGUAGE_NORWEGIAN_NYNORSK = _gdi_.LANGUAGE_NORWEGIAN_NYNORSK
2168 LANGUAGE_OCCITAN = _gdi_.LANGUAGE_OCCITAN
2169 LANGUAGE_ORIYA = _gdi_.LANGUAGE_ORIYA
2170 LANGUAGE_OROMO = _gdi_.LANGUAGE_OROMO
2171 LANGUAGE_PASHTO = _gdi_.LANGUAGE_PASHTO
2172 LANGUAGE_POLISH = _gdi_.LANGUAGE_POLISH
2173 LANGUAGE_PORTUGUESE = _gdi_.LANGUAGE_PORTUGUESE
2174 LANGUAGE_PORTUGUESE_BRAZILIAN = _gdi_.LANGUAGE_PORTUGUESE_BRAZILIAN
2175 LANGUAGE_PUNJABI = _gdi_.LANGUAGE_PUNJABI
2176 LANGUAGE_QUECHUA = _gdi_.LANGUAGE_QUECHUA
2177 LANGUAGE_RHAETO_ROMANCE = _gdi_.LANGUAGE_RHAETO_ROMANCE
2178 LANGUAGE_ROMANIAN = _gdi_.LANGUAGE_ROMANIAN
2179 LANGUAGE_RUSSIAN = _gdi_.LANGUAGE_RUSSIAN
2180 LANGUAGE_RUSSIAN_UKRAINE = _gdi_.LANGUAGE_RUSSIAN_UKRAINE
2181 LANGUAGE_SAMOAN = _gdi_.LANGUAGE_SAMOAN
2182 LANGUAGE_SANGHO = _gdi_.LANGUAGE_SANGHO
2183 LANGUAGE_SANSKRIT = _gdi_.LANGUAGE_SANSKRIT
2184 LANGUAGE_SCOTS_GAELIC = _gdi_.LANGUAGE_SCOTS_GAELIC
2185 LANGUAGE_SERBIAN = _gdi_.LANGUAGE_SERBIAN
2186 LANGUAGE_SERBIAN_CYRILLIC = _gdi_.LANGUAGE_SERBIAN_CYRILLIC
2187 LANGUAGE_SERBIAN_LATIN = _gdi_.LANGUAGE_SERBIAN_LATIN
2188 LANGUAGE_SERBO_CROATIAN = _gdi_.LANGUAGE_SERBO_CROATIAN
2189 LANGUAGE_SESOTHO = _gdi_.LANGUAGE_SESOTHO
2190 LANGUAGE_SETSWANA = _gdi_.LANGUAGE_SETSWANA
2191 LANGUAGE_SHONA = _gdi_.LANGUAGE_SHONA
2192 LANGUAGE_SINDHI = _gdi_.LANGUAGE_SINDHI
2193 LANGUAGE_SINHALESE = _gdi_.LANGUAGE_SINHALESE
2194 LANGUAGE_SISWATI = _gdi_.LANGUAGE_SISWATI
2195 LANGUAGE_SLOVAK = _gdi_.LANGUAGE_SLOVAK
2196 LANGUAGE_SLOVENIAN = _gdi_.LANGUAGE_SLOVENIAN
2197 LANGUAGE_SOMALI = _gdi_.LANGUAGE_SOMALI
2198 LANGUAGE_SPANISH = _gdi_.LANGUAGE_SPANISH
2199 LANGUAGE_SPANISH_ARGENTINA = _gdi_.LANGUAGE_SPANISH_ARGENTINA
2200 LANGUAGE_SPANISH_BOLIVIA = _gdi_.LANGUAGE_SPANISH_BOLIVIA
2201 LANGUAGE_SPANISH_CHILE = _gdi_.LANGUAGE_SPANISH_CHILE
2202 LANGUAGE_SPANISH_COLOMBIA = _gdi_.LANGUAGE_SPANISH_COLOMBIA
2203 LANGUAGE_SPANISH_COSTA_RICA = _gdi_.LANGUAGE_SPANISH_COSTA_RICA
2204 LANGUAGE_SPANISH_DOMINICAN_REPUBLIC = _gdi_.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
2205 LANGUAGE_SPANISH_ECUADOR = _gdi_.LANGUAGE_SPANISH_ECUADOR
2206 LANGUAGE_SPANISH_EL_SALVADOR = _gdi_.LANGUAGE_SPANISH_EL_SALVADOR
2207 LANGUAGE_SPANISH_GUATEMALA = _gdi_.LANGUAGE_SPANISH_GUATEMALA
2208 LANGUAGE_SPANISH_HONDURAS = _gdi_.LANGUAGE_SPANISH_HONDURAS
2209 LANGUAGE_SPANISH_MEXICAN = _gdi_.LANGUAGE_SPANISH_MEXICAN
2210 LANGUAGE_SPANISH_MODERN = _gdi_.LANGUAGE_SPANISH_MODERN
2211 LANGUAGE_SPANISH_NICARAGUA = _gdi_.LANGUAGE_SPANISH_NICARAGUA
2212 LANGUAGE_SPANISH_PANAMA = _gdi_.LANGUAGE_SPANISH_PANAMA
2213 LANGUAGE_SPANISH_PARAGUAY = _gdi_.LANGUAGE_SPANISH_PARAGUAY
2214 LANGUAGE_SPANISH_PERU = _gdi_.LANGUAGE_SPANISH_PERU
2215 LANGUAGE_SPANISH_PUERTO_RICO = _gdi_.LANGUAGE_SPANISH_PUERTO_RICO
2216 LANGUAGE_SPANISH_URUGUAY = _gdi_.LANGUAGE_SPANISH_URUGUAY
2217 LANGUAGE_SPANISH_US = _gdi_.LANGUAGE_SPANISH_US
2218 LANGUAGE_SPANISH_VENEZUELA = _gdi_.LANGUAGE_SPANISH_VENEZUELA
2219 LANGUAGE_SUNDANESE = _gdi_.LANGUAGE_SUNDANESE
2220 LANGUAGE_SWAHILI = _gdi_.LANGUAGE_SWAHILI
2221 LANGUAGE_SWEDISH = _gdi_.LANGUAGE_SWEDISH
2222 LANGUAGE_SWEDISH_FINLAND = _gdi_.LANGUAGE_SWEDISH_FINLAND
2223 LANGUAGE_TAGALOG = _gdi_.LANGUAGE_TAGALOG
2224 LANGUAGE_TAJIK = _gdi_.LANGUAGE_TAJIK
2225 LANGUAGE_TAMIL = _gdi_.LANGUAGE_TAMIL
2226 LANGUAGE_TATAR = _gdi_.LANGUAGE_TATAR
2227 LANGUAGE_TELUGU = _gdi_.LANGUAGE_TELUGU
2228 LANGUAGE_THAI = _gdi_.LANGUAGE_THAI
2229 LANGUAGE_TIBETAN = _gdi_.LANGUAGE_TIBETAN
2230 LANGUAGE_TIGRINYA = _gdi_.LANGUAGE_TIGRINYA
2231 LANGUAGE_TONGA = _gdi_.LANGUAGE_TONGA
2232 LANGUAGE_TSONGA = _gdi_.LANGUAGE_TSONGA
2233 LANGUAGE_TURKISH = _gdi_.LANGUAGE_TURKISH
2234 LANGUAGE_TURKMEN = _gdi_.LANGUAGE_TURKMEN
2235 LANGUAGE_TWI = _gdi_.LANGUAGE_TWI
2236 LANGUAGE_UIGHUR = _gdi_.LANGUAGE_UIGHUR
2237 LANGUAGE_UKRAINIAN = _gdi_.LANGUAGE_UKRAINIAN
2238 LANGUAGE_URDU = _gdi_.LANGUAGE_URDU
2239 LANGUAGE_URDU_INDIA = _gdi_.LANGUAGE_URDU_INDIA
2240 LANGUAGE_URDU_PAKISTAN = _gdi_.LANGUAGE_URDU_PAKISTAN
2241 LANGUAGE_UZBEK = _gdi_.LANGUAGE_UZBEK
2242 LANGUAGE_UZBEK_CYRILLIC = _gdi_.LANGUAGE_UZBEK_CYRILLIC
2243 LANGUAGE_UZBEK_LATIN = _gdi_.LANGUAGE_UZBEK_LATIN
2244 LANGUAGE_VIETNAMESE = _gdi_.LANGUAGE_VIETNAMESE
2245 LANGUAGE_VOLAPUK = _gdi_.LANGUAGE_VOLAPUK
2246 LANGUAGE_WELSH = _gdi_.LANGUAGE_WELSH
2247 LANGUAGE_WOLOF = _gdi_.LANGUAGE_WOLOF
2248 LANGUAGE_XHOSA = _gdi_.LANGUAGE_XHOSA
2249 LANGUAGE_YIDDISH = _gdi_.LANGUAGE_YIDDISH
2250 LANGUAGE_YORUBA = _gdi_.LANGUAGE_YORUBA
2251 LANGUAGE_ZHUANG = _gdi_.LANGUAGE_ZHUANG
2252 LANGUAGE_ZULU = _gdi_.LANGUAGE_ZULU
2253 LANGUAGE_USER_DEFINED = _gdi_.LANGUAGE_USER_DEFINED
2254 class LanguageInfo(object):
2255 """Proxy of C++ LanguageInfo class"""
2256 def __init__(self): raise RuntimeError, "No constructor defined"
2257 def __repr__(self):
2258 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2259 Language = property(_gdi_.LanguageInfo_Language_get, _gdi_.LanguageInfo_Language_set)
2260 CanonicalName = property(_gdi_.LanguageInfo_CanonicalName_get, _gdi_.LanguageInfo_CanonicalName_set)
2261 Description = property(_gdi_.LanguageInfo_Description_get, _gdi_.LanguageInfo_Description_set)
2262
2263 class LanguageInfoPtr(LanguageInfo):
2264 def __init__(self, this):
2265 self.this = this
2266 if not hasattr(self,"thisown"): self.thisown = 0
2267 self.__class__ = LanguageInfo
2268 _gdi_.LanguageInfo_swigregister(LanguageInfoPtr)
2269
2270 LOCALE_CAT_NUMBER = _gdi_.LOCALE_CAT_NUMBER
2271 LOCALE_CAT_DATE = _gdi_.LOCALE_CAT_DATE
2272 LOCALE_CAT_MONEY = _gdi_.LOCALE_CAT_MONEY
2273 LOCALE_CAT_MAX = _gdi_.LOCALE_CAT_MAX
2274 LOCALE_THOUSANDS_SEP = _gdi_.LOCALE_THOUSANDS_SEP
2275 LOCALE_DECIMAL_POINT = _gdi_.LOCALE_DECIMAL_POINT
2276 LOCALE_LOAD_DEFAULT = _gdi_.LOCALE_LOAD_DEFAULT
2277 LOCALE_CONV_ENCODING = _gdi_.LOCALE_CONV_ENCODING
2278 class Locale(object):
2279 """Proxy of C++ Locale class"""
2280 def __repr__(self):
2281 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2282 def __init__(self, *args, **kwargs):
2283 """__init__(self, int language=-1, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> Locale"""
2284 newobj = _gdi_.new_Locale(*args, **kwargs)
2285 self.this = newobj.this
2286 self.thisown = 1
2287 del newobj.thisown
2288 def __del__(self, destroy=_gdi_.delete_Locale):
2289 """__del__(self)"""
2290 try:
2291 if self.thisown: destroy(self)
2292 except: pass
2293
2294 def Init1(*args, **kwargs):
2295 """
2296 Init1(self, String szName, String szShort=EmptyString, String szLocale=EmptyString,
2297 bool bLoadDefault=True,
2298 bool bConvertEncoding=False) -> bool
2299 """
2300 return _gdi_.Locale_Init1(*args, **kwargs)
2301
2302 def Init2(*args, **kwargs):
2303 """Init2(self, int language=LANGUAGE_DEFAULT, int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING) -> bool"""
2304 return _gdi_.Locale_Init2(*args, **kwargs)
2305
2306 def Init(self, *_args, **_kwargs):
2307 if type(_args[0]) in [type(''), type(u'')]:
2308 val = self.Init1(*_args, **_kwargs)
2309 else:
2310 val = self.Init2(*_args, **_kwargs)
2311 return val
2312
2313 def GetSystemLanguage(*args, **kwargs):
2314 """GetSystemLanguage() -> int"""
2315 return _gdi_.Locale_GetSystemLanguage(*args, **kwargs)
2316
2317 GetSystemLanguage = staticmethod(GetSystemLanguage)
2318 def GetSystemEncoding(*args, **kwargs):
2319 """GetSystemEncoding() -> int"""
2320 return _gdi_.Locale_GetSystemEncoding(*args, **kwargs)
2321
2322 GetSystemEncoding = staticmethod(GetSystemEncoding)
2323 def GetSystemEncodingName(*args, **kwargs):
2324 """GetSystemEncodingName() -> String"""
2325 return _gdi_.Locale_GetSystemEncodingName(*args, **kwargs)
2326
2327 GetSystemEncodingName = staticmethod(GetSystemEncodingName)
2328 def IsOk(*args, **kwargs):
2329 """IsOk(self) -> bool"""
2330 return _gdi_.Locale_IsOk(*args, **kwargs)
2331
2332 def __nonzero__(self): return self.IsOk()
2333 def GetLocale(*args, **kwargs):
2334 """GetLocale(self) -> String"""
2335 return _gdi_.Locale_GetLocale(*args, **kwargs)
2336
2337 def GetLanguage(*args, **kwargs):
2338 """GetLanguage(self) -> int"""
2339 return _gdi_.Locale_GetLanguage(*args, **kwargs)
2340
2341 def GetSysName(*args, **kwargs):
2342 """GetSysName(self) -> String"""
2343 return _gdi_.Locale_GetSysName(*args, **kwargs)
2344
2345 def GetCanonicalName(*args, **kwargs):
2346 """GetCanonicalName(self) -> String"""
2347 return _gdi_.Locale_GetCanonicalName(*args, **kwargs)
2348
2349 def AddCatalogLookupPathPrefix(*args, **kwargs):
2350 """AddCatalogLookupPathPrefix(String prefix)"""
2351 return _gdi_.Locale_AddCatalogLookupPathPrefix(*args, **kwargs)
2352
2353 AddCatalogLookupPathPrefix = staticmethod(AddCatalogLookupPathPrefix)
2354 def AddCatalog(*args, **kwargs):
2355 """AddCatalog(self, String szDomain) -> bool"""
2356 return _gdi_.Locale_AddCatalog(*args, **kwargs)
2357
2358 def IsLoaded(*args, **kwargs):
2359 """IsLoaded(self, String szDomain) -> bool"""
2360 return _gdi_.Locale_IsLoaded(*args, **kwargs)
2361
2362 def GetLanguageInfo(*args, **kwargs):
2363 """GetLanguageInfo(int lang) -> LanguageInfo"""
2364 return _gdi_.Locale_GetLanguageInfo(*args, **kwargs)
2365
2366 GetLanguageInfo = staticmethod(GetLanguageInfo)
2367 def GetLanguageName(*args, **kwargs):
2368 """GetLanguageName(int lang) -> String"""
2369 return _gdi_.Locale_GetLanguageName(*args, **kwargs)
2370
2371 GetLanguageName = staticmethod(GetLanguageName)
2372 def FindLanguageInfo(*args, **kwargs):
2373 """FindLanguageInfo(String locale) -> LanguageInfo"""
2374 return _gdi_.Locale_FindLanguageInfo(*args, **kwargs)
2375
2376 FindLanguageInfo = staticmethod(FindLanguageInfo)
2377 def AddLanguage(*args, **kwargs):
2378 """AddLanguage(LanguageInfo info)"""
2379 return _gdi_.Locale_AddLanguage(*args, **kwargs)
2380
2381 AddLanguage = staticmethod(AddLanguage)
2382 def GetString(*args, **kwargs):
2383 """GetString(self, String szOrigString, String szDomain=EmptyString) -> String"""
2384 return _gdi_.Locale_GetString(*args, **kwargs)
2385
2386 def GetName(*args, **kwargs):
2387 """GetName(self) -> String"""
2388 return _gdi_.Locale_GetName(*args, **kwargs)
2389
2390
2391 class LocalePtr(Locale):
2392 def __init__(self, this):
2393 self.this = this
2394 if not hasattr(self,"thisown"): self.thisown = 0
2395 self.__class__ = Locale
2396 _gdi_.Locale_swigregister(LocalePtr)
2397
2398 def Locale_GetSystemLanguage(*args, **kwargs):
2399 """Locale_GetSystemLanguage() -> int"""
2400 return _gdi_.Locale_GetSystemLanguage(*args, **kwargs)
2401
2402 def Locale_GetSystemEncoding(*args, **kwargs):
2403 """Locale_GetSystemEncoding() -> int"""
2404 return _gdi_.Locale_GetSystemEncoding(*args, **kwargs)
2405
2406 def Locale_GetSystemEncodingName(*args, **kwargs):
2407 """Locale_GetSystemEncodingName() -> String"""
2408 return _gdi_.Locale_GetSystemEncodingName(*args, **kwargs)
2409
2410 def Locale_AddCatalogLookupPathPrefix(*args, **kwargs):
2411 """Locale_AddCatalogLookupPathPrefix(String prefix)"""
2412 return _gdi_.Locale_AddCatalogLookupPathPrefix(*args, **kwargs)
2413
2414 def Locale_GetLanguageInfo(*args, **kwargs):
2415 """Locale_GetLanguageInfo(int lang) -> LanguageInfo"""
2416 return _gdi_.Locale_GetLanguageInfo(*args, **kwargs)
2417
2418 def Locale_GetLanguageName(*args, **kwargs):
2419 """Locale_GetLanguageName(int lang) -> String"""
2420 return _gdi_.Locale_GetLanguageName(*args, **kwargs)
2421
2422 def Locale_FindLanguageInfo(*args, **kwargs):
2423 """Locale_FindLanguageInfo(String locale) -> LanguageInfo"""
2424 return _gdi_.Locale_FindLanguageInfo(*args, **kwargs)
2425
2426 def Locale_AddLanguage(*args, **kwargs):
2427 """Locale_AddLanguage(LanguageInfo info)"""
2428 return _gdi_.Locale_AddLanguage(*args, **kwargs)
2429
2430
2431 def GetLocale(*args, **kwargs):
2432 """GetLocale() -> Locale"""
2433 return _gdi_.GetLocale(*args, **kwargs)
2434 #---------------------------------------------------------------------------
2435
2436 CONVERT_STRICT = _gdi_.CONVERT_STRICT
2437 CONVERT_SUBSTITUTE = _gdi_.CONVERT_SUBSTITUTE
2438 PLATFORM_CURRENT = _gdi_.PLATFORM_CURRENT
2439 PLATFORM_UNIX = _gdi_.PLATFORM_UNIX
2440 PLATFORM_WINDOWS = _gdi_.PLATFORM_WINDOWS
2441 PLATFORM_OS2 = _gdi_.PLATFORM_OS2
2442 PLATFORM_MAC = _gdi_.PLATFORM_MAC
2443 class EncodingConverter(_core.Object):
2444 """Proxy of C++ EncodingConverter class"""
2445 def __repr__(self):
2446 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2447 def __init__(self, *args, **kwargs):
2448 """__init__(self) -> EncodingConverter"""
2449 newobj = _gdi_.new_EncodingConverter(*args, **kwargs)
2450 self.this = newobj.this
2451 self.thisown = 1
2452 del newobj.thisown
2453 def __del__(self, destroy=_gdi_.delete_EncodingConverter):
2454 """__del__(self)"""
2455 try:
2456 if self.thisown: destroy(self)
2457 except: pass
2458
2459 def Init(*args, **kwargs):
2460 """Init(self, int input_enc, int output_enc, int method=CONVERT_STRICT) -> bool"""
2461 return _gdi_.EncodingConverter_Init(*args, **kwargs)
2462
2463 def Convert(*args, **kwargs):
2464 """Convert(self, String input) -> String"""
2465 return _gdi_.EncodingConverter_Convert(*args, **kwargs)
2466
2467 def GetPlatformEquivalents(*args, **kwargs):
2468 """GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2469 return _gdi_.EncodingConverter_GetPlatformEquivalents(*args, **kwargs)
2470
2471 GetPlatformEquivalents = staticmethod(GetPlatformEquivalents)
2472 def GetAllEquivalents(*args, **kwargs):
2473 """GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2474 return _gdi_.EncodingConverter_GetAllEquivalents(*args, **kwargs)
2475
2476 GetAllEquivalents = staticmethod(GetAllEquivalents)
2477 def CanConvert(*args, **kwargs):
2478 """CanConvert(int encIn, int encOut) -> bool"""
2479 return _gdi_.EncodingConverter_CanConvert(*args, **kwargs)
2480
2481 CanConvert = staticmethod(CanConvert)
2482 def __nonzero__(self): return self.IsOk()
2483
2484 class EncodingConverterPtr(EncodingConverter):
2485 def __init__(self, this):
2486 self.this = this
2487 if not hasattr(self,"thisown"): self.thisown = 0
2488 self.__class__ = EncodingConverter
2489 _gdi_.EncodingConverter_swigregister(EncodingConverterPtr)
2490
2491 def GetTranslation(*args):
2492 """
2493 GetTranslation(String str) -> String
2494 GetTranslation(String str, String strPlural, size_t n) -> String
2495 """
2496 return _gdi_.GetTranslation(*args)
2497
2498 def EncodingConverter_GetPlatformEquivalents(*args, **kwargs):
2499 """EncodingConverter_GetPlatformEquivalents(int enc, int platform=PLATFORM_CURRENT) -> wxFontEncodingArray"""
2500 return _gdi_.EncodingConverter_GetPlatformEquivalents(*args, **kwargs)
2501
2502 def EncodingConverter_GetAllEquivalents(*args, **kwargs):
2503 """EncodingConverter_GetAllEquivalents(int enc) -> wxFontEncodingArray"""
2504 return _gdi_.EncodingConverter_GetAllEquivalents(*args, **kwargs)
2505
2506 def EncodingConverter_CanConvert(*args, **kwargs):
2507 """EncodingConverter_CanConvert(int encIn, int encOut) -> bool"""
2508 return _gdi_.EncodingConverter_CanConvert(*args, **kwargs)
2509
2510 #----------------------------------------------------------------------------
2511 # On MSW add the directory where the wxWidgets catalogs were installed
2512 # to the default catalog path.
2513 if wx.Platform == "__WXMSW__":
2514 import os
2515 _localedir = os.path.join(os.path.split(__file__)[0], "locale")
2516 Locale.AddCatalogLookupPathPrefix(_localedir)
2517 del os
2518
2519 #----------------------------------------------------------------------------
2520
2521 #---------------------------------------------------------------------------
2522
2523 class DC(_core.Object):
2524 """
2525 A wx.DC is a device context onto which graphics and text can be
2526 drawn. It is intended to represent a number of output devices in a
2527 generic way, so a window can have a device context associated with it,
2528 and a printer also has a device context. In this way, the same piece
2529 of code may write to a number of different devices, if the device
2530 context is used as a parameter.
2531
2532 Derived types of wxDC have documentation for specific features only,
2533 so refer to this section for most device context information.
2534
2535 The wx.DC class is abstract and can not be instantiated, you must use
2536 one of the derived classes instead. Which one will depend on the
2537 situation in which it is used.
2538 """
2539 def __init__(self): raise RuntimeError, "No constructor defined"
2540 def __repr__(self):
2541 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2542 def __del__(self, destroy=_gdi_.delete_DC):
2543 """__del__(self)"""
2544 try:
2545 if self.thisown: destroy(self)
2546 except: pass
2547
2548 def BeginDrawing(*args, **kwargs):
2549 """
2550 BeginDrawing(self)
2551
2552 Allows for optimization of drawing code on platforms that need it. On
2553 other platforms this is just an empty function and is harmless. To
2554 take advantage of this postential optimization simply enclose each
2555 group of calls to the drawing primitives within calls to
2556 `BeginDrawing` and `EndDrawing`.
2557 """
2558 return _gdi_.DC_BeginDrawing(*args, **kwargs)
2559
2560 def EndDrawing(*args, **kwargs):
2561 """
2562 EndDrawing(self)
2563
2564 Ends the group of drawing primitives started with `BeginDrawing`, and
2565 invokes whatever optimization is available for this DC type on the
2566 current platform.
2567 """
2568 return _gdi_.DC_EndDrawing(*args, **kwargs)
2569
2570 def FloodFill(*args, **kwargs):
2571 """
2572 FloodFill(self, int x, int y, Colour col, int style=FLOOD_SURFACE) -> bool
2573
2574 Flood fills the device context starting from the given point, using
2575 the current brush colour, and using a style:
2576
2577 - **wxFLOOD_SURFACE**: the flooding occurs until a colour other than
2578 the given colour is encountered.
2579
2580 - **wxFLOOD_BORDER**: the area to be flooded is bounded by the given
2581 colour.
2582
2583 Returns False if the operation failed.
2584
2585 Note: The present implementation for non-Windows platforms may fail to
2586 find colour borders if the pixels do not match the colour
2587 exactly. However the function will still return true.
2588 """
2589 return _gdi_.DC_FloodFill(*args, **kwargs)
2590
2591 def FloodFillPoint(*args, **kwargs):
2592 """
2593 FloodFillPoint(self, Point pt, Colour col, int style=FLOOD_SURFACE) -> bool
2594
2595 Flood fills the device context starting from the given point, using
2596 the current brush colour, and using a style:
2597
2598 - **wxFLOOD_SURFACE**: the flooding occurs until a colour other than
2599 the given colour is encountered.
2600
2601 - **wxFLOOD_BORDER**: the area to be flooded is bounded by the given
2602 colour.
2603
2604 Returns False if the operation failed.
2605
2606 Note: The present implementation for non-Windows platforms may fail to
2607 find colour borders if the pixels do not match the colour
2608 exactly. However the function will still return true.
2609 """
2610 return _gdi_.DC_FloodFillPoint(*args, **kwargs)
2611
2612 def GetPixel(*args, **kwargs):
2613 """
2614 GetPixel(self, int x, int y) -> Colour
2615
2616 Gets the colour at the specified location on the DC.
2617 """
2618 return _gdi_.DC_GetPixel(*args, **kwargs)
2619
2620 def GetPixelPoint(*args, **kwargs):
2621 """GetPixelPoint(self, Point pt) -> Colour"""
2622 return _gdi_.DC_GetPixelPoint(*args, **kwargs)
2623
2624 def DrawLine(*args, **kwargs):
2625 """
2626 DrawLine(self, int x1, int y1, int x2, int y2)
2627
2628 Draws a line from the first point to the second. The current pen is
2629 used for drawing the line. Note that the second point is *not* part of
2630 the line and is not drawn by this function (this is consistent with
2631 the behaviour of many other toolkits).
2632 """
2633 return _gdi_.DC_DrawLine(*args, **kwargs)
2634
2635 def DrawLinePoint(*args, **kwargs):
2636 """
2637 DrawLinePoint(self, Point pt1, Point pt2)
2638
2639 Draws a line from the first point to the second. The current pen is
2640 used for drawing the line. Note that the second point is *not* part of
2641 the line and is not drawn by this function (this is consistent with
2642 the behaviour of many other toolkits).
2643 """
2644 return _gdi_.DC_DrawLinePoint(*args, **kwargs)
2645
2646 def CrossHair(*args, **kwargs):
2647 """
2648 CrossHair(self, int x, int y)
2649
2650 Displays a cross hair using the current pen. This is a vertical and
2651 horizontal line the height and width of the window, centred on the
2652 given point.
2653 """
2654 return _gdi_.DC_CrossHair(*args, **kwargs)
2655
2656 def CrossHairPoint(*args, **kwargs):
2657 """
2658 CrossHairPoint(self, Point pt)
2659
2660 Displays a cross hair using the current pen. This is a vertical and
2661 horizontal line the height and width of the window, centred on the
2662 given point.
2663 """
2664 return _gdi_.DC_CrossHairPoint(*args, **kwargs)
2665
2666 def DrawArc(*args, **kwargs):
2667 """
2668 DrawArc(self, int x1, int y1, int x2, int y2, int xc, int yc)
2669
2670 Draws an arc of a circle, centred on the *center* point (xc, yc), from
2671 the first point to the second. The current pen is used for the outline
2672 and the current brush for filling the shape.
2673
2674 The arc is drawn in an anticlockwise direction from the start point to
2675 the end point.
2676 """
2677 return _gdi_.DC_DrawArc(*args, **kwargs)
2678
2679 def DrawArcPoint(*args, **kwargs):
2680 """
2681 DrawArcPoint(self, Point pt1, Point pt2, Point center)
2682
2683 Draws an arc of a circle, centred on the *center* point (xc, yc), from
2684 the first point to the second. The current pen is used for the outline
2685 and the current brush for filling the shape.
2686
2687 The arc is drawn in an anticlockwise direction from the start point to
2688 the end point.
2689 """
2690 return _gdi_.DC_DrawArcPoint(*args, **kwargs)
2691
2692 def DrawCheckMark(*args, **kwargs):
2693 """
2694 DrawCheckMark(self, int x, int y, int width, int height)
2695
2696 Draws a check mark inside the given rectangle.
2697 """
2698 return _gdi_.DC_DrawCheckMark(*args, **kwargs)
2699
2700 def DrawCheckMarkRect(*args, **kwargs):
2701 """
2702 DrawCheckMarkRect(self, Rect rect)
2703
2704 Draws a check mark inside the given rectangle.
2705 """
2706 return _gdi_.DC_DrawCheckMarkRect(*args, **kwargs)
2707
2708 def DrawEllipticArc(*args, **kwargs):
2709 """
2710 DrawEllipticArc(self, int x, int y, int w, int h, double start, double end)
2711
2712 Draws an arc of an ellipse, with the given rectangle defining the
2713 bounds of the ellipse. The current pen is used for drawing the arc and
2714 the current brush is used for drawing the pie.
2715
2716 The *start* and *end* parameters specify the start and end of the arc
2717 relative to the three-o'clock position from the center of the
2718 rectangle. Angles are specified in degrees (360 is a complete
2719 circle). Positive values mean counter-clockwise motion. If start is
2720 equal to end, a complete ellipse will be drawn.
2721 """
2722 return _gdi_.DC_DrawEllipticArc(*args, **kwargs)
2723
2724 def DrawEllipticArcPointSize(*args, **kwargs):
2725 """
2726 DrawEllipticArcPointSize(self, Point pt, Size sz, double start, double end)
2727
2728 Draws an arc of an ellipse, with the given rectangle defining the
2729 bounds of the ellipse. The current pen is used for drawing the arc and
2730 the current brush is used for drawing the pie.
2731
2732 The *start* and *end* parameters specify the start and end of the arc
2733 relative to the three-o'clock position from the center of the
2734 rectangle. Angles are specified in degrees (360 is a complete
2735 circle). Positive values mean counter-clockwise motion. If start is
2736 equal to end, a complete ellipse will be drawn.
2737 """
2738 return _gdi_.DC_DrawEllipticArcPointSize(*args, **kwargs)
2739
2740 def DrawPoint(*args, **kwargs):
2741 """
2742 DrawPoint(self, int x, int y)
2743
2744 Draws a point using the current pen.
2745 """
2746 return _gdi_.DC_DrawPoint(*args, **kwargs)
2747
2748 def DrawPointPoint(*args, **kwargs):
2749 """
2750 DrawPointPoint(self, Point pt)
2751
2752 Draws a point using the current pen.
2753 """
2754 return _gdi_.DC_DrawPointPoint(*args, **kwargs)
2755
2756 def DrawRectangle(*args, **kwargs):
2757 """
2758 DrawRectangle(self, int x, int y, int width, int height)
2759
2760 Draws a rectangle with the given top left corner, and with the given
2761 size. The current pen is used for the outline and the current brush
2762 for filling the shape.
2763 """
2764 return _gdi_.DC_DrawRectangle(*args, **kwargs)
2765
2766 def DrawRectangleRect(*args, **kwargs):
2767 """
2768 DrawRectangleRect(self, Rect rect)
2769
2770 Draws a rectangle with the given top left corner, and with the given
2771 size. The current pen is used for the outline and the current brush
2772 for filling the shape.
2773 """
2774 return _gdi_.DC_DrawRectangleRect(*args, **kwargs)
2775
2776 def DrawRectanglePointSize(*args, **kwargs):
2777 """
2778 DrawRectanglePointSize(self, Point pt, Size sz)
2779
2780 Draws a rectangle with the given top left corner, and with the given
2781 size. The current pen is used for the outline and the current brush
2782 for filling the shape.
2783 """
2784 return _gdi_.DC_DrawRectanglePointSize(*args, **kwargs)
2785
2786 def DrawRoundedRectangle(*args, **kwargs):
2787 """
2788 DrawRoundedRectangle(self, int x, int y, int width, int height, double radius)
2789
2790 Draws a rectangle with the given top left corner, and with the given
2791 size. The corners are quarter-circles using the given radius. The
2792 current pen is used for the outline and the current brush for filling
2793 the shape.
2794
2795 If radius is positive, the value is assumed to be the radius of the
2796 rounded corner. If radius is negative, the absolute value is assumed
2797 to be the proportion of the smallest dimension of the rectangle. This
2798 means that the corner can be a sensible size relative to the size of
2799 the rectangle, and also avoids the strange effects X produces when the
2800 corners are too big for the rectangle.
2801 """
2802 return _gdi_.DC_DrawRoundedRectangle(*args, **kwargs)
2803
2804 def DrawRoundedRectangleRect(*args, **kwargs):
2805 """
2806 DrawRoundedRectangleRect(self, Rect r, double radius)
2807
2808 Draws a rectangle with the given top left corner, and with the given
2809 size. The corners are quarter-circles using the given radius. The
2810 current pen is used for the outline and the current brush for filling
2811 the shape.
2812
2813 If radius is positive, the value is assumed to be the radius of the
2814 rounded corner. If radius is negative, the absolute value is assumed
2815 to be the proportion of the smallest dimension of the rectangle. This
2816 means that the corner can be a sensible size relative to the size of
2817 the rectangle, and also avoids the strange effects X produces when the
2818 corners are too big for the rectangle.
2819 """
2820 return _gdi_.DC_DrawRoundedRectangleRect(*args, **kwargs)
2821
2822 def DrawRoundedRectanglePointSize(*args, **kwargs):
2823 """
2824 DrawRoundedRectanglePointSize(self, Point pt, Size sz, double radius)
2825
2826 Draws a rectangle with the given top left corner, and with the given
2827 size. The corners are quarter-circles using the given radius. The
2828 current pen is used for the outline and the current brush for filling
2829 the shape.
2830
2831 If radius is positive, the value is assumed to be the radius of the
2832 rounded corner. If radius is negative, the absolute value is assumed
2833 to be the proportion of the smallest dimension of the rectangle. This
2834 means that the corner can be a sensible size relative to the size of
2835 the rectangle, and also avoids the strange effects X produces when the
2836 corners are too big for the rectangle.
2837 """
2838 return _gdi_.DC_DrawRoundedRectanglePointSize(*args, **kwargs)
2839
2840 def DrawCircle(*args, **kwargs):
2841 """
2842 DrawCircle(self, int x, int y, int radius)
2843
2844 Draws a circle with the given center point and radius. The current
2845 pen is used for the outline and the current brush for filling the
2846 shape.
2847 """
2848 return _gdi_.DC_DrawCircle(*args, **kwargs)
2849
2850 def DrawCirclePoint(*args, **kwargs):
2851 """
2852 DrawCirclePoint(self, Point pt, int radius)
2853
2854 Draws a circle with the given center point and radius. The current
2855 pen is used for the outline and the current brush for filling the
2856 shape.
2857 """
2858 return _gdi_.DC_DrawCirclePoint(*args, **kwargs)
2859
2860 def DrawEllipse(*args, **kwargs):
2861 """
2862 DrawEllipse(self, int x, int y, int width, int height)
2863
2864 Draws an ellipse contained in the specified rectangle. The current pen
2865 is used for the outline and the current brush for filling the shape.
2866 """
2867 return _gdi_.DC_DrawEllipse(*args, **kwargs)
2868
2869 def DrawEllipseRect(*args, **kwargs):
2870 """
2871 DrawEllipseRect(self, Rect rect)
2872
2873 Draws an ellipse contained in the specified rectangle. The current pen
2874 is used for the outline and the current brush for filling the shape.
2875 """
2876 return _gdi_.DC_DrawEllipseRect(*args, **kwargs)
2877
2878 def DrawEllipsePointSize(*args, **kwargs):
2879 """
2880 DrawEllipsePointSize(self, Point pt, Size sz)
2881
2882 Draws an ellipse contained in the specified rectangle. The current pen
2883 is used for the outline and the current brush for filling the shape.
2884 """
2885 return _gdi_.DC_DrawEllipsePointSize(*args, **kwargs)
2886
2887 def DrawIcon(*args, **kwargs):
2888 """
2889 DrawIcon(self, Icon icon, int x, int y)
2890
2891 Draw an icon on the display (does nothing if the device context is
2892 PostScript). This can be the simplest way of drawing bitmaps on a
2893 window.
2894 """
2895 return _gdi_.DC_DrawIcon(*args, **kwargs)
2896
2897 def DrawIconPoint(*args, **kwargs):
2898 """
2899 DrawIconPoint(self, Icon icon, Point pt)
2900
2901 Draw an icon on the display (does nothing if the device context is
2902 PostScript). This can be the simplest way of drawing bitmaps on a
2903 window.
2904 """
2905 return _gdi_.DC_DrawIconPoint(*args, **kwargs)
2906
2907 def DrawBitmap(*args, **kwargs):
2908 """
2909 DrawBitmap(self, Bitmap bmp, int x, int y, bool useMask=False)
2910
2911 Draw a bitmap on the device context at the specified point. If
2912 *transparent* is true and the bitmap has a transparency mask, (or
2913 alpha channel on the platforms that support it) then the bitmap will
2914 be drawn transparently.
2915 """
2916 return _gdi_.DC_DrawBitmap(*args, **kwargs)
2917
2918 def DrawBitmapPoint(*args, **kwargs):
2919 """
2920 DrawBitmapPoint(self, Bitmap bmp, Point pt, bool useMask=False)
2921
2922 Draw a bitmap on the device context at the specified point. If
2923 *transparent* is true and the bitmap has a transparency mask, (or
2924 alpha channel on the platforms that support it) then the bitmap will
2925 be drawn transparently.
2926 """
2927 return _gdi_.DC_DrawBitmapPoint(*args, **kwargs)
2928
2929 def DrawText(*args, **kwargs):
2930 """
2931 DrawText(self, String text, int x, int y)
2932
2933 Draws a text string at the specified point, using the current text
2934 font, and the current text foreground and background colours.
2935
2936 The coordinates refer to the top-left corner of the rectangle bounding
2937 the string. See `GetTextExtent` for how to get the dimensions of a
2938 text string, which can be used to position the text more precisely.
2939
2940 **NOTE**: under wxGTK the current logical function is used by this
2941 function but it is ignored by wxMSW. Thus, you should avoid using
2942 logical functions with this function in portable programs.
2943 """
2944 return _gdi_.DC_DrawText(*args, **kwargs)
2945
2946 def DrawTextPoint(*args, **kwargs):
2947 """
2948 DrawTextPoint(self, String text, Point pt)
2949
2950 Draws a text string at the specified point, using the current text
2951 font, and the current text foreground and background colours.
2952
2953 The coordinates refer to the top-left corner of the rectangle bounding
2954 the string. See `GetTextExtent` for how to get the dimensions of a
2955 text string, which can be used to position the text more precisely.
2956
2957 **NOTE**: under wxGTK the current logical function is used by this
2958 function but it is ignored by wxMSW. Thus, you should avoid using
2959 logical functions with this function in portable programs.
2960 """
2961 return _gdi_.DC_DrawTextPoint(*args, **kwargs)
2962
2963 def DrawRotatedText(*args, **kwargs):
2964 """
2965 DrawRotatedText(self, String text, int x, int y, double angle)
2966
2967 Draws the text rotated by *angle* degrees, if supported by the platform.
2968
2969 **NOTE**: Under Win9x only TrueType fonts can be drawn by this
2970 function. In particular, a font different from ``wx.NORMAL_FONT``
2971 should be used as the it is not normally a TrueType
2972 font. ``wx.SWISS_FONT`` is an example of a font which is.
2973 """
2974 return _gdi_.DC_DrawRotatedText(*args, **kwargs)
2975
2976 def DrawRotatedTextPoint(*args, **kwargs):
2977 """
2978 DrawRotatedTextPoint(self, String text, Point pt, double angle)
2979
2980 Draws the text rotated by *angle* degrees, if supported by the platform.
2981
2982 **NOTE**: Under Win9x only TrueType fonts can be drawn by this
2983 function. In particular, a font different from ``wx.NORMAL_FONT``
2984 should be used as the it is not normally a TrueType
2985 font. ``wx.SWISS_FONT`` is an example of a font which is.
2986 """
2987 return _gdi_.DC_DrawRotatedTextPoint(*args, **kwargs)
2988
2989 def Blit(*args, **kwargs):
2990 """
2991 Blit(self, int xdest, int ydest, int width, int height, DC source,
2992 int xsrc, int ysrc, int rop=COPY, bool useMask=False,
2993 int xsrcMask=-1, int ysrcMask=-1) -> bool
2994
2995 Copy from a source DC to this DC. Parameters specify the destination
2996 coordinates, size of area to copy, source DC, source coordinates,
2997 logical function, whether to use a bitmap mask, and mask source
2998 position.
2999 """
3000 return _gdi_.DC_Blit(*args, **kwargs)
3001
3002 def BlitPointSize(*args, **kwargs):
3003 """
3004 BlitPointSize(self, Point destPt, Size sz, DC source, Point srcPt, int rop=COPY,
3005 bool useMask=False, Point srcPtMask=DefaultPosition) -> bool
3006
3007 Copy from a source DC to this DC. Parameters specify the destination
3008 coordinates, size of area to copy, source DC, source coordinates,
3009 logical function, whether to use a bitmap mask, and mask source
3010 position.
3011 """
3012 return _gdi_.DC_BlitPointSize(*args, **kwargs)
3013
3014 def SetClippingRegion(*args, **kwargs):
3015 """
3016 SetClippingRegion(self, int x, int y, int width, int height)
3017
3018 Sets the clipping region for this device context to the intersection
3019 of the given region described by the parameters of this method and the
3020 previously set clipping region. You should call `DestroyClippingRegion`
3021 if you want to set the clipping region exactly to the region
3022 specified.
3023
3024 The clipping region is an area to which drawing is
3025 restricted. Possible uses for the clipping region are for clipping
3026 text or for speeding up window redraws when only a known area of the
3027 screen is damaged.
3028 """
3029 return _gdi_.DC_SetClippingRegion(*args, **kwargs)
3030
3031 def SetClippingRegionPointSize(*args, **kwargs):
3032 """
3033 SetClippingRegionPointSize(self, Point pt, Size sz)
3034
3035 Sets the clipping region for this device context to the intersection
3036 of the given region described by the parameters of this method and the
3037 previously set clipping region. You should call `DestroyClippingRegion`
3038 if you want to set the clipping region exactly to the region
3039 specified.
3040
3041 The clipping region is an area to which drawing is
3042 restricted. Possible uses for the clipping region are for clipping
3043 text or for speeding up window redraws when only a known area of the
3044 screen is damaged.
3045 """
3046 return _gdi_.DC_SetClippingRegionPointSize(*args, **kwargs)
3047
3048 def SetClippingRegionAsRegion(*args, **kwargs):
3049 """
3050 SetClippingRegionAsRegion(self, Region region)
3051
3052 Sets the clipping region for this device context to the intersection
3053 of the given region described by the parameters of this method and the
3054 previously set clipping region. You should call `DestroyClippingRegion`
3055 if you want to set the clipping region exactly to the region
3056 specified.
3057
3058 The clipping region is an area to which drawing is
3059 restricted. Possible uses for the clipping region are for clipping
3060 text or for speeding up window redraws when only a known area of the
3061 screen is damaged.
3062 """
3063 return _gdi_.DC_SetClippingRegionAsRegion(*args, **kwargs)
3064
3065 def SetClippingRect(*args, **kwargs):
3066 """
3067 SetClippingRect(self, Rect rect)
3068
3069 Sets the clipping region for this device context to the intersection
3070 of the given region described by the parameters of this method and the
3071 previously set clipping region. You should call `DestroyClippingRegion`
3072 if you want to set the clipping region exactly to the region
3073 specified.
3074
3075 The clipping region is an area to which drawing is
3076 restricted. Possible uses for the clipping region are for clipping
3077 text or for speeding up window redraws when only a known area of the
3078 screen is damaged.
3079 """
3080 return _gdi_.DC_SetClippingRect(*args, **kwargs)
3081
3082 def DrawLines(*args, **kwargs):
3083 """
3084 DrawLines(self, List points, int xoffset=0, int yoffset=0)
3085
3086 Draws lines using a sequence of `wx.Point` objects, adding the
3087 optional offset coordinate. The current pen is used for drawing the
3088 lines.
3089 """
3090 return _gdi_.DC_DrawLines(*args, **kwargs)
3091
3092 def DrawPolygon(*args, **kwargs):
3093 """
3094 DrawPolygon(self, List points, int xoffset=0, int yoffset=0,
3095 int fillStyle=ODDEVEN_RULE)
3096
3097 Draws a filled polygon using a sequence of `wx.Point` objects, adding
3098 the optional offset coordinate. The last argument specifies the fill
3099 rule: ``wx.ODDEVEN_RULE`` (the default) or ``wx.WINDING_RULE``.
3100
3101 The current pen is used for drawing the outline, and the current brush
3102 for filling the shape. Using a transparent brush suppresses
3103 filling. Note that wxWidgets automatically closes the first and last
3104 points.
3105 """
3106 return _gdi_.DC_DrawPolygon(*args, **kwargs)
3107
3108 def DrawLabel(*args, **kwargs):
3109 """
3110 DrawLabel(self, String text, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
3111 int indexAccel=-1)
3112
3113 Draw *text* within the specified rectangle, abiding by the alignment
3114 flags. Will additionally emphasize the character at *indexAccel* if
3115 it is not -1.
3116 """
3117 return _gdi_.DC_DrawLabel(*args, **kwargs)
3118
3119 def DrawImageLabel(*args, **kwargs):
3120 """
3121 DrawImageLabel(self, String text, Bitmap image, Rect rect, int alignment=wxALIGN_LEFT|wxALIGN_TOP,
3122 int indexAccel=-1) -> Rect
3123
3124 Draw *text* and an image (which may be ``wx.NullBitmap`` to skip
3125 drawing it) within the specified rectangle, abiding by the alignment
3126 flags. Will additionally emphasize the character at *indexAccel* if
3127 it is not -1. Returns the bounding rectangle.
3128 """
3129 return _gdi_.DC_DrawImageLabel(*args, **kwargs)
3130
3131 def DrawSpline(*args, **kwargs):
3132 """
3133 DrawSpline(self, List points)
3134
3135 Draws a spline between all given control points, (a list of `wx.Point`
3136 objects) using the current pen. The spline is drawn using a series of
3137 lines, using an algorithm taken from the X drawing program 'XFIG'.
3138 """
3139 return _gdi_.DC_DrawSpline(*args, **kwargs)
3140
3141 def Clear(*args, **kwargs):
3142 """
3143 Clear(self)
3144
3145 Clears the device context using the current background brush.
3146 """
3147 return _gdi_.DC_Clear(*args, **kwargs)
3148
3149 def StartDoc(*args, **kwargs):
3150 """
3151 StartDoc(self, String message) -> bool
3152
3153 Starts a document (only relevant when outputting to a
3154 printer). *Message* is a message to show whilst printing.
3155 """
3156 return _gdi_.DC_StartDoc(*args, **kwargs)
3157
3158 def EndDoc(*args, **kwargs):
3159 """
3160 EndDoc(self)
3161
3162 Ends a document (only relevant when outputting to a printer).
3163 """
3164 return _gdi_.DC_EndDoc(*args, **kwargs)
3165
3166 def StartPage(*args, **kwargs):
3167 """
3168 StartPage(self)
3169
3170 Starts a document page (only relevant when outputting to a printer).
3171 """
3172 return _gdi_.DC_StartPage(*args, **kwargs)
3173
3174 def EndPage(*args, **kwargs):
3175 """
3176 EndPage(self)
3177
3178 Ends a document page (only relevant when outputting to a printer).
3179 """
3180 return _gdi_.DC_EndPage(*args, **kwargs)
3181
3182 def SetFont(*args, **kwargs):
3183 """
3184 SetFont(self, Font font)
3185
3186 Sets the current font for the DC. It must be a valid font, in
3187 particular you should not pass ``wx.NullFont`` to this method.
3188 """
3189 return _gdi_.DC_SetFont(*args, **kwargs)
3190
3191 def SetPen(*args, **kwargs):
3192 """
3193 SetPen(self, Pen pen)
3194
3195 Sets the current pen for the DC.
3196
3197 If the argument is ``wx.NullPen``, the current pen is selected out of the
3198 device context, and the original pen restored.
3199 """
3200 return _gdi_.DC_SetPen(*args, **kwargs)
3201
3202 def SetBrush(*args, **kwargs):
3203 """
3204 SetBrush(self, Brush brush)
3205
3206 Sets the current brush for the DC.
3207
3208 If the argument is ``wx.NullBrush``, the current brush is selected out
3209 of the device context, and the original brush restored, allowing the
3210 current brush to be destroyed safely.
3211 """
3212 return _gdi_.DC_SetBrush(*args, **kwargs)
3213
3214 def SetBackground(*args, **kwargs):
3215 """
3216 SetBackground(self, Brush brush)
3217
3218 Sets the current background brush for the DC.
3219 """
3220 return _gdi_.DC_SetBackground(*args, **kwargs)
3221
3222 def SetBackgroundMode(*args, **kwargs):
3223 """
3224 SetBackgroundMode(self, int mode)
3225
3226 *mode* may be one of ``wx.SOLID`` and ``wx.TRANSPARENT``. This setting
3227 determines whether text will be drawn with a background colour or
3228 not.
3229 """
3230 return _gdi_.DC_SetBackgroundMode(*args, **kwargs)
3231
3232 def SetPalette(*args, **kwargs):
3233 """
3234 SetPalette(self, Palette palette)
3235
3236 If this is a window DC or memory DC, assigns the given palette to the
3237 window or bitmap associated with the DC. If the argument is
3238 ``wx.NullPalette``, the current palette is selected out of the device
3239 context, and the original palette restored.
3240 """
3241 return _gdi_.DC_SetPalette(*args, **kwargs)
3242
3243 def DestroyClippingRegion(*args, **kwargs):
3244 """
3245 DestroyClippingRegion(self)
3246
3247 Destroys the current clipping region so that none of the DC is
3248 clipped.
3249 """
3250 return _gdi_.DC_DestroyClippingRegion(*args, **kwargs)
3251
3252 def GetClippingBox(*args, **kwargs):
3253 """
3254 GetClippingBox() -> (x, y, width, height)
3255
3256 Gets the rectangle surrounding the current clipping region.
3257 """
3258 return _gdi_.DC_GetClippingBox(*args, **kwargs)
3259
3260 def GetClippingRect(*args, **kwargs):
3261 """
3262 GetClippingRect(self) -> Rect
3263
3264 Gets the rectangle surrounding the current clipping region.
3265 """
3266 return _gdi_.DC_GetClippingRect(*args, **kwargs)
3267
3268 def GetCharHeight(*args, **kwargs):
3269 """
3270 GetCharHeight(self) -> int
3271
3272 Gets the character height of the currently set font.
3273 """
3274 return _gdi_.DC_GetCharHeight(*args, **kwargs)
3275
3276 def GetCharWidth(*args, **kwargs):
3277 """
3278 GetCharWidth(self) -> int
3279
3280 Gets the average character width of the currently set font.
3281 """
3282 return _gdi_.DC_GetCharWidth(*args, **kwargs)
3283
3284 def GetTextExtent(*args, **kwargs):
3285 """
3286 GetTextExtent(wxString string) -> (width, height)
3287
3288 Get the width and height of the text using the current font. Only
3289 works for single line strings.
3290 """
3291 return _gdi_.DC_GetTextExtent(*args, **kwargs)
3292
3293 def GetFullTextExtent(*args, **kwargs):
3294 """
3295 GetFullTextExtent(wxString string, Font font=None) ->
3296 (width, height, descent, externalLeading)
3297
3298 Get the width, height, decent and leading of the text using the
3299 current or specified font. Only works for single line strings.
3300 """
3301 return _gdi_.DC_GetFullTextExtent(*args, **kwargs)
3302
3303 def GetMultiLineTextExtent(*args, **kwargs):
3304 """
3305 GetMultiLineTextExtent(wxString string, Font font=None) ->
3306 (width, height, descent, externalLeading)
3307
3308 Get the width, height, decent and leading of the text using the
3309 current or specified font. Works for single as well as multi-line
3310 strings.
3311 """
3312 return _gdi_.DC_GetMultiLineTextExtent(*args, **kwargs)
3313
3314 def GetPartialTextExtents(*args, **kwargs):
3315 """
3316 GetPartialTextExtents(self, text) -> [widths]
3317
3318 Returns a list of integers such that each value is the distance in
3319 pixels from the begining of text to the coresponding character of
3320 *text*. The generic version simply builds a running total of the widths
3321 of each character using GetTextExtent, however if the various
3322 platforms have a native API function that is faster or more accurate
3323 than the generic implementaiton then it will be used instead.
3324 """
3325 return _gdi_.DC_GetPartialTextExtents(*args, **kwargs)
3326
3327 def GetSize(*args, **kwargs):
3328 """
3329 GetSize(self) -> Size
3330
3331 This gets the horizontal and vertical resolution in device units. It
3332 can be used to scale graphics to fit the page. For example, if *maxX*
3333 and *maxY* represent the maximum horizontal and vertical 'pixel' values
3334 used in your application, the following code will scale the graphic to
3335 fit on the printer page::
3336
3337 w, h = dc.GetSize()
3338 scaleX = maxX*1.0 / w
3339 scaleY = maxY*1.0 / h
3340 dc.SetUserScale(min(scaleX,scaleY),min(scaleX,scaleY))
3341
3342 """
3343 return _gdi_.DC_GetSize(*args, **kwargs)
3344
3345 def GetSizeTuple(*args, **kwargs):
3346 """
3347 GetSizeTuple() -> (width, height)
3348
3349 This gets the horizontal and vertical resolution in device units. It
3350 can be used to scale graphics to fit the page. For example, if *maxX*
3351 and *maxY* represent the maximum horizontal and vertical 'pixel' values
3352 used in your application, the following code will scale the graphic to
3353 fit on the printer page::
3354
3355 w, h = dc.GetSize()
3356 scaleX = maxX*1.0 / w
3357 scaleY = maxY*1.0 / h
3358 dc.SetUserScale(min(scaleX,scaleY),min(scaleX,scaleY))
3359
3360 """
3361 return _gdi_.DC_GetSizeTuple(*args, **kwargs)
3362
3363 def GetSizeMM(*args, **kwargs):
3364 """
3365 GetSizeMM(self) -> Size
3366
3367 Get the DC size in milimeters.
3368 """
3369 return _gdi_.DC_GetSizeMM(*args, **kwargs)
3370
3371 def GetSizeMMTuple(*args, **kwargs):
3372 """
3373 GetSizeMMTuple() -> (width, height)
3374
3375 Get the DC size in milimeters.
3376 """
3377 return _gdi_.DC_GetSizeMMTuple(*args, **kwargs)
3378
3379 def DeviceToLogicalX(*args, **kwargs):
3380 """
3381 DeviceToLogicalX(self, int x) -> int
3382
3383 Convert device X coordinate to logical coordinate, using the current
3384 mapping mode.
3385 """
3386 return _gdi_.DC_DeviceToLogicalX(*args, **kwargs)
3387
3388 def DeviceToLogicalY(*args, **kwargs):
3389 """
3390 DeviceToLogicalY(self, int y) -> int
3391
3392 Converts device Y coordinate to logical coordinate, using the current
3393 mapping mode.
3394 """
3395 return _gdi_.DC_DeviceToLogicalY(*args, **kwargs)
3396
3397 def DeviceToLogicalXRel(*args, **kwargs):
3398 """
3399 DeviceToLogicalXRel(self, int x) -> int
3400
3401 Convert device X coordinate to relative logical coordinate, using the
3402 current mapping mode but ignoring the x axis orientation. Use this
3403 function for converting a width, for example.
3404 """
3405 return _gdi_.DC_DeviceToLogicalXRel(*args, **kwargs)
3406
3407 def DeviceToLogicalYRel(*args, **kwargs):
3408 """
3409 DeviceToLogicalYRel(self, int y) -> int
3410
3411 Convert device Y coordinate to relative logical coordinate, using the
3412 current mapping mode but ignoring the y axis orientation. Use this
3413 function for converting a height, for example.
3414 """
3415 return _gdi_.DC_DeviceToLogicalYRel(*args, **kwargs)
3416
3417 def LogicalToDeviceX(*args, **kwargs):
3418 """
3419 LogicalToDeviceX(self, int x) -> int
3420
3421 Converts logical X coordinate to device coordinate, using the current
3422 mapping mode.
3423 """
3424 return _gdi_.DC_LogicalToDeviceX(*args, **kwargs)
3425
3426 def LogicalToDeviceY(*args, **kwargs):
3427 """
3428 LogicalToDeviceY(self, int y) -> int
3429
3430 Converts logical Y coordinate to device coordinate, using the current
3431 mapping mode.
3432 """
3433 return _gdi_.DC_LogicalToDeviceY(*args, **kwargs)
3434
3435 def LogicalToDeviceXRel(*args, **kwargs):
3436 """
3437 LogicalToDeviceXRel(self, int x) -> int
3438
3439 Converts logical X coordinate to relative device coordinate, using the
3440 current mapping mode but ignoring the x axis orientation. Use this for
3441 converting a width, for example.
3442 """
3443 return _gdi_.DC_LogicalToDeviceXRel(*args, **kwargs)
3444
3445 def LogicalToDeviceYRel(*args, **kwargs):
3446 """
3447 LogicalToDeviceYRel(self, int y) -> int
3448
3449 Converts logical Y coordinate to relative device coordinate, using the
3450 current mapping mode but ignoring the y axis orientation. Use this for
3451 converting a height, for example.
3452 """
3453 return _gdi_.DC_LogicalToDeviceYRel(*args, **kwargs)
3454
3455 def CanDrawBitmap(*args, **kwargs):
3456 """CanDrawBitmap(self) -> bool"""
3457 return _gdi_.DC_CanDrawBitmap(*args, **kwargs)
3458
3459 def CanGetTextExtent(*args, **kwargs):
3460 """CanGetTextExtent(self) -> bool"""
3461 return _gdi_.DC_CanGetTextExtent(*args, **kwargs)
3462
3463 def GetDepth(*args, **kwargs):
3464 """
3465 GetDepth(self) -> int
3466
3467 Returns the colour depth of the DC.
3468 """
3469 return _gdi_.DC_GetDepth(*args, **kwargs)
3470
3471 def GetPPI(*args, **kwargs):
3472 """
3473 GetPPI(self) -> Size
3474
3475 Resolution in Pixels per inch
3476 """
3477 return _gdi_.DC_GetPPI(*args, **kwargs)
3478
3479 def Ok(*args, **kwargs):
3480 """
3481 Ok(self) -> bool
3482
3483 Returns true if the DC is ok to use.
3484 """
3485 return _gdi_.DC_Ok(*args, **kwargs)
3486
3487 def GetBackgroundMode(*args, **kwargs):
3488 """
3489 GetBackgroundMode(self) -> int
3490
3491 Returns the current background mode, either ``wx.SOLID`` or
3492 ``wx.TRANSPARENT``.
3493 """
3494 return _gdi_.DC_GetBackgroundMode(*args, **kwargs)
3495
3496 def GetBackground(*args, **kwargs):
3497 """
3498 GetBackground(self) -> Brush
3499
3500 Gets the brush used for painting the background.
3501 """
3502 return _gdi_.DC_GetBackground(*args, **kwargs)
3503
3504 def GetBrush(*args, **kwargs):
3505 """
3506 GetBrush(self) -> Brush
3507
3508 Gets the current brush
3509 """
3510 return _gdi_.DC_GetBrush(*args, **kwargs)
3511
3512 def GetFont(*args, **kwargs):
3513 """
3514 GetFont(self) -> Font
3515
3516 Gets the current font
3517 """
3518 return _gdi_.DC_GetFont(*args, **kwargs)
3519
3520 def GetPen(*args, **kwargs):
3521 """
3522 GetPen(self) -> Pen
3523
3524 Gets the current pen
3525 """
3526 return _gdi_.DC_GetPen(*args, **kwargs)
3527
3528 def GetTextBackground(*args, **kwargs):
3529 """
3530 GetTextBackground(self) -> Colour
3531
3532 Gets the current text background colour
3533 """
3534 return _gdi_.DC_GetTextBackground(*args, **kwargs)
3535
3536 def GetTextForeground(*args, **kwargs):
3537 """
3538 GetTextForeground(self) -> Colour
3539
3540 Gets the current text foreground colour
3541 """
3542 return _gdi_.DC_GetTextForeground(*args, **kwargs)
3543
3544 def SetTextForeground(*args, **kwargs):
3545 """
3546 SetTextForeground(self, Colour colour)
3547
3548 Sets the current text foreground colour for the DC.
3549 """
3550 return _gdi_.DC_SetTextForeground(*args, **kwargs)
3551
3552 def SetTextBackground(*args, **kwargs):
3553 """
3554 SetTextBackground(self, Colour colour)
3555
3556 Sets the current text background colour for the DC.
3557 """
3558 return _gdi_.DC_SetTextBackground(*args, **kwargs)
3559
3560 def GetMapMode(*args, **kwargs):
3561 """
3562 GetMapMode(self) -> int
3563
3564 Gets the current *mapping mode* for the device context
3565 """
3566 return _gdi_.DC_GetMapMode(*args, **kwargs)
3567
3568 def SetMapMode(*args, **kwargs):
3569 """
3570 SetMapMode(self, int mode)
3571
3572 The *mapping mode* of the device context defines the unit of
3573 measurement used to convert logical units to device units. The
3574 mapping mode can be one of the following:
3575
3576 ================ =============================================
3577 wx.MM_TWIPS Each logical unit is 1/20 of a point, or 1/1440
3578 of an inch.
3579 wx.MM_POINTS Each logical unit is a point, or 1/72 of an inch.
3580 wx.MM_METRIC Each logical unit is 1 mm.
3581 wx.MM_LOMETRIC Each logical unit is 1/10 of a mm.
3582 wx.MM_TEXT Each logical unit is 1 pixel.
3583 ================ =============================================
3584
3585 """
3586 return _gdi_.DC_SetMapMode(*args, **kwargs)
3587
3588 def GetUserScale(*args, **kwargs):
3589 """
3590 GetUserScale(self) -> (xScale, yScale)
3591
3592 Gets the current user scale factor (set by `SetUserScale`).
3593 """
3594 return _gdi_.DC_GetUserScale(*args, **kwargs)
3595
3596 def SetUserScale(*args, **kwargs):
3597 """
3598 SetUserScale(self, double x, double y)
3599
3600 Sets the user scaling factor, useful for applications which require
3601 'zooming'.
3602 """
3603 return _gdi_.DC_SetUserScale(*args, **kwargs)
3604
3605 def GetLogicalScale(*args, **kwargs):
3606 """GetLogicalScale() -> (xScale, yScale)"""
3607 return _gdi_.DC_GetLogicalScale(*args, **kwargs)
3608
3609 def SetLogicalScale(*args, **kwargs):
3610 """SetLogicalScale(self, double x, double y)"""
3611 return _gdi_.DC_SetLogicalScale(*args, **kwargs)
3612
3613 def GetLogicalOrigin(*args, **kwargs):
3614 """GetLogicalOrigin(self) -> Point"""
3615 return _gdi_.DC_GetLogicalOrigin(*args, **kwargs)
3616
3617 def GetLogicalOriginTuple(*args, **kwargs):
3618 """GetLogicalOriginTuple() -> (x,y)"""
3619 return _gdi_.DC_GetLogicalOriginTuple(*args, **kwargs)
3620
3621 def SetLogicalOrigin(*args, **kwargs):
3622 """SetLogicalOrigin(self, int x, int y)"""
3623 return _gdi_.DC_SetLogicalOrigin(*args, **kwargs)
3624
3625 def SetLogicalOriginPoint(*args, **kwargs):
3626 """SetLogicalOriginPoint(self, Point point)"""
3627 return _gdi_.DC_SetLogicalOriginPoint(*args, **kwargs)
3628
3629 def GetDeviceOrigin(*args, **kwargs):
3630 """GetDeviceOrigin(self) -> Point"""
3631 return _gdi_.DC_GetDeviceOrigin(*args, **kwargs)
3632
3633 def GetDeviceOriginTuple(*args, **kwargs):
3634 """GetDeviceOriginTuple() -> (x,y)"""
3635 return _gdi_.DC_GetDeviceOriginTuple(*args, **kwargs)
3636
3637 def SetDeviceOrigin(*args, **kwargs):
3638 """SetDeviceOrigin(self, int x, int y)"""
3639 return _gdi_.DC_SetDeviceOrigin(*args, **kwargs)
3640
3641 def SetDeviceOriginPoint(*args, **kwargs):
3642 """SetDeviceOriginPoint(self, Point point)"""
3643 return _gdi_.DC_SetDeviceOriginPoint(*args, **kwargs)
3644
3645 def SetAxisOrientation(*args, **kwargs):
3646 """
3647 SetAxisOrientation(self, bool xLeftRight, bool yBottomUp)
3648
3649 Sets the x and y axis orientation (i.e., the direction from lowest to
3650 highest values on the axis). The default orientation is the natural
3651 orientation, e.g. x axis from left to right and y axis from bottom up.
3652 """
3653 return _gdi_.DC_SetAxisOrientation(*args, **kwargs)
3654
3655 def GetLogicalFunction(*args, **kwargs):
3656 """
3657 GetLogicalFunction(self) -> int
3658
3659 Gets the current logical function (set by `SetLogicalFunction`).
3660 """
3661 return _gdi_.DC_GetLogicalFunction(*args, **kwargs)
3662
3663 def SetLogicalFunction(*args, **kwargs):
3664 """
3665 SetLogicalFunction(self, int function)
3666
3667 Sets the current logical function for the device context. This
3668 determines how a source pixel (from a pen or brush colour, or source
3669 device context if using `Blit`) combines with a destination pixel in
3670 the current device context.
3671
3672 The possible values and their meaning in terms of source and
3673 destination pixel values are as follows:
3674
3675 ================ ==========================
3676 wx.AND src AND dst
3677 wx.AND_INVERT (NOT src) AND dst
3678 wx.AND_REVERSE src AND (NOT dst)
3679 wx.CLEAR 0
3680 wx.COPY src
3681 wx.EQUIV (NOT src) XOR dst
3682 wx.INVERT NOT dst
3683 wx.NAND (NOT src) OR (NOT dst)
3684 wx.NOR (NOT src) AND (NOT dst)
3685 wx.NO_OP dst
3686 wx.OR src OR dst
3687 wx.OR_INVERT (NOT src) OR dst
3688 wx.OR_REVERSE src OR (NOT dst)
3689 wx.SET 1
3690 wx.SRC_INVERT NOT src
3691 wx.XOR src XOR dst
3692 ================ ==========================
3693
3694 The default is wx.COPY, which simply draws with the current
3695 colour. The others combine the current colour and the background using
3696 a logical operation. wx.INVERT is commonly used for drawing rubber
3697 bands or moving outlines, since drawing twice reverts to the original
3698 colour.
3699
3700 """
3701 return _gdi_.DC_SetLogicalFunction(*args, **kwargs)
3702
3703 def ComputeScaleAndOrigin(*args, **kwargs):
3704 """
3705 ComputeScaleAndOrigin(self)
3706
3707 Performs all necessary computations for given platform and context
3708 type after each change of scale and origin parameters. Usually called
3709 automatically internally after such changes.
3710
3711 """
3712 return _gdi_.DC_ComputeScaleAndOrigin(*args, **kwargs)
3713
3714 def SetOptimization(self, optimize):
3715 pass
3716 def GetOptimization(self):
3717 return False
3718
3719 SetOptimization = wx._deprecated(SetOptimization)
3720 GetOptimization = wx._deprecated(GetOptimization)
3721
3722 def CalcBoundingBox(*args, **kwargs):
3723 """
3724 CalcBoundingBox(self, int x, int y)
3725
3726 Adds the specified point to the bounding box which can be retrieved
3727 with `MinX`, `MaxX` and `MinY`, `MaxY` or `GetBoundingBox` functions.
3728 """
3729 return _gdi_.DC_CalcBoundingBox(*args, **kwargs)
3730
3731 def CalcBoundingBoxPoint(*args, **kwargs):
3732 """
3733 CalcBoundingBoxPoint(self, Point point)
3734
3735 Adds the specified point to the bounding box which can be retrieved
3736 with `MinX`, `MaxX` and `MinY`, `MaxY` or `GetBoundingBox` functions.
3737 """
3738 return _gdi_.DC_CalcBoundingBoxPoint(*args, **kwargs)
3739
3740 def ResetBoundingBox(*args, **kwargs):
3741 """
3742 ResetBoundingBox(self)
3743
3744 Resets the bounding box: after a call to this function, the bounding
3745 box doesn't contain anything.
3746 """
3747 return _gdi_.DC_ResetBoundingBox(*args, **kwargs)
3748
3749 def MinX(*args, **kwargs):
3750 """
3751 MinX(self) -> int
3752
3753 Gets the minimum horizontal extent used in drawing commands so far.
3754 """
3755 return _gdi_.DC_MinX(*args, **kwargs)
3756
3757 def MaxX(*args, **kwargs):
3758 """
3759 MaxX(self) -> int
3760
3761 Gets the maximum horizontal extent used in drawing commands so far.
3762 """
3763 return _gdi_.DC_MaxX(*args, **kwargs)
3764
3765 def MinY(*args, **kwargs):
3766 """
3767 MinY(self) -> int
3768
3769 Gets the minimum vertical extent used in drawing commands so far.
3770 """
3771 return _gdi_.DC_MinY(*args, **kwargs)
3772
3773 def MaxY(*args, **kwargs):
3774 """
3775 MaxY(self) -> int
3776
3777 Gets the maximum vertical extent used in drawing commands so far.
3778 """
3779 return _gdi_.DC_MaxY(*args, **kwargs)
3780
3781 def GetBoundingBox(*args, **kwargs):
3782 """
3783 GetBoundingBox() -> (x1,y1, x2,y2)
3784
3785 Returns the min and max points used in drawing commands so far.
3786 """
3787 return _gdi_.DC_GetBoundingBox(*args, **kwargs)
3788
3789 def __nonzero__(self): return self.Ok()
3790 def GetHDC(*args, **kwargs):
3791 """GetHDC(self) -> long"""
3792 return _gdi_.DC_GetHDC(*args, **kwargs)
3793
3794 def _DrawPointList(*args, **kwargs):
3795 """_DrawPointList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
3796 return _gdi_.DC__DrawPointList(*args, **kwargs)
3797
3798 def _DrawLineList(*args, **kwargs):
3799 """_DrawLineList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
3800 return _gdi_.DC__DrawLineList(*args, **kwargs)
3801
3802 def _DrawRectangleList(*args, **kwargs):
3803 """_DrawRectangleList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
3804 return _gdi_.DC__DrawRectangleList(*args, **kwargs)
3805
3806 def _DrawEllipseList(*args, **kwargs):
3807 """_DrawEllipseList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
3808 return _gdi_.DC__DrawEllipseList(*args, **kwargs)
3809
3810 def _DrawPolygonList(*args, **kwargs):
3811 """_DrawPolygonList(self, PyObject pyCoords, PyObject pyPens, PyObject pyBrushes) -> PyObject"""
3812 return _gdi_.DC__DrawPolygonList(*args, **kwargs)
3813
3814 def _DrawTextList(*args, **kwargs):
3815 """
3816 _DrawTextList(self, PyObject textList, PyObject pyPoints, PyObject foregroundList,
3817 PyObject backgroundList) -> PyObject
3818 """
3819 return _gdi_.DC__DrawTextList(*args, **kwargs)
3820
3821 def DrawPointList(self, points, pens=None):
3822 """
3823 Draw a list of points as quickly as possible.
3824
3825 :param points: A sequence of 2-element sequences representing
3826 each point to draw, (x,y).
3827 :param pens: If None, then the current pen is used. If a
3828 single pen then it will be used for all points. If
3829 a list of pens then there should be one for each point
3830 in points.
3831 """
3832 if pens is None:
3833 pens = []
3834 elif isinstance(pens, wx.Pen):
3835 pens = [pens]
3836 elif len(pens) != len(points):
3837 raise ValueError('points and pens must have same length')
3838 return self._DrawPointList(points, pens, [])
3839
3840
3841 def DrawLineList(self, lines, pens=None):
3842 """
3843 Draw a list of lines as quickly as possible.
3844
3845 :param lines: A sequence of 4-element sequences representing
3846 each line to draw, (x1,y1, x2,y2).
3847 :param pens: If None, then the current pen is used. If a
3848 single pen then it will be used for all lines. If
3849 a list of pens then there should be one for each line
3850 in lines.
3851 """
3852 if pens is None:
3853 pens = []
3854 elif isinstance(pens, wx.Pen):
3855 pens = [pens]
3856 elif len(pens) != len(lines):
3857 raise ValueError('lines and pens must have same length')
3858 return self._DrawLineList(lines, pens, [])
3859
3860
3861 def DrawRectangleList(self, rectangles, pens=None, brushes=None):
3862 """
3863 Draw a list of rectangles as quickly as possible.
3864
3865 :param rectangles: A sequence of 4-element sequences representing
3866 each rectangle to draw, (x,y, w,h).
3867 :param pens: If None, then the current pen is used. If a
3868 single pen then it will be used for all rectangles.
3869 If a list of pens then there should be one for each
3870 rectangle in rectangles.
3871 :param brushes: A brush or brushes to be used to fill the rectagles,
3872 with similar semantics as the pens parameter.
3873 """
3874 if pens is None:
3875 pens = []
3876 elif isinstance(pens, wx.Pen):
3877 pens = [pens]
3878 elif len(pens) != len(rectangles):
3879 raise ValueError('rectangles and pens must have same length')
3880 if brushes is None:
3881 brushes = []
3882 elif isinstance(brushes, wx.Brush):
3883 brushes = [brushes]
3884 elif len(brushes) != len(rectangles):
3885 raise ValueError('rectangles and brushes must have same length')
3886 return self._DrawRectangleList(rectangles, pens, brushes)
3887
3888
3889 def DrawEllipseList(self, ellipses, pens=None, brushes=None):
3890 """
3891 Draw a list of ellipses as quickly as possible.
3892
3893 :param ellipses: A sequence of 4-element sequences representing
3894 each ellipse to draw, (x,y, w,h).
3895 :param pens: If None, then the current pen is used. If a
3896 single pen then it will be used for all ellipses.
3897 If a list of pens then there should be one for each
3898 ellipse in ellipses.
3899 :param brushes: A brush or brushes to be used to fill the ellipses,
3900 with similar semantics as the pens parameter.
3901 """
3902 if pens is None:
3903 pens = []
3904 elif isinstance(pens, wx.Pen):
3905 pens = [pens]
3906 elif len(pens) != len(ellipses):
3907 raise ValueError('ellipses and pens must have same length')
3908 if brushes is None:
3909 brushes = []
3910 elif isinstance(brushes, wx.Brush):
3911 brushes = [brushes]
3912 elif len(brushes) != len(ellipses):
3913 raise ValueError('ellipses and brushes must have same length')
3914 return self._DrawEllipseList(ellipses, pens, brushes)
3915
3916
3917 def DrawPolygonList(self, polygons, pens=None, brushes=None):
3918 """
3919 Draw a list of polygons, each of which is a list of points.
3920
3921 :param polygons: A sequence of sequences of sequences.
3922 [[(x1,y1),(x2,y2),(x3,y3)...],
3923 [(x1,y1),(x2,y2),(x3,y3)...]]
3924
3925 :param pens: If None, then the current pen is used. If a
3926 single pen then it will be used for all polygons.
3927 If a list of pens then there should be one for each
3928 polygon.
3929 :param brushes: A brush or brushes to be used to fill the polygons,
3930 with similar semantics as the pens parameter.
3931 """
3932 if pens is None:
3933 pens = []
3934 elif isinstance(pens, wx.Pen):
3935 pens = [pens]
3936 elif len(pens) != len(polygons):
3937 raise ValueError('polygons and pens must have same length')
3938 if brushes is None:
3939 brushes = []
3940 elif isinstance(brushes, wx.Brush):
3941 brushes = [brushes]
3942 elif len(brushes) != len(polygons):
3943 raise ValueError('polygons and brushes must have same length')
3944 return self._DrawPolygonList(polygons, pens, brushes)
3945
3946
3947 def DrawTextList(self, textList, coords, foregrounds = None, backgrounds = None):
3948 """
3949 Draw a list of strings using a list of coordinants for positioning each string.
3950
3951 :param textList: A list of strings
3952 :param coords: A list of (x,y) positions
3953 :param foregrounds: A list of `wx.Colour` objects to use for the
3954 foregrounds of the strings.
3955 :param backgrounds: A list of `wx.Colour` objects to use for the
3956 backgrounds of the strings.
3957
3958 NOTE: Make sure you set Background mode to wx.Solid (DC.SetBackgroundMode)
3959 If you want backgrounds to do anything.
3960 """
3961 if type(textList) == type(''):
3962 textList = [textList]
3963 elif len(textList) != len(coords):
3964 raise ValueError('textlist and coords must have same length')
3965 if foregrounds is None:
3966 foregrounds = []
3967 elif isinstance(foregrounds, wx.Colour):
3968 foregrounds = [foregrounds]
3969 elif len(foregrounds) != len(coords):
3970 raise ValueError('foregrounds and coords must have same length')
3971 if backgrounds is None:
3972 backgrounds = []
3973 elif isinstance(backgrounds, wx.Colour):
3974 backgrounds = [backgrounds]
3975 elif len(backgrounds) != len(coords):
3976 raise ValueError('backgrounds and coords must have same length')
3977 return self._DrawTextList(textList, coords, foregrounds, backgrounds)
3978
3979
3980 class DCPtr(DC):
3981 def __init__(self, this):
3982 self.this = this
3983 if not hasattr(self,"thisown"): self.thisown = 0
3984 self.__class__ = DC
3985 _gdi_.DC_swigregister(DCPtr)
3986
3987 #---------------------------------------------------------------------------
3988
3989 class MemoryDC(DC):
3990 """
3991 A memory device context provides a means to draw graphics onto a
3992 bitmap. A bitmap must be selected into the new memory DC before it may
3993 be used for anything. Typical usage is as follows::
3994
3995 dc = wx.MemoryDC()
3996 dc.SelectObject(bitmap)
3997 # draw on the dc usign any of the Draw methods
3998 dc.SelectObject(wx.NullBitmap)
3999 # the bitmap now contains wahtever was drawn upon it
4000
4001 Note that the memory DC *must* be deleted (or the bitmap selected out
4002 of it) before a bitmap can be reselected into another memory DC.
4003
4004 """
4005 def __repr__(self):
4006 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4007 def __init__(self, *args, **kwargs):
4008 """
4009 __init__(self) -> MemoryDC
4010
4011 Constructs a new memory device context.
4012
4013 Use the Ok member to test whether the constructor was successful in
4014 creating a usable device context. Don't forget to select a bitmap into
4015 the DC before drawing on it.
4016 """
4017 newobj = _gdi_.new_MemoryDC(*args, **kwargs)
4018 self.this = newobj.this
4019 self.thisown = 1
4020 del newobj.thisown
4021 def SelectObject(*args, **kwargs):
4022 """
4023 SelectObject(self, Bitmap bitmap)
4024
4025 Selects the bitmap into the device context, to use as the memory
4026 bitmap. Selecting the bitmap into a memory DC allows you to draw into
4027 the DC, and therefore the bitmap, and also to use Blit to copy the
4028 bitmap to a window.
4029
4030 If the argument is wx.NullBitmap (or some other uninitialised
4031 `wx.Bitmap`) the current bitmap is selected out of the device context,
4032 and the original bitmap restored, allowing the current bitmap to be
4033 destroyed safely.
4034 """
4035 return _gdi_.MemoryDC_SelectObject(*args, **kwargs)
4036
4037
4038 class MemoryDCPtr(MemoryDC):
4039 def __init__(self, this):
4040 self.this = this
4041 if not hasattr(self,"thisown"): self.thisown = 0
4042 self.__class__ = MemoryDC
4043 _gdi_.MemoryDC_swigregister(MemoryDCPtr)
4044
4045 def MemoryDCFromDC(*args, **kwargs):
4046 """
4047 MemoryDCFromDC(DC oldDC) -> MemoryDC
4048
4049 Creates a DC that is compatible with the oldDC.
4050 """
4051 val = _gdi_.new_MemoryDCFromDC(*args, **kwargs)
4052 val.thisown = 1
4053 return val
4054
4055 #---------------------------------------------------------------------------
4056
4057 class BufferedDC(MemoryDC):
4058 """
4059 This simple class provides a simple way to avoid flicker: when drawing
4060 on it, everything is in fact first drawn on an in-memory buffer (a
4061 `wx.Bitmap`) and then copied to the screen only once, when this object
4062 is destroyed.
4063
4064 It can be used in the same way as any other device
4065 context. wx.BufferedDC itself typically replaces `wx.ClientDC`, if you
4066 want to use it in your EVT_PAINT handler, you should look at
4067 `wx.BufferedPaintDC`.
4068
4069 """
4070 def __repr__(self):
4071 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4072 def __init__(self, *args):
4073 """
4074 __init__(self, DC dc, Bitmap buffer) -> BufferedDC
4075 __init__(self, DC dc, Size area) -> BufferedDC
4076
4077 Constructs a buffered DC.
4078 """
4079 newobj = _gdi_.new_BufferedDC(*args)
4080 self.this = newobj.this
4081 self.thisown = 1
4082 del newobj.thisown
4083 self.__dc = args[0] # save a ref so the other dc will not be deleted before self
4084
4085 def __del__(self, destroy=_gdi_.delete_BufferedDC):
4086 """
4087 __del__(self)
4088
4089 Copies everything drawn on the DC so far to the underlying DC
4090 associated with this object, if any.
4091 """
4092 try:
4093 if self.thisown: destroy(self)
4094 except: pass
4095
4096 def UnMask(*args, **kwargs):
4097 """
4098 UnMask(self)
4099
4100 Blits the buffer to the dc, and detaches the dc from the buffer (so it
4101 can be effectively used once only). This is usually only called in
4102 the destructor.
4103 """
4104 return _gdi_.BufferedDC_UnMask(*args, **kwargs)
4105
4106
4107 class BufferedDCPtr(BufferedDC):
4108 def __init__(self, this):
4109 self.this = this
4110 if not hasattr(self,"thisown"): self.thisown = 0
4111 self.__class__ = BufferedDC
4112 _gdi_.BufferedDC_swigregister(BufferedDCPtr)
4113
4114 class BufferedPaintDC(BufferedDC):
4115 """
4116 This is a subclass of `wx.BufferedDC` which can be used inside of an
4117 EVT_PAINT event handler. Just create an object of this class instead
4118 of `wx.PaintDC` and that's all you have to do to (mostly) avoid
4119 flicker. The only thing to watch out for is that if you are using this
4120 class together with `wx.ScrolledWindow`, you probably do **not** want
4121 to call `wx.Window.PrepareDC` on it as it already does this internally
4122 for the real underlying `wx.PaintDC`.
4123
4124 If your window is already fully buffered in a `wx.Bitmap` then your
4125 EVT_PAINT handler can be as simple as just creating a
4126 ``wx.BufferedPaintDC`` as it will `Blit` the buffer to the window
4127 automatically when it is destroyed. For example::
4128
4129 def OnPaint(self, event):
4130 dc = wx.BufferedPaintDC(self, self.buffer)
4131
4132
4133
4134 """
4135 def __repr__(self):
4136 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4137 def __init__(self, *args, **kwargs):
4138 """
4139 __init__(self, Window window, Bitmap buffer=NullBitmap) -> BufferedPaintDC
4140
4141 Create a buffered paint DC. As with `wx.BufferedDC`, you may either
4142 provide the bitmap to be used for buffering or let this object create
4143 one internally (in the latter case, the size of the client part of the
4144 window is automatically used).
4145
4146
4147 """
4148 newobj = _gdi_.new_BufferedPaintDC(*args, **kwargs)
4149 self.this = newobj.this
4150 self.thisown = 1
4151 del newobj.thisown
4152
4153 class BufferedPaintDCPtr(BufferedPaintDC):
4154 def __init__(self, this):
4155 self.this = this
4156 if not hasattr(self,"thisown"): self.thisown = 0
4157 self.__class__ = BufferedPaintDC
4158 _gdi_.BufferedPaintDC_swigregister(BufferedPaintDCPtr)
4159
4160 #---------------------------------------------------------------------------
4161
4162 class ScreenDC(DC):
4163 """
4164 A wxScreenDC can be used to paint anywhere on the screen. This should
4165 normally be constructed as a temporary stack object; don't store a
4166 wxScreenDC object.
4167
4168 """
4169 def __repr__(self):
4170 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4171 def __init__(self, *args, **kwargs):
4172 """
4173 __init__(self) -> ScreenDC
4174
4175 A wxScreenDC can be used to paint anywhere on the screen. This should
4176 normally be constructed as a temporary stack object; don't store a
4177 wxScreenDC object.
4178
4179 """
4180 newobj = _gdi_.new_ScreenDC(*args, **kwargs)
4181 self.this = newobj.this
4182 self.thisown = 1
4183 del newobj.thisown
4184 def StartDrawingOnTopWin(*args, **kwargs):
4185 """
4186 StartDrawingOnTopWin(self, Window window) -> bool
4187
4188 Specify that the area of the screen to be drawn upon coincides with
4189 the given window.
4190
4191 :see: `EndDrawingOnTop`
4192 """
4193 return _gdi_.ScreenDC_StartDrawingOnTopWin(*args, **kwargs)
4194
4195 def StartDrawingOnTop(*args, **kwargs):
4196 """
4197 StartDrawingOnTop(self, Rect rect=None) -> bool
4198
4199 Specify that the area is the given rectangle, or the whole screen if
4200 ``None`` is passed.
4201
4202 :see: `EndDrawingOnTop`
4203 """
4204 return _gdi_.ScreenDC_StartDrawingOnTop(*args, **kwargs)
4205
4206 def EndDrawingOnTop(*args, **kwargs):
4207 """
4208 EndDrawingOnTop(self) -> bool
4209
4210 Use this in conjunction with `StartDrawingOnTop` or
4211 `StartDrawingOnTopWin` to ensure that drawing to the screen occurs on
4212 top of existing windows. Without this, some window systems (such as X)
4213 only allow drawing to take place underneath other windows.
4214
4215 You might use this pair of functions when implementing a drag feature,
4216 for example as in the `wx.SplitterWindow` implementation.
4217
4218 These functions are probably obsolete since the X implementations
4219 allow drawing directly on the screen now. However, the fact that this
4220 function allows the screen to be refreshed afterwards may be useful
4221 to some applications.
4222 """
4223 return _gdi_.ScreenDC_EndDrawingOnTop(*args, **kwargs)
4224
4225
4226 class ScreenDCPtr(ScreenDC):
4227 def __init__(self, this):
4228 self.this = this
4229 if not hasattr(self,"thisown"): self.thisown = 0
4230 self.__class__ = ScreenDC
4231 _gdi_.ScreenDC_swigregister(ScreenDCPtr)
4232
4233 #---------------------------------------------------------------------------
4234
4235 class ClientDC(DC):
4236 """
4237 A wx.ClientDC must be constructed if an application wishes to paint on
4238 the client area of a window from outside an EVT_PAINT event. This should
4239 normally be constructed as a temporary stack object; don't store a
4240 wx.ClientDC object long term.
4241
4242 To draw on a window from within an EVT_PAINT handler, construct a
4243 `wx.PaintDC` object.
4244
4245 To draw on the whole window including decorations, construct a
4246 `wx.WindowDC` object (Windows only).
4247
4248 """
4249 def __repr__(self):
4250 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4251 def __init__(self, *args, **kwargs):
4252 """
4253 __init__(self, Window win) -> ClientDC
4254
4255 Constructor. Pass the window on which you wish to paint.
4256 """
4257 newobj = _gdi_.new_ClientDC(*args, **kwargs)
4258 self.this = newobj.this
4259 self.thisown = 1
4260 del newobj.thisown
4261
4262 class ClientDCPtr(ClientDC):
4263 def __init__(self, this):
4264 self.this = this
4265 if not hasattr(self,"thisown"): self.thisown = 0
4266 self.__class__ = ClientDC
4267 _gdi_.ClientDC_swigregister(ClientDCPtr)
4268
4269 #---------------------------------------------------------------------------
4270
4271 class PaintDC(DC):
4272 """
4273 A wx.PaintDC must be constructed if an application wishes to paint on
4274 the client area of a window from within an EVT_PAINT event
4275 handler. This should normally be constructed as a temporary stack
4276 object; don't store a wx.PaintDC object. If you have an EVT_PAINT
4277 handler, you **must** create a wx.PaintDC object within it even if you
4278 don't actually use it.
4279
4280 Using wx.PaintDC within EVT_PAINT handlers is important because it
4281 automatically sets the clipping area to the damaged area of the
4282 window. Attempts to draw outside this area do not appear.
4283
4284 To draw on a window from outside EVT_PAINT handlers, construct a
4285 `wx.ClientDC` object.
4286
4287 """
4288 def __repr__(self):
4289 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4290 def __init__(self, *args, **kwargs):
4291 """
4292 __init__(self, Window win) -> PaintDC
4293
4294 Constructor. Pass the window on which you wish to paint.
4295 """
4296 newobj = _gdi_.new_PaintDC(*args, **kwargs)
4297 self.this = newobj.this
4298 self.thisown = 1
4299 del newobj.thisown
4300
4301 class PaintDCPtr(PaintDC):
4302 def __init__(self, this):
4303 self.this = this
4304 if not hasattr(self,"thisown"): self.thisown = 0
4305 self.__class__ = PaintDC
4306 _gdi_.PaintDC_swigregister(PaintDCPtr)
4307
4308 #---------------------------------------------------------------------------
4309
4310 class WindowDC(DC):
4311 """
4312 A wx.WindowDC must be constructed if an application wishes to paint on
4313 the whole area of a window (client and decorations). This should
4314 normally be constructed as a temporary stack object; don't store a
4315 wx.WindowDC object.
4316 """
4317 def __repr__(self):
4318 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4319 def __init__(self, *args, **kwargs):
4320 """
4321 __init__(self, Window win) -> WindowDC
4322
4323 Constructor. Pass the window on which you wish to paint.
4324 """
4325 newobj = _gdi_.new_WindowDC(*args, **kwargs)
4326 self.this = newobj.this
4327 self.thisown = 1
4328 del newobj.thisown
4329
4330 class WindowDCPtr(WindowDC):
4331 def __init__(self, this):
4332 self.this = this
4333 if not hasattr(self,"thisown"): self.thisown = 0
4334 self.__class__ = WindowDC
4335 _gdi_.WindowDC_swigregister(WindowDCPtr)
4336
4337 #---------------------------------------------------------------------------
4338
4339 class MirrorDC(DC):
4340 """
4341 wx.MirrorDC is a simple wrapper class which is always associated with a
4342 real `wx.DC` object and either forwards all of its operations to it
4343 without changes (no mirroring takes place) or exchanges x and y
4344 coordinates which makes it possible to reuse the same code to draw a
4345 figure and its mirror -- i.e. reflection related to the diagonal line
4346 x == y.
4347 """
4348 def __repr__(self):
4349 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4350 def __init__(self, *args, **kwargs):
4351 """
4352 __init__(self, DC dc, bool mirror) -> MirrorDC
4353
4354 Creates a mirrored DC associated with the real *dc*. Everything drawn
4355 on the wx.MirrorDC will appear on the *dc*, and will be mirrored if
4356 *mirror* is True.
4357 """
4358 newobj = _gdi_.new_MirrorDC(*args, **kwargs)
4359 self.this = newobj.this
4360 self.thisown = 1
4361 del newobj.thisown
4362
4363 class MirrorDCPtr(MirrorDC):
4364 def __init__(self, this):
4365 self.this = this
4366 if not hasattr(self,"thisown"): self.thisown = 0
4367 self.__class__ = MirrorDC
4368 _gdi_.MirrorDC_swigregister(MirrorDCPtr)
4369
4370 #---------------------------------------------------------------------------
4371
4372 class PostScriptDC(DC):
4373 """This is a `wx.DC` that can write to PostScript files on any platform."""
4374 def __repr__(self):
4375 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4376 def __init__(self, *args, **kwargs):
4377 """
4378 __init__(self, wxPrintData printData) -> PostScriptDC
4379
4380 Constructs a PostScript printer device context from a `wx.PrintData`
4381 object.
4382 """
4383 newobj = _gdi_.new_PostScriptDC(*args, **kwargs)
4384 self.this = newobj.this
4385 self.thisown = 1
4386 del newobj.thisown
4387 def GetPrintData(*args, **kwargs):
4388 """GetPrintData(self) -> wxPrintData"""
4389 return _gdi_.PostScriptDC_GetPrintData(*args, **kwargs)
4390
4391 def SetPrintData(*args, **kwargs):
4392 """SetPrintData(self, wxPrintData data)"""
4393 return _gdi_.PostScriptDC_SetPrintData(*args, **kwargs)
4394
4395 def SetResolution(*args, **kwargs):
4396 """
4397 SetResolution(int ppi)
4398
4399 Set resolution (in pixels per inch) that will be used in PostScript
4400 output. Default is 720ppi.
4401 """
4402 return _gdi_.PostScriptDC_SetResolution(*args, **kwargs)
4403
4404 SetResolution = staticmethod(SetResolution)
4405 def GetResolution(*args, **kwargs):
4406 """
4407 GetResolution() -> int
4408
4409 Return resolution used in PostScript output.
4410 """
4411 return _gdi_.PostScriptDC_GetResolution(*args, **kwargs)
4412
4413 GetResolution = staticmethod(GetResolution)
4414
4415 class PostScriptDCPtr(PostScriptDC):
4416 def __init__(self, this):
4417 self.this = this
4418 if not hasattr(self,"thisown"): self.thisown = 0
4419 self.__class__ = PostScriptDC
4420 _gdi_.PostScriptDC_swigregister(PostScriptDCPtr)
4421
4422 def PostScriptDC_SetResolution(*args, **kwargs):
4423 """
4424 PostScriptDC_SetResolution(int ppi)
4425
4426 Set resolution (in pixels per inch) that will be used in PostScript
4427 output. Default is 720ppi.
4428 """
4429 return _gdi_.PostScriptDC_SetResolution(*args, **kwargs)
4430
4431 def PostScriptDC_GetResolution(*args, **kwargs):
4432 """
4433 PostScriptDC_GetResolution() -> int
4434
4435 Return resolution used in PostScript output.
4436 """
4437 return _gdi_.PostScriptDC_GetResolution(*args, **kwargs)
4438
4439 #---------------------------------------------------------------------------
4440
4441 class MetaFile(_core.Object):
4442 """Proxy of C++ MetaFile class"""
4443 def __repr__(self):
4444 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4445 def __init__(self, *args, **kwargs):
4446 """__init__(self, String filename=EmptyString) -> MetaFile"""
4447 newobj = _gdi_.new_MetaFile(*args, **kwargs)
4448 self.this = newobj.this
4449 self.thisown = 1
4450 del newobj.thisown
4451 def __del__(self, destroy=_gdi_.delete_MetaFile):
4452 """__del__(self)"""
4453 try:
4454 if self.thisown: destroy(self)
4455 except: pass
4456
4457 def Ok(*args, **kwargs):
4458 """Ok(self) -> bool"""
4459 return _gdi_.MetaFile_Ok(*args, **kwargs)
4460
4461 def SetClipboard(*args, **kwargs):
4462 """SetClipboard(self, int width=0, int height=0) -> bool"""
4463 return _gdi_.MetaFile_SetClipboard(*args, **kwargs)
4464
4465 def GetSize(*args, **kwargs):
4466 """GetSize(self) -> Size"""
4467 return _gdi_.MetaFile_GetSize(*args, **kwargs)
4468
4469 def GetWidth(*args, **kwargs):
4470 """GetWidth(self) -> int"""
4471 return _gdi_.MetaFile_GetWidth(*args, **kwargs)
4472
4473 def GetHeight(*args, **kwargs):
4474 """GetHeight(self) -> int"""
4475 return _gdi_.MetaFile_GetHeight(*args, **kwargs)
4476
4477 def GetFileName(*args, **kwargs):
4478 """GetFileName(self) -> String"""
4479 return _gdi_.MetaFile_GetFileName(*args, **kwargs)
4480
4481 def __nonzero__(self): return self.Ok()
4482
4483 class MetaFilePtr(MetaFile):
4484 def __init__(self, this):
4485 self.this = this
4486 if not hasattr(self,"thisown"): self.thisown = 0
4487 self.__class__ = MetaFile
4488 _gdi_.MetaFile_swigregister(MetaFilePtr)
4489
4490 class MetaFileDC(DC):
4491 """Proxy of C++ MetaFileDC class"""
4492 def __repr__(self):
4493 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4494 def __init__(self, *args, **kwargs):
4495 """
4496 __init__(self, String filename=EmptyString, int width=0, int height=0,
4497 String description=EmptyString) -> MetaFileDC
4498 """
4499 newobj = _gdi_.new_MetaFileDC(*args, **kwargs)
4500 self.this = newobj.this
4501 self.thisown = 1
4502 del newobj.thisown
4503 def Close(*args, **kwargs):
4504 """Close(self) -> MetaFile"""
4505 return _gdi_.MetaFileDC_Close(*args, **kwargs)
4506
4507
4508 class MetaFileDCPtr(MetaFileDC):
4509 def __init__(self, this):
4510 self.this = this
4511 if not hasattr(self,"thisown"): self.thisown = 0
4512 self.__class__ = MetaFileDC
4513 _gdi_.MetaFileDC_swigregister(MetaFileDCPtr)
4514
4515 class PrinterDC(DC):
4516 """Proxy of C++ PrinterDC class"""
4517 def __repr__(self):
4518 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4519 def __init__(self, *args, **kwargs):
4520 """__init__(self, wxPrintData printData) -> PrinterDC"""
4521 newobj = _gdi_.new_PrinterDC(*args, **kwargs)
4522 self.this = newobj.this
4523 self.thisown = 1
4524 del newobj.thisown
4525
4526 class PrinterDCPtr(PrinterDC):
4527 def __init__(self, this):
4528 self.this = this
4529 if not hasattr(self,"thisown"): self.thisown = 0
4530 self.__class__ = PrinterDC
4531 _gdi_.PrinterDC_swigregister(PrinterDCPtr)
4532
4533 #---------------------------------------------------------------------------
4534
4535 IMAGELIST_DRAW_NORMAL = _gdi_.IMAGELIST_DRAW_NORMAL
4536 IMAGELIST_DRAW_TRANSPARENT = _gdi_.IMAGELIST_DRAW_TRANSPARENT
4537 IMAGELIST_DRAW_SELECTED = _gdi_.IMAGELIST_DRAW_SELECTED
4538 IMAGELIST_DRAW_FOCUSED = _gdi_.IMAGELIST_DRAW_FOCUSED
4539 IMAGE_LIST_NORMAL = _gdi_.IMAGE_LIST_NORMAL
4540 IMAGE_LIST_SMALL = _gdi_.IMAGE_LIST_SMALL
4541 IMAGE_LIST_STATE = _gdi_.IMAGE_LIST_STATE
4542 class ImageList(_core.Object):
4543 """Proxy of C++ ImageList class"""
4544 def __repr__(self):
4545 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4546 def __init__(self, *args, **kwargs):
4547 """__init__(self, int width, int height, int mask=True, int initialCount=1) -> ImageList"""
4548 newobj = _gdi_.new_ImageList(*args, **kwargs)
4549 self.this = newobj.this
4550 self.thisown = 1
4551 del newobj.thisown
4552 def __del__(self, destroy=_gdi_.delete_ImageList):
4553 """__del__(self)"""
4554 try:
4555 if self.thisown: destroy(self)
4556 except: pass
4557
4558 def Add(*args, **kwargs):
4559 """Add(self, Bitmap bitmap, Bitmap mask=NullBitmap) -> int"""
4560 return _gdi_.ImageList_Add(*args, **kwargs)
4561
4562 def AddWithColourMask(*args, **kwargs):
4563 """AddWithColourMask(self, Bitmap bitmap, Colour maskColour) -> int"""
4564 return _gdi_.ImageList_AddWithColourMask(*args, **kwargs)
4565
4566 def AddIcon(*args, **kwargs):
4567 """AddIcon(self, Icon icon) -> int"""
4568 return _gdi_.ImageList_AddIcon(*args, **kwargs)
4569
4570 def Replace(*args, **kwargs):
4571 """Replace(self, int index, Bitmap bitmap, Bitmap mask=NullBitmap) -> bool"""
4572 return _gdi_.ImageList_Replace(*args, **kwargs)
4573
4574 def Draw(*args, **kwargs):
4575 """
4576 Draw(self, int index, DC dc, int x, int x, int flags=IMAGELIST_DRAW_NORMAL,
4577 bool solidBackground=False) -> bool
4578 """
4579 return _gdi_.ImageList_Draw(*args, **kwargs)
4580
4581 def GetImageCount(*args, **kwargs):
4582 """GetImageCount(self) -> int"""
4583 return _gdi_.ImageList_GetImageCount(*args, **kwargs)
4584
4585 def Remove(*args, **kwargs):
4586 """Remove(self, int index) -> bool"""
4587 return _gdi_.ImageList_Remove(*args, **kwargs)
4588
4589 def RemoveAll(*args, **kwargs):
4590 """RemoveAll(self) -> bool"""
4591 return _gdi_.ImageList_RemoveAll(*args, **kwargs)
4592
4593 def GetSize(*args, **kwargs):
4594 """GetSize() -> (width,height)"""
4595 return _gdi_.ImageList_GetSize(*args, **kwargs)
4596
4597
4598 class ImageListPtr(ImageList):
4599 def __init__(self, this):
4600 self.this = this
4601 if not hasattr(self,"thisown"): self.thisown = 0
4602 self.__class__ = ImageList
4603 _gdi_.ImageList_swigregister(ImageListPtr)
4604
4605 #---------------------------------------------------------------------------
4606
4607 class PenList(_core.Object):
4608 """Proxy of C++ PenList class"""
4609 def __init__(self): raise RuntimeError, "No constructor defined"
4610 def __repr__(self):
4611 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4612 def AddPen(*args, **kwargs):
4613 """AddPen(self, Pen pen)"""
4614 return _gdi_.PenList_AddPen(*args, **kwargs)
4615
4616 def FindOrCreatePen(*args, **kwargs):
4617 """FindOrCreatePen(self, Colour colour, int width, int style) -> Pen"""
4618 return _gdi_.PenList_FindOrCreatePen(*args, **kwargs)
4619
4620 def RemovePen(*args, **kwargs):
4621 """RemovePen(self, Pen pen)"""
4622 return _gdi_.PenList_RemovePen(*args, **kwargs)
4623
4624 def GetCount(*args, **kwargs):
4625 """GetCount(self) -> int"""
4626 return _gdi_.PenList_GetCount(*args, **kwargs)
4627
4628
4629 class PenListPtr(PenList):
4630 def __init__(self, this):
4631 self.this = this
4632 if not hasattr(self,"thisown"): self.thisown = 0
4633 self.__class__ = PenList
4634 _gdi_.PenList_swigregister(PenListPtr)
4635 cvar = _gdi_.cvar
4636 NORMAL_FONT = cvar.NORMAL_FONT
4637 SMALL_FONT = cvar.SMALL_FONT
4638 ITALIC_FONT = cvar.ITALIC_FONT
4639 SWISS_FONT = cvar.SWISS_FONT
4640 RED_PEN = cvar.RED_PEN
4641 CYAN_PEN = cvar.CYAN_PEN
4642 GREEN_PEN = cvar.GREEN_PEN
4643 BLACK_PEN = cvar.BLACK_PEN
4644 WHITE_PEN = cvar.WHITE_PEN
4645 TRANSPARENT_PEN = cvar.TRANSPARENT_PEN
4646 BLACK_DASHED_PEN = cvar.BLACK_DASHED_PEN
4647 GREY_PEN = cvar.GREY_PEN
4648 MEDIUM_GREY_PEN = cvar.MEDIUM_GREY_PEN
4649 LIGHT_GREY_PEN = cvar.LIGHT_GREY_PEN
4650 BLUE_BRUSH = cvar.BLUE_BRUSH
4651 GREEN_BRUSH = cvar.GREEN_BRUSH
4652 WHITE_BRUSH = cvar.WHITE_BRUSH
4653 BLACK_BRUSH = cvar.BLACK_BRUSH
4654 TRANSPARENT_BRUSH = cvar.TRANSPARENT_BRUSH
4655 CYAN_BRUSH = cvar.CYAN_BRUSH
4656 RED_BRUSH = cvar.RED_BRUSH
4657 GREY_BRUSH = cvar.GREY_BRUSH
4658 MEDIUM_GREY_BRUSH = cvar.MEDIUM_GREY_BRUSH
4659 LIGHT_GREY_BRUSH = cvar.LIGHT_GREY_BRUSH
4660 BLACK = cvar.BLACK
4661 WHITE = cvar.WHITE
4662 RED = cvar.RED
4663 BLUE = cvar.BLUE
4664 GREEN = cvar.GREEN
4665 CYAN = cvar.CYAN
4666 LIGHT_GREY = cvar.LIGHT_GREY
4667 STANDARD_CURSOR = cvar.STANDARD_CURSOR
4668 HOURGLASS_CURSOR = cvar.HOURGLASS_CURSOR
4669 CROSS_CURSOR = cvar.CROSS_CURSOR
4670 NullBitmap = cvar.NullBitmap
4671 NullIcon = cvar.NullIcon
4672 NullCursor = cvar.NullCursor
4673 NullPen = cvar.NullPen
4674 NullBrush = cvar.NullBrush
4675 NullPalette = cvar.NullPalette
4676 NullFont = cvar.NullFont
4677 NullColour = cvar.NullColour
4678
4679 class BrushList(_core.Object):
4680 """Proxy of C++ BrushList class"""
4681 def __init__(self): raise RuntimeError, "No constructor defined"
4682 def __repr__(self):
4683 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4684 def AddBrush(*args, **kwargs):
4685 """AddBrush(self, Brush brush)"""
4686 return _gdi_.BrushList_AddBrush(*args, **kwargs)
4687
4688 def FindOrCreateBrush(*args, **kwargs):
4689 """FindOrCreateBrush(self, Colour colour, int style) -> Brush"""
4690 return _gdi_.BrushList_FindOrCreateBrush(*args, **kwargs)
4691
4692 def RemoveBrush(*args, **kwargs):
4693 """RemoveBrush(self, Brush brush)"""
4694 return _gdi_.BrushList_RemoveBrush(*args, **kwargs)
4695
4696 def GetCount(*args, **kwargs):
4697 """GetCount(self) -> int"""
4698 return _gdi_.BrushList_GetCount(*args, **kwargs)
4699
4700
4701 class BrushListPtr(BrushList):
4702 def __init__(self, this):
4703 self.this = this
4704 if not hasattr(self,"thisown"): self.thisown = 0
4705 self.__class__ = BrushList
4706 _gdi_.BrushList_swigregister(BrushListPtr)
4707
4708 class ColourDatabase(_core.Object):
4709 """Proxy of C++ ColourDatabase class"""
4710 def __repr__(self):
4711 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4712 def __init__(self, *args, **kwargs):
4713 """__init__(self) -> ColourDatabase"""
4714 newobj = _gdi_.new_ColourDatabase(*args, **kwargs)
4715 self.this = newobj.this
4716 self.thisown = 1
4717 del newobj.thisown
4718 def __del__(self, destroy=_gdi_.delete_ColourDatabase):
4719 """__del__(self)"""
4720 try:
4721 if self.thisown: destroy(self)
4722 except: pass
4723
4724 def Find(*args, **kwargs):
4725 """Find(self, String name) -> Colour"""
4726 return _gdi_.ColourDatabase_Find(*args, **kwargs)
4727
4728 def FindName(*args, **kwargs):
4729 """FindName(self, Colour colour) -> String"""
4730 return _gdi_.ColourDatabase_FindName(*args, **kwargs)
4731
4732 FindColour = Find
4733 def AddColour(*args, **kwargs):
4734 """AddColour(self, String name, Colour colour)"""
4735 return _gdi_.ColourDatabase_AddColour(*args, **kwargs)
4736
4737 def Append(*args, **kwargs):
4738 """Append(self, String name, int red, int green, int blue)"""
4739 return _gdi_.ColourDatabase_Append(*args, **kwargs)
4740
4741
4742 class ColourDatabasePtr(ColourDatabase):
4743 def __init__(self, this):
4744 self.this = this
4745 if not hasattr(self,"thisown"): self.thisown = 0
4746 self.__class__ = ColourDatabase
4747 _gdi_.ColourDatabase_swigregister(ColourDatabasePtr)
4748
4749 class FontList(_core.Object):
4750 """Proxy of C++ FontList class"""
4751 def __init__(self): raise RuntimeError, "No constructor defined"
4752 def __repr__(self):
4753 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4754 def AddFont(*args, **kwargs):
4755 """AddFont(self, Font font)"""
4756 return _gdi_.FontList_AddFont(*args, **kwargs)
4757
4758 def FindOrCreateFont(*args, **kwargs):
4759 """
4760 FindOrCreateFont(self, int point_size, int family, int style, int weight,
4761 bool underline=False, String facename=EmptyString,
4762 int encoding=FONTENCODING_DEFAULT) -> Font
4763 """
4764 return _gdi_.FontList_FindOrCreateFont(*args, **kwargs)
4765
4766 def RemoveFont(*args, **kwargs):
4767 """RemoveFont(self, Font font)"""
4768 return _gdi_.FontList_RemoveFont(*args, **kwargs)
4769
4770 def GetCount(*args, **kwargs):
4771 """GetCount(self) -> int"""
4772 return _gdi_.FontList_GetCount(*args, **kwargs)
4773
4774
4775 class FontListPtr(FontList):
4776 def __init__(self, this):
4777 self.this = this
4778 if not hasattr(self,"thisown"): self.thisown = 0
4779 self.__class__ = FontList
4780 _gdi_.FontList_swigregister(FontListPtr)
4781
4782 #---------------------------------------------------------------------------
4783
4784 NullColor = NullColour
4785 #---------------------------------------------------------------------------
4786
4787 class Effects(_core.Object):
4788 """Proxy of C++ Effects class"""
4789 def __repr__(self):
4790 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4791 def __init__(self, *args, **kwargs):
4792 """__init__(self) -> Effects"""
4793 newobj = _gdi_.new_Effects(*args, **kwargs)
4794 self.this = newobj.this
4795 self.thisown = 1
4796 del newobj.thisown
4797 def GetHighlightColour(*args, **kwargs):
4798 """GetHighlightColour(self) -> Colour"""
4799 return _gdi_.Effects_GetHighlightColour(*args, **kwargs)
4800
4801 def GetLightShadow(*args, **kwargs):
4802 """GetLightShadow(self) -> Colour"""
4803 return _gdi_.Effects_GetLightShadow(*args, **kwargs)
4804
4805 def GetFaceColour(*args, **kwargs):
4806 """GetFaceColour(self) -> Colour"""
4807 return _gdi_.Effects_GetFaceColour(*args, **kwargs)
4808
4809 def GetMediumShadow(*args, **kwargs):
4810 """GetMediumShadow(self) -> Colour"""
4811 return _gdi_.Effects_GetMediumShadow(*args, **kwargs)
4812
4813 def GetDarkShadow(*args, **kwargs):
4814 """GetDarkShadow(self) -> Colour"""
4815 return _gdi_.Effects_GetDarkShadow(*args, **kwargs)
4816
4817 def SetHighlightColour(*args, **kwargs):
4818 """SetHighlightColour(self, Colour c)"""
4819 return _gdi_.Effects_SetHighlightColour(*args, **kwargs)
4820
4821 def SetLightShadow(*args, **kwargs):
4822 """SetLightShadow(self, Colour c)"""
4823 return _gdi_.Effects_SetLightShadow(*args, **kwargs)
4824
4825 def SetFaceColour(*args, **kwargs):
4826 """SetFaceColour(self, Colour c)"""
4827 return _gdi_.Effects_SetFaceColour(*args, **kwargs)
4828
4829 def SetMediumShadow(*args, **kwargs):
4830 """SetMediumShadow(self, Colour c)"""
4831 return _gdi_.Effects_SetMediumShadow(*args, **kwargs)
4832
4833 def SetDarkShadow(*args, **kwargs):
4834 """SetDarkShadow(self, Colour c)"""
4835 return _gdi_.Effects_SetDarkShadow(*args, **kwargs)
4836
4837 def Set(*args, **kwargs):
4838 """
4839 Set(self, Colour highlightColour, Colour lightShadow, Colour faceColour,
4840 Colour mediumShadow, Colour darkShadow)
4841 """
4842 return _gdi_.Effects_Set(*args, **kwargs)
4843
4844 def DrawSunkenEdge(*args, **kwargs):
4845 """DrawSunkenEdge(self, DC dc, Rect rect, int borderSize=1)"""
4846 return _gdi_.Effects_DrawSunkenEdge(*args, **kwargs)
4847
4848 def TileBitmap(*args, **kwargs):
4849 """TileBitmap(self, Rect rect, DC dc, Bitmap bitmap) -> bool"""
4850 return _gdi_.Effects_TileBitmap(*args, **kwargs)
4851
4852
4853 class EffectsPtr(Effects):
4854 def __init__(self, this):
4855 self.this = this
4856 if not hasattr(self,"thisown"): self.thisown = 0
4857 self.__class__ = Effects
4858 _gdi_.Effects_swigregister(EffectsPtr)
4859 TheFontList = cvar.TheFontList
4860 ThePenList = cvar.ThePenList
4861 TheBrushList = cvar.TheBrushList
4862 TheColourDatabase = cvar.TheColourDatabase
4863
4864