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