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