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