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