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