]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/gtk/gdi.py
more 2.0b9 updates
[wxWidgets.git] / utils / wxPython / src / gtk / gdi.py
CommitLineData
70551f47
RD
1# This file was created automatically by SWIG.
2import gdic
3
4from misc import *
5class 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)
105e45b9 20 val = wxPalettePtr(val)
70551f47
RD
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):
105e45b9
RD
36 argl = map(None,args)
37 try: argl[0] = argl[0].this
38 except: pass
39 args = tuple(argl)
70551f47
RD
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>"
56class wxBitmap(wxBitmapPtr):
57 def __init__(self,arg0,arg1) :
58 self.this = gdic.new_wxBitmap(arg0,arg1)
59 self.thisown = 1
60
61
62
63
64class 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>"
73class wxMask(wxMaskPtr):
74 def __init__(self,arg0) :
75 self.this = gdic.new_wxMask(arg0.this)
76 self.thisown = 1
77
78
79
80
81class 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>"
114class wxIcon(wxIconPtr):
115 def __init__(self,this):
116 self.this = this
117
118
119
120
121class 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>"
133class wxCursor(wxCursorPtr):
134 def __init__(self,this):
135 self.this = this
136
137
138
139
140class 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
70551f47
RD
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
d3b4d113
RR
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
70551f47
RD
180 def __repr__(self):
181 return "<C wxFont instance>"
182class 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
190class 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>"
217class wxColour(wxColourPtr):
218 def __init__(self,*args) :
219 self.this = apply(gdic.new_wxColour,()+args)
220 self.thisown = 1
221
222
223
224
225class 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>"
265class 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
273class 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
c95e68d8
RD
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
70551f47
RD
300 def __repr__(self):
301 return "<C wxBrush instance>"
302class 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
310class 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 DrawEllipse(self,arg0,arg1,arg2,arg3):
348 val = gdic.wxDC_DrawEllipse(self.this,arg0,arg1,arg2,arg3)
349 return val
350 def DrawEllipticArc(self,arg0,arg1,arg2,arg3,arg4,arg5):
351 val = gdic.wxDC_DrawEllipticArc(self.this,arg0,arg1,arg2,arg3,arg4,arg5)
352 return val
353 def DrawIcon(self,arg0,arg1,arg2):
354 val = gdic.wxDC_DrawIcon(self.this,arg0.this,arg1,arg2)
355 return val
356 def DrawLine(self,arg0,arg1,arg2,arg3):
357 val = gdic.wxDC_DrawLine(self.this,arg0,arg1,arg2,arg3)
358 return val
359 def DrawLines(self,arg0,*args):
360 argl = map(None,args)
361 try: argl[0] = argl[0].this
362 except: pass
363 args = tuple(argl)
364 val = apply(gdic.wxDC_DrawLines,(self.this,arg0,)+args)
365 return val
366 def DrawPolygon(self,arg0,*args):
367 argl = map(None,args)
368 try: argl[0] = argl[0].this
369 except: pass
370 args = tuple(argl)
371 val = apply(gdic.wxDC_DrawPolygon,(self.this,arg0,)+args)
372 return val
373 def DrawPoint(self,arg0,arg1):
374 val = gdic.wxDC_DrawPoint(self.this,arg0,arg1)
375 return val
376 def DrawRectangle(self,arg0,arg1,arg2,arg3):
377 val = gdic.wxDC_DrawRectangle(self.this,arg0,arg1,arg2,arg3)
378 return val
379 def DrawRoundedRectangle(self,arg0,arg1,arg2,arg3,*args):
380 val = apply(gdic.wxDC_DrawRoundedRectangle,(self.this,arg0,arg1,arg2,arg3,)+args)
381 return val
382 def DrawSpline(self,arg0,*args):
383 argl = map(None,args)
384 try: argl[0] = argl[0].this
385 except: pass
386 args = tuple(argl)
387 val = apply(gdic.wxDC_DrawSpline,(self.this,arg0,)+args)
388 return val
389 def DrawText(self,arg0,arg1,arg2):
390 val = gdic.wxDC_DrawText(self.this,arg0,arg1,arg2)
391 return val
392 def EndDoc(self):
393 val = gdic.wxDC_EndDoc(self.this)
394 return val
395 def EndDrawing(self):
396 val = gdic.wxDC_EndDrawing(self.this)
397 return val
398 def EndPage(self):
399 val = gdic.wxDC_EndPage(self.this)
400 return val
401 def FloodFill(self,arg0,arg1,arg2,*args):
402 val = apply(gdic.wxDC_FloodFill,(self.this,arg0,arg1,arg2.this,)+args)
403 return val
404 def GetBackground(self):
405 val = gdic.wxDC_GetBackground(self.this)
406 val = wxBrushPtr(val)
407 return val
408 def GetBrush(self):
409 val = gdic.wxDC_GetBrush(self.this)
410 val = wxBrushPtr(val)
411 return val
412 def GetCharHeight(self):
413 val = gdic.wxDC_GetCharHeight(self.this)
414 return val
415 def GetCharWidth(self):
416 val = gdic.wxDC_GetCharWidth(self.this)
417 return val
418 def GetClippingBox(self):
419 val = gdic.wxDC_GetClippingBox(self.this)
420 return val
421 def GetFont(self):
422 val = gdic.wxDC_GetFont(self.this)
423 val = wxFontPtr(val)
424 return val
425 def GetLogicalFunction(self):
426 val = gdic.wxDC_GetLogicalFunction(self.this)
427 return val
428 def GetMapMode(self):
429 val = gdic.wxDC_GetMapMode(self.this)
430 return val
431 def GetOptimization(self):
432 val = gdic.wxDC_GetOptimization(self.this)
433 return val
434 def GetPen(self):
435 val = gdic.wxDC_GetPen(self.this)
436 val = wxPenPtr(val)
437 return val
438 def GetPixel(self,arg0,arg1):
439 val = gdic.wxDC_GetPixel(self.this,arg0,arg1)
440 val = wxColourPtr(val)
441 val.thisown = 1
442 return val
443 def GetSize(self):
444 val = gdic.wxDC_GetSize(self.this)
445 return val
446 def GetTextBackground(self):
447 val = gdic.wxDC_GetTextBackground(self.this)
448 val = wxColourPtr(val)
449 return val
450 def GetTextExtent(self,arg0):
451 val = gdic.wxDC_GetTextExtent(self.this,arg0)
452 return val
21f8d7ea
RD
453 def GetFullTextExtent(self,arg0,*args):
454 argl = map(None,args)
455 try: argl[0] = argl[0].this
456 except: pass
457 args = tuple(argl)
458 val = apply(gdic.wxDC_GetFullTextExtent,(self.this,arg0,)+args)
459 return val
70551f47
RD
460 def GetTextForeground(self):
461 val = gdic.wxDC_GetTextForeground(self.this)
462 val = wxColourPtr(val)
463 return val
464 def LogicalToDeviceX(self,arg0):
465 val = gdic.wxDC_LogicalToDeviceX(self.this,arg0)
466 return val
467 def LogicalToDeviceXRel(self,arg0):
468 val = gdic.wxDC_LogicalToDeviceXRel(self.this,arg0)
469 return val
470 def LogicalToDeviceY(self,arg0):
471 val = gdic.wxDC_LogicalToDeviceY(self.this,arg0)
472 return val
473 def LogicalToDeviceYRel(self,arg0):
474 val = gdic.wxDC_LogicalToDeviceYRel(self.this,arg0)
475 return val
476 def MaxX(self):
477 val = gdic.wxDC_MaxX(self.this)
478 return val
479 def MaxY(self):
480 val = gdic.wxDC_MaxY(self.this)
481 return val
482 def MinX(self):
483 val = gdic.wxDC_MinX(self.this)
484 return val
485 def MinY(self):
486 val = gdic.wxDC_MinY(self.this)
487 return val
488 def Ok(self):
489 val = gdic.wxDC_Ok(self.this)
490 return val
491 def SetDeviceOrigin(self,arg0,arg1):
492 val = gdic.wxDC_SetDeviceOrigin(self.this,arg0,arg1)
493 return val
494 def SetBackground(self,arg0):
495 val = gdic.wxDC_SetBackground(self.this,arg0.this)
496 return val
497 def SetBackgroundMode(self,arg0):
498 val = gdic.wxDC_SetBackgroundMode(self.this,arg0)
499 return val
500 def SetClippingRegion(self,arg0,arg1,arg2,arg3):
501 val = gdic.wxDC_SetClippingRegion(self.this,arg0,arg1,arg2,arg3)
502 return val
503 def SetPalette(self,arg0):
105e45b9 504 val = gdic.wxDC_SetPalette(self.this,arg0.this)
70551f47
RD
505 return val
506 def SetBrush(self,arg0):
507 val = gdic.wxDC_SetBrush(self.this,arg0.this)
508 return val
509 def SetFont(self,arg0):
510 val = gdic.wxDC_SetFont(self.this,arg0.this)
511 return val
512 def SetLogicalFunction(self,arg0):
513 val = gdic.wxDC_SetLogicalFunction(self.this,arg0)
514 return val
515 def SetMapMode(self,arg0):
516 val = gdic.wxDC_SetMapMode(self.this,arg0)
517 return val
518 def SetOptimization(self,arg0):
519 val = gdic.wxDC_SetOptimization(self.this,arg0)
520 return val
521 def SetPen(self,arg0):
522 val = gdic.wxDC_SetPen(self.this,arg0.this)
523 return val
524 def SetTextBackground(self,arg0):
525 val = gdic.wxDC_SetTextBackground(self.this,arg0.this)
526 return val
527 def SetTextForeground(self,arg0):
528 val = gdic.wxDC_SetTextForeground(self.this,arg0.this)
529 return val
530 def SetUserScale(self,arg0,arg1):
531 val = gdic.wxDC_SetUserScale(self.this,arg0,arg1)
532 return val
533 def StartDoc(self,arg0):
534 val = gdic.wxDC_StartDoc(self.this,arg0)
535 return val
536 def StartPage(self):
537 val = gdic.wxDC_StartPage(self.this)
538 return val
539 def DrawBitmap(self,arg0,arg1,arg2,*args):
540 val = apply(gdic.wxDC_DrawBitmap,(self.this,arg0.this,arg1,arg2,)+args)
541 return val
542 def __repr__(self):
543 return "<C wxDC instance>"
544class wxDC(wxDCPtr):
545 def __init__(self,this):
546 self.this = this
547
548
549
550
551class wxMemoryDCPtr(wxDCPtr):
552 def __init__(self,this):
553 self.this = this
554 self.thisown = 0
555 def SelectObject(self,arg0):
556 val = gdic.wxMemoryDC_SelectObject(self.this,arg0.this)
557 return val
558 def __repr__(self):
559 return "<C wxMemoryDC instance>"
560class wxMemoryDC(wxMemoryDCPtr):
561 def __init__(self) :
562 self.this = gdic.new_wxMemoryDC()
563 self.thisown = 1
564
565
566
567
568class wxScreenDCPtr(wxDCPtr):
569 def __init__(self,this):
570 self.this = this
571 self.thisown = 0
572 def StartDrawingOnTop(self,arg0):
573 val = gdic.wxScreenDC_StartDrawingOnTop(self.this,arg0.this)
574 return val
575 def StartDrawingOnTopRect(self,*args):
576 argl = map(None,args)
577 try: argl[0] = argl[0].this
578 except: pass
579 args = tuple(argl)
580 val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self.this,)+args)
581 return val
582 def EndDrawingOnTop(self):
583 val = gdic.wxScreenDC_EndDrawingOnTop(self.this)
584 return val
585 def __repr__(self):
586 return "<C wxScreenDC instance>"
587class wxScreenDC(wxScreenDCPtr):
588 def __init__(self) :
589 self.this = gdic.new_wxScreenDC()
590 self.thisown = 1
591
592
593
594
595class wxClientDCPtr(wxDCPtr):
596 def __init__(self,this):
597 self.this = this
598 self.thisown = 0
599 def __repr__(self):
600 return "<C wxClientDC instance>"
601class wxClientDC(wxClientDCPtr):
602 def __init__(self,arg0) :
603 self.this = gdic.new_wxClientDC(arg0.this)
604 self.thisown = 1
605
606
607
608
609class wxPaintDCPtr(wxDCPtr):
610 def __init__(self,this):
611 self.this = this
612 self.thisown = 0
613 def __repr__(self):
614 return "<C wxPaintDC instance>"
615class wxPaintDC(wxPaintDCPtr):
616 def __init__(self,arg0) :
617 self.this = gdic.new_wxPaintDC(arg0.this)
618 self.thisown = 1
619
620
621
622
c95e68d8
RD
623class wxWindowDCPtr(wxDCPtr):
624 def __init__(self,this):
625 self.this = this
626 self.thisown = 0
627 def __repr__(self):
628 return "<C wxWindowDC instance>"
629class wxWindowDC(wxWindowDCPtr):
630 def __init__(self,arg0) :
631 self.this = gdic.new_wxWindowDC(arg0.this)
632 self.thisown = 1
633
634
635
636
70551f47
RD
637class wxPostScriptDCPtr(wxDCPtr):
638 def __init__(self,this):
639 self.this = this
640 self.thisown = 0
641 def __repr__(self):
642 return "<C wxPostScriptDC instance>"
643class wxPostScriptDC(wxPostScriptDCPtr):
644 def __init__(self,arg0,*args) :
645 argl = map(None,args)
646 try: argl[1] = argl[1].this
647 except: pass
648 args = tuple(argl)
649 self.this = apply(gdic.new_wxPostScriptDC,(arg0,)+args)
650 self.thisown = 1
651
652
653
654
105e45b9
RD
655class wxPalettePtr :
656 def __init__(self,this):
657 self.this = this
658 self.thisown = 0
659 def __del__(self):
660 if self.thisown == 1 :
661 gdic.delete_wxPalette(self.this)
662 def GetPixel(self,arg0,arg1,arg2):
663 val = gdic.wxPalette_GetPixel(self.this,arg0,arg1,arg2)
664 return val
665 def GetRGB(self,arg0,arg1,arg2,arg3):
666 val = gdic.wxPalette_GetRGB(self.this,arg0,arg1,arg2,arg3)
667 return val
668 def Ok(self):
669 val = gdic.wxPalette_Ok(self.this)
670 return val
671 def __repr__(self):
672 return "<C wxPalette instance>"
673class wxPalette(wxPalettePtr):
674 def __init__(self,arg0,arg1,arg2) :
675 self.this = gdic.new_wxPalette(arg0,arg1,arg2)
676 self.thisown = 1
677
678
679
680
21f8d7ea
RD
681class wxImageListPtr :
682 def __init__(self,this):
683 self.this = this
684 self.thisown = 0
685 def __del__(self):
686 if self.thisown == 1 :
687 gdic.delete_wxImageList(self.this)
688 def Add(self,arg0):
689 val = gdic.wxImageList_Add(self.this,arg0.this)
690 return val
691 def Replace(self,arg0,arg1):
692 val = gdic.wxImageList_Replace(self.this,arg0,arg1.this)
693 return val
694 def Draw(self,arg0,arg1,arg2,arg3,*args):
695 val = apply(gdic.wxImageList_Draw,(self.this,arg0,arg1.this,arg2,arg3,)+args)
696 return val
697 def GetImageCount(self):
698 val = gdic.wxImageList_GetImageCount(self.this)
699 return val
700 def Remove(self,arg0):
701 val = gdic.wxImageList_Remove(self.this,arg0)
702 return val
703 def RemoveAll(self):
704 val = gdic.wxImageList_RemoveAll(self.this)
705 return val
706 def __repr__(self):
707 return "<C wxImageList instance>"
708class wxImageList(wxImageListPtr):
709 def __init__(self,arg0,arg1,*args) :
710 self.this = apply(gdic.new_wxImageList,(arg0,arg1,)+args)
711 self.thisown = 1
712
713
714
715
70551f47
RD
716
717
718#-------------- FUNCTION WRAPPERS ------------------
719
720def wxEmptyBitmap(arg0,arg1,*args):
721 val = apply(gdic.wxEmptyBitmap,(arg0,arg1,)+args)
722 val = wxBitmapPtr(val)
723 val.thisown = 1
724 return val
725
726def wxNoRefBitmap(arg0,arg1):
727 val = gdic.wxNoRefBitmap(arg0,arg1)
728 val = wxBitmapPtr(val)
729 return val
730
731def wxMaskColour(arg0,arg1):
732 val = gdic.wxMaskColour(arg0.this,arg1.this)
733 val = wxMaskPtr(val)
734 val.thisown = 1
735 return val
736
737def wxStockCursor(arg0):
738 val = gdic.wxStockCursor(arg0)
739 val = wxCursorPtr(val)
740 val.thisown = 1
741 return val
742
743def wxNamedColour(arg0):
744 val = gdic.wxNamedColour(arg0)
745 val = wxColourPtr(val)
746 val.thisown = 1
747 return val
748
749def wxMemoryDCFromDC(arg0):
750 val = gdic.wxMemoryDCFromDC(arg0.this)
751 val = wxMemoryDCPtr(val)
752 val.thisown = 1
753 return val
754
755
756
757#-------------- VARIABLE WRAPPERS ------------------
758
759cvar = gdic.cvar
760wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
761wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
762wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
763wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
764wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
765wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
766wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
767wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
768wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
769wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
770wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
771wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
772wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
773wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
774wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
775wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
776wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
777wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
778wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
779wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
780wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
781wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
782wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
783wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
784wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
785wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
786wxRED = wxColourPtr(gdic.cvar.wxRED)
787wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
788wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
789wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
790wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
791wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
792wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
793wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
794wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
795wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
796wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
797wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
798wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
21f8d7ea 799wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
70551f47
RD
800wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
801wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
21f8d7ea
RD
802wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
803wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
804wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
805wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
806wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
807wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
808wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE