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