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