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