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