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