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