]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/gdi.py
reSWIGged
[wxWidgets.git] / wxPython / src / mac / gdi.py
CommitLineData
e6056257 1# This file was created automatically by SWIG.
d14a1e28 2# Don't modify this file, modify the SWIG interface instead.
e6056257 3
d14a1e28 4import _gdi
40699168 5
d14a1e28
RD
6import core
7wx = core
8#---------------------------------------------------------------------------
9
10class GDIObject(core.Object):
11 def __init__(self, *args, **kwargs):
12 newobj = _gdi.new_GDIObject(*args, **kwargs)
13 self.this = newobj.this
e6056257 14 self.thisown = 1
d14a1e28
RD
15 del newobj.thisown
16 def __del__(self, destroy=_gdi.delete_GDIObject):
17 try:
18 if self.thisown: destroy(self)
19 except: pass
20 def GetVisible(*args, **kwargs): return _gdi.GDIObject_GetVisible(*args, **kwargs)
21 def SetVisible(*args, **kwargs): return _gdi.GDIObject_SetVisible(*args, **kwargs)
22 def IsNull(*args, **kwargs): return _gdi.GDIObject_IsNull(*args, **kwargs)
23 def __repr__(self):
24 return "<%s.%s; proxy of C++ wxGDIObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 25
d14a1e28
RD
26class GDIObjectPtr(GDIObject):
27 def __init__(self, this):
28 self.this = this
29 if not hasattr(self,"thisown"): self.thisown = 0
30 self.__class__ = GDIObject
31_gdi.GDIObject_swigregister(GDIObjectPtr)
e6056257 32
d14a1e28
RD
33#---------------------------------------------------------------------------
34
35class Colour(core.Object):
36 def __init__(self, *args, **kwargs):
37 newobj = _gdi.new_Colour(*args, **kwargs)
38 self.this = newobj.this
39 self.thisown = 1
40 del newobj.thisown
41 def __del__(self, destroy=_gdi.delete_Colour):
42 try:
43 if self.thisown: destroy(self)
44 except: pass
45 def Red(*args, **kwargs): return _gdi.Colour_Red(*args, **kwargs)
46 def Green(*args, **kwargs): return _gdi.Colour_Green(*args, **kwargs)
47 def Blue(*args, **kwargs): return _gdi.Colour_Blue(*args, **kwargs)
48 def Ok(*args, **kwargs): return _gdi.Colour_Ok(*args, **kwargs)
49 def Set(*args, **kwargs): return _gdi.Colour_Set(*args, **kwargs)
50 def SetRBG(*args, **kwargs): return _gdi.Colour_SetRBG(*args, **kwargs)
51 def __eq__(*args, **kwargs): return _gdi.Colour___eq__(*args, **kwargs)
52 def __ne__(*args, **kwargs): return _gdi.Colour___ne__(*args, **kwargs)
53 def Get(*args, **kwargs): return _gdi.Colour_Get(*args, **kwargs)
54 asTuple = Get
55 def __str__(self): return str(self.asTuple())
56 def __repr__(self): return 'wxColour' + str(self.asTuple())
57 def __nonzero__(self): return self.Ok()
58 def __getinitargs__(self): return ()
59 def __getstate__(self): return self.asTuple()
60 def __setstate__(self, state): self.Set(*state)
e6056257
RD
61
62
d14a1e28
RD
63class ColourPtr(Colour):
64 def __init__(self, this):
e6056257 65 self.this = this
d14a1e28
RD
66 if not hasattr(self,"thisown"): self.thisown = 0
67 self.__class__ = Colour
68_gdi.Colour_swigregister(ColourPtr)
e6056257 69
d14a1e28
RD
70def NamedColour(*args, **kwargs):
71 val = _gdi.new_NamedColour(*args, **kwargs)
72 val.thisown = 1
73 return val
e6056257 74
d14a1e28
RD
75def ColourRGB(*args, **kwargs):
76 val = _gdi.new_ColourRGB(*args, **kwargs)
77 val.thisown = 1
78 return val
e6056257 79
d14a1e28
RD
80class Palette(GDIObject):
81 def __init__(self, *args, **kwargs):
82 newobj = _gdi.new_Palette(*args, **kwargs)
83 self.this = newobj.this
84 self.thisown = 1
85 del newobj.thisown
86 def __del__(self, destroy=_gdi.delete_Palette):
87 try:
88 if self.thisown: destroy(self)
89 except: pass
90 def GetPixel(*args, **kwargs): return _gdi.Palette_GetPixel(*args, **kwargs)
91 def GetRGB(*args, **kwargs): return _gdi.Palette_GetRGB(*args, **kwargs)
92 def Ok(*args, **kwargs): return _gdi.Palette_Ok(*args, **kwargs)
93 def __repr__(self):
94 return "<%s.%s; proxy of C++ wxPalette instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 95
d14a1e28
RD
96class PalettePtr(Palette):
97 def __init__(self, this):
e6056257 98 self.this = this
d14a1e28
RD
99 if not hasattr(self,"thisown"): self.thisown = 0
100 self.__class__ = Palette
101_gdi.Palette_swigregister(PalettePtr)
102
103#---------------------------------------------------------------------------
104
105class Pen(GDIObject):
106 def __init__(self, *args, **kwargs):
107 newobj = _gdi.new_Pen(*args, **kwargs)
108 self.this = newobj.this
109 self.thisown = 1
110 del newobj.thisown
111 def __del__(self, destroy=_gdi.delete_Pen):
112 try:
113 if self.thisown: destroy(self)
114 except: pass
115 def GetCap(*args, **kwargs): return _gdi.Pen_GetCap(*args, **kwargs)
116 def GetColour(*args, **kwargs): return _gdi.Pen_GetColour(*args, **kwargs)
117 def GetJoin(*args, **kwargs): return _gdi.Pen_GetJoin(*args, **kwargs)
118 def GetStyle(*args, **kwargs): return _gdi.Pen_GetStyle(*args, **kwargs)
119 def GetWidth(*args, **kwargs): return _gdi.Pen_GetWidth(*args, **kwargs)
120 def Ok(*args, **kwargs): return _gdi.Pen_Ok(*args, **kwargs)
121 def SetCap(*args, **kwargs): return _gdi.Pen_SetCap(*args, **kwargs)
122 def SetColour(*args, **kwargs): return _gdi.Pen_SetColour(*args, **kwargs)
123 def SetJoin(*args, **kwargs): return _gdi.Pen_SetJoin(*args, **kwargs)
124 def SetStyle(*args, **kwargs): return _gdi.Pen_SetStyle(*args, **kwargs)
125 def SetWidth(*args, **kwargs): return _gdi.Pen_SetWidth(*args, **kwargs)
126 def SetDashes(*args, **kwargs): return _gdi.Pen_SetDashes(*args, **kwargs)
127 def GetDashes(*args, **kwargs): return _gdi.Pen_GetDashes(*args, **kwargs)
128 def __nonzero__(self): return self.Ok()
e6056257 129 def __repr__(self):
d14a1e28
RD
130 return "<%s.%s; proxy of C++ wxPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
131
132class PenPtr(Pen):
133 def __init__(self, this):
134 self.this = this
135 if not hasattr(self,"thisown"): self.thisown = 0
136 self.__class__ = Pen
137_gdi.Pen_swigregister(PenPtr)
138
139class PyPen(Pen):
140 def __init__(self, *args, **kwargs):
141 newobj = _gdi.new_PyPen(*args, **kwargs)
142 self.this = newobj.this
e6056257 143 self.thisown = 1
d14a1e28
RD
144 del newobj.thisown
145 def __del__(self, destroy=_gdi.delete_PyPen):
146 try:
147 if self.thisown: destroy(self)
148 except: pass
149 def SetDashes(*args, **kwargs): return _gdi.PyPen_SetDashes(*args, **kwargs)
150 def __repr__(self):
151 return "<%s.%s; proxy of C++ wxPyPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 152
d14a1e28
RD
153class PyPenPtr(PyPen):
154 def __init__(self, this):
155 self.this = this
156 if not hasattr(self,"thisown"): self.thisown = 0
157 self.__class__ = PyPen
158_gdi.PyPen_swigregister(PyPenPtr)
e6056257 159
d14a1e28
RD
160Pen = PyPen
161#---------------------------------------------------------------------------
e6056257 162
d14a1e28
RD
163class Brush(GDIObject):
164 def __init__(self, *args, **kwargs):
165 newobj = _gdi.new_Brush(*args, **kwargs)
166 self.this = newobj.this
167 self.thisown = 1
168 del newobj.thisown
169 def __del__(self, destroy=_gdi.delete_Brush):
170 try:
171 if self.thisown: destroy(self)
172 except: pass
173 def SetColour(*args, **kwargs): return _gdi.Brush_SetColour(*args, **kwargs)
174 def SetStyle(*args, **kwargs): return _gdi.Brush_SetStyle(*args, **kwargs)
175 def SetStipple(*args, **kwargs): return _gdi.Brush_SetStipple(*args, **kwargs)
176 def GetColour(*args, **kwargs): return _gdi.Brush_GetColour(*args, **kwargs)
177 def GetStyle(*args, **kwargs): return _gdi.Brush_GetStyle(*args, **kwargs)
178 def GetStipple(*args, **kwargs): return _gdi.Brush_GetStipple(*args, **kwargs)
179 def Ok(*args, **kwargs): return _gdi.Brush_Ok(*args, **kwargs)
180 def GetMacTheme(*args, **kwargs): return _gdi.Brush_GetMacTheme(*args, **kwargs)
181 def SetMacTheme(*args, **kwargs): return _gdi.Brush_SetMacTheme(*args, **kwargs)
182 def __nonzero__(self): return self.Ok()
183 def __repr__(self):
184 return "<%s.%s; proxy of C++ wxBrush instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 185
d14a1e28
RD
186class BrushPtr(Brush):
187 def __init__(self, this):
e6056257 188 self.this = this
d14a1e28
RD
189 if not hasattr(self,"thisown"): self.thisown = 0
190 self.__class__ = Brush
191_gdi.Brush_swigregister(BrushPtr)
192
193class Bitmap(GDIObject):
194 def __init__(self, *args, **kwargs):
195 newobj = _gdi.new_Bitmap(*args, **kwargs)
196 self.this = newobj.this
d84a9306 197 self.thisown = 1
d14a1e28
RD
198 del newobj.thisown
199 def __del__(self, destroy=_gdi.delete_Bitmap):
200 try:
201 if self.thisown: destroy(self)
202 except: pass
203 def Ok(*args, **kwargs): return _gdi.Bitmap_Ok(*args, **kwargs)
204 def GetWidth(*args, **kwargs): return _gdi.Bitmap_GetWidth(*args, **kwargs)
205 def GetHeight(*args, **kwargs): return _gdi.Bitmap_GetHeight(*args, **kwargs)
206 def GetDepth(*args, **kwargs): return _gdi.Bitmap_GetDepth(*args, **kwargs)
207 def ConvertToImage(*args, **kwargs): return _gdi.Bitmap_ConvertToImage(*args, **kwargs)
208 def GetMask(*args, **kwargs): return _gdi.Bitmap_GetMask(*args, **kwargs)
209 def SetMask(*args, **kwargs): return _gdi.Bitmap_SetMask(*args, **kwargs)
210 def SetMaskColour(*args, **kwargs): return _gdi.Bitmap_SetMaskColour(*args, **kwargs)
211 def GetSubBitmap(*args, **kwargs): return _gdi.Bitmap_GetSubBitmap(*args, **kwargs)
212 def SaveFile(*args, **kwargs): return _gdi.Bitmap_SaveFile(*args, **kwargs)
213 def LoadFile(*args, **kwargs): return _gdi.Bitmap_LoadFile(*args, **kwargs)
214 def CopyFromIcon(*args, **kwargs): return _gdi.Bitmap_CopyFromIcon(*args, **kwargs)
215 def SetHeight(*args, **kwargs): return _gdi.Bitmap_SetHeight(*args, **kwargs)
216 def SetWidth(*args, **kwargs): return _gdi.Bitmap_SetWidth(*args, **kwargs)
217 def SetDepth(*args, **kwargs): return _gdi.Bitmap_SetDepth(*args, **kwargs)
218 def __nonzero__(self): return self.Ok()
219 def __repr__(self):
220 return "<%s.%s; proxy of C++ wxBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d84a9306 221
d14a1e28
RD
222class BitmapPtr(Bitmap):
223 def __init__(self, this):
224 self.this = this
225 if not hasattr(self,"thisown"): self.thisown = 0
226 self.__class__ = Bitmap
227_gdi.Bitmap_swigregister(BitmapPtr)
d84a9306 228
d14a1e28
RD
229def EmptyBitmap(*args, **kwargs):
230 val = _gdi.new_EmptyBitmap(*args, **kwargs)
231 val.thisown = 1
232 return val
d84a9306 233
d14a1e28
RD
234def BitmapFromIcon(*args, **kwargs):
235 val = _gdi.new_BitmapFromIcon(*args, **kwargs)
236 val.thisown = 1
237 return val
d84a9306 238
d14a1e28
RD
239def BitmapFromImage(*args, **kwargs):
240 val = _gdi.new_BitmapFromImage(*args, **kwargs)
241 val.thisown = 1
242 return val
e6056257 243
d14a1e28
RD
244def BitmapFromXPMData(*args, **kwargs):
245 val = _gdi.new_BitmapFromXPMData(*args, **kwargs)
246 val.thisown = 1
247 return val
e6056257 248
d14a1e28
RD
249def BitmapFromBits(*args, **kwargs):
250 val = _gdi.new_BitmapFromBits(*args, **kwargs)
251 val.thisown = 1
252 return val
e6056257 253
d14a1e28
RD
254class Mask(core.Object):
255 def __init__(self, *args, **kwargs):
256 newobj = _gdi.new_Mask(*args, **kwargs)
257 self.this = newobj.this
258 self.thisown = 1
259 del newobj.thisown
260 def __repr__(self):
261 return "<%s.%s; proxy of C++ wxMask instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 262
d14a1e28
RD
263class MaskPtr(Mask):
264 def __init__(self, this):
e6056257 265 self.this = this
d14a1e28
RD
266 if not hasattr(self,"thisown"): self.thisown = 0
267 self.__class__ = Mask
268_gdi.Mask_swigregister(MaskPtr)
269
270def MaskColour(*args, **kwargs):
271 val = _gdi.new_MaskColour(*args, **kwargs)
272 val.thisown = 1
273 return val
274
275class Icon(GDIObject):
276 def __init__(self, *args, **kwargs):
277 newobj = _gdi.new_Icon(*args, **kwargs)
278 self.this = newobj.this
6abe8375 279 self.thisown = 1
d14a1e28
RD
280 del newobj.thisown
281 def __del__(self, destroy=_gdi.delete_Icon):
282 try:
283 if self.thisown: destroy(self)
284 except: pass
285 def Ok(*args, **kwargs): return _gdi.Icon_Ok(*args, **kwargs)
286 def GetWidth(*args, **kwargs): return _gdi.Icon_GetWidth(*args, **kwargs)
287 def GetHeight(*args, **kwargs): return _gdi.Icon_GetHeight(*args, **kwargs)
288 def GetDepth(*args, **kwargs): return _gdi.Icon_GetDepth(*args, **kwargs)
289 def SetWidth(*args, **kwargs): return _gdi.Icon_SetWidth(*args, **kwargs)
290 def SetHeight(*args, **kwargs): return _gdi.Icon_SetHeight(*args, **kwargs)
291 def SetDepth(*args, **kwargs): return _gdi.Icon_SetDepth(*args, **kwargs)
292 def CopyFromBitmap(*args, **kwargs): return _gdi.Icon_CopyFromBitmap(*args, **kwargs)
293 def __nonzero__(self): return self.Ok()
294 def __repr__(self):
295 return "<%s.%s; proxy of C++ wxIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 296
d14a1e28
RD
297class IconPtr(Icon):
298 def __init__(self, this):
299 self.this = this
300 if not hasattr(self,"thisown"): self.thisown = 0
301 self.__class__ = Icon
302_gdi.Icon_swigregister(IconPtr)
e6056257 303
d14a1e28
RD
304def EmptyIcon(*args, **kwargs):
305 val = _gdi.new_EmptyIcon(*args, **kwargs)
306 val.thisown = 1
307 return val
e6056257 308
d14a1e28
RD
309def IconFromLocation(*args, **kwargs):
310 val = _gdi.new_IconFromLocation(*args, **kwargs)
40699168
RD
311 val.thisown = 1
312 return val
e6056257 313
d14a1e28
RD
314def IconFromBitmap(*args, **kwargs):
315 val = _gdi.new_IconFromBitmap(*args, **kwargs)
40699168
RD
316 val.thisown = 1
317 return val
e6056257 318
d14a1e28
RD
319def IconFromXPMData(*args, **kwargs):
320 val = _gdi.new_IconFromXPMData(*args, **kwargs)
321 val.thisown = 1
322 return val
e6056257 323
d14a1e28
RD
324class IconLocation(object):
325 def __init__(self, *args, **kwargs):
326 newobj = _gdi.new_IconLocation(*args, **kwargs)
327 self.this = newobj.this
328 self.thisown = 1
329 del newobj.thisown
330 def __del__(self, destroy=_gdi.delete_IconLocation):
331 try:
332 if self.thisown: destroy(self)
333 except: pass
334 def IsOk(*args, **kwargs): return _gdi.IconLocation_IsOk(*args, **kwargs)
335 def __nonzero__(self): return self.Ok()
336 def SetFileName(*args, **kwargs): return _gdi.IconLocation_SetFileName(*args, **kwargs)
337 def GetFileName(*args, **kwargs): return _gdi.IconLocation_GetFileName(*args, **kwargs)
338 def SetIndex(*args, **kwargs): return _gdi.IconLocation_SetIndex(*args, **kwargs)
339 def GetIndex(*args, **kwargs): return _gdi.IconLocation_GetIndex(*args, **kwargs)
e6056257 340 def __repr__(self):
d14a1e28
RD
341 return "<%s.%s; proxy of C++ wxIconLocation instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
342
343class IconLocationPtr(IconLocation):
344 def __init__(self, this):
345 self.this = this
346 if not hasattr(self,"thisown"): self.thisown = 0
347 self.__class__ = IconLocation
348_gdi.IconLocation_swigregister(IconLocationPtr)
349
350class IconBundle(object):
351 def __init__(self, *args, **kwargs):
352 newobj = _gdi.new_IconBundle(*args, **kwargs)
353 self.this = newobj.this
d84a9306 354 self.thisown = 1
d14a1e28
RD
355 del newobj.thisown
356 def __del__(self, destroy=_gdi.delete_IconBundle):
357 try:
358 if self.thisown: destroy(self)
359 except: pass
360 def AddIcon(*args, **kwargs): return _gdi.IconBundle_AddIcon(*args, **kwargs)
361 def AddIconFromFile(*args, **kwargs): return _gdi.IconBundle_AddIconFromFile(*args, **kwargs)
362 def GetIcon(*args, **kwargs): return _gdi.IconBundle_GetIcon(*args, **kwargs)
363 def __repr__(self):
364 return "<%s.%s; proxy of C++ wxIconBundle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 365
d14a1e28
RD
366class IconBundlePtr(IconBundle):
367 def __init__(self, this):
368 self.this = this
369 if not hasattr(self,"thisown"): self.thisown = 0
370 self.__class__ = IconBundle
371_gdi.IconBundle_swigregister(IconBundlePtr)
e6056257 372
d14a1e28
RD
373def IconBundleFromFile(*args, **kwargs):
374 val = _gdi.new_IconBundleFromFile(*args, **kwargs)
375 val.thisown = 1
376 return val
e6056257 377
d14a1e28
RD
378def IconBundleFromIcon(*args, **kwargs):
379 val = _gdi.new_IconBundleFromIcon(*args, **kwargs)
380 val.thisown = 1
381 return val
e6056257 382
d14a1e28
RD
383class Cursor(GDIObject):
384 def __init__(self, *args, **kwargs):
385 newobj = _gdi.new_Cursor(*args, **kwargs)
386 self.this = newobj.this
387 self.thisown = 1
388 del newobj.thisown
389 def __del__(self, destroy=_gdi.delete_Cursor):
390 try:
391 if self.thisown: destroy(self)
392 except: pass
393 def Ok(*args, **kwargs): return _gdi.Cursor_Ok(*args, **kwargs)
394 def __nonzero__(self): return self.Ok()
e6056257 395 def __repr__(self):
d14a1e28 396 return "<%s.%s; proxy of C++ wxCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
7108497a 397
d14a1e28
RD
398class CursorPtr(Cursor):
399 def __init__(self, this):
400 self.this = this
401 if not hasattr(self,"thisown"): self.thisown = 0
402 self.__class__ = Cursor
403_gdi.Cursor_swigregister(CursorPtr)
e6056257 404
d14a1e28
RD
405def StockCursor(*args, **kwargs):
406 val = _gdi.new_StockCursor(*args, **kwargs)
407 val.thisown = 1
408 return val
e6056257 409
d14a1e28
RD
410def CursorFromImage(*args, **kwargs):
411 val = _gdi.new_CursorFromImage(*args, **kwargs)
412 val.thisown = 1
413 return val
e6056257 414
d14a1e28
RD
415def CursorFromBits(*args, **kwargs):
416 val = _gdi.new_CursorFromBits(*args, **kwargs)
417 val.thisown = 1
418 return val
e6056257 419
d14a1e28
RD
420#---------------------------------------------------------------------------
421
422OutRegion = _gdi.OutRegion
423PartRegion = _gdi.PartRegion
424InRegion = _gdi.InRegion
425class Region(GDIObject):
426 def __init__(self, *args, **kwargs):
427 newobj = _gdi.new_Region(*args, **kwargs)
428 self.this = newobj.this
2f4811fc 429 self.thisown = 1
d14a1e28
RD
430 del newobj.thisown
431 def __del__(self, destroy=_gdi.delete_Region):
432 try:
433 if self.thisown: destroy(self)
434 except: pass
435 def Clear(*args, **kwargs): return _gdi.Region_Clear(*args, **kwargs)
436 def Contains(*args, **kwargs): return _gdi.Region_Contains(*args, **kwargs)
437 def ContainsPoint(*args, **kwargs): return _gdi.Region_ContainsPoint(*args, **kwargs)
438 def ContainsRect(*args, **kwargs): return _gdi.Region_ContainsRect(*args, **kwargs)
439 def ContainsRectDim(*args, **kwargs): return _gdi.Region_ContainsRectDim(*args, **kwargs)
440 def GetBox(*args, **kwargs): return _gdi.Region_GetBox(*args, **kwargs)
441 def Intersect(*args, **kwargs): return _gdi.Region_Intersect(*args, **kwargs)
442 def IntersectRect(*args, **kwargs): return _gdi.Region_IntersectRect(*args, **kwargs)
443 def IntersectRegion(*args, **kwargs): return _gdi.Region_IntersectRegion(*args, **kwargs)
444 def IsEmpty(*args, **kwargs): return _gdi.Region_IsEmpty(*args, **kwargs)
445 def Union(*args, **kwargs): return _gdi.Region_Union(*args, **kwargs)
446 def UnionRect(*args, **kwargs): return _gdi.Region_UnionRect(*args, **kwargs)
447 def UnionRegion(*args, **kwargs): return _gdi.Region_UnionRegion(*args, **kwargs)
448 def Subtract(*args, **kwargs): return _gdi.Region_Subtract(*args, **kwargs)
449 def SubtractRect(*args, **kwargs): return _gdi.Region_SubtractRect(*args, **kwargs)
450 def SubtractRegion(*args, **kwargs): return _gdi.Region_SubtractRegion(*args, **kwargs)
451 def Xor(*args, **kwargs): return _gdi.Region_Xor(*args, **kwargs)
452 def XorRect(*args, **kwargs): return _gdi.Region_XorRect(*args, **kwargs)
453 def XorRegion(*args, **kwargs): return _gdi.Region_XorRegion(*args, **kwargs)
454 def ConvertToBitmap(*args, **kwargs): return _gdi.Region_ConvertToBitmap(*args, **kwargs)
455 def UnionBitmap(*args, **kwargs): return _gdi.Region_UnionBitmap(*args, **kwargs)
456 def __repr__(self):
457 return "<%s.%s; proxy of C++ wxRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 458
d14a1e28
RD
459class RegionPtr(Region):
460 def __init__(self, this):
461 self.this = this
462 if not hasattr(self,"thisown"): self.thisown = 0
463 self.__class__ = Region
464_gdi.Region_swigregister(RegionPtr)
e6056257 465
d14a1e28
RD
466def RegionFromBitmap(*args, **kwargs):
467 val = _gdi.new_RegionFromBitmap(*args, **kwargs)
468 val.thisown = 1
469 return val
e6056257 470
d14a1e28
RD
471def RegionFromPoints(*args, **kwargs):
472 val = _gdi.new_RegionFromPoints(*args, **kwargs)
473 val.thisown = 1
474 return val
e6056257 475
d14a1e28
RD
476class RegionIterator(core.Object):
477 def __init__(self, *args, **kwargs):
478 newobj = _gdi.new_RegionIterator(*args, **kwargs)
479 self.this = newobj.this
480 self.thisown = 1
481 del newobj.thisown
482 def __del__(self, destroy=_gdi.delete_RegionIterator):
483 try:
484 if self.thisown: destroy(self)
485 except: pass
486 def GetX(*args, **kwargs): return _gdi.RegionIterator_GetX(*args, **kwargs)
487 def GetY(*args, **kwargs): return _gdi.RegionIterator_GetY(*args, **kwargs)
488 def GetW(*args, **kwargs): return _gdi.RegionIterator_GetW(*args, **kwargs)
489 def GetWidth(*args, **kwargs): return _gdi.RegionIterator_GetWidth(*args, **kwargs)
490 def GetH(*args, **kwargs): return _gdi.RegionIterator_GetH(*args, **kwargs)
491 def GetHeight(*args, **kwargs): return _gdi.RegionIterator_GetHeight(*args, **kwargs)
492 def GetRect(*args, **kwargs): return _gdi.RegionIterator_GetRect(*args, **kwargs)
493 def HaveRects(*args, **kwargs): return _gdi.RegionIterator_HaveRects(*args, **kwargs)
494 def Reset(*args, **kwargs): return _gdi.RegionIterator_Reset(*args, **kwargs)
495 def Next(*args, **kwargs): return _gdi.RegionIterator_Next(*args, **kwargs)
496 def __nonzero__(*args, **kwargs): return _gdi.RegionIterator___nonzero__(*args, **kwargs)
497 def __repr__(self):
498 return "<%s.%s; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
499
500class RegionIteratorPtr(RegionIterator):
501 def __init__(self, this):
e6056257 502 self.this = this
d14a1e28
RD
503 if not hasattr(self,"thisown"): self.thisown = 0
504 self.__class__ = RegionIterator
505_gdi.RegionIterator_swigregister(RegionIteratorPtr)
506
507#---------------------------------------------------------------------------
508
509FONTFAMILY_DEFAULT = _gdi.FONTFAMILY_DEFAULT
510FONTFAMILY_DECORATIVE = _gdi.FONTFAMILY_DECORATIVE
511FONTFAMILY_ROMAN = _gdi.FONTFAMILY_ROMAN
512FONTFAMILY_SCRIPT = _gdi.FONTFAMILY_SCRIPT
513FONTFAMILY_SWISS = _gdi.FONTFAMILY_SWISS
514FONTFAMILY_MODERN = _gdi.FONTFAMILY_MODERN
515FONTFAMILY_TELETYPE = _gdi.FONTFAMILY_TELETYPE
516FONTFAMILY_MAX = _gdi.FONTFAMILY_MAX
517FONTFAMILY_UNKNOWN = _gdi.FONTFAMILY_UNKNOWN
518FONTSTYLE_NORMAL = _gdi.FONTSTYLE_NORMAL
519FONTSTYLE_ITALIC = _gdi.FONTSTYLE_ITALIC
520FONTSTYLE_SLANT = _gdi.FONTSTYLE_SLANT
521FONTSTYLE_MAX = _gdi.FONTSTYLE_MAX
522FONTWEIGHT_NORMAL = _gdi.FONTWEIGHT_NORMAL
523FONTWEIGHT_LIGHT = _gdi.FONTWEIGHT_LIGHT
524FONTWEIGHT_BOLD = _gdi.FONTWEIGHT_BOLD
525FONTWEIGHT_MAX = _gdi.FONTWEIGHT_MAX
526FONTFLAG_DEFAULT = _gdi.FONTFLAG_DEFAULT
527FONTFLAG_ITALIC = _gdi.FONTFLAG_ITALIC
528FONTFLAG_SLANT = _gdi.FONTFLAG_SLANT
529FONTFLAG_LIGHT = _gdi.FONTFLAG_LIGHT
530FONTFLAG_BOLD = _gdi.FONTFLAG_BOLD
531FONTFLAG_ANTIALIASED = _gdi.FONTFLAG_ANTIALIASED
532FONTFLAG_NOT_ANTIALIASED = _gdi.FONTFLAG_NOT_ANTIALIASED
533FONTFLAG_UNDERLINED = _gdi.FONTFLAG_UNDERLINED
534FONTFLAG_STRIKETHROUGH = _gdi.FONTFLAG_STRIKETHROUGH
535FONTFLAG_MASK = _gdi.FONTFLAG_MASK
536FONTENCODING_SYSTEM = _gdi.FONTENCODING_SYSTEM
537FONTENCODING_DEFAULT = _gdi.FONTENCODING_DEFAULT
538FONTENCODING_ISO8859_1 = _gdi.FONTENCODING_ISO8859_1
539FONTENCODING_ISO8859_2 = _gdi.FONTENCODING_ISO8859_2
540FONTENCODING_ISO8859_3 = _gdi.FONTENCODING_ISO8859_3
541FONTENCODING_ISO8859_4 = _gdi.FONTENCODING_ISO8859_4
542FONTENCODING_ISO8859_5 = _gdi.FONTENCODING_ISO8859_5
543FONTENCODING_ISO8859_6 = _gdi.FONTENCODING_ISO8859_6
544FONTENCODING_ISO8859_7 = _gdi.FONTENCODING_ISO8859_7
545FONTENCODING_ISO8859_8 = _gdi.FONTENCODING_ISO8859_8
546FONTENCODING_ISO8859_9 = _gdi.FONTENCODING_ISO8859_9
547FONTENCODING_ISO8859_10 = _gdi.FONTENCODING_ISO8859_10
548FONTENCODING_ISO8859_11 = _gdi.FONTENCODING_ISO8859_11
549FONTENCODING_ISO8859_12 = _gdi.FONTENCODING_ISO8859_12
550FONTENCODING_ISO8859_13 = _gdi.FONTENCODING_ISO8859_13
551FONTENCODING_ISO8859_14 = _gdi.FONTENCODING_ISO8859_14
552FONTENCODING_ISO8859_15 = _gdi.FONTENCODING_ISO8859_15
553FONTENCODING_ISO8859_MAX = _gdi.FONTENCODING_ISO8859_MAX
554FONTENCODING_KOI8 = _gdi.FONTENCODING_KOI8
555FONTENCODING_ALTERNATIVE = _gdi.FONTENCODING_ALTERNATIVE
556FONTENCODING_BULGARIAN = _gdi.FONTENCODING_BULGARIAN
557FONTENCODING_CP437 = _gdi.FONTENCODING_CP437
558FONTENCODING_CP850 = _gdi.FONTENCODING_CP850
559FONTENCODING_CP852 = _gdi.FONTENCODING_CP852
560FONTENCODING_CP855 = _gdi.FONTENCODING_CP855
561FONTENCODING_CP866 = _gdi.FONTENCODING_CP866
562FONTENCODING_CP874 = _gdi.FONTENCODING_CP874
563FONTENCODING_CP932 = _gdi.FONTENCODING_CP932
564FONTENCODING_CP936 = _gdi.FONTENCODING_CP936
565FONTENCODING_CP949 = _gdi.FONTENCODING_CP949
566FONTENCODING_CP950 = _gdi.FONTENCODING_CP950
567FONTENCODING_CP1250 = _gdi.FONTENCODING_CP1250
568FONTENCODING_CP1251 = _gdi.FONTENCODING_CP1251
569FONTENCODING_CP1252 = _gdi.FONTENCODING_CP1252
570FONTENCODING_CP1253 = _gdi.FONTENCODING_CP1253
571FONTENCODING_CP1254 = _gdi.FONTENCODING_CP1254
572FONTENCODING_CP1255 = _gdi.FONTENCODING_CP1255
573FONTENCODING_CP1256 = _gdi.FONTENCODING_CP1256
574FONTENCODING_CP1257 = _gdi.FONTENCODING_CP1257
575FONTENCODING_CP12_MAX = _gdi.FONTENCODING_CP12_MAX
576FONTENCODING_UTF7 = _gdi.FONTENCODING_UTF7
577FONTENCODING_UTF8 = _gdi.FONTENCODING_UTF8
578FONTENCODING_EUC_JP = _gdi.FONTENCODING_EUC_JP
579FONTENCODING_UTF16BE = _gdi.FONTENCODING_UTF16BE
580FONTENCODING_UTF16LE = _gdi.FONTENCODING_UTF16LE
581FONTENCODING_UTF32BE = _gdi.FONTENCODING_UTF32BE
582FONTENCODING_UTF32LE = _gdi.FONTENCODING_UTF32LE
583FONTENCODING_MAX = _gdi.FONTENCODING_MAX
584FONTENCODING_UTF16 = _gdi.FONTENCODING_UTF16
585FONTENCODING_UTF32 = _gdi.FONTENCODING_UTF32
586FONTENCODING_UNICODE = _gdi.FONTENCODING_UNICODE
587FONTENCODING_GB2312 = _gdi.FONTENCODING_GB2312
588FONTENCODING_BIG5 = _gdi.FONTENCODING_BIG5
589FONTENCODING_SHIFT_JIS = _gdi.FONTENCODING_SHIFT_JIS
590#---------------------------------------------------------------------------
591
592class NativeFontInfo(object):
593 def __init__(self, *args, **kwargs):
594 newobj = _gdi.new_NativeFontInfo(*args, **kwargs)
595 self.this = newobj.this
596 self.thisown = 1
597 del newobj.thisown
598 def __del__(self, destroy=_gdi.delete_NativeFontInfo):
599 try:
600 if self.thisown: destroy(self)
601 except: pass
602 def Init(*args, **kwargs): return _gdi.NativeFontInfo_Init(*args, **kwargs)
603 def InitFromFont(*args, **kwargs): return _gdi.NativeFontInfo_InitFromFont(*args, **kwargs)
604 def GetPointSize(*args, **kwargs): return _gdi.NativeFontInfo_GetPointSize(*args, **kwargs)
605 def GetStyle(*args, **kwargs): return _gdi.NativeFontInfo_GetStyle(*args, **kwargs)
606 def GetWeight(*args, **kwargs): return _gdi.NativeFontInfo_GetWeight(*args, **kwargs)
607 def GetUnderlined(*args, **kwargs): return _gdi.NativeFontInfo_GetUnderlined(*args, **kwargs)
608 def GetFaceName(*args, **kwargs): return _gdi.NativeFontInfo_GetFaceName(*args, **kwargs)
609 def GetFamily(*args, **kwargs): return _gdi.NativeFontInfo_GetFamily(*args, **kwargs)
610 def GetEncoding(*args, **kwargs): return _gdi.NativeFontInfo_GetEncoding(*args, **kwargs)
611 def SetPointSize(*args, **kwargs): return _gdi.NativeFontInfo_SetPointSize(*args, **kwargs)
612 def SetStyle(*args, **kwargs): return _gdi.NativeFontInfo_SetStyle(*args, **kwargs)
613 def SetWeight(*args, **kwargs): return _gdi.NativeFontInfo_SetWeight(*args, **kwargs)
614 def SetUnderlined(*args, **kwargs): return _gdi.NativeFontInfo_SetUnderlined(*args, **kwargs)
615 def SetFaceName(*args, **kwargs): return _gdi.NativeFontInfo_SetFaceName(*args, **kwargs)
616 def SetFamily(*args, **kwargs): return _gdi.NativeFontInfo_SetFamily(*args, **kwargs)
617 def SetEncoding(*args, **kwargs): return _gdi.NativeFontInfo_SetEncoding(*args, **kwargs)
618 def FromString(*args, **kwargs): return _gdi.NativeFontInfo_FromString(*args, **kwargs)
619 def ToString(*args, **kwargs): return _gdi.NativeFontInfo_ToString(*args, **kwargs)
620 def __str__(*args, **kwargs): return _gdi.NativeFontInfo___str__(*args, **kwargs)
621 def FromUserString(*args, **kwargs): return _gdi.NativeFontInfo_FromUserString(*args, **kwargs)
622 def ToUserString(*args, **kwargs): return _gdi.NativeFontInfo_ToUserString(*args, **kwargs)
e6056257 623 def __repr__(self):
d14a1e28
RD
624 return "<%s.%s; proxy of C++ wxNativeFontInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
625
626class NativeFontInfoPtr(NativeFontInfo):
627 def __init__(self, this):
628 self.this = this
629 if not hasattr(self,"thisown"): self.thisown = 0
630 self.__class__ = NativeFontInfo
631_gdi.NativeFontInfo_swigregister(NativeFontInfoPtr)
632
633class NativeEncodingInfo(object):
634 facename = property(_gdi.NativeEncodingInfo_facename_get, _gdi.NativeEncodingInfo_facename_set)
635 encoding = property(_gdi.NativeEncodingInfo_encoding_get, _gdi.NativeEncodingInfo_encoding_set)
636 def __init__(self, *args, **kwargs):
637 newobj = _gdi.new_NativeEncodingInfo(*args, **kwargs)
638 self.this = newobj.this
e6056257 639 self.thisown = 1
d14a1e28
RD
640 del newobj.thisown
641 def __del__(self, destroy=_gdi.delete_NativeEncodingInfo):
642 try:
643 if self.thisown: destroy(self)
644 except: pass
645 def FromString(*args, **kwargs): return _gdi.NativeEncodingInfo_FromString(*args, **kwargs)
646 def ToString(*args, **kwargs): return _gdi.NativeEncodingInfo_ToString(*args, **kwargs)
647 def __repr__(self):
648 return "<%s.%s; proxy of C++ wxNativeEncodingInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 649
d14a1e28
RD
650class NativeEncodingInfoPtr(NativeEncodingInfo):
651 def __init__(self, this):
652 self.this = this
653 if not hasattr(self,"thisown"): self.thisown = 0
654 self.__class__ = NativeEncodingInfo
655_gdi.NativeEncodingInfo_swigregister(NativeEncodingInfoPtr)
e6056257
RD
656
657
d14a1e28 658GetNativeFontEncoding = _gdi.GetNativeFontEncoding
e6056257 659
d14a1e28
RD
660TestFontEncoding = _gdi.TestFontEncoding
661#---------------------------------------------------------------------------
662
663class FontMapper(object):
664 def __init__(self, *args, **kwargs):
665 newobj = _gdi.new_FontMapper(*args, **kwargs)
666 self.this = newobj.this
e6056257 667 self.thisown = 1
d14a1e28
RD
668 del newobj.thisown
669 def __del__(self, destroy=_gdi.delete_FontMapper):
670 try:
671 if self.thisown: destroy(self)
672 except: pass
673 Get = staticmethod(_gdi.FontMapper_Get)
674 Set = staticmethod(_gdi.FontMapper_Set)
675 def CharsetToEncoding(*args, **kwargs): return _gdi.FontMapper_CharsetToEncoding(*args, **kwargs)
676 GetSupportedEncodingsCount = staticmethod(_gdi.FontMapper_GetSupportedEncodingsCount)
677 GetEncoding = staticmethod(_gdi.FontMapper_GetEncoding)
678 GetEncodingName = staticmethod(_gdi.FontMapper_GetEncodingName)
679 GetEncodingDescription = staticmethod(_gdi.FontMapper_GetEncodingDescription)
680 def SetConfig(*args, **kwargs): return _gdi.FontMapper_SetConfig(*args, **kwargs)
681 def SetConfigPath(*args, **kwargs): return _gdi.FontMapper_SetConfigPath(*args, **kwargs)
682 GetDefaultConfigPath = staticmethod(_gdi.FontMapper_GetDefaultConfigPath)
683 def GetAltForEncoding(*args, **kwargs): return _gdi.FontMapper_GetAltForEncoding(*args, **kwargs)
684 def IsEncodingAvailable(*args, **kwargs): return _gdi.FontMapper_IsEncodingAvailable(*args, **kwargs)
685 def SetDialogParent(*args, **kwargs): return _gdi.FontMapper_SetDialogParent(*args, **kwargs)
686 def SetDialogTitle(*args, **kwargs): return _gdi.FontMapper_SetDialogTitle(*args, **kwargs)
687 def __repr__(self):
688 return "<%s.%s; proxy of C++ wxFontMapper instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
689
690class FontMapperPtr(FontMapper):
691 def __init__(self, this):
692 self.this = this
693 if not hasattr(self,"thisown"): self.thisown = 0
694 self.__class__ = FontMapper
695_gdi.FontMapper_swigregister(FontMapperPtr)
e6056257 696
d14a1e28 697FontMapper_Get = _gdi.FontMapper_Get
e6056257 698
d14a1e28 699FontMapper_Set = _gdi.FontMapper_Set
e6056257 700
d14a1e28 701FontMapper_GetSupportedEncodingsCount = _gdi.FontMapper_GetSupportedEncodingsCount
e6056257 702
d14a1e28
RD
703FontMapper_GetEncoding = _gdi.FontMapper_GetEncoding
704
705FontMapper_GetEncodingName = _gdi.FontMapper_GetEncodingName
706
707FontMapper_GetEncodingDescription = _gdi.FontMapper_GetEncodingDescription
708
709FontMapper_GetDefaultConfigPath = _gdi.FontMapper_GetDefaultConfigPath
710
711#---------------------------------------------------------------------------
712
713class Font(GDIObject):
714 def __init__(self, *args, **kwargs):
715 newobj = _gdi.new_Font(*args, **kwargs)
716 self.this = newobj.this
717 self.thisown = 1
718 del newobj.thisown
719 def __del__(self, destroy=_gdi.delete_Font):
720 try:
721 if self.thisown: destroy(self)
722 except: pass
723 def Ok(*args, **kwargs): return _gdi.Font_Ok(*args, **kwargs)
724 def __nonzero__(self): return self.Ok()
725 def __eq__(*args, **kwargs): return _gdi.Font___eq__(*args, **kwargs)
726 def __ne__(*args, **kwargs): return _gdi.Font___ne__(*args, **kwargs)
727 def GetPointSize(*args, **kwargs): return _gdi.Font_GetPointSize(*args, **kwargs)
728 def GetFamily(*args, **kwargs): return _gdi.Font_GetFamily(*args, **kwargs)
729 def GetStyle(*args, **kwargs): return _gdi.Font_GetStyle(*args, **kwargs)
730 def GetWeight(*args, **kwargs): return _gdi.Font_GetWeight(*args, **kwargs)
731 def GetUnderlined(*args, **kwargs): return _gdi.Font_GetUnderlined(*args, **kwargs)
732 def GetFaceName(*args, **kwargs): return _gdi.Font_GetFaceName(*args, **kwargs)
733 def GetEncoding(*args, **kwargs): return _gdi.Font_GetEncoding(*args, **kwargs)
734 def GetNativeFontInfo(*args, **kwargs): return _gdi.Font_GetNativeFontInfo(*args, **kwargs)
735 def IsFixedWidth(*args, **kwargs): return _gdi.Font_IsFixedWidth(*args, **kwargs)
736 def GetNativeFontInfoDesc(*args, **kwargs): return _gdi.Font_GetNativeFontInfoDesc(*args, **kwargs)
737 def GetNativeFontInfoUserDesc(*args, **kwargs): return _gdi.Font_GetNativeFontInfoUserDesc(*args, **kwargs)
738 def SetPointSize(*args, **kwargs): return _gdi.Font_SetPointSize(*args, **kwargs)
739 def SetFamily(*args, **kwargs): return _gdi.Font_SetFamily(*args, **kwargs)
740 def SetStyle(*args, **kwargs): return _gdi.Font_SetStyle(*args, **kwargs)
741 def SetWeight(*args, **kwargs): return _gdi.Font_SetWeight(*args, **kwargs)
742 def SetFaceName(*args, **kwargs): return _gdi.Font_SetFaceName(*args, **kwargs)
743 def SetUnderlined(*args, **kwargs): return _gdi.Font_SetUnderlined(*args, **kwargs)
744 def SetEncoding(*args, **kwargs): return _gdi.Font_SetEncoding(*args, **kwargs)
745 def SetNativeFontInfo(*args, **kwargs): return _gdi.Font_SetNativeFontInfo(*args, **kwargs)
746 def SetNativeFontInfoFromString(*args, **kwargs): return _gdi.Font_SetNativeFontInfoFromString(*args, **kwargs)
747 def SetNativeFontInfoUserDesc(*args, **kwargs): return _gdi.Font_SetNativeFontInfoUserDesc(*args, **kwargs)
748 def GetFamilyString(*args, **kwargs): return _gdi.Font_GetFamilyString(*args, **kwargs)
749 def GetStyleString(*args, **kwargs): return _gdi.Font_GetStyleString(*args, **kwargs)
750 def GetWeightString(*args, **kwargs): return _gdi.Font_GetWeightString(*args, **kwargs)
751 def SetNoAntiAliasing(*args, **kwargs): return _gdi.Font_SetNoAntiAliasing(*args, **kwargs)
752 def GetNoAntiAliasing(*args, **kwargs): return _gdi.Font_GetNoAntiAliasing(*args, **kwargs)
753 GetDefaultEncoding = staticmethod(_gdi.Font_GetDefaultEncoding)
754 SetDefaultEncoding = staticmethod(_gdi.Font_SetDefaultEncoding)
e6056257 755 def __repr__(self):
d14a1e28
RD
756 return "<%s.%s; proxy of C++ wxFont instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
757
758class FontPtr(Font):
759 def __init__(self, this):
e6056257 760 self.this = this
d14a1e28
RD
761 if not hasattr(self,"thisown"): self.thisown = 0
762 self.__class__ = Font
763_gdi.Font_swigregister(FontPtr)
e6056257 764
d14a1e28
RD
765def FontFromNativeInfo(*args, **kwargs):
766 val = _gdi.new_FontFromNativeInfo(*args, **kwargs)
767 val.thisown = 1
768 return val
e6056257 769
d14a1e28
RD
770def FontFromNativeInfoString(*args, **kwargs):
771 val = _gdi.new_FontFromNativeInfoString(*args, **kwargs)
772 val.thisown = 1
773 return val
e6056257 774
d14a1e28
RD
775def Font2(*args, **kwargs):
776 val = _gdi.new_Font2(*args, **kwargs)
777 val.thisown = 1
778 return val
e6056257 779
d14a1e28 780Font_GetDefaultEncoding = _gdi.Font_GetDefaultEncoding
e6056257 781
d14a1e28 782Font_SetDefaultEncoding = _gdi.Font_SetDefaultEncoding
e6056257 783
d14a1e28 784#---------------------------------------------------------------------------
e6056257 785
d14a1e28
RD
786class FontEnumerator(object):
787 def __init__(self, *args, **kwargs):
788 newobj = _gdi.new_FontEnumerator(*args, **kwargs)
789 self.this = newobj.this
790 self.thisown = 1
791 del newobj.thisown
792 self._setCallbackInfo(self, FontEnumerator, 0)
793 def __del__(self, destroy=_gdi.delete_FontEnumerator):
794 try:
795 if self.thisown: destroy(self)
796 except: pass
797 def _setCallbackInfo(*args, **kwargs): return _gdi.FontEnumerator__setCallbackInfo(*args, **kwargs)
798 def EnumerateFacenames(*args, **kwargs): return _gdi.FontEnumerator_EnumerateFacenames(*args, **kwargs)
799 def EnumerateEncodings(*args, **kwargs): return _gdi.FontEnumerator_EnumerateEncodings(*args, **kwargs)
800 def GetEncodings(*args, **kwargs): return _gdi.FontEnumerator_GetEncodings(*args, **kwargs)
801 def GetFacenames(*args, **kwargs): return _gdi.FontEnumerator_GetFacenames(*args, **kwargs)
802 def __repr__(self):
803 return "<%s.%s; proxy of C++ wxPyFontEnumerator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 804
d14a1e28
RD
805class FontEnumeratorPtr(FontEnumerator):
806 def __init__(self, this):
e6056257 807 self.this = this
d14a1e28
RD
808 if not hasattr(self,"thisown"): self.thisown = 0
809 self.__class__ = FontEnumerator
810_gdi.FontEnumerator_swigregister(FontEnumeratorPtr)
811
812#---------------------------------------------------------------------------
813
814LANGUAGE_DEFAULT = _gdi.LANGUAGE_DEFAULT
815LANGUAGE_UNKNOWN = _gdi.LANGUAGE_UNKNOWN
816LANGUAGE_ABKHAZIAN = _gdi.LANGUAGE_ABKHAZIAN
817LANGUAGE_AFAR = _gdi.LANGUAGE_AFAR
818LANGUAGE_AFRIKAANS = _gdi.LANGUAGE_AFRIKAANS
819LANGUAGE_ALBANIAN = _gdi.LANGUAGE_ALBANIAN
820LANGUAGE_AMHARIC = _gdi.LANGUAGE_AMHARIC
821LANGUAGE_ARABIC = _gdi.LANGUAGE_ARABIC
822LANGUAGE_ARABIC_ALGERIA = _gdi.LANGUAGE_ARABIC_ALGERIA
823LANGUAGE_ARABIC_BAHRAIN = _gdi.LANGUAGE_ARABIC_BAHRAIN
824LANGUAGE_ARABIC_EGYPT = _gdi.LANGUAGE_ARABIC_EGYPT
825LANGUAGE_ARABIC_IRAQ = _gdi.LANGUAGE_ARABIC_IRAQ
826LANGUAGE_ARABIC_JORDAN = _gdi.LANGUAGE_ARABIC_JORDAN
827LANGUAGE_ARABIC_KUWAIT = _gdi.LANGUAGE_ARABIC_KUWAIT
828LANGUAGE_ARABIC_LEBANON = _gdi.LANGUAGE_ARABIC_LEBANON
829LANGUAGE_ARABIC_LIBYA = _gdi.LANGUAGE_ARABIC_LIBYA
830LANGUAGE_ARABIC_MOROCCO = _gdi.LANGUAGE_ARABIC_MOROCCO
831LANGUAGE_ARABIC_OMAN = _gdi.LANGUAGE_ARABIC_OMAN
832LANGUAGE_ARABIC_QATAR = _gdi.LANGUAGE_ARABIC_QATAR
833LANGUAGE_ARABIC_SAUDI_ARABIA = _gdi.LANGUAGE_ARABIC_SAUDI_ARABIA
834LANGUAGE_ARABIC_SUDAN = _gdi.LANGUAGE_ARABIC_SUDAN
835LANGUAGE_ARABIC_SYRIA = _gdi.LANGUAGE_ARABIC_SYRIA
836LANGUAGE_ARABIC_TUNISIA = _gdi.LANGUAGE_ARABIC_TUNISIA
837LANGUAGE_ARABIC_UAE = _gdi.LANGUAGE_ARABIC_UAE
838LANGUAGE_ARABIC_YEMEN = _gdi.LANGUAGE_ARABIC_YEMEN
839LANGUAGE_ARMENIAN = _gdi.LANGUAGE_ARMENIAN
840LANGUAGE_ASSAMESE = _gdi.LANGUAGE_ASSAMESE
841LANGUAGE_AYMARA = _gdi.LANGUAGE_AYMARA
842LANGUAGE_AZERI = _gdi.LANGUAGE_AZERI
843LANGUAGE_AZERI_CYRILLIC = _gdi.LANGUAGE_AZERI_CYRILLIC
844LANGUAGE_AZERI_LATIN = _gdi.LANGUAGE_AZERI_LATIN
845LANGUAGE_BASHKIR = _gdi.LANGUAGE_BASHKIR
846LANGUAGE_BASQUE = _gdi.LANGUAGE_BASQUE
847LANGUAGE_BELARUSIAN = _gdi.LANGUAGE_BELARUSIAN
848LANGUAGE_BENGALI = _gdi.LANGUAGE_BENGALI
849LANGUAGE_BHUTANI = _gdi.LANGUAGE_BHUTANI
850LANGUAGE_BIHARI = _gdi.LANGUAGE_BIHARI
851LANGUAGE_BISLAMA = _gdi.LANGUAGE_BISLAMA
852LANGUAGE_BRETON = _gdi.LANGUAGE_BRETON
853LANGUAGE_BULGARIAN = _gdi.LANGUAGE_BULGARIAN
854LANGUAGE_BURMESE = _gdi.LANGUAGE_BURMESE
855LANGUAGE_CAMBODIAN = _gdi.LANGUAGE_CAMBODIAN
856LANGUAGE_CATALAN = _gdi.LANGUAGE_CATALAN
857LANGUAGE_CHINESE = _gdi.LANGUAGE_CHINESE
858LANGUAGE_CHINESE_SIMPLIFIED = _gdi.LANGUAGE_CHINESE_SIMPLIFIED
859LANGUAGE_CHINESE_TRADITIONAL = _gdi.LANGUAGE_CHINESE_TRADITIONAL
860LANGUAGE_CHINESE_HONGKONG = _gdi.LANGUAGE_CHINESE_HONGKONG
861LANGUAGE_CHINESE_MACAU = _gdi.LANGUAGE_CHINESE_MACAU
862LANGUAGE_CHINESE_SINGAPORE = _gdi.LANGUAGE_CHINESE_SINGAPORE
863LANGUAGE_CHINESE_TAIWAN = _gdi.LANGUAGE_CHINESE_TAIWAN
864LANGUAGE_CORSICAN = _gdi.LANGUAGE_CORSICAN
865LANGUAGE_CROATIAN = _gdi.LANGUAGE_CROATIAN
866LANGUAGE_CZECH = _gdi.LANGUAGE_CZECH
867LANGUAGE_DANISH = _gdi.LANGUAGE_DANISH
868LANGUAGE_DUTCH = _gdi.LANGUAGE_DUTCH
869LANGUAGE_DUTCH_BELGIAN = _gdi.LANGUAGE_DUTCH_BELGIAN
870LANGUAGE_ENGLISH = _gdi.LANGUAGE_ENGLISH
871LANGUAGE_ENGLISH_UK = _gdi.LANGUAGE_ENGLISH_UK
872LANGUAGE_ENGLISH_US = _gdi.LANGUAGE_ENGLISH_US
873LANGUAGE_ENGLISH_AUSTRALIA = _gdi.LANGUAGE_ENGLISH_AUSTRALIA
874LANGUAGE_ENGLISH_BELIZE = _gdi.LANGUAGE_ENGLISH_BELIZE
875LANGUAGE_ENGLISH_BOTSWANA = _gdi.LANGUAGE_ENGLISH_BOTSWANA
876LANGUAGE_ENGLISH_CANADA = _gdi.LANGUAGE_ENGLISH_CANADA
877LANGUAGE_ENGLISH_CARIBBEAN = _gdi.LANGUAGE_ENGLISH_CARIBBEAN
878LANGUAGE_ENGLISH_DENMARK = _gdi.LANGUAGE_ENGLISH_DENMARK
879LANGUAGE_ENGLISH_EIRE = _gdi.LANGUAGE_ENGLISH_EIRE
880LANGUAGE_ENGLISH_JAMAICA = _gdi.LANGUAGE_ENGLISH_JAMAICA
881LANGUAGE_ENGLISH_NEW_ZEALAND = _gdi.LANGUAGE_ENGLISH_NEW_ZEALAND
882LANGUAGE_ENGLISH_PHILIPPINES = _gdi.LANGUAGE_ENGLISH_PHILIPPINES
883LANGUAGE_ENGLISH_SOUTH_AFRICA = _gdi.LANGUAGE_ENGLISH_SOUTH_AFRICA
884LANGUAGE_ENGLISH_TRINIDAD = _gdi.LANGUAGE_ENGLISH_TRINIDAD
885LANGUAGE_ENGLISH_ZIMBABWE = _gdi.LANGUAGE_ENGLISH_ZIMBABWE
886LANGUAGE_ESPERANTO = _gdi.LANGUAGE_ESPERANTO
887LANGUAGE_ESTONIAN = _gdi.LANGUAGE_ESTONIAN
888LANGUAGE_FAEROESE = _gdi.LANGUAGE_FAEROESE
889LANGUAGE_FARSI = _gdi.LANGUAGE_FARSI
890LANGUAGE_FIJI = _gdi.LANGUAGE_FIJI
891LANGUAGE_FINNISH = _gdi.LANGUAGE_FINNISH
892LANGUAGE_FRENCH = _gdi.LANGUAGE_FRENCH
893LANGUAGE_FRENCH_BELGIAN = _gdi.LANGUAGE_FRENCH_BELGIAN
894LANGUAGE_FRENCH_CANADIAN = _gdi.LANGUAGE_FRENCH_CANADIAN
895LANGUAGE_FRENCH_LUXEMBOURG = _gdi.LANGUAGE_FRENCH_LUXEMBOURG
896LANGUAGE_FRENCH_MONACO = _gdi.LANGUAGE_FRENCH_MONACO
897LANGUAGE_FRENCH_SWISS = _gdi.LANGUAGE_FRENCH_SWISS
898LANGUAGE_FRISIAN = _gdi.LANGUAGE_FRISIAN
899LANGUAGE_GALICIAN = _gdi.LANGUAGE_GALICIAN
900LANGUAGE_GEORGIAN = _gdi.LANGUAGE_GEORGIAN
901LANGUAGE_GERMAN = _gdi.LANGUAGE_GERMAN
902LANGUAGE_GERMAN_AUSTRIAN = _gdi.LANGUAGE_GERMAN_AUSTRIAN
903LANGUAGE_GERMAN_BELGIUM = _gdi.LANGUAGE_GERMAN_BELGIUM
904LANGUAGE_GERMAN_LIECHTENSTEIN = _gdi.LANGUAGE_GERMAN_LIECHTENSTEIN
905LANGUAGE_GERMAN_LUXEMBOURG = _gdi.LANGUAGE_GERMAN_LUXEMBOURG
906LANGUAGE_GERMAN_SWISS = _gdi.LANGUAGE_GERMAN_SWISS
907LANGUAGE_GREEK = _gdi.LANGUAGE_GREEK
908LANGUAGE_GREENLANDIC = _gdi.LANGUAGE_GREENLANDIC
909LANGUAGE_GUARANI = _gdi.LANGUAGE_GUARANI
910LANGUAGE_GUJARATI = _gdi.LANGUAGE_GUJARATI
911LANGUAGE_HAUSA = _gdi.LANGUAGE_HAUSA
912LANGUAGE_HEBREW = _gdi.LANGUAGE_HEBREW
913LANGUAGE_HINDI = _gdi.LANGUAGE_HINDI
914LANGUAGE_HUNGARIAN = _gdi.LANGUAGE_HUNGARIAN
915LANGUAGE_ICELANDIC = _gdi.LANGUAGE_ICELANDIC
916LANGUAGE_INDONESIAN = _gdi.LANGUAGE_INDONESIAN
917LANGUAGE_INTERLINGUA = _gdi.LANGUAGE_INTERLINGUA
918LANGUAGE_INTERLINGUE = _gdi.LANGUAGE_INTERLINGUE
919LANGUAGE_INUKTITUT = _gdi.LANGUAGE_INUKTITUT
920LANGUAGE_INUPIAK = _gdi.LANGUAGE_INUPIAK
921LANGUAGE_IRISH = _gdi.LANGUAGE_IRISH
922LANGUAGE_ITALIAN = _gdi.LANGUAGE_ITALIAN
923LANGUAGE_ITALIAN_SWISS = _gdi.LANGUAGE_ITALIAN_SWISS
924LANGUAGE_JAPANESE = _gdi.LANGUAGE_JAPANESE
925LANGUAGE_JAVANESE = _gdi.LANGUAGE_JAVANESE
926LANGUAGE_KANNADA = _gdi.LANGUAGE_KANNADA
927LANGUAGE_KASHMIRI = _gdi.LANGUAGE_KASHMIRI
928LANGUAGE_KASHMIRI_INDIA = _gdi.LANGUAGE_KASHMIRI_INDIA
929LANGUAGE_KAZAKH = _gdi.LANGUAGE_KAZAKH
930LANGUAGE_KERNEWEK = _gdi.LANGUAGE_KERNEWEK
931LANGUAGE_KINYARWANDA = _gdi.LANGUAGE_KINYARWANDA
932LANGUAGE_KIRGHIZ = _gdi.LANGUAGE_KIRGHIZ
933LANGUAGE_KIRUNDI = _gdi.LANGUAGE_KIRUNDI
934LANGUAGE_KONKANI = _gdi.LANGUAGE_KONKANI
935LANGUAGE_KOREAN = _gdi.LANGUAGE_KOREAN
936LANGUAGE_KURDISH = _gdi.LANGUAGE_KURDISH
937LANGUAGE_LAOTHIAN = _gdi.LANGUAGE_LAOTHIAN
938LANGUAGE_LATIN = _gdi.LANGUAGE_LATIN
939LANGUAGE_LATVIAN = _gdi.LANGUAGE_LATVIAN
940LANGUAGE_LINGALA = _gdi.LANGUAGE_LINGALA
941LANGUAGE_LITHUANIAN = _gdi.LANGUAGE_LITHUANIAN
942LANGUAGE_MACEDONIAN = _gdi.LANGUAGE_MACEDONIAN
943LANGUAGE_MALAGASY = _gdi.LANGUAGE_MALAGASY
944LANGUAGE_MALAY = _gdi.LANGUAGE_MALAY
945LANGUAGE_MALAYALAM = _gdi.LANGUAGE_MALAYALAM
946LANGUAGE_MALAY_BRUNEI_DARUSSALAM = _gdi.LANGUAGE_MALAY_BRUNEI_DARUSSALAM
947LANGUAGE_MALAY_MALAYSIA = _gdi.LANGUAGE_MALAY_MALAYSIA
948LANGUAGE_MALTESE = _gdi.LANGUAGE_MALTESE
949LANGUAGE_MANIPURI = _gdi.LANGUAGE_MANIPURI
950LANGUAGE_MAORI = _gdi.LANGUAGE_MAORI
951LANGUAGE_MARATHI = _gdi.LANGUAGE_MARATHI
952LANGUAGE_MOLDAVIAN = _gdi.LANGUAGE_MOLDAVIAN
953LANGUAGE_MONGOLIAN = _gdi.LANGUAGE_MONGOLIAN
954LANGUAGE_NAURU = _gdi.LANGUAGE_NAURU
955LANGUAGE_NEPALI = _gdi.LANGUAGE_NEPALI
956LANGUAGE_NEPALI_INDIA = _gdi.LANGUAGE_NEPALI_INDIA
957LANGUAGE_NORWEGIAN_BOKMAL = _gdi.LANGUAGE_NORWEGIAN_BOKMAL
958LANGUAGE_NORWEGIAN_NYNORSK = _gdi.LANGUAGE_NORWEGIAN_NYNORSK
959LANGUAGE_OCCITAN = _gdi.LANGUAGE_OCCITAN
960LANGUAGE_ORIYA = _gdi.LANGUAGE_ORIYA
961LANGUAGE_OROMO = _gdi.LANGUAGE_OROMO
962LANGUAGE_PASHTO = _gdi.LANGUAGE_PASHTO
963LANGUAGE_POLISH = _gdi.LANGUAGE_POLISH
964LANGUAGE_PORTUGUESE = _gdi.LANGUAGE_PORTUGUESE
965LANGUAGE_PORTUGUESE_BRAZILIAN = _gdi.LANGUAGE_PORTUGUESE_BRAZILIAN
966LANGUAGE_PUNJABI = _gdi.LANGUAGE_PUNJABI
967LANGUAGE_QUECHUA = _gdi.LANGUAGE_QUECHUA
968LANGUAGE_RHAETO_ROMANCE = _gdi.LANGUAGE_RHAETO_ROMANCE
969LANGUAGE_ROMANIAN = _gdi.LANGUAGE_ROMANIAN
970LANGUAGE_RUSSIAN = _gdi.LANGUAGE_RUSSIAN
971LANGUAGE_RUSSIAN_UKRAINE = _gdi.LANGUAGE_RUSSIAN_UKRAINE
972LANGUAGE_SAMOAN = _gdi.LANGUAGE_SAMOAN
973LANGUAGE_SANGHO = _gdi.LANGUAGE_SANGHO
974LANGUAGE_SANSKRIT = _gdi.LANGUAGE_SANSKRIT
975LANGUAGE_SCOTS_GAELIC = _gdi.LANGUAGE_SCOTS_GAELIC
976LANGUAGE_SERBIAN = _gdi.LANGUAGE_SERBIAN
977LANGUAGE_SERBIAN_CYRILLIC = _gdi.LANGUAGE_SERBIAN_CYRILLIC
978LANGUAGE_SERBIAN_LATIN = _gdi.LANGUAGE_SERBIAN_LATIN
979LANGUAGE_SERBO_CROATIAN = _gdi.LANGUAGE_SERBO_CROATIAN
980LANGUAGE_SESOTHO = _gdi.LANGUAGE_SESOTHO
981LANGUAGE_SETSWANA = _gdi.LANGUAGE_SETSWANA
982LANGUAGE_SHONA = _gdi.LANGUAGE_SHONA
983LANGUAGE_SINDHI = _gdi.LANGUAGE_SINDHI
984LANGUAGE_SINHALESE = _gdi.LANGUAGE_SINHALESE
985LANGUAGE_SISWATI = _gdi.LANGUAGE_SISWATI
986LANGUAGE_SLOVAK = _gdi.LANGUAGE_SLOVAK
987LANGUAGE_SLOVENIAN = _gdi.LANGUAGE_SLOVENIAN
988LANGUAGE_SOMALI = _gdi.LANGUAGE_SOMALI
989LANGUAGE_SPANISH = _gdi.LANGUAGE_SPANISH
990LANGUAGE_SPANISH_ARGENTINA = _gdi.LANGUAGE_SPANISH_ARGENTINA
991LANGUAGE_SPANISH_BOLIVIA = _gdi.LANGUAGE_SPANISH_BOLIVIA
992LANGUAGE_SPANISH_CHILE = _gdi.LANGUAGE_SPANISH_CHILE
993LANGUAGE_SPANISH_COLOMBIA = _gdi.LANGUAGE_SPANISH_COLOMBIA
994LANGUAGE_SPANISH_COSTA_RICA = _gdi.LANGUAGE_SPANISH_COSTA_RICA
995LANGUAGE_SPANISH_DOMINICAN_REPUBLIC = _gdi.LANGUAGE_SPANISH_DOMINICAN_REPUBLIC
996LANGUAGE_SPANISH_ECUADOR = _gdi.LANGUAGE_SPANISH_ECUADOR
997LANGUAGE_SPANISH_EL_SALVADOR = _gdi.LANGUAGE_SPANISH_EL_SALVADOR
998LANGUAGE_SPANISH_GUATEMALA = _gdi.LANGUAGE_SPANISH_GUATEMALA
999LANGUAGE_SPANISH_HONDURAS = _gdi.LANGUAGE_SPANISH_HONDURAS
1000LANGUAGE_SPANISH_MEXICAN = _gdi.LANGUAGE_SPANISH_MEXICAN
1001LANGUAGE_SPANISH_MODERN = _gdi.LANGUAGE_SPANISH_MODERN
1002LANGUAGE_SPANISH_NICARAGUA = _gdi.LANGUAGE_SPANISH_NICARAGUA
1003LANGUAGE_SPANISH_PANAMA = _gdi.LANGUAGE_SPANISH_PANAMA
1004LANGUAGE_SPANISH_PARAGUAY = _gdi.LANGUAGE_SPANISH_PARAGUAY
1005LANGUAGE_SPANISH_PERU = _gdi.LANGUAGE_SPANISH_PERU
1006LANGUAGE_SPANISH_PUERTO_RICO = _gdi.LANGUAGE_SPANISH_PUERTO_RICO
1007LANGUAGE_SPANISH_URUGUAY = _gdi.LANGUAGE_SPANISH_URUGUAY
1008LANGUAGE_SPANISH_US = _gdi.LANGUAGE_SPANISH_US
1009LANGUAGE_SPANISH_VENEZUELA = _gdi.LANGUAGE_SPANISH_VENEZUELA
1010LANGUAGE_SUNDANESE = _gdi.LANGUAGE_SUNDANESE
1011LANGUAGE_SWAHILI = _gdi.LANGUAGE_SWAHILI
1012LANGUAGE_SWEDISH = _gdi.LANGUAGE_SWEDISH
1013LANGUAGE_SWEDISH_FINLAND = _gdi.LANGUAGE_SWEDISH_FINLAND
1014LANGUAGE_TAGALOG = _gdi.LANGUAGE_TAGALOG
1015LANGUAGE_TAJIK = _gdi.LANGUAGE_TAJIK
1016LANGUAGE_TAMIL = _gdi.LANGUAGE_TAMIL
1017LANGUAGE_TATAR = _gdi.LANGUAGE_TATAR
1018LANGUAGE_TELUGU = _gdi.LANGUAGE_TELUGU
1019LANGUAGE_THAI = _gdi.LANGUAGE_THAI
1020LANGUAGE_TIBETAN = _gdi.LANGUAGE_TIBETAN
1021LANGUAGE_TIGRINYA = _gdi.LANGUAGE_TIGRINYA
1022LANGUAGE_TONGA = _gdi.LANGUAGE_TONGA
1023LANGUAGE_TSONGA = _gdi.LANGUAGE_TSONGA
1024LANGUAGE_TURKISH = _gdi.LANGUAGE_TURKISH
1025LANGUAGE_TURKMEN = _gdi.LANGUAGE_TURKMEN
1026LANGUAGE_TWI = _gdi.LANGUAGE_TWI
1027LANGUAGE_UIGHUR = _gdi.LANGUAGE_UIGHUR
1028LANGUAGE_UKRAINIAN = _gdi.LANGUAGE_UKRAINIAN
1029LANGUAGE_URDU = _gdi.LANGUAGE_URDU
1030LANGUAGE_URDU_INDIA = _gdi.LANGUAGE_URDU_INDIA
1031LANGUAGE_URDU_PAKISTAN = _gdi.LANGUAGE_URDU_PAKISTAN
1032LANGUAGE_UZBEK = _gdi.LANGUAGE_UZBEK
1033LANGUAGE_UZBEK_CYRILLIC = _gdi.LANGUAGE_UZBEK_CYRILLIC
1034LANGUAGE_UZBEK_LATIN = _gdi.LANGUAGE_UZBEK_LATIN
1035LANGUAGE_VIETNAMESE = _gdi.LANGUAGE_VIETNAMESE
1036LANGUAGE_VOLAPUK = _gdi.LANGUAGE_VOLAPUK
1037LANGUAGE_WELSH = _gdi.LANGUAGE_WELSH
1038LANGUAGE_WOLOF = _gdi.LANGUAGE_WOLOF
1039LANGUAGE_XHOSA = _gdi.LANGUAGE_XHOSA
1040LANGUAGE_YIDDISH = _gdi.LANGUAGE_YIDDISH
1041LANGUAGE_YORUBA = _gdi.LANGUAGE_YORUBA
1042LANGUAGE_ZHUANG = _gdi.LANGUAGE_ZHUANG
1043LANGUAGE_ZULU = _gdi.LANGUAGE_ZULU
1044LANGUAGE_USER_DEFINED = _gdi.LANGUAGE_USER_DEFINED
1045class LanguageInfo(object):
1046 Language = property(_gdi.LanguageInfo_Language_get, _gdi.LanguageInfo_Language_set)
1047 CanonicalName = property(_gdi.LanguageInfo_CanonicalName_get, _gdi.LanguageInfo_CanonicalName_set)
1048 Description = property(_gdi.LanguageInfo_Description_get, _gdi.LanguageInfo_Description_set)
1049 def __init__(self): raise RuntimeError, "No constructor defined"
e6056257 1050 def __repr__(self):
d14a1e28
RD
1051 return "<%s.%s; proxy of C++ wxLanguageInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1052
1053class LanguageInfoPtr(LanguageInfo):
1054 def __init__(self, this):
e6056257 1055 self.this = this
d14a1e28
RD
1056 if not hasattr(self,"thisown"): self.thisown = 0
1057 self.__class__ = LanguageInfo
1058_gdi.LanguageInfo_swigregister(LanguageInfoPtr)
1059
1060LOCALE_CAT_NUMBER = _gdi.LOCALE_CAT_NUMBER
1061LOCALE_CAT_DATE = _gdi.LOCALE_CAT_DATE
1062LOCALE_CAT_MONEY = _gdi.LOCALE_CAT_MONEY
1063LOCALE_CAT_MAX = _gdi.LOCALE_CAT_MAX
1064LOCALE_THOUSANDS_SEP = _gdi.LOCALE_THOUSANDS_SEP
1065LOCALE_DECIMAL_POINT = _gdi.LOCALE_DECIMAL_POINT
1066LOCALE_LOAD_DEFAULT = _gdi.LOCALE_LOAD_DEFAULT
1067LOCALE_CONV_ENCODING = _gdi.LOCALE_CONV_ENCODING
1068class Locale(object):
1069 def __init__(self, *args, **kwargs):
1070 newobj = _gdi.new_Locale(*args, **kwargs)
1071 self.this = newobj.this
1072 self.thisown = 1
1073 del newobj.thisown
1074 def __del__(self, destroy=_gdi.delete_Locale):
1075 try:
1076 if self.thisown: destroy(self)
1077 except: pass
1078 def Init1(*args, **kwargs): return _gdi.Locale_Init1(*args, **kwargs)
1079 def Init2(*args, **kwargs): return _gdi.Locale_Init2(*args, **kwargs)
1080 def Init(self, *_args, **_kwargs):
1081 if type(_args[0]) in [type(''), type(u'')]:
1082 val = self.Init1(*_args, **_kwargs)
1083 else:
1084 val = self.Init2(*_args, **_kwargs)
1085 return val
1086
1087 GetSystemLanguage = staticmethod(_gdi.Locale_GetSystemLanguage)
1088 GetSystemEncoding = staticmethod(_gdi.Locale_GetSystemEncoding)
1089 GetSystemEncodingName = staticmethod(_gdi.Locale_GetSystemEncodingName)
1090 def IsOk(*args, **kwargs): return _gdi.Locale_IsOk(*args, **kwargs)
1091 def __nonzero__(self): return self.IsOk()
1092 def GetLocale(*args, **kwargs): return _gdi.Locale_GetLocale(*args, **kwargs)
1093 def GetLanguage(*args, **kwargs): return _gdi.Locale_GetLanguage(*args, **kwargs)
1094 def GetSysName(*args, **kwargs): return _gdi.Locale_GetSysName(*args, **kwargs)
1095 def GetCanonicalName(*args, **kwargs): return _gdi.Locale_GetCanonicalName(*args, **kwargs)
1096 AddCatalogLookupPathPrefix = staticmethod(_gdi.Locale_AddCatalogLookupPathPrefix)
1097 def AddCatalog(*args, **kwargs): return _gdi.Locale_AddCatalog(*args, **kwargs)
1098 def IsLoaded(*args, **kwargs): return _gdi.Locale_IsLoaded(*args, **kwargs)
1099 GetLanguageInfo = staticmethod(_gdi.Locale_GetLanguageInfo)
1100 GetLanguageName = staticmethod(_gdi.Locale_GetLanguageName)
1101 FindLanguageInfo = staticmethod(_gdi.Locale_FindLanguageInfo)
1102 AddLanguage = staticmethod(_gdi.Locale_AddLanguage)
1103 def GetString(*args, **kwargs): return _gdi.Locale_GetString(*args, **kwargs)
1104 def GetName(*args, **kwargs): return _gdi.Locale_GetName(*args, **kwargs)
1105 def __repr__(self):
1106 return "<%s.%s; proxy of C++ wxLocale instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1107
d14a1e28
RD
1108class LocalePtr(Locale):
1109 def __init__(self, this):
1110 self.this = this
1111 if not hasattr(self,"thisown"): self.thisown = 0
1112 self.__class__ = Locale
1113_gdi.Locale_swigregister(LocalePtr)
e6056257 1114
d14a1e28 1115Locale_GetSystemLanguage = _gdi.Locale_GetSystemLanguage
e6056257 1116
d14a1e28 1117Locale_GetSystemEncoding = _gdi.Locale_GetSystemEncoding
e6056257 1118
d14a1e28
RD
1119Locale_GetSystemEncodingName = _gdi.Locale_GetSystemEncodingName
1120
1121Locale_AddCatalogLookupPathPrefix = _gdi.Locale_AddCatalogLookupPathPrefix
1122
1123Locale_GetLanguageInfo = _gdi.Locale_GetLanguageInfo
1124
1125Locale_GetLanguageName = _gdi.Locale_GetLanguageName
1126
1127Locale_FindLanguageInfo = _gdi.Locale_FindLanguageInfo
1128
1129Locale_AddLanguage = _gdi.Locale_AddLanguage
1130
1131
1132GetLocale = _gdi.GetLocale
1133#---------------------------------------------------------------------------
1134
1135CONVERT_STRICT = _gdi.CONVERT_STRICT
1136CONVERT_SUBSTITUTE = _gdi.CONVERT_SUBSTITUTE
1137PLATFORM_CURRENT = _gdi.PLATFORM_CURRENT
1138PLATFORM_UNIX = _gdi.PLATFORM_UNIX
1139PLATFORM_WINDOWS = _gdi.PLATFORM_WINDOWS
1140PLATFORM_OS2 = _gdi.PLATFORM_OS2
1141PLATFORM_MAC = _gdi.PLATFORM_MAC
1142class EncodingConverter(core.Object):
1143 def __init__(self, *args, **kwargs):
1144 newobj = _gdi.new_EncodingConverter(*args, **kwargs)
1145 self.this = newobj.this
1146 self.thisown = 1
1147 del newobj.thisown
1148 def __del__(self, destroy=_gdi.delete_EncodingConverter):
1149 try:
1150 if self.thisown: destroy(self)
1151 except: pass
1152 def Init(*args, **kwargs): return _gdi.EncodingConverter_Init(*args, **kwargs)
1153 def Convert(*args, **kwargs): return _gdi.EncodingConverter_Convert(*args, **kwargs)
1154 GetPlatformEquivalents = staticmethod(_gdi.EncodingConverter_GetPlatformEquivalents)
1155 GetAllEquivalents = staticmethod(_gdi.EncodingConverter_GetAllEquivalents)
1156 CanConvert = staticmethod(_gdi.EncodingConverter_CanConvert)
1157 def __nonzero__(self): return self.IsOk()
e6056257 1158 def __repr__(self):
d14a1e28
RD
1159 return "<%s.%s; proxy of C++ wxEncodingConverter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1160
1161class EncodingConverterPtr(EncodingConverter):
1162 def __init__(self, this):
1163 self.this = this
1164 if not hasattr(self,"thisown"): self.thisown = 0
1165 self.__class__ = EncodingConverter
1166_gdi.EncodingConverter_swigregister(EncodingConverterPtr)
1167
1168GetTranslation = _gdi.GetTranslation
1169
1170EncodingConverter_GetPlatformEquivalents = _gdi.EncodingConverter_GetPlatformEquivalents
1171
1172EncodingConverter_GetAllEquivalents = _gdi.EncodingConverter_GetAllEquivalents
1173
1174EncodingConverter_CanConvert = _gdi.EncodingConverter_CanConvert
1175
1176#----------------------------------------------------------------------------
1177# wxGTK sets the locale when initialized. Doing this at the Python
1178# level should set it up to match what GTK is doing at the C level.
1179if wx.Platform == "__WXGTK__":
1180 try:
1181 import locale
1182 locale.setlocale(locale.LC_ALL, "")
1183 except:
1184 pass
1185
1186# On MSW add the directory where the wxWindows catalogs were installed
1187# to the default catalog path.
1188if wx.Platform == "__WXMSW__":
1189 import os
1190 localedir = os.path.join(os.path.split(__file__)[0], "locale")
1191 Locale_AddCatalogLookupPathPrefix(localedir)
1192 del os
1193
1194#----------------------------------------------------------------------------
1195
1196#---------------------------------------------------------------------------
1197
1198class DC(core.Object):
1199 def __del__(self, destroy=_gdi.delete_DC):
1200 try:
1201 if self.thisown: destroy(self)
1202 except: pass
1203 def BeginDrawing(*args, **kwargs): return _gdi.DC_BeginDrawing(*args, **kwargs)
1204 def EndDrawing(*args, **kwargs): return _gdi.DC_EndDrawing(*args, **kwargs)
1205 def FloodFillXY(*args, **kwargs): return _gdi.DC_FloodFillXY(*args, **kwargs)
1206 def FloodFill(*args, **kwargs): return _gdi.DC_FloodFill(*args, **kwargs)
1207 def GetPixelXY(*args, **kwargs): return _gdi.DC_GetPixelXY(*args, **kwargs)
1208 def GetPixel(*args, **kwargs): return _gdi.DC_GetPixel(*args, **kwargs)
1209 def DrawLineXY(*args, **kwargs): return _gdi.DC_DrawLineXY(*args, **kwargs)
1210 def DrawLine(*args, **kwargs): return _gdi.DC_DrawLine(*args, **kwargs)
1211 def CrossHairXY(*args, **kwargs): return _gdi.DC_CrossHairXY(*args, **kwargs)
1212 def CrossHair(*args, **kwargs): return _gdi.DC_CrossHair(*args, **kwargs)
1213 def DrawArcXY(*args, **kwargs): return _gdi.DC_DrawArcXY(*args, **kwargs)
1214 def DrawArc(*args, **kwargs): return _gdi.DC_DrawArc(*args, **kwargs)
1215 def DrawCheckMarkXY(*args, **kwargs): return _gdi.DC_DrawCheckMarkXY(*args, **kwargs)
1216 def DrawCheckMark(*args, **kwargs): return _gdi.DC_DrawCheckMark(*args, **kwargs)
1217 def DrawEllipticArcXY(*args, **kwargs): return _gdi.DC_DrawEllipticArcXY(*args, **kwargs)
1218 def DrawEllipticArc(*args, **kwargs): return _gdi.DC_DrawEllipticArc(*args, **kwargs)
1219 def DrawPointXY(*args, **kwargs): return _gdi.DC_DrawPointXY(*args, **kwargs)
1220 def DrawPoint(*args, **kwargs): return _gdi.DC_DrawPoint(*args, **kwargs)
1221 def DrawRectangleXY(*args, **kwargs): return _gdi.DC_DrawRectangleXY(*args, **kwargs)
1222 def DrawRectangle(*args, **kwargs): return _gdi.DC_DrawRectangle(*args, **kwargs)
1223 def DrawRectangleRect(*args, **kwargs): return _gdi.DC_DrawRectangleRect(*args, **kwargs)
1224 def DrawRoundedRectangleXY(*args, **kwargs): return _gdi.DC_DrawRoundedRectangleXY(*args, **kwargs)
1225 def DrawRoundedRectangle(*args, **kwargs): return _gdi.DC_DrawRoundedRectangle(*args, **kwargs)
1226 def DrawRoundedRectangleRect(*args, **kwargs): return _gdi.DC_DrawRoundedRectangleRect(*args, **kwargs)
1227 def DrawCircleXY(*args, **kwargs): return _gdi.DC_DrawCircleXY(*args, **kwargs)
1228 def DrawCircle(*args, **kwargs): return _gdi.DC_DrawCircle(*args, **kwargs)
1229 def DrawEllipseXY(*args, **kwargs): return _gdi.DC_DrawEllipseXY(*args, **kwargs)
1230 def DrawEllipse(*args, **kwargs): return _gdi.DC_DrawEllipse(*args, **kwargs)
1231 def DrawEllipseRect(*args, **kwargs): return _gdi.DC_DrawEllipseRect(*args, **kwargs)
1232 def DrawIconXY(*args, **kwargs): return _gdi.DC_DrawIconXY(*args, **kwargs)
1233 def DrawIcon(*args, **kwargs): return _gdi.DC_DrawIcon(*args, **kwargs)
1234 def DrawBitmapXY(*args, **kwargs): return _gdi.DC_DrawBitmapXY(*args, **kwargs)
1235 def DrawBitmap(*args, **kwargs): return _gdi.DC_DrawBitmap(*args, **kwargs)
1236 def DrawTextXY(*args, **kwargs): return _gdi.DC_DrawTextXY(*args, **kwargs)
1237 def DrawText(*args, **kwargs): return _gdi.DC_DrawText(*args, **kwargs)
1238 def DrawRotatedTextXY(*args, **kwargs): return _gdi.DC_DrawRotatedTextXY(*args, **kwargs)
1239 def DrawRotatedText(*args, **kwargs): return _gdi.DC_DrawRotatedText(*args, **kwargs)
1240 def BlitXY(*args, **kwargs): return _gdi.DC_BlitXY(*args, **kwargs)
1241 def Blit(*args, **kwargs): return _gdi.DC_Blit(*args, **kwargs)
1242 def DrawLines(*args, **kwargs): return _gdi.DC_DrawLines(*args, **kwargs)
1243 def DrawPolygon(*args, **kwargs): return _gdi.DC_DrawPolygon(*args, **kwargs)
1244 def DrawLabel(*args, **kwargs): return _gdi.DC_DrawLabel(*args, **kwargs)
1245 def DrawImageLabel(*args, **kwargs): return _gdi.DC_DrawImageLabel(*args, **kwargs)
1246 def DrawSpline(*args, **kwargs): return _gdi.DC_DrawSpline(*args, **kwargs)
1247 def Clear(*args, **kwargs): return _gdi.DC_Clear(*args, **kwargs)
1248 def StartDoc(*args, **kwargs): return _gdi.DC_StartDoc(*args, **kwargs)
1249 def EndDoc(*args, **kwargs): return _gdi.DC_EndDoc(*args, **kwargs)
1250 def StartPage(*args, **kwargs): return _gdi.DC_StartPage(*args, **kwargs)
1251 def EndPage(*args, **kwargs): return _gdi.DC_EndPage(*args, **kwargs)
1252 def SetFont(*args, **kwargs): return _gdi.DC_SetFont(*args, **kwargs)
1253 def SetPen(*args, **kwargs): return _gdi.DC_SetPen(*args, **kwargs)
1254 def SetBrush(*args, **kwargs): return _gdi.DC_SetBrush(*args, **kwargs)
1255 def SetBackground(*args, **kwargs): return _gdi.DC_SetBackground(*args, **kwargs)
1256 def SetBackgroundMode(*args, **kwargs): return _gdi.DC_SetBackgroundMode(*args, **kwargs)
1257 def SetPalette(*args, **kwargs): return _gdi.DC_SetPalette(*args, **kwargs)
1258 def SetClippingRegion(*args, **kwargs): return _gdi.DC_SetClippingRegion(*args, **kwargs)
1259 def SetClippingRect(*args, **kwargs): return _gdi.DC_SetClippingRect(*args, **kwargs)
1260 def SetClippingRegionAsRegion(*args, **kwargs): return _gdi.DC_SetClippingRegionAsRegion(*args, **kwargs)
1261 def DestroyClippingRegion(*args, **kwargs): return _gdi.DC_DestroyClippingRegion(*args, **kwargs)
1262 def GetClippingBox(*args, **kwargs): return _gdi.DC_GetClippingBox(*args, **kwargs)
1263 def GetClippingRect(*args, **kwargs): return _gdi.DC_GetClippingRect(*args, **kwargs)
1264 def GetCharHeight(*args, **kwargs): return _gdi.DC_GetCharHeight(*args, **kwargs)
1265 def GetCharWidth(*args, **kwargs): return _gdi.DC_GetCharWidth(*args, **kwargs)
1266 def GetTextExtent(*args, **kwargs): return _gdi.DC_GetTextExtent(*args, **kwargs)
1267 def GetFullTextExtent(*args, **kwargs): return _gdi.DC_GetFullTextExtent(*args, **kwargs)
1268 def GetMultiLineTextExtent(*args, **kwargs): return _gdi.DC_GetMultiLineTextExtent(*args, **kwargs)
1269 def GetSizeTuple(*args, **kwargs): return _gdi.DC_GetSizeTuple(*args, **kwargs)
1270 def GetSize(*args, **kwargs): return _gdi.DC_GetSize(*args, **kwargs)
1271 def GetSizeMMWH(*args, **kwargs): return _gdi.DC_GetSizeMMWH(*args, **kwargs)
1272 def GetSizeMM(*args, **kwargs): return _gdi.DC_GetSizeMM(*args, **kwargs)
1273 def DeviceToLogicalX(*args, **kwargs): return _gdi.DC_DeviceToLogicalX(*args, **kwargs)
1274 def DeviceToLogicalY(*args, **kwargs): return _gdi.DC_DeviceToLogicalY(*args, **kwargs)
1275 def DeviceToLogicalXRel(*args, **kwargs): return _gdi.DC_DeviceToLogicalXRel(*args, **kwargs)
1276 def DeviceToLogicalYRel(*args, **kwargs): return _gdi.DC_DeviceToLogicalYRel(*args, **kwargs)
1277 def LogicalToDeviceX(*args, **kwargs): return _gdi.DC_LogicalToDeviceX(*args, **kwargs)
1278 def LogicalToDeviceY(*args, **kwargs): return _gdi.DC_LogicalToDeviceY(*args, **kwargs)
1279 def LogicalToDeviceXRel(*args, **kwargs): return _gdi.DC_LogicalToDeviceXRel(*args, **kwargs)
1280 def LogicalToDeviceYRel(*args, **kwargs): return _gdi.DC_LogicalToDeviceYRel(*args, **kwargs)
1281 def CanDrawBitmap(*args, **kwargs): return _gdi.DC_CanDrawBitmap(*args, **kwargs)
1282 def CanGetTextExtent(*args, **kwargs): return _gdi.DC_CanGetTextExtent(*args, **kwargs)
1283 def GetDepth(*args, **kwargs): return _gdi.DC_GetDepth(*args, **kwargs)
1284 def GetPPI(*args, **kwargs): return _gdi.DC_GetPPI(*args, **kwargs)
1285 def Ok(*args, **kwargs): return _gdi.DC_Ok(*args, **kwargs)
1286 def GetBackgroundMode(*args, **kwargs): return _gdi.DC_GetBackgroundMode(*args, **kwargs)
1287 def GetBackground(*args, **kwargs): return _gdi.DC_GetBackground(*args, **kwargs)
1288 def GetBrush(*args, **kwargs): return _gdi.DC_GetBrush(*args, **kwargs)
1289 def GetFont(*args, **kwargs): return _gdi.DC_GetFont(*args, **kwargs)
1290 def GetPen(*args, **kwargs): return _gdi.DC_GetPen(*args, **kwargs)
1291 def GetTextBackground(*args, **kwargs): return _gdi.DC_GetTextBackground(*args, **kwargs)
1292 def GetTextForeground(*args, **kwargs): return _gdi.DC_GetTextForeground(*args, **kwargs)
1293 def SetTextForeground(*args, **kwargs): return _gdi.DC_SetTextForeground(*args, **kwargs)
1294 def SetTextBackground(*args, **kwargs): return _gdi.DC_SetTextBackground(*args, **kwargs)
1295 def GetMapMode(*args, **kwargs): return _gdi.DC_GetMapMode(*args, **kwargs)
1296 def SetMapMode(*args, **kwargs): return _gdi.DC_SetMapMode(*args, **kwargs)
1297 def GetUserScale(*args, **kwargs): return _gdi.DC_GetUserScale(*args, **kwargs)
1298 def SetUserScale(*args, **kwargs): return _gdi.DC_SetUserScale(*args, **kwargs)
1299 def GetLogicalScale(*args, **kwargs): return _gdi.DC_GetLogicalScale(*args, **kwargs)
1300 def SetLogicalScale(*args, **kwargs): return _gdi.DC_SetLogicalScale(*args, **kwargs)
1301 def GetLogicalOriginTuple(*args, **kwargs): return _gdi.DC_GetLogicalOriginTuple(*args, **kwargs)
1302 def GetLogicalOrigin(*args, **kwargs): return _gdi.DC_GetLogicalOrigin(*args, **kwargs)
1303 def SetLogicalOrigin(*args, **kwargs): return _gdi.DC_SetLogicalOrigin(*args, **kwargs)
1304 def GetDeviceOriginTuple(*args, **kwargs): return _gdi.DC_GetDeviceOriginTuple(*args, **kwargs)
1305 def GetDeviceOrigin(*args, **kwargs): return _gdi.DC_GetDeviceOrigin(*args, **kwargs)
1306 def SetDeviceOrigin(*args, **kwargs): return _gdi.DC_SetDeviceOrigin(*args, **kwargs)
1307 def SetAxisOrientation(*args, **kwargs): return _gdi.DC_SetAxisOrientation(*args, **kwargs)
1308 def GetLogicalFunction(*args, **kwargs): return _gdi.DC_GetLogicalFunction(*args, **kwargs)
1309 def SetLogicalFunction(*args, **kwargs): return _gdi.DC_SetLogicalFunction(*args, **kwargs)
1310 def SetOptimization(*args, **kwargs): return _gdi.DC_SetOptimization(*args, **kwargs)
1311 def GetOptimization(*args, **kwargs): return _gdi.DC_GetOptimization(*args, **kwargs)
1312 def CalcBoundingBox(*args, **kwargs): return _gdi.DC_CalcBoundingBox(*args, **kwargs)
1313 def ResetBoundingBox(*args, **kwargs): return _gdi.DC_ResetBoundingBox(*args, **kwargs)
1314 def MinX(*args, **kwargs): return _gdi.DC_MinX(*args, **kwargs)
1315 def MaxX(*args, **kwargs): return _gdi.DC_MaxX(*args, **kwargs)
1316 def MinY(*args, **kwargs): return _gdi.DC_MinY(*args, **kwargs)
1317 def MaxY(*args, **kwargs): return _gdi.DC_MaxY(*args, **kwargs)
1318 def GetBoundingBox(*args, **kwargs): return _gdi.DC_GetBoundingBox(*args, **kwargs)
1319 def __nonzero__(self): return self.Ok()
1320 def _DrawPointList(*args, **kwargs): return _gdi.DC__DrawPointList(*args, **kwargs)
1321 def _DrawLineList(*args, **kwargs): return _gdi.DC__DrawLineList(*args, **kwargs)
1322 def _DrawRectangleList(*args, **kwargs): return _gdi.DC__DrawRectangleList(*args, **kwargs)
1323 def _DrawEllipseList(*args, **kwargs): return _gdi.DC__DrawEllipseList(*args, **kwargs)
1324 def _DrawPolygonList(*args, **kwargs): return _gdi.DC__DrawPolygonList(*args, **kwargs)
1325 def _DrawTextList(*args, **kwargs): return _gdi.DC__DrawTextList(*args, **kwargs)
e6056257
RD
1326 def DrawPointList(self, points, pens=None):
1327 if pens is None:
1328 pens = []
d14a1e28 1329 elif isinstance(pens, wx.Pen):
e6056257
RD
1330 pens = [pens]
1331 elif len(pens) != len(points):
1332 raise ValueError('points and pens must have same length')
7108497a
RD
1333 return self._DrawPointList(points, pens, [])
1334
e6056257
RD
1335
1336 def DrawLineList(self, lines, pens=None):
1337 if pens is None:
1338 pens = []
d14a1e28 1339 elif isinstance(pens, wx.Pen):
e6056257
RD
1340 pens = [pens]
1341 elif len(pens) != len(lines):
1342 raise ValueError('lines and pens must have same length')
7108497a
RD
1343 return self._DrawLineList(lines, pens, [])
1344
1345
1346 def DrawRectangleList(self, rectangles, pens=None, brushes=None):
1347 if pens is None:
1348 pens = []
d14a1e28 1349 elif isinstance(pens, wx.Pen):
7108497a
RD
1350 pens = [pens]
1351 elif len(pens) != len(rectangles):
1352 raise ValueError('rectangles and pens must have same length')
1353 if brushes is None:
1354 brushes = []
d14a1e28 1355 elif isinstance(brushes, wx.Brush):
7108497a
RD
1356 brushes = [brushes]
1357 elif len(brushes) != len(rectangles):
1358 raise ValueError('rectangles and brushes must have same length')
1359 return self._DrawRectangleList(rectangles, pens, brushes)
1360
1361
1362 def DrawEllipseList(self, ellipses, pens=None, brushes=None):
1363 if pens is None:
1364 pens = []
d14a1e28 1365 elif isinstance(pens, wx.Pen):
7108497a
RD
1366 pens = [pens]
1367 elif len(pens) != len(ellipses):
1368 raise ValueError('ellipses and pens must have same length')
1369 if brushes is None:
1370 brushes = []
d14a1e28 1371 elif isinstance(brushes, wx.Brush):
7108497a
RD
1372 brushes = [brushes]
1373 elif len(brushes) != len(ellipses):
1374 raise ValueError('ellipses and brushes must have same length')
1375 return self._DrawEllipseList(ellipses, pens, brushes)
1376
1377
1378 def DrawPolygonList(self, polygons, pens=None, brushes=None):
d14a1e28
RD
1379
1380
7108497a
RD
1381 if pens is None:
1382 pens = []
d14a1e28 1383 elif isinstance(pens, wx.Pen):
7108497a
RD
1384 pens = [pens]
1385 elif len(pens) != len(polygons):
1386 raise ValueError('polygons and pens must have same length')
1387 if brushes is None:
1388 brushes = []
d14a1e28 1389 elif isinstance(brushes, wx.Brush):
7108497a
RD
1390 brushes = [brushes]
1391 elif len(brushes) != len(polygons):
1392 raise ValueError('polygons and brushes must have same length')
1393 return self._DrawPolygonList(polygons, pens, brushes)
1394
1395
1396 def DrawTextList(self, textList, coords, foregrounds = None, backgrounds = None, fonts = None):
d14a1e28
RD
1397
1398
1399
7108497a
RD
1400 if type(textList) == type(''):
1401 textList = [textList]
1402 elif len(textList) != len(coords):
1403 raise ValueError('textlist and coords must have same length')
1404 if foregrounds is None:
1405 foregrounds = []
d14a1e28 1406 elif isinstance(foregrounds, wxColour):
7108497a
RD
1407 foregrounds = [foregrounds]
1408 elif len(foregrounds) != len(coords):
1409 raise ValueError('foregrounds and coords must have same length')
1410 if backgrounds is None:
1411 backgrounds = []
d14a1e28 1412 elif isinstance(backgrounds, wxColour):
7108497a
RD
1413 backgrounds = [backgrounds]
1414 elif len(backgrounds) != len(coords):
1415 raise ValueError('backgrounds and coords must have same length')
1416 return self._DrawTextList(textList, coords, foregrounds, backgrounds)
e6056257 1417
d14a1e28
RD
1418 def __init__(self): raise RuntimeError, "No constructor defined"
1419 def __repr__(self):
1420 return "<%s.%s; proxy of C++ wxDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1421
d14a1e28
RD
1422class DCPtr(DC):
1423 def __init__(self, this):
1424 self.this = this
1425 if not hasattr(self,"thisown"): self.thisown = 0
1426 self.__class__ = DC
1427_gdi.DC_swigregister(DCPtr)
e6056257 1428
d14a1e28 1429#---------------------------------------------------------------------------
e6056257 1430
d14a1e28
RD
1431class MemoryDC(DC):
1432 def __init__(self, *args, **kwargs):
1433 newobj = _gdi.new_MemoryDC(*args, **kwargs)
1434 self.this = newobj.this
e6056257 1435 self.thisown = 1
d14a1e28
RD
1436 del newobj.thisown
1437 def SelectObject(*args, **kwargs): return _gdi.MemoryDC_SelectObject(*args, **kwargs)
1438 def __repr__(self):
1439 return "<%s.%s; proxy of C++ wxMemoryDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1440
d14a1e28
RD
1441class MemoryDCPtr(MemoryDC):
1442 def __init__(self, this):
1443 self.this = this
1444 if not hasattr(self,"thisown"): self.thisown = 0
1445 self.__class__ = MemoryDC
1446_gdi.MemoryDC_swigregister(MemoryDCPtr)
e6056257 1447
d14a1e28
RD
1448def MemoryDCFromDC(*args, **kwargs):
1449 val = _gdi.new_MemoryDCFromDC(*args, **kwargs)
1450 val.thisown = 1
1451 return val
e6056257 1452
d14a1e28 1453#---------------------------------------------------------------------------
e6056257 1454
d14a1e28
RD
1455class BufferedDC(MemoryDC):
1456 def __init__(self, *args, **kwargs):
1457 newobj = _gdi.new_BufferedDC(*args, **kwargs)
1458 self.this = newobj.this
c3bfa1cb 1459 self.thisown = 1
d14a1e28
RD
1460 del newobj.thisown
1461 self._dc = args[0] # save a ref so the other dc will not be deleted before self
1462 def UnMask(*args, **kwargs): return _gdi.BufferedDC_UnMask(*args, **kwargs)
1463 def __repr__(self):
1464 return "<%s.%s; proxy of C++ wxBufferedDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
c3bfa1cb 1465
d14a1e28
RD
1466class BufferedDCPtr(BufferedDC):
1467 def __init__(self, this):
1468 self.this = this
1469 if not hasattr(self,"thisown"): self.thisown = 0
1470 self.__class__ = BufferedDC
1471_gdi.BufferedDC_swigregister(BufferedDCPtr)
c3bfa1cb 1472
d14a1e28
RD
1473def BufferedDCInternalBuffer(*args, **kwargs):
1474 val = _gdi.new_BufferedDCInternalBuffer(*args, **kwargs)
c3bfa1cb 1475 val.thisown = 1
d14a1e28 1476 val._dc = args[0] # save a ref so the other dc will not be deleted before self
c3bfa1cb
RD
1477 return val
1478
d14a1e28
RD
1479class BufferedPaintDC(BufferedDC):
1480 def __init__(self, *args, **kwargs):
1481 newobj = _gdi.new_BufferedPaintDC(*args, **kwargs)
1482 self.this = newobj.this
c3bfa1cb 1483 self.thisown = 1
d14a1e28
RD
1484 del newobj.thisown
1485 def __repr__(self):
1486 return "<%s.%s; proxy of C++ wxBufferedPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
c3bfa1cb 1487
d14a1e28
RD
1488class BufferedPaintDCPtr(BufferedPaintDC):
1489 def __init__(self, this):
1490 self.this = this
1491 if not hasattr(self,"thisown"): self.thisown = 0
1492 self.__class__ = BufferedPaintDC
1493_gdi.BufferedPaintDC_swigregister(BufferedPaintDCPtr)
c3bfa1cb 1494
d14a1e28 1495#---------------------------------------------------------------------------
c3bfa1cb 1496
d14a1e28
RD
1497class ScreenDC(DC):
1498 def __init__(self, *args, **kwargs):
1499 newobj = _gdi.new_ScreenDC(*args, **kwargs)
1500 self.this = newobj.this
e6056257 1501 self.thisown = 1
d14a1e28
RD
1502 del newobj.thisown
1503 def StartDrawingOnTopWin(*args, **kwargs): return _gdi.ScreenDC_StartDrawingOnTopWin(*args, **kwargs)
1504 def StartDrawingOnTop(*args, **kwargs): return _gdi.ScreenDC_StartDrawingOnTop(*args, **kwargs)
1505 def EndDrawingOnTop(*args, **kwargs): return _gdi.ScreenDC_EndDrawingOnTop(*args, **kwargs)
1506 def __repr__(self):
1507 return "<%s.%s; proxy of C++ wxScreenDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1508
d14a1e28
RD
1509class ScreenDCPtr(ScreenDC):
1510 def __init__(self, this):
1511 self.this = this
1512 if not hasattr(self,"thisown"): self.thisown = 0
1513 self.__class__ = ScreenDC
1514_gdi.ScreenDC_swigregister(ScreenDCPtr)
e6056257 1515
d14a1e28 1516#---------------------------------------------------------------------------
e6056257 1517
d14a1e28
RD
1518class ClientDC(DC):
1519 def __init__(self, *args, **kwargs):
1520 newobj = _gdi.new_ClientDC(*args, **kwargs)
1521 self.this = newobj.this
e6056257 1522 self.thisown = 1
d14a1e28
RD
1523 del newobj.thisown
1524 def __repr__(self):
1525 return "<%s.%s; proxy of C++ wxClientDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1526
d14a1e28
RD
1527class ClientDCPtr(ClientDC):
1528 def __init__(self, this):
1529 self.this = this
1530 if not hasattr(self,"thisown"): self.thisown = 0
1531 self.__class__ = ClientDC
1532_gdi.ClientDC_swigregister(ClientDCPtr)
e6056257 1533
d14a1e28 1534#---------------------------------------------------------------------------
e6056257 1535
d14a1e28
RD
1536class PaintDC(DC):
1537 def __init__(self, *args, **kwargs):
1538 newobj = _gdi.new_PaintDC(*args, **kwargs)
1539 self.this = newobj.this
e6056257 1540 self.thisown = 1
d14a1e28
RD
1541 del newobj.thisown
1542 def __repr__(self):
1543 return "<%s.%s; proxy of C++ wxPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1544
d14a1e28
RD
1545class PaintDCPtr(PaintDC):
1546 def __init__(self, this):
1547 self.this = this
1548 if not hasattr(self,"thisown"): self.thisown = 0
1549 self.__class__ = PaintDC
1550_gdi.PaintDC_swigregister(PaintDCPtr)
e6056257 1551
d14a1e28 1552#---------------------------------------------------------------------------
e6056257 1553
d14a1e28
RD
1554class WindowDC(DC):
1555 def __init__(self, *args, **kwargs):
1556 newobj = _gdi.new_WindowDC(*args, **kwargs)
1557 self.this = newobj.this
d84a9306 1558 self.thisown = 1
d14a1e28
RD
1559 del newobj.thisown
1560 def __repr__(self):
1561 return "<%s.%s; proxy of C++ wxWindowDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d84a9306 1562
d14a1e28
RD
1563class WindowDCPtr(WindowDC):
1564 def __init__(self, this):
1565 self.this = this
1566 if not hasattr(self,"thisown"): self.thisown = 0
1567 self.__class__ = WindowDC
1568_gdi.WindowDC_swigregister(WindowDCPtr)
d84a9306 1569
d14a1e28 1570#---------------------------------------------------------------------------
d84a9306 1571
d14a1e28
RD
1572class MirrorDC(DC):
1573 def __init__(self, *args, **kwargs):
1574 newobj = _gdi.new_MirrorDC(*args, **kwargs)
1575 self.this = newobj.this
e6056257 1576 self.thisown = 1
d14a1e28
RD
1577 del newobj.thisown
1578 def __repr__(self):
1579 return "<%s.%s; proxy of C++ wxMirrorDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1580
d14a1e28
RD
1581class MirrorDCPtr(MirrorDC):
1582 def __init__(self, this):
1583 self.this = this
1584 if not hasattr(self,"thisown"): self.thisown = 0
1585 self.__class__ = MirrorDC
1586_gdi.MirrorDC_swigregister(MirrorDCPtr)
e6056257 1587
d14a1e28 1588#---------------------------------------------------------------------------
e6056257 1589
d14a1e28
RD
1590class PostScriptDC(DC):
1591 def __init__(self, *args, **kwargs):
1592 newobj = _gdi.new_PostScriptDC(*args, **kwargs)
1593 self.this = newobj.this
1594 self.thisown = 1
1595 del newobj.thisown
1596 def GetPrintData(*args, **kwargs): return _gdi.PostScriptDC_GetPrintData(*args, **kwargs)
1597 def SetPrintData(*args, **kwargs): return _gdi.PostScriptDC_SetPrintData(*args, **kwargs)
1598 SetResolution = staticmethod(_gdi.PostScriptDC_SetResolution)
1599 GetResolution = staticmethod(_gdi.PostScriptDC_GetResolution)
1600 def __repr__(self):
1601 return "<%s.%s; proxy of C++ wxPostScriptDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1602
d14a1e28
RD
1603class PostScriptDCPtr(PostScriptDC):
1604 def __init__(self, this):
e6056257 1605 self.this = this
d14a1e28
RD
1606 if not hasattr(self,"thisown"): self.thisown = 0
1607 self.__class__ = PostScriptDC
1608_gdi.PostScriptDC_swigregister(PostScriptDCPtr)
e6056257 1609
d14a1e28 1610PostScriptDC_SetResolution = _gdi.PostScriptDC_SetResolution
e6056257 1611
d14a1e28 1612PostScriptDC_GetResolution = _gdi.PostScriptDC_GetResolution
e6056257 1613
d14a1e28 1614#---------------------------------------------------------------------------
e6056257 1615
d14a1e28
RD
1616class MetaFile(core.Object):
1617 def __init__(self, *args, **kwargs):
1618 newobj = _gdi.new_MetaFile(*args, **kwargs)
1619 self.this = newobj.this
e6056257 1620 self.thisown = 1
d14a1e28
RD
1621 del newobj.thisown
1622 def __repr__(self):
1623 return "<%s.%s; proxy of C++ wxMetaFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1624
d14a1e28
RD
1625class MetaFilePtr(MetaFile):
1626 def __init__(self, this):
e6056257 1627 self.this = this
d14a1e28
RD
1628 if not hasattr(self,"thisown"): self.thisown = 0
1629 self.__class__ = MetaFile
1630_gdi.MetaFile_swigregister(MetaFilePtr)
1631
1632class MetaFileDC(DC):
1633 def __init__(self, *args, **kwargs):
1634 newobj = _gdi.new_MetaFileDC(*args, **kwargs)
1635 self.this = newobj.this
e6056257 1636 self.thisown = 1
d14a1e28
RD
1637 del newobj.thisown
1638 def __repr__(self):
1639 return "<%s.%s; proxy of C++ wxMetaFileDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1640
d14a1e28
RD
1641class MetaFileDCPtr(MetaFileDC):
1642 def __init__(self, this):
e6056257 1643 self.this = this
d14a1e28
RD
1644 if not hasattr(self,"thisown"): self.thisown = 0
1645 self.__class__ = MetaFileDC
1646_gdi.MetaFileDC_swigregister(MetaFileDCPtr)
1647
1648class PrinterDC(DC):
1649 def __init__(self, *args, **kwargs):
1650 newobj = _gdi.new_PrinterDC(*args, **kwargs)
1651 self.this = newobj.this
e6056257 1652 self.thisown = 1
d14a1e28
RD
1653 del newobj.thisown
1654 def __repr__(self):
1655 return "<%s.%s; proxy of C++ wxPrinterDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1656
d14a1e28
RD
1657class PrinterDCPtr(PrinterDC):
1658 def __init__(self, this):
1659 self.this = this
1660 if not hasattr(self,"thisown"): self.thisown = 0
1661 self.__class__ = PrinterDC
1662_gdi.PrinterDC_swigregister(PrinterDCPtr)
1663
1664#---------------------------------------------------------------------------
1665
1666IMAGELIST_DRAW_NORMAL = _gdi.IMAGELIST_DRAW_NORMAL
1667IMAGELIST_DRAW_TRANSPARENT = _gdi.IMAGELIST_DRAW_TRANSPARENT
1668IMAGELIST_DRAW_SELECTED = _gdi.IMAGELIST_DRAW_SELECTED
1669IMAGELIST_DRAW_FOCUSED = _gdi.IMAGELIST_DRAW_FOCUSED
1670IMAGE_LIST_NORMAL = _gdi.IMAGE_LIST_NORMAL
1671IMAGE_LIST_SMALL = _gdi.IMAGE_LIST_SMALL
1672IMAGE_LIST_STATE = _gdi.IMAGE_LIST_STATE
1673class ImageList(core.Object):
1674 def __init__(self, *args, **kwargs):
1675 newobj = _gdi.new_ImageList(*args, **kwargs)
1676 self.this = newobj.this
1677 self.thisown = 1
1678 del newobj.thisown
1679 def __del__(self, destroy=_gdi.delete_ImageList):
1680 try:
1681 if self.thisown: destroy(self)
1682 except: pass
1683 def Add(*args, **kwargs): return _gdi.ImageList_Add(*args, **kwargs)
1684 def AddWithColourMask(*args, **kwargs): return _gdi.ImageList_AddWithColourMask(*args, **kwargs)
1685 def AddIcon(*args, **kwargs): return _gdi.ImageList_AddIcon(*args, **kwargs)
1686 def Replace(*args, **kwargs): return _gdi.ImageList_Replace(*args, **kwargs)
1687 def Draw(*args, **kwargs): return _gdi.ImageList_Draw(*args, **kwargs)
1688 def GetImageCount(*args, **kwargs): return _gdi.ImageList_GetImageCount(*args, **kwargs)
1689 def Remove(*args, **kwargs): return _gdi.ImageList_Remove(*args, **kwargs)
1690 def RemoveAll(*args, **kwargs): return _gdi.ImageList_RemoveAll(*args, **kwargs)
1691 def GetSize(*args, **kwargs): return _gdi.ImageList_GetSize(*args, **kwargs)
1692 def __repr__(self):
1693 return "<%s.%s; proxy of C++ wxImageList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1694
d14a1e28
RD
1695class ImageListPtr(ImageList):
1696 def __init__(self, this):
1697 self.this = this
1698 if not hasattr(self,"thisown"): self.thisown = 0
1699 self.__class__ = ImageList
1700_gdi.ImageList_swigregister(ImageListPtr)
1701
1702#---------------------------------------------------------------------------
1703
1704class PenList(core.Object):
1705 def AddPen(*args, **kwargs): return _gdi.PenList_AddPen(*args, **kwargs)
1706 def FindOrCreatePen(*args, **kwargs): return _gdi.PenList_FindOrCreatePen(*args, **kwargs)
1707 def RemovePen(*args, **kwargs): return _gdi.PenList_RemovePen(*args, **kwargs)
1708 def GetCount(*args, **kwargs): return _gdi.PenList_GetCount(*args, **kwargs)
1709 def __init__(self): raise RuntimeError, "No constructor defined"
1710 def __repr__(self):
1711 return "<%s.%s; proxy of C++ wxPenList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1712
d14a1e28
RD
1713class PenListPtr(PenList):
1714 def __init__(self, this):
1715 self.this = this
1716 if not hasattr(self,"thisown"): self.thisown = 0
1717 self.__class__ = PenList
1718_gdi.PenList_swigregister(PenListPtr)
1719
1720class BrushList(core.Object):
1721 def AddBrush(*args, **kwargs): return _gdi.BrushList_AddBrush(*args, **kwargs)
1722 def FindOrCreateBrush(*args, **kwargs): return _gdi.BrushList_FindOrCreateBrush(*args, **kwargs)
1723 def RemoveBrush(*args, **kwargs): return _gdi.BrushList_RemoveBrush(*args, **kwargs)
1724 def GetCount(*args, **kwargs): return _gdi.BrushList_GetCount(*args, **kwargs)
1725 def __init__(self): raise RuntimeError, "No constructor defined"
1726 def __repr__(self):
1727 return "<%s.%s; proxy of C++ wxBrushList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1728
d14a1e28
RD
1729class BrushListPtr(BrushList):
1730 def __init__(self, this):
1731 self.this = this
1732 if not hasattr(self,"thisown"): self.thisown = 0
1733 self.__class__ = BrushList
1734_gdi.BrushList_swigregister(BrushListPtr)
1735
1736class ColourDatabase(core.Object):
1737 def __init__(self, *args, **kwargs):
1738 newobj = _gdi.new_ColourDatabase(*args, **kwargs)
1739 self.this = newobj.this
1740 self.thisown = 1
1741 del newobj.thisown
1742 def __del__(self, destroy=_gdi.delete_ColourDatabase):
1743 try:
1744 if self.thisown: destroy(self)
1745 except: pass
1746 def Find(*args, **kwargs): return _gdi.ColourDatabase_Find(*args, **kwargs)
1747 def FindName(*args, **kwargs): return _gdi.ColourDatabase_FindName(*args, **kwargs)
1748 FindColour = Find
1749 def AddColour(*args, **kwargs): return _gdi.ColourDatabase_AddColour(*args, **kwargs)
1750 def Append(*args, **kwargs): return _gdi.ColourDatabase_Append(*args, **kwargs)
1751 def __repr__(self):
1752 return "<%s.%s; proxy of C++ wxColourDatabase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1753
d14a1e28
RD
1754class ColourDatabasePtr(ColourDatabase):
1755 def __init__(self, this):
1756 self.this = this
1757 if not hasattr(self,"thisown"): self.thisown = 0
1758 self.__class__ = ColourDatabase
1759_gdi.ColourDatabase_swigregister(ColourDatabasePtr)
1760
1761class FontList(core.Object):
1762 def AddFont(*args, **kwargs): return _gdi.FontList_AddFont(*args, **kwargs)
1763 def FindOrCreateFont(*args, **kwargs): return _gdi.FontList_FindOrCreateFont(*args, **kwargs)
1764 def RemoveFont(*args, **kwargs): return _gdi.FontList_RemoveFont(*args, **kwargs)
1765 def GetCount(*args, **kwargs): return _gdi.FontList_GetCount(*args, **kwargs)
1766 def __init__(self): raise RuntimeError, "No constructor defined"
1767 def __repr__(self):
1768 return "<%s.%s; proxy of C++ wxFontList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1769
d14a1e28
RD
1770class FontListPtr(FontList):
1771 def __init__(self, this):
1772 self.this = this
1773 if not hasattr(self,"thisown"): self.thisown = 0
1774 self.__class__ = FontList
1775_gdi.FontList_swigregister(FontListPtr)
e6056257 1776
d14a1e28 1777#---------------------------------------------------------------------------
e6056257 1778
d14a1e28 1779#---------------------------------------------------------------------------
e6056257 1780
d14a1e28
RD
1781class DragImage(core.Object):
1782 def __init__(self, *args, **kwargs):
1783 newobj = _gdi.new_DragImage(*args, **kwargs)
1784 self.this = newobj.this
1785 self.thisown = 1
1786 del newobj.thisown
1787 def __del__(self, destroy=_gdi.delete_DragImage):
1788 try:
1789 if self.thisown: destroy(self)
1790 except: pass
1791 def SetBackingBitmap(*args, **kwargs): return _gdi.DragImage_SetBackingBitmap(*args, **kwargs)
1792 def BeginDrag(*args, **kwargs): return _gdi.DragImage_BeginDrag(*args, **kwargs)
1793 def BeginDragBounded(*args, **kwargs): return _gdi.DragImage_BeginDragBounded(*args, **kwargs)
1794 def EndDrag(*args, **kwargs): return _gdi.DragImage_EndDrag(*args, **kwargs)
1795 def Move(*args, **kwargs): return _gdi.DragImage_Move(*args, **kwargs)
1796 def Show(*args, **kwargs): return _gdi.DragImage_Show(*args, **kwargs)
1797 def Hide(*args, **kwargs): return _gdi.DragImage_Hide(*args, **kwargs)
1798 def GetImageRect(*args, **kwargs): return _gdi.DragImage_GetImageRect(*args, **kwargs)
1799 def DoDrawImage(*args, **kwargs): return _gdi.DragImage_DoDrawImage(*args, **kwargs)
1800 def UpdateBackingFromWindow(*args, **kwargs): return _gdi.DragImage_UpdateBackingFromWindow(*args, **kwargs)
1801 def RedrawImage(*args, **kwargs): return _gdi.DragImage_RedrawImage(*args, **kwargs)
1802 def __repr__(self):
1803 return "<%s.%s; proxy of C++ wxGenericDragImage instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d84a9306 1804
d14a1e28
RD
1805class DragImagePtr(DragImage):
1806 def __init__(self, this):
1807 self.this = this
1808 if not hasattr(self,"thisown"): self.thisown = 0
1809 self.__class__ = DragImage
1810_gdi.DragImage_swigregister(DragImagePtr)
1811cvar = _gdi.cvar
1812NORMAL_FONT = cvar.NORMAL_FONT
1813SMALL_FONT = cvar.SMALL_FONT
1814ITALIC_FONT = cvar.ITALIC_FONT
1815SWISS_FONT = cvar.SWISS_FONT
1816RED_PEN = cvar.RED_PEN
1817CYAN_PEN = cvar.CYAN_PEN
1818GREEN_PEN = cvar.GREEN_PEN
1819BLACK_PEN = cvar.BLACK_PEN
1820WHITE_PEN = cvar.WHITE_PEN
1821TRANSPARENT_PEN = cvar.TRANSPARENT_PEN
1822BLACK_DASHED_PEN = cvar.BLACK_DASHED_PEN
1823GREY_PEN = cvar.GREY_PEN
1824MEDIUM_GREY_PEN = cvar.MEDIUM_GREY_PEN
1825LIGHT_GREY_PEN = cvar.LIGHT_GREY_PEN
1826BLUE_BRUSH = cvar.BLUE_BRUSH
1827GREEN_BRUSH = cvar.GREEN_BRUSH
1828WHITE_BRUSH = cvar.WHITE_BRUSH
1829BLACK_BRUSH = cvar.BLACK_BRUSH
1830TRANSPARENT_BRUSH = cvar.TRANSPARENT_BRUSH
1831CYAN_BRUSH = cvar.CYAN_BRUSH
1832RED_BRUSH = cvar.RED_BRUSH
1833GREY_BRUSH = cvar.GREY_BRUSH
1834MEDIUM_GREY_BRUSH = cvar.MEDIUM_GREY_BRUSH
1835LIGHT_GREY_BRUSH = cvar.LIGHT_GREY_BRUSH
1836BLACK = cvar.BLACK
1837WHITE = cvar.WHITE
1838RED = cvar.RED
1839BLUE = cvar.BLUE
1840GREEN = cvar.GREEN
1841CYAN = cvar.CYAN
1842LIGHT_GREY = cvar.LIGHT_GREY
1843STANDARD_CURSOR = cvar.STANDARD_CURSOR
1844HOURGLASS_CURSOR = cvar.HOURGLASS_CURSOR
1845CROSS_CURSOR = cvar.CROSS_CURSOR
1846NullBitmap = cvar.NullBitmap
1847NullIcon = cvar.NullIcon
1848NullCursor = cvar.NullCursor
1849NullPen = cvar.NullPen
1850NullBrush = cvar.NullBrush
1851NullPalette = cvar.NullPalette
1852NullFont = cvar.NullFont
1853NullColour = cvar.NullColour
1854TheFontList = cvar.TheFontList
1855ThePenList = cvar.ThePenList
1856TheBrushList = cvar.TheBrushList
1857TheColourDatabase = cvar.TheColourDatabase
1858
1859def DragIcon(*args, **kwargs):
1860 val = _gdi.new_DragIcon(*args, **kwargs)
1861 val.thisown = 1
da0ddbd6
RD
1862 return val
1863
d14a1e28
RD
1864def DragString(*args, **kwargs):
1865 val = _gdi.new_DragString(*args, **kwargs)
1866 val.thisown = 1
e6056257
RD
1867 return val
1868
d14a1e28
RD
1869def DragTreeItem(*args, **kwargs):
1870 val = _gdi.new_DragTreeItem(*args, **kwargs)
1871 val.thisown = 1
d84a9306
RD
1872 return val
1873
d14a1e28
RD
1874def DragListItem(*args, **kwargs):
1875 val = _gdi.new_DragListItem(*args, **kwargs)
1876 val.thisown = 1
7108497a
RD
1877 return val
1878
d14a1e28 1879#---------------------------------------------------------------------------
e6056257 1880
d14a1e28
RD
1881class Effects(core.Object):
1882 def __init__(self, *args, **kwargs):
1883 newobj = _gdi.new_Effects(*args, **kwargs)
1884 self.this = newobj.this
1885 self.thisown = 1
1886 del newobj.thisown
1887 def GetHighlightColour(*args, **kwargs): return _gdi.Effects_GetHighlightColour(*args, **kwargs)
1888 def GetLightShadow(*args, **kwargs): return _gdi.Effects_GetLightShadow(*args, **kwargs)
1889 def GetFaceColour(*args, **kwargs): return _gdi.Effects_GetFaceColour(*args, **kwargs)
1890 def GetMediumShadow(*args, **kwargs): return _gdi.Effects_GetMediumShadow(*args, **kwargs)
1891 def GetDarkShadow(*args, **kwargs): return _gdi.Effects_GetDarkShadow(*args, **kwargs)
1892 def SetHighlightColour(*args, **kwargs): return _gdi.Effects_SetHighlightColour(*args, **kwargs)
1893 def SetLightShadow(*args, **kwargs): return _gdi.Effects_SetLightShadow(*args, **kwargs)
1894 def SetFaceColour(*args, **kwargs): return _gdi.Effects_SetFaceColour(*args, **kwargs)
1895 def SetMediumShadow(*args, **kwargs): return _gdi.Effects_SetMediumShadow(*args, **kwargs)
1896 def SetDarkShadow(*args, **kwargs): return _gdi.Effects_SetDarkShadow(*args, **kwargs)
1897 def Set(*args, **kwargs): return _gdi.Effects_Set(*args, **kwargs)
1898 def DrawSunkenEdge(*args, **kwargs): return _gdi.Effects_DrawSunkenEdge(*args, **kwargs)
1899 def TileBitmap(*args, **kwargs): return _gdi.Effects_TileBitmap(*args, **kwargs)
1900 def __repr__(self):
1901 return "<%s.%s; proxy of C++ wxEffects instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
e6056257 1902
d14a1e28
RD
1903class EffectsPtr(Effects):
1904 def __init__(self, this):
1905 self.this = this
1906 if not hasattr(self,"thisown"): self.thisown = 0
1907 self.__class__ = Effects
1908_gdi.Effects_swigregister(EffectsPtr)
e6056257
RD
1909
1910