]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi.py
Added wxGenericDirCtrl and other varioius updates
[wxWidgets.git] / wxPython / src / gtk / gdi.py
1 # This file was created automatically by SWIG.
2 import gdic
3
4 from misc import *
5 class wxGDIObjectPtr(wxObjectPtr):
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_wxGDIObject(self)
12 def GetVisible(self, *_args, **_kwargs):
13 val = apply(gdic.wxGDIObject_GetVisible,(self,) + _args, _kwargs)
14 return val
15 def SetVisible(self, *_args, **_kwargs):
16 val = apply(gdic.wxGDIObject_SetVisible,(self,) + _args, _kwargs)
17 return val
18 def IsNull(self, *_args, **_kwargs):
19 val = apply(gdic.wxGDIObject_IsNull,(self,) + _args, _kwargs)
20 return val
21 def __repr__(self):
22 return "<C wxGDIObject instance at %s>" % (self.this,)
23 class wxGDIObject(wxGDIObjectPtr):
24 def __init__(self,*_args,**_kwargs):
25 self.this = apply(gdic.new_wxGDIObject,_args,_kwargs)
26 self.thisown = 1
27
28
29
30
31 class wxBitmapPtr(wxGDIObjectPtr):
32 def __init__(self,this):
33 self.this = this
34 self.thisown = 0
35 def __del__(self,gdic=gdic):
36 if self.thisown == 1 :
37 gdic.delete_wxBitmap(self)
38 def GetPalette(self, *_args, **_kwargs):
39 val = apply(gdic.wxBitmap_GetPalette,(self,) + _args, _kwargs)
40 if val: val = wxPalettePtr(val)
41 return val
42 def GetMask(self, *_args, **_kwargs):
43 val = apply(gdic.wxBitmap_GetMask,(self,) + _args, _kwargs)
44 if val: val = wxMaskPtr(val)
45 return val
46 def LoadFile(self, *_args, **_kwargs):
47 val = apply(gdic.wxBitmap_LoadFile,(self,) + _args, _kwargs)
48 return val
49 def SaveFile(self, *_args, **_kwargs):
50 val = apply(gdic.wxBitmap_SaveFile,(self,) + _args, _kwargs)
51 return val
52 def SetMask(self, *_args, **_kwargs):
53 val = apply(gdic.wxBitmap_SetMask,(self,) + _args, _kwargs)
54 return val
55 def Ok(self, *_args, **_kwargs):
56 val = apply(gdic.wxBitmap_Ok,(self,) + _args, _kwargs)
57 return val
58 def GetWidth(self, *_args, **_kwargs):
59 val = apply(gdic.wxBitmap_GetWidth,(self,) + _args, _kwargs)
60 return val
61 def GetHeight(self, *_args, **_kwargs):
62 val = apply(gdic.wxBitmap_GetHeight,(self,) + _args, _kwargs)
63 return val
64 def GetDepth(self, *_args, **_kwargs):
65 val = apply(gdic.wxBitmap_GetDepth,(self,) + _args, _kwargs)
66 return val
67 def SetWidth(self, *_args, **_kwargs):
68 val = apply(gdic.wxBitmap_SetWidth,(self,) + _args, _kwargs)
69 return val
70 def SetHeight(self, *_args, **_kwargs):
71 val = apply(gdic.wxBitmap_SetHeight,(self,) + _args, _kwargs)
72 return val
73 def SetDepth(self, *_args, **_kwargs):
74 val = apply(gdic.wxBitmap_SetDepth,(self,) + _args, _kwargs)
75 return val
76 def GetSubBitmap(self, *_args, **_kwargs):
77 val = apply(gdic.wxBitmap_GetSubBitmap,(self,) + _args, _kwargs)
78 if val: val = wxBitmapPtr(val) ; val.thisown = 1
79 return val
80 def CopyFromIcon(self, *_args, **_kwargs):
81 val = apply(gdic.wxBitmap_CopyFromIcon,(self,) + _args, _kwargs)
82 return val
83 def __repr__(self):
84 return "<C wxBitmap instance at %s>" % (self.this,)
85
86 def __del__(self,gdic=gdic):
87 try:
88 if self.thisown == 1 :
89 gdic.delete_wxBitmap(self)
90 except:
91 pass
92
93 class wxBitmap(wxBitmapPtr):
94 def __init__(self,*_args,**_kwargs):
95 self.this = apply(gdic.new_wxBitmap,_args,_kwargs)
96 self.thisown = 1
97
98
99
100
101 class wxMaskPtr(wxObjectPtr):
102 def __init__(self,this):
103 self.this = this
104 self.thisown = 0
105 def Destroy(self, *_args, **_kwargs):
106 val = apply(gdic.wxMask_Destroy,(self,) + _args, _kwargs)
107 return val
108 def __repr__(self):
109 return "<C wxMask instance at %s>" % (self.this,)
110 class wxMask(wxMaskPtr):
111 def __init__(self,*_args,**_kwargs):
112 self.this = apply(gdic.new_wxMask,_args,_kwargs)
113 self.thisown = 1
114
115
116
117
118 class wxIconPtr(wxGDIObjectPtr):
119 def __init__(self,this):
120 self.this = this
121 self.thisown = 0
122 def __del__(self,gdic=gdic):
123 if self.thisown == 1 :
124 gdic.delete_wxIcon(self)
125 def LoadFile(self, *_args, **_kwargs):
126 val = apply(gdic.wxIcon_LoadFile,(self,) + _args, _kwargs)
127 return val
128 def Ok(self, *_args, **_kwargs):
129 val = apply(gdic.wxIcon_Ok,(self,) + _args, _kwargs)
130 return val
131 def GetWidth(self, *_args, **_kwargs):
132 val = apply(gdic.wxIcon_GetWidth,(self,) + _args, _kwargs)
133 return val
134 def GetHeight(self, *_args, **_kwargs):
135 val = apply(gdic.wxIcon_GetHeight,(self,) + _args, _kwargs)
136 return val
137 def GetDepth(self, *_args, **_kwargs):
138 val = apply(gdic.wxIcon_GetDepth,(self,) + _args, _kwargs)
139 return val
140 def SetWidth(self, *_args, **_kwargs):
141 val = apply(gdic.wxIcon_SetWidth,(self,) + _args, _kwargs)
142 return val
143 def SetHeight(self, *_args, **_kwargs):
144 val = apply(gdic.wxIcon_SetHeight,(self,) + _args, _kwargs)
145 return val
146 def SetDepth(self, *_args, **_kwargs):
147 val = apply(gdic.wxIcon_SetDepth,(self,) + _args, _kwargs)
148 return val
149 def CopyFromBitmap(self, *_args, **_kwargs):
150 val = apply(gdic.wxIcon_CopyFromBitmap,(self,) + _args, _kwargs)
151 return val
152 def __repr__(self):
153 return "<C wxIcon instance at %s>" % (self.this,)
154
155 def __del__(self,gdic=gdic):
156 try:
157 if self.thisown == 1 :
158 gdic.delete_wxIcon(self)
159 except:
160 pass
161
162 class wxIcon(wxIconPtr):
163 def __init__(self,*_args,**_kwargs):
164 self.this = apply(gdic.new_wxIcon,_args,_kwargs)
165 self.thisown = 1
166
167
168
169
170 class wxCursorPtr(wxGDIObjectPtr):
171 def __init__(self,this):
172 self.this = this
173 self.thisown = 0
174 def __del__(self,gdic=gdic):
175 if self.thisown == 1 :
176 gdic.delete_wxCursor(self)
177 def Ok(self, *_args, **_kwargs):
178 val = apply(gdic.wxCursor_Ok,(self,) + _args, _kwargs)
179 return val
180 def __repr__(self):
181 return "<C wxCursor instance at %s>" % (self.this,)
182 class wxCursor(wxCursorPtr):
183 def __init__(self,this):
184 self.this = this
185
186
187
188
189 class wxNativeFontInfoPtr :
190 def __init__(self,this):
191 self.this = this
192 self.thisown = 0
193 def FromXFontName(self, *_args, **_kwargs):
194 val = apply(gdic.wxNativeFontInfo_FromXFontName,(self,) + _args, _kwargs)
195 return val
196 def GetXFontName(self, *_args, **_kwargs):
197 val = apply(gdic.wxNativeFontInfo_GetXFontName,(self,) + _args, _kwargs)
198 return val
199 def Init(self, *_args, **_kwargs):
200 val = apply(gdic.wxNativeFontInfo_Init,(self,) + _args, _kwargs)
201 return val
202 def FromString(self, *_args, **_kwargs):
203 val = apply(gdic.wxNativeFontInfo_FromString,(self,) + _args, _kwargs)
204 return val
205 def ToString(self, *_args, **_kwargs):
206 val = apply(gdic.wxNativeFontInfo_ToString,(self,) + _args, _kwargs)
207 return val
208 def __str__(self, *_args, **_kwargs):
209 val = apply(gdic.wxNativeFontInfo___str__,(self,) + _args, _kwargs)
210 return val
211 def FromUserString(self, *_args, **_kwargs):
212 val = apply(gdic.wxNativeFontInfo_FromUserString,(self,) + _args, _kwargs)
213 return val
214 def ToUserString(self, *_args, **_kwargs):
215 val = apply(gdic.wxNativeFontInfo_ToUserString,(self,) + _args, _kwargs)
216 return val
217 def __repr__(self):
218 return "<C wxNativeFontInfo instance at %s>" % (self.this,)
219 class wxNativeFontInfo(wxNativeFontInfoPtr):
220 def __init__(self,*_args,**_kwargs):
221 self.this = apply(gdic.new_wxNativeFontInfo,_args,_kwargs)
222 self.thisown = 1
223
224
225
226
227 class wxFontMapperPtr :
228 def __init__(self,this):
229 self.this = this
230 self.thisown = 0
231 def __del__(self,gdic=gdic):
232 if self.thisown == 1 :
233 gdic.delete_wxFontMapper(self)
234 def GetAltForEncoding(self, *_args, **_kwargs):
235 val = apply(gdic.wxFontMapper_GetAltForEncoding,(self,) + _args, _kwargs)
236 return val
237 def IsEncodingAvailable(self, *_args, **_kwargs):
238 val = apply(gdic.wxFontMapper_IsEncodingAvailable,(self,) + _args, _kwargs)
239 return val
240 def CharsetToEncoding(self, *_args, **_kwargs):
241 val = apply(gdic.wxFontMapper_CharsetToEncoding,(self,) + _args, _kwargs)
242 return val
243 def SetDialogParent(self, *_args, **_kwargs):
244 val = apply(gdic.wxFontMapper_SetDialogParent,(self,) + _args, _kwargs)
245 return val
246 def SetDialogTitle(self, *_args, **_kwargs):
247 val = apply(gdic.wxFontMapper_SetDialogTitle,(self,) + _args, _kwargs)
248 return val
249 def SetConfig(self, *_args, **_kwargs):
250 val = apply(gdic.wxFontMapper_SetConfig,(self,) + _args, _kwargs)
251 return val
252 def SetConfigPath(self, *_args, **_kwargs):
253 val = apply(gdic.wxFontMapper_SetConfigPath,(self,) + _args, _kwargs)
254 return val
255 def __repr__(self):
256 return "<C wxFontMapper instance at %s>" % (self.this,)
257 class wxFontMapper(wxFontMapperPtr):
258 def __init__(self,*_args,**_kwargs):
259 self.this = apply(gdic.new_wxFontMapper,_args,_kwargs)
260 self.thisown = 1
261
262
263
264
265 class wxFontPtr(wxGDIObjectPtr):
266 def __init__(self,this):
267 self.this = this
268 self.thisown = 0
269 def __del__(self,gdic=gdic):
270 if self.thisown == 1 :
271 gdic.delete_wxFont(self)
272 def Ok(self, *_args, **_kwargs):
273 val = apply(gdic.wxFont_Ok,(self,) + _args, _kwargs)
274 return val
275 def GetPointSize(self, *_args, **_kwargs):
276 val = apply(gdic.wxFont_GetPointSize,(self,) + _args, _kwargs)
277 return val
278 def GetFamily(self, *_args, **_kwargs):
279 val = apply(gdic.wxFont_GetFamily,(self,) + _args, _kwargs)
280 return val
281 def GetStyle(self, *_args, **_kwargs):
282 val = apply(gdic.wxFont_GetStyle,(self,) + _args, _kwargs)
283 return val
284 def GetWeight(self, *_args, **_kwargs):
285 val = apply(gdic.wxFont_GetWeight,(self,) + _args, _kwargs)
286 return val
287 def GetUnderlined(self, *_args, **_kwargs):
288 val = apply(gdic.wxFont_GetUnderlined,(self,) + _args, _kwargs)
289 return val
290 def GetFaceName(self, *_args, **_kwargs):
291 val = apply(gdic.wxFont_GetFaceName,(self,) + _args, _kwargs)
292 return val
293 def GetEncoding(self, *_args, **_kwargs):
294 val = apply(gdic.wxFont_GetEncoding,(self,) + _args, _kwargs)
295 return val
296 def GetNativeFontInfo(self, *_args, **_kwargs):
297 val = apply(gdic.wxFont_GetNativeFontInfo,(self,) + _args, _kwargs)
298 if val: val = wxNativeFontInfoPtr(val)
299 return val
300 def GetNativeFontInfoDesc(self, *_args, **_kwargs):
301 val = apply(gdic.wxFont_GetNativeFontInfoDesc,(self,) + _args, _kwargs)
302 return val
303 def GetNativeFontInfoUserDesc(self, *_args, **_kwargs):
304 val = apply(gdic.wxFont_GetNativeFontInfoUserDesc,(self,) + _args, _kwargs)
305 return val
306 def SetPointSize(self, *_args, **_kwargs):
307 val = apply(gdic.wxFont_SetPointSize,(self,) + _args, _kwargs)
308 return val
309 def SetFamily(self, *_args, **_kwargs):
310 val = apply(gdic.wxFont_SetFamily,(self,) + _args, _kwargs)
311 return val
312 def SetStyle(self, *_args, **_kwargs):
313 val = apply(gdic.wxFont_SetStyle,(self,) + _args, _kwargs)
314 return val
315 def SetWeight(self, *_args, **_kwargs):
316 val = apply(gdic.wxFont_SetWeight,(self,) + _args, _kwargs)
317 return val
318 def SetFaceName(self, *_args, **_kwargs):
319 val = apply(gdic.wxFont_SetFaceName,(self,) + _args, _kwargs)
320 return val
321 def SetUnderlined(self, *_args, **_kwargs):
322 val = apply(gdic.wxFont_SetUnderlined,(self,) + _args, _kwargs)
323 return val
324 def SetEncoding(self, *_args, **_kwargs):
325 val = apply(gdic.wxFont_SetEncoding,(self,) + _args, _kwargs)
326 return val
327 def SetNativeFontInfo(self, *_args, **_kwargs):
328 val = apply(gdic.wxFont_SetNativeFontInfo,(self,) + _args, _kwargs)
329 return val
330 def SetNativeFontInfoUserDesc(self, *_args, **_kwargs):
331 val = apply(gdic.wxFont_SetNativeFontInfoUserDesc,(self,) + _args, _kwargs)
332 return val
333 def GetFamilyString(self, *_args, **_kwargs):
334 val = apply(gdic.wxFont_GetFamilyString,(self,) + _args, _kwargs)
335 return val
336 def GetStyleString(self, *_args, **_kwargs):
337 val = apply(gdic.wxFont_GetStyleString,(self,) + _args, _kwargs)
338 return val
339 def GetWeightString(self, *_args, **_kwargs):
340 val = apply(gdic.wxFont_GetWeightString,(self,) + _args, _kwargs)
341 return val
342 def __repr__(self):
343 return "<C wxFont instance at %s>" % (self.this,)
344 class wxFont(wxFontPtr):
345 def __init__(self,*_args,**_kwargs):
346 self.this = apply(gdic.new_wxFont,_args,_kwargs)
347 self.thisown = 1
348
349
350
351 def wxFontFromNativeInfo(*_args,**_kwargs):
352 val = wxFontPtr(apply(gdic.new_wxFontFromNativeInfo,_args,_kwargs))
353 val.thisown = 1
354 return val
355
356
357 class wxFontListPtr(wxObjectPtr):
358 def __init__(self,this):
359 self.this = this
360 self.thisown = 0
361 def AddFont(self, *_args, **_kwargs):
362 val = apply(gdic.wxFontList_AddFont,(self,) + _args, _kwargs)
363 return val
364 def FindOrCreateFont(self, *_args, **_kwargs):
365 val = apply(gdic.wxFontList_FindOrCreateFont,(self,) + _args, _kwargs)
366 if val: val = wxFontPtr(val)
367 return val
368 def RemoveFont(self, *_args, **_kwargs):
369 val = apply(gdic.wxFontList_RemoveFont,(self,) + _args, _kwargs)
370 return val
371 def GetCount(self, *_args, **_kwargs):
372 val = apply(gdic.wxFontList_GetCount,(self,) + _args, _kwargs)
373 return val
374 def __repr__(self):
375 return "<C wxFontList instance at %s>" % (self.this,)
376 class wxFontList(wxFontListPtr):
377 def __init__(self,this):
378 self.this = this
379
380
381
382
383 class wxColourPtr(wxObjectPtr):
384 def __init__(self,this):
385 self.this = this
386 self.thisown = 0
387 def __del__(self,gdic=gdic):
388 if self.thisown == 1 :
389 gdic.delete_wxColour(self)
390 def Red(self, *_args, **_kwargs):
391 val = apply(gdic.wxColour_Red,(self,) + _args, _kwargs)
392 return val
393 def Green(self, *_args, **_kwargs):
394 val = apply(gdic.wxColour_Green,(self,) + _args, _kwargs)
395 return val
396 def Blue(self, *_args, **_kwargs):
397 val = apply(gdic.wxColour_Blue,(self,) + _args, _kwargs)
398 return val
399 def Ok(self, *_args, **_kwargs):
400 val = apply(gdic.wxColour_Ok,(self,) + _args, _kwargs)
401 return val
402 def Set(self, *_args, **_kwargs):
403 val = apply(gdic.wxColour_Set,(self,) + _args, _kwargs)
404 return val
405 def Get(self, *_args, **_kwargs):
406 val = apply(gdic.wxColour_Get,(self,) + _args, _kwargs)
407 return val
408 def __repr__(self):
409 return "<C wxColour instance at %s>" % (self.this,)
410 asTuple = Get
411 def __str__(self): return str(self.asTuple())
412 def __repr__(self): return str(self.asTuple())
413 class wxColour(wxColourPtr):
414 def __init__(self,*_args,**_kwargs):
415 self.this = apply(gdic.new_wxColour,_args,_kwargs)
416 self.thisown = 1
417
418
419
420
421 class wxColourDatabasePtr(wxObjectPtr):
422 def __init__(self,this):
423 self.this = this
424 self.thisown = 0
425 def FindColour(self, *_args, **_kwargs):
426 val = apply(gdic.wxColourDatabase_FindColour,(self,) + _args, _kwargs)
427 if val: val = wxColourPtr(val)
428 return val
429 def FindName(self, *_args, **_kwargs):
430 val = apply(gdic.wxColourDatabase_FindName,(self,) + _args, _kwargs)
431 return val
432 def Append(self, *_args, **_kwargs):
433 val = apply(gdic.wxColourDatabase_Append,(self,) + _args, _kwargs)
434 return val
435 def __repr__(self):
436 return "<C wxColourDatabase instance at %s>" % (self.this,)
437 class wxColourDatabase(wxColourDatabasePtr):
438 def __init__(self,this):
439 self.this = this
440
441
442
443
444 class wxPenPtr(wxGDIObjectPtr):
445 def __init__(self,this):
446 self.this = this
447 self.thisown = 0
448 def __del__(self,gdic=gdic):
449 if self.thisown == 1 :
450 gdic.delete_wxPen(self)
451 def GetCap(self, *_args, **_kwargs):
452 val = apply(gdic.wxPen_GetCap,(self,) + _args, _kwargs)
453 return val
454 def GetColour(self, *_args, **_kwargs):
455 val = apply(gdic.wxPen_GetColour,(self,) + _args, _kwargs)
456 if val: val = wxColourPtr(val) ; val.thisown = 1
457 return val
458 def GetJoin(self, *_args, **_kwargs):
459 val = apply(gdic.wxPen_GetJoin,(self,) + _args, _kwargs)
460 return val
461 def GetStyle(self, *_args, **_kwargs):
462 val = apply(gdic.wxPen_GetStyle,(self,) + _args, _kwargs)
463 return val
464 def GetWidth(self, *_args, **_kwargs):
465 val = apply(gdic.wxPen_GetWidth,(self,) + _args, _kwargs)
466 return val
467 def Ok(self, *_args, **_kwargs):
468 val = apply(gdic.wxPen_Ok,(self,) + _args, _kwargs)
469 return val
470 def SetCap(self, *_args, **_kwargs):
471 val = apply(gdic.wxPen_SetCap,(self,) + _args, _kwargs)
472 return val
473 def SetColour(self, *_args, **_kwargs):
474 val = apply(gdic.wxPen_SetColour,(self,) + _args, _kwargs)
475 return val
476 def SetJoin(self, *_args, **_kwargs):
477 val = apply(gdic.wxPen_SetJoin,(self,) + _args, _kwargs)
478 return val
479 def SetStyle(self, *_args, **_kwargs):
480 val = apply(gdic.wxPen_SetStyle,(self,) + _args, _kwargs)
481 return val
482 def SetWidth(self, *_args, **_kwargs):
483 val = apply(gdic.wxPen_SetWidth,(self,) + _args, _kwargs)
484 return val
485 def SetDashes(self, *_args, **_kwargs):
486 val = apply(gdic.wxPen_SetDashes,(self,) + _args, _kwargs)
487 return val
488 def __repr__(self):
489 return "<C wxPen instance at %s>" % (self.this,)
490 class wxPen(wxPenPtr):
491 def __init__(self,*_args,**_kwargs):
492 self.this = apply(gdic.new_wxPen,_args,_kwargs)
493 self.thisown = 1
494
495
496
497
498 class wxPyPenPtr(wxPenPtr):
499 def __init__(self,this):
500 self.this = this
501 self.thisown = 0
502 def __del__(self,gdic=gdic):
503 if self.thisown == 1 :
504 gdic.delete_wxPyPen(self)
505 def SetDashes(self, *_args, **_kwargs):
506 val = apply(gdic.wxPyPen_SetDashes,(self,) + _args, _kwargs)
507 return val
508 def __repr__(self):
509 return "<C wxPyPen instance at %s>" % (self.this,)
510 class wxPyPen(wxPyPenPtr):
511 def __init__(self,*_args,**_kwargs):
512 self.this = apply(gdic.new_wxPyPen,_args,_kwargs)
513 self.thisown = 1
514
515
516
517
518 class wxPenListPtr(wxObjectPtr):
519 def __init__(self,this):
520 self.this = this
521 self.thisown = 0
522 def AddPen(self, *_args, **_kwargs):
523 val = apply(gdic.wxPenList_AddPen,(self,) + _args, _kwargs)
524 return val
525 def FindOrCreatePen(self, *_args, **_kwargs):
526 val = apply(gdic.wxPenList_FindOrCreatePen,(self,) + _args, _kwargs)
527 if val: val = wxPenPtr(val)
528 return val
529 def RemovePen(self, *_args, **_kwargs):
530 val = apply(gdic.wxPenList_RemovePen,(self,) + _args, _kwargs)
531 return val
532 def GetCount(self, *_args, **_kwargs):
533 val = apply(gdic.wxPenList_GetCount,(self,) + _args, _kwargs)
534 return val
535 def __repr__(self):
536 return "<C wxPenList instance at %s>" % (self.this,)
537 class wxPenList(wxPenListPtr):
538 def __init__(self,this):
539 self.this = this
540
541
542
543
544 class wxBrushPtr(wxGDIObjectPtr):
545 def __init__(self,this):
546 self.this = this
547 self.thisown = 0
548 def __del__(self,gdic=gdic):
549 if self.thisown == 1 :
550 gdic.delete_wxBrush(self)
551 def GetColour(self, *_args, **_kwargs):
552 val = apply(gdic.wxBrush_GetColour,(self,) + _args, _kwargs)
553 if val: val = wxColourPtr(val) ; val.thisown = 1
554 return val
555 def GetStipple(self, *_args, **_kwargs):
556 val = apply(gdic.wxBrush_GetStipple,(self,) + _args, _kwargs)
557 if val: val = wxBitmapPtr(val)
558 return val
559 def GetStyle(self, *_args, **_kwargs):
560 val = apply(gdic.wxBrush_GetStyle,(self,) + _args, _kwargs)
561 return val
562 def Ok(self, *_args, **_kwargs):
563 val = apply(gdic.wxBrush_Ok,(self,) + _args, _kwargs)
564 return val
565 def SetColour(self, *_args, **_kwargs):
566 val = apply(gdic.wxBrush_SetColour,(self,) + _args, _kwargs)
567 return val
568 def SetStipple(self, *_args, **_kwargs):
569 val = apply(gdic.wxBrush_SetStipple,(self,) + _args, _kwargs)
570 return val
571 def SetStyle(self, *_args, **_kwargs):
572 val = apply(gdic.wxBrush_SetStyle,(self,) + _args, _kwargs)
573 return val
574 def __repr__(self):
575 return "<C wxBrush instance at %s>" % (self.this,)
576 class wxBrush(wxBrushPtr):
577 def __init__(self,*_args,**_kwargs):
578 self.this = apply(gdic.new_wxBrush,_args,_kwargs)
579 self.thisown = 1
580
581
582
583
584 class wxBrushListPtr(wxObjectPtr):
585 def __init__(self,this):
586 self.this = this
587 self.thisown = 0
588 def AddBrush(self, *_args, **_kwargs):
589 val = apply(gdic.wxBrushList_AddBrush,(self,) + _args, _kwargs)
590 return val
591 def FindOrCreateBrush(self, *_args, **_kwargs):
592 val = apply(gdic.wxBrushList_FindOrCreateBrush,(self,) + _args, _kwargs)
593 if val: val = wxBrushPtr(val)
594 return val
595 def RemoveBrush(self, *_args, **_kwargs):
596 val = apply(gdic.wxBrushList_RemoveBrush,(self,) + _args, _kwargs)
597 return val
598 def GetCount(self, *_args, **_kwargs):
599 val = apply(gdic.wxBrushList_GetCount,(self,) + _args, _kwargs)
600 return val
601 def __repr__(self):
602 return "<C wxBrushList instance at %s>" % (self.this,)
603 class wxBrushList(wxBrushListPtr):
604 def __init__(self,this):
605 self.this = this
606
607
608
609
610 class wxDCPtr(wxObjectPtr):
611 def __init__(self,this):
612 self.this = this
613 self.thisown = 0
614 def __del__(self,gdic=gdic):
615 if self.thisown == 1 :
616 gdic.delete_wxDC(self)
617 def BeginDrawing(self, *_args, **_kwargs):
618 val = apply(gdic.wxDC_BeginDrawing,(self,) + _args, _kwargs)
619 return val
620 def Blit(self, *_args, **_kwargs):
621 val = apply(gdic.wxDC_Blit,(self,) + _args, _kwargs)
622 return val
623 def Clear(self, *_args, **_kwargs):
624 val = apply(gdic.wxDC_Clear,(self,) + _args, _kwargs)
625 return val
626 def CrossHair(self, *_args, **_kwargs):
627 val = apply(gdic.wxDC_CrossHair,(self,) + _args, _kwargs)
628 return val
629 def DestroyClippingRegion(self, *_args, **_kwargs):
630 val = apply(gdic.wxDC_DestroyClippingRegion,(self,) + _args, _kwargs)
631 return val
632 def DeviceToLogicalX(self, *_args, **_kwargs):
633 val = apply(gdic.wxDC_DeviceToLogicalX,(self,) + _args, _kwargs)
634 return val
635 def DeviceToLogicalXRel(self, *_args, **_kwargs):
636 val = apply(gdic.wxDC_DeviceToLogicalXRel,(self,) + _args, _kwargs)
637 return val
638 def DeviceToLogicalY(self, *_args, **_kwargs):
639 val = apply(gdic.wxDC_DeviceToLogicalY,(self,) + _args, _kwargs)
640 return val
641 def DeviceToLogicalYRel(self, *_args, **_kwargs):
642 val = apply(gdic.wxDC_DeviceToLogicalYRel,(self,) + _args, _kwargs)
643 return val
644 def DrawArc(self, *_args, **_kwargs):
645 val = apply(gdic.wxDC_DrawArc,(self,) + _args, _kwargs)
646 return val
647 def DrawCircle(self, *_args, **_kwargs):
648 val = apply(gdic.wxDC_DrawCircle,(self,) + _args, _kwargs)
649 return val
650 def DrawEllipse(self, *_args, **_kwargs):
651 val = apply(gdic.wxDC_DrawEllipse,(self,) + _args, _kwargs)
652 return val
653 def DrawEllipticArc(self, *_args, **_kwargs):
654 val = apply(gdic.wxDC_DrawEllipticArc,(self,) + _args, _kwargs)
655 return val
656 def DrawIcon(self, *_args, **_kwargs):
657 val = apply(gdic.wxDC_DrawIcon,(self,) + _args, _kwargs)
658 return val
659 def DrawLine(self, *_args, **_kwargs):
660 val = apply(gdic.wxDC_DrawLine,(self,) + _args, _kwargs)
661 return val
662 def DrawLines(self, *_args, **_kwargs):
663 val = apply(gdic.wxDC_DrawLines,(self,) + _args, _kwargs)
664 return val
665 def DrawPolygon(self, *_args, **_kwargs):
666 val = apply(gdic.wxDC_DrawPolygon,(self,) + _args, _kwargs)
667 return val
668 def DrawPoint(self, *_args, **_kwargs):
669 val = apply(gdic.wxDC_DrawPoint,(self,) + _args, _kwargs)
670 return val
671 def DrawRectangle(self, *_args, **_kwargs):
672 val = apply(gdic.wxDC_DrawRectangle,(self,) + _args, _kwargs)
673 return val
674 def DrawRotatedText(self, *_args, **_kwargs):
675 val = apply(gdic.wxDC_DrawRotatedText,(self,) + _args, _kwargs)
676 return val
677 def DrawRoundedRectangle(self, *_args, **_kwargs):
678 val = apply(gdic.wxDC_DrawRoundedRectangle,(self,) + _args, _kwargs)
679 return val
680 def DrawSpline(self, *_args, **_kwargs):
681 val = apply(gdic.wxDC_DrawSpline,(self,) + _args, _kwargs)
682 return val
683 def DrawText(self, *_args, **_kwargs):
684 val = apply(gdic.wxDC_DrawText,(self,) + _args, _kwargs)
685 return val
686 def EndDoc(self, *_args, **_kwargs):
687 val = apply(gdic.wxDC_EndDoc,(self,) + _args, _kwargs)
688 return val
689 def EndDrawing(self, *_args, **_kwargs):
690 val = apply(gdic.wxDC_EndDrawing,(self,) + _args, _kwargs)
691 return val
692 def EndPage(self, *_args, **_kwargs):
693 val = apply(gdic.wxDC_EndPage,(self,) + _args, _kwargs)
694 return val
695 def FloodFill(self, *_args, **_kwargs):
696 val = apply(gdic.wxDC_FloodFill,(self,) + _args, _kwargs)
697 return val
698 def GetBackground(self, *_args, **_kwargs):
699 val = apply(gdic.wxDC_GetBackground,(self,) + _args, _kwargs)
700 if val: val = wxBrushPtr(val) ; val.thisown = 1
701 return val
702 def GetBrush(self, *_args, **_kwargs):
703 val = apply(gdic.wxDC_GetBrush,(self,) + _args, _kwargs)
704 if val: val = wxBrushPtr(val) ; val.thisown = 1
705 return val
706 def GetCharHeight(self, *_args, **_kwargs):
707 val = apply(gdic.wxDC_GetCharHeight,(self,) + _args, _kwargs)
708 return val
709 def GetCharWidth(self, *_args, **_kwargs):
710 val = apply(gdic.wxDC_GetCharWidth,(self,) + _args, _kwargs)
711 return val
712 def GetClippingBox(self, *_args, **_kwargs):
713 val = apply(gdic.wxDC_GetClippingBox,(self,) + _args, _kwargs)
714 return val
715 def GetFont(self, *_args, **_kwargs):
716 val = apply(gdic.wxDC_GetFont,(self,) + _args, _kwargs)
717 if val: val = wxFontPtr(val) ; val.thisown = 1
718 return val
719 def GetLogicalFunction(self, *_args, **_kwargs):
720 val = apply(gdic.wxDC_GetLogicalFunction,(self,) + _args, _kwargs)
721 return val
722 def GetLogicalScale(self, *_args, **_kwargs):
723 val = apply(gdic.wxDC_GetLogicalScale,(self,) + _args, _kwargs)
724 return val
725 def GetMapMode(self, *_args, **_kwargs):
726 val = apply(gdic.wxDC_GetMapMode,(self,) + _args, _kwargs)
727 return val
728 def GetOptimization(self, *_args, **_kwargs):
729 val = apply(gdic.wxDC_GetOptimization,(self,) + _args, _kwargs)
730 return val
731 def GetPen(self, *_args, **_kwargs):
732 val = apply(gdic.wxDC_GetPen,(self,) + _args, _kwargs)
733 if val: val = wxPenPtr(val) ; val.thisown = 1
734 return val
735 def GetPixel(self, *_args, **_kwargs):
736 val = apply(gdic.wxDC_GetPixel,(self,) + _args, _kwargs)
737 if val: val = wxColourPtr(val) ; val.thisown = 1
738 return val
739 def GetSizeTuple(self, *_args, **_kwargs):
740 val = apply(gdic.wxDC_GetSizeTuple,(self,) + _args, _kwargs)
741 return val
742 def GetSize(self, *_args, **_kwargs):
743 val = apply(gdic.wxDC_GetSize,(self,) + _args, _kwargs)
744 if val: val = wxSizePtr(val) ; val.thisown = 1
745 return val
746 def GetSizeMM(self, *_args, **_kwargs):
747 val = apply(gdic.wxDC_GetSizeMM,(self,) + _args, _kwargs)
748 if val: val = wxSizePtr(val) ; val.thisown = 1
749 return val
750 def GetTextBackground(self, *_args, **_kwargs):
751 val = apply(gdic.wxDC_GetTextBackground,(self,) + _args, _kwargs)
752 if val: val = wxColourPtr(val) ; val.thisown = 1
753 return val
754 def GetTextExtent(self, *_args, **_kwargs):
755 val = apply(gdic.wxDC_GetTextExtent,(self,) + _args, _kwargs)
756 return val
757 def GetFullTextExtent(self, *_args, **_kwargs):
758 val = apply(gdic.wxDC_GetFullTextExtent,(self,) + _args, _kwargs)
759 return val
760 def GetTextForeground(self, *_args, **_kwargs):
761 val = apply(gdic.wxDC_GetTextForeground,(self,) + _args, _kwargs)
762 if val: val = wxColourPtr(val) ; val.thisown = 1
763 return val
764 def GetUserScale(self, *_args, **_kwargs):
765 val = apply(gdic.wxDC_GetUserScale,(self,) + _args, _kwargs)
766 return val
767 def LogicalToDeviceX(self, *_args, **_kwargs):
768 val = apply(gdic.wxDC_LogicalToDeviceX,(self,) + _args, _kwargs)
769 return val
770 def LogicalToDeviceXRel(self, *_args, **_kwargs):
771 val = apply(gdic.wxDC_LogicalToDeviceXRel,(self,) + _args, _kwargs)
772 return val
773 def LogicalToDeviceY(self, *_args, **_kwargs):
774 val = apply(gdic.wxDC_LogicalToDeviceY,(self,) + _args, _kwargs)
775 return val
776 def LogicalToDeviceYRel(self, *_args, **_kwargs):
777 val = apply(gdic.wxDC_LogicalToDeviceYRel,(self,) + _args, _kwargs)
778 return val
779 def MaxX(self, *_args, **_kwargs):
780 val = apply(gdic.wxDC_MaxX,(self,) + _args, _kwargs)
781 return val
782 def MaxY(self, *_args, **_kwargs):
783 val = apply(gdic.wxDC_MaxY,(self,) + _args, _kwargs)
784 return val
785 def MinX(self, *_args, **_kwargs):
786 val = apply(gdic.wxDC_MinX,(self,) + _args, _kwargs)
787 return val
788 def MinY(self, *_args, **_kwargs):
789 val = apply(gdic.wxDC_MinY,(self,) + _args, _kwargs)
790 return val
791 def Ok(self, *_args, **_kwargs):
792 val = apply(gdic.wxDC_Ok,(self,) + _args, _kwargs)
793 return val
794 def SetDeviceOrigin(self, *_args, **_kwargs):
795 val = apply(gdic.wxDC_SetDeviceOrigin,(self,) + _args, _kwargs)
796 return val
797 def SetBackground(self, *_args, **_kwargs):
798 val = apply(gdic.wxDC_SetBackground,(self,) + _args, _kwargs)
799 return val
800 def SetBackgroundMode(self, *_args, **_kwargs):
801 val = apply(gdic.wxDC_SetBackgroundMode,(self,) + _args, _kwargs)
802 return val
803 def SetClippingRegion(self, *_args, **_kwargs):
804 val = apply(gdic.wxDC_SetClippingRegion,(self,) + _args, _kwargs)
805 return val
806 def SetClippingRegionAsRegion(self, *_args, **_kwargs):
807 val = apply(gdic.wxDC_SetClippingRegionAsRegion,(self,) + _args, _kwargs)
808 return val
809 def SetPalette(self, *_args, **_kwargs):
810 val = apply(gdic.wxDC_SetPalette,(self,) + _args, _kwargs)
811 return val
812 def SetBrush(self, *_args, **_kwargs):
813 val = apply(gdic.wxDC_SetBrush,(self,) + _args, _kwargs)
814 return val
815 def SetFont(self, *_args, **_kwargs):
816 val = apply(gdic.wxDC_SetFont,(self,) + _args, _kwargs)
817 return val
818 def SetLogicalFunction(self, *_args, **_kwargs):
819 val = apply(gdic.wxDC_SetLogicalFunction,(self,) + _args, _kwargs)
820 return val
821 def SetLogicalScale(self, *_args, **_kwargs):
822 val = apply(gdic.wxDC_SetLogicalScale,(self,) + _args, _kwargs)
823 return val
824 def SetMapMode(self, *_args, **_kwargs):
825 val = apply(gdic.wxDC_SetMapMode,(self,) + _args, _kwargs)
826 return val
827 def SetOptimization(self, *_args, **_kwargs):
828 val = apply(gdic.wxDC_SetOptimization,(self,) + _args, _kwargs)
829 return val
830 def SetPen(self, *_args, **_kwargs):
831 val = apply(gdic.wxDC_SetPen,(self,) + _args, _kwargs)
832 return val
833 def SetTextBackground(self, *_args, **_kwargs):
834 val = apply(gdic.wxDC_SetTextBackground,(self,) + _args, _kwargs)
835 return val
836 def SetTextForeground(self, *_args, **_kwargs):
837 val = apply(gdic.wxDC_SetTextForeground,(self,) + _args, _kwargs)
838 return val
839 def SetUserScale(self, *_args, **_kwargs):
840 val = apply(gdic.wxDC_SetUserScale,(self,) + _args, _kwargs)
841 return val
842 def StartDoc(self, *_args, **_kwargs):
843 val = apply(gdic.wxDC_StartDoc,(self,) + _args, _kwargs)
844 return val
845 def StartPage(self, *_args, **_kwargs):
846 val = apply(gdic.wxDC_StartPage,(self,) + _args, _kwargs)
847 return val
848 def DrawBitmap(self, *_args, **_kwargs):
849 val = apply(gdic.wxDC_DrawBitmap,(self,) + _args, _kwargs)
850 return val
851 def CanDrawBitmap(self, *_args, **_kwargs):
852 val = apply(gdic.wxDC_CanDrawBitmap,(self,) + _args, _kwargs)
853 return val
854 def CanGetTextExtent(self, *_args, **_kwargs):
855 val = apply(gdic.wxDC_CanGetTextExtent,(self,) + _args, _kwargs)
856 return val
857 def GetDepth(self, *_args, **_kwargs):
858 val = apply(gdic.wxDC_GetDepth,(self,) + _args, _kwargs)
859 return val
860 def GetPPI(self, *_args, **_kwargs):
861 val = apply(gdic.wxDC_GetPPI,(self,) + _args, _kwargs)
862 if val: val = wxSizePtr(val) ; val.thisown = 1
863 return val
864 def GetLogicalOrigin(self, *_args, **_kwargs):
865 val = apply(gdic.wxDC_GetLogicalOrigin,(self,) + _args, _kwargs)
866 return val
867 def SetLogicalOrigin(self, *_args, **_kwargs):
868 val = apply(gdic.wxDC_SetLogicalOrigin,(self,) + _args, _kwargs)
869 return val
870 def GetDeviceOrigin(self, *_args, **_kwargs):
871 val = apply(gdic.wxDC_GetDeviceOrigin,(self,) + _args, _kwargs)
872 return val
873 def SetAxisOrientation(self, *_args, **_kwargs):
874 val = apply(gdic.wxDC_SetAxisOrientation,(self,) + _args, _kwargs)
875 return val
876 def CalcBoundingBox(self, *_args, **_kwargs):
877 val = apply(gdic.wxDC_CalcBoundingBox,(self,) + _args, _kwargs)
878 return val
879 def ResetBoundingBox(self, *_args, **_kwargs):
880 val = apply(gdic.wxDC_ResetBoundingBox,(self,) + _args, _kwargs)
881 return val
882 def GetBoundingBox(self, *_args, **_kwargs):
883 val = apply(gdic.wxDC_GetBoundingBox,(self,) + _args, _kwargs)
884 return val
885 def _DrawPointList(self, *_args, **_kwargs):
886 val = apply(gdic.wxDC__DrawPointList,(self,) + _args, _kwargs)
887 return val
888 def _DrawLineList(self, *_args, **_kwargs):
889 val = apply(gdic.wxDC__DrawLineList,(self,) + _args, _kwargs)
890 return val
891 def __repr__(self):
892 return "<C wxDC instance at %s>" % (self.this,)
893
894 def DrawPointList(self, points, pens=None):
895 if pens is None:
896 pens = []
897 elif isinstance(pens, wxPenPtr):
898 pens = [pens]
899 elif len(pens) != len(points):
900 raise ValueError('points and pens must have same length')
901 return self._DrawPointList(points, pens)
902
903 def DrawLineList(self, lines, pens=None):
904 if pens is None:
905 pens = []
906 elif isinstance(pens, wxPenPtr):
907 pens = [pens]
908 elif len(pens) != len(lines):
909 raise ValueError('lines and pens must have same length')
910 return self._DrawLineList(lines, pens)
911
912 class wxDC(wxDCPtr):
913 def __init__(self,this):
914 self.this = this
915
916
917
918
919 class wxMemoryDCPtr(wxDCPtr):
920 def __init__(self,this):
921 self.this = this
922 self.thisown = 0
923 def SelectObject(self, *_args, **_kwargs):
924 val = apply(gdic.wxMemoryDC_SelectObject,(self,) + _args, _kwargs)
925 return val
926 def __repr__(self):
927 return "<C wxMemoryDC instance at %s>" % (self.this,)
928 class wxMemoryDC(wxMemoryDCPtr):
929 def __init__(self,*_args,**_kwargs):
930 self.this = apply(gdic.new_wxMemoryDC,_args,_kwargs)
931 self.thisown = 1
932
933
934
935
936 class wxScreenDCPtr(wxDCPtr):
937 def __init__(self,this):
938 self.this = this
939 self.thisown = 0
940 def StartDrawingOnTopWin(self, *_args, **_kwargs):
941 val = apply(gdic.wxScreenDC_StartDrawingOnTopWin,(self,) + _args, _kwargs)
942 return val
943 def StartDrawingOnTop(self, *_args, **_kwargs):
944 val = apply(gdic.wxScreenDC_StartDrawingOnTop,(self,) + _args, _kwargs)
945 return val
946 def EndDrawingOnTop(self, *_args, **_kwargs):
947 val = apply(gdic.wxScreenDC_EndDrawingOnTop,(self,) + _args, _kwargs)
948 return val
949 def __repr__(self):
950 return "<C wxScreenDC instance at %s>" % (self.this,)
951 class wxScreenDC(wxScreenDCPtr):
952 def __init__(self,*_args,**_kwargs):
953 self.this = apply(gdic.new_wxScreenDC,_args,_kwargs)
954 self.thisown = 1
955
956
957
958
959 class wxClientDCPtr(wxDCPtr):
960 def __init__(self,this):
961 self.this = this
962 self.thisown = 0
963 def __repr__(self):
964 return "<C wxClientDC instance at %s>" % (self.this,)
965 class wxClientDC(wxClientDCPtr):
966 def __init__(self,*_args,**_kwargs):
967 self.this = apply(gdic.new_wxClientDC,_args,_kwargs)
968 self.thisown = 1
969
970
971
972
973 class wxPaintDCPtr(wxDCPtr):
974 def __init__(self,this):
975 self.this = this
976 self.thisown = 0
977 def __repr__(self):
978 return "<C wxPaintDC instance at %s>" % (self.this,)
979 class wxPaintDC(wxPaintDCPtr):
980 def __init__(self,*_args,**_kwargs):
981 self.this = apply(gdic.new_wxPaintDC,_args,_kwargs)
982 self.thisown = 1
983
984
985
986
987 class wxWindowDCPtr(wxDCPtr):
988 def __init__(self,this):
989 self.this = this
990 self.thisown = 0
991 def __repr__(self):
992 return "<C wxWindowDC instance at %s>" % (self.this,)
993 class wxWindowDC(wxWindowDCPtr):
994 def __init__(self,*_args,**_kwargs):
995 self.this = apply(gdic.new_wxWindowDC,_args,_kwargs)
996 self.thisown = 1
997
998
999
1000
1001 class wxPalettePtr(wxGDIObjectPtr):
1002 def __init__(self,this):
1003 self.this = this
1004 self.thisown = 0
1005 def __del__(self,gdic=gdic):
1006 if self.thisown == 1 :
1007 gdic.delete_wxPalette(self)
1008 def GetPixel(self, *_args, **_kwargs):
1009 val = apply(gdic.wxPalette_GetPixel,(self,) + _args, _kwargs)
1010 return val
1011 def GetRGB(self, *_args, **_kwargs):
1012 val = apply(gdic.wxPalette_GetRGB,(self,) + _args, _kwargs)
1013 return val
1014 def Ok(self, *_args, **_kwargs):
1015 val = apply(gdic.wxPalette_Ok,(self,) + _args, _kwargs)
1016 return val
1017 def __repr__(self):
1018 return "<C wxPalette instance at %s>" % (self.this,)
1019 class wxPalette(wxPalettePtr):
1020 def __init__(self,*_args,**_kwargs):
1021 self.this = apply(gdic.new_wxPalette,_args,_kwargs)
1022 self.thisown = 1
1023
1024
1025
1026
1027 class wxImageListPtr(wxObjectPtr):
1028 def __init__(self,this):
1029 self.this = this
1030 self.thisown = 0
1031 def __del__(self,gdic=gdic):
1032 if self.thisown == 1 :
1033 gdic.delete_wxImageList(self)
1034 def Add(self, *_args, **_kwargs):
1035 val = apply(gdic.wxImageList_Add,(self,) + _args, _kwargs)
1036 return val
1037 def AddWithColourMask(self, *_args, **_kwargs):
1038 val = apply(gdic.wxImageList_AddWithColourMask,(self,) + _args, _kwargs)
1039 return val
1040 def AddIcon(self, *_args, **_kwargs):
1041 val = apply(gdic.wxImageList_AddIcon,(self,) + _args, _kwargs)
1042 return val
1043 def Replace(self, *_args, **_kwargs):
1044 val = apply(gdic.wxImageList_Replace,(self,) + _args, _kwargs)
1045 return val
1046 def Draw(self, *_args, **_kwargs):
1047 val = apply(gdic.wxImageList_Draw,(self,) + _args, _kwargs)
1048 return val
1049 def GetImageCount(self, *_args, **_kwargs):
1050 val = apply(gdic.wxImageList_GetImageCount,(self,) + _args, _kwargs)
1051 return val
1052 def Remove(self, *_args, **_kwargs):
1053 val = apply(gdic.wxImageList_Remove,(self,) + _args, _kwargs)
1054 return val
1055 def RemoveAll(self, *_args, **_kwargs):
1056 val = apply(gdic.wxImageList_RemoveAll,(self,) + _args, _kwargs)
1057 return val
1058 def GetSize(self, *_args, **_kwargs):
1059 val = apply(gdic.wxImageList_GetSize,(self,) + _args, _kwargs)
1060 return val
1061 def __repr__(self):
1062 return "<C wxImageList instance at %s>" % (self.this,)
1063 class wxImageList(wxImageListPtr):
1064 def __init__(self,*_args,**_kwargs):
1065 self.this = apply(gdic.new_wxImageList,_args,_kwargs)
1066 self.thisown = 1
1067
1068
1069
1070
1071 class wxRegionPtr(wxGDIObjectPtr):
1072 def __init__(self,this):
1073 self.this = this
1074 self.thisown = 0
1075 def __del__(self,gdic=gdic):
1076 if self.thisown == 1 :
1077 gdic.delete_wxRegion(self)
1078 def Clear(self, *_args, **_kwargs):
1079 val = apply(gdic.wxRegion_Clear,(self,) + _args, _kwargs)
1080 return val
1081 def Contains(self, *_args, **_kwargs):
1082 val = apply(gdic.wxRegion_Contains,(self,) + _args, _kwargs)
1083 return val
1084 def ContainsPoint(self, *_args, **_kwargs):
1085 val = apply(gdic.wxRegion_ContainsPoint,(self,) + _args, _kwargs)
1086 return val
1087 def ContainsRect(self, *_args, **_kwargs):
1088 val = apply(gdic.wxRegion_ContainsRect,(self,) + _args, _kwargs)
1089 return val
1090 def ContainsRectDim(self, *_args, **_kwargs):
1091 val = apply(gdic.wxRegion_ContainsRectDim,(self,) + _args, _kwargs)
1092 return val
1093 def GetBox(self, *_args, **_kwargs):
1094 val = apply(gdic.wxRegion_GetBox,(self,) + _args, _kwargs)
1095 if val: val = wxRectPtr(val) ; val.thisown = 1
1096 return val
1097 def Intersect(self, *_args, **_kwargs):
1098 val = apply(gdic.wxRegion_Intersect,(self,) + _args, _kwargs)
1099 return val
1100 def IntersectRect(self, *_args, **_kwargs):
1101 val = apply(gdic.wxRegion_IntersectRect,(self,) + _args, _kwargs)
1102 return val
1103 def IntersectRegion(self, *_args, **_kwargs):
1104 val = apply(gdic.wxRegion_IntersectRegion,(self,) + _args, _kwargs)
1105 return val
1106 def IsEmpty(self, *_args, **_kwargs):
1107 val = apply(gdic.wxRegion_IsEmpty,(self,) + _args, _kwargs)
1108 return val
1109 def Union(self, *_args, **_kwargs):
1110 val = apply(gdic.wxRegion_Union,(self,) + _args, _kwargs)
1111 return val
1112 def UnionRect(self, *_args, **_kwargs):
1113 val = apply(gdic.wxRegion_UnionRect,(self,) + _args, _kwargs)
1114 return val
1115 def UnionRegion(self, *_args, **_kwargs):
1116 val = apply(gdic.wxRegion_UnionRegion,(self,) + _args, _kwargs)
1117 return val
1118 def Subtract(self, *_args, **_kwargs):
1119 val = apply(gdic.wxRegion_Subtract,(self,) + _args, _kwargs)
1120 return val
1121 def SubtractRect(self, *_args, **_kwargs):
1122 val = apply(gdic.wxRegion_SubtractRect,(self,) + _args, _kwargs)
1123 return val
1124 def SubtractRegion(self, *_args, **_kwargs):
1125 val = apply(gdic.wxRegion_SubtractRegion,(self,) + _args, _kwargs)
1126 return val
1127 def Xor(self, *_args, **_kwargs):
1128 val = apply(gdic.wxRegion_Xor,(self,) + _args, _kwargs)
1129 return val
1130 def XorRect(self, *_args, **_kwargs):
1131 val = apply(gdic.wxRegion_XorRect,(self,) + _args, _kwargs)
1132 return val
1133 def XorRegion(self, *_args, **_kwargs):
1134 val = apply(gdic.wxRegion_XorRegion,(self,) + _args, _kwargs)
1135 return val
1136 def __repr__(self):
1137 return "<C wxRegion instance at %s>" % (self.this,)
1138 class wxRegion(wxRegionPtr):
1139 def __init__(self,*_args,**_kwargs):
1140 self.this = apply(gdic.new_wxRegion,_args,_kwargs)
1141 self.thisown = 1
1142
1143
1144
1145
1146 class wxRegionIteratorPtr(wxObjectPtr):
1147 def __init__(self,this):
1148 self.this = this
1149 self.thisown = 0
1150 def __del__(self,gdic=gdic):
1151 if self.thisown == 1 :
1152 gdic.delete_wxRegionIterator(self)
1153 def GetX(self, *_args, **_kwargs):
1154 val = apply(gdic.wxRegionIterator_GetX,(self,) + _args, _kwargs)
1155 return val
1156 def GetY(self, *_args, **_kwargs):
1157 val = apply(gdic.wxRegionIterator_GetY,(self,) + _args, _kwargs)
1158 return val
1159 def GetW(self, *_args, **_kwargs):
1160 val = apply(gdic.wxRegionIterator_GetW,(self,) + _args, _kwargs)
1161 return val
1162 def GetWidth(self, *_args, **_kwargs):
1163 val = apply(gdic.wxRegionIterator_GetWidth,(self,) + _args, _kwargs)
1164 return val
1165 def GetH(self, *_args, **_kwargs):
1166 val = apply(gdic.wxRegionIterator_GetH,(self,) + _args, _kwargs)
1167 return val
1168 def GetHeight(self, *_args, **_kwargs):
1169 val = apply(gdic.wxRegionIterator_GetHeight,(self,) + _args, _kwargs)
1170 return val
1171 def GetRect(self, *_args, **_kwargs):
1172 val = apply(gdic.wxRegionIterator_GetRect,(self,) + _args, _kwargs)
1173 if val: val = wxRectPtr(val) ; val.thisown = 1
1174 return val
1175 def HaveRects(self, *_args, **_kwargs):
1176 val = apply(gdic.wxRegionIterator_HaveRects,(self,) + _args, _kwargs)
1177 return val
1178 def Reset(self, *_args, **_kwargs):
1179 val = apply(gdic.wxRegionIterator_Reset,(self,) + _args, _kwargs)
1180 return val
1181 def Next(self, *_args, **_kwargs):
1182 val = apply(gdic.wxRegionIterator_Next,(self,) + _args, _kwargs)
1183 return val
1184 def __repr__(self):
1185 return "<C wxRegionIterator instance at %s>" % (self.this,)
1186 class wxRegionIterator(wxRegionIteratorPtr):
1187 def __init__(self,*_args,**_kwargs):
1188 self.this = apply(gdic.new_wxRegionIterator,_args,_kwargs)
1189 self.thisown = 1
1190
1191
1192
1193
1194
1195
1196 #-------------- FUNCTION WRAPPERS ------------------
1197
1198 def wxEmptyBitmap(*_args, **_kwargs):
1199 val = apply(gdic.wxEmptyBitmap,_args,_kwargs)
1200 if val: val = wxBitmapPtr(val); val.thisown = 1
1201 return val
1202
1203 def wxBitmapFromXPMData(*_args, **_kwargs):
1204 val = apply(gdic.wxBitmapFromXPMData,_args,_kwargs)
1205 if val: val = wxBitmapPtr(val); val.thisown = 1
1206 return val
1207
1208 def wxBitmapFromIcon(*_args, **_kwargs):
1209 val = apply(gdic.wxBitmapFromIcon,_args,_kwargs)
1210 if val: val = wxBitmapPtr(val); val.thisown = 1
1211 return val
1212
1213 def wxBitmapFromBits(*_args, **_kwargs):
1214 val = apply(gdic.wxBitmapFromBits,_args,_kwargs)
1215 if val: val = wxBitmapPtr(val); val.thisown = 1
1216 return val
1217
1218 def wxMaskColour(*_args, **_kwargs):
1219 val = apply(gdic.wxMaskColour,_args,_kwargs)
1220 if val: val = wxMaskPtr(val); val.thisown = 1
1221 return val
1222
1223 def wxEmptyIcon(*_args, **_kwargs):
1224 val = apply(gdic.wxEmptyIcon,_args,_kwargs)
1225 if val: val = wxIconPtr(val); val.thisown = 1
1226 return val
1227
1228 def wxIconFromXPMData(*_args, **_kwargs):
1229 val = apply(gdic.wxIconFromXPMData,_args,_kwargs)
1230 if val: val = wxIconPtr(val); val.thisown = 1
1231 return val
1232
1233 def wxStockCursor(*_args, **_kwargs):
1234 val = apply(gdic.wxStockCursor,_args,_kwargs)
1235 if val: val = wxCursorPtr(val); val.thisown = 1
1236 return val
1237
1238 def wxNamedColour(*_args, **_kwargs):
1239 val = apply(gdic.wxNamedColour,_args,_kwargs)
1240 if val: val = wxColourPtr(val); val.thisown = 1
1241 return val
1242
1243 def wxMemoryDCFromDC(*_args, **_kwargs):
1244 val = apply(gdic.wxMemoryDCFromDC,_args,_kwargs)
1245 if val: val = wxMemoryDCPtr(val); val.thisown = 1
1246 return val
1247
1248 wxFontMapper_GetEncodingName = gdic.wxFontMapper_GetEncodingName
1249
1250 wxFontMapper_GetEncodingDescription = gdic.wxFontMapper_GetEncodingDescription
1251
1252 wxFontMapper_GetDefaultConfigPath = gdic.wxFontMapper_GetDefaultConfigPath
1253
1254 wxFont_GetDefaultEncoding = gdic.wxFont_GetDefaultEncoding
1255
1256 wxFont_SetDefaultEncoding = gdic.wxFont_SetDefaultEncoding
1257
1258
1259
1260 #-------------- VARIABLE WRAPPERS ------------------
1261
1262 wxFONTFAMILY_DEFAULT = gdic.wxFONTFAMILY_DEFAULT
1263 wxFONTFAMILY_DECORATIVE = gdic.wxFONTFAMILY_DECORATIVE
1264 wxFONTFAMILY_ROMAN = gdic.wxFONTFAMILY_ROMAN
1265 wxFONTFAMILY_SCRIPT = gdic.wxFONTFAMILY_SCRIPT
1266 wxFONTFAMILY_SWISS = gdic.wxFONTFAMILY_SWISS
1267 wxFONTFAMILY_MODERN = gdic.wxFONTFAMILY_MODERN
1268 wxFONTFAMILY_TELETYPE = gdic.wxFONTFAMILY_TELETYPE
1269 wxFONTFAMILY_MAX = gdic.wxFONTFAMILY_MAX
1270 wxFONTSTYLE_NORMAL = gdic.wxFONTSTYLE_NORMAL
1271 wxFONTSTYLE_ITALIC = gdic.wxFONTSTYLE_ITALIC
1272 wxFONTSTYLE_SLANT = gdic.wxFONTSTYLE_SLANT
1273 wxFONTSTYLE_MAX = gdic.wxFONTSTYLE_MAX
1274 wxFONTWEIGHT_NORMAL = gdic.wxFONTWEIGHT_NORMAL
1275 wxFONTWEIGHT_LIGHT = gdic.wxFONTWEIGHT_LIGHT
1276 wxFONTWEIGHT_BOLD = gdic.wxFONTWEIGHT_BOLD
1277 wxFONTWEIGHT_MAX = gdic.wxFONTWEIGHT_MAX
1278 wxFONTENCODING_SYSTEM = gdic.wxFONTENCODING_SYSTEM
1279 wxFONTENCODING_DEFAULT = gdic.wxFONTENCODING_DEFAULT
1280 wxFONTENCODING_ISO8859_1 = gdic.wxFONTENCODING_ISO8859_1
1281 wxFONTENCODING_ISO8859_2 = gdic.wxFONTENCODING_ISO8859_2
1282 wxFONTENCODING_ISO8859_3 = gdic.wxFONTENCODING_ISO8859_3
1283 wxFONTENCODING_ISO8859_4 = gdic.wxFONTENCODING_ISO8859_4
1284 wxFONTENCODING_ISO8859_5 = gdic.wxFONTENCODING_ISO8859_5
1285 wxFONTENCODING_ISO8859_6 = gdic.wxFONTENCODING_ISO8859_6
1286 wxFONTENCODING_ISO8859_7 = gdic.wxFONTENCODING_ISO8859_7
1287 wxFONTENCODING_ISO8859_8 = gdic.wxFONTENCODING_ISO8859_8
1288 wxFONTENCODING_ISO8859_9 = gdic.wxFONTENCODING_ISO8859_9
1289 wxFONTENCODING_ISO8859_10 = gdic.wxFONTENCODING_ISO8859_10
1290 wxFONTENCODING_ISO8859_11 = gdic.wxFONTENCODING_ISO8859_11
1291 wxFONTENCODING_ISO8859_12 = gdic.wxFONTENCODING_ISO8859_12
1292 wxFONTENCODING_ISO8859_13 = gdic.wxFONTENCODING_ISO8859_13
1293 wxFONTENCODING_ISO8859_14 = gdic.wxFONTENCODING_ISO8859_14
1294 wxFONTENCODING_ISO8859_15 = gdic.wxFONTENCODING_ISO8859_15
1295 wxFONTENCODING_ISO8859_MAX = gdic.wxFONTENCODING_ISO8859_MAX
1296 wxFONTENCODING_KOI8 = gdic.wxFONTENCODING_KOI8
1297 wxFONTENCODING_ALTERNATIVE = gdic.wxFONTENCODING_ALTERNATIVE
1298 wxFONTENCODING_BULGARIAN = gdic.wxFONTENCODING_BULGARIAN
1299 wxFONTENCODING_CP437 = gdic.wxFONTENCODING_CP437
1300 wxFONTENCODING_CP850 = gdic.wxFONTENCODING_CP850
1301 wxFONTENCODING_CP852 = gdic.wxFONTENCODING_CP852
1302 wxFONTENCODING_CP855 = gdic.wxFONTENCODING_CP855
1303 wxFONTENCODING_CP866 = gdic.wxFONTENCODING_CP866
1304 wxFONTENCODING_CP874 = gdic.wxFONTENCODING_CP874
1305 wxFONTENCODING_CP932 = gdic.wxFONTENCODING_CP932
1306 wxFONTENCODING_CP936 = gdic.wxFONTENCODING_CP936
1307 wxFONTENCODING_CP949 = gdic.wxFONTENCODING_CP949
1308 wxFONTENCODING_CP950 = gdic.wxFONTENCODING_CP950
1309 wxFONTENCODING_CP1250 = gdic.wxFONTENCODING_CP1250
1310 wxFONTENCODING_CP1251 = gdic.wxFONTENCODING_CP1251
1311 wxFONTENCODING_CP1252 = gdic.wxFONTENCODING_CP1252
1312 wxFONTENCODING_CP1253 = gdic.wxFONTENCODING_CP1253
1313 wxFONTENCODING_CP1254 = gdic.wxFONTENCODING_CP1254
1314 wxFONTENCODING_CP1255 = gdic.wxFONTENCODING_CP1255
1315 wxFONTENCODING_CP1256 = gdic.wxFONTENCODING_CP1256
1316 wxFONTENCODING_CP1257 = gdic.wxFONTENCODING_CP1257
1317 wxFONTENCODING_CP12_MAX = gdic.wxFONTENCODING_CP12_MAX
1318 wxFONTENCODING_UTF7 = gdic.wxFONTENCODING_UTF7
1319 wxFONTENCODING_UTF8 = gdic.wxFONTENCODING_UTF8
1320 wxFONTENCODING_UNICODE = gdic.wxFONTENCODING_UNICODE
1321 wxFONTENCODING_MAX = gdic.wxFONTENCODING_MAX
1322 wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
1323 wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
1324 wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
1325 wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
1326 wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
1327 wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
1328 wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE
1329 wxOutRegion = gdic.wxOutRegion
1330 wxPartRegion = gdic.wxPartRegion
1331 wxInRegion = gdic.wxInRegion
1332 cvar = gdic.cvar
1333 wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
1334 wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
1335 wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
1336 wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
1337 wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
1338 wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
1339 wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
1340 wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
1341 wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
1342 wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
1343 wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
1344 wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
1345 wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
1346 wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
1347 wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
1348 wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
1349 wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
1350 wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
1351 wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
1352 wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
1353 wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
1354 wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
1355 wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
1356 wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
1357 wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
1358 wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
1359 wxRED = wxColourPtr(gdic.cvar.wxRED)
1360 wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
1361 wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
1362 wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
1363 wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
1364 wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
1365 wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
1366 wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
1367 wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
1368 wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
1369 wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
1370 wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
1371 wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
1372 wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
1373 wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
1374 wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
1375 wxTheFontList = wxFontListPtr(gdic.cvar.wxTheFontList)
1376 wxThePenList = wxPenListPtr(gdic.cvar.wxThePenList)
1377 wxTheBrushList = wxBrushListPtr(gdic.cvar.wxTheBrushList)
1378 wxTheColourDatabase = wxColourDatabasePtr(gdic.cvar.wxTheColourDatabase)