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