]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/gdi.py
Changed the import semantics from "from wxPython import *" to "from
[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 GetDashes(self,arg0):
248 val = gdic.wxPen_GetDashes(self.this,arg0)
249 return val
250 def GetStipple(self):
251 val = gdic.wxPen_GetStipple(self.this)
252 val = wxBitmapPtr(val)
253 return val
254 def GetJoin(self):
255 val = gdic.wxPen_GetJoin(self.this)
256 return val
257 def GetStyle(self):
258 val = gdic.wxPen_GetStyle(self.this)
259 return val
260 def GetWidth(self):
261 val = gdic.wxPen_GetWidth(self.this)
262 return val
263 def Ok(self):
264 val = gdic.wxPen_Ok(self.this)
265 return val
266 def SetCap(self,arg0):
267 val = gdic.wxPen_SetCap(self.this,arg0)
268 return val
269 def SetColour(self,arg0):
270 val = gdic.wxPen_SetColour(self.this,arg0.this)
271 return val
272 def SetDashes(self,arg0,*args):
273 val = apply(gdic.wxPen_SetDashes,(self.this,arg0,)+args)
274 return val
275 def SetStipple(self,arg0):
276 val = gdic.wxPen_SetStipple(self.this,arg0.this)
277 return val
278 def SetJoin(self,arg0):
279 val = gdic.wxPen_SetJoin(self.this,arg0)
280 return val
281 def SetStyle(self,arg0):
282 val = gdic.wxPen_SetStyle(self.this,arg0)
283 return val
284 def SetWidth(self,arg0):
285 val = gdic.wxPen_SetWidth(self.this,arg0)
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 GetBackground(self):
426 val = gdic.wxDC_GetBackground(self.this)
427 val = wxBrushPtr(val)
428 return val
429 def GetBrush(self):
430 val = gdic.wxDC_GetBrush(self.this)
431 val = wxBrushPtr(val)
432 return val
433 def GetCharHeight(self):
434 val = gdic.wxDC_GetCharHeight(self.this)
435 return val
436 def GetCharWidth(self):
437 val = gdic.wxDC_GetCharWidth(self.this)
438 return val
439 def GetClippingBox(self):
440 val = gdic.wxDC_GetClippingBox(self.this)
441 return val
442 def GetFont(self):
443 val = gdic.wxDC_GetFont(self.this)
444 val = wxFontPtr(val)
445 return val
446 def GetLogicalFunction(self):
447 val = gdic.wxDC_GetLogicalFunction(self.this)
448 return val
449 def GetMapMode(self):
450 val = gdic.wxDC_GetMapMode(self.this)
451 return val
452 def GetOptimization(self):
453 val = gdic.wxDC_GetOptimization(self.this)
454 return val
455 def GetPen(self):
456 val = gdic.wxDC_GetPen(self.this)
457 val = wxPenPtr(val)
458 return val
459 def GetPixel(self,arg0,arg1):
460 val = gdic.wxDC_GetPixel(self.this,arg0,arg1)
461 val = wxColourPtr(val)
462 val.thisown = 1
463 return val
464 def GetSize(self):
465 val = gdic.wxDC_GetSize(self.this)
466 return val
467 def GetTextBackground(self):
468 val = gdic.wxDC_GetTextBackground(self.this)
469 val = wxColourPtr(val)
470 return val
471 def GetTextExtent(self,arg0):
472 val = gdic.wxDC_GetTextExtent(self.this,arg0)
473 return val
474 def GetTextForeground(self):
475 val = gdic.wxDC_GetTextForeground(self.this)
476 val = wxColourPtr(val)
477 return val
478 def LogicalToDeviceX(self,arg0):
479 val = gdic.wxDC_LogicalToDeviceX(self.this,arg0)
480 return val
481 def LogicalToDeviceXRel(self,arg0):
482 val = gdic.wxDC_LogicalToDeviceXRel(self.this,arg0)
483 return val
484 def LogicalToDeviceY(self,arg0):
485 val = gdic.wxDC_LogicalToDeviceY(self.this,arg0)
486 return val
487 def LogicalToDeviceYRel(self,arg0):
488 val = gdic.wxDC_LogicalToDeviceYRel(self.this,arg0)
489 return val
490 def MaxX(self):
491 val = gdic.wxDC_MaxX(self.this)
492 return val
493 def MaxY(self):
494 val = gdic.wxDC_MaxY(self.this)
495 return val
496 def MinX(self):
497 val = gdic.wxDC_MinX(self.this)
498 return val
499 def MinY(self):
500 val = gdic.wxDC_MinY(self.this)
501 return val
502 def Ok(self):
503 val = gdic.wxDC_Ok(self.this)
504 return val
505 def SetDeviceOrigin(self,arg0,arg1):
506 val = gdic.wxDC_SetDeviceOrigin(self.this,arg0,arg1)
507 return val
508 def SetBackground(self,arg0):
509 val = gdic.wxDC_SetBackground(self.this,arg0.this)
510 return val
511 def SetBackgroundMode(self,arg0):
512 val = gdic.wxDC_SetBackgroundMode(self.this,arg0)
513 return val
514 def SetClippingRegion(self,arg0,arg1,arg2,arg3):
515 val = gdic.wxDC_SetClippingRegion(self.this,arg0,arg1,arg2,arg3)
516 return val
517 def SetPalette(self,arg0):
518 val = gdic.wxDC_SetPalette(self.this,arg0.this)
519 return val
520 def SetBrush(self,arg0):
521 val = gdic.wxDC_SetBrush(self.this,arg0.this)
522 return val
523 def SetFont(self,arg0):
524 val = gdic.wxDC_SetFont(self.this,arg0.this)
525 return val
526 def SetLogicalFunction(self,arg0):
527 val = gdic.wxDC_SetLogicalFunction(self.this,arg0)
528 return val
529 def SetMapMode(self,arg0):
530 val = gdic.wxDC_SetMapMode(self.this,arg0)
531 return val
532 def SetOptimization(self,arg0):
533 val = gdic.wxDC_SetOptimization(self.this,arg0)
534 return val
535 def SetPen(self,arg0):
536 val = gdic.wxDC_SetPen(self.this,arg0.this)
537 return val
538 def SetTextBackground(self,arg0):
539 val = gdic.wxDC_SetTextBackground(self.this,arg0.this)
540 return val
541 def SetTextForeground(self,arg0):
542 val = gdic.wxDC_SetTextForeground(self.this,arg0.this)
543 return val
544 def SetUserScale(self,arg0,arg1):
545 val = gdic.wxDC_SetUserScale(self.this,arg0,arg1)
546 return val
547 def StartDoc(self,arg0):
548 val = gdic.wxDC_StartDoc(self.this,arg0)
549 return val
550 def StartPage(self):
551 val = gdic.wxDC_StartPage(self.this)
552 return val
553 def DrawBitmap(self,arg0,arg1,arg2,*args):
554 val = apply(gdic.wxDC_DrawBitmap,(self.this,arg0.this,arg1,arg2,)+args)
555 return val
556 def __repr__(self):
557 return "<C wxDC instance>"
558 class wxDC(wxDCPtr):
559 def __init__(self,this):
560 self.this = this
561
562
563
564
565 class wxMemoryDCPtr(wxDCPtr):
566 def __init__(self,this):
567 self.this = this
568 self.thisown = 0
569 def SelectObject(self,arg0):
570 val = gdic.wxMemoryDC_SelectObject(self.this,arg0.this)
571 return val
572 def __repr__(self):
573 return "<C wxMemoryDC instance>"
574 class wxMemoryDC(wxMemoryDCPtr):
575 def __init__(self) :
576 self.this = gdic.new_wxMemoryDC()
577 self.thisown = 1
578
579
580
581
582 class wxScreenDCPtr(wxDCPtr):
583 def __init__(self,this):
584 self.this = this
585 self.thisown = 0
586 def StartDrawingOnTop(self,arg0):
587 val = gdic.wxScreenDC_StartDrawingOnTop(self.this,arg0.this)
588 return val
589 def StartDrawingOnTopRect(self,*args):
590 argl = map(None,args)
591 try: argl[0] = argl[0].this
592 except: pass
593 args = tuple(argl)
594 val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self.this,)+args)
595 return val
596 def EndDrawingOnTop(self):
597 val = gdic.wxScreenDC_EndDrawingOnTop(self.this)
598 return val
599 def __repr__(self):
600 return "<C wxScreenDC instance>"
601 class wxScreenDC(wxScreenDCPtr):
602 def __init__(self) :
603 self.this = gdic.new_wxScreenDC()
604 self.thisown = 1
605
606
607
608
609 class wxClientDCPtr(wxDCPtr):
610 def __init__(self,this):
611 self.this = this
612 self.thisown = 0
613 def __repr__(self):
614 return "<C wxClientDC instance>"
615 class wxClientDC(wxClientDCPtr):
616 def __init__(self,arg0) :
617 self.this = gdic.new_wxClientDC(arg0.this)
618 self.thisown = 1
619
620
621
622
623 class wxPaintDCPtr(wxDCPtr):
624 def __init__(self,this):
625 self.this = this
626 self.thisown = 0
627 def __repr__(self):
628 return "<C wxPaintDC instance>"
629 class wxPaintDC(wxPaintDCPtr):
630 def __init__(self,arg0) :
631 self.this = gdic.new_wxPaintDC(arg0.this)
632 self.thisown = 1
633
634
635
636
637 class wxWindowDCPtr(wxDCPtr):
638 def __init__(self,this):
639 self.this = this
640 self.thisown = 0
641 def __repr__(self):
642 return "<C wxWindowDC instance>"
643 class wxWindowDC(wxWindowDCPtr):
644 def __init__(self,arg0) :
645 self.this = gdic.new_wxWindowDC(arg0.this)
646 self.thisown = 1
647
648
649
650
651 class wxPrinterDCPtr(wxDCPtr):
652 def __init__(self,this):
653 self.this = this
654 self.thisown = 0
655 def __repr__(self):
656 return "<C wxPrinterDC instance>"
657 class wxPrinterDC(wxPrinterDCPtr):
658 def __init__(self,arg0,arg1,arg2,*args) :
659 self.this = apply(gdic.new_wxPrinterDC,(arg0,arg1,arg2,)+args)
660 self.thisown = 1
661
662
663
664
665 class wxMetaFileDCPtr(wxDCPtr):
666 def __init__(self,this):
667 self.this = this
668 self.thisown = 0
669 def Close(self):
670 val = gdic.wxMetaFileDC_Close(self.this)
671 return val
672 def __repr__(self):
673 return "<C wxMetaFileDC instance>"
674 class wxMetaFileDC(wxMetaFileDCPtr):
675 def __init__(self,*args) :
676 self.this = apply(gdic.new_wxMetaFileDC,()+args)
677 self.thisown = 1
678
679
680
681
682 class wxPalettePtr :
683 def __init__(self,this):
684 self.this = this
685 self.thisown = 0
686 def __del__(self):
687 if self.thisown == 1 :
688 gdic.delete_wxPalette(self.this)
689 def GetPixel(self,arg0,arg1,arg2):
690 val = gdic.wxPalette_GetPixel(self.this,arg0,arg1,arg2)
691 return val
692 def GetRGB(self,arg0,arg1,arg2,arg3):
693 val = gdic.wxPalette_GetRGB(self.this,arg0,arg1,arg2,arg3)
694 return val
695 def Ok(self):
696 val = gdic.wxPalette_Ok(self.this)
697 return val
698 def __repr__(self):
699 return "<C wxPalette instance>"
700 class wxPalette(wxPalettePtr):
701 def __init__(self,arg0,arg1,arg2) :
702 self.this = gdic.new_wxPalette(arg0,arg1,arg2)
703 self.thisown = 1
704
705
706
707
708
709
710 #-------------- FUNCTION WRAPPERS ------------------
711
712 def wxEmptyBitmap(arg0,arg1,*args):
713 val = apply(gdic.wxEmptyBitmap,(arg0,arg1,)+args)
714 val = wxBitmapPtr(val)
715 val.thisown = 1
716 return val
717
718 def wxNoRefBitmap(arg0,arg1):
719 val = gdic.wxNoRefBitmap(arg0,arg1)
720 val = wxBitmapPtr(val)
721 return val
722
723 def wxMaskColour(arg0,arg1):
724 val = gdic.wxMaskColour(arg0.this,arg1.this)
725 val = wxMaskPtr(val)
726 val.thisown = 1
727 return val
728
729 def wxStockCursor(arg0):
730 val = gdic.wxStockCursor(arg0)
731 val = wxCursorPtr(val)
732 val.thisown = 1
733 return val
734
735 def wxNamedColour(arg0):
736 val = gdic.wxNamedColour(arg0)
737 val = wxColourPtr(val)
738 val.thisown = 1
739 return val
740
741 def wxMemoryDCFromDC(arg0):
742 val = gdic.wxMemoryDCFromDC(arg0.this)
743 val = wxMemoryDCPtr(val)
744 val.thisown = 1
745 return val
746
747
748
749 #-------------- VARIABLE WRAPPERS ------------------
750
751 cvar = gdic.cvar
752 wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
753 wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
754 wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
755 wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
756 wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
757 wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
758 wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
759 wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
760 wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
761 wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
762 wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
763 wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
764 wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
765 wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
766 wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
767 wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
768 wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
769 wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
770 wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
771 wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
772 wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
773 wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
774 wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
775 wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
776 wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
777 wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
778 wxRED = wxColourPtr(gdic.cvar.wxRED)
779 wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
780 wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
781 wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
782 wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
783 wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
784 wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
785 wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
786 wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
787 wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
788 wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
789 wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
790 wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
791 wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
792 wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)