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