]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi.py
fix text scrolling in GTK2 (patch 703988)
[wxWidgets.git] / wxPython / src / msw / gdi.py
1 # This file was created automatically by SWIG.
2 import gdic
3
4 from misc import *
5
6 from fonts import *
7 import wx
8 class wxGDIObjectPtr(wxObjectPtr):
9 def __init__(self,this):
10 self.this = this
11 self.thisown = 0
12 def __del__(self, delfunc=gdic.delete_wxGDIObject):
13 if self.thisown == 1:
14 try:
15 delfunc(self)
16 except:
17 pass
18 def GetVisible(self, *_args, **_kwargs):
19 val = gdic.wxGDIObject_GetVisible(self, *_args, **_kwargs)
20 return val
21 def SetVisible(self, *_args, **_kwargs):
22 val = gdic.wxGDIObject_SetVisible(self, *_args, **_kwargs)
23 return val
24 def IsNull(self, *_args, **_kwargs):
25 val = gdic.wxGDIObject_IsNull(self, *_args, **_kwargs)
26 return val
27 def __repr__(self):
28 return "<%s.%s instance; proxy of C++ wxGDIObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
29 class wxGDIObject(wxGDIObjectPtr):
30 def __init__(self,*_args,**_kwargs):
31 self.this = gdic.new_wxGDIObject(*_args,**_kwargs)
32 self.thisown = 1
33
34
35
36
37 class wxBitmapPtr(wxGDIObjectPtr):
38 def __init__(self,this):
39 self.this = this
40 self.thisown = 0
41 def __del__(self, delfunc=gdic.delete_wxBitmap):
42 if self.thisown == 1:
43 try:
44 delfunc(self)
45 except:
46 pass
47 def GetPalette(self, *_args, **_kwargs):
48 val = gdic.wxBitmap_GetPalette(self, *_args, **_kwargs)
49 if val: val = wxPalettePtr(val)
50 return val
51 def GetMask(self, *_args, **_kwargs):
52 val = gdic.wxBitmap_GetMask(self, *_args, **_kwargs)
53 if val: val = wxMaskPtr(val)
54 return val
55 def LoadFile(self, *_args, **_kwargs):
56 val = gdic.wxBitmap_LoadFile(self, *_args, **_kwargs)
57 return val
58 def SaveFile(self, *_args, **_kwargs):
59 val = gdic.wxBitmap_SaveFile(self, *_args, **_kwargs)
60 return val
61 def SetMask(self, *_args, **_kwargs):
62 val = gdic.wxBitmap_SetMask(self, *_args, **_kwargs)
63 return val
64 def SetPalette(self, *_args, **_kwargs):
65 val = gdic.wxBitmap_SetPalette(self, *_args, **_kwargs)
66 return val
67 def GetHandle(self, *_args, **_kwargs):
68 val = gdic.wxBitmap_GetHandle(self, *_args, **_kwargs)
69 return val
70 def SetHandle(self, *_args, **_kwargs):
71 val = gdic.wxBitmap_SetHandle(self, *_args, **_kwargs)
72 return val
73 def Ok(self, *_args, **_kwargs):
74 val = gdic.wxBitmap_Ok(self, *_args, **_kwargs)
75 return val
76 def GetWidth(self, *_args, **_kwargs):
77 val = gdic.wxBitmap_GetWidth(self, *_args, **_kwargs)
78 return val
79 def GetHeight(self, *_args, **_kwargs):
80 val = gdic.wxBitmap_GetHeight(self, *_args, **_kwargs)
81 return val
82 def GetDepth(self, *_args, **_kwargs):
83 val = gdic.wxBitmap_GetDepth(self, *_args, **_kwargs)
84 return val
85 def SetWidth(self, *_args, **_kwargs):
86 val = gdic.wxBitmap_SetWidth(self, *_args, **_kwargs)
87 return val
88 def SetHeight(self, *_args, **_kwargs):
89 val = gdic.wxBitmap_SetHeight(self, *_args, **_kwargs)
90 return val
91 def SetDepth(self, *_args, **_kwargs):
92 val = gdic.wxBitmap_SetDepth(self, *_args, **_kwargs)
93 return val
94 def SetSize(self, *_args, **_kwargs):
95 val = gdic.wxBitmap_SetSize(self, *_args, **_kwargs)
96 return val
97 def GetSubBitmap(self, *_args, **_kwargs):
98 val = gdic.wxBitmap_GetSubBitmap(self, *_args, **_kwargs)
99 if val: val = wxBitmapPtr(val) ; val.thisown = 1
100 return val
101 def CopyFromIcon(self, *_args, **_kwargs):
102 val = gdic.wxBitmap_CopyFromIcon(self, *_args, **_kwargs)
103 return val
104 def CopyFromCursor(self, *_args, **_kwargs):
105 val = gdic.wxBitmap_CopyFromCursor(self, *_args, **_kwargs)
106 return val
107 def GetQuality(self, *_args, **_kwargs):
108 val = gdic.wxBitmap_GetQuality(self, *_args, **_kwargs)
109 return val
110 def SetQuality(self, *_args, **_kwargs):
111 val = gdic.wxBitmap_SetQuality(self, *_args, **_kwargs)
112 return val
113 def __repr__(self):
114 return "<%s.%s instance; proxy of C++ wxBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
115
116 def SetMaskColour(self, colour):
117 mask = wxMaskColour(self, colour)
118 self.SetMask(mask)
119
120 def __nonzero__(self): return self.Ok()
121 class wxBitmap(wxBitmapPtr):
122 def __init__(self,*_args,**_kwargs):
123 self.this = gdic.new_wxBitmap(*_args,**_kwargs)
124 self.thisown = 1
125
126
127
128
129 class wxMaskPtr(wxObjectPtr):
130 def __init__(self,this):
131 self.this = this
132 self.thisown = 0
133 def Destroy(self, *_args, **_kwargs):
134 val = gdic.wxMask_Destroy(self, *_args, **_kwargs)
135 return val
136 def __repr__(self):
137 return "<%s.%s instance; proxy of C++ wxMask instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
138 class wxMask(wxMaskPtr):
139 def __init__(self,*_args,**_kwargs):
140 self.this = gdic.new_wxMask(*_args,**_kwargs)
141 self.thisown = 1
142
143
144
145
146 class wxIconPtr(wxGDIObjectPtr):
147 def __init__(self,this):
148 self.this = this
149 self.thisown = 0
150 def __del__(self, delfunc=gdic.delete_wxIcon):
151 if self.thisown == 1:
152 try:
153 delfunc(self)
154 except:
155 pass
156 def LoadFile(self, *_args, **_kwargs):
157 val = gdic.wxIcon_LoadFile(self, *_args, **_kwargs)
158 return val
159 def GetHandle(self, *_args, **_kwargs):
160 val = gdic.wxIcon_GetHandle(self, *_args, **_kwargs)
161 return val
162 def SetHandle(self, *_args, **_kwargs):
163 val = gdic.wxIcon_SetHandle(self, *_args, **_kwargs)
164 return val
165 def Ok(self, *_args, **_kwargs):
166 val = gdic.wxIcon_Ok(self, *_args, **_kwargs)
167 return val
168 def GetWidth(self, *_args, **_kwargs):
169 val = gdic.wxIcon_GetWidth(self, *_args, **_kwargs)
170 return val
171 def GetHeight(self, *_args, **_kwargs):
172 val = gdic.wxIcon_GetHeight(self, *_args, **_kwargs)
173 return val
174 def GetDepth(self, *_args, **_kwargs):
175 val = gdic.wxIcon_GetDepth(self, *_args, **_kwargs)
176 return val
177 def SetWidth(self, *_args, **_kwargs):
178 val = gdic.wxIcon_SetWidth(self, *_args, **_kwargs)
179 return val
180 def SetHeight(self, *_args, **_kwargs):
181 val = gdic.wxIcon_SetHeight(self, *_args, **_kwargs)
182 return val
183 def SetDepth(self, *_args, **_kwargs):
184 val = gdic.wxIcon_SetDepth(self, *_args, **_kwargs)
185 return val
186 def SetSize(self, *_args, **_kwargs):
187 val = gdic.wxIcon_SetSize(self, *_args, **_kwargs)
188 return val
189 def CopyFromBitmap(self, *_args, **_kwargs):
190 val = gdic.wxIcon_CopyFromBitmap(self, *_args, **_kwargs)
191 return val
192 def __repr__(self):
193 return "<%s.%s instance; proxy of C++ wxIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
194 def __nonzero__(self): return self.Ok()
195 class wxIcon(wxIconPtr):
196 def __init__(self,*_args,**_kwargs):
197 self.this = gdic.new_wxIcon(*_args,**_kwargs)
198 self.thisown = 1
199
200
201
202
203 class wxIconLocationPtr :
204 def __init__(self,this):
205 self.this = this
206 self.thisown = 0
207 def __del__(self, delfunc=gdic.delete_wxIconLocation):
208 if self.thisown == 1:
209 try:
210 delfunc(self)
211 except:
212 pass
213 def IsOk(self, *_args, **_kwargs):
214 val = gdic.wxIconLocation_IsOk(self, *_args, **_kwargs)
215 return val
216 def SetFileName(self, *_args, **_kwargs):
217 val = gdic.wxIconLocation_SetFileName(self, *_args, **_kwargs)
218 return val
219 def GetFileName(self, *_args, **_kwargs):
220 val = gdic.wxIconLocation_GetFileName(self, *_args, **_kwargs)
221 return val
222 def SetIndex(self, *_args, **_kwargs):
223 val = gdic.wxIconLocation_SetIndex(self, *_args, **_kwargs)
224 return val
225 def GetIndex(self, *_args, **_kwargs):
226 val = gdic.wxIconLocation_GetIndex(self, *_args, **_kwargs)
227 return val
228 def __repr__(self):
229 return "<%s.%s instance; proxy of C++ wxIconLocation instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
230 class wxIconLocation(wxIconLocationPtr):
231 def __init__(self,*_args,**_kwargs):
232 self.this = gdic.new_wxIconLocation(*_args,**_kwargs)
233 self.thisown = 1
234
235
236
237
238 class wxIconBundlePtr :
239 def __init__(self,this):
240 self.this = this
241 self.thisown = 0
242 def __del__(self, delfunc=gdic.delete_wxIconBundle):
243 if self.thisown == 1:
244 try:
245 delfunc(self)
246 except:
247 pass
248 def AddIcon(self, *_args, **_kwargs):
249 val = gdic.wxIconBundle_AddIcon(self, *_args, **_kwargs)
250 return val
251 def AddIconFromFile(self, *_args, **_kwargs):
252 val = gdic.wxIconBundle_AddIconFromFile(self, *_args, **_kwargs)
253 return val
254 def GetIcon(self, *_args, **_kwargs):
255 val = gdic.wxIconBundle_GetIcon(self, *_args, **_kwargs)
256 if val: val = wxIconPtr(val)
257 return val
258 def __repr__(self):
259 return "<%s.%s instance; proxy of C++ wxIconBundle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
260 class wxIconBundle(wxIconBundlePtr):
261 def __init__(self,*_args,**_kwargs):
262 self.this = gdic.new_wxIconBundle(*_args,**_kwargs)
263 self.thisown = 1
264
265
266
267 def wxIconBundleFromFile(*_args,**_kwargs):
268 val = wxIconBundlePtr(gdic.new_wxIconBundleFromFile(*_args,**_kwargs))
269 val.thisown = 1
270 return val
271
272 def wxIconBundleFromIcon(*_args,**_kwargs):
273 val = wxIconBundlePtr(gdic.new_wxIconBundleFromIcon(*_args,**_kwargs))
274 val.thisown = 1
275 return val
276
277
278 class wxCursorPtr(wxGDIObjectPtr):
279 def __init__(self,this):
280 self.this = this
281 self.thisown = 0
282 def __del__(self, delfunc=gdic.delete_wxCursor):
283 if self.thisown == 1:
284 try:
285 delfunc(self)
286 except:
287 pass
288 def GetHandle(self, *_args, **_kwargs):
289 val = gdic.wxCursor_GetHandle(self, *_args, **_kwargs)
290 return val
291 def SetHandle(self, *_args, **_kwargs):
292 val = gdic.wxCursor_SetHandle(self, *_args, **_kwargs)
293 return val
294 def Ok(self, *_args, **_kwargs):
295 val = gdic.wxCursor_Ok(self, *_args, **_kwargs)
296 return val
297 def GetWidth(self, *_args, **_kwargs):
298 val = gdic.wxCursor_GetWidth(self, *_args, **_kwargs)
299 return val
300 def GetHeight(self, *_args, **_kwargs):
301 val = gdic.wxCursor_GetHeight(self, *_args, **_kwargs)
302 return val
303 def GetDepth(self, *_args, **_kwargs):
304 val = gdic.wxCursor_GetDepth(self, *_args, **_kwargs)
305 return val
306 def SetWidth(self, *_args, **_kwargs):
307 val = gdic.wxCursor_SetWidth(self, *_args, **_kwargs)
308 return val
309 def SetHeight(self, *_args, **_kwargs):
310 val = gdic.wxCursor_SetHeight(self, *_args, **_kwargs)
311 return val
312 def SetDepth(self, *_args, **_kwargs):
313 val = gdic.wxCursor_SetDepth(self, *_args, **_kwargs)
314 return val
315 def SetSize(self, *_args, **_kwargs):
316 val = gdic.wxCursor_SetSize(self, *_args, **_kwargs)
317 return val
318 def __repr__(self):
319 return "<%s.%s instance; proxy of C++ wxCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
320 def __nonzero__(self): return self.Ok()
321 class wxCursor(wxCursorPtr):
322 def __init__(self,*_args,**_kwargs):
323 self.this = gdic.new_wxCursor(*_args,**_kwargs)
324 self.thisown = 1
325
326
327
328
329 class wxColourPtr(wxObjectPtr):
330 def __init__(self,this):
331 self.this = this
332 self.thisown = 0
333 def __del__(self, delfunc=gdic.delete_wxColour):
334 if self.thisown == 1:
335 try:
336 delfunc(self)
337 except:
338 pass
339 def Red(self, *_args, **_kwargs):
340 val = gdic.wxColour_Red(self, *_args, **_kwargs)
341 return val
342 def Green(self, *_args, **_kwargs):
343 val = gdic.wxColour_Green(self, *_args, **_kwargs)
344 return val
345 def Blue(self, *_args, **_kwargs):
346 val = gdic.wxColour_Blue(self, *_args, **_kwargs)
347 return val
348 def Ok(self, *_args, **_kwargs):
349 val = gdic.wxColour_Ok(self, *_args, **_kwargs)
350 return val
351 def Set(self, *_args, **_kwargs):
352 val = gdic.wxColour_Set(self, *_args, **_kwargs)
353 return val
354 def Get(self, *_args, **_kwargs):
355 val = gdic.wxColour_Get(self, *_args, **_kwargs)
356 return val
357 def __eq__(self, *_args, **_kwargs):
358 val = gdic.wxColour___eq__(self, *_args, **_kwargs)
359 return val
360 def __ne__(self, *_args, **_kwargs):
361 val = gdic.wxColour___ne__(self, *_args, **_kwargs)
362 return val
363 def __repr__(self):
364 return "<%s.%s instance; proxy of C++ wxColour instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
365 asTuple = Get
366 def __str__(self): return str(self.asTuple())
367 def __repr__(self): return 'wxColour:' + str(self.asTuple())
368 def __nonzero__(self): return self.Ok()
369 def __getinitargs__(self): return ()
370 def __getstate__(self): return self.asTuple()
371 def __setstate__(self, state): self.Set(*state)
372
373 class wxColour(wxColourPtr):
374 def __init__(self,*_args,**_kwargs):
375 self.this = gdic.new_wxColour(*_args,**_kwargs)
376 self.thisown = 1
377
378
379
380
381 class wxColourDatabasePtr(wxObjectPtr):
382 def __init__(self,this):
383 self.this = this
384 self.thisown = 0
385 def FindColour(self, *_args, **_kwargs):
386 val = gdic.wxColourDatabase_FindColour(self, *_args, **_kwargs)
387 if val: val = wxColourPtr(val)
388 return val
389 def FindColourNoAdd(self, *_args, **_kwargs):
390 val = gdic.wxColourDatabase_FindColourNoAdd(self, *_args, **_kwargs)
391 if val: val = wxColourPtr(val)
392 return val
393 def FindName(self, *_args, **_kwargs):
394 val = gdic.wxColourDatabase_FindName(self, *_args, **_kwargs)
395 return val
396 def AddColour(self, *_args, **_kwargs):
397 val = gdic.wxColourDatabase_AddColour(self, *_args, **_kwargs)
398 return val
399 def Append(self, *_args, **_kwargs):
400 val = gdic.wxColourDatabase_Append(self, *_args, **_kwargs)
401 return val
402 def __repr__(self):
403 return "<%s.%s instance; proxy of C++ wxColourDatabase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
404 class wxColourDatabase(wxColourDatabasePtr):
405 def __init__(self,this):
406 self.this = this
407
408
409
410
411 class wxPenPtr(wxGDIObjectPtr):
412 def __init__(self,this):
413 self.this = this
414 self.thisown = 0
415 def __del__(self, delfunc=gdic.delete_wxPen):
416 if self.thisown == 1:
417 try:
418 delfunc(self)
419 except:
420 pass
421 def GetCap(self, *_args, **_kwargs):
422 val = gdic.wxPen_GetCap(self, *_args, **_kwargs)
423 return val
424 def GetColour(self, *_args, **_kwargs):
425 val = gdic.wxPen_GetColour(self, *_args, **_kwargs)
426 if val: val = wxColourPtr(val) ; val.thisown = 1
427 return val
428 def GetJoin(self, *_args, **_kwargs):
429 val = gdic.wxPen_GetJoin(self, *_args, **_kwargs)
430 return val
431 def GetStyle(self, *_args, **_kwargs):
432 val = gdic.wxPen_GetStyle(self, *_args, **_kwargs)
433 return val
434 def GetWidth(self, *_args, **_kwargs):
435 val = gdic.wxPen_GetWidth(self, *_args, **_kwargs)
436 return val
437 def Ok(self, *_args, **_kwargs):
438 val = gdic.wxPen_Ok(self, *_args, **_kwargs)
439 return val
440 def SetCap(self, *_args, **_kwargs):
441 val = gdic.wxPen_SetCap(self, *_args, **_kwargs)
442 return val
443 def SetColour(self, *_args, **_kwargs):
444 val = gdic.wxPen_SetColour(self, *_args, **_kwargs)
445 return val
446 def SetJoin(self, *_args, **_kwargs):
447 val = gdic.wxPen_SetJoin(self, *_args, **_kwargs)
448 return val
449 def SetStyle(self, *_args, **_kwargs):
450 val = gdic.wxPen_SetStyle(self, *_args, **_kwargs)
451 return val
452 def SetWidth(self, *_args, **_kwargs):
453 val = gdic.wxPen_SetWidth(self, *_args, **_kwargs)
454 return val
455 def SetDashes(self, *_args, **_kwargs):
456 val = gdic.wxPen_SetDashes(self, *_args, **_kwargs)
457 return val
458 def GetDashes(self, *_args, **_kwargs):
459 val = gdic.wxPen_GetDashes(self, *_args, **_kwargs)
460 return val
461 def GetStipple(self, *_args, **_kwargs):
462 val = gdic.wxPen_GetStipple(self, *_args, **_kwargs)
463 if val: val = wxBitmapPtr(val)
464 return val
465 def SetStipple(self, *_args, **_kwargs):
466 val = gdic.wxPen_SetStipple(self, *_args, **_kwargs)
467 return val
468 def __repr__(self):
469 return "<%s.%s instance; proxy of C++ wxPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
470 def __nonzero__(self): return self.Ok()
471 class wxPen(wxPenPtr):
472 def __init__(self,*_args,**_kwargs):
473 self.this = gdic.new_wxPen(*_args,**_kwargs)
474 self.thisown = 1
475
476
477
478
479 class wxPyPenPtr(wxPenPtr):
480 def __init__(self,this):
481 self.this = this
482 self.thisown = 0
483 def __del__(self, delfunc=gdic.delete_wxPyPen):
484 if self.thisown == 1:
485 try:
486 delfunc(self)
487 except:
488 pass
489 def SetDashes(self, *_args, **_kwargs):
490 val = gdic.wxPyPen_SetDashes(self, *_args, **_kwargs)
491 return val
492 def __repr__(self):
493 return "<%s.%s instance; proxy of C++ wxPyPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
494 class wxPyPen(wxPyPenPtr):
495 def __init__(self,*_args,**_kwargs):
496 self.this = gdic.new_wxPyPen(*_args,**_kwargs)
497 self.thisown = 1
498
499
500
501
502 class wxPenListPtr(wxObjectPtr):
503 def __init__(self,this):
504 self.this = this
505 self.thisown = 0
506 def AddPen(self, *_args, **_kwargs):
507 val = gdic.wxPenList_AddPen(self, *_args, **_kwargs)
508 return val
509 def FindOrCreatePen(self, *_args, **_kwargs):
510 val = gdic.wxPenList_FindOrCreatePen(self, *_args, **_kwargs)
511 if val: val = wxPenPtr(val)
512 return val
513 def RemovePen(self, *_args, **_kwargs):
514 val = gdic.wxPenList_RemovePen(self, *_args, **_kwargs)
515 return val
516 def GetCount(self, *_args, **_kwargs):
517 val = gdic.wxPenList_GetCount(self, *_args, **_kwargs)
518 return val
519 def __repr__(self):
520 return "<%s.%s instance; proxy of C++ wxPenList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
521 class wxPenList(wxPenListPtr):
522 def __init__(self,this):
523 self.this = this
524
525
526
527
528 class wxBrushPtr(wxGDIObjectPtr):
529 def __init__(self,this):
530 self.this = this
531 self.thisown = 0
532 def __del__(self, delfunc=gdic.delete_wxBrush):
533 if self.thisown == 1:
534 try:
535 delfunc(self)
536 except:
537 pass
538 def GetColour(self, *_args, **_kwargs):
539 val = gdic.wxBrush_GetColour(self, *_args, **_kwargs)
540 if val: val = wxColourPtr(val) ; val.thisown = 1
541 return val
542 def GetStipple(self, *_args, **_kwargs):
543 val = gdic.wxBrush_GetStipple(self, *_args, **_kwargs)
544 if val: val = wxBitmapPtr(val)
545 return val
546 def GetStyle(self, *_args, **_kwargs):
547 val = gdic.wxBrush_GetStyle(self, *_args, **_kwargs)
548 return val
549 def Ok(self, *_args, **_kwargs):
550 val = gdic.wxBrush_Ok(self, *_args, **_kwargs)
551 return val
552 def SetColour(self, *_args, **_kwargs):
553 val = gdic.wxBrush_SetColour(self, *_args, **_kwargs)
554 return val
555 def SetStipple(self, *_args, **_kwargs):
556 val = gdic.wxBrush_SetStipple(self, *_args, **_kwargs)
557 return val
558 def SetStyle(self, *_args, **_kwargs):
559 val = gdic.wxBrush_SetStyle(self, *_args, **_kwargs)
560 return val
561 def __repr__(self):
562 return "<%s.%s instance; proxy of C++ wxBrush instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
563 def __nonzero__(self): return self.Ok()
564 class wxBrush(wxBrushPtr):
565 def __init__(self,*_args,**_kwargs):
566 self.this = gdic.new_wxBrush(*_args,**_kwargs)
567 self.thisown = 1
568
569
570
571
572 class wxBrushListPtr(wxObjectPtr):
573 def __init__(self,this):
574 self.this = this
575 self.thisown = 0
576 def AddBrush(self, *_args, **_kwargs):
577 val = gdic.wxBrushList_AddBrush(self, *_args, **_kwargs)
578 return val
579 def FindOrCreateBrush(self, *_args, **_kwargs):
580 val = gdic.wxBrushList_FindOrCreateBrush(self, *_args, **_kwargs)
581 if val: val = wxBrushPtr(val)
582 return val
583 def RemoveBrush(self, *_args, **_kwargs):
584 val = gdic.wxBrushList_RemoveBrush(self, *_args, **_kwargs)
585 return val
586 def GetCount(self, *_args, **_kwargs):
587 val = gdic.wxBrushList_GetCount(self, *_args, **_kwargs)
588 return val
589 def __repr__(self):
590 return "<%s.%s instance; proxy of C++ wxBrushList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
591 class wxBrushList(wxBrushListPtr):
592 def __init__(self,this):
593 self.this = this
594
595
596
597
598 class wxDCPtr(wxObjectPtr):
599 def __init__(self,this):
600 self.this = this
601 self.thisown = 0
602 def __del__(self, delfunc=gdic.delete_wxDC):
603 if self.thisown == 1:
604 try:
605 delfunc(self)
606 except:
607 pass
608 def BeginDrawing(self, *_args, **_kwargs):
609 val = gdic.wxDC_BeginDrawing(self, *_args, **_kwargs)
610 return val
611 def Blit(self, *_args, **_kwargs):
612 val = gdic.wxDC_Blit(self, *_args, **_kwargs)
613 return val
614 def Clear(self, *_args, **_kwargs):
615 val = gdic.wxDC_Clear(self, *_args, **_kwargs)
616 return val
617 def CrossHair(self, *_args, **_kwargs):
618 val = gdic.wxDC_CrossHair(self, *_args, **_kwargs)
619 return val
620 def DestroyClippingRegion(self, *_args, **_kwargs):
621 val = gdic.wxDC_DestroyClippingRegion(self, *_args, **_kwargs)
622 return val
623 def DeviceToLogicalX(self, *_args, **_kwargs):
624 val = gdic.wxDC_DeviceToLogicalX(self, *_args, **_kwargs)
625 return val
626 def DeviceToLogicalXRel(self, *_args, **_kwargs):
627 val = gdic.wxDC_DeviceToLogicalXRel(self, *_args, **_kwargs)
628 return val
629 def DeviceToLogicalY(self, *_args, **_kwargs):
630 val = gdic.wxDC_DeviceToLogicalY(self, *_args, **_kwargs)
631 return val
632 def DeviceToLogicalYRel(self, *_args, **_kwargs):
633 val = gdic.wxDC_DeviceToLogicalYRel(self, *_args, **_kwargs)
634 return val
635 def DrawArc(self, *_args, **_kwargs):
636 val = gdic.wxDC_DrawArc(self, *_args, **_kwargs)
637 return val
638 def DrawCircle(self, *_args, **_kwargs):
639 val = gdic.wxDC_DrawCircle(self, *_args, **_kwargs)
640 return val
641 def DrawEllipse(self, *_args, **_kwargs):
642 val = gdic.wxDC_DrawEllipse(self, *_args, **_kwargs)
643 return val
644 def DrawEllipticArc(self, *_args, **_kwargs):
645 val = gdic.wxDC_DrawEllipticArc(self, *_args, **_kwargs)
646 return val
647 def DrawIcon(self, *_args, **_kwargs):
648 val = gdic.wxDC_DrawIcon(self, *_args, **_kwargs)
649 return val
650 def DrawLabel(self, *_args, **_kwargs):
651 val = gdic.wxDC_DrawLabel(self, *_args, **_kwargs)
652 return val
653 def DrawImageLabel(self, *_args, **_kwargs):
654 val = gdic.wxDC_DrawImageLabel(self, *_args, **_kwargs)
655 if val: val = wxRectPtr(val) ; val.thisown = 1
656 return val
657 def DrawLine(self, *_args, **_kwargs):
658 val = gdic.wxDC_DrawLine(self, *_args, **_kwargs)
659 return val
660 def DrawLines(self, *_args, **_kwargs):
661 val = gdic.wxDC_DrawLines(self, *_args, **_kwargs)
662 return val
663 def DrawPolygon(self, *_args, **_kwargs):
664 val = gdic.wxDC_DrawPolygon(self, *_args, **_kwargs)
665 return val
666 def DrawPoint(self, *_args, **_kwargs):
667 val = gdic.wxDC_DrawPoint(self, *_args, **_kwargs)
668 return val
669 def DrawRectangle(self, *_args, **_kwargs):
670 val = gdic.wxDC_DrawRectangle(self, *_args, **_kwargs)
671 return val
672 def DrawRectangleRect(self, *_args, **_kwargs):
673 val = gdic.wxDC_DrawRectangleRect(self, *_args, **_kwargs)
674 return val
675 def DrawRotatedText(self, *_args, **_kwargs):
676 val = gdic.wxDC_DrawRotatedText(self, *_args, **_kwargs)
677 return val
678 def DrawRoundedRectangle(self, *_args, **_kwargs):
679 val = gdic.wxDC_DrawRoundedRectangle(self, *_args, **_kwargs)
680 return val
681 def DrawSpline(self, *_args, **_kwargs):
682 val = gdic.wxDC_DrawSpline(self, *_args, **_kwargs)
683 return val
684 def DrawText(self, *_args, **_kwargs):
685 val = gdic.wxDC_DrawText(self, *_args, **_kwargs)
686 return val
687 def EndDoc(self, *_args, **_kwargs):
688 val = gdic.wxDC_EndDoc(self, *_args, **_kwargs)
689 return val
690 def EndDrawing(self, *_args, **_kwargs):
691 val = gdic.wxDC_EndDrawing(self, *_args, **_kwargs)
692 return val
693 def EndPage(self, *_args, **_kwargs):
694 val = gdic.wxDC_EndPage(self, *_args, **_kwargs)
695 return val
696 def FloodFill(self, *_args, **_kwargs):
697 val = gdic.wxDC_FloodFill(self, *_args, **_kwargs)
698 return val
699 def GetBackground(self, *_args, **_kwargs):
700 val = gdic.wxDC_GetBackground(self, *_args, **_kwargs)
701 if val: val = wxBrushPtr(val) ; val.thisown = 1
702 return val
703 def GetBrush(self, *_args, **_kwargs):
704 val = gdic.wxDC_GetBrush(self, *_args, **_kwargs)
705 if val: val = wxBrushPtr(val) ; val.thisown = 1
706 return val
707 def GetCharHeight(self, *_args, **_kwargs):
708 val = gdic.wxDC_GetCharHeight(self, *_args, **_kwargs)
709 return val
710 def GetCharWidth(self, *_args, **_kwargs):
711 val = gdic.wxDC_GetCharWidth(self, *_args, **_kwargs)
712 return val
713 def GetClippingBox(self, *_args, **_kwargs):
714 val = gdic.wxDC_GetClippingBox(self, *_args, **_kwargs)
715 return val
716 def GetFont(self, *_args, **_kwargs):
717 val = gdic.wxDC_GetFont(self, *_args, **_kwargs)
718 if val: val = wxFontPtr(val) ; val.thisown = 1
719 return val
720 def GetLogicalFunction(self, *_args, **_kwargs):
721 val = gdic.wxDC_GetLogicalFunction(self, *_args, **_kwargs)
722 return val
723 def GetLogicalScale(self, *_args, **_kwargs):
724 val = gdic.wxDC_GetLogicalScale(self, *_args, **_kwargs)
725 return val
726 def GetMapMode(self, *_args, **_kwargs):
727 val = gdic.wxDC_GetMapMode(self, *_args, **_kwargs)
728 return val
729 def GetOptimization(self, *_args, **_kwargs):
730 val = gdic.wxDC_GetOptimization(self, *_args, **_kwargs)
731 return val
732 def GetPen(self, *_args, **_kwargs):
733 val = gdic.wxDC_GetPen(self, *_args, **_kwargs)
734 if val: val = wxPenPtr(val) ; val.thisown = 1
735 return val
736 def GetPixel(self, *_args, **_kwargs):
737 val = gdic.wxDC_GetPixel(self, *_args, **_kwargs)
738 if val: val = wxColourPtr(val) ; val.thisown = 1
739 return val
740 def GetSizeTuple(self, *_args, **_kwargs):
741 val = gdic.wxDC_GetSizeTuple(self, *_args, **_kwargs)
742 return val
743 def GetSize(self, *_args, **_kwargs):
744 val = gdic.wxDC_GetSize(self, *_args, **_kwargs)
745 if val: val = wxSizePtr(val) ; val.thisown = 1
746 return val
747 def GetSizeMM(self, *_args, **_kwargs):
748 val = gdic.wxDC_GetSizeMM(self, *_args, **_kwargs)
749 if val: val = wxSizePtr(val) ; val.thisown = 1
750 return val
751 def GetTextBackground(self, *_args, **_kwargs):
752 val = gdic.wxDC_GetTextBackground(self, *_args, **_kwargs)
753 if val: val = wxColourPtr(val) ; val.thisown = 1
754 return val
755 def GetTextExtent(self, *_args, **_kwargs):
756 val = gdic.wxDC_GetTextExtent(self, *_args, **_kwargs)
757 return val
758 def GetFullTextExtent(self, *_args, **_kwargs):
759 val = gdic.wxDC_GetFullTextExtent(self, *_args, **_kwargs)
760 return val
761 def GetMultiLineTextExtent(self, *_args, **_kwargs):
762 val = gdic.wxDC_GetMultiLineTextExtent(self, *_args, **_kwargs)
763 return val
764 def GetTextForeground(self, *_args, **_kwargs):
765 val = gdic.wxDC_GetTextForeground(self, *_args, **_kwargs)
766 if val: val = wxColourPtr(val) ; val.thisown = 1
767 return val
768 def GetUserScale(self, *_args, **_kwargs):
769 val = gdic.wxDC_GetUserScale(self, *_args, **_kwargs)
770 return val
771 def LogicalToDeviceX(self, *_args, **_kwargs):
772 val = gdic.wxDC_LogicalToDeviceX(self, *_args, **_kwargs)
773 return val
774 def LogicalToDeviceXRel(self, *_args, **_kwargs):
775 val = gdic.wxDC_LogicalToDeviceXRel(self, *_args, **_kwargs)
776 return val
777 def LogicalToDeviceY(self, *_args, **_kwargs):
778 val = gdic.wxDC_LogicalToDeviceY(self, *_args, **_kwargs)
779 return val
780 def LogicalToDeviceYRel(self, *_args, **_kwargs):
781 val = gdic.wxDC_LogicalToDeviceYRel(self, *_args, **_kwargs)
782 return val
783 def MaxX(self, *_args, **_kwargs):
784 val = gdic.wxDC_MaxX(self, *_args, **_kwargs)
785 return val
786 def MaxY(self, *_args, **_kwargs):
787 val = gdic.wxDC_MaxY(self, *_args, **_kwargs)
788 return val
789 def MinX(self, *_args, **_kwargs):
790 val = gdic.wxDC_MinX(self, *_args, **_kwargs)
791 return val
792 def MinY(self, *_args, **_kwargs):
793 val = gdic.wxDC_MinY(self, *_args, **_kwargs)
794 return val
795 def Ok(self, *_args, **_kwargs):
796 val = gdic.wxDC_Ok(self, *_args, **_kwargs)
797 return val
798 def SetDeviceOrigin(self, *_args, **_kwargs):
799 val = gdic.wxDC_SetDeviceOrigin(self, *_args, **_kwargs)
800 return val
801 def SetBackground(self, *_args, **_kwargs):
802 val = gdic.wxDC_SetBackground(self, *_args, **_kwargs)
803 return val
804 def SetBackgroundMode(self, *_args, **_kwargs):
805 val = gdic.wxDC_SetBackgroundMode(self, *_args, **_kwargs)
806 return val
807 def SetClippingRegion(self, *_args, **_kwargs):
808 val = gdic.wxDC_SetClippingRegion(self, *_args, **_kwargs)
809 return val
810 def SetClippingRegionAsRegion(self, *_args, **_kwargs):
811 val = gdic.wxDC_SetClippingRegionAsRegion(self, *_args, **_kwargs)
812 return val
813 def SetClippingRect(self, *_args, **_kwargs):
814 val = gdic.wxDC_SetClippingRect(self, *_args, **_kwargs)
815 return val
816 def SetPalette(self, *_args, **_kwargs):
817 val = gdic.wxDC_SetPalette(self, *_args, **_kwargs)
818 return val
819 def SetBrush(self, *_args, **_kwargs):
820 val = gdic.wxDC_SetBrush(self, *_args, **_kwargs)
821 return val
822 def SetFont(self, *_args, **_kwargs):
823 val = gdic.wxDC_SetFont(self, *_args, **_kwargs)
824 return val
825 def SetLogicalFunction(self, *_args, **_kwargs):
826 val = gdic.wxDC_SetLogicalFunction(self, *_args, **_kwargs)
827 return val
828 def SetLogicalScale(self, *_args, **_kwargs):
829 val = gdic.wxDC_SetLogicalScale(self, *_args, **_kwargs)
830 return val
831 def SetMapMode(self, *_args, **_kwargs):
832 val = gdic.wxDC_SetMapMode(self, *_args, **_kwargs)
833 return val
834 def SetOptimization(self, *_args, **_kwargs):
835 val = gdic.wxDC_SetOptimization(self, *_args, **_kwargs)
836 return val
837 def SetPen(self, *_args, **_kwargs):
838 val = gdic.wxDC_SetPen(self, *_args, **_kwargs)
839 return val
840 def SetTextBackground(self, *_args, **_kwargs):
841 val = gdic.wxDC_SetTextBackground(self, *_args, **_kwargs)
842 return val
843 def SetTextForeground(self, *_args, **_kwargs):
844 val = gdic.wxDC_SetTextForeground(self, *_args, **_kwargs)
845 return val
846 def SetUserScale(self, *_args, **_kwargs):
847 val = gdic.wxDC_SetUserScale(self, *_args, **_kwargs)
848 return val
849 def StartDoc(self, *_args, **_kwargs):
850 val = gdic.wxDC_StartDoc(self, *_args, **_kwargs)
851 return val
852 def StartPage(self, *_args, **_kwargs):
853 val = gdic.wxDC_StartPage(self, *_args, **_kwargs)
854 return val
855 def DrawBitmap(self, *_args, **_kwargs):
856 val = gdic.wxDC_DrawBitmap(self, *_args, **_kwargs)
857 return val
858 def CanDrawBitmap(self, *_args, **_kwargs):
859 val = gdic.wxDC_CanDrawBitmap(self, *_args, **_kwargs)
860 return val
861 def CanGetTextExtent(self, *_args, **_kwargs):
862 val = gdic.wxDC_CanGetTextExtent(self, *_args, **_kwargs)
863 return val
864 def GetDepth(self, *_args, **_kwargs):
865 val = gdic.wxDC_GetDepth(self, *_args, **_kwargs)
866 return val
867 def GetPPI(self, *_args, **_kwargs):
868 val = gdic.wxDC_GetPPI(self, *_args, **_kwargs)
869 if val: val = wxSizePtr(val) ; val.thisown = 1
870 return val
871 def GetLogicalOrigin(self, *_args, **_kwargs):
872 val = gdic.wxDC_GetLogicalOrigin(self, *_args, **_kwargs)
873 return val
874 def SetLogicalOrigin(self, *_args, **_kwargs):
875 val = gdic.wxDC_SetLogicalOrigin(self, *_args, **_kwargs)
876 return val
877 def GetDeviceOrigin(self, *_args, **_kwargs):
878 val = gdic.wxDC_GetDeviceOrigin(self, *_args, **_kwargs)
879 return val
880 def SetAxisOrientation(self, *_args, **_kwargs):
881 val = gdic.wxDC_SetAxisOrientation(self, *_args, **_kwargs)
882 return val
883 def CalcBoundingBox(self, *_args, **_kwargs):
884 val = gdic.wxDC_CalcBoundingBox(self, *_args, **_kwargs)
885 return val
886 def ResetBoundingBox(self, *_args, **_kwargs):
887 val = gdic.wxDC_ResetBoundingBox(self, *_args, **_kwargs)
888 return val
889 def GetBoundingBox(self, *_args, **_kwargs):
890 val = gdic.wxDC_GetBoundingBox(self, *_args, **_kwargs)
891 return val
892 def GetHDC(self, *_args, **_kwargs):
893 val = gdic.wxDC_GetHDC(self, *_args, **_kwargs)
894 return val
895 def _DrawPointList(self, *_args, **_kwargs):
896 val = gdic.wxDC__DrawPointList(self, *_args, **_kwargs)
897 return val
898 def _DrawLineList(self, *_args, **_kwargs):
899 val = gdic.wxDC__DrawLineList(self, *_args, **_kwargs)
900 return val
901 def _DrawRectangleList(self, *_args, **_kwargs):
902 val = gdic.wxDC__DrawRectangleList(self, *_args, **_kwargs)
903 return val
904 def _DrawEllipseList(self, *_args, **_kwargs):
905 val = gdic.wxDC__DrawEllipseList(self, *_args, **_kwargs)
906 return val
907 def _DrawPolygonList(self, *_args, **_kwargs):
908 val = gdic.wxDC__DrawPolygonList(self, *_args, **_kwargs)
909 return val
910 def _DrawTextList(self, *_args, **_kwargs):
911 val = gdic.wxDC__DrawTextList(self, *_args, **_kwargs)
912 return val
913 def __repr__(self):
914 return "<%s.%s instance; proxy of C++ wxDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
915 def __nonzero__(self): return self.Ok()
916
917 def DrawPointList(self, points, pens=None):
918 if pens is None:
919 pens = []
920 elif isinstance(pens, wxPenPtr):
921 pens = [pens]
922 elif len(pens) != len(points):
923 raise ValueError('points and pens must have same length')
924 return self._DrawPointList(points, pens, [])
925
926
927 def DrawLineList(self, lines, pens=None):
928 if pens is None:
929 pens = []
930 elif isinstance(pens, wxPenPtr):
931 pens = [pens]
932 elif len(pens) != len(lines):
933 raise ValueError('lines and pens must have same length')
934 return self._DrawLineList(lines, pens, [])
935
936
937 def DrawRectangleList(self, rectangles, pens=None, brushes=None):
938 if pens is None:
939 pens = []
940 elif isinstance(pens, wxPenPtr):
941 pens = [pens]
942 elif len(pens) != len(rectangles):
943 raise ValueError('rectangles and pens must have same length')
944 if brushes is None:
945 brushes = []
946 elif isinstance(brushes, wxBrushPtr):
947 brushes = [brushes]
948 elif len(brushes) != len(rectangles):
949 raise ValueError('rectangles and brushes must have same length')
950 return self._DrawRectangleList(rectangles, pens, brushes)
951
952
953 def DrawEllipseList(self, ellipses, pens=None, brushes=None):
954 if pens is None:
955 pens = []
956 elif isinstance(pens, wxPenPtr):
957 pens = [pens]
958 elif len(pens) != len(ellipses):
959 raise ValueError('ellipses and pens must have same length')
960 if brushes is None:
961 brushes = []
962 elif isinstance(brushes, wxBrushPtr):
963 brushes = [brushes]
964 elif len(brushes) != len(ellipses):
965 raise ValueError('ellipses and brushes must have same length')
966 return self._DrawEllipseList(ellipses, pens, brushes)
967
968
969 def DrawPolygonList(self, polygons, pens=None, brushes=None):
970 ## Note: This does not currently support fill style or offset
971 ## you can always use the non-List version if need be.
972 ## I really would like to support fill-style, however,
973 ## but wxODDEVEN_RULE does not appear to be defined at the Python level
974 ## [It's in wx.py... --Robin]
975 if pens is None:
976 pens = []
977 elif isinstance(pens, wxPenPtr):
978 pens = [pens]
979 elif len(pens) != len(polygons):
980 raise ValueError('polygons and pens must have same length')
981 if brushes is None:
982 brushes = []
983 elif isinstance(brushes, wxBrushPtr):
984 brushes = [brushes]
985 elif len(brushes) != len(polygons):
986 raise ValueError('polygons and brushes must have same length')
987 return self._DrawPolygonList(polygons, pens, brushes)
988
989
990 def DrawTextList(self, textList, coords, foregrounds = None, backgrounds = None, fonts = None):
991 ## NOTE: this does not currently support changing the font
992 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
993 ## If you want backgounds to do anything.
994 if type(textList) == type(''):
995 textList = [textList]
996 elif len(textList) != len(coords):
997 raise ValueError('textlist and coords must have same length')
998 if foregrounds is None:
999 foregrounds = []
1000 elif isinstance(foregrounds, wxColourPtr):
1001 foregrounds = [foregrounds]
1002 elif len(foregrounds) != len(coords):
1003 raise ValueError('foregrounds and coords must have same length')
1004 if backgrounds is None:
1005 backgrounds = []
1006 elif isinstance(backgrounds, wxColourPtr):
1007 backgrounds = [backgrounds]
1008 elif len(backgrounds) != len(coords):
1009 raise ValueError('backgrounds and coords must have same length')
1010 return self._DrawTextList(textList, coords, foregrounds, backgrounds)
1011
1012 class wxDC(wxDCPtr):
1013 def __init__(self,this):
1014 self.this = this
1015
1016
1017
1018
1019 class wxMemoryDCPtr(wxDCPtr):
1020 def __init__(self,this):
1021 self.this = this
1022 self.thisown = 0
1023 def SelectObject(self, *_args, **_kwargs):
1024 val = gdic.wxMemoryDC_SelectObject(self, *_args, **_kwargs)
1025 return val
1026 def __repr__(self):
1027 return "<%s.%s instance; proxy of C++ wxMemoryDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1028 class wxMemoryDC(wxMemoryDCPtr):
1029 def __init__(self,*_args,**_kwargs):
1030 self.this = gdic.new_wxMemoryDC(*_args,**_kwargs)
1031 self.thisown = 1
1032
1033
1034
1035
1036 class wxBufferedDCPtr(wxMemoryDCPtr):
1037 def __init__(self,this):
1038 self.this = this
1039 self.thisown = 0
1040 def UnMask(self, *_args, **_kwargs):
1041 val = gdic.wxBufferedDC_UnMask(self, *_args, **_kwargs)
1042 return val
1043 def __repr__(self):
1044 return "<%s.%s instance; proxy of C++ wxBufferedDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1045 class wxBufferedDC(wxBufferedDCPtr):
1046 def __init__(self,*_args,**_kwargs):
1047 self.this = gdic.new_wxBufferedDC(*_args,**_kwargs)
1048 self.thisown = 1
1049 self._dc = _args[0] # save a ref so the other dc won't be deleted before self
1050
1051
1052
1053 def wxBufferedDCInternalBuffer(*_args,**_kwargs):
1054 val = wxBufferedDCPtr(gdic.new_wxBufferedDCInternalBuffer(*_args,**_kwargs))
1055 val.thisown = 1
1056 val._dc = _args[0] # save a ref so the other dc won't be deleted before self
1057 return val
1058
1059
1060 class wxBufferedPaintDCPtr(wxBufferedDCPtr):
1061 def __init__(self,this):
1062 self.this = this
1063 self.thisown = 0
1064 def __repr__(self):
1065 return "<%s.%s instance; proxy of C++ wxBufferedPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1066 class wxBufferedPaintDC(wxBufferedPaintDCPtr):
1067 def __init__(self,*_args,**_kwargs):
1068 self.this = gdic.new_wxBufferedPaintDC(*_args,**_kwargs)
1069 self.thisown = 1
1070
1071
1072
1073
1074 class wxScreenDCPtr(wxDCPtr):
1075 def __init__(self,this):
1076 self.this = this
1077 self.thisown = 0
1078 def StartDrawingOnTopWin(self, *_args, **_kwargs):
1079 val = gdic.wxScreenDC_StartDrawingOnTopWin(self, *_args, **_kwargs)
1080 return val
1081 def StartDrawingOnTop(self, *_args, **_kwargs):
1082 val = gdic.wxScreenDC_StartDrawingOnTop(self, *_args, **_kwargs)
1083 return val
1084 def EndDrawingOnTop(self, *_args, **_kwargs):
1085 val = gdic.wxScreenDC_EndDrawingOnTop(self, *_args, **_kwargs)
1086 return val
1087 def __repr__(self):
1088 return "<%s.%s instance; proxy of C++ wxScreenDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1089 class wxScreenDC(wxScreenDCPtr):
1090 def __init__(self,*_args,**_kwargs):
1091 self.this = gdic.new_wxScreenDC(*_args,**_kwargs)
1092 self.thisown = 1
1093
1094
1095
1096
1097 class wxClientDCPtr(wxDCPtr):
1098 def __init__(self,this):
1099 self.this = this
1100 self.thisown = 0
1101 def __repr__(self):
1102 return "<%s.%s instance; proxy of C++ wxClientDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1103 class wxClientDC(wxClientDCPtr):
1104 def __init__(self,*_args,**_kwargs):
1105 self.this = gdic.new_wxClientDC(*_args,**_kwargs)
1106 self.thisown = 1
1107
1108
1109
1110
1111 class wxPaintDCPtr(wxDCPtr):
1112 def __init__(self,this):
1113 self.this = this
1114 self.thisown = 0
1115 def __repr__(self):
1116 return "<%s.%s instance; proxy of C++ wxPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1117 class wxPaintDC(wxPaintDCPtr):
1118 def __init__(self,*_args,**_kwargs):
1119 self.this = gdic.new_wxPaintDC(*_args,**_kwargs)
1120 self.thisown = 1
1121
1122
1123
1124
1125 class wxWindowDCPtr(wxDCPtr):
1126 def __init__(self,this):
1127 self.this = this
1128 self.thisown = 0
1129 def __repr__(self):
1130 return "<%s.%s instance; proxy of C++ wxWindowDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1131 class wxWindowDC(wxWindowDCPtr):
1132 def __init__(self,*_args,**_kwargs):
1133 self.this = gdic.new_wxWindowDC(*_args,**_kwargs)
1134 self.thisown = 1
1135
1136
1137
1138
1139 class wxMirrorDCPtr(wxDCPtr):
1140 def __init__(self,this):
1141 self.this = this
1142 self.thisown = 0
1143 def __repr__(self):
1144 return "<%s.%s instance; proxy of C++ wxMirrorDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1145 class wxMirrorDC(wxMirrorDCPtr):
1146 def __init__(self,*_args,**_kwargs):
1147 self.this = gdic.new_wxMirrorDC(*_args,**_kwargs)
1148 self.thisown = 1
1149
1150
1151
1152
1153 class wxMetaFilePtr(wxObjectPtr):
1154 def __init__(self,this):
1155 self.this = this
1156 self.thisown = 0
1157 def __del__(self, delfunc=gdic.delete_wxMetaFile):
1158 if self.thisown == 1:
1159 try:
1160 delfunc(self)
1161 except:
1162 pass
1163 def Ok(self, *_args, **_kwargs):
1164 val = gdic.wxMetaFile_Ok(self, *_args, **_kwargs)
1165 return val
1166 def SetClipboard(self, *_args, **_kwargs):
1167 val = gdic.wxMetaFile_SetClipboard(self, *_args, **_kwargs)
1168 return val
1169 def GetSize(self, *_args, **_kwargs):
1170 val = gdic.wxMetaFile_GetSize(self, *_args, **_kwargs)
1171 if val: val = wxSizePtr(val) ; val.thisown = 1
1172 return val
1173 def GetWidth(self, *_args, **_kwargs):
1174 val = gdic.wxMetaFile_GetWidth(self, *_args, **_kwargs)
1175 return val
1176 def GetHeight(self, *_args, **_kwargs):
1177 val = gdic.wxMetaFile_GetHeight(self, *_args, **_kwargs)
1178 return val
1179 def GetFileName(self, *_args, **_kwargs):
1180 val = gdic.wxMetaFile_GetFileName(self, *_args, **_kwargs)
1181 return val
1182 def __repr__(self):
1183 return "<%s.%s instance; proxy of C++ wxMetaFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1184 def __nonzero__(self): return self.Ok()
1185 class wxMetaFile(wxMetaFilePtr):
1186 def __init__(self,*_args,**_kwargs):
1187 self.this = gdic.new_wxMetaFile(*_args,**_kwargs)
1188 self.thisown = 1
1189
1190
1191
1192
1193 class wxMetaFileDCPtr(wxDCPtr):
1194 def __init__(self,this):
1195 self.this = this
1196 self.thisown = 0
1197 def Close(self, *_args, **_kwargs):
1198 val = gdic.wxMetaFileDC_Close(self, *_args, **_kwargs)
1199 if val: val = wxMetaFilePtr(val)
1200 return val
1201 def __repr__(self):
1202 return "<%s.%s instance; proxy of C++ wxMetaFileDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1203 class wxMetaFileDC(wxMetaFileDCPtr):
1204 def __init__(self,*_args,**_kwargs):
1205 self.this = gdic.new_wxMetaFileDC(*_args,**_kwargs)
1206 self.thisown = 1
1207
1208
1209
1210
1211 class wxPalettePtr(wxGDIObjectPtr):
1212 def __init__(self,this):
1213 self.this = this
1214 self.thisown = 0
1215 def __del__(self, delfunc=gdic.delete_wxPalette):
1216 if self.thisown == 1:
1217 try:
1218 delfunc(self)
1219 except:
1220 pass
1221 def GetPixel(self, *_args, **_kwargs):
1222 val = gdic.wxPalette_GetPixel(self, *_args, **_kwargs)
1223 return val
1224 def GetRGB(self, *_args, **_kwargs):
1225 val = gdic.wxPalette_GetRGB(self, *_args, **_kwargs)
1226 return val
1227 def Ok(self, *_args, **_kwargs):
1228 val = gdic.wxPalette_Ok(self, *_args, **_kwargs)
1229 return val
1230 def __repr__(self):
1231 return "<%s.%s instance; proxy of C++ wxPalette instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1232 def __nonzero__(self): return self.Ok()
1233 class wxPalette(wxPalettePtr):
1234 def __init__(self,*_args,**_kwargs):
1235 self.this = gdic.new_wxPalette(*_args,**_kwargs)
1236 self.thisown = 1
1237
1238
1239
1240
1241 class wxImageListPtr(wxObjectPtr):
1242 def __init__(self,this):
1243 self.this = this
1244 self.thisown = 0
1245 def __del__(self, delfunc=gdic.delete_wxImageList):
1246 if self.thisown == 1:
1247 try:
1248 delfunc(self)
1249 except:
1250 pass
1251 def Add(self, *_args, **_kwargs):
1252 val = gdic.wxImageList_Add(self, *_args, **_kwargs)
1253 return val
1254 def AddWithColourMask(self, *_args, **_kwargs):
1255 val = gdic.wxImageList_AddWithColourMask(self, *_args, **_kwargs)
1256 return val
1257 def AddIcon(self, *_args, **_kwargs):
1258 val = gdic.wxImageList_AddIcon(self, *_args, **_kwargs)
1259 return val
1260 def Replace(self, *_args, **_kwargs):
1261 val = gdic.wxImageList_Replace(self, *_args, **_kwargs)
1262 return val
1263 def Draw(self, *_args, **_kwargs):
1264 val = gdic.wxImageList_Draw(self, *_args, **_kwargs)
1265 return val
1266 def GetImageCount(self, *_args, **_kwargs):
1267 val = gdic.wxImageList_GetImageCount(self, *_args, **_kwargs)
1268 return val
1269 def Remove(self, *_args, **_kwargs):
1270 val = gdic.wxImageList_Remove(self, *_args, **_kwargs)
1271 return val
1272 def RemoveAll(self, *_args, **_kwargs):
1273 val = gdic.wxImageList_RemoveAll(self, *_args, **_kwargs)
1274 return val
1275 def GetSize(self, *_args, **_kwargs):
1276 val = gdic.wxImageList_GetSize(self, *_args, **_kwargs)
1277 return val
1278 def __repr__(self):
1279 return "<%s.%s instance; proxy of C++ wxImageList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1280 class wxImageList(wxImageListPtr):
1281 def __init__(self,*_args,**_kwargs):
1282 self.this = gdic.new_wxImageList(*_args,**_kwargs)
1283 self.thisown = 1
1284
1285
1286
1287
1288 class wxRegionPtr(wxGDIObjectPtr):
1289 def __init__(self,this):
1290 self.this = this
1291 self.thisown = 0
1292 def __del__(self, delfunc=gdic.delete_wxRegion):
1293 if self.thisown == 1:
1294 try:
1295 delfunc(self)
1296 except:
1297 pass
1298 def Clear(self, *_args, **_kwargs):
1299 val = gdic.wxRegion_Clear(self, *_args, **_kwargs)
1300 return val
1301 def Offset(self, *_args, **_kwargs):
1302 val = gdic.wxRegion_Offset(self, *_args, **_kwargs)
1303 return val
1304 def Contains(self, *_args, **_kwargs):
1305 val = gdic.wxRegion_Contains(self, *_args, **_kwargs)
1306 return val
1307 def ContainsPoint(self, *_args, **_kwargs):
1308 val = gdic.wxRegion_ContainsPoint(self, *_args, **_kwargs)
1309 return val
1310 def ContainsRect(self, *_args, **_kwargs):
1311 val = gdic.wxRegion_ContainsRect(self, *_args, **_kwargs)
1312 return val
1313 def ContainsRectDim(self, *_args, **_kwargs):
1314 val = gdic.wxRegion_ContainsRectDim(self, *_args, **_kwargs)
1315 return val
1316 def GetBox(self, *_args, **_kwargs):
1317 val = gdic.wxRegion_GetBox(self, *_args, **_kwargs)
1318 if val: val = wxRectPtr(val) ; val.thisown = 1
1319 return val
1320 def Intersect(self, *_args, **_kwargs):
1321 val = gdic.wxRegion_Intersect(self, *_args, **_kwargs)
1322 return val
1323 def IntersectRect(self, *_args, **_kwargs):
1324 val = gdic.wxRegion_IntersectRect(self, *_args, **_kwargs)
1325 return val
1326 def IntersectRegion(self, *_args, **_kwargs):
1327 val = gdic.wxRegion_IntersectRegion(self, *_args, **_kwargs)
1328 return val
1329 def IsEmpty(self, *_args, **_kwargs):
1330 val = gdic.wxRegion_IsEmpty(self, *_args, **_kwargs)
1331 return val
1332 def Union(self, *_args, **_kwargs):
1333 val = gdic.wxRegion_Union(self, *_args, **_kwargs)
1334 return val
1335 def UnionRect(self, *_args, **_kwargs):
1336 val = gdic.wxRegion_UnionRect(self, *_args, **_kwargs)
1337 return val
1338 def UnionRegion(self, *_args, **_kwargs):
1339 val = gdic.wxRegion_UnionRegion(self, *_args, **_kwargs)
1340 return val
1341 def Subtract(self, *_args, **_kwargs):
1342 val = gdic.wxRegion_Subtract(self, *_args, **_kwargs)
1343 return val
1344 def SubtractRect(self, *_args, **_kwargs):
1345 val = gdic.wxRegion_SubtractRect(self, *_args, **_kwargs)
1346 return val
1347 def SubtractRegion(self, *_args, **_kwargs):
1348 val = gdic.wxRegion_SubtractRegion(self, *_args, **_kwargs)
1349 return val
1350 def Xor(self, *_args, **_kwargs):
1351 val = gdic.wxRegion_Xor(self, *_args, **_kwargs)
1352 return val
1353 def XorRect(self, *_args, **_kwargs):
1354 val = gdic.wxRegion_XorRect(self, *_args, **_kwargs)
1355 return val
1356 def XorRegion(self, *_args, **_kwargs):
1357 val = gdic.wxRegion_XorRegion(self, *_args, **_kwargs)
1358 return val
1359 def ConvertToBitmap(self, *_args, **_kwargs):
1360 val = gdic.wxRegion_ConvertToBitmap(self, *_args, **_kwargs)
1361 if val: val = wxBitmapPtr(val) ; val.thisown = 1
1362 return val
1363 def UnionBitmap(self, *_args, **_kwargs):
1364 val = gdic.wxRegion_UnionBitmap(self, *_args, **_kwargs)
1365 return val
1366 def __repr__(self):
1367 return "<%s.%s instance; proxy of C++ wxRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1368 class wxRegion(wxRegionPtr):
1369 def __init__(self,*_args,**_kwargs):
1370 self.this = gdic.new_wxRegion(*_args,**_kwargs)
1371 self.thisown = 1
1372
1373
1374
1375 def wxRegionFromPoints(*_args,**_kwargs):
1376 val = wxRegionPtr(gdic.new_wxRegionFromPoints(*_args,**_kwargs))
1377 val.thisown = 1
1378 return val
1379
1380 def wxRegionFromBitmap(*_args,**_kwargs):
1381 val = wxRegionPtr(gdic.new_wxRegionFromBitmap(*_args,**_kwargs))
1382 val.thisown = 1
1383 return val
1384
1385
1386 class wxRegionIteratorPtr(wxObjectPtr):
1387 def __init__(self,this):
1388 self.this = this
1389 self.thisown = 0
1390 def __del__(self, delfunc=gdic.delete_wxRegionIterator):
1391 if self.thisown == 1:
1392 try:
1393 delfunc(self)
1394 except:
1395 pass
1396 def GetX(self, *_args, **_kwargs):
1397 val = gdic.wxRegionIterator_GetX(self, *_args, **_kwargs)
1398 return val
1399 def GetY(self, *_args, **_kwargs):
1400 val = gdic.wxRegionIterator_GetY(self, *_args, **_kwargs)
1401 return val
1402 def GetW(self, *_args, **_kwargs):
1403 val = gdic.wxRegionIterator_GetW(self, *_args, **_kwargs)
1404 return val
1405 def GetWidth(self, *_args, **_kwargs):
1406 val = gdic.wxRegionIterator_GetWidth(self, *_args, **_kwargs)
1407 return val
1408 def GetH(self, *_args, **_kwargs):
1409 val = gdic.wxRegionIterator_GetH(self, *_args, **_kwargs)
1410 return val
1411 def GetHeight(self, *_args, **_kwargs):
1412 val = gdic.wxRegionIterator_GetHeight(self, *_args, **_kwargs)
1413 return val
1414 def GetRect(self, *_args, **_kwargs):
1415 val = gdic.wxRegionIterator_GetRect(self, *_args, **_kwargs)
1416 if val: val = wxRectPtr(val) ; val.thisown = 1
1417 return val
1418 def HaveRects(self, *_args, **_kwargs):
1419 val = gdic.wxRegionIterator_HaveRects(self, *_args, **_kwargs)
1420 return val
1421 def Reset(self, *_args, **_kwargs):
1422 val = gdic.wxRegionIterator_Reset(self, *_args, **_kwargs)
1423 return val
1424 def Next(self, *_args, **_kwargs):
1425 val = gdic.wxRegionIterator_Next(self, *_args, **_kwargs)
1426 return val
1427 def __repr__(self):
1428 return "<%s.%s instance; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1429 class wxRegionIterator(wxRegionIteratorPtr):
1430 def __init__(self,*_args,**_kwargs):
1431 self.this = gdic.new_wxRegionIterator(*_args,**_kwargs)
1432 self.thisown = 1
1433
1434
1435
1436
1437
1438
1439 #-------------- FUNCTION WRAPPERS ------------------
1440
1441 def wxEmptyBitmap(*_args, **_kwargs):
1442 val = gdic.wxEmptyBitmap(*_args,**_kwargs)
1443 if val: val = wxBitmapPtr(val); val.thisown = 1
1444 return val
1445
1446 def wxBitmapFromXPMData(*_args, **_kwargs):
1447 val = gdic.wxBitmapFromXPMData(*_args,**_kwargs)
1448 if val: val = wxBitmapPtr(val); val.thisown = 1
1449 return val
1450
1451 def wxBitmapFromIcon(*_args, **_kwargs):
1452 val = gdic.wxBitmapFromIcon(*_args,**_kwargs)
1453 if val: val = wxBitmapPtr(val); val.thisown = 1
1454 return val
1455
1456 def wxBitmapFromBits(*_args, **_kwargs):
1457 val = gdic.wxBitmapFromBits(*_args,**_kwargs)
1458 if val: val = wxBitmapPtr(val); val.thisown = 1
1459 return val
1460
1461 def wxMaskColour(*_args, **_kwargs):
1462 val = gdic.wxMaskColour(*_args,**_kwargs)
1463 if val: val = wxMaskPtr(val); val.thisown = 1
1464 return val
1465
1466 def wxEmptyIcon(*_args, **_kwargs):
1467 val = gdic.wxEmptyIcon(*_args,**_kwargs)
1468 if val: val = wxIconPtr(val); val.thisown = 1
1469 return val
1470
1471 def wxIconFromXPMData(*_args, **_kwargs):
1472 val = gdic.wxIconFromXPMData(*_args,**_kwargs)
1473 if val: val = wxIconPtr(val); val.thisown = 1
1474 return val
1475
1476 def wxIconFromBitmap(*_args, **_kwargs):
1477 val = gdic.wxIconFromBitmap(*_args,**_kwargs)
1478 if val: val = wxIconPtr(val); val.thisown = 1
1479 return val
1480
1481 def wxIconFromLocation(*_args, **_kwargs):
1482 val = gdic.wxIconFromLocation(*_args,**_kwargs)
1483 if val: val = wxIconPtr(val); val.thisown = 1
1484 return val
1485
1486 def wxStockCursor(*_args, **_kwargs):
1487 val = gdic.wxStockCursor(*_args,**_kwargs)
1488 if val: val = wxCursorPtr(val); val.thisown = 1
1489 return val
1490
1491 def wxCursorFromImage(*_args, **_kwargs):
1492 val = gdic.wxCursorFromImage(*_args,**_kwargs)
1493 if val: val = wxCursorPtr(val); val.thisown = 1
1494 return val
1495
1496 def wxCursorFromBits(*_args, **_kwargs):
1497 val = gdic.wxCursorFromBits(*_args,**_kwargs)
1498 if val: val = wxCursorPtr(val); val.thisown = 1
1499 return val
1500
1501 def wxNamedColour(*_args, **_kwargs):
1502 val = gdic.wxNamedColour(*_args,**_kwargs)
1503 if val: val = wxColourPtr(val); val.thisown = 1
1504 return val
1505
1506 def wxMemoryDCFromDC(*_args, **_kwargs):
1507 val = gdic.wxMemoryDCFromDC(*_args,**_kwargs)
1508 if val: val = wxMemoryDCPtr(val); val.thisown = 1
1509 return val
1510
1511
1512
1513 #-------------- VARIABLE WRAPPERS ------------------
1514
1515 wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
1516 wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
1517 wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
1518 wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
1519 wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
1520 wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
1521 wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE
1522 wxOutRegion = gdic.wxOutRegion
1523 wxPartRegion = gdic.wxPartRegion
1524 wxInRegion = gdic.wxInRegion
1525 cvar = gdic.cvar
1526 wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
1527 wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
1528 wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
1529 wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
1530 wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
1531 wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
1532 wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
1533 wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
1534 wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
1535 wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
1536 wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
1537 wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
1538 wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
1539 wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
1540 wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
1541 wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
1542 wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
1543 wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
1544 wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
1545 wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
1546 wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
1547 wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
1548 wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
1549 wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
1550 wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
1551 wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
1552 wxRED = wxColourPtr(gdic.cvar.wxRED)
1553 wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
1554 wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
1555 wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
1556 wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
1557 wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
1558 wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
1559 wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
1560 wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
1561 wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
1562 wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
1563 wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
1564 wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
1565 wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
1566 wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
1567 wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
1568 wxTheFontList = wxFontListPtr(gdic.cvar.wxTheFontList)
1569 wxThePenList = wxPenListPtr(gdic.cvar.wxThePenList)
1570 wxTheBrushList = wxBrushListPtr(gdic.cvar.wxTheBrushList)
1571 wxTheColourDatabase = wxColourDatabasePtr(gdic.cvar.wxTheColourDatabase)