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