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