]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/gdi.py
#if around deprecated macros
[wxWidgets.git] / wxPython / src / mac / gdi.py
1 # This file was created automatically by SWIG.
2 import gdic
3
4 from misc import *
5
6 from fonts import *
7 import wx
8 class wxGDIObjectPtr(wxObjectPtr):
9 def __init__(self,this):
10 self.this = this
11 self.thisown = 0
12 def __del__(self, delfunc=gdic.delete_wxGDIObject):
13 if self.thisown == 1:
14 try:
15 delfunc(self)
16 except:
17 pass
18 def GetVisible(self, *_args, **_kwargs):
19 val = gdic.wxGDIObject_GetVisible(self, *_args, **_kwargs)
20 return val
21 def SetVisible(self, *_args, **_kwargs):
22 val = gdic.wxGDIObject_SetVisible(self, *_args, **_kwargs)
23 return val
24 def IsNull(self, *_args, **_kwargs):
25 val = gdic.wxGDIObject_IsNull(self, *_args, **_kwargs)
26 return val
27 def __repr__(self):
28 return "<%s.%s instance; proxy of C++ wxGDIObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
29 class wxGDIObject(wxGDIObjectPtr):
30 def __init__(self,*_args,**_kwargs):
31 self.this = gdic.new_wxGDIObject(*_args,**_kwargs)
32 self.thisown = 1
33
34
35
36
37 class wxBitmapPtr(wxGDIObjectPtr):
38 def __init__(self,this):
39 self.this = this
40 self.thisown = 0
41 def __del__(self, delfunc=gdic.delete_wxBitmap):
42 if self.thisown == 1:
43 try:
44 delfunc(self)
45 except:
46 pass
47 def GetPalette(self, *_args, **_kwargs):
48 val = gdic.wxBitmap_GetPalette(self, *_args, **_kwargs)
49 if val: val = wxPalettePtr(val)
50 return val
51 def GetMask(self, *_args, **_kwargs):
52 val = gdic.wxBitmap_GetMask(self, *_args, **_kwargs)
53 if val: val = wxMaskPtr(val)
54 return val
55 def LoadFile(self, *_args, **_kwargs):
56 val = gdic.wxBitmap_LoadFile(self, *_args, **_kwargs)
57 return val
58 def SaveFile(self, *_args, **_kwargs):
59 val = gdic.wxBitmap_SaveFile(self, *_args, **_kwargs)
60 return val
61 def SetMask(self, *_args, **_kwargs):
62 val = gdic.wxBitmap_SetMask(self, *_args, **_kwargs)
63 return val
64 def Ok(self, *_args, **_kwargs):
65 val = gdic.wxBitmap_Ok(self, *_args, **_kwargs)
66 return val
67 def GetWidth(self, *_args, **_kwargs):
68 val = gdic.wxBitmap_GetWidth(self, *_args, **_kwargs)
69 return val
70 def GetHeight(self, *_args, **_kwargs):
71 val = gdic.wxBitmap_GetHeight(self, *_args, **_kwargs)
72 return val
73 def GetDepth(self, *_args, **_kwargs):
74 val = gdic.wxBitmap_GetDepth(self, *_args, **_kwargs)
75 return val
76 def SetWidth(self, *_args, **_kwargs):
77 val = gdic.wxBitmap_SetWidth(self, *_args, **_kwargs)
78 return val
79 def SetHeight(self, *_args, **_kwargs):
80 val = gdic.wxBitmap_SetHeight(self, *_args, **_kwargs)
81 return val
82 def SetDepth(self, *_args, **_kwargs):
83 val = gdic.wxBitmap_SetDepth(self, *_args, **_kwargs)
84 return val
85 def GetSubBitmap(self, *_args, **_kwargs):
86 val = gdic.wxBitmap_GetSubBitmap(self, *_args, **_kwargs)
87 if val: val = wxBitmapPtr(val) ; val.thisown = 1
88 return val
89 def CopyFromIcon(self, *_args, **_kwargs):
90 val = gdic.wxBitmap_CopyFromIcon(self, *_args, **_kwargs)
91 return val
92 def __repr__(self):
93 return "<%s.%s instance; proxy of C++ wxBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
94
95 def SetMaskColour(self, colour):
96 mask = wxMaskColour(self, colour)
97 self.SetMask(mask)
98
99 def __nonzero__(self): return self.Ok()
100 class wxBitmap(wxBitmapPtr):
101 def __init__(self,*_args,**_kwargs):
102 self.this = gdic.new_wxBitmap(*_args,**_kwargs)
103 self.thisown = 1
104
105
106
107
108 class wxMaskPtr(wxObjectPtr):
109 def __init__(self,this):
110 self.this = this
111 self.thisown = 0
112 def Destroy(self, *_args, **_kwargs):
113 val = gdic.wxMask_Destroy(self, *_args, **_kwargs)
114 return val
115 def __repr__(self):
116 return "<%s.%s instance; proxy of C++ wxMask instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
117 class wxMask(wxMaskPtr):
118 def __init__(self,*_args,**_kwargs):
119 self.this = gdic.new_wxMask(*_args,**_kwargs)
120 self.thisown = 1
121
122
123
124
125 class wxIconPtr(wxGDIObjectPtr):
126 def __init__(self,this):
127 self.this = this
128 self.thisown = 0
129 def __del__(self, delfunc=gdic.delete_wxIcon):
130 if self.thisown == 1:
131 try:
132 delfunc(self)
133 except:
134 pass
135 def Ok(self, *_args, **_kwargs):
136 val = gdic.wxIcon_Ok(self, *_args, **_kwargs)
137 return val
138 def GetWidth(self, *_args, **_kwargs):
139 val = gdic.wxIcon_GetWidth(self, *_args, **_kwargs)
140 return val
141 def GetHeight(self, *_args, **_kwargs):
142 val = gdic.wxIcon_GetHeight(self, *_args, **_kwargs)
143 return val
144 def GetDepth(self, *_args, **_kwargs):
145 val = gdic.wxIcon_GetDepth(self, *_args, **_kwargs)
146 return val
147 def SetWidth(self, *_args, **_kwargs):
148 val = gdic.wxIcon_SetWidth(self, *_args, **_kwargs)
149 return val
150 def SetHeight(self, *_args, **_kwargs):
151 val = gdic.wxIcon_SetHeight(self, *_args, **_kwargs)
152 return val
153 def SetDepth(self, *_args, **_kwargs):
154 val = gdic.wxIcon_SetDepth(self, *_args, **_kwargs)
155 return val
156 def CopyFromBitmap(self, *_args, **_kwargs):
157 val = gdic.wxIcon_CopyFromBitmap(self, *_args, **_kwargs)
158 return val
159 def __repr__(self):
160 return "<%s.%s instance; proxy of C++ wxIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
161 def __nonzero__(self): return self.Ok()
162 class wxIcon(wxIconPtr):
163 def __init__(self,*_args,**_kwargs):
164 self.this = gdic.new_wxIcon(*_args,**_kwargs)
165 self.thisown = 1
166
167
168
169
170 class wxIconLocationPtr :
171 def __init__(self,this):
172 self.this = this
173 self.thisown = 0
174 def __del__(self, delfunc=gdic.delete_wxIconLocation):
175 if self.thisown == 1:
176 try:
177 delfunc(self)
178 except:
179 pass
180 def IsOk(self, *_args, **_kwargs):
181 val = gdic.wxIconLocation_IsOk(self, *_args, **_kwargs)
182 return val
183 def SetFileName(self, *_args, **_kwargs):
184 val = gdic.wxIconLocation_SetFileName(self, *_args, **_kwargs)
185 return val
186 def GetFileName(self, *_args, **_kwargs):
187 val = gdic.wxIconLocation_GetFileName(self, *_args, **_kwargs)
188 return val
189 def SetIndex(self, *_args, **_kwargs):
190 val = gdic.wxIconLocation_SetIndex(self, *_args, **_kwargs)
191 return val
192 def GetIndex(self, *_args, **_kwargs):
193 val = gdic.wxIconLocation_GetIndex(self, *_args, **_kwargs)
194 return val
195 def __repr__(self):
196 return "<%s.%s instance; proxy of C++ wxIconLocation instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
197 class wxIconLocation(wxIconLocationPtr):
198 def __init__(self,*_args,**_kwargs):
199 self.this = gdic.new_wxIconLocation(*_args,**_kwargs)
200 self.thisown = 1
201
202
203
204
205 class wxIconBundlePtr :
206 def __init__(self,this):
207 self.this = this
208 self.thisown = 0
209 def __del__(self, delfunc=gdic.delete_wxIconBundle):
210 if self.thisown == 1:
211 try:
212 delfunc(self)
213 except:
214 pass
215 def AddIcon(self, *_args, **_kwargs):
216 val = gdic.wxIconBundle_AddIcon(self, *_args, **_kwargs)
217 return val
218 def AddIconFromFile(self, *_args, **_kwargs):
219 val = gdic.wxIconBundle_AddIconFromFile(self, *_args, **_kwargs)
220 return val
221 def GetIcon(self, *_args, **_kwargs):
222 val = gdic.wxIconBundle_GetIcon(self, *_args, **_kwargs)
223 if val: val = wxIconPtr(val)
224 return val
225 def __repr__(self):
226 return "<%s.%s instance; proxy of C++ wxIconBundle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
227 class wxIconBundle(wxIconBundlePtr):
228 def __init__(self,*_args,**_kwargs):
229 self.this = gdic.new_wxIconBundle(*_args,**_kwargs)
230 self.thisown = 1
231
232
233
234 def wxIconBundleFromFile(*_args,**_kwargs):
235 val = wxIconBundlePtr(gdic.new_wxIconBundleFromFile(*_args,**_kwargs))
236 val.thisown = 1
237 return val
238
239 def wxIconBundleFromIcon(*_args,**_kwargs):
240 val = wxIconBundlePtr(gdic.new_wxIconBundleFromIcon(*_args,**_kwargs))
241 val.thisown = 1
242 return val
243
244
245 class wxCursorPtr(wxGDIObjectPtr):
246 def __init__(self,this):
247 self.this = this
248 self.thisown = 0
249 def __del__(self, delfunc=gdic.delete_wxCursor):
250 if self.thisown == 1:
251 try:
252 delfunc(self)
253 except:
254 pass
255 def Ok(self, *_args, **_kwargs):
256 val = gdic.wxCursor_Ok(self, *_args, **_kwargs)
257 return val
258 def __repr__(self):
259 return "<%s.%s instance; proxy of C++ wxCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
260 def __nonzero__(self): return self.Ok()
261 class wxCursor(wxCursorPtr):
262 def __init__(self,*_args,**_kwargs):
263 self.this = gdic.new_wxCursor(*_args,**_kwargs)
264 self.thisown = 1
265
266
267
268
269 class wxColourPtr(wxObjectPtr):
270 def __init__(self,this):
271 self.this = this
272 self.thisown = 0
273 def __del__(self, delfunc=gdic.delete_wxColour):
274 if self.thisown == 1:
275 try:
276 delfunc(self)
277 except:
278 pass
279 def Red(self, *_args, **_kwargs):
280 val = gdic.wxColour_Red(self, *_args, **_kwargs)
281 return val
282 def Green(self, *_args, **_kwargs):
283 val = gdic.wxColour_Green(self, *_args, **_kwargs)
284 return val
285 def Blue(self, *_args, **_kwargs):
286 val = gdic.wxColour_Blue(self, *_args, **_kwargs)
287 return val
288 def Ok(self, *_args, **_kwargs):
289 val = gdic.wxColour_Ok(self, *_args, **_kwargs)
290 return val
291 def Set(self, *_args, **_kwargs):
292 val = gdic.wxColour_Set(self, *_args, **_kwargs)
293 return val
294 def Get(self, *_args, **_kwargs):
295 val = gdic.wxColour_Get(self, *_args, **_kwargs)
296 return val
297 def __eq__(self, *_args, **_kwargs):
298 val = gdic.wxColour___eq__(self, *_args, **_kwargs)
299 return val
300 def __ne__(self, *_args, **_kwargs):
301 val = gdic.wxColour___ne__(self, *_args, **_kwargs)
302 return val
303 def __repr__(self):
304 return "<%s.%s instance; proxy of C++ wxColour instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
305 asTuple = Get
306 def __str__(self): return str(self.asTuple())
307 def __repr__(self): return 'wxColour' + str(self.asTuple())
308 def __nonzero__(self): return self.Ok()
309 def __getinitargs__(self): return ()
310 def __getstate__(self): return self.asTuple()
311 def __setstate__(self, state): self.Set(*state)
312
313 class wxColour(wxColourPtr):
314 def __init__(self,*_args,**_kwargs):
315 self.this = gdic.new_wxColour(*_args,**_kwargs)
316 self.thisown = 1
317
318
319
320
321 class wxColourDatabasePtr(wxObjectPtr):
322 def __init__(self,this):
323 self.this = this
324 self.thisown = 0
325 def __del__(self, delfunc=gdic.delete_wxColourDatabase):
326 if self.thisown == 1:
327 try:
328 delfunc(self)
329 except:
330 pass
331 def Find(self, *_args, **_kwargs):
332 val = gdic.wxColourDatabase_Find(self, *_args, **_kwargs)
333 if val: val = wxColourPtr(val) ; val.thisown = 1
334 return val
335 def FindName(self, *_args, **_kwargs):
336 val = gdic.wxColourDatabase_FindName(self, *_args, **_kwargs)
337 return val
338 def AddColour(self, *_args, **_kwargs):
339 val = gdic.wxColourDatabase_AddColour(self, *_args, **_kwargs)
340 return val
341 def Append(self, *_args, **_kwargs):
342 val = gdic.wxColourDatabase_Append(self, *_args, **_kwargs)
343 return val
344 def __repr__(self):
345 return "<%s.%s instance; proxy of C++ wxColourDatabase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
346 class wxColourDatabase(wxColourDatabasePtr):
347 def __init__(self,*_args,**_kwargs):
348 self.this = gdic.new_wxColourDatabase(*_args,**_kwargs)
349 self.thisown = 1
350
351
352
353
354 class wxPenPtr(wxGDIObjectPtr):
355 def __init__(self,this):
356 self.this = this
357 self.thisown = 0
358 def __del__(self, delfunc=gdic.delete_wxPen):
359 if self.thisown == 1:
360 try:
361 delfunc(self)
362 except:
363 pass
364 def GetCap(self, *_args, **_kwargs):
365 val = gdic.wxPen_GetCap(self, *_args, **_kwargs)
366 return val
367 def GetColour(self, *_args, **_kwargs):
368 val = gdic.wxPen_GetColour(self, *_args, **_kwargs)
369 if val: val = wxColourPtr(val) ; val.thisown = 1
370 return val
371 def GetJoin(self, *_args, **_kwargs):
372 val = gdic.wxPen_GetJoin(self, *_args, **_kwargs)
373 return val
374 def GetStyle(self, *_args, **_kwargs):
375 val = gdic.wxPen_GetStyle(self, *_args, **_kwargs)
376 return val
377 def GetWidth(self, *_args, **_kwargs):
378 val = gdic.wxPen_GetWidth(self, *_args, **_kwargs)
379 return val
380 def Ok(self, *_args, **_kwargs):
381 val = gdic.wxPen_Ok(self, *_args, **_kwargs)
382 return val
383 def SetCap(self, *_args, **_kwargs):
384 val = gdic.wxPen_SetCap(self, *_args, **_kwargs)
385 return val
386 def SetColour(self, *_args, **_kwargs):
387 val = gdic.wxPen_SetColour(self, *_args, **_kwargs)
388 return val
389 def SetJoin(self, *_args, **_kwargs):
390 val = gdic.wxPen_SetJoin(self, *_args, **_kwargs)
391 return val
392 def SetStyle(self, *_args, **_kwargs):
393 val = gdic.wxPen_SetStyle(self, *_args, **_kwargs)
394 return val
395 def SetWidth(self, *_args, **_kwargs):
396 val = gdic.wxPen_SetWidth(self, *_args, **_kwargs)
397 return val
398 def SetDashes(self, *_args, **_kwargs):
399 val = gdic.wxPen_SetDashes(self, *_args, **_kwargs)
400 return val
401 def GetDashes(self, *_args, **_kwargs):
402 val = gdic.wxPen_GetDashes(self, *_args, **_kwargs)
403 return val
404 def __repr__(self):
405 return "<%s.%s instance; proxy of C++ wxPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
406 def __nonzero__(self): return self.Ok()
407 class wxPen(wxPenPtr):
408 def __init__(self,*_args,**_kwargs):
409 self.this = gdic.new_wxPen(*_args,**_kwargs)
410 self.thisown = 1
411
412
413
414
415 class wxPyPenPtr(wxPenPtr):
416 def __init__(self,this):
417 self.this = this
418 self.thisown = 0
419 def __del__(self, delfunc=gdic.delete_wxPyPen):
420 if self.thisown == 1:
421 try:
422 delfunc(self)
423 except:
424 pass
425 def SetDashes(self, *_args, **_kwargs):
426 val = gdic.wxPyPen_SetDashes(self, *_args, **_kwargs)
427 return val
428 def __repr__(self):
429 return "<%s.%s instance; proxy of C++ wxPyPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
430 class wxPyPen(wxPyPenPtr):
431 def __init__(self,*_args,**_kwargs):
432 self.this = gdic.new_wxPyPen(*_args,**_kwargs)
433 self.thisown = 1
434
435
436
437
438 class wxPenListPtr(wxObjectPtr):
439 def __init__(self,this):
440 self.this = this
441 self.thisown = 0
442 def AddPen(self, *_args, **_kwargs):
443 val = gdic.wxPenList_AddPen(self, *_args, **_kwargs)
444 return val
445 def FindOrCreatePen(self, *_args, **_kwargs):
446 val = gdic.wxPenList_FindOrCreatePen(self, *_args, **_kwargs)
447 if val: val = wxPenPtr(val)
448 return val
449 def RemovePen(self, *_args, **_kwargs):
450 val = gdic.wxPenList_RemovePen(self, *_args, **_kwargs)
451 return val
452 def GetCount(self, *_args, **_kwargs):
453 val = gdic.wxPenList_GetCount(self, *_args, **_kwargs)
454 return val
455 def __repr__(self):
456 return "<%s.%s instance; proxy of C++ wxPenList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
457 class wxPenList(wxPenListPtr):
458 def __init__(self,this):
459 self.this = this
460
461
462
463
464 class wxBrushPtr(wxGDIObjectPtr):
465 def __init__(self,this):
466 self.this = this
467 self.thisown = 0
468 def __del__(self, delfunc=gdic.delete_wxBrush):
469 if self.thisown == 1:
470 try:
471 delfunc(self)
472 except:
473 pass
474 def GetColour(self, *_args, **_kwargs):
475 val = gdic.wxBrush_GetColour(self, *_args, **_kwargs)
476 if val: val = wxColourPtr(val) ; val.thisown = 1
477 return val
478 def GetStipple(self, *_args, **_kwargs):
479 val = gdic.wxBrush_GetStipple(self, *_args, **_kwargs)
480 if val: val = wxBitmapPtr(val)
481 return val
482 def GetStyle(self, *_args, **_kwargs):
483 val = gdic.wxBrush_GetStyle(self, *_args, **_kwargs)
484 return val
485 def Ok(self, *_args, **_kwargs):
486 val = gdic.wxBrush_Ok(self, *_args, **_kwargs)
487 return val
488 def SetColour(self, *_args, **_kwargs):
489 val = gdic.wxBrush_SetColour(self, *_args, **_kwargs)
490 return val
491 def SetStipple(self, *_args, **_kwargs):
492 val = gdic.wxBrush_SetStipple(self, *_args, **_kwargs)
493 return val
494 def SetStyle(self, *_args, **_kwargs):
495 val = gdic.wxBrush_SetStyle(self, *_args, **_kwargs)
496 return val
497 def GetMacTheme(self, *_args, **_kwargs):
498 val = gdic.wxBrush_GetMacTheme(self, *_args, **_kwargs)
499 return val
500 def SetMacTheme(self, *_args, **_kwargs):
501 val = gdic.wxBrush_SetMacTheme(self, *_args, **_kwargs)
502 return val
503 def __repr__(self):
504 return "<%s.%s instance; proxy of C++ wxBrush instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
505 def __nonzero__(self): return self.Ok()
506 class wxBrush(wxBrushPtr):
507 def __init__(self,*_args,**_kwargs):
508 self.this = gdic.new_wxBrush(*_args,**_kwargs)
509 self.thisown = 1
510
511
512
513
514 class wxBrushListPtr(wxObjectPtr):
515 def __init__(self,this):
516 self.this = this
517 self.thisown = 0
518 def AddBrush(self, *_args, **_kwargs):
519 val = gdic.wxBrushList_AddBrush(self, *_args, **_kwargs)
520 return val
521 def FindOrCreateBrush(self, *_args, **_kwargs):
522 val = gdic.wxBrushList_FindOrCreateBrush(self, *_args, **_kwargs)
523 if val: val = wxBrushPtr(val)
524 return val
525 def RemoveBrush(self, *_args, **_kwargs):
526 val = gdic.wxBrushList_RemoveBrush(self, *_args, **_kwargs)
527 return val
528 def GetCount(self, *_args, **_kwargs):
529 val = gdic.wxBrushList_GetCount(self, *_args, **_kwargs)
530 return val
531 def __repr__(self):
532 return "<%s.%s instance; proxy of C++ wxBrushList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
533 class wxBrushList(wxBrushListPtr):
534 def __init__(self,this):
535 self.this = this
536
537
538
539
540 class wxDCPtr(wxObjectPtr):
541 def __init__(self,this):
542 self.this = this
543 self.thisown = 0
544 def __del__(self, delfunc=gdic.delete_wxDC):
545 if self.thisown == 1:
546 try:
547 delfunc(self)
548 except:
549 pass
550 def BeginDrawing(self, *_args, **_kwargs):
551 val = gdic.wxDC_BeginDrawing(self, *_args, **_kwargs)
552 return val
553 def Blit(self, *_args, **_kwargs):
554 val = gdic.wxDC_Blit(self, *_args, **_kwargs)
555 return val
556 def Clear(self, *_args, **_kwargs):
557 val = gdic.wxDC_Clear(self, *_args, **_kwargs)
558 return val
559 def CrossHair(self, *_args, **_kwargs):
560 val = gdic.wxDC_CrossHair(self, *_args, **_kwargs)
561 return val
562 def DestroyClippingRegion(self, *_args, **_kwargs):
563 val = gdic.wxDC_DestroyClippingRegion(self, *_args, **_kwargs)
564 return val
565 def DeviceToLogicalX(self, *_args, **_kwargs):
566 val = gdic.wxDC_DeviceToLogicalX(self, *_args, **_kwargs)
567 return val
568 def DeviceToLogicalXRel(self, *_args, **_kwargs):
569 val = gdic.wxDC_DeviceToLogicalXRel(self, *_args, **_kwargs)
570 return val
571 def DeviceToLogicalY(self, *_args, **_kwargs):
572 val = gdic.wxDC_DeviceToLogicalY(self, *_args, **_kwargs)
573 return val
574 def DeviceToLogicalYRel(self, *_args, **_kwargs):
575 val = gdic.wxDC_DeviceToLogicalYRel(self, *_args, **_kwargs)
576 return val
577 def DrawArc(self, *_args, **_kwargs):
578 val = gdic.wxDC_DrawArc(self, *_args, **_kwargs)
579 return val
580 def DrawCircle(self, *_args, **_kwargs):
581 val = gdic.wxDC_DrawCircle(self, *_args, **_kwargs)
582 return val
583 def DrawEllipse(self, *_args, **_kwargs):
584 val = gdic.wxDC_DrawEllipse(self, *_args, **_kwargs)
585 return val
586 def DrawEllipticArc(self, *_args, **_kwargs):
587 val = gdic.wxDC_DrawEllipticArc(self, *_args, **_kwargs)
588 return val
589 def DrawIcon(self, *_args, **_kwargs):
590 val = gdic.wxDC_DrawIcon(self, *_args, **_kwargs)
591 return val
592 def DrawLabel(self, *_args, **_kwargs):
593 val = gdic.wxDC_DrawLabel(self, *_args, **_kwargs)
594 return val
595 def DrawImageLabel(self, *_args, **_kwargs):
596 val = gdic.wxDC_DrawImageLabel(self, *_args, **_kwargs)
597 if val: val = wxRectPtr(val) ; val.thisown = 1
598 return val
599 def DrawLine(self, *_args, **_kwargs):
600 val = gdic.wxDC_DrawLine(self, *_args, **_kwargs)
601 return val
602 def DrawLines(self, *_args, **_kwargs):
603 val = gdic.wxDC_DrawLines(self, *_args, **_kwargs)
604 return val
605 def DrawPolygon(self, *_args, **_kwargs):
606 val = gdic.wxDC_DrawPolygon(self, *_args, **_kwargs)
607 return val
608 def DrawPoint(self, *_args, **_kwargs):
609 val = gdic.wxDC_DrawPoint(self, *_args, **_kwargs)
610 return val
611 def DrawRectangle(self, *_args, **_kwargs):
612 val = gdic.wxDC_DrawRectangle(self, *_args, **_kwargs)
613 return val
614 def DrawRectangleRect(self, *_args, **_kwargs):
615 val = gdic.wxDC_DrawRectangleRect(self, *_args, **_kwargs)
616 return val
617 def DrawRotatedText(self, *_args, **_kwargs):
618 val = gdic.wxDC_DrawRotatedText(self, *_args, **_kwargs)
619 return val
620 def DrawRoundedRectangle(self, *_args, **_kwargs):
621 val = gdic.wxDC_DrawRoundedRectangle(self, *_args, **_kwargs)
622 return val
623 def DrawSpline(self, *_args, **_kwargs):
624 val = gdic.wxDC_DrawSpline(self, *_args, **_kwargs)
625 return val
626 def DrawText(self, *_args, **_kwargs):
627 val = gdic.wxDC_DrawText(self, *_args, **_kwargs)
628 return val
629 def EndDoc(self, *_args, **_kwargs):
630 val = gdic.wxDC_EndDoc(self, *_args, **_kwargs)
631 return val
632 def EndDrawing(self, *_args, **_kwargs):
633 val = gdic.wxDC_EndDrawing(self, *_args, **_kwargs)
634 return val
635 def EndPage(self, *_args, **_kwargs):
636 val = gdic.wxDC_EndPage(self, *_args, **_kwargs)
637 return val
638 def FloodFill(self, *_args, **_kwargs):
639 val = gdic.wxDC_FloodFill(self, *_args, **_kwargs)
640 return val
641 def GetBackground(self, *_args, **_kwargs):
642 val = gdic.wxDC_GetBackground(self, *_args, **_kwargs)
643 if val: val = wxBrushPtr(val) ; val.thisown = 1
644 return val
645 def GetBrush(self, *_args, **_kwargs):
646 val = gdic.wxDC_GetBrush(self, *_args, **_kwargs)
647 if val: val = wxBrushPtr(val) ; val.thisown = 1
648 return val
649 def GetCharHeight(self, *_args, **_kwargs):
650 val = gdic.wxDC_GetCharHeight(self, *_args, **_kwargs)
651 return val
652 def GetCharWidth(self, *_args, **_kwargs):
653 val = gdic.wxDC_GetCharWidth(self, *_args, **_kwargs)
654 return val
655 def GetClippingBox(self, *_args, **_kwargs):
656 val = gdic.wxDC_GetClippingBox(self, *_args, **_kwargs)
657 return val
658 def GetFont(self, *_args, **_kwargs):
659 val = gdic.wxDC_GetFont(self, *_args, **_kwargs)
660 if val: val = wxFontPtr(val) ; val.thisown = 1
661 return val
662 def GetLogicalFunction(self, *_args, **_kwargs):
663 val = gdic.wxDC_GetLogicalFunction(self, *_args, **_kwargs)
664 return val
665 def GetLogicalScale(self, *_args, **_kwargs):
666 val = gdic.wxDC_GetLogicalScale(self, *_args, **_kwargs)
667 return val
668 def GetMapMode(self, *_args, **_kwargs):
669 val = gdic.wxDC_GetMapMode(self, *_args, **_kwargs)
670 return val
671 def GetOptimization(self, *_args, **_kwargs):
672 val = gdic.wxDC_GetOptimization(self, *_args, **_kwargs)
673 return val
674 def GetPen(self, *_args, **_kwargs):
675 val = gdic.wxDC_GetPen(self, *_args, **_kwargs)
676 if val: val = wxPenPtr(val) ; val.thisown = 1
677 return val
678 def GetPixel(self, *_args, **_kwargs):
679 val = gdic.wxDC_GetPixel(self, *_args, **_kwargs)
680 if val: val = wxColourPtr(val) ; val.thisown = 1
681 return val
682 def GetSizeTuple(self, *_args, **_kwargs):
683 val = gdic.wxDC_GetSizeTuple(self, *_args, **_kwargs)
684 return val
685 def GetSize(self, *_args, **_kwargs):
686 val = gdic.wxDC_GetSize(self, *_args, **_kwargs)
687 if val: val = wxSizePtr(val) ; val.thisown = 1
688 return val
689 def GetSizeMM(self, *_args, **_kwargs):
690 val = gdic.wxDC_GetSizeMM(self, *_args, **_kwargs)
691 if val: val = wxSizePtr(val) ; val.thisown = 1
692 return val
693 def GetTextBackground(self, *_args, **_kwargs):
694 val = gdic.wxDC_GetTextBackground(self, *_args, **_kwargs)
695 if val: val = wxColourPtr(val) ; val.thisown = 1
696 return val
697 def GetTextExtent(self, *_args, **_kwargs):
698 val = gdic.wxDC_GetTextExtent(self, *_args, **_kwargs)
699 return val
700 def GetFullTextExtent(self, *_args, **_kwargs):
701 val = gdic.wxDC_GetFullTextExtent(self, *_args, **_kwargs)
702 return val
703 def GetMultiLineTextExtent(self, *_args, **_kwargs):
704 val = gdic.wxDC_GetMultiLineTextExtent(self, *_args, **_kwargs)
705 return val
706 def GetTextForeground(self, *_args, **_kwargs):
707 val = gdic.wxDC_GetTextForeground(self, *_args, **_kwargs)
708 if val: val = wxColourPtr(val) ; val.thisown = 1
709 return val
710 def GetUserScale(self, *_args, **_kwargs):
711 val = gdic.wxDC_GetUserScale(self, *_args, **_kwargs)
712 return val
713 def LogicalToDeviceX(self, *_args, **_kwargs):
714 val = gdic.wxDC_LogicalToDeviceX(self, *_args, **_kwargs)
715 return val
716 def LogicalToDeviceXRel(self, *_args, **_kwargs):
717 val = gdic.wxDC_LogicalToDeviceXRel(self, *_args, **_kwargs)
718 return val
719 def LogicalToDeviceY(self, *_args, **_kwargs):
720 val = gdic.wxDC_LogicalToDeviceY(self, *_args, **_kwargs)
721 return val
722 def LogicalToDeviceYRel(self, *_args, **_kwargs):
723 val = gdic.wxDC_LogicalToDeviceYRel(self, *_args, **_kwargs)
724 return val
725 def MaxX(self, *_args, **_kwargs):
726 val = gdic.wxDC_MaxX(self, *_args, **_kwargs)
727 return val
728 def MaxY(self, *_args, **_kwargs):
729 val = gdic.wxDC_MaxY(self, *_args, **_kwargs)
730 return val
731 def MinX(self, *_args, **_kwargs):
732 val = gdic.wxDC_MinX(self, *_args, **_kwargs)
733 return val
734 def MinY(self, *_args, **_kwargs):
735 val = gdic.wxDC_MinY(self, *_args, **_kwargs)
736 return val
737 def Ok(self, *_args, **_kwargs):
738 val = gdic.wxDC_Ok(self, *_args, **_kwargs)
739 return val
740 def SetDeviceOrigin(self, *_args, **_kwargs):
741 val = gdic.wxDC_SetDeviceOrigin(self, *_args, **_kwargs)
742 return val
743 def SetBackground(self, *_args, **_kwargs):
744 val = gdic.wxDC_SetBackground(self, *_args, **_kwargs)
745 return val
746 def SetBackgroundMode(self, *_args, **_kwargs):
747 val = gdic.wxDC_SetBackgroundMode(self, *_args, **_kwargs)
748 return val
749 def SetClippingRegion(self, *_args, **_kwargs):
750 val = gdic.wxDC_SetClippingRegion(self, *_args, **_kwargs)
751 return val
752 def SetClippingRegionAsRegion(self, *_args, **_kwargs):
753 val = gdic.wxDC_SetClippingRegionAsRegion(self, *_args, **_kwargs)
754 return val
755 def SetClippingRect(self, *_args, **_kwargs):
756 val = gdic.wxDC_SetClippingRect(self, *_args, **_kwargs)
757 return val
758 def SetPalette(self, *_args, **_kwargs):
759 val = gdic.wxDC_SetPalette(self, *_args, **_kwargs)
760 return val
761 def SetBrush(self, *_args, **_kwargs):
762 val = gdic.wxDC_SetBrush(self, *_args, **_kwargs)
763 return val
764 def SetFont(self, *_args, **_kwargs):
765 val = gdic.wxDC_SetFont(self, *_args, **_kwargs)
766 return val
767 def SetLogicalFunction(self, *_args, **_kwargs):
768 val = gdic.wxDC_SetLogicalFunction(self, *_args, **_kwargs)
769 return val
770 def SetLogicalScale(self, *_args, **_kwargs):
771 val = gdic.wxDC_SetLogicalScale(self, *_args, **_kwargs)
772 return val
773 def SetMapMode(self, *_args, **_kwargs):
774 val = gdic.wxDC_SetMapMode(self, *_args, **_kwargs)
775 return val
776 def SetOptimization(self, *_args, **_kwargs):
777 val = gdic.wxDC_SetOptimization(self, *_args, **_kwargs)
778 return val
779 def SetPen(self, *_args, **_kwargs):
780 val = gdic.wxDC_SetPen(self, *_args, **_kwargs)
781 return val
782 def SetTextBackground(self, *_args, **_kwargs):
783 val = gdic.wxDC_SetTextBackground(self, *_args, **_kwargs)
784 return val
785 def SetTextForeground(self, *_args, **_kwargs):
786 val = gdic.wxDC_SetTextForeground(self, *_args, **_kwargs)
787 return val
788 def SetUserScale(self, *_args, **_kwargs):
789 val = gdic.wxDC_SetUserScale(self, *_args, **_kwargs)
790 return val
791 def StartDoc(self, *_args, **_kwargs):
792 val = gdic.wxDC_StartDoc(self, *_args, **_kwargs)
793 return val
794 def StartPage(self, *_args, **_kwargs):
795 val = gdic.wxDC_StartPage(self, *_args, **_kwargs)
796 return val
797 def DrawBitmap(self, *_args, **_kwargs):
798 val = gdic.wxDC_DrawBitmap(self, *_args, **_kwargs)
799 return val
800 def CanDrawBitmap(self, *_args, **_kwargs):
801 val = gdic.wxDC_CanDrawBitmap(self, *_args, **_kwargs)
802 return val
803 def CanGetTextExtent(self, *_args, **_kwargs):
804 val = gdic.wxDC_CanGetTextExtent(self, *_args, **_kwargs)
805 return val
806 def GetDepth(self, *_args, **_kwargs):
807 val = gdic.wxDC_GetDepth(self, *_args, **_kwargs)
808 return val
809 def GetPPI(self, *_args, **_kwargs):
810 val = gdic.wxDC_GetPPI(self, *_args, **_kwargs)
811 if val: val = wxSizePtr(val) ; val.thisown = 1
812 return val
813 def GetLogicalOrigin(self, *_args, **_kwargs):
814 val = gdic.wxDC_GetLogicalOrigin(self, *_args, **_kwargs)
815 return val
816 def SetLogicalOrigin(self, *_args, **_kwargs):
817 val = gdic.wxDC_SetLogicalOrigin(self, *_args, **_kwargs)
818 return val
819 def GetDeviceOrigin(self, *_args, **_kwargs):
820 val = gdic.wxDC_GetDeviceOrigin(self, *_args, **_kwargs)
821 return val
822 def SetAxisOrientation(self, *_args, **_kwargs):
823 val = gdic.wxDC_SetAxisOrientation(self, *_args, **_kwargs)
824 return val
825 def CalcBoundingBox(self, *_args, **_kwargs):
826 val = gdic.wxDC_CalcBoundingBox(self, *_args, **_kwargs)
827 return val
828 def ResetBoundingBox(self, *_args, **_kwargs):
829 val = gdic.wxDC_ResetBoundingBox(self, *_args, **_kwargs)
830 return val
831 def GetBoundingBox(self, *_args, **_kwargs):
832 val = gdic.wxDC_GetBoundingBox(self, *_args, **_kwargs)
833 return val
834 def _DrawPointList(self, *_args, **_kwargs):
835 val = gdic.wxDC__DrawPointList(self, *_args, **_kwargs)
836 return val
837 def _DrawLineList(self, *_args, **_kwargs):
838 val = gdic.wxDC__DrawLineList(self, *_args, **_kwargs)
839 return val
840 def _DrawRectangleList(self, *_args, **_kwargs):
841 val = gdic.wxDC__DrawRectangleList(self, *_args, **_kwargs)
842 return val
843 def _DrawEllipseList(self, *_args, **_kwargs):
844 val = gdic.wxDC__DrawEllipseList(self, *_args, **_kwargs)
845 return val
846 def _DrawPolygonList(self, *_args, **_kwargs):
847 val = gdic.wxDC__DrawPolygonList(self, *_args, **_kwargs)
848 return val
849 def _DrawTextList(self, *_args, **_kwargs):
850 val = gdic.wxDC__DrawTextList(self, *_args, **_kwargs)
851 return val
852 def __repr__(self):
853 return "<%s.%s instance; proxy of C++ wxDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
854 def __nonzero__(self): return self.Ok()
855
856 def DrawPointList(self, points, pens=None):
857 if pens is None:
858 pens = []
859 elif isinstance(pens, wxPenPtr):
860 pens = [pens]
861 elif len(pens) != len(points):
862 raise ValueError('points and pens must have same length')
863 return self._DrawPointList(points, pens, [])
864
865
866 def DrawLineList(self, lines, pens=None):
867 if pens is None:
868 pens = []
869 elif isinstance(pens, wxPenPtr):
870 pens = [pens]
871 elif len(pens) != len(lines):
872 raise ValueError('lines and pens must have same length')
873 return self._DrawLineList(lines, pens, [])
874
875
876 def DrawRectangleList(self, rectangles, pens=None, brushes=None):
877 if pens is None:
878 pens = []
879 elif isinstance(pens, wxPenPtr):
880 pens = [pens]
881 elif len(pens) != len(rectangles):
882 raise ValueError('rectangles and pens must have same length')
883 if brushes is None:
884 brushes = []
885 elif isinstance(brushes, wxBrushPtr):
886 brushes = [brushes]
887 elif len(brushes) != len(rectangles):
888 raise ValueError('rectangles and brushes must have same length')
889 return self._DrawRectangleList(rectangles, pens, brushes)
890
891
892 def DrawEllipseList(self, ellipses, pens=None, brushes=None):
893 if pens is None:
894 pens = []
895 elif isinstance(pens, wxPenPtr):
896 pens = [pens]
897 elif len(pens) != len(ellipses):
898 raise ValueError('ellipses and pens must have same length')
899 if brushes is None:
900 brushes = []
901 elif isinstance(brushes, wxBrushPtr):
902 brushes = [brushes]
903 elif len(brushes) != len(ellipses):
904 raise ValueError('ellipses and brushes must have same length')
905 return self._DrawEllipseList(ellipses, pens, brushes)
906
907
908 def DrawPolygonList(self, polygons, pens=None, brushes=None):
909 ## Note: This does not currently support fill style or offset
910 ## you can always use the non-List version if need be.
911 ## I really would like to support fill-style, however,
912 ## but wxODDEVEN_RULE does not appear to be defined at the Python level
913 ## [It's in wx.py... --Robin]
914 if pens is None:
915 pens = []
916 elif isinstance(pens, wxPenPtr):
917 pens = [pens]
918 elif len(pens) != len(polygons):
919 raise ValueError('polygons and pens must have same length')
920 if brushes is None:
921 brushes = []
922 elif isinstance(brushes, wxBrushPtr):
923 brushes = [brushes]
924 elif len(brushes) != len(polygons):
925 raise ValueError('polygons and brushes must have same length')
926 return self._DrawPolygonList(polygons, pens, brushes)
927
928
929 def DrawTextList(self, textList, coords, foregrounds = None, backgrounds = None, fonts = None):
930 ## NOTE: this does not currently support changing the font
931 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
932 ## If you want backgounds to do anything.
933 if type(textList) == type(''):
934 textList = [textList]
935 elif len(textList) != len(coords):
936 raise ValueError('textlist and coords must have same length')
937 if foregrounds is None:
938 foregrounds = []
939 elif isinstance(foregrounds, wxColourPtr):
940 foregrounds = [foregrounds]
941 elif len(foregrounds) != len(coords):
942 raise ValueError('foregrounds and coords must have same length')
943 if backgrounds is None:
944 backgrounds = []
945 elif isinstance(backgrounds, wxColourPtr):
946 backgrounds = [backgrounds]
947 elif len(backgrounds) != len(coords):
948 raise ValueError('backgrounds and coords must have same length')
949 return self._DrawTextList(textList, coords, foregrounds, backgrounds)
950
951 class wxDC(wxDCPtr):
952 def __init__(self,this):
953 self.this = this
954
955
956
957
958 class wxMemoryDCPtr(wxDCPtr):
959 def __init__(self,this):
960 self.this = this
961 self.thisown = 0
962 def SelectObject(self, *_args, **_kwargs):
963 val = gdic.wxMemoryDC_SelectObject(self, *_args, **_kwargs)
964 return val
965 def __repr__(self):
966 return "<%s.%s instance; proxy of C++ wxMemoryDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
967 class wxMemoryDC(wxMemoryDCPtr):
968 def __init__(self,*_args,**_kwargs):
969 self.this = gdic.new_wxMemoryDC(*_args,**_kwargs)
970 self.thisown = 1
971
972
973
974
975 class wxBufferedDCPtr(wxMemoryDCPtr):
976 def __init__(self,this):
977 self.this = this
978 self.thisown = 0
979 def UnMask(self, *_args, **_kwargs):
980 val = gdic.wxBufferedDC_UnMask(self, *_args, **_kwargs)
981 return val
982 def __repr__(self):
983 return "<%s.%s instance; proxy of C++ wxBufferedDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
984 class wxBufferedDC(wxBufferedDCPtr):
985 def __init__(self,*_args,**_kwargs):
986 self.this = gdic.new_wxBufferedDC(*_args,**_kwargs)
987 self.thisown = 1
988 self._dc = _args[0] # save a ref so the other dc won't be deleted before self
989
990
991
992 def wxBufferedDCInternalBuffer(*_args,**_kwargs):
993 val = wxBufferedDCPtr(gdic.new_wxBufferedDCInternalBuffer(*_args,**_kwargs))
994 val.thisown = 1
995 val._dc = _args[0] # save a ref so the other dc won't be deleted before self
996 return val
997
998
999 class wxBufferedPaintDCPtr(wxBufferedDCPtr):
1000 def __init__(self,this):
1001 self.this = this
1002 self.thisown = 0
1003 def __repr__(self):
1004 return "<%s.%s instance; proxy of C++ wxBufferedPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1005 class wxBufferedPaintDC(wxBufferedPaintDCPtr):
1006 def __init__(self,*_args,**_kwargs):
1007 self.this = gdic.new_wxBufferedPaintDC(*_args,**_kwargs)
1008 self.thisown = 1
1009
1010
1011
1012
1013 class wxScreenDCPtr(wxDCPtr):
1014 def __init__(self,this):
1015 self.this = this
1016 self.thisown = 0
1017 def StartDrawingOnTopWin(self, *_args, **_kwargs):
1018 val = gdic.wxScreenDC_StartDrawingOnTopWin(self, *_args, **_kwargs)
1019 return val
1020 def StartDrawingOnTop(self, *_args, **_kwargs):
1021 val = gdic.wxScreenDC_StartDrawingOnTop(self, *_args, **_kwargs)
1022 return val
1023 def EndDrawingOnTop(self, *_args, **_kwargs):
1024 val = gdic.wxScreenDC_EndDrawingOnTop(self, *_args, **_kwargs)
1025 return val
1026 def __repr__(self):
1027 return "<%s.%s instance; proxy of C++ wxScreenDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1028 class wxScreenDC(wxScreenDCPtr):
1029 def __init__(self,*_args,**_kwargs):
1030 self.this = gdic.new_wxScreenDC(*_args,**_kwargs)
1031 self.thisown = 1
1032
1033
1034
1035
1036 class wxClientDCPtr(wxDCPtr):
1037 def __init__(self,this):
1038 self.this = this
1039 self.thisown = 0
1040 def __repr__(self):
1041 return "<%s.%s instance; proxy of C++ wxClientDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1042 class wxClientDC(wxClientDCPtr):
1043 def __init__(self,*_args,**_kwargs):
1044 self.this = gdic.new_wxClientDC(*_args,**_kwargs)
1045 self.thisown = 1
1046
1047
1048
1049
1050 class wxPaintDCPtr(wxDCPtr):
1051 def __init__(self,this):
1052 self.this = this
1053 self.thisown = 0
1054 def __repr__(self):
1055 return "<%s.%s instance; proxy of C++ wxPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1056 class wxPaintDC(wxPaintDCPtr):
1057 def __init__(self,*_args,**_kwargs):
1058 self.this = gdic.new_wxPaintDC(*_args,**_kwargs)
1059 self.thisown = 1
1060
1061
1062
1063
1064 class wxWindowDCPtr(wxDCPtr):
1065 def __init__(self,this):
1066 self.this = this
1067 self.thisown = 0
1068 def __repr__(self):
1069 return "<%s.%s instance; proxy of C++ wxWindowDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1070 class wxWindowDC(wxWindowDCPtr):
1071 def __init__(self,*_args,**_kwargs):
1072 self.this = gdic.new_wxWindowDC(*_args,**_kwargs)
1073 self.thisown = 1
1074
1075
1076
1077
1078 class wxMirrorDCPtr(wxDCPtr):
1079 def __init__(self,this):
1080 self.this = this
1081 self.thisown = 0
1082 def __repr__(self):
1083 return "<%s.%s instance; proxy of C++ wxMirrorDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1084 class wxMirrorDC(wxMirrorDCPtr):
1085 def __init__(self,*_args,**_kwargs):
1086 self.this = gdic.new_wxMirrorDC(*_args,**_kwargs)
1087 self.thisown = 1
1088
1089
1090
1091
1092 class wxPalettePtr(wxGDIObjectPtr):
1093 def __init__(self,this):
1094 self.this = this
1095 self.thisown = 0
1096 def __del__(self, delfunc=gdic.delete_wxPalette):
1097 if self.thisown == 1:
1098 try:
1099 delfunc(self)
1100 except:
1101 pass
1102 def GetPixel(self, *_args, **_kwargs):
1103 val = gdic.wxPalette_GetPixel(self, *_args, **_kwargs)
1104 return val
1105 def GetRGB(self, *_args, **_kwargs):
1106 val = gdic.wxPalette_GetRGB(self, *_args, **_kwargs)
1107 return val
1108 def Ok(self, *_args, **_kwargs):
1109 val = gdic.wxPalette_Ok(self, *_args, **_kwargs)
1110 return val
1111 def __repr__(self):
1112 return "<%s.%s instance; proxy of C++ wxPalette instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1113 def __nonzero__(self): return self.Ok()
1114 class wxPalette(wxPalettePtr):
1115 def __init__(self,*_args,**_kwargs):
1116 self.this = gdic.new_wxPalette(*_args,**_kwargs)
1117 self.thisown = 1
1118
1119
1120
1121
1122 class wxImageListPtr(wxObjectPtr):
1123 def __init__(self,this):
1124 self.this = this
1125 self.thisown = 0
1126 def __del__(self, delfunc=gdic.delete_wxImageList):
1127 if self.thisown == 1:
1128 try:
1129 delfunc(self)
1130 except:
1131 pass
1132 def Add(self, *_args, **_kwargs):
1133 val = gdic.wxImageList_Add(self, *_args, **_kwargs)
1134 return val
1135 def AddWithColourMask(self, *_args, **_kwargs):
1136 val = gdic.wxImageList_AddWithColourMask(self, *_args, **_kwargs)
1137 return val
1138 def AddIcon(self, *_args, **_kwargs):
1139 val = gdic.wxImageList_AddIcon(self, *_args, **_kwargs)
1140 return val
1141 def Replace(self, *_args, **_kwargs):
1142 val = gdic.wxImageList_Replace(self, *_args, **_kwargs)
1143 return val
1144 def Draw(self, *_args, **_kwargs):
1145 val = gdic.wxImageList_Draw(self, *_args, **_kwargs)
1146 return val
1147 def GetImageCount(self, *_args, **_kwargs):
1148 val = gdic.wxImageList_GetImageCount(self, *_args, **_kwargs)
1149 return val
1150 def Remove(self, *_args, **_kwargs):
1151 val = gdic.wxImageList_Remove(self, *_args, **_kwargs)
1152 return val
1153 def RemoveAll(self, *_args, **_kwargs):
1154 val = gdic.wxImageList_RemoveAll(self, *_args, **_kwargs)
1155 return val
1156 def GetSize(self, *_args, **_kwargs):
1157 val = gdic.wxImageList_GetSize(self, *_args, **_kwargs)
1158 return val
1159 def __repr__(self):
1160 return "<%s.%s instance; proxy of C++ wxImageList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1161 class wxImageList(wxImageListPtr):
1162 def __init__(self,*_args,**_kwargs):
1163 self.this = gdic.new_wxImageList(*_args,**_kwargs)
1164 self.thisown = 1
1165
1166
1167
1168
1169 class wxRegionPtr(wxGDIObjectPtr):
1170 def __init__(self,this):
1171 self.this = this
1172 self.thisown = 0
1173 def __del__(self, delfunc=gdic.delete_wxRegion):
1174 if self.thisown == 1:
1175 try:
1176 delfunc(self)
1177 except:
1178 pass
1179 def Clear(self, *_args, **_kwargs):
1180 val = gdic.wxRegion_Clear(self, *_args, **_kwargs)
1181 return val
1182 def Contains(self, *_args, **_kwargs):
1183 val = gdic.wxRegion_Contains(self, *_args, **_kwargs)
1184 return val
1185 def ContainsPoint(self, *_args, **_kwargs):
1186 val = gdic.wxRegion_ContainsPoint(self, *_args, **_kwargs)
1187 return val
1188 def ContainsRect(self, *_args, **_kwargs):
1189 val = gdic.wxRegion_ContainsRect(self, *_args, **_kwargs)
1190 return val
1191 def ContainsRectDim(self, *_args, **_kwargs):
1192 val = gdic.wxRegion_ContainsRectDim(self, *_args, **_kwargs)
1193 return val
1194 def GetBox(self, *_args, **_kwargs):
1195 val = gdic.wxRegion_GetBox(self, *_args, **_kwargs)
1196 if val: val = wxRectPtr(val) ; val.thisown = 1
1197 return val
1198 def Intersect(self, *_args, **_kwargs):
1199 val = gdic.wxRegion_Intersect(self, *_args, **_kwargs)
1200 return val
1201 def IntersectRect(self, *_args, **_kwargs):
1202 val = gdic.wxRegion_IntersectRect(self, *_args, **_kwargs)
1203 return val
1204 def IntersectRegion(self, *_args, **_kwargs):
1205 val = gdic.wxRegion_IntersectRegion(self, *_args, **_kwargs)
1206 return val
1207 def IsEmpty(self, *_args, **_kwargs):
1208 val = gdic.wxRegion_IsEmpty(self, *_args, **_kwargs)
1209 return val
1210 def Union(self, *_args, **_kwargs):
1211 val = gdic.wxRegion_Union(self, *_args, **_kwargs)
1212 return val
1213 def UnionRect(self, *_args, **_kwargs):
1214 val = gdic.wxRegion_UnionRect(self, *_args, **_kwargs)
1215 return val
1216 def UnionRegion(self, *_args, **_kwargs):
1217 val = gdic.wxRegion_UnionRegion(self, *_args, **_kwargs)
1218 return val
1219 def Subtract(self, *_args, **_kwargs):
1220 val = gdic.wxRegion_Subtract(self, *_args, **_kwargs)
1221 return val
1222 def SubtractRect(self, *_args, **_kwargs):
1223 val = gdic.wxRegion_SubtractRect(self, *_args, **_kwargs)
1224 return val
1225 def SubtractRegion(self, *_args, **_kwargs):
1226 val = gdic.wxRegion_SubtractRegion(self, *_args, **_kwargs)
1227 return val
1228 def Xor(self, *_args, **_kwargs):
1229 val = gdic.wxRegion_Xor(self, *_args, **_kwargs)
1230 return val
1231 def XorRect(self, *_args, **_kwargs):
1232 val = gdic.wxRegion_XorRect(self, *_args, **_kwargs)
1233 return val
1234 def XorRegion(self, *_args, **_kwargs):
1235 val = gdic.wxRegion_XorRegion(self, *_args, **_kwargs)
1236 return val
1237 def ConvertToBitmap(self, *_args, **_kwargs):
1238 val = gdic.wxRegion_ConvertToBitmap(self, *_args, **_kwargs)
1239 if val: val = wxBitmapPtr(val) ; val.thisown = 1
1240 return val
1241 def UnionBitmap(self, *_args, **_kwargs):
1242 val = gdic.wxRegion_UnionBitmap(self, *_args, **_kwargs)
1243 return val
1244 def __repr__(self):
1245 return "<%s.%s instance; proxy of C++ wxRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1246 class wxRegion(wxRegionPtr):
1247 def __init__(self,*_args,**_kwargs):
1248 self.this = gdic.new_wxRegion(*_args,**_kwargs)
1249 self.thisown = 1
1250
1251
1252
1253 def wxRegionFromBitmap(*_args,**_kwargs):
1254 val = wxRegionPtr(gdic.new_wxRegionFromBitmap(*_args,**_kwargs))
1255 val.thisown = 1
1256 return val
1257
1258
1259 class wxRegionIteratorPtr(wxObjectPtr):
1260 def __init__(self,this):
1261 self.this = this
1262 self.thisown = 0
1263 def __del__(self, delfunc=gdic.delete_wxRegionIterator):
1264 if self.thisown == 1:
1265 try:
1266 delfunc(self)
1267 except:
1268 pass
1269 def GetX(self, *_args, **_kwargs):
1270 val = gdic.wxRegionIterator_GetX(self, *_args, **_kwargs)
1271 return val
1272 def GetY(self, *_args, **_kwargs):
1273 val = gdic.wxRegionIterator_GetY(self, *_args, **_kwargs)
1274 return val
1275 def GetW(self, *_args, **_kwargs):
1276 val = gdic.wxRegionIterator_GetW(self, *_args, **_kwargs)
1277 return val
1278 def GetWidth(self, *_args, **_kwargs):
1279 val = gdic.wxRegionIterator_GetWidth(self, *_args, **_kwargs)
1280 return val
1281 def GetH(self, *_args, **_kwargs):
1282 val = gdic.wxRegionIterator_GetH(self, *_args, **_kwargs)
1283 return val
1284 def GetHeight(self, *_args, **_kwargs):
1285 val = gdic.wxRegionIterator_GetHeight(self, *_args, **_kwargs)
1286 return val
1287 def GetRect(self, *_args, **_kwargs):
1288 val = gdic.wxRegionIterator_GetRect(self, *_args, **_kwargs)
1289 if val: val = wxRectPtr(val) ; val.thisown = 1
1290 return val
1291 def HaveRects(self, *_args, **_kwargs):
1292 val = gdic.wxRegionIterator_HaveRects(self, *_args, **_kwargs)
1293 return val
1294 def Reset(self, *_args, **_kwargs):
1295 val = gdic.wxRegionIterator_Reset(self, *_args, **_kwargs)
1296 return val
1297 def Next(self, *_args, **_kwargs):
1298 val = gdic.wxRegionIterator_Next(self, *_args, **_kwargs)
1299 return val
1300 def __nonzero__(self, *_args, **_kwargs):
1301 val = gdic.wxRegionIterator___nonzero__(self, *_args, **_kwargs)
1302 return val
1303 def __repr__(self):
1304 return "<%s.%s instance; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1305 class wxRegionIterator(wxRegionIteratorPtr):
1306 def __init__(self,*_args,**_kwargs):
1307 self.this = gdic.new_wxRegionIterator(*_args,**_kwargs)
1308 self.thisown = 1
1309
1310
1311
1312
1313
1314
1315 #-------------- FUNCTION WRAPPERS ------------------
1316
1317 def wxEmptyBitmap(*_args, **_kwargs):
1318 val = gdic.wxEmptyBitmap(*_args,**_kwargs)
1319 if val: val = wxBitmapPtr(val); val.thisown = 1
1320 return val
1321
1322 def wxBitmapFromXPMData(*_args, **_kwargs):
1323 val = gdic.wxBitmapFromXPMData(*_args,**_kwargs)
1324 if val: val = wxBitmapPtr(val); val.thisown = 1
1325 return val
1326
1327 def wxBitmapFromIcon(*_args, **_kwargs):
1328 val = gdic.wxBitmapFromIcon(*_args,**_kwargs)
1329 if val: val = wxBitmapPtr(val); val.thisown = 1
1330 return val
1331
1332 def wxBitmapFromBits(*_args, **_kwargs):
1333 val = gdic.wxBitmapFromBits(*_args,**_kwargs)
1334 if val: val = wxBitmapPtr(val); val.thisown = 1
1335 return val
1336
1337 def wxMaskColour(*_args, **_kwargs):
1338 val = gdic.wxMaskColour(*_args,**_kwargs)
1339 if val: val = wxMaskPtr(val); val.thisown = 1
1340 return val
1341
1342 def wxEmptyIcon(*_args, **_kwargs):
1343 val = gdic.wxEmptyIcon(*_args,**_kwargs)
1344 if val: val = wxIconPtr(val); val.thisown = 1
1345 return val
1346
1347 def wxIconFromXPMData(*_args, **_kwargs):
1348 val = gdic.wxIconFromXPMData(*_args,**_kwargs)
1349 if val: val = wxIconPtr(val); val.thisown = 1
1350 return val
1351
1352 def wxIconFromBitmap(*_args, **_kwargs):
1353 val = gdic.wxIconFromBitmap(*_args,**_kwargs)
1354 if val: val = wxIconPtr(val); val.thisown = 1
1355 return val
1356
1357 def wxIconFromLocation(*_args, **_kwargs):
1358 val = gdic.wxIconFromLocation(*_args,**_kwargs)
1359 if val: val = wxIconPtr(val); val.thisown = 1
1360 return val
1361
1362 def wxStockCursor(*_args, **_kwargs):
1363 val = gdic.wxStockCursor(*_args,**_kwargs)
1364 if val: val = wxCursorPtr(val); val.thisown = 1
1365 return val
1366
1367 def wxCursorFromImage(*_args, **_kwargs):
1368 val = gdic.wxCursorFromImage(*_args,**_kwargs)
1369 if val: val = wxCursorPtr(val); val.thisown = 1
1370 return val
1371
1372 def wxCursorFromBits(*_args, **_kwargs):
1373 val = gdic.wxCursorFromBits(*_args,**_kwargs)
1374 if val: val = wxCursorPtr(val); val.thisown = 1
1375 return val
1376
1377 def wxNamedColour(*_args, **_kwargs):
1378 val = gdic.wxNamedColour(*_args,**_kwargs)
1379 if val: val = wxColourPtr(val); val.thisown = 1
1380 return val
1381
1382 def wxMemoryDCFromDC(*_args, **_kwargs):
1383 val = gdic.wxMemoryDCFromDC(*_args,**_kwargs)
1384 if val: val = wxMemoryDCPtr(val); val.thisown = 1
1385 return val
1386
1387
1388
1389 #-------------- VARIABLE WRAPPERS ------------------
1390
1391 wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
1392 wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
1393 wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
1394 wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
1395 wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
1396 wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
1397 wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE
1398 wxOutRegion = gdic.wxOutRegion
1399 wxPartRegion = gdic.wxPartRegion
1400 wxInRegion = gdic.wxInRegion
1401 cvar = gdic.cvar
1402 wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
1403 wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
1404 wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
1405 wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
1406 wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
1407 wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
1408 wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
1409 wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
1410 wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
1411 wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
1412 wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
1413 wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
1414 wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
1415 wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
1416 wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
1417 wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
1418 wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
1419 wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
1420 wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
1421 wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
1422 wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
1423 wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
1424 wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
1425 wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
1426 wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
1427 wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
1428 wxRED = wxColourPtr(gdic.cvar.wxRED)
1429 wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
1430 wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
1431 wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
1432 wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
1433 wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
1434 wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
1435 wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
1436 wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
1437 wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
1438 wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
1439 wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
1440 wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
1441 wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
1442 wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
1443 wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
1444 wxTheFontList = wxFontListPtr(gdic.cvar.wxTheFontList)
1445 wxThePenList = wxPenListPtr(gdic.cvar.wxThePenList)
1446 wxTheBrushList = wxBrushListPtr(gdic.cvar.wxTheBrushList)
1447 wxTheColourDatabase = wxColourDatabasePtr(gdic.cvar.wxTheColourDatabase)