]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/gdi.py
wxPython 2.1b1: Very minor changes needed for wxGTK
[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 GetPointSize(self):
151 val = gdic.wxFont_GetPointSize(self.this)
152 return val
153 def GetStyle(self):
154 val = gdic.wxFont_GetStyle(self.this)
155 return val
156 def GetUnderlined(self):
157 val = gdic.wxFont_GetUnderlined(self.this)
158 return val
159 def GetWeight(self):
160 val = gdic.wxFont_GetWeight(self.this)
161 return val
162 def SetFaceName(self,arg0):
163 val = gdic.wxFont_SetFaceName(self.this,arg0)
164 return val
165 def SetFamily(self,arg0):
166 val = gdic.wxFont_SetFamily(self.this,arg0)
167 return val
168 def SetPointSize(self,arg0):
169 val = gdic.wxFont_SetPointSize(self.this,arg0)
170 return val
171 def SetStyle(self,arg0):
172 val = gdic.wxFont_SetStyle(self.this,arg0)
173 return val
174 def SetUnderlined(self,arg0):
175 val = gdic.wxFont_SetUnderlined(self.this,arg0)
176 return val
177 def SetWeight(self,arg0):
178 val = gdic.wxFont_SetWeight(self.this,arg0)
179 return val
180 def __repr__(self):
181 return "<C wxFont instance>"
182 class wxFont(wxFontPtr):
183 def __init__(self,arg0,arg1,arg2,arg3,*args) :
184 self.this = apply(gdic.new_wxFont,(arg0,arg1,arg2,arg3,)+args)
185 self.thisown = 1
186
187
188
189
190 class wxColourPtr :
191 def __init__(self,this):
192 self.this = this
193 self.thisown = 0
194 def __del__(self):
195 if self.thisown == 1 :
196 gdic.delete_wxColour(self.this)
197 def Red(self):
198 val = gdic.wxColour_Red(self.this)
199 return val
200 def Green(self):
201 val = gdic.wxColour_Green(self.this)
202 return val
203 def Blue(self):
204 val = gdic.wxColour_Blue(self.this)
205 return val
206 def Ok(self):
207 val = gdic.wxColour_Ok(self.this)
208 return val
209 def Set(self,arg0,arg1,arg2):
210 val = gdic.wxColour_Set(self.this,arg0,arg1,arg2)
211 return val
212 def Get(self):
213 val = gdic.wxColour_Get(self.this)
214 return val
215 def __repr__(self):
216 return "<C wxColour instance>"
217 class wxColour(wxColourPtr):
218 def __init__(self,*args) :
219 self.this = apply(gdic.new_wxColour,()+args)
220 self.thisown = 1
221
222
223
224
225 class wxPenPtr :
226 def __init__(self,this):
227 self.this = this
228 self.thisown = 0
229 def GetCap(self):
230 val = gdic.wxPen_GetCap(self.this)
231 return val
232 def GetColour(self):
233 val = gdic.wxPen_GetColour(self.this)
234 val = wxColourPtr(val)
235 return val
236 def GetJoin(self):
237 val = gdic.wxPen_GetJoin(self.this)
238 return val
239 def GetStyle(self):
240 val = gdic.wxPen_GetStyle(self.this)
241 return val
242 def GetWidth(self):
243 val = gdic.wxPen_GetWidth(self.this)
244 return val
245 def Ok(self):
246 val = gdic.wxPen_Ok(self.this)
247 return val
248 def SetCap(self,arg0):
249 val = gdic.wxPen_SetCap(self.this,arg0)
250 return val
251 def SetColour(self,arg0):
252 val = gdic.wxPen_SetColour(self.this,arg0.this)
253 return val
254 def SetJoin(self,arg0):
255 val = gdic.wxPen_SetJoin(self.this,arg0)
256 return val
257 def SetStyle(self,arg0):
258 val = gdic.wxPen_SetStyle(self.this,arg0)
259 return val
260 def SetWidth(self,arg0):
261 val = gdic.wxPen_SetWidth(self.this,arg0)
262 return val
263 def __repr__(self):
264 return "<C wxPen instance>"
265 class wxPen(wxPenPtr):
266 def __init__(self,arg0,*args) :
267 self.this = apply(gdic.new_wxPen,(arg0.this,)+args)
268 self.thisown = 1
269
270
271
272
273 class wxBrushPtr :
274 def __init__(self,this):
275 self.this = this
276 self.thisown = 0
277 def GetColour(self):
278 val = gdic.wxBrush_GetColour(self.this)
279 val = wxColourPtr(val)
280 return val
281 def GetStipple(self):
282 val = gdic.wxBrush_GetStipple(self.this)
283 val = wxBitmapPtr(val)
284 return val
285 def GetStyle(self):
286 val = gdic.wxBrush_GetStyle(self.this)
287 return val
288 def Ok(self):
289 val = gdic.wxBrush_Ok(self.this)
290 return val
291 def SetColour(self,arg0):
292 val = gdic.wxBrush_SetColour(self.this,arg0.this)
293 return val
294 def SetStipple(self,arg0):
295 val = gdic.wxBrush_SetStipple(self.this,arg0.this)
296 return val
297 def SetStyle(self,arg0):
298 val = gdic.wxBrush_SetStyle(self.this,arg0)
299 return val
300 def __repr__(self):
301 return "<C wxBrush instance>"
302 class wxBrush(wxBrushPtr):
303 def __init__(self,arg0,*args) :
304 self.this = apply(gdic.new_wxBrush,(arg0.this,)+args)
305 self.thisown = 1
306
307
308
309
310 class wxDCPtr :
311 def __init__(self,this):
312 self.this = this
313 self.thisown = 0
314 def __del__(self):
315 if self.thisown == 1 :
316 gdic.delete_wxDC(self.this)
317 def BeginDrawing(self):
318 val = gdic.wxDC_BeginDrawing(self.this)
319 return val
320 def Blit(self,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7):
321 val = gdic.wxDC_Blit(self.this,arg0,arg1,arg2,arg3,arg4.this,arg5,arg6,arg7)
322 return val
323 def Clear(self):
324 val = gdic.wxDC_Clear(self.this)
325 return val
326 def CrossHair(self,arg0,arg1):
327 val = gdic.wxDC_CrossHair(self.this,arg0,arg1)
328 return val
329 def DestroyClippingRegion(self):
330 val = gdic.wxDC_DestroyClippingRegion(self.this)
331 return val
332 def DeviceToLogicalX(self,arg0):
333 val = gdic.wxDC_DeviceToLogicalX(self.this,arg0)
334 return val
335 def DeviceToLogicalXRel(self,arg0):
336 val = gdic.wxDC_DeviceToLogicalXRel(self.this,arg0)
337 return val
338 def DeviceToLogicalY(self,arg0):
339 val = gdic.wxDC_DeviceToLogicalY(self.this,arg0)
340 return val
341 def DeviceToLogicalYRel(self,arg0):
342 val = gdic.wxDC_DeviceToLogicalYRel(self.this,arg0)
343 return val
344 def DrawArc(self,arg0,arg1,arg2,arg3,arg4,arg5):
345 val = gdic.wxDC_DrawArc(self.this,arg0,arg1,arg2,arg3,arg4,arg5)
346 return val
347 def DrawCircle(self,arg0,arg1,arg2):
348 val = gdic.wxDC_DrawCircle(self.this,arg0,arg1,arg2)
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 GetSizeTuple(self):
447 val = gdic.wxDC_GetSizeTuple(self.this)
448 return val
449 def GetSize(self):
450 val = gdic.wxDC_GetSize(self.this)
451 val = wxSizePtr(val)
452 val.thisown = 1
453 return val
454 def GetTextBackground(self):
455 val = gdic.wxDC_GetTextBackground(self.this)
456 val = wxColourPtr(val)
457 return val
458 def GetTextExtent(self,arg0):
459 val = gdic.wxDC_GetTextExtent(self.this,arg0)
460 return val
461 def GetFullTextExtent(self,arg0,*args):
462 argl = map(None,args)
463 try: argl[0] = argl[0].this
464 except: pass
465 args = tuple(argl)
466 val = apply(gdic.wxDC_GetFullTextExtent,(self.this,arg0,)+args)
467 return val
468 def GetTextForeground(self):
469 val = gdic.wxDC_GetTextForeground(self.this)
470 val = wxColourPtr(val)
471 return val
472 def LogicalToDeviceX(self,arg0):
473 val = gdic.wxDC_LogicalToDeviceX(self.this,arg0)
474 return val
475 def LogicalToDeviceXRel(self,arg0):
476 val = gdic.wxDC_LogicalToDeviceXRel(self.this,arg0)
477 return val
478 def LogicalToDeviceY(self,arg0):
479 val = gdic.wxDC_LogicalToDeviceY(self.this,arg0)
480 return val
481 def LogicalToDeviceYRel(self,arg0):
482 val = gdic.wxDC_LogicalToDeviceYRel(self.this,arg0)
483 return val
484 def MaxX(self):
485 val = gdic.wxDC_MaxX(self.this)
486 return val
487 def MaxY(self):
488 val = gdic.wxDC_MaxY(self.this)
489 return val
490 def MinX(self):
491 val = gdic.wxDC_MinX(self.this)
492 return val
493 def MinY(self):
494 val = gdic.wxDC_MinY(self.this)
495 return val
496 def Ok(self):
497 val = gdic.wxDC_Ok(self.this)
498 return val
499 def SetDeviceOrigin(self,arg0,arg1):
500 val = gdic.wxDC_SetDeviceOrigin(self.this,arg0,arg1)
501 return val
502 def SetBackground(self,arg0):
503 val = gdic.wxDC_SetBackground(self.this,arg0.this)
504 return val
505 def SetBackgroundMode(self,arg0):
506 val = gdic.wxDC_SetBackgroundMode(self.this,arg0)
507 return val
508 def SetClippingRegion(self,arg0,arg1,arg2,arg3):
509 val = gdic.wxDC_SetClippingRegion(self.this,arg0,arg1,arg2,arg3)
510 return val
511 def SetPalette(self,arg0):
512 val = gdic.wxDC_SetPalette(self.this,arg0.this)
513 return val
514 def SetBrush(self,arg0):
515 val = gdic.wxDC_SetBrush(self.this,arg0.this)
516 return val
517 def SetFont(self,arg0):
518 val = gdic.wxDC_SetFont(self.this,arg0.this)
519 return val
520 def SetLogicalFunction(self,arg0):
521 val = gdic.wxDC_SetLogicalFunction(self.this,arg0)
522 return val
523 def SetMapMode(self,arg0):
524 val = gdic.wxDC_SetMapMode(self.this,arg0)
525 return val
526 def SetOptimization(self,arg0):
527 val = gdic.wxDC_SetOptimization(self.this,arg0)
528 return val
529 def SetPen(self,arg0):
530 val = gdic.wxDC_SetPen(self.this,arg0.this)
531 return val
532 def SetTextBackground(self,arg0):
533 val = gdic.wxDC_SetTextBackground(self.this,arg0.this)
534 return val
535 def SetTextForeground(self,arg0):
536 val = gdic.wxDC_SetTextForeground(self.this,arg0.this)
537 return val
538 def SetUserScale(self,arg0,arg1):
539 val = gdic.wxDC_SetUserScale(self.this,arg0,arg1)
540 return val
541 def StartDoc(self,arg0):
542 val = gdic.wxDC_StartDoc(self.this,arg0)
543 return val
544 def StartPage(self):
545 val = gdic.wxDC_StartPage(self.this)
546 return val
547 def DrawBitmap(self,arg0,arg1,arg2,*args):
548 val = apply(gdic.wxDC_DrawBitmap,(self.this,arg0.this,arg1,arg2,)+args)
549 return val
550 def __repr__(self):
551 return "<C wxDC instance>"
552 class wxDC(wxDCPtr):
553 def __init__(self,this):
554 self.this = this
555
556
557
558
559 class wxMemoryDCPtr(wxDCPtr):
560 def __init__(self,this):
561 self.this = this
562 self.thisown = 0
563 def SelectObject(self,arg0):
564 val = gdic.wxMemoryDC_SelectObject(self.this,arg0.this)
565 return val
566 def __repr__(self):
567 return "<C wxMemoryDC instance>"
568 class wxMemoryDC(wxMemoryDCPtr):
569 def __init__(self) :
570 self.this = gdic.new_wxMemoryDC()
571 self.thisown = 1
572
573
574
575
576 class wxScreenDCPtr(wxDCPtr):
577 def __init__(self,this):
578 self.this = this
579 self.thisown = 0
580 def StartDrawingOnTop(self,arg0):
581 val = gdic.wxScreenDC_StartDrawingOnTop(self.this,arg0.this)
582 return val
583 def StartDrawingOnTopRect(self,*args):
584 argl = map(None,args)
585 try: argl[0] = argl[0].this
586 except: pass
587 args = tuple(argl)
588 val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self.this,)+args)
589 return val
590 def EndDrawingOnTop(self):
591 val = gdic.wxScreenDC_EndDrawingOnTop(self.this)
592 return val
593 def __repr__(self):
594 return "<C wxScreenDC instance>"
595 class wxScreenDC(wxScreenDCPtr):
596 def __init__(self) :
597 self.this = gdic.new_wxScreenDC()
598 self.thisown = 1
599
600
601
602
603 class wxClientDCPtr(wxDCPtr):
604 def __init__(self,this):
605 self.this = this
606 self.thisown = 0
607 def __repr__(self):
608 return "<C wxClientDC instance>"
609 class wxClientDC(wxClientDCPtr):
610 def __init__(self,arg0) :
611 self.this = gdic.new_wxClientDC(arg0.this)
612 self.thisown = 1
613
614
615
616
617 class wxPaintDCPtr(wxDCPtr):
618 def __init__(self,this):
619 self.this = this
620 self.thisown = 0
621 def __repr__(self):
622 return "<C wxPaintDC instance>"
623 class wxPaintDC(wxPaintDCPtr):
624 def __init__(self,arg0) :
625 self.this = gdic.new_wxPaintDC(arg0.this)
626 self.thisown = 1
627
628
629
630
631 class wxWindowDCPtr(wxDCPtr):
632 def __init__(self,this):
633 self.this = this
634 self.thisown = 0
635 def __repr__(self):
636 return "<C wxWindowDC instance>"
637 class wxWindowDC(wxWindowDCPtr):
638 def __init__(self,arg0) :
639 self.this = gdic.new_wxWindowDC(arg0.this)
640 self.thisown = 1
641
642
643
644
645 class wxPostScriptDCPtr(wxDCPtr):
646 def __init__(self,this):
647 self.this = this
648 self.thisown = 0
649 def __repr__(self):
650 return "<C wxPostScriptDC instance>"
651 class wxPostScriptDC(wxPostScriptDCPtr):
652 def __init__(self,arg0,*args) :
653 argl = map(None,args)
654 try: argl[1] = argl[1].this
655 except: pass
656 args = tuple(argl)
657 self.this = apply(gdic.new_wxPostScriptDC,(arg0,)+args)
658 self.thisown = 1
659
660
661
662
663 class wxPalettePtr :
664 def __init__(self,this):
665 self.this = this
666 self.thisown = 0
667 def __del__(self):
668 if self.thisown == 1 :
669 gdic.delete_wxPalette(self.this)
670 def GetPixel(self,arg0,arg1,arg2):
671 val = gdic.wxPalette_GetPixel(self.this,arg0,arg1,arg2)
672 return val
673 def GetRGB(self,arg0,arg1,arg2,arg3):
674 val = gdic.wxPalette_GetRGB(self.this,arg0,arg1,arg2,arg3)
675 return val
676 def Ok(self):
677 val = gdic.wxPalette_Ok(self.this)
678 return val
679 def __repr__(self):
680 return "<C wxPalette instance>"
681 class wxPalette(wxPalettePtr):
682 def __init__(self,arg0,arg1,arg2) :
683 self.this = gdic.new_wxPalette(arg0,arg1,arg2)
684 self.thisown = 1
685
686
687
688
689 class wxImageListPtr :
690 def __init__(self,this):
691 self.this = this
692 self.thisown = 0
693 def __del__(self):
694 if self.thisown == 1 :
695 gdic.delete_wxImageList(self.this)
696 def Add(self,arg0):
697 val = gdic.wxImageList_Add(self.this,arg0.this)
698 return val
699 def Replace(self,arg0,arg1):
700 val = gdic.wxImageList_Replace(self.this,arg0,arg1.this)
701 return val
702 def Draw(self,arg0,arg1,arg2,arg3,*args):
703 val = apply(gdic.wxImageList_Draw,(self.this,arg0,arg1.this,arg2,arg3,)+args)
704 return val
705 def GetImageCount(self):
706 val = gdic.wxImageList_GetImageCount(self.this)
707 return val
708 def Remove(self,arg0):
709 val = gdic.wxImageList_Remove(self.this,arg0)
710 return val
711 def RemoveAll(self):
712 val = gdic.wxImageList_RemoveAll(self.this)
713 return val
714 def __repr__(self):
715 return "<C wxImageList instance>"
716 class wxImageList(wxImageListPtr):
717 def __init__(self,arg0,arg1,*args) :
718 self.this = apply(gdic.new_wxImageList,(arg0,arg1,)+args)
719 self.thisown = 1
720
721
722
723
724
725
726 #-------------- FUNCTION WRAPPERS ------------------
727
728 def wxEmptyBitmap(arg0,arg1,*args):
729 val = apply(gdic.wxEmptyBitmap,(arg0,arg1,)+args)
730 val = wxBitmapPtr(val)
731 val.thisown = 1
732 return val
733
734 def wxNoRefBitmap(arg0,arg1):
735 val = gdic.wxNoRefBitmap(arg0,arg1)
736 val = wxBitmapPtr(val)
737 return val
738
739 def wxMaskColour(arg0,arg1):
740 val = gdic.wxMaskColour(arg0.this,arg1.this)
741 val = wxMaskPtr(val)
742 val.thisown = 1
743 return val
744
745 def wxStockCursor(arg0):
746 val = gdic.wxStockCursor(arg0)
747 val = wxCursorPtr(val)
748 val.thisown = 1
749 return val
750
751 def wxNamedColour(arg0):
752 val = gdic.wxNamedColour(arg0)
753 val = wxColourPtr(val)
754 val.thisown = 1
755 return val
756
757 def wxMemoryDCFromDC(arg0):
758 val = gdic.wxMemoryDCFromDC(arg0.this)
759 val = wxMemoryDCPtr(val)
760 val.thisown = 1
761 return val
762
763
764
765 #-------------- VARIABLE WRAPPERS ------------------
766
767 cvar = gdic.cvar
768 wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
769 wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
770 wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
771 wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
772 wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
773 wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
774 wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
775 wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
776 wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
777 wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
778 wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
779 wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
780 wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
781 wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
782 wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
783 wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
784 wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
785 wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
786 wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
787 wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
788 wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
789 wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
790 wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
791 wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
792 wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
793 wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
794 wxRED = wxColourPtr(gdic.cvar.wxRED)
795 wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
796 wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
797 wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
798 wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
799 wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
800 wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
801 wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
802 wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
803 wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
804 wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
805 wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
806 wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
807 wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
808 wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
809 wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
810 wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
811 wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
812 wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
813 wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
814 wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
815 wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
816 wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE