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