]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/gdi.py
some fixes and code regeneration
[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)
12 def GetPalette(self, *_args, **_kwargs):
13 val = apply(gdic.wxBitmap_GetPalette,(self,) + _args, _kwargs)
14 if val: val = wxPalettePtr(val)
15 return val
16 def GetMask(self, *_args, **_kwargs):
17 val = apply(gdic.wxBitmap_GetMask,(self,) + _args, _kwargs)
18 if val: val = wxMaskPtr(val)
19 return val
20 def LoadFile(self, *_args, **_kwargs):
21 val = apply(gdic.wxBitmap_LoadFile,(self,) + _args, _kwargs)
22 return val
23 def SaveFile(self, *_args, **_kwargs):
24 val = apply(gdic.wxBitmap_SaveFile,(self,) + _args, _kwargs)
25 return val
26 def SetMask(self, *_args, **_kwargs):
27 val = apply(gdic.wxBitmap_SetMask,(self,) + _args, _kwargs)
28 return val
29 def Ok(self, *_args, **_kwargs):
30 val = apply(gdic.wxBitmap_Ok,(self,) + _args, _kwargs)
31 return val
32 def GetWidth(self, *_args, **_kwargs):
33 val = apply(gdic.wxBitmap_GetWidth,(self,) + _args, _kwargs)
34 return val
35 def GetHeight(self, *_args, **_kwargs):
36 val = apply(gdic.wxBitmap_GetHeight,(self,) + _args, _kwargs)
37 return val
38 def GetDepth(self, *_args, **_kwargs):
39 val = apply(gdic.wxBitmap_GetDepth,(self,) + _args, _kwargs)
40 return val
41 def SetWidth(self, *_args, **_kwargs):
42 val = apply(gdic.wxBitmap_SetWidth,(self,) + _args, _kwargs)
43 return val
44 def SetHeight(self, *_args, **_kwargs):
45 val = apply(gdic.wxBitmap_SetHeight,(self,) + _args, _kwargs)
46 return val
47 def SetDepth(self, *_args, **_kwargs):
48 val = apply(gdic.wxBitmap_SetDepth,(self,) + _args, _kwargs)
49 return val
50 def __repr__(self):
51 return "<C wxBitmap instance at %s>" % (self.this,)
52 class wxBitmap(wxBitmapPtr):
53 def __init__(self,*_args,**_kwargs):
54 self.this = apply(gdic.new_wxBitmap,_args,_kwargs)
55 self.thisown = 1
56
57
58
59
60 class wxMaskPtr :
61 def __init__(self,this):
62 self.this = this
63 self.thisown = 0
64 def __repr__(self):
65 return "<C wxMask instance at %s>" % (self.this,)
66 class wxMask(wxMaskPtr):
67 def __init__(self,*_args,**_kwargs):
68 self.this = apply(gdic.new_wxMask,_args,_kwargs)
69 self.thisown = 1
70
71
72
73
74 class wxIconPtr :
75 def __init__(self,this):
76 self.this = this
77 self.thisown = 0
78 def __del__(self,gdic=gdic):
79 if self.thisown == 1 :
80 gdic.delete_wxIcon(self)
81 def LoadFile(self, *_args, **_kwargs):
82 val = apply(gdic.wxIcon_LoadFile,(self,) + _args, _kwargs)
83 return val
84 def Ok(self, *_args, **_kwargs):
85 val = apply(gdic.wxIcon_Ok,(self,) + _args, _kwargs)
86 return val
87 def GetWidth(self, *_args, **_kwargs):
88 val = apply(gdic.wxIcon_GetWidth,(self,) + _args, _kwargs)
89 return val
90 def GetHeight(self, *_args, **_kwargs):
91 val = apply(gdic.wxIcon_GetHeight,(self,) + _args, _kwargs)
92 return val
93 def GetDepth(self, *_args, **_kwargs):
94 val = apply(gdic.wxIcon_GetDepth,(self,) + _args, _kwargs)
95 return val
96 def SetWidth(self, *_args, **_kwargs):
97 val = apply(gdic.wxIcon_SetWidth,(self,) + _args, _kwargs)
98 return val
99 def SetHeight(self, *_args, **_kwargs):
100 val = apply(gdic.wxIcon_SetHeight,(self,) + _args, _kwargs)
101 return val
102 def SetDepth(self, *_args, **_kwargs):
103 val = apply(gdic.wxIcon_SetDepth,(self,) + _args, _kwargs)
104 return val
105 def __repr__(self):
106 return "<C wxIcon instance at %s>" % (self.this,)
107 class wxIcon(wxIconPtr):
108 def __init__(self,*_args,**_kwargs):
109 self.this = apply(gdic.new_wxIcon,_args,_kwargs)
110 self.thisown = 1
111
112
113
114
115 class wxCursorPtr :
116 def __init__(self,this):
117 self.this = this
118 self.thisown = 0
119 def __del__(self,gdic=gdic):
120 if self.thisown == 1 :
121 gdic.delete_wxCursor(self)
122 def Ok(self, *_args, **_kwargs):
123 val = apply(gdic.wxCursor_Ok,(self,) + _args, _kwargs)
124 return val
125 def __repr__(self):
126 return "<C wxCursor instance at %s>" % (self.this,)
127 class wxCursor(wxCursorPtr):
128 def __init__(self,this):
129 self.this = this
130
131
132
133
134 class wxFontPtr :
135 def __init__(self,this):
136 self.this = this
137 self.thisown = 0
138 def Ok(self, *_args, **_kwargs):
139 val = apply(gdic.wxFont_Ok,(self,) + _args, _kwargs)
140 return val
141 def GetFaceName(self, *_args, **_kwargs):
142 val = apply(gdic.wxFont_GetFaceName,(self,) + _args, _kwargs)
143 return val
144 def GetFamily(self, *_args, **_kwargs):
145 val = apply(gdic.wxFont_GetFamily,(self,) + _args, _kwargs)
146 return val
147 def GetPointSize(self, *_args, **_kwargs):
148 val = apply(gdic.wxFont_GetPointSize,(self,) + _args, _kwargs)
149 return val
150 def GetStyle(self, *_args, **_kwargs):
151 val = apply(gdic.wxFont_GetStyle,(self,) + _args, _kwargs)
152 return val
153 def GetUnderlined(self, *_args, **_kwargs):
154 val = apply(gdic.wxFont_GetUnderlined,(self,) + _args, _kwargs)
155 return val
156 def GetWeight(self, *_args, **_kwargs):
157 val = apply(gdic.wxFont_GetWeight,(self,) + _args, _kwargs)
158 return val
159 def GetEncoding(self, *_args, **_kwargs):
160 val = apply(gdic.wxFont_GetEncoding,(self,) + _args, _kwargs)
161 return val
162 def SetFaceName(self, *_args, **_kwargs):
163 val = apply(gdic.wxFont_SetFaceName,(self,) + _args, _kwargs)
164 return val
165 def SetFamily(self, *_args, **_kwargs):
166 val = apply(gdic.wxFont_SetFamily,(self,) + _args, _kwargs)
167 return val
168 def SetPointSize(self, *_args, **_kwargs):
169 val = apply(gdic.wxFont_SetPointSize,(self,) + _args, _kwargs)
170 return val
171 def SetStyle(self, *_args, **_kwargs):
172 val = apply(gdic.wxFont_SetStyle,(self,) + _args, _kwargs)
173 return val
174 def SetUnderlined(self, *_args, **_kwargs):
175 val = apply(gdic.wxFont_SetUnderlined,(self,) + _args, _kwargs)
176 return val
177 def SetWeight(self, *_args, **_kwargs):
178 val = apply(gdic.wxFont_SetWeight,(self,) + _args, _kwargs)
179 return val
180 def SetEncoding(self, *_args, **_kwargs):
181 val = apply(gdic.wxFont_SetEncoding,(self,) + _args, _kwargs)
182 return val
183 def GetFamilyString(self, *_args, **_kwargs):
184 val = apply(gdic.wxFont_GetFamilyString,(self,) + _args, _kwargs)
185 return val
186 def GetStyleString(self, *_args, **_kwargs):
187 val = apply(gdic.wxFont_GetStyleString,(self,) + _args, _kwargs)
188 return val
189 def GetWeightString(self, *_args, **_kwargs):
190 val = apply(gdic.wxFont_GetWeightString,(self,) + _args, _kwargs)
191 return val
192 def __repr__(self):
193 return "<C wxFont instance at %s>" % (self.this,)
194 class wxFont(wxFontPtr):
195 def __init__(self,*_args,**_kwargs):
196 self.this = apply(gdic.new_wxFont,_args,_kwargs)
197 self.thisown = 1
198
199
200
201
202 class wxColourPtr :
203 def __init__(self,this):
204 self.this = this
205 self.thisown = 0
206 def __del__(self,gdic=gdic):
207 if self.thisown == 1 :
208 gdic.delete_wxColour(self)
209 def Red(self, *_args, **_kwargs):
210 val = apply(gdic.wxColour_Red,(self,) + _args, _kwargs)
211 return val
212 def Green(self, *_args, **_kwargs):
213 val = apply(gdic.wxColour_Green,(self,) + _args, _kwargs)
214 return val
215 def Blue(self, *_args, **_kwargs):
216 val = apply(gdic.wxColour_Blue,(self,) + _args, _kwargs)
217 return val
218 def Ok(self, *_args, **_kwargs):
219 val = apply(gdic.wxColour_Ok,(self,) + _args, _kwargs)
220 return val
221 def Set(self, *_args, **_kwargs):
222 val = apply(gdic.wxColour_Set,(self,) + _args, _kwargs)
223 return val
224 def Get(self, *_args, **_kwargs):
225 val = apply(gdic.wxColour_Get,(self,) + _args, _kwargs)
226 return val
227 def __repr__(self):
228 return "<C wxColour instance at %s>" % (self.this,)
229 asTuple = Get
230 def __str__(self): return str(self.asTuple())
231 def __repr__(self): return str(self.asTuple())
232 class wxColour(wxColourPtr):
233 def __init__(self,*_args,**_kwargs):
234 self.this = apply(gdic.new_wxColour,_args,_kwargs)
235 self.thisown = 1
236
237
238
239
240 class wxPenPtr :
241 def __init__(self,this):
242 self.this = this
243 self.thisown = 0
244 def GetCap(self, *_args, **_kwargs):
245 val = apply(gdic.wxPen_GetCap,(self,) + _args, _kwargs)
246 return val
247 def GetColour(self, *_args, **_kwargs):
248 val = apply(gdic.wxPen_GetColour,(self,) + _args, _kwargs)
249 if val: val = wxColourPtr(val)
250 return val
251 def GetJoin(self, *_args, **_kwargs):
252 val = apply(gdic.wxPen_GetJoin,(self,) + _args, _kwargs)
253 return val
254 def GetStyle(self, *_args, **_kwargs):
255 val = apply(gdic.wxPen_GetStyle,(self,) + _args, _kwargs)
256 return val
257 def GetWidth(self, *_args, **_kwargs):
258 val = apply(gdic.wxPen_GetWidth,(self,) + _args, _kwargs)
259 return val
260 def Ok(self, *_args, **_kwargs):
261 val = apply(gdic.wxPen_Ok,(self,) + _args, _kwargs)
262 return val
263 def SetCap(self, *_args, **_kwargs):
264 val = apply(gdic.wxPen_SetCap,(self,) + _args, _kwargs)
265 return val
266 def SetColour(self, *_args, **_kwargs):
267 val = apply(gdic.wxPen_SetColour,(self,) + _args, _kwargs)
268 return val
269 def SetJoin(self, *_args, **_kwargs):
270 val = apply(gdic.wxPen_SetJoin,(self,) + _args, _kwargs)
271 return val
272 def SetStyle(self, *_args, **_kwargs):
273 val = apply(gdic.wxPen_SetStyle,(self,) + _args, _kwargs)
274 return val
275 def SetWidth(self, *_args, **_kwargs):
276 val = apply(gdic.wxPen_SetWidth,(self,) + _args, _kwargs)
277 return val
278 def GetDashes(self, *_args, **_kwargs):
279 val = apply(gdic.wxPen_GetDashes,(self,) + _args, _kwargs)
280 return val
281 def SetDashes(self, *_args, **_kwargs):
282 val = apply(gdic.wxPen_SetDashes,(self,) + _args, _kwargs)
283 return val
284 def __repr__(self):
285 return "<C wxPen instance at %s>" % (self.this,)
286 class wxPen(wxPenPtr):
287 def __init__(self,*_args,**_kwargs):
288 self.this = apply(gdic.new_wxPen,_args,_kwargs)
289 self.thisown = 1
290
291
292
293
294 class wxBrushPtr :
295 def __init__(self,this):
296 self.this = this
297 self.thisown = 0
298 def GetColour(self, *_args, **_kwargs):
299 val = apply(gdic.wxBrush_GetColour,(self,) + _args, _kwargs)
300 if val: val = wxColourPtr(val)
301 return val
302 def GetStipple(self, *_args, **_kwargs):
303 val = apply(gdic.wxBrush_GetStipple,(self,) + _args, _kwargs)
304 if val: val = wxBitmapPtr(val)
305 return val
306 def GetStyle(self, *_args, **_kwargs):
307 val = apply(gdic.wxBrush_GetStyle,(self,) + _args, _kwargs)
308 return val
309 def Ok(self, *_args, **_kwargs):
310 val = apply(gdic.wxBrush_Ok,(self,) + _args, _kwargs)
311 return val
312 def SetColour(self, *_args, **_kwargs):
313 val = apply(gdic.wxBrush_SetColour,(self,) + _args, _kwargs)
314 return val
315 def SetStipple(self, *_args, **_kwargs):
316 val = apply(gdic.wxBrush_SetStipple,(self,) + _args, _kwargs)
317 return val
318 def SetStyle(self, *_args, **_kwargs):
319 val = apply(gdic.wxBrush_SetStyle,(self,) + _args, _kwargs)
320 return val
321 def __repr__(self):
322 return "<C wxBrush instance at %s>" % (self.this,)
323 class wxBrush(wxBrushPtr):
324 def __init__(self,*_args,**_kwargs):
325 self.this = apply(gdic.new_wxBrush,_args,_kwargs)
326 self.thisown = 1
327
328
329
330
331 class wxDCPtr :
332 def __init__(self,this):
333 self.this = this
334 self.thisown = 0
335 def __del__(self,gdic=gdic):
336 if self.thisown == 1 :
337 gdic.delete_wxDC(self)
338 def BeginDrawing(self, *_args, **_kwargs):
339 val = apply(gdic.wxDC_BeginDrawing,(self,) + _args, _kwargs)
340 return val
341 def Blit(self, *_args, **_kwargs):
342 val = apply(gdic.wxDC_Blit,(self,) + _args, _kwargs)
343 return val
344 def Clear(self, *_args, **_kwargs):
345 val = apply(gdic.wxDC_Clear,(self,) + _args, _kwargs)
346 return val
347 def CrossHair(self, *_args, **_kwargs):
348 val = apply(gdic.wxDC_CrossHair,(self,) + _args, _kwargs)
349 return val
350 def DestroyClippingRegion(self, *_args, **_kwargs):
351 val = apply(gdic.wxDC_DestroyClippingRegion,(self,) + _args, _kwargs)
352 return val
353 def DeviceToLogicalX(self, *_args, **_kwargs):
354 val = apply(gdic.wxDC_DeviceToLogicalX,(self,) + _args, _kwargs)
355 return val
356 def DeviceToLogicalXRel(self, *_args, **_kwargs):
357 val = apply(gdic.wxDC_DeviceToLogicalXRel,(self,) + _args, _kwargs)
358 return val
359 def DeviceToLogicalY(self, *_args, **_kwargs):
360 val = apply(gdic.wxDC_DeviceToLogicalY,(self,) + _args, _kwargs)
361 return val
362 def DeviceToLogicalYRel(self, *_args, **_kwargs):
363 val = apply(gdic.wxDC_DeviceToLogicalYRel,(self,) + _args, _kwargs)
364 return val
365 def DrawArc(self, *_args, **_kwargs):
366 val = apply(gdic.wxDC_DrawArc,(self,) + _args, _kwargs)
367 return val
368 def DrawCircle(self, *_args, **_kwargs):
369 val = apply(gdic.wxDC_DrawCircle,(self,) + _args, _kwargs)
370 return val
371 def DrawEllipse(self, *_args, **_kwargs):
372 val = apply(gdic.wxDC_DrawEllipse,(self,) + _args, _kwargs)
373 return val
374 def DrawEllipticArc(self, *_args, **_kwargs):
375 val = apply(gdic.wxDC_DrawEllipticArc,(self,) + _args, _kwargs)
376 return val
377 def DrawIcon(self, *_args, **_kwargs):
378 val = apply(gdic.wxDC_DrawIcon,(self,) + _args, _kwargs)
379 return val
380 def DrawLine(self, *_args, **_kwargs):
381 val = apply(gdic.wxDC_DrawLine,(self,) + _args, _kwargs)
382 return val
383 def DrawLines(self, *_args, **_kwargs):
384 val = apply(gdic.wxDC_DrawLines,(self,) + _args, _kwargs)
385 return val
386 def DrawPolygon(self, *_args, **_kwargs):
387 val = apply(gdic.wxDC_DrawPolygon,(self,) + _args, _kwargs)
388 return val
389 def DrawPoint(self, *_args, **_kwargs):
390 val = apply(gdic.wxDC_DrawPoint,(self,) + _args, _kwargs)
391 return val
392 def DrawRectangle(self, *_args, **_kwargs):
393 val = apply(gdic.wxDC_DrawRectangle,(self,) + _args, _kwargs)
394 return val
395 def DrawRotatedText(self, *_args, **_kwargs):
396 val = apply(gdic.wxDC_DrawRotatedText,(self,) + _args, _kwargs)
397 return val
398 def DrawRoundedRectangle(self, *_args, **_kwargs):
399 val = apply(gdic.wxDC_DrawRoundedRectangle,(self,) + _args, _kwargs)
400 return val
401 def DrawSpline(self, *_args, **_kwargs):
402 val = apply(gdic.wxDC_DrawSpline,(self,) + _args, _kwargs)
403 return val
404 def DrawText(self, *_args, **_kwargs):
405 val = apply(gdic.wxDC_DrawText,(self,) + _args, _kwargs)
406 return val
407 def EndDoc(self, *_args, **_kwargs):
408 val = apply(gdic.wxDC_EndDoc,(self,) + _args, _kwargs)
409 return val
410 def EndDrawing(self, *_args, **_kwargs):
411 val = apply(gdic.wxDC_EndDrawing,(self,) + _args, _kwargs)
412 return val
413 def EndPage(self, *_args, **_kwargs):
414 val = apply(gdic.wxDC_EndPage,(self,) + _args, _kwargs)
415 return val
416 def FloodFill(self, *_args, **_kwargs):
417 val = apply(gdic.wxDC_FloodFill,(self,) + _args, _kwargs)
418 return val
419 def GetBackground(self, *_args, **_kwargs):
420 val = apply(gdic.wxDC_GetBackground,(self,) + _args, _kwargs)
421 if val: val = wxBrushPtr(val)
422 return val
423 def GetBrush(self, *_args, **_kwargs):
424 val = apply(gdic.wxDC_GetBrush,(self,) + _args, _kwargs)
425 if val: val = wxBrushPtr(val)
426 return val
427 def GetCharHeight(self, *_args, **_kwargs):
428 val = apply(gdic.wxDC_GetCharHeight,(self,) + _args, _kwargs)
429 return val
430 def GetCharWidth(self, *_args, **_kwargs):
431 val = apply(gdic.wxDC_GetCharWidth,(self,) + _args, _kwargs)
432 return val
433 def GetClippingBox(self, *_args, **_kwargs):
434 val = apply(gdic.wxDC_GetClippingBox,(self,) + _args, _kwargs)
435 return val
436 def GetFont(self, *_args, **_kwargs):
437 val = apply(gdic.wxDC_GetFont,(self,) + _args, _kwargs)
438 if val: val = wxFontPtr(val)
439 return val
440 def GetLogicalFunction(self, *_args, **_kwargs):
441 val = apply(gdic.wxDC_GetLogicalFunction,(self,) + _args, _kwargs)
442 return val
443 def GetLogicalScale(self, *_args, **_kwargs):
444 val = apply(gdic.wxDC_GetLogicalScale,(self,) + _args, _kwargs)
445 return val
446 def GetMapMode(self, *_args, **_kwargs):
447 val = apply(gdic.wxDC_GetMapMode,(self,) + _args, _kwargs)
448 return val
449 def GetOptimization(self, *_args, **_kwargs):
450 val = apply(gdic.wxDC_GetOptimization,(self,) + _args, _kwargs)
451 return val
452 def GetPen(self, *_args, **_kwargs):
453 val = apply(gdic.wxDC_GetPen,(self,) + _args, _kwargs)
454 if val: val = wxPenPtr(val)
455 return val
456 def GetPixel(self, *_args, **_kwargs):
457 val = apply(gdic.wxDC_GetPixel,(self,) + _args, _kwargs)
458 if val: val = wxColourPtr(val) ; val.thisown = 1
459 return val
460 def GetSizeTuple(self, *_args, **_kwargs):
461 val = apply(gdic.wxDC_GetSizeTuple,(self,) + _args, _kwargs)
462 return val
463 def GetSize(self, *_args, **_kwargs):
464 val = apply(gdic.wxDC_GetSize,(self,) + _args, _kwargs)
465 if val: val = wxSizePtr(val) ; val.thisown = 1
466 return val
467 def GetSizeMM(self, *_args, **_kwargs):
468 val = apply(gdic.wxDC_GetSizeMM,(self,) + _args, _kwargs)
469 if val: val = wxSizePtr(val) ; val.thisown = 1
470 return val
471 def GetTextBackground(self, *_args, **_kwargs):
472 val = apply(gdic.wxDC_GetTextBackground,(self,) + _args, _kwargs)
473 if val: val = wxColourPtr(val)
474 return val
475 def GetTextExtent(self, *_args, **_kwargs):
476 val = apply(gdic.wxDC_GetTextExtent,(self,) + _args, _kwargs)
477 return val
478 def GetFullTextExtent(self, *_args, **_kwargs):
479 val = apply(gdic.wxDC_GetFullTextExtent,(self,) + _args, _kwargs)
480 return val
481 def GetTextForeground(self, *_args, **_kwargs):
482 val = apply(gdic.wxDC_GetTextForeground,(self,) + _args, _kwargs)
483 if val: val = wxColourPtr(val)
484 return val
485 def GetUserScale(self, *_args, **_kwargs):
486 val = apply(gdic.wxDC_GetUserScale,(self,) + _args, _kwargs)
487 return val
488 def LogicalToDeviceX(self, *_args, **_kwargs):
489 val = apply(gdic.wxDC_LogicalToDeviceX,(self,) + _args, _kwargs)
490 return val
491 def LogicalToDeviceXRel(self, *_args, **_kwargs):
492 val = apply(gdic.wxDC_LogicalToDeviceXRel,(self,) + _args, _kwargs)
493 return val
494 def LogicalToDeviceY(self, *_args, **_kwargs):
495 val = apply(gdic.wxDC_LogicalToDeviceY,(self,) + _args, _kwargs)
496 return val
497 def LogicalToDeviceYRel(self, *_args, **_kwargs):
498 val = apply(gdic.wxDC_LogicalToDeviceYRel,(self,) + _args, _kwargs)
499 return val
500 def MaxX(self, *_args, **_kwargs):
501 val = apply(gdic.wxDC_MaxX,(self,) + _args, _kwargs)
502 return val
503 def MaxY(self, *_args, **_kwargs):
504 val = apply(gdic.wxDC_MaxY,(self,) + _args, _kwargs)
505 return val
506 def MinX(self, *_args, **_kwargs):
507 val = apply(gdic.wxDC_MinX,(self,) + _args, _kwargs)
508 return val
509 def MinY(self, *_args, **_kwargs):
510 val = apply(gdic.wxDC_MinY,(self,) + _args, _kwargs)
511 return val
512 def Ok(self, *_args, **_kwargs):
513 val = apply(gdic.wxDC_Ok,(self,) + _args, _kwargs)
514 return val
515 def SetDeviceOrigin(self, *_args, **_kwargs):
516 val = apply(gdic.wxDC_SetDeviceOrigin,(self,) + _args, _kwargs)
517 return val
518 def SetBackground(self, *_args, **_kwargs):
519 val = apply(gdic.wxDC_SetBackground,(self,) + _args, _kwargs)
520 return val
521 def SetBackgroundMode(self, *_args, **_kwargs):
522 val = apply(gdic.wxDC_SetBackgroundMode,(self,) + _args, _kwargs)
523 return val
524 def SetClippingRegion(self, *_args, **_kwargs):
525 val = apply(gdic.wxDC_SetClippingRegion,(self,) + _args, _kwargs)
526 return val
527 def SetPalette(self, *_args, **_kwargs):
528 val = apply(gdic.wxDC_SetPalette,(self,) + _args, _kwargs)
529 return val
530 def SetBrush(self, *_args, **_kwargs):
531 val = apply(gdic.wxDC_SetBrush,(self,) + _args, _kwargs)
532 return val
533 def SetFont(self, *_args, **_kwargs):
534 val = apply(gdic.wxDC_SetFont,(self,) + _args, _kwargs)
535 return val
536 def SetLogicalFunction(self, *_args, **_kwargs):
537 val = apply(gdic.wxDC_SetLogicalFunction,(self,) + _args, _kwargs)
538 return val
539 def SetLogicalScale(self, *_args, **_kwargs):
540 val = apply(gdic.wxDC_SetLogicalScale,(self,) + _args, _kwargs)
541 return val
542 def SetMapMode(self, *_args, **_kwargs):
543 val = apply(gdic.wxDC_SetMapMode,(self,) + _args, _kwargs)
544 return val
545 def SetOptimization(self, *_args, **_kwargs):
546 val = apply(gdic.wxDC_SetOptimization,(self,) + _args, _kwargs)
547 return val
548 def SetPen(self, *_args, **_kwargs):
549 val = apply(gdic.wxDC_SetPen,(self,) + _args, _kwargs)
550 return val
551 def SetTextBackground(self, *_args, **_kwargs):
552 val = apply(gdic.wxDC_SetTextBackground,(self,) + _args, _kwargs)
553 return val
554 def SetTextForeground(self, *_args, **_kwargs):
555 val = apply(gdic.wxDC_SetTextForeground,(self,) + _args, _kwargs)
556 return val
557 def SetUserScale(self, *_args, **_kwargs):
558 val = apply(gdic.wxDC_SetUserScale,(self,) + _args, _kwargs)
559 return val
560 def StartDoc(self, *_args, **_kwargs):
561 val = apply(gdic.wxDC_StartDoc,(self,) + _args, _kwargs)
562 return val
563 def StartPage(self, *_args, **_kwargs):
564 val = apply(gdic.wxDC_StartPage,(self,) + _args, _kwargs)
565 return val
566 def DrawBitmap(self, *_args, **_kwargs):
567 val = apply(gdic.wxDC_DrawBitmap,(self,) + _args, _kwargs)
568 return val
569 def CanDrawBitmap(self, *_args, **_kwargs):
570 val = apply(gdic.wxDC_CanDrawBitmap,(self,) + _args, _kwargs)
571 return val
572 def CanGetTextExtent(self, *_args, **_kwargs):
573 val = apply(gdic.wxDC_CanGetTextExtent,(self,) + _args, _kwargs)
574 return val
575 def GetDepth(self, *_args, **_kwargs):
576 val = apply(gdic.wxDC_GetDepth,(self,) + _args, _kwargs)
577 return val
578 def GetPPI(self, *_args, **_kwargs):
579 val = apply(gdic.wxDC_GetPPI,(self,) + _args, _kwargs)
580 if val: val = wxSizePtr(val) ; val.thisown = 1
581 return val
582 def GetLogicalOrigin(self, *_args, **_kwargs):
583 val = apply(gdic.wxDC_GetLogicalOrigin,(self,) + _args, _kwargs)
584 return val
585 def SetLogicalOrigin(self, *_args, **_kwargs):
586 val = apply(gdic.wxDC_SetLogicalOrigin,(self,) + _args, _kwargs)
587 return val
588 def GetDeviceOrigin(self, *_args, **_kwargs):
589 val = apply(gdic.wxDC_GetDeviceOrigin,(self,) + _args, _kwargs)
590 return val
591 def SetAxisOrientation(self, *_args, **_kwargs):
592 val = apply(gdic.wxDC_SetAxisOrientation,(self,) + _args, _kwargs)
593 return val
594 def __repr__(self):
595 return "<C wxDC instance at %s>" % (self.this,)
596 class wxDC(wxDCPtr):
597 def __init__(self,this):
598 self.this = this
599
600
601
602
603 class wxMemoryDCPtr(wxDCPtr):
604 def __init__(self,this):
605 self.this = this
606 self.thisown = 0
607 def SelectObject(self, *_args, **_kwargs):
608 val = apply(gdic.wxMemoryDC_SelectObject,(self,) + _args, _kwargs)
609 return val
610 def __repr__(self):
611 return "<C wxMemoryDC instance at %s>" % (self.this,)
612 class wxMemoryDC(wxMemoryDCPtr):
613 def __init__(self,*_args,**_kwargs):
614 self.this = apply(gdic.new_wxMemoryDC,_args,_kwargs)
615 self.thisown = 1
616
617
618
619
620 class wxScreenDCPtr(wxDCPtr):
621 def __init__(self,this):
622 self.this = this
623 self.thisown = 0
624 def StartDrawingOnTop(self, *_args, **_kwargs):
625 val = apply(gdic.wxScreenDC_StartDrawingOnTop,(self,) + _args, _kwargs)
626 return val
627 def StartDrawingOnTopRect(self, *_args, **_kwargs):
628 val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self,) + _args, _kwargs)
629 return val
630 def EndDrawingOnTop(self, *_args, **_kwargs):
631 val = apply(gdic.wxScreenDC_EndDrawingOnTop,(self,) + _args, _kwargs)
632 return val
633 def __repr__(self):
634 return "<C wxScreenDC instance at %s>" % (self.this,)
635 class wxScreenDC(wxScreenDCPtr):
636 def __init__(self,*_args,**_kwargs):
637 self.this = apply(gdic.new_wxScreenDC,_args,_kwargs)
638 self.thisown = 1
639
640
641
642
643 class wxClientDCPtr(wxDCPtr):
644 def __init__(self,this):
645 self.this = this
646 self.thisown = 0
647 def __repr__(self):
648 return "<C wxClientDC instance at %s>" % (self.this,)
649 class wxClientDC(wxClientDCPtr):
650 def __init__(self,*_args,**_kwargs):
651 self.this = apply(gdic.new_wxClientDC,_args,_kwargs)
652 self.thisown = 1
653
654
655
656
657 class wxPaintDCPtr(wxDCPtr):
658 def __init__(self,this):
659 self.this = this
660 self.thisown = 0
661 def __repr__(self):
662 return "<C wxPaintDC instance at %s>" % (self.this,)
663 class wxPaintDC(wxPaintDCPtr):
664 def __init__(self,*_args,**_kwargs):
665 self.this = apply(gdic.new_wxPaintDC,_args,_kwargs)
666 self.thisown = 1
667
668
669
670
671 class wxWindowDCPtr(wxDCPtr):
672 def __init__(self,this):
673 self.this = this
674 self.thisown = 0
675 def __repr__(self):
676 return "<C wxWindowDC instance at %s>" % (self.this,)
677 class wxWindowDC(wxWindowDCPtr):
678 def __init__(self,*_args,**_kwargs):
679 self.this = apply(gdic.new_wxWindowDC,_args,_kwargs)
680 self.thisown = 1
681
682
683
684
685 class wxPostScriptDCPtr(wxDCPtr):
686 def __init__(self,this):
687 self.this = this
688 self.thisown = 0
689 def __repr__(self):
690 return "<C wxPostScriptDC instance at %s>" % (self.this,)
691 class wxPostScriptDC(wxPostScriptDCPtr):
692 def __init__(self,*_args,**_kwargs):
693 self.this = apply(gdic.new_wxPostScriptDC,_args,_kwargs)
694 self.thisown = 1
695
696
697
698
699 class wxPalettePtr :
700 def __init__(self,this):
701 self.this = this
702 self.thisown = 0
703 def __del__(self,gdic=gdic):
704 if self.thisown == 1 :
705 gdic.delete_wxPalette(self)
706 def GetPixel(self, *_args, **_kwargs):
707 val = apply(gdic.wxPalette_GetPixel,(self,) + _args, _kwargs)
708 return val
709 def GetRGB(self, *_args, **_kwargs):
710 val = apply(gdic.wxPalette_GetRGB,(self,) + _args, _kwargs)
711 return val
712 def Ok(self, *_args, **_kwargs):
713 val = apply(gdic.wxPalette_Ok,(self,) + _args, _kwargs)
714 return val
715 def __repr__(self):
716 return "<C wxPalette instance at %s>" % (self.this,)
717 class wxPalette(wxPalettePtr):
718 def __init__(self,*_args,**_kwargs):
719 self.this = apply(gdic.new_wxPalette,_args,_kwargs)
720 self.thisown = 1
721
722
723
724
725 class wxImageListPtr :
726 def __init__(self,this):
727 self.this = this
728 self.thisown = 0
729 def __del__(self,gdic=gdic):
730 if self.thisown == 1 :
731 gdic.delete_wxImageList(self)
732 def Add(self, *_args, **_kwargs):
733 val = apply(gdic.wxImageList_Add,(self,) + _args, _kwargs)
734 return val
735 def Replace(self, *_args, **_kwargs):
736 val = apply(gdic.wxImageList_Replace,(self,) + _args, _kwargs)
737 return val
738 def Draw(self, *_args, **_kwargs):
739 val = apply(gdic.wxImageList_Draw,(self,) + _args, _kwargs)
740 return val
741 def GetImageCount(self, *_args, **_kwargs):
742 val = apply(gdic.wxImageList_GetImageCount,(self,) + _args, _kwargs)
743 return val
744 def Remove(self, *_args, **_kwargs):
745 val = apply(gdic.wxImageList_Remove,(self,) + _args, _kwargs)
746 return val
747 def RemoveAll(self, *_args, **_kwargs):
748 val = apply(gdic.wxImageList_RemoveAll,(self,) + _args, _kwargs)
749 return val
750 def __repr__(self):
751 return "<C wxImageList instance at %s>" % (self.this,)
752 class wxImageList(wxImageListPtr):
753 def __init__(self,*_args,**_kwargs):
754 self.this = apply(gdic.new_wxImageList,_args,_kwargs)
755 self.thisown = 1
756
757
758
759
760
761
762 #-------------- FUNCTION WRAPPERS ------------------
763
764 def wxEmptyBitmap(*_args, **_kwargs):
765 val = apply(gdic.wxEmptyBitmap,_args,_kwargs)
766 if val: val = wxBitmapPtr(val); val.thisown = 1
767 return val
768
769 def wxMaskColour(*_args, **_kwargs):
770 val = apply(gdic.wxMaskColour,_args,_kwargs)
771 if val: val = wxMaskPtr(val); val.thisown = 1
772 return val
773
774 def wxStockCursor(*_args, **_kwargs):
775 val = apply(gdic.wxStockCursor,_args,_kwargs)
776 if val: val = wxCursorPtr(val); val.thisown = 1
777 return val
778
779 wxFont_GetDefaultEncoding = gdic.wxFont_GetDefaultEncoding
780
781 wxFont_SetDefaultEncoding = gdic.wxFont_SetDefaultEncoding
782
783 def wxNamedColour(*_args, **_kwargs):
784 val = apply(gdic.wxNamedColour,_args,_kwargs)
785 if val: val = wxColourPtr(val); val.thisown = 1
786 return val
787
788 def wxMemoryDCFromDC(*_args, **_kwargs):
789 val = apply(gdic.wxMemoryDCFromDC,_args,_kwargs)
790 if val: val = wxMemoryDCPtr(val); val.thisown = 1
791 return val
792
793
794
795 #-------------- VARIABLE WRAPPERS ------------------
796
797 wxFONTENCODING_SYSTEM = gdic.wxFONTENCODING_SYSTEM
798 wxFONTENCODING_DEFAULT = gdic.wxFONTENCODING_DEFAULT
799 wxFONTENCODING_ISO8859_1 = gdic.wxFONTENCODING_ISO8859_1
800 wxFONTENCODING_ISO8859_2 = gdic.wxFONTENCODING_ISO8859_2
801 wxFONTENCODING_ISO8859_3 = gdic.wxFONTENCODING_ISO8859_3
802 wxFONTENCODING_ISO8859_4 = gdic.wxFONTENCODING_ISO8859_4
803 wxFONTENCODING_ISO8859_5 = gdic.wxFONTENCODING_ISO8859_5
804 wxFONTENCODING_ISO8859_6 = gdic.wxFONTENCODING_ISO8859_6
805 wxFONTENCODING_ISO8859_7 = gdic.wxFONTENCODING_ISO8859_7
806 wxFONTENCODING_ISO8859_8 = gdic.wxFONTENCODING_ISO8859_8
807 wxFONTENCODING_ISO8859_9 = gdic.wxFONTENCODING_ISO8859_9
808 wxFONTENCODING_ISO8859_10 = gdic.wxFONTENCODING_ISO8859_10
809 wxFONTENCODING_ISO8859_11 = gdic.wxFONTENCODING_ISO8859_11
810 wxFONTENCODING_ISO8859_12 = gdic.wxFONTENCODING_ISO8859_12
811 wxFONTENCODING_ISO8859_13 = gdic.wxFONTENCODING_ISO8859_13
812 wxFONTENCODING_ISO8859_14 = gdic.wxFONTENCODING_ISO8859_14
813 wxFONTENCODING_ISO8859_15 = gdic.wxFONTENCODING_ISO8859_15
814 wxFONTENCODING_KOI8 = gdic.wxFONTENCODING_KOI8
815 wxFONTENCODING_ALTERNATIVE = gdic.wxFONTENCODING_ALTERNATIVE
816 wxFONTENCODING_BULGARIAN = gdic.wxFONTENCODING_BULGARIAN
817 wxFONTENCODING_CP437 = gdic.wxFONTENCODING_CP437
818 wxFONTENCODING_CP850 = gdic.wxFONTENCODING_CP850
819 wxFONTENCODING_CP852 = gdic.wxFONTENCODING_CP852
820 wxFONTENCODING_CP855 = gdic.wxFONTENCODING_CP855
821 wxFONTENCODING_CP866 = gdic.wxFONTENCODING_CP866
822 wxFONTENCODING_CP1250 = gdic.wxFONTENCODING_CP1250
823 wxFONTENCODING_CP1251 = gdic.wxFONTENCODING_CP1251
824 wxFONTENCODING_CP1252 = gdic.wxFONTENCODING_CP1252
825 wxFONTENCODING_MAX = gdic.wxFONTENCODING_MAX
826 cvar = gdic.cvar
827 wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
828 wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
829 wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
830 wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
831 wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
832 wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
833 wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
834 wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
835 wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
836 wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
837 wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
838 wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
839 wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
840 wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
841 wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
842 wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
843 wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
844 wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
845 wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
846 wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
847 wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
848 wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
849 wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
850 wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
851 wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
852 wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
853 wxRED = wxColourPtr(gdic.cvar.wxRED)
854 wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
855 wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
856 wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
857 wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
858 wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
859 wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
860 wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
861 wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
862 wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
863 wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
864 wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
865 wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
866 wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
867 wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
868 wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
869 wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
870 wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
871 wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
872 wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
873 wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
874 wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
875 wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE