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