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