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