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