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