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