]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/clip_dnd.py
SWIGged updates for wxGTK
[wxWidgets.git] / wxPython / src / gtk / clip_dnd.py
1 # This file was created automatically by SWIG.
2 import clip_dndc
3
4 from misc import *
5
6 from gdi import *
7
8 from fonts import *
9 import wx
10 class wxDataFormatPtr :
11 def __init__(self,this):
12 self.this = this
13 self.thisown = 0
14 def __del__(self,clip_dndc=clip_dndc):
15 if self.thisown == 1 :
16 clip_dndc.delete_wxDataFormat(self)
17 def SetType(self, *_args, **_kwargs):
18 val = apply(clip_dndc.wxDataFormat_SetType,(self,) + _args, _kwargs)
19 return val
20 def GetType(self, *_args, **_kwargs):
21 val = apply(clip_dndc.wxDataFormat_GetType,(self,) + _args, _kwargs)
22 return val
23 def GetId(self, *_args, **_kwargs):
24 val = apply(clip_dndc.wxDataFormat_GetId,(self,) + _args, _kwargs)
25 return val
26 def SetId(self, *_args, **_kwargs):
27 val = apply(clip_dndc.wxDataFormat_SetId,(self,) + _args, _kwargs)
28 return val
29 def __repr__(self):
30 return "<C wxDataFormat instance at %s>" % (self.this,)
31 class wxDataFormat(wxDataFormatPtr):
32 def __init__(self,*_args,**_kwargs):
33 self.this = apply(clip_dndc.new_wxDataFormat,_args,_kwargs)
34 self.thisown = 1
35
36
37
38
39 class wxDataObjectPtr :
40 Get = clip_dndc.wxDataObject_Get
41 Set = clip_dndc.wxDataObject_Set
42 Both = clip_dndc.wxDataObject_Both
43 def __init__(self,this):
44 self.this = this
45 self.thisown = 0
46 def __del__(self,clip_dndc=clip_dndc):
47 if self.thisown == 1 :
48 clip_dndc.delete_wxDataObject(self)
49 def GetPreferredFormat(self, *_args, **_kwargs):
50 val = apply(clip_dndc.wxDataObject_GetPreferredFormat,(self,) + _args, _kwargs)
51 if val: val = wxDataFormatPtr(val) ; val.thisown = 1
52 return val
53 def GetFormatCount(self, *_args, **_kwargs):
54 val = apply(clip_dndc.wxDataObject_GetFormatCount,(self,) + _args, _kwargs)
55 return val
56 def GetAllFormats(self, *_args, **_kwargs):
57 val = apply(clip_dndc.wxDataObject_GetAllFormats,(self,) + _args, _kwargs)
58 return val
59 def GetDataSize(self, *_args, **_kwargs):
60 val = apply(clip_dndc.wxDataObject_GetDataSize,(self,) + _args, _kwargs)
61 return val
62 def GetDataHere(self, *_args, **_kwargs):
63 val = apply(clip_dndc.wxDataObject_GetDataHere,(self,) + _args, _kwargs)
64 return val
65 def SetData(self, *_args, **_kwargs):
66 val = apply(clip_dndc.wxDataObject_SetData,(self,) + _args, _kwargs)
67 return val
68 def IsSupportedFormat(self, *_args, **_kwargs):
69 val = apply(clip_dndc.wxDataObject_IsSupportedFormat,(self,) + _args, _kwargs)
70 return val
71 def __repr__(self):
72 return "<C wxDataObject instance at %s>" % (self.this,)
73 class wxDataObject(wxDataObjectPtr):
74 def __init__(self,this):
75 self.this = this
76
77
78
79
80 class wxDataObjectSimplePtr(wxDataObjectPtr):
81 def __init__(self,this):
82 self.this = this
83 self.thisown = 0
84 def GetFormat(self, *_args, **_kwargs):
85 val = apply(clip_dndc.wxDataObjectSimple_GetFormat,(self,) + _args, _kwargs)
86 if val: val = wxDataFormatPtr(val)
87 return val
88 def SetFormat(self, *_args, **_kwargs):
89 val = apply(clip_dndc.wxDataObjectSimple_SetFormat,(self,) + _args, _kwargs)
90 return val
91 def __repr__(self):
92 return "<C wxDataObjectSimple instance at %s>" % (self.this,)
93 class wxDataObjectSimple(wxDataObjectSimplePtr):
94 def __init__(self,*_args,**_kwargs):
95 self.this = apply(clip_dndc.new_wxDataObjectSimple,_args,_kwargs)
96 self.thisown = 1
97
98
99
100
101 class wxPyDataObjectSimplePtr(wxDataObjectSimplePtr):
102 def __init__(self,this):
103 self.this = this
104 self.thisown = 0
105 def _setCallbackInfo(self, *_args, **_kwargs):
106 val = apply(clip_dndc.wxPyDataObjectSimple__setCallbackInfo,(self,) + _args, _kwargs)
107 return val
108 def __repr__(self):
109 return "<C wxPyDataObjectSimple instance at %s>" % (self.this,)
110 class wxPyDataObjectSimple(wxPyDataObjectSimplePtr):
111 def __init__(self,*_args,**_kwargs):
112 self.this = apply(clip_dndc.new_wxPyDataObjectSimple,_args,_kwargs)
113 self.thisown = 1
114 self._setCallbackInfo(self, wxPyDataObjectSimple)
115
116
117
118
119 class wxDataObjectCompositePtr(wxDataObjectPtr):
120 def __init__(self,this):
121 self.this = this
122 self.thisown = 0
123 def Add(self, *_args, **_kwargs):
124 val = apply(clip_dndc.wxDataObjectComposite_Add,(self,) + _args, _kwargs)
125 _args[0].thisown = 0
126 return val
127 def __repr__(self):
128 return "<C wxDataObjectComposite instance at %s>" % (self.this,)
129 class wxDataObjectComposite(wxDataObjectCompositePtr):
130 def __init__(self,*_args,**_kwargs):
131 self.this = apply(clip_dndc.new_wxDataObjectComposite,_args,_kwargs)
132 self.thisown = 1
133
134
135
136
137 class wxTextDataObjectPtr(wxDataObjectSimplePtr):
138 def __init__(self,this):
139 self.this = this
140 self.thisown = 0
141 def GetTextLength(self, *_args, **_kwargs):
142 val = apply(clip_dndc.wxTextDataObject_GetTextLength,(self,) + _args, _kwargs)
143 return val
144 def GetText(self, *_args, **_kwargs):
145 val = apply(clip_dndc.wxTextDataObject_GetText,(self,) + _args, _kwargs)
146 return val
147 def SetText(self, *_args, **_kwargs):
148 val = apply(clip_dndc.wxTextDataObject_SetText,(self,) + _args, _kwargs)
149 return val
150 def __repr__(self):
151 return "<C wxTextDataObject instance at %s>" % (self.this,)
152 class wxTextDataObject(wxTextDataObjectPtr):
153 def __init__(self,*_args,**_kwargs):
154 self.this = apply(clip_dndc.new_wxTextDataObject,_args,_kwargs)
155 self.thisown = 1
156
157
158
159
160 class wxPyTextDataObjectPtr(wxTextDataObjectPtr):
161 def __init__(self,this):
162 self.this = this
163 self.thisown = 0
164 def _setCallbackInfo(self, *_args, **_kwargs):
165 val = apply(clip_dndc.wxPyTextDataObject__setCallbackInfo,(self,) + _args, _kwargs)
166 return val
167 def __repr__(self):
168 return "<C wxPyTextDataObject instance at %s>" % (self.this,)
169 class wxPyTextDataObject(wxPyTextDataObjectPtr):
170 def __init__(self,*_args,**_kwargs):
171 self.this = apply(clip_dndc.new_wxPyTextDataObject,_args,_kwargs)
172 self.thisown = 1
173 self._setCallbackInfo(self, wxPyTextDataObject)
174
175
176
177
178 class wxBitmapDataObjectPtr(wxDataObjectSimplePtr):
179 def __init__(self,this):
180 self.this = this
181 self.thisown = 0
182 def GetBitmap(self, *_args, **_kwargs):
183 val = apply(clip_dndc.wxBitmapDataObject_GetBitmap,(self,) + _args, _kwargs)
184 if val: val = wxBitmapPtr(val) ; val.thisown = 1
185 return val
186 def SetBitmap(self, *_args, **_kwargs):
187 val = apply(clip_dndc.wxBitmapDataObject_SetBitmap,(self,) + _args, _kwargs)
188 return val
189 def __repr__(self):
190 return "<C wxBitmapDataObject instance at %s>" % (self.this,)
191 class wxBitmapDataObject(wxBitmapDataObjectPtr):
192 def __init__(self,*_args,**_kwargs):
193 self.this = apply(clip_dndc.new_wxBitmapDataObject,_args,_kwargs)
194 self.thisown = 1
195
196
197
198
199 class wxPyBitmapDataObjectPtr(wxBitmapDataObjectPtr):
200 def __init__(self,this):
201 self.this = this
202 self.thisown = 0
203 def _setCallbackInfo(self, *_args, **_kwargs):
204 val = apply(clip_dndc.wxPyBitmapDataObject__setCallbackInfo,(self,) + _args, _kwargs)
205 return val
206 def __repr__(self):
207 return "<C wxPyBitmapDataObject instance at %s>" % (self.this,)
208 class wxPyBitmapDataObject(wxPyBitmapDataObjectPtr):
209 def __init__(self,*_args,**_kwargs):
210 self.this = apply(clip_dndc.new_wxPyBitmapDataObject,_args,_kwargs)
211 self.thisown = 1
212 self._setCallbackInfo(self, wxPyBitmapDataObject)
213
214
215
216
217 class wxFileDataObjectPtr(wxDataObjectSimplePtr):
218 def __init__(self,this):
219 self.this = this
220 self.thisown = 0
221 def GetFilenames(self, *_args, **_kwargs):
222 val = apply(clip_dndc.wxFileDataObject_GetFilenames,(self,) + _args, _kwargs)
223 return val
224 def __repr__(self):
225 return "<C wxFileDataObject instance at %s>" % (self.this,)
226 class wxFileDataObject(wxFileDataObjectPtr):
227 def __init__(self,*_args,**_kwargs):
228 self.this = apply(clip_dndc.new_wxFileDataObject,_args,_kwargs)
229 self.thisown = 1
230
231
232
233
234 class wxCustomDataObjectPtr(wxDataObjectSimplePtr):
235 def __init__(self,this):
236 self.this = this
237 self.thisown = 0
238 def TakeData(self, *_args, **_kwargs):
239 val = apply(clip_dndc.wxCustomDataObject_TakeData,(self,) + _args, _kwargs)
240 return val
241 def SetData(self, *_args, **_kwargs):
242 val = apply(clip_dndc.wxCustomDataObject_SetData,(self,) + _args, _kwargs)
243 return val
244 def GetSize(self, *_args, **_kwargs):
245 val = apply(clip_dndc.wxCustomDataObject_GetSize,(self,) + _args, _kwargs)
246 return val
247 def GetData(self, *_args, **_kwargs):
248 val = apply(clip_dndc.wxCustomDataObject_GetData,(self,) + _args, _kwargs)
249 return val
250 def __repr__(self):
251 return "<C wxCustomDataObject instance at %s>" % (self.this,)
252 class wxCustomDataObject(wxCustomDataObjectPtr):
253 def __init__(self,*_args,**_kwargs):
254 self.this = apply(clip_dndc.new_wxCustomDataObject,_args,_kwargs)
255 self.thisown = 1
256
257
258
259
260 class wxURLDataObjectPtr(wxDataObjectCompositePtr):
261 def __init__(self,this):
262 self.this = this
263 self.thisown = 0
264 def GetURL(self, *_args, **_kwargs):
265 val = apply(clip_dndc.wxURLDataObject_GetURL,(self,) + _args, _kwargs)
266 return val
267 def SetURL(self, *_args, **_kwargs):
268 val = apply(clip_dndc.wxURLDataObject_SetURL,(self,) + _args, _kwargs)
269 return val
270 def __repr__(self):
271 return "<C wxURLDataObject instance at %s>" % (self.this,)
272 class wxURLDataObject(wxURLDataObjectPtr):
273 def __init__(self,*_args,**_kwargs):
274 self.this = apply(clip_dndc.new_wxURLDataObject,_args,_kwargs)
275 self.thisown = 1
276
277
278
279
280 class wxClipboardPtr(wxObjectPtr):
281 def __init__(self,this):
282 self.this = this
283 self.thisown = 0
284 def Open(self, *_args, **_kwargs):
285 val = apply(clip_dndc.wxClipboard_Open,(self,) + _args, _kwargs)
286 return val
287 def Close(self, *_args, **_kwargs):
288 val = apply(clip_dndc.wxClipboard_Close,(self,) + _args, _kwargs)
289 return val
290 def IsOpened(self, *_args, **_kwargs):
291 val = apply(clip_dndc.wxClipboard_IsOpened,(self,) + _args, _kwargs)
292 return val
293 def AddData(self, *_args, **_kwargs):
294 val = apply(clip_dndc.wxClipboard_AddData,(self,) + _args, _kwargs)
295 _args[0].thisown = 0
296 return val
297 def SetData(self, *_args, **_kwargs):
298 val = apply(clip_dndc.wxClipboard_SetData,(self,) + _args, _kwargs)
299 _args[0].thisown = 0
300 return val
301 def IsSupported(self, *_args, **_kwargs):
302 val = apply(clip_dndc.wxClipboard_IsSupported,(self,) + _args, _kwargs)
303 return val
304 def GetData(self, *_args, **_kwargs):
305 val = apply(clip_dndc.wxClipboard_GetData,(self,) + _args, _kwargs)
306 return val
307 def Clear(self, *_args, **_kwargs):
308 val = apply(clip_dndc.wxClipboard_Clear,(self,) + _args, _kwargs)
309 return val
310 def Flush(self, *_args, **_kwargs):
311 val = apply(clip_dndc.wxClipboard_Flush,(self,) + _args, _kwargs)
312 return val
313 def UsePrimarySelection(self, *_args, **_kwargs):
314 val = apply(clip_dndc.wxClipboard_UsePrimarySelection,(self,) + _args, _kwargs)
315 return val
316 def __repr__(self):
317 return "<C wxClipboard instance at %s>" % (self.this,)
318 class wxClipboard(wxClipboardPtr):
319 def __init__(self,*_args,**_kwargs):
320 self.this = apply(clip_dndc.new_wxClipboard,_args,_kwargs)
321 self.thisown = 1
322
323
324
325
326 class wxDropSourcePtr :
327 def __init__(self,this):
328 self.this = this
329 self.thisown = 0
330 def _setCallbackInfo(self, *_args, **_kwargs):
331 val = apply(clip_dndc.wxDropSource__setCallbackInfo,(self,) + _args, _kwargs)
332 return val
333 def __del__(self,clip_dndc=clip_dndc):
334 if self.thisown == 1 :
335 clip_dndc.delete_wxDropSource(self)
336 def SetData(self, *_args, **_kwargs):
337 val = apply(clip_dndc.wxDropSource_SetData,(self,) + _args, _kwargs)
338 return val
339 def GetDataObject(self, *_args, **_kwargs):
340 val = apply(clip_dndc.wxDropSource_GetDataObject,(self,) + _args, _kwargs)
341 if val: val = wxDataObjectPtr(val)
342 return val
343 def SetCursor(self, *_args, **_kwargs):
344 val = apply(clip_dndc.wxDropSource_SetCursor,(self,) + _args, _kwargs)
345 return val
346 def DoDragDrop(self, *_args, **_kwargs):
347 val = apply(clip_dndc.wxDropSource_DoDragDrop,(self,) + _args, _kwargs)
348 return val
349 def base_GiveFeedback(self, *_args, **_kwargs):
350 val = apply(clip_dndc.wxDropSource_base_GiveFeedback,(self,) + _args, _kwargs)
351 return val
352 def __repr__(self):
353 return "<C wxDropSource instance at %s>" % (self.this,)
354 class wxDropSource(wxDropSourcePtr):
355 def __init__(self,*_args,**_kwargs):
356 self.this = apply(clip_dndc.new_wxDropSource,_args,_kwargs)
357 self.thisown = 1
358 self._setCallbackInfo(self, wxDropSource, 0)
359
360
361
362
363 class wxDropTargetPtr :
364 def __init__(self,this):
365 self.this = this
366 self.thisown = 0
367 def __repr__(self):
368 return "<C wxDropTarget instance at %s>" % (self.this,)
369 class wxDropTarget(wxDropTargetPtr):
370 def __init__(self,this):
371 self.this = this
372
373
374
375
376 class wxPyDropTargetPtr(wxDropTargetPtr):
377 def __init__(self,this):
378 self.this = this
379 self.thisown = 0
380 def _setCallbackInfo(self, *_args, **_kwargs):
381 val = apply(clip_dndc.wxPyDropTarget__setCallbackInfo,(self,) + _args, _kwargs)
382 return val
383 def __del__(self,clip_dndc=clip_dndc):
384 if self.thisown == 1 :
385 clip_dndc.delete_wxPyDropTarget(self)
386 def GetDataObject(self, *_args, **_kwargs):
387 val = apply(clip_dndc.wxPyDropTarget_GetDataObject,(self,) + _args, _kwargs)
388 if val: val = wxDataObjectPtr(val)
389 return val
390 def SetDataObject(self, *_args, **_kwargs):
391 val = apply(clip_dndc.wxPyDropTarget_SetDataObject,(self,) + _args, _kwargs)
392 if _args:_args[0].thisown = 0
393 return val
394 def base_OnEnter(self, *_args, **_kwargs):
395 val = apply(clip_dndc.wxPyDropTarget_base_OnEnter,(self,) + _args, _kwargs)
396 return val
397 def base_OnDragOver(self, *_args, **_kwargs):
398 val = apply(clip_dndc.wxPyDropTarget_base_OnDragOver,(self,) + _args, _kwargs)
399 return val
400 def base_OnLeave(self, *_args, **_kwargs):
401 val = apply(clip_dndc.wxPyDropTarget_base_OnLeave,(self,) + _args, _kwargs)
402 return val
403 def base_OnDrop(self, *_args, **_kwargs):
404 val = apply(clip_dndc.wxPyDropTarget_base_OnDrop,(self,) + _args, _kwargs)
405 return val
406 def GetData(self, *_args, **_kwargs):
407 val = apply(clip_dndc.wxPyDropTarget_GetData,(self,) + _args, _kwargs)
408 return val
409 def __repr__(self):
410 return "<C wxPyDropTarget instance at %s>" % (self.this,)
411 class wxPyDropTarget(wxPyDropTargetPtr):
412 def __init__(self,*_args,**_kwargs):
413 self.this = apply(clip_dndc.new_wxPyDropTarget,_args,_kwargs)
414 self.thisown = 1
415 if _args:_args[0].thisown = 0
416 self._setCallbackInfo(self, wxPyDropTarget)
417
418
419
420
421 class wxTextDropTargetPtr(wxPyDropTargetPtr):
422 def __init__(self,this):
423 self.this = this
424 self.thisown = 0
425 def _setCallbackInfo(self, *_args, **_kwargs):
426 val = apply(clip_dndc.wxTextDropTarget__setCallbackInfo,(self,) + _args, _kwargs)
427 return val
428 def base_OnEnter(self, *_args, **_kwargs):
429 val = apply(clip_dndc.wxTextDropTarget_base_OnEnter,(self,) + _args, _kwargs)
430 return val
431 def base_OnDragOver(self, *_args, **_kwargs):
432 val = apply(clip_dndc.wxTextDropTarget_base_OnDragOver,(self,) + _args, _kwargs)
433 return val
434 def base_OnLeave(self, *_args, **_kwargs):
435 val = apply(clip_dndc.wxTextDropTarget_base_OnLeave,(self,) + _args, _kwargs)
436 return val
437 def base_OnDrop(self, *_args, **_kwargs):
438 val = apply(clip_dndc.wxTextDropTarget_base_OnDrop,(self,) + _args, _kwargs)
439 return val
440 def base_OnData(self, *_args, **_kwargs):
441 val = apply(clip_dndc.wxTextDropTarget_base_OnData,(self,) + _args, _kwargs)
442 return val
443 def __repr__(self):
444 return "<C wxTextDropTarget instance at %s>" % (self.this,)
445 class wxTextDropTarget(wxTextDropTargetPtr):
446 def __init__(self,*_args,**_kwargs):
447 self.this = apply(clip_dndc.new_wxTextDropTarget,_args,_kwargs)
448 self.thisown = 1
449 self._setCallbackInfo(self, wxTextDropTarget)
450
451
452
453
454 class wxFileDropTargetPtr(wxPyDropTargetPtr):
455 def __init__(self,this):
456 self.this = this
457 self.thisown = 0
458 def _setCallbackInfo(self, *_args, **_kwargs):
459 val = apply(clip_dndc.wxFileDropTarget__setCallbackInfo,(self,) + _args, _kwargs)
460 return val
461 def base_OnEnter(self, *_args, **_kwargs):
462 val = apply(clip_dndc.wxFileDropTarget_base_OnEnter,(self,) + _args, _kwargs)
463 return val
464 def base_OnDragOver(self, *_args, **_kwargs):
465 val = apply(clip_dndc.wxFileDropTarget_base_OnDragOver,(self,) + _args, _kwargs)
466 return val
467 def base_OnLeave(self, *_args, **_kwargs):
468 val = apply(clip_dndc.wxFileDropTarget_base_OnLeave,(self,) + _args, _kwargs)
469 return val
470 def base_OnDrop(self, *_args, **_kwargs):
471 val = apply(clip_dndc.wxFileDropTarget_base_OnDrop,(self,) + _args, _kwargs)
472 return val
473 def base_OnData(self, *_args, **_kwargs):
474 val = apply(clip_dndc.wxFileDropTarget_base_OnData,(self,) + _args, _kwargs)
475 return val
476 def __repr__(self):
477 return "<C wxFileDropTarget instance at %s>" % (self.this,)
478 class wxFileDropTarget(wxFileDropTargetPtr):
479 def __init__(self,*_args,**_kwargs):
480 self.this = apply(clip_dndc.new_wxFileDropTarget,_args,_kwargs)
481 self.thisown = 1
482 self._setCallbackInfo(self, wxFileDropTarget)
483
484
485
486
487
488
489 #-------------- FUNCTION WRAPPERS ------------------
490
491 def wxCustomDataFormat(*_args, **_kwargs):
492 val = apply(clip_dndc.wxCustomDataFormat,_args,_kwargs)
493 if val: val = wxDataFormatPtr(val); val.thisown = 1
494 return val
495
496 wxIsDragResultOk = clip_dndc.wxIsDragResultOk
497
498
499
500 #-------------- VARIABLE WRAPPERS ------------------
501
502 wxDF_INVALID = clip_dndc.wxDF_INVALID
503 wxDF_TEXT = clip_dndc.wxDF_TEXT
504 wxDF_BITMAP = clip_dndc.wxDF_BITMAP
505 wxDF_METAFILE = clip_dndc.wxDF_METAFILE
506 wxDF_SYLK = clip_dndc.wxDF_SYLK
507 wxDF_DIF = clip_dndc.wxDF_DIF
508 wxDF_TIFF = clip_dndc.wxDF_TIFF
509 wxDF_OEMTEXT = clip_dndc.wxDF_OEMTEXT
510 wxDF_DIB = clip_dndc.wxDF_DIB
511 wxDF_PALETTE = clip_dndc.wxDF_PALETTE
512 wxDF_PENDATA = clip_dndc.wxDF_PENDATA
513 wxDF_RIFF = clip_dndc.wxDF_RIFF
514 wxDF_WAVE = clip_dndc.wxDF_WAVE
515 wxDF_UNICODETEXT = clip_dndc.wxDF_UNICODETEXT
516 wxDF_ENHMETAFILE = clip_dndc.wxDF_ENHMETAFILE
517 wxDF_FILENAME = clip_dndc.wxDF_FILENAME
518 wxDF_LOCALE = clip_dndc.wxDF_LOCALE
519 wxDF_PRIVATE = clip_dndc.wxDF_PRIVATE
520 wxDF_MAX = clip_dndc.wxDF_MAX
521 cvar = clip_dndc.cvar
522 wxFormatInvalid = wxDataFormatPtr(clip_dndc.cvar.wxFormatInvalid)
523 wxTheClipboard = wxClipboardPtr(clip_dndc.cvar.wxTheClipboard)
524 wxDragError = clip_dndc.wxDragError
525 wxDragNone = clip_dndc.wxDragNone
526 wxDragCopy = clip_dndc.wxDragCopy
527 wxDragMove = clip_dndc.wxDragMove
528 wxDragLink = clip_dndc.wxDragLink
529 wxDragCancel = clip_dndc.wxDragCancel