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