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