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