]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/gdi.py
wxPython updates (SWIG really works, cannot believe it)
[wxWidgets.git] / utils / wxPython / src / gtk / gdi.py
1 # This file was created automatically by SWIG.
2 import gdic
3
4 from misc import *
5 class wxBitmapPtr :
6 def __init__(self,this):
7 self.this = this
8 self.thisown = 0
9 def __del__(self):
10 if self.thisown == 1 :
11 gdic.delete_wxBitmap(self.this)
12 def GetDepth(self):
13 val = gdic.wxBitmap_GetDepth(self.this)
14 return val
15 def GetHeight(self):
16 val = gdic.wxBitmap_GetHeight(self.this)
17 return val
18 def GetPalette(self):
19 val = gdic.wxBitmap_GetPalette(self.this)
20 val = wxPalettePtr(val)
21 return val
22 def GetMask(self):
23 val = gdic.wxBitmap_GetMask(self.this)
24 val = wxMaskPtr(val)
25 return val
26 def GetWidth(self):
27 val = gdic.wxBitmap_GetWidth(self.this)
28 return val
29 def LoadFile(self,arg0,arg1):
30 val = gdic.wxBitmap_LoadFile(self.this,arg0,arg1)
31 return val
32 def Ok(self):
33 val = gdic.wxBitmap_Ok(self.this)
34 return val
35 def SaveFile(self,arg0,arg1,*args):
36 argl = map(None,args)
37 try: argl[0] = argl[0].this
38 except: pass
39 args = tuple(argl)
40 val = apply(gdic.wxBitmap_SaveFile,(self.this,arg0,arg1,)+args)
41 return val
42 def SetDepth(self,arg0):
43 val = gdic.wxBitmap_SetDepth(self.this,arg0)
44 return val
45 def SetHeight(self,arg0):
46 val = gdic.wxBitmap_SetHeight(self.this,arg0)
47 return val
48 def SetMask(self,arg0):
49 val = gdic.wxBitmap_SetMask(self.this,arg0.this)
50 return val
51 def SetWidth(self,arg0):
52 val = gdic.wxBitmap_SetWidth(self.this,arg0)
53 return val
54 def __repr__(self):
55 return "<C wxBitmap instance>"
56 class wxBitmap(wxBitmapPtr):
57 def __init__(self,arg0,arg1) :
58 self.this = gdic.new_wxBitmap(arg0,arg1)
59 self.thisown = 1
60
61
62
63
64 class wxMaskPtr :
65 def __init__(self,this):
66 self.this = this
67 self.thisown = 0
68 def __del__(self):
69 if self.thisown == 1 :
70 gdic.delete_wxMask(self.this)
71 def __repr__(self):
72 return "<C wxMask instance>"
73 class wxMask(wxMaskPtr):
74 def __init__(self,arg0) :
75 self.this = gdic.new_wxMask(arg0.this)
76 self.thisown = 1
77
78
79
80
81 class wxIconPtr(wxBitmapPtr):
82 def __init__(self,this):
83 self.this = this
84 self.thisown = 0
85 def __del__(self):
86 if self.thisown == 1 :
87 gdic.delete_wxIcon(self.this)
88 def GetDepth(self):
89 val = gdic.wxIcon_GetDepth(self.this)
90 return val
91 def GetHeight(self):
92 val = gdic.wxIcon_GetHeight(self.this)
93 return val
94 def GetWidth(self):
95 val = gdic.wxIcon_GetWidth(self.this)
96 return val
97 def LoadFile(self,arg0,arg1):
98 val = gdic.wxIcon_LoadFile(self.this,arg0,arg1)
99 return val
100 def Ok(self):
101 val = gdic.wxIcon_Ok(self.this)
102 return val
103 def SetDepth(self,arg0):
104 val = gdic.wxIcon_SetDepth(self.this,arg0)
105 return val
106 def SetHeight(self,arg0):
107 val = gdic.wxIcon_SetHeight(self.this,arg0)
108 return val
109 def SetWidth(self,arg0):
110 val = gdic.wxIcon_SetWidth(self.this,arg0)
111 return val
112 def __repr__(self):
113 return "<C wxIcon instance>"
114 class wxIcon(wxIconPtr):
115 def __init__(self,this):
116 self.this = this
117
118
119
120
121 class wxCursorPtr(wxBitmapPtr):
122 def __init__(self,this):
123 self.this = this
124 self.thisown = 0
125 def __del__(self):
126 if self.thisown == 1 :
127 gdic.delete_wxCursor(self.this)
128 def Ok(self):
129 val = gdic.wxCursor_Ok(self.this)
130 return val
131 def __repr__(self):
132 return "<C wxCursor instance>"
133 class wxCursor(wxCursorPtr):
134 def __init__(self,this):
135 self.this = this
136
137
138
139
140 class wxFontPtr :
141 def __init__(self,this):
142 self.this = this
143 self.thisown = 0
144 def GetFaceName(self):
145 val = gdic.wxFont_GetFaceName(self.this)
146 return val
147 def GetFamily(self):
148 val = gdic.wxFont_GetFamily(self.this)
149 return val
150 def GetFontId(self):
151 val = gdic.wxFont_GetFontId(self.this)
152 return val
153 def GetPointSize(self):
154 val = gdic.wxFont_GetPointSize(self.this)
155 return val
156 def GetStyle(self):
157 val = gdic.wxFont_GetStyle(self.this)
158 return val
159 def GetUnderlined(self):
160 val = gdic.wxFont_GetUnderlined(self.this)
161 return val
162 def GetWeight(self):
163 val = gdic.wxFont_GetWeight(self.this)
164 return val
165 def SetFaceName(self,arg0):
166 val = gdic.wxFont_SetFaceName(self.this,arg0)
167 return val
168 def SetFamily(self,arg0):
169 val = gdic.wxFont_SetFamily(self.this,arg0)
170 return val
171 def SetPointSize(self,arg0):
172 val = gdic.wxFont_SetPointSize(self.this,arg0)
173 return val
174 def SetStyle(self,arg0):
175 val = gdic.wxFont_SetStyle(self.this,arg0)
176 return val
177 def SetUnderlined(self,arg0):
178 val = gdic.wxFont_SetUnderlined(self.this,arg0)
179 return val
180 def SetWeight(self,arg0):
181 val = gdic.wxFont_SetWeight(self.this,arg0)
182 return val
183 def __repr__(self):
184 return "<C wxFont instance>"
185 class wxFont(wxFontPtr):
186 def __init__(self,arg0,arg1,arg2,arg3,*args) :
187 self.this = apply(gdic.new_wxFont,(arg0,arg1,arg2,arg3,)+args)
188 self.thisown = 1
189
190
191
192
193 class wxColourPtr :
194 def __init__(self,this):
195 self.this = this
196 self.thisown = 0
197 def __del__(self):
198 if self.thisown == 1 :
199 gdic.delete_wxColour(self.this)
200 def Red(self):
201 val = gdic.wxColour_Red(self.this)
202 return val
203 def Green(self):
204 val = gdic.wxColour_Green(self.this)
205 return val
206 def Blue(self):
207 val = gdic.wxColour_Blue(self.this)
208 return val
209 def Ok(self):
210 val = gdic.wxColour_Ok(self.this)
211 return val
212 def Set(self,arg0,arg1,arg2):
213 val = gdic.wxColour_Set(self.this,arg0,arg1,arg2)
214 return val
215 def Get(self):
216 val = gdic.wxColour_Get(self.this)
217 return val
218 def __repr__(self):
219 return "<C wxColour instance>"
220 class wxColour(wxColourPtr):
221 def __init__(self,*args) :
222 self.this = apply(gdic.new_wxColour,()+args)
223 self.thisown = 1
224
225
226
227
228 class wxPenPtr :
229 def __init__(self,this):
230 self.this = this
231 self.thisown = 0
232 def GetCap(self):
233 val = gdic.wxPen_GetCap(self.this)
234 return val
235 def GetColour(self):
236 val = gdic.wxPen_GetColour(self.this)
237 val = wxColourPtr(val)
238 return val
239 def GetJoin(self):
240 val = gdic.wxPen_GetJoin(self.this)
241 return val
242 def GetStyle(self):
243 val = gdic.wxPen_GetStyle(self.this)
244 return val
245 def GetWidth(self):
246 val = gdic.wxPen_GetWidth(self.this)
247 return val
248 def Ok(self):
249 val = gdic.wxPen_Ok(self.this)
250 return val
251 def SetCap(self,arg0):
252 val = gdic.wxPen_SetCap(self.this,arg0)
253 return val
254 def SetColour(self,arg0):
255 val = gdic.wxPen_SetColour(self.this,arg0.this)
256 return val
257 def SetJoin(self,arg0):
258 val = gdic.wxPen_SetJoin(self.this,arg0)
259 return val
260 def SetStyle(self,arg0):
261 val = gdic.wxPen_SetStyle(self.this,arg0)
262 return val
263 def SetWidth(self,arg0):
264 val = gdic.wxPen_SetWidth(self.this,arg0)
265 return val
266 def __repr__(self):
267 return "<C wxPen instance>"
268 class wxPen(wxPenPtr):
269 def __init__(self,arg0,*args) :
270 self.this = apply(gdic.new_wxPen,(arg0.this,)+args)
271 self.thisown = 1
272
273
274
275
276 class wxBrushPtr :
277 def __init__(self,this):
278 self.this = this
279 self.thisown = 0
280 def GetColour(self):
281 val = gdic.wxBrush_GetColour(self.this)
282 val = wxColourPtr(val)
283 return val
284 def GetStipple(self):
285 val = gdic.wxBrush_GetStipple(self.this)
286 val = wxBitmapPtr(val)
287 return val
288 def GetStyle(self):
289 val = gdic.wxBrush_GetStyle(self.this)
290 return val
291 def Ok(self):
292 val = gdic.wxBrush_Ok(self.this)
293 return val
294 def SetColour(self,arg0):
295 val = gdic.wxBrush_SetColour(self.this,arg0.this)
296 return val
297 def SetStipple(self,arg0):
298 val = gdic.wxBrush_SetStipple(self.this,arg0.this)
299 return val
300 def SetStyle(self,arg0):
301 val = gdic.wxBrush_SetStyle(self.this,arg0)
302 return val
303 def __repr__(self):
304 return "<C wxBrush instance>"
305 class wxBrush(wxBrushPtr):
306 def __init__(self,arg0,*args) :
307 self.this = apply(gdic.new_wxBrush,(arg0.this,)+args)
308 self.thisown = 1
309
310
311
312
313 class wxDCPtr :
314 def __init__(self,this):
315 self.this = this
316 self.thisown = 0
317 def __del__(self):
318 if self.thisown == 1 :
319 gdic.delete_wxDC(self.this)
320 def BeginDrawing(self):
321 val = gdic.wxDC_BeginDrawing(self.this)
322 return val
323 def Blit(self,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7):
324 val = gdic.wxDC_Blit(self.this,arg0,arg1,arg2,arg3,arg4.this,arg5,arg6,arg7)
325 return val
326 def Clear(self):
327 val = gdic.wxDC_Clear(self.this)
328 return val
329 def CrossHair(self,arg0,arg1):
330 val = gdic.wxDC_CrossHair(self.this,arg0,arg1)
331 return val
332 def DestroyClippingRegion(self):
333 val = gdic.wxDC_DestroyClippingRegion(self.this)
334 return val
335 def DeviceToLogicalX(self,arg0):
336 val = gdic.wxDC_DeviceToLogicalX(self.this,arg0)
337 return val
338 def DeviceToLogicalXRel(self,arg0):
339 val = gdic.wxDC_DeviceToLogicalXRel(self.this,arg0)
340 return val
341 def DeviceToLogicalY(self,arg0):
342 val = gdic.wxDC_DeviceToLogicalY(self.this,arg0)
343 return val
344 def DeviceToLogicalYRel(self,arg0):
345 val = gdic.wxDC_DeviceToLogicalYRel(self.this,arg0)
346 return val
347 def DrawArc(self,arg0,arg1,arg2,arg3,arg4,arg5):
348 val = gdic.wxDC_DrawArc(self.this,arg0,arg1,arg2,arg3,arg4,arg5)
349 return val
350 def DrawEllipse(self,arg0,arg1,arg2,arg3):
351 val = gdic.wxDC_DrawEllipse(self.this,arg0,arg1,arg2,arg3)
352 return val
353 def DrawEllipticArc(self,arg0,arg1,arg2,arg3,arg4,arg5):
354 val = gdic.wxDC_DrawEllipticArc(self.this,arg0,arg1,arg2,arg3,arg4,arg5)
355 return val
356 def DrawIcon(self,arg0,arg1,arg2):
357 val = gdic.wxDC_DrawIcon(self.this,arg0.this,arg1,arg2)
358 return val
359 def DrawLine(self,arg0,arg1,arg2,arg3):
360 val = gdic.wxDC_DrawLine(self.this,arg0,arg1,arg2,arg3)
361 return val
362 def DrawLines(self,arg0,*args):
363 argl = map(None,args)
364 try: argl[0] = argl[0].this
365 except: pass
366 args = tuple(argl)
367 val = apply(gdic.wxDC_DrawLines,(self.this,arg0,)+args)
368 return val
369 def DrawPolygon(self,arg0,*args):
370 argl = map(None,args)
371 try: argl[0] = argl[0].this
372 except: pass
373 args = tuple(argl)
374 val = apply(gdic.wxDC_DrawPolygon,(self.this,arg0,)+args)
375 return val
376 def DrawPoint(self,arg0,arg1):
377 val = gdic.wxDC_DrawPoint(self.this,arg0,arg1)
378 return val
379 def DrawRectangle(self,arg0,arg1,arg2,arg3):
380 val = gdic.wxDC_DrawRectangle(self.this,arg0,arg1,arg2,arg3)
381 return val
382 def DrawRoundedRectangle(self,arg0,arg1,arg2,arg3,*args):
383 val = apply(gdic.wxDC_DrawRoundedRectangle,(self.this,arg0,arg1,arg2,arg3,)+args)
384 return val
385 def DrawSpline(self,arg0,*args):
386 argl = map(None,args)
387 try: argl[0] = argl[0].this
388 except: pass
389 args = tuple(argl)
390 val = apply(gdic.wxDC_DrawSpline,(self.this,arg0,)+args)
391 return val
392 def DrawText(self,arg0,arg1,arg2):
393 val = gdic.wxDC_DrawText(self.this,arg0,arg1,arg2)
394 return val
395 def EndDoc(self):
396 val = gdic.wxDC_EndDoc(self.this)
397 return val
398 def EndDrawing(self):
399 val = gdic.wxDC_EndDrawing(self.this)
400 return val
401 def EndPage(self):
402 val = gdic.wxDC_EndPage(self.this)
403 return val
404 def FloodFill(self,arg0,arg1,arg2,*args):
405 val = apply(gdic.wxDC_FloodFill,(self.this,arg0,arg1,arg2.this,)+args)
406 return val
407 def GetBackground(self):
408 val = gdic.wxDC_GetBackground(self.this)
409 val = wxBrushPtr(val)
410 return val
411 def GetBrush(self):
412 val = gdic.wxDC_GetBrush(self.this)
413 val = wxBrushPtr(val)
414 return val
415 def GetCharHeight(self):
416 val = gdic.wxDC_GetCharHeight(self.this)
417 return val
418 def GetCharWidth(self):
419 val = gdic.wxDC_GetCharWidth(self.this)
420 return val
421 def GetClippingBox(self):
422 val = gdic.wxDC_GetClippingBox(self.this)
423 return val
424 def GetFont(self):
425 val = gdic.wxDC_GetFont(self.this)
426 val = wxFontPtr(val)
427 return val
428 def GetLogicalFunction(self):
429 val = gdic.wxDC_GetLogicalFunction(self.this)
430 return val
431 def GetMapMode(self):
432 val = gdic.wxDC_GetMapMode(self.this)
433 return val
434 def GetOptimization(self):
435 val = gdic.wxDC_GetOptimization(self.this)
436 return val
437 def GetPen(self):
438 val = gdic.wxDC_GetPen(self.this)
439 val = wxPenPtr(val)
440 return val
441 def GetPixel(self,arg0,arg1):
442 val = gdic.wxDC_GetPixel(self.this,arg0,arg1)
443 val = wxColourPtr(val)
444 val.thisown = 1
445 return val
446 def GetSize(self):
447 val = gdic.wxDC_GetSize(self.this)
448 return val
449 def GetTextBackground(self):
450 val = gdic.wxDC_GetTextBackground(self.this)
451 val = wxColourPtr(val)
452 return val
453 def GetTextExtent(self,arg0):
454 val = gdic.wxDC_GetTextExtent(self.this,arg0)
455 return val
456 def GetTextForeground(self):
457 val = gdic.wxDC_GetTextForeground(self.this)
458 val = wxColourPtr(val)
459 return val
460 def LogicalToDeviceX(self,arg0):
461 val = gdic.wxDC_LogicalToDeviceX(self.this,arg0)
462 return val
463 def LogicalToDeviceXRel(self,arg0):
464 val = gdic.wxDC_LogicalToDeviceXRel(self.this,arg0)
465 return val
466 def LogicalToDeviceY(self,arg0):
467 val = gdic.wxDC_LogicalToDeviceY(self.this,arg0)
468 return val
469 def LogicalToDeviceYRel(self,arg0):
470 val = gdic.wxDC_LogicalToDeviceYRel(self.this,arg0)
471 return val
472 def MaxX(self):
473 val = gdic.wxDC_MaxX(self.this)
474 return val
475 def MaxY(self):
476 val = gdic.wxDC_MaxY(self.this)
477 return val
478 def MinX(self):
479 val = gdic.wxDC_MinX(self.this)
480 return val
481 def MinY(self):
482 val = gdic.wxDC_MinY(self.this)
483 return val
484 def Ok(self):
485 val = gdic.wxDC_Ok(self.this)
486 return val
487 def SetDeviceOrigin(self,arg0,arg1):
488 val = gdic.wxDC_SetDeviceOrigin(self.this,arg0,arg1)
489 return val
490 def SetBackground(self,arg0):
491 val = gdic.wxDC_SetBackground(self.this,arg0.this)
492 return val
493 def SetBackgroundMode(self,arg0):
494 val = gdic.wxDC_SetBackgroundMode(self.this,arg0)
495 return val
496 def SetClippingRegion(self,arg0,arg1,arg2,arg3):
497 val = gdic.wxDC_SetClippingRegion(self.this,arg0,arg1,arg2,arg3)
498 return val
499 def SetPalette(self,arg0):
500 val = gdic.wxDC_SetPalette(self.this,arg0.this)
501 return val
502 def SetBrush(self,arg0):
503 val = gdic.wxDC_SetBrush(self.this,arg0.this)
504 return val
505 def SetFont(self,arg0):
506 val = gdic.wxDC_SetFont(self.this,arg0.this)
507 return val
508 def SetLogicalFunction(self,arg0):
509 val = gdic.wxDC_SetLogicalFunction(self.this,arg0)
510 return val
511 def SetMapMode(self,arg0):
512 val = gdic.wxDC_SetMapMode(self.this,arg0)
513 return val
514 def SetOptimization(self,arg0):
515 val = gdic.wxDC_SetOptimization(self.this,arg0)
516 return val
517 def SetPen(self,arg0):
518 val = gdic.wxDC_SetPen(self.this,arg0.this)
519 return val
520 def SetTextBackground(self,arg0):
521 val = gdic.wxDC_SetTextBackground(self.this,arg0.this)
522 return val
523 def SetTextForeground(self,arg0):
524 val = gdic.wxDC_SetTextForeground(self.this,arg0.this)
525 return val
526 def SetUserScale(self,arg0,arg1):
527 val = gdic.wxDC_SetUserScale(self.this,arg0,arg1)
528 return val
529 def StartDoc(self,arg0):
530 val = gdic.wxDC_StartDoc(self.this,arg0)
531 return val
532 def StartPage(self):
533 val = gdic.wxDC_StartPage(self.this)
534 return val
535 def DrawBitmap(self,arg0,arg1,arg2,*args):
536 val = apply(gdic.wxDC_DrawBitmap,(self.this,arg0.this,arg1,arg2,)+args)
537 return val
538 def __repr__(self):
539 return "<C wxDC instance>"
540 class wxDC(wxDCPtr):
541 def __init__(self,this):
542 self.this = this
543
544
545
546
547 class wxMemoryDCPtr(wxDCPtr):
548 def __init__(self,this):
549 self.this = this
550 self.thisown = 0
551 def SelectObject(self,arg0):
552 val = gdic.wxMemoryDC_SelectObject(self.this,arg0.this)
553 return val
554 def __repr__(self):
555 return "<C wxMemoryDC instance>"
556 class wxMemoryDC(wxMemoryDCPtr):
557 def __init__(self) :
558 self.this = gdic.new_wxMemoryDC()
559 self.thisown = 1
560
561
562
563
564 class wxScreenDCPtr(wxDCPtr):
565 def __init__(self,this):
566 self.this = this
567 self.thisown = 0
568 def StartDrawingOnTop(self,arg0):
569 val = gdic.wxScreenDC_StartDrawingOnTop(self.this,arg0.this)
570 return val
571 def StartDrawingOnTopRect(self,*args):
572 argl = map(None,args)
573 try: argl[0] = argl[0].this
574 except: pass
575 args = tuple(argl)
576 val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self.this,)+args)
577 return val
578 def EndDrawingOnTop(self):
579 val = gdic.wxScreenDC_EndDrawingOnTop(self.this)
580 return val
581 def __repr__(self):
582 return "<C wxScreenDC instance>"
583 class wxScreenDC(wxScreenDCPtr):
584 def __init__(self) :
585 self.this = gdic.new_wxScreenDC()
586 self.thisown = 1
587
588
589
590
591 class wxClientDCPtr(wxDCPtr):
592 def __init__(self,this):
593 self.this = this
594 self.thisown = 0
595 def __repr__(self):
596 return "<C wxClientDC instance>"
597 class wxClientDC(wxClientDCPtr):
598 def __init__(self,arg0) :
599 self.this = gdic.new_wxClientDC(arg0.this)
600 self.thisown = 1
601
602
603
604
605 class wxPaintDCPtr(wxDCPtr):
606 def __init__(self,this):
607 self.this = this
608 self.thisown = 0
609 def __repr__(self):
610 return "<C wxPaintDC instance>"
611 class wxPaintDC(wxPaintDCPtr):
612 def __init__(self,arg0) :
613 self.this = gdic.new_wxPaintDC(arg0.this)
614 self.thisown = 1
615
616
617
618
619 class wxWindowDCPtr(wxDCPtr):
620 def __init__(self,this):
621 self.this = this
622 self.thisown = 0
623 def __repr__(self):
624 return "<C wxWindowDC instance>"
625 class wxWindowDC(wxWindowDCPtr):
626 def __init__(self,arg0) :
627 self.this = gdic.new_wxWindowDC(arg0.this)
628 self.thisown = 1
629
630
631
632
633 class wxPostScriptDCPtr(wxDCPtr):
634 def __init__(self,this):
635 self.this = this
636 self.thisown = 0
637 def __repr__(self):
638 return "<C wxPostScriptDC instance>"
639 class wxPostScriptDC(wxPostScriptDCPtr):
640 def __init__(self,arg0,*args) :
641 argl = map(None,args)
642 try: argl[1] = argl[1].this
643 except: pass
644 args = tuple(argl)
645 self.this = apply(gdic.new_wxPostScriptDC,(arg0,)+args)
646 self.thisown = 1
647
648
649
650
651 class wxPalettePtr :
652 def __init__(self,this):
653 self.this = this
654 self.thisown = 0
655 def __del__(self):
656 if self.thisown == 1 :
657 gdic.delete_wxPalette(self.this)
658 def GetPixel(self,arg0,arg1,arg2):
659 val = gdic.wxPalette_GetPixel(self.this,arg0,arg1,arg2)
660 return val
661 def GetRGB(self,arg0,arg1,arg2,arg3):
662 val = gdic.wxPalette_GetRGB(self.this,arg0,arg1,arg2,arg3)
663 return val
664 def Ok(self):
665 val = gdic.wxPalette_Ok(self.this)
666 return val
667 def __repr__(self):
668 return "<C wxPalette instance>"
669 class wxPalette(wxPalettePtr):
670 def __init__(self,arg0,arg1,arg2) :
671 self.this = gdic.new_wxPalette(arg0,arg1,arg2)
672 self.thisown = 1
673
674
675
676
677
678
679 #-------------- FUNCTION WRAPPERS ------------------
680
681 def wxEmptyBitmap(arg0,arg1,*args):
682 val = apply(gdic.wxEmptyBitmap,(arg0,arg1,)+args)
683 val = wxBitmapPtr(val)
684 val.thisown = 1
685 return val
686
687 def wxNoRefBitmap(arg0,arg1):
688 val = gdic.wxNoRefBitmap(arg0,arg1)
689 val = wxBitmapPtr(val)
690 return val
691
692 def wxMaskColour(arg0,arg1):
693 val = gdic.wxMaskColour(arg0.this,arg1.this)
694 val = wxMaskPtr(val)
695 val.thisown = 1
696 return val
697
698 def wxStockCursor(arg0):
699 val = gdic.wxStockCursor(arg0)
700 val = wxCursorPtr(val)
701 val.thisown = 1
702 return val
703
704 def wxNamedColour(arg0):
705 val = gdic.wxNamedColour(arg0)
706 val = wxColourPtr(val)
707 val.thisown = 1
708 return val
709
710 def wxMemoryDCFromDC(arg0):
711 val = gdic.wxMemoryDCFromDC(arg0.this)
712 val = wxMemoryDCPtr(val)
713 val.thisown = 1
714 return val
715
716
717
718 #-------------- VARIABLE WRAPPERS ------------------
719
720 cvar = gdic.cvar
721 wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
722 wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
723 wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
724 wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
725 wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
726 wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
727 wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
728 wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
729 wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
730 wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
731 wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
732 wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
733 wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
734 wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
735 wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
736 wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
737 wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
738 wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
739 wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
740 wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
741 wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
742 wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
743 wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
744 wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
745 wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
746 wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
747 wxRED = wxColourPtr(gdic.cvar.wxRED)
748 wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
749 wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
750 wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
751 wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
752 wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
753 wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
754 wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
755 wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
756 wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
757 wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
758 wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
759 wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
760 wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
761 wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)