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