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