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