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