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