]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/gdi.py
New build system for wxPython. (Still needs some polish but is stable
[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 SetFaceName(self, *_args, **_kwargs):
170 val = apply(gdic.wxFont_SetFaceName,(self,) + _args, _kwargs)
171 return val
172 def SetFamily(self, *_args, **_kwargs):
173 val = apply(gdic.wxFont_SetFamily,(self,) + _args, _kwargs)
174 return val
175 def SetPointSize(self, *_args, **_kwargs):
176 val = apply(gdic.wxFont_SetPointSize,(self,) + _args, _kwargs)
177 return val
178 def SetStyle(self, *_args, **_kwargs):
179 val = apply(gdic.wxFont_SetStyle,(self,) + _args, _kwargs)
180 return val
181 def SetUnderlined(self, *_args, **_kwargs):
182 val = apply(gdic.wxFont_SetUnderlined,(self,) + _args, _kwargs)
183 return val
184 def SetWeight(self, *_args, **_kwargs):
185 val = apply(gdic.wxFont_SetWeight,(self,) + _args, _kwargs)
186 return val
187 def __repr__(self):
188 return "<C wxFont instance at %s>" % (self.this,)
189 class wxFont(wxFontPtr):
190 def __init__(self,*_args,**_kwargs):
191 self.this = apply(gdic.new_wxFont,_args,_kwargs)
192 self.thisown = 1
193
194
195
196
197 class wxColourPtr :
198 def __init__(self,this):
199 self.this = this
200 self.thisown = 0
201 def __del__(self,gdic=gdic):
202 if self.thisown == 1 :
203 gdic.delete_wxColour(self)
204 def Red(self, *_args, **_kwargs):
205 val = apply(gdic.wxColour_Red,(self,) + _args, _kwargs)
206 return val
207 def Green(self, *_args, **_kwargs):
208 val = apply(gdic.wxColour_Green,(self,) + _args, _kwargs)
209 return val
210 def Blue(self, *_args, **_kwargs):
211 val = apply(gdic.wxColour_Blue,(self,) + _args, _kwargs)
212 return val
213 def Ok(self, *_args, **_kwargs):
214 val = apply(gdic.wxColour_Ok,(self,) + _args, _kwargs)
215 return val
216 def Set(self, *_args, **_kwargs):
217 val = apply(gdic.wxColour_Set,(self,) + _args, _kwargs)
218 return val
219 def Get(self, *_args, **_kwargs):
220 val = apply(gdic.wxColour_Get,(self,) + _args, _kwargs)
221 return val
222 def __repr__(self):
223 return "<C wxColour instance at %s>" % (self.this,)
224 class wxColour(wxColourPtr):
225 def __init__(self,*_args,**_kwargs):
226 self.this = apply(gdic.new_wxColour,_args,_kwargs)
227 self.thisown = 1
228
229
230
231
232 class wxPenPtr :
233 def __init__(self,this):
234 self.this = this
235 self.thisown = 0
236 def GetCap(self, *_args, **_kwargs):
237 val = apply(gdic.wxPen_GetCap,(self,) + _args, _kwargs)
238 return val
239 def GetColour(self, *_args, **_kwargs):
240 val = apply(gdic.wxPen_GetColour,(self,) + _args, _kwargs)
241 if val: val = wxColourPtr(val)
242 return val
243 def GetJoin(self, *_args, **_kwargs):
244 val = apply(gdic.wxPen_GetJoin,(self,) + _args, _kwargs)
245 return val
246 def GetStyle(self, *_args, **_kwargs):
247 val = apply(gdic.wxPen_GetStyle,(self,) + _args, _kwargs)
248 return val
249 def GetWidth(self, *_args, **_kwargs):
250 val = apply(gdic.wxPen_GetWidth,(self,) + _args, _kwargs)
251 return val
252 def Ok(self, *_args, **_kwargs):
253 val = apply(gdic.wxPen_Ok,(self,) + _args, _kwargs)
254 return val
255 def SetCap(self, *_args, **_kwargs):
256 val = apply(gdic.wxPen_SetCap,(self,) + _args, _kwargs)
257 return val
258 def SetColour(self, *_args, **_kwargs):
259 val = apply(gdic.wxPen_SetColour,(self,) + _args, _kwargs)
260 return val
261 def SetJoin(self, *_args, **_kwargs):
262 val = apply(gdic.wxPen_SetJoin,(self,) + _args, _kwargs)
263 return val
264 def SetStyle(self, *_args, **_kwargs):
265 val = apply(gdic.wxPen_SetStyle,(self,) + _args, _kwargs)
266 return val
267 def SetWidth(self, *_args, **_kwargs):
268 val = apply(gdic.wxPen_SetWidth,(self,) + _args, _kwargs)
269 return val
270 def GetDashes(self, *_args, **_kwargs):
271 val = apply(gdic.wxPen_GetDashes,(self,) + _args, _kwargs)
272 return val
273 def GetStipple(self, *_args, **_kwargs):
274 val = apply(gdic.wxPen_GetStipple,(self,) + _args, _kwargs)
275 if val: val = wxBitmapPtr(val)
276 return val
277 def SetDashes(self, *_args, **_kwargs):
278 val = apply(gdic.wxPen_SetDashes,(self,) + _args, _kwargs)
279 return val
280 def SetStipple(self, *_args, **_kwargs):
281 val = apply(gdic.wxPen_SetStipple,(self,) + _args, _kwargs)
282 return val
283 def __repr__(self):
284 return "<C wxPen instance at %s>" % (self.this,)
285 class wxPen(wxPenPtr):
286 def __init__(self,*_args,**_kwargs):
287 self.this = apply(gdic.new_wxPen,_args,_kwargs)
288 self.thisown = 1
289
290
291
292
293 class wxBrushPtr :
294 def __init__(self,this):
295 self.this = this
296 self.thisown = 0
297 def GetColour(self, *_args, **_kwargs):
298 val = apply(gdic.wxBrush_GetColour,(self,) + _args, _kwargs)
299 if val: val = wxColourPtr(val)
300 return val
301 def GetStipple(self, *_args, **_kwargs):
302 val = apply(gdic.wxBrush_GetStipple,(self,) + _args, _kwargs)
303 if val: val = wxBitmapPtr(val)
304 return val
305 def GetStyle(self, *_args, **_kwargs):
306 val = apply(gdic.wxBrush_GetStyle,(self,) + _args, _kwargs)
307 return val
308 def Ok(self, *_args, **_kwargs):
309 val = apply(gdic.wxBrush_Ok,(self,) + _args, _kwargs)
310 return val
311 def SetColour(self, *_args, **_kwargs):
312 val = apply(gdic.wxBrush_SetColour,(self,) + _args, _kwargs)
313 return val
314 def SetStipple(self, *_args, **_kwargs):
315 val = apply(gdic.wxBrush_SetStipple,(self,) + _args, _kwargs)
316 return val
317 def SetStyle(self, *_args, **_kwargs):
318 val = apply(gdic.wxBrush_SetStyle,(self,) + _args, _kwargs)
319 return val
320 def __repr__(self):
321 return "<C wxBrush instance at %s>" % (self.this,)
322 class wxBrush(wxBrushPtr):
323 def __init__(self,*_args,**_kwargs):
324 self.this = apply(gdic.new_wxBrush,_args,_kwargs)
325 self.thisown = 1
326
327
328
329
330 class wxDCPtr :
331 def __init__(self,this):
332 self.this = this
333 self.thisown = 0
334 def __del__(self,gdic=gdic):
335 if self.thisown == 1 :
336 gdic.delete_wxDC(self)
337 def BeginDrawing(self, *_args, **_kwargs):
338 val = apply(gdic.wxDC_BeginDrawing,(self,) + _args, _kwargs)
339 return val
340 def Blit(self, *_args, **_kwargs):
341 val = apply(gdic.wxDC_Blit,(self,) + _args, _kwargs)
342 return val
343 def Clear(self, *_args, **_kwargs):
344 val = apply(gdic.wxDC_Clear,(self,) + _args, _kwargs)
345 return val
346 def CrossHair(self, *_args, **_kwargs):
347 val = apply(gdic.wxDC_CrossHair,(self,) + _args, _kwargs)
348 return val
349 def DestroyClippingRegion(self, *_args, **_kwargs):
350 val = apply(gdic.wxDC_DestroyClippingRegion,(self,) + _args, _kwargs)
351 return val
352 def DeviceToLogicalX(self, *_args, **_kwargs):
353 val = apply(gdic.wxDC_DeviceToLogicalX,(self,) + _args, _kwargs)
354 return val
355 def DeviceToLogicalXRel(self, *_args, **_kwargs):
356 val = apply(gdic.wxDC_DeviceToLogicalXRel,(self,) + _args, _kwargs)
357 return val
358 def DeviceToLogicalY(self, *_args, **_kwargs):
359 val = apply(gdic.wxDC_DeviceToLogicalY,(self,) + _args, _kwargs)
360 return val
361 def DeviceToLogicalYRel(self, *_args, **_kwargs):
362 val = apply(gdic.wxDC_DeviceToLogicalYRel,(self,) + _args, _kwargs)
363 return val
364 def DrawArc(self, *_args, **_kwargs):
365 val = apply(gdic.wxDC_DrawArc,(self,) + _args, _kwargs)
366 return val
367 def DrawCircle(self, *_args, **_kwargs):
368 val = apply(gdic.wxDC_DrawCircle,(self,) + _args, _kwargs)
369 return val
370 def DrawEllipse(self, *_args, **_kwargs):
371 val = apply(gdic.wxDC_DrawEllipse,(self,) + _args, _kwargs)
372 return val
373 def DrawEllipticArc(self, *_args, **_kwargs):
374 val = apply(gdic.wxDC_DrawEllipticArc,(self,) + _args, _kwargs)
375 return val
376 def DrawIcon(self, *_args, **_kwargs):
377 val = apply(gdic.wxDC_DrawIcon,(self,) + _args, _kwargs)
378 return val
379 def DrawLine(self, *_args, **_kwargs):
380 val = apply(gdic.wxDC_DrawLine,(self,) + _args, _kwargs)
381 return val
382 def DrawLines(self, *_args, **_kwargs):
383 val = apply(gdic.wxDC_DrawLines,(self,) + _args, _kwargs)
384 return val
385 def DrawPolygon(self, *_args, **_kwargs):
386 val = apply(gdic.wxDC_DrawPolygon,(self,) + _args, _kwargs)
387 return val
388 def DrawPoint(self, *_args, **_kwargs):
389 val = apply(gdic.wxDC_DrawPoint,(self,) + _args, _kwargs)
390 return val
391 def DrawRectangle(self, *_args, **_kwargs):
392 val = apply(gdic.wxDC_DrawRectangle,(self,) + _args, _kwargs)
393 return val
394 def DrawRoundedRectangle(self, *_args, **_kwargs):
395 val = apply(gdic.wxDC_DrawRoundedRectangle,(self,) + _args, _kwargs)
396 return val
397 def DrawSpline(self, *_args, **_kwargs):
398 val = apply(gdic.wxDC_DrawSpline,(self,) + _args, _kwargs)
399 return val
400 def DrawText(self, *_args, **_kwargs):
401 val = apply(gdic.wxDC_DrawText,(self,) + _args, _kwargs)
402 return val
403 def EndDoc(self, *_args, **_kwargs):
404 val = apply(gdic.wxDC_EndDoc,(self,) + _args, _kwargs)
405 return val
406 def EndDrawing(self, *_args, **_kwargs):
407 val = apply(gdic.wxDC_EndDrawing,(self,) + _args, _kwargs)
408 return val
409 def EndPage(self, *_args, **_kwargs):
410 val = apply(gdic.wxDC_EndPage,(self,) + _args, _kwargs)
411 return val
412 def FloodFill(self, *_args, **_kwargs):
413 val = apply(gdic.wxDC_FloodFill,(self,) + _args, _kwargs)
414 return val
415 def GetBackground(self, *_args, **_kwargs):
416 val = apply(gdic.wxDC_GetBackground,(self,) + _args, _kwargs)
417 if val: val = wxBrushPtr(val)
418 return val
419 def GetBrush(self, *_args, **_kwargs):
420 val = apply(gdic.wxDC_GetBrush,(self,) + _args, _kwargs)
421 if val: val = wxBrushPtr(val)
422 return val
423 def GetCharHeight(self, *_args, **_kwargs):
424 val = apply(gdic.wxDC_GetCharHeight,(self,) + _args, _kwargs)
425 return val
426 def GetCharWidth(self, *_args, **_kwargs):
427 val = apply(gdic.wxDC_GetCharWidth,(self,) + _args, _kwargs)
428 return val
429 def GetClippingBox(self, *_args, **_kwargs):
430 val = apply(gdic.wxDC_GetClippingBox,(self,) + _args, _kwargs)
431 return val
432 def GetFont(self, *_args, **_kwargs):
433 val = apply(gdic.wxDC_GetFont,(self,) + _args, _kwargs)
434 if val: val = wxFontPtr(val)
435 return val
436 def GetLogicalFunction(self, *_args, **_kwargs):
437 val = apply(gdic.wxDC_GetLogicalFunction,(self,) + _args, _kwargs)
438 return val
439 def GetMapMode(self, *_args, **_kwargs):
440 val = apply(gdic.wxDC_GetMapMode,(self,) + _args, _kwargs)
441 return val
442 def GetOptimization(self, *_args, **_kwargs):
443 val = apply(gdic.wxDC_GetOptimization,(self,) + _args, _kwargs)
444 return val
445 def GetPen(self, *_args, **_kwargs):
446 val = apply(gdic.wxDC_GetPen,(self,) + _args, _kwargs)
447 if val: val = wxPenPtr(val)
448 return val
449 def GetPixel(self, *_args, **_kwargs):
450 val = apply(gdic.wxDC_GetPixel,(self,) + _args, _kwargs)
451 if val: val = wxColourPtr(val) ; val.thisown = 1
452 return val
453 def GetSizeTuple(self, *_args, **_kwargs):
454 val = apply(gdic.wxDC_GetSizeTuple,(self,) + _args, _kwargs)
455 return val
456 def GetSize(self, *_args, **_kwargs):
457 val = apply(gdic.wxDC_GetSize,(self,) + _args, _kwargs)
458 if val: val = wxSizePtr(val) ; val.thisown = 1
459 return val
460 def GetTextBackground(self, *_args, **_kwargs):
461 val = apply(gdic.wxDC_GetTextBackground,(self,) + _args, _kwargs)
462 if val: val = wxColourPtr(val)
463 return val
464 def GetTextExtent(self, *_args, **_kwargs):
465 val = apply(gdic.wxDC_GetTextExtent,(self,) + _args, _kwargs)
466 return val
467 def GetFullTextExtent(self, *_args, **_kwargs):
468 val = apply(gdic.wxDC_GetFullTextExtent,(self,) + _args, _kwargs)
469 return val
470 def GetTextForeground(self, *_args, **_kwargs):
471 val = apply(gdic.wxDC_GetTextForeground,(self,) + _args, _kwargs)
472 if val: val = wxColourPtr(val)
473 return val
474 def LogicalToDeviceX(self, *_args, **_kwargs):
475 val = apply(gdic.wxDC_LogicalToDeviceX,(self,) + _args, _kwargs)
476 return val
477 def LogicalToDeviceXRel(self, *_args, **_kwargs):
478 val = apply(gdic.wxDC_LogicalToDeviceXRel,(self,) + _args, _kwargs)
479 return val
480 def LogicalToDeviceY(self, *_args, **_kwargs):
481 val = apply(gdic.wxDC_LogicalToDeviceY,(self,) + _args, _kwargs)
482 return val
483 def LogicalToDeviceYRel(self, *_args, **_kwargs):
484 val = apply(gdic.wxDC_LogicalToDeviceYRel,(self,) + _args, _kwargs)
485 return val
486 def MaxX(self, *_args, **_kwargs):
487 val = apply(gdic.wxDC_MaxX,(self,) + _args, _kwargs)
488 return val
489 def MaxY(self, *_args, **_kwargs):
490 val = apply(gdic.wxDC_MaxY,(self,) + _args, _kwargs)
491 return val
492 def MinX(self, *_args, **_kwargs):
493 val = apply(gdic.wxDC_MinX,(self,) + _args, _kwargs)
494 return val
495 def MinY(self, *_args, **_kwargs):
496 val = apply(gdic.wxDC_MinY,(self,) + _args, _kwargs)
497 return val
498 def Ok(self, *_args, **_kwargs):
499 val = apply(gdic.wxDC_Ok,(self,) + _args, _kwargs)
500 return val
501 def SetDeviceOrigin(self, *_args, **_kwargs):
502 val = apply(gdic.wxDC_SetDeviceOrigin,(self,) + _args, _kwargs)
503 return val
504 def SetBackground(self, *_args, **_kwargs):
505 val = apply(gdic.wxDC_SetBackground,(self,) + _args, _kwargs)
506 return val
507 def SetBackgroundMode(self, *_args, **_kwargs):
508 val = apply(gdic.wxDC_SetBackgroundMode,(self,) + _args, _kwargs)
509 return val
510 def SetClippingRegion(self, *_args, **_kwargs):
511 val = apply(gdic.wxDC_SetClippingRegion,(self,) + _args, _kwargs)
512 return val
513 def SetPalette(self, *_args, **_kwargs):
514 val = apply(gdic.wxDC_SetPalette,(self,) + _args, _kwargs)
515 return val
516 def SetBrush(self, *_args, **_kwargs):
517 val = apply(gdic.wxDC_SetBrush,(self,) + _args, _kwargs)
518 return val
519 def SetFont(self, *_args, **_kwargs):
520 val = apply(gdic.wxDC_SetFont,(self,) + _args, _kwargs)
521 return val
522 def SetLogicalFunction(self, *_args, **_kwargs):
523 val = apply(gdic.wxDC_SetLogicalFunction,(self,) + _args, _kwargs)
524 return val
525 def SetMapMode(self, *_args, **_kwargs):
526 val = apply(gdic.wxDC_SetMapMode,(self,) + _args, _kwargs)
527 return val
528 def SetOptimization(self, *_args, **_kwargs):
529 val = apply(gdic.wxDC_SetOptimization,(self,) + _args, _kwargs)
530 return val
531 def SetPen(self, *_args, **_kwargs):
532 val = apply(gdic.wxDC_SetPen,(self,) + _args, _kwargs)
533 return val
534 def SetTextBackground(self, *_args, **_kwargs):
535 val = apply(gdic.wxDC_SetTextBackground,(self,) + _args, _kwargs)
536 return val
537 def SetTextForeground(self, *_args, **_kwargs):
538 val = apply(gdic.wxDC_SetTextForeground,(self,) + _args, _kwargs)
539 return val
540 def SetUserScale(self, *_args, **_kwargs):
541 val = apply(gdic.wxDC_SetUserScale,(self,) + _args, _kwargs)
542 return val
543 def StartDoc(self, *_args, **_kwargs):
544 val = apply(gdic.wxDC_StartDoc,(self,) + _args, _kwargs)
545 return val
546 def StartPage(self, *_args, **_kwargs):
547 val = apply(gdic.wxDC_StartPage,(self,) + _args, _kwargs)
548 return val
549 def DrawBitmap(self, *_args, **_kwargs):
550 val = apply(gdic.wxDC_DrawBitmap,(self,) + _args, _kwargs)
551 return val
552 def __repr__(self):
553 return "<C wxDC instance at %s>" % (self.this,)
554 class wxDC(wxDCPtr):
555 def __init__(self,this):
556 self.this = this
557
558
559
560
561 class wxMemoryDCPtr(wxDCPtr):
562 def __init__(self,this):
563 self.this = this
564 self.thisown = 0
565 def SelectObject(self, *_args, **_kwargs):
566 val = apply(gdic.wxMemoryDC_SelectObject,(self,) + _args, _kwargs)
567 return val
568 def __repr__(self):
569 return "<C wxMemoryDC instance at %s>" % (self.this,)
570 class wxMemoryDC(wxMemoryDCPtr):
571 def __init__(self,*_args,**_kwargs):
572 self.this = apply(gdic.new_wxMemoryDC,_args,_kwargs)
573 self.thisown = 1
574
575
576
577
578 class wxScreenDCPtr(wxDCPtr):
579 def __init__(self,this):
580 self.this = this
581 self.thisown = 0
582 def StartDrawingOnTop(self, *_args, **_kwargs):
583 val = apply(gdic.wxScreenDC_StartDrawingOnTop,(self,) + _args, _kwargs)
584 return val
585 def StartDrawingOnTopRect(self, *_args, **_kwargs):
586 val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self,) + _args, _kwargs)
587 return val
588 def EndDrawingOnTop(self, *_args, **_kwargs):
589 val = apply(gdic.wxScreenDC_EndDrawingOnTop,(self,) + _args, _kwargs)
590 return val
591 def __repr__(self):
592 return "<C wxScreenDC instance at %s>" % (self.this,)
593 class wxScreenDC(wxScreenDCPtr):
594 def __init__(self,*_args,**_kwargs):
595 self.this = apply(gdic.new_wxScreenDC,_args,_kwargs)
596 self.thisown = 1
597
598
599
600
601 class wxClientDCPtr(wxDCPtr):
602 def __init__(self,this):
603 self.this = this
604 self.thisown = 0
605 def __repr__(self):
606 return "<C wxClientDC instance at %s>" % (self.this,)
607 class wxClientDC(wxClientDCPtr):
608 def __init__(self,*_args,**_kwargs):
609 self.this = apply(gdic.new_wxClientDC,_args,_kwargs)
610 self.thisown = 1
611
612
613
614
615 class wxPaintDCPtr(wxDCPtr):
616 def __init__(self,this):
617 self.this = this
618 self.thisown = 0
619 def __repr__(self):
620 return "<C wxPaintDC instance at %s>" % (self.this,)
621 class wxPaintDC(wxPaintDCPtr):
622 def __init__(self,*_args,**_kwargs):
623 self.this = apply(gdic.new_wxPaintDC,_args,_kwargs)
624 self.thisown = 1
625
626
627
628
629 class wxWindowDCPtr(wxDCPtr):
630 def __init__(self,this):
631 self.this = this
632 self.thisown = 0
633 def __repr__(self):
634 return "<C wxWindowDC instance at %s>" % (self.this,)
635 class wxWindowDC(wxWindowDCPtr):
636 def __init__(self,*_args,**_kwargs):
637 self.this = apply(gdic.new_wxWindowDC,_args,_kwargs)
638 self.thisown = 1
639
640
641
642
643 class wxPrinterDCPtr(wxDCPtr):
644 def __init__(self,this):
645 self.this = this
646 self.thisown = 0
647 def __repr__(self):
648 return "<C wxPrinterDC instance at %s>" % (self.this,)
649 class wxPrinterDC(wxPrinterDCPtr):
650 def __init__(self,*_args,**_kwargs):
651 self.this = apply(gdic.new_wxPrinterDC,_args,_kwargs)
652 self.thisown = 1
653
654
655
656
657 class wxMetaFileDCPtr(wxDCPtr):
658 def __init__(self,this):
659 self.this = this
660 self.thisown = 0
661 def Close(self, *_args, **_kwargs):
662 val = apply(gdic.wxMetaFileDC_Close,(self,) + _args, _kwargs)
663 return val
664 def __repr__(self):
665 return "<C wxMetaFileDC instance at %s>" % (self.this,)
666 class wxMetaFileDC(wxMetaFileDCPtr):
667 def __init__(self,*_args,**_kwargs):
668 self.this = apply(gdic.new_wxMetaFileDC,_args,_kwargs)
669 self.thisown = 1
670
671
672
673
674 class wxPalettePtr :
675 def __init__(self,this):
676 self.this = this
677 self.thisown = 0
678 def __del__(self,gdic=gdic):
679 if self.thisown == 1 :
680 gdic.delete_wxPalette(self)
681 def GetPixel(self, *_args, **_kwargs):
682 val = apply(gdic.wxPalette_GetPixel,(self,) + _args, _kwargs)
683 return val
684 def GetRGB(self, *_args, **_kwargs):
685 val = apply(gdic.wxPalette_GetRGB,(self,) + _args, _kwargs)
686 return val
687 def Ok(self, *_args, **_kwargs):
688 val = apply(gdic.wxPalette_Ok,(self,) + _args, _kwargs)
689 return val
690 def __repr__(self):
691 return "<C wxPalette instance at %s>" % (self.this,)
692 class wxPalette(wxPalettePtr):
693 def __init__(self,*_args,**_kwargs):
694 self.this = apply(gdic.new_wxPalette,_args,_kwargs)
695 self.thisown = 1
696
697
698
699
700 class wxImageListPtr :
701 def __init__(self,this):
702 self.this = this
703 self.thisown = 0
704 def __del__(self,gdic=gdic):
705 if self.thisown == 1 :
706 gdic.delete_wxImageList(self)
707 def Add(self, *_args, **_kwargs):
708 val = apply(gdic.wxImageList_Add,(self,) + _args, _kwargs)
709 return val
710 def AddWithColourMask(self, *_args, **_kwargs):
711 val = apply(gdic.wxImageList_AddWithColourMask,(self,) + _args, _kwargs)
712 return val
713 def AddIcon(self, *_args, **_kwargs):
714 val = apply(gdic.wxImageList_AddIcon,(self,) + _args, _kwargs)
715 return val
716 def Replace(self, *_args, **_kwargs):
717 val = apply(gdic.wxImageList_Replace,(self,) + _args, _kwargs)
718 return val
719 def ReplaceIcon(self, *_args, **_kwargs):
720 val = apply(gdic.wxImageList_ReplaceIcon,(self,) + _args, _kwargs)
721 return val
722 def Draw(self, *_args, **_kwargs):
723 val = apply(gdic.wxImageList_Draw,(self,) + _args, _kwargs)
724 return val
725 def GetImageCount(self, *_args, **_kwargs):
726 val = apply(gdic.wxImageList_GetImageCount,(self,) + _args, _kwargs)
727 return val
728 def Remove(self, *_args, **_kwargs):
729 val = apply(gdic.wxImageList_Remove,(self,) + _args, _kwargs)
730 return val
731 def RemoveAll(self, *_args, **_kwargs):
732 val = apply(gdic.wxImageList_RemoveAll,(self,) + _args, _kwargs)
733 return val
734 def __repr__(self):
735 return "<C wxImageList instance at %s>" % (self.this,)
736 class wxImageList(wxImageListPtr):
737 def __init__(self,*_args,**_kwargs):
738 self.this = apply(gdic.new_wxImageList,_args,_kwargs)
739 self.thisown = 1
740
741
742
743
744
745
746 #-------------- FUNCTION WRAPPERS ------------------
747
748 def wxEmptyBitmap(*_args, **_kwargs):
749 val = apply(gdic.wxEmptyBitmap,_args,_kwargs)
750 if val: val = wxBitmapPtr(val); val.thisown = 1
751 return val
752
753 def wxNoRefBitmap(*_args, **_kwargs):
754 val = apply(gdic.wxNoRefBitmap,_args,_kwargs)
755 if val: val = wxBitmapPtr(val)
756 return val
757
758 def wxBitmapFromData(*_args, **_kwargs):
759 val = apply(gdic.wxBitmapFromData,_args,_kwargs)
760 if val: val = wxBitmapPtr(val); val.thisown = 1
761 return val
762
763 def wxMaskColour(*_args, **_kwargs):
764 val = apply(gdic.wxMaskColour,_args,_kwargs)
765 if val: val = wxMaskPtr(val); val.thisown = 1
766 return val
767
768 def wxStockCursor(*_args, **_kwargs):
769 val = apply(gdic.wxStockCursor,_args,_kwargs)
770 if val: val = wxCursorPtr(val); val.thisown = 1
771 return val
772
773 def wxNamedColour(*_args, **_kwargs):
774 val = apply(gdic.wxNamedColour,_args,_kwargs)
775 if val: val = wxColourPtr(val); val.thisown = 1
776 return val
777
778 def wxMemoryDCFromDC(*_args, **_kwargs):
779 val = apply(gdic.wxMemoryDCFromDC,_args,_kwargs)
780 if val: val = wxMemoryDCPtr(val); val.thisown = 1
781 return val
782
783
784
785 #-------------- VARIABLE WRAPPERS ------------------
786
787 cvar = gdic.cvar
788 wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
789 wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
790 wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
791 wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
792 wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
793 wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
794 wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
795 wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
796 wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
797 wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
798 wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
799 wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
800 wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
801 wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
802 wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
803 wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
804 wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
805 wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
806 wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
807 wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
808 wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
809 wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
810 wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
811 wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
812 wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
813 wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
814 wxRED = wxColourPtr(gdic.cvar.wxRED)
815 wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
816 wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
817 wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
818 wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
819 wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
820 wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
821 wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
822 wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
823 wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
824 wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
825 wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
826 wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
827 wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
828 wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
829 wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
830 wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
831 wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
832 wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
833 wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
834 wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
835 wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
836 wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE