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