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