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