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