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