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