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