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