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