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