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