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