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