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