]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/gdi.py
Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
[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 DrawEllipse(self,arg0,arg1,arg2,arg3):
372 val = gdic.wxDC_DrawEllipse(self.this,arg0,arg1,arg2,arg3)
373 return val
374 def DrawEllipticArc(self,arg0,arg1,arg2,arg3,arg4,arg5):
375 val = gdic.wxDC_DrawEllipticArc(self.this,arg0,arg1,arg2,arg3,arg4,arg5)
376 return val
377 def DrawIcon(self,arg0,arg1,arg2):
378 val = gdic.wxDC_DrawIcon(self.this,arg0.this,arg1,arg2)
379 return val
380 def DrawLine(self,arg0,arg1,arg2,arg3):
381 val = gdic.wxDC_DrawLine(self.this,arg0,arg1,arg2,arg3)
382 return val
383 def DrawLines(self,arg0,*args):
384 argl = map(None,args)
385 try: argl[0] = argl[0].this
386 except: pass
387 args = tuple(argl)
388 val = apply(gdic.wxDC_DrawLines,(self.this,arg0,)+args)
389 return val
390 def DrawPolygon(self,arg0,*args):
391 argl = map(None,args)
392 try: argl[0] = argl[0].this
393 except: pass
394 args = tuple(argl)
395 val = apply(gdic.wxDC_DrawPolygon,(self.this,arg0,)+args)
396 return val
397 def DrawPoint(self,arg0,arg1):
398 val = gdic.wxDC_DrawPoint(self.this,arg0,arg1)
399 return val
400 def DrawRectangle(self,arg0,arg1,arg2,arg3):
401 val = gdic.wxDC_DrawRectangle(self.this,arg0,arg1,arg2,arg3)
402 return val
403 def DrawRoundedRectangle(self,arg0,arg1,arg2,arg3,*args):
404 val = apply(gdic.wxDC_DrawRoundedRectangle,(self.this,arg0,arg1,arg2,arg3,)+args)
405 return val
406 def DrawSpline(self,arg0,*args):
407 argl = map(None,args)
408 try: argl[0] = argl[0].this
409 except: pass
410 args = tuple(argl)
411 val = apply(gdic.wxDC_DrawSpline,(self.this,arg0,)+args)
412 return val
413 def DrawText(self,arg0,arg1,arg2):
414 val = gdic.wxDC_DrawText(self.this,arg0,arg1,arg2)
415 return val
416 def EndDoc(self):
417 val = gdic.wxDC_EndDoc(self.this)
418 return val
419 def EndDrawing(self):
420 val = gdic.wxDC_EndDrawing(self.this)
421 return val
422 def EndPage(self):
423 val = gdic.wxDC_EndPage(self.this)
424 return val
425 def FloodFill(self,arg0,arg1,arg2,*args):
426 val = apply(gdic.wxDC_FloodFill,(self.this,arg0,arg1,arg2.this,)+args)
427 return val
428 def GetBackground(self):
429 val = gdic.wxDC_GetBackground(self.this)
430 val = wxBrushPtr(val)
431 return val
432 def GetBrush(self):
433 val = gdic.wxDC_GetBrush(self.this)
434 val = wxBrushPtr(val)
435 return val
436 def GetCharHeight(self):
437 val = gdic.wxDC_GetCharHeight(self.this)
438 return val
439 def GetCharWidth(self):
440 val = gdic.wxDC_GetCharWidth(self.this)
441 return val
442 def GetClippingBox(self):
443 val = gdic.wxDC_GetClippingBox(self.this)
444 return val
445 def GetFont(self):
446 val = gdic.wxDC_GetFont(self.this)
447 val = wxFontPtr(val)
448 return val
449 def GetLogicalFunction(self):
450 val = gdic.wxDC_GetLogicalFunction(self.this)
451 return val
452 def GetMapMode(self):
453 val = gdic.wxDC_GetMapMode(self.this)
454 return val
455 def GetOptimization(self):
456 val = gdic.wxDC_GetOptimization(self.this)
457 return val
458 def GetPen(self):
459 val = gdic.wxDC_GetPen(self.this)
460 val = wxPenPtr(val)
461 return val
462 def GetPixel(self,arg0,arg1):
463 val = gdic.wxDC_GetPixel(self.this,arg0,arg1)
464 val = wxColourPtr(val)
465 val.thisown = 1
466 return val
467 def GetSize(self):
468 val = gdic.wxDC_GetSize(self.this)
469 return val
470 def GetTextBackground(self):
471 val = gdic.wxDC_GetTextBackground(self.this)
472 val = wxColourPtr(val)
473 return val
474 def GetTextExtent(self,arg0):
475 val = gdic.wxDC_GetTextExtent(self.this,arg0)
476 return val
477 def GetFullTextExtent(self,arg0,*args):
478 argl = map(None,args)
479 try: argl[0] = argl[0].this
480 except: pass
481 args = tuple(argl)
482 val = apply(gdic.wxDC_GetFullTextExtent,(self.this,arg0,)+args)
483 return val
484 def GetTextForeground(self):
485 val = gdic.wxDC_GetTextForeground(self.this)
486 val = wxColourPtr(val)
487 return val
488 def LogicalToDeviceX(self,arg0):
489 val = gdic.wxDC_LogicalToDeviceX(self.this,arg0)
490 return val
491 def LogicalToDeviceXRel(self,arg0):
492 val = gdic.wxDC_LogicalToDeviceXRel(self.this,arg0)
493 return val
494 def LogicalToDeviceY(self,arg0):
495 val = gdic.wxDC_LogicalToDeviceY(self.this,arg0)
496 return val
497 def LogicalToDeviceYRel(self,arg0):
498 val = gdic.wxDC_LogicalToDeviceYRel(self.this,arg0)
499 return val
500 def MaxX(self):
501 val = gdic.wxDC_MaxX(self.this)
502 return val
503 def MaxY(self):
504 val = gdic.wxDC_MaxY(self.this)
505 return val
506 def MinX(self):
507 val = gdic.wxDC_MinX(self.this)
508 return val
509 def MinY(self):
510 val = gdic.wxDC_MinY(self.this)
511 return val
512 def Ok(self):
513 val = gdic.wxDC_Ok(self.this)
514 return val
515 def SetDeviceOrigin(self,arg0,arg1):
516 val = gdic.wxDC_SetDeviceOrigin(self.this,arg0,arg1)
517 return val
518 def SetBackground(self,arg0):
519 val = gdic.wxDC_SetBackground(self.this,arg0.this)
520 return val
521 def SetBackgroundMode(self,arg0):
522 val = gdic.wxDC_SetBackgroundMode(self.this,arg0)
523 return val
524 def SetClippingRegion(self,arg0,arg1,arg2,arg3):
525 val = gdic.wxDC_SetClippingRegion(self.this,arg0,arg1,arg2,arg3)
526 return val
527 def SetPalette(self,arg0):
528 val = gdic.wxDC_SetPalette(self.this,arg0.this)
529 return val
530 def SetBrush(self,arg0):
531 val = gdic.wxDC_SetBrush(self.this,arg0.this)
532 return val
533 def SetFont(self,arg0):
534 val = gdic.wxDC_SetFont(self.this,arg0.this)
535 return val
536 def SetLogicalFunction(self,arg0):
537 val = gdic.wxDC_SetLogicalFunction(self.this,arg0)
538 return val
539 def SetMapMode(self,arg0):
540 val = gdic.wxDC_SetMapMode(self.this,arg0)
541 return val
542 def SetOptimization(self,arg0):
543 val = gdic.wxDC_SetOptimization(self.this,arg0)
544 return val
545 def SetPen(self,arg0):
546 val = gdic.wxDC_SetPen(self.this,arg0.this)
547 return val
548 def SetTextBackground(self,arg0):
549 val = gdic.wxDC_SetTextBackground(self.this,arg0.this)
550 return val
551 def SetTextForeground(self,arg0):
552 val = gdic.wxDC_SetTextForeground(self.this,arg0.this)
553 return val
554 def SetUserScale(self,arg0,arg1):
555 val = gdic.wxDC_SetUserScale(self.this,arg0,arg1)
556 return val
557 def StartDoc(self,arg0):
558 val = gdic.wxDC_StartDoc(self.this,arg0)
559 return val
560 def StartPage(self):
561 val = gdic.wxDC_StartPage(self.this)
562 return val
563 def DrawBitmap(self,arg0,arg1,arg2,*args):
564 val = apply(gdic.wxDC_DrawBitmap,(self.this,arg0.this,arg1,arg2,)+args)
565 return val
566 def __repr__(self):
567 return "<C wxDC instance>"
568 class wxDC(wxDCPtr):
569 def __init__(self,this):
570 self.this = this
571
572
573
574
575 class wxMemoryDCPtr(wxDCPtr):
576 def __init__(self,this):
577 self.this = this
578 self.thisown = 0
579 def SelectObject(self,arg0):
580 val = gdic.wxMemoryDC_SelectObject(self.this,arg0.this)
581 return val
582 def __repr__(self):
583 return "<C wxMemoryDC instance>"
584 class wxMemoryDC(wxMemoryDCPtr):
585 def __init__(self) :
586 self.this = gdic.new_wxMemoryDC()
587 self.thisown = 1
588
589
590
591
592 class wxScreenDCPtr(wxDCPtr):
593 def __init__(self,this):
594 self.this = this
595 self.thisown = 0
596 def StartDrawingOnTop(self,arg0):
597 val = gdic.wxScreenDC_StartDrawingOnTop(self.this,arg0.this)
598 return val
599 def StartDrawingOnTopRect(self,*args):
600 argl = map(None,args)
601 try: argl[0] = argl[0].this
602 except: pass
603 args = tuple(argl)
604 val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self.this,)+args)
605 return val
606 def EndDrawingOnTop(self):
607 val = gdic.wxScreenDC_EndDrawingOnTop(self.this)
608 return val
609 def __repr__(self):
610 return "<C wxScreenDC instance>"
611 class wxScreenDC(wxScreenDCPtr):
612 def __init__(self) :
613 self.this = gdic.new_wxScreenDC()
614 self.thisown = 1
615
616
617
618
619 class wxClientDCPtr(wxDCPtr):
620 def __init__(self,this):
621 self.this = this
622 self.thisown = 0
623 def __repr__(self):
624 return "<C wxClientDC instance>"
625 class wxClientDC(wxClientDCPtr):
626 def __init__(self,arg0) :
627 self.this = gdic.new_wxClientDC(arg0.this)
628 self.thisown = 1
629
630
631
632
633 class wxPaintDCPtr(wxDCPtr):
634 def __init__(self,this):
635 self.this = this
636 self.thisown = 0
637 def __repr__(self):
638 return "<C wxPaintDC instance>"
639 class wxPaintDC(wxPaintDCPtr):
640 def __init__(self,arg0) :
641 self.this = gdic.new_wxPaintDC(arg0.this)
642 self.thisown = 1
643
644
645
646
647 class wxWindowDCPtr(wxDCPtr):
648 def __init__(self,this):
649 self.this = this
650 self.thisown = 0
651 def __repr__(self):
652 return "<C wxWindowDC instance>"
653 class wxWindowDC(wxWindowDCPtr):
654 def __init__(self,arg0) :
655 self.this = gdic.new_wxWindowDC(arg0.this)
656 self.thisown = 1
657
658
659
660
661 class wxPrinterDCPtr(wxDCPtr):
662 def __init__(self,this):
663 self.this = this
664 self.thisown = 0
665 def __repr__(self):
666 return "<C wxPrinterDC instance>"
667 class wxPrinterDC(wxPrinterDCPtr):
668 def __init__(self,arg0,arg1,arg2,*args) :
669 self.this = apply(gdic.new_wxPrinterDC,(arg0,arg1,arg2,)+args)
670 self.thisown = 1
671
672
673
674
675 class wxMetaFileDCPtr(wxDCPtr):
676 def __init__(self,this):
677 self.this = this
678 self.thisown = 0
679 def Close(self):
680 val = gdic.wxMetaFileDC_Close(self.this)
681 return val
682 def __repr__(self):
683 return "<C wxMetaFileDC instance>"
684 class wxMetaFileDC(wxMetaFileDCPtr):
685 def __init__(self,*args) :
686 self.this = apply(gdic.new_wxMetaFileDC,()+args)
687 self.thisown = 1
688
689
690
691
692 class wxPalettePtr :
693 def __init__(self,this):
694 self.this = this
695 self.thisown = 0
696 def __del__(self):
697 if self.thisown == 1 :
698 gdic.delete_wxPalette(self.this)
699 def GetPixel(self,arg0,arg1,arg2):
700 val = gdic.wxPalette_GetPixel(self.this,arg0,arg1,arg2)
701 return val
702 def GetRGB(self,arg0,arg1,arg2,arg3):
703 val = gdic.wxPalette_GetRGB(self.this,arg0,arg1,arg2,arg3)
704 return val
705 def Ok(self):
706 val = gdic.wxPalette_Ok(self.this)
707 return val
708 def __repr__(self):
709 return "<C wxPalette instance>"
710 class wxPalette(wxPalettePtr):
711 def __init__(self,arg0,arg1,arg2) :
712 self.this = gdic.new_wxPalette(arg0,arg1,arg2)
713 self.thisown = 1
714
715
716
717
718 class wxImageListPtr :
719 def __init__(self,this):
720 self.this = this
721 self.thisown = 0
722 def __del__(self):
723 if self.thisown == 1 :
724 gdic.delete_wxImageList(self.this)
725 def Add(self,arg0,*args):
726 argl = map(None,args)
727 try: argl[0] = argl[0].this
728 except: pass
729 args = tuple(argl)
730 val = apply(gdic.wxImageList_Add,(self.this,arg0.this,)+args)
731 return val
732 def AddWithColourMask(self,arg0,arg1):
733 val = gdic.wxImageList_AddWithColourMask(self.this,arg0.this,arg1.this)
734 return val
735 def AddIcon(self,arg0):
736 val = gdic.wxImageList_AddIcon(self.this,arg0.this)
737 return val
738 def Draw(self,arg0,arg1,arg2,arg3,*args):
739 val = apply(gdic.wxImageList_Draw,(self.this,arg0,arg1.this,arg2,arg3,)+args)
740 return val
741 def GetImageCount(self):
742 val = gdic.wxImageList_GetImageCount(self.this)
743 return val
744 def Remove(self,arg0):
745 val = gdic.wxImageList_Remove(self.this,arg0)
746 return val
747 def RemoveAll(self):
748 val = gdic.wxImageList_RemoveAll(self.this)
749 return val
750 def Replace(self,arg0,arg1,*args):
751 argl = map(None,args)
752 try: argl[0] = argl[0].this
753 except: pass
754 args = tuple(argl)
755 val = apply(gdic.wxImageList_Replace,(self.this,arg0,arg1.this,)+args)
756 return val
757 def ReplaceIcon(self,arg0,arg1):
758 val = gdic.wxImageList_ReplaceIcon(self.this,arg0,arg1.this)
759 return val
760 def __repr__(self):
761 return "<C wxImageList instance>"
762 class wxImageList(wxImageListPtr):
763 def __init__(self,arg0,arg1,*args) :
764 self.this = apply(gdic.new_wxImageList,(arg0,arg1,)+args)
765 self.thisown = 1
766
767
768
769
770
771
772 #-------------- FUNCTION WRAPPERS ------------------
773
774 def wxEmptyBitmap(arg0,arg1,*args):
775 val = apply(gdic.wxEmptyBitmap,(arg0,arg1,)+args)
776 val = wxBitmapPtr(val)
777 val.thisown = 1
778 return val
779
780 def wxNoRefBitmap(arg0,arg1):
781 val = gdic.wxNoRefBitmap(arg0,arg1)
782 val = wxBitmapPtr(val)
783 return val
784
785 def wxMaskColour(arg0,arg1):
786 val = gdic.wxMaskColour(arg0.this,arg1.this)
787 val = wxMaskPtr(val)
788 val.thisown = 1
789 return val
790
791 def wxStockCursor(arg0):
792 val = gdic.wxStockCursor(arg0)
793 val = wxCursorPtr(val)
794 val.thisown = 1
795 return val
796
797 def wxNamedColour(arg0):
798 val = gdic.wxNamedColour(arg0)
799 val = wxColourPtr(val)
800 val.thisown = 1
801 return val
802
803 def wxMemoryDCFromDC(arg0):
804 val = gdic.wxMemoryDCFromDC(arg0.this)
805 val = wxMemoryDCPtr(val)
806 val.thisown = 1
807 return val
808
809
810
811 #-------------- VARIABLE WRAPPERS ------------------
812
813 cvar = gdic.cvar
814 wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
815 wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
816 wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
817 wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
818 wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
819 wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
820 wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
821 wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
822 wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
823 wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
824 wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
825 wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
826 wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
827 wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
828 wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
829 wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
830 wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
831 wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
832 wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
833 wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
834 wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
835 wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
836 wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
837 wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
838 wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
839 wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
840 wxRED = wxColourPtr(gdic.cvar.wxRED)
841 wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
842 wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
843 wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
844 wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
845 wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
846 wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
847 wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
848 wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
849 wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
850 wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
851 wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
852 wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
853 wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
854 wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
855 wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
856 wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
857 wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
858 wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
859 wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
860 wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
861 wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
862 wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE