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