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