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