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