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