]>
Commit | Line | Data |
---|---|---|
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 wxMetafileDataObjectPtr(wxDataObjectSimplePtr): | |
281 | def __init__(self,this): | |
282 | self.this = this | |
283 | self.thisown = 0 | |
284 | def SetMetafile(self, *_args, **_kwargs): | |
285 | val = apply(clip_dndc.wxMetafileDataObject_SetMetafile,(self,) + _args, _kwargs) | |
286 | return val | |
287 | def GetMetafile(self, *_args, **_kwargs): | |
288 | val = apply(clip_dndc.wxMetafileDataObject_GetMetafile,(self,) + _args, _kwargs) | |
289 | return val | |
290 | def __repr__(self): | |
291 | return "<C wxMetafileDataObject instance at %s>" % (self.this,) | |
292 | class wxMetafileDataObject(wxMetafileDataObjectPtr): | |
293 | def __init__(self,*_args,**_kwargs): | |
294 | self.this = apply(clip_dndc.new_wxMetafileDataObject,_args,_kwargs) | |
295 | self.thisown = 1 | |
296 | ||
297 | ||
298 | ||
299 | ||
300 | class wxClipboardPtr(wxObjectPtr): | |
301 | def __init__(self,this): | |
302 | self.this = this | |
303 | self.thisown = 0 | |
304 | def Open(self, *_args, **_kwargs): | |
305 | val = apply(clip_dndc.wxClipboard_Open,(self,) + _args, _kwargs) | |
306 | return val | |
307 | def Close(self, *_args, **_kwargs): | |
308 | val = apply(clip_dndc.wxClipboard_Close,(self,) + _args, _kwargs) | |
309 | return val | |
310 | def IsOpened(self, *_args, **_kwargs): | |
311 | val = apply(clip_dndc.wxClipboard_IsOpened,(self,) + _args, _kwargs) | |
312 | return val | |
313 | def AddData(self, *_args, **_kwargs): | |
314 | val = apply(clip_dndc.wxClipboard_AddData,(self,) + _args, _kwargs) | |
315 | _args[0].thisown = 0 | |
316 | return val | |
317 | def SetData(self, *_args, **_kwargs): | |
318 | val = apply(clip_dndc.wxClipboard_SetData,(self,) + _args, _kwargs) | |
319 | _args[0].thisown = 0 | |
320 | return val | |
321 | def IsSupported(self, *_args, **_kwargs): | |
322 | val = apply(clip_dndc.wxClipboard_IsSupported,(self,) + _args, _kwargs) | |
323 | return val | |
324 | def GetData(self, *_args, **_kwargs): | |
325 | val = apply(clip_dndc.wxClipboard_GetData,(self,) + _args, _kwargs) | |
326 | return val | |
327 | def Clear(self, *_args, **_kwargs): | |
328 | val = apply(clip_dndc.wxClipboard_Clear,(self,) + _args, _kwargs) | |
329 | return val | |
330 | def Flush(self, *_args, **_kwargs): | |
331 | val = apply(clip_dndc.wxClipboard_Flush,(self,) + _args, _kwargs) | |
332 | return val | |
333 | def UsePrimarySelection(self, *_args, **_kwargs): | |
334 | val = apply(clip_dndc.wxClipboard_UsePrimarySelection,(self,) + _args, _kwargs) | |
335 | return val | |
336 | def __repr__(self): | |
337 | return "<C wxClipboard instance at %s>" % (self.this,) | |
338 | class wxClipboard(wxClipboardPtr): | |
339 | def __init__(self,*_args,**_kwargs): | |
340 | self.this = apply(clip_dndc.new_wxClipboard,_args,_kwargs) | |
341 | self.thisown = 1 | |
342 | ||
343 | ||
344 | ||
345 | ||
346 | class wxDropSourcePtr : | |
347 | def __init__(self,this): | |
348 | self.this = this | |
349 | self.thisown = 0 | |
350 | def _setCallbackInfo(self, *_args, **_kwargs): | |
351 | val = apply(clip_dndc.wxDropSource__setCallbackInfo,(self,) + _args, _kwargs) | |
352 | return val | |
353 | def __del__(self,clip_dndc=clip_dndc): | |
354 | if self.thisown == 1 : | |
355 | clip_dndc.delete_wxDropSource(self) | |
356 | def SetData(self, *_args, **_kwargs): | |
357 | val = apply(clip_dndc.wxDropSource_SetData,(self,) + _args, _kwargs) | |
358 | return val | |
359 | def GetDataObject(self, *_args, **_kwargs): | |
360 | val = apply(clip_dndc.wxDropSource_GetDataObject,(self,) + _args, _kwargs) | |
361 | if val: val = wxDataObjectPtr(val) | |
362 | return val | |
363 | def SetCursor(self, *_args, **_kwargs): | |
364 | val = apply(clip_dndc.wxDropSource_SetCursor,(self,) + _args, _kwargs) | |
365 | return val | |
366 | def DoDragDrop(self, *_args, **_kwargs): | |
367 | val = apply(clip_dndc.wxDropSource_DoDragDrop,(self,) + _args, _kwargs) | |
368 | return val | |
369 | def base_GiveFeedback(self, *_args, **_kwargs): | |
370 | val = apply(clip_dndc.wxDropSource_base_GiveFeedback,(self,) + _args, _kwargs) | |
371 | return val | |
372 | def __repr__(self): | |
373 | return "<C wxDropSource instance at %s>" % (self.this,) | |
374 | class wxDropSource(wxDropSourcePtr): | |
375 | def __init__(self,*_args,**_kwargs): | |
376 | self.this = apply(clip_dndc.new_wxDropSource,_args,_kwargs) | |
377 | self.thisown = 1 | |
378 | self._setCallbackInfo(self, wxDropSource, 0) | |
379 | ||
380 | ||
381 | ||
382 | ||
383 | class wxDropTargetPtr : | |
384 | def __init__(self,this): | |
385 | self.this = this | |
386 | self.thisown = 0 | |
387 | def __repr__(self): | |
388 | return "<C wxDropTarget instance at %s>" % (self.this,) | |
389 | class wxDropTarget(wxDropTargetPtr): | |
390 | def __init__(self,this): | |
391 | self.this = this | |
392 | ||
393 | ||
394 | ||
395 | ||
396 | class wxPyDropTargetPtr(wxDropTargetPtr): | |
397 | def __init__(self,this): | |
398 | self.this = this | |
399 | self.thisown = 0 | |
400 | def _setCallbackInfo(self, *_args, **_kwargs): | |
401 | val = apply(clip_dndc.wxPyDropTarget__setCallbackInfo,(self,) + _args, _kwargs) | |
402 | return val | |
403 | def __del__(self,clip_dndc=clip_dndc): | |
404 | if self.thisown == 1 : | |
405 | clip_dndc.delete_wxPyDropTarget(self) | |
406 | def GetDataObject(self, *_args, **_kwargs): | |
407 | val = apply(clip_dndc.wxPyDropTarget_GetDataObject,(self,) + _args, _kwargs) | |
408 | if val: val = wxDataObjectPtr(val) | |
409 | return val | |
410 | def SetDataObject(self, *_args, **_kwargs): | |
411 | val = apply(clip_dndc.wxPyDropTarget_SetDataObject,(self,) + _args, _kwargs) | |
412 | if _args:_args[0].thisown = 0 | |
413 | return val | |
414 | def base_OnEnter(self, *_args, **_kwargs): | |
415 | val = apply(clip_dndc.wxPyDropTarget_base_OnEnter,(self,) + _args, _kwargs) | |
416 | return val | |
417 | def base_OnDragOver(self, *_args, **_kwargs): | |
418 | val = apply(clip_dndc.wxPyDropTarget_base_OnDragOver,(self,) + _args, _kwargs) | |
419 | return val | |
420 | def base_OnLeave(self, *_args, **_kwargs): | |
421 | val = apply(clip_dndc.wxPyDropTarget_base_OnLeave,(self,) + _args, _kwargs) | |
422 | return val | |
423 | def base_OnDrop(self, *_args, **_kwargs): | |
424 | val = apply(clip_dndc.wxPyDropTarget_base_OnDrop,(self,) + _args, _kwargs) | |
425 | return val | |
426 | def GetData(self, *_args, **_kwargs): | |
427 | val = apply(clip_dndc.wxPyDropTarget_GetData,(self,) + _args, _kwargs) | |
428 | return val | |
429 | def __repr__(self): | |
430 | return "<C wxPyDropTarget instance at %s>" % (self.this,) | |
431 | class wxPyDropTarget(wxPyDropTargetPtr): | |
432 | def __init__(self,*_args,**_kwargs): | |
433 | self.this = apply(clip_dndc.new_wxPyDropTarget,_args,_kwargs) | |
434 | self.thisown = 1 | |
435 | if _args:_args[0].thisown = 0 | |
436 | self._setCallbackInfo(self, wxPyDropTarget) | |
437 | ||
438 | ||
439 | ||
440 | ||
441 | class wxTextDropTargetPtr(wxPyDropTargetPtr): | |
442 | def __init__(self,this): | |
443 | self.this = this | |
444 | self.thisown = 0 | |
445 | def _setCallbackInfo(self, *_args, **_kwargs): | |
446 | val = apply(clip_dndc.wxTextDropTarget__setCallbackInfo,(self,) + _args, _kwargs) | |
447 | return val | |
448 | def base_OnEnter(self, *_args, **_kwargs): | |
449 | val = apply(clip_dndc.wxTextDropTarget_base_OnEnter,(self,) + _args, _kwargs) | |
450 | return val | |
451 | def base_OnDragOver(self, *_args, **_kwargs): | |
452 | val = apply(clip_dndc.wxTextDropTarget_base_OnDragOver,(self,) + _args, _kwargs) | |
453 | return val | |
454 | def base_OnLeave(self, *_args, **_kwargs): | |
455 | val = apply(clip_dndc.wxTextDropTarget_base_OnLeave,(self,) + _args, _kwargs) | |
456 | return val | |
457 | def base_OnDrop(self, *_args, **_kwargs): | |
458 | val = apply(clip_dndc.wxTextDropTarget_base_OnDrop,(self,) + _args, _kwargs) | |
459 | return val | |
460 | def base_OnData(self, *_args, **_kwargs): | |
461 | val = apply(clip_dndc.wxTextDropTarget_base_OnData,(self,) + _args, _kwargs) | |
462 | return val | |
463 | def __repr__(self): | |
464 | return "<C wxTextDropTarget instance at %s>" % (self.this,) | |
465 | class wxTextDropTarget(wxTextDropTargetPtr): | |
466 | def __init__(self,*_args,**_kwargs): | |
467 | self.this = apply(clip_dndc.new_wxTextDropTarget,_args,_kwargs) | |
468 | self.thisown = 1 | |
469 | self._setCallbackInfo(self, wxTextDropTarget) | |
470 | ||
471 | ||
472 | ||
473 | ||
474 | class wxFileDropTargetPtr(wxPyDropTargetPtr): | |
475 | def __init__(self,this): | |
476 | self.this = this | |
477 | self.thisown = 0 | |
478 | def _setCallbackInfo(self, *_args, **_kwargs): | |
479 | val = apply(clip_dndc.wxFileDropTarget__setCallbackInfo,(self,) + _args, _kwargs) | |
480 | return val | |
481 | def base_OnEnter(self, *_args, **_kwargs): | |
482 | val = apply(clip_dndc.wxFileDropTarget_base_OnEnter,(self,) + _args, _kwargs) | |
483 | return val | |
484 | def base_OnDragOver(self, *_args, **_kwargs): | |
485 | val = apply(clip_dndc.wxFileDropTarget_base_OnDragOver,(self,) + _args, _kwargs) | |
486 | return val | |
487 | def base_OnLeave(self, *_args, **_kwargs): | |
488 | val = apply(clip_dndc.wxFileDropTarget_base_OnLeave,(self,) + _args, _kwargs) | |
489 | return val | |
490 | def base_OnDrop(self, *_args, **_kwargs): | |
491 | val = apply(clip_dndc.wxFileDropTarget_base_OnDrop,(self,) + _args, _kwargs) | |
492 | return val | |
493 | def base_OnData(self, *_args, **_kwargs): | |
494 | val = apply(clip_dndc.wxFileDropTarget_base_OnData,(self,) + _args, _kwargs) | |
495 | return val | |
496 | def __repr__(self): | |
497 | return "<C wxFileDropTarget instance at %s>" % (self.this,) | |
498 | class wxFileDropTarget(wxFileDropTargetPtr): | |
499 | def __init__(self,*_args,**_kwargs): | |
500 | self.this = apply(clip_dndc.new_wxFileDropTarget,_args,_kwargs) | |
501 | self.thisown = 1 | |
502 | self._setCallbackInfo(self, wxFileDropTarget) | |
503 | ||
504 | ||
505 | ||
506 | ||
507 | ||
508 | ||
509 | #-------------- FUNCTION WRAPPERS ------------------ | |
510 | ||
511 | def wxCustomDataFormat(*_args, **_kwargs): | |
512 | val = apply(clip_dndc.wxCustomDataFormat,_args,_kwargs) | |
513 | if val: val = wxDataFormatPtr(val); val.thisown = 1 | |
514 | return val | |
515 | ||
516 | wxIsDragResultOk = clip_dndc.wxIsDragResultOk | |
517 | ||
518 | ||
519 | ||
520 | #-------------- VARIABLE WRAPPERS ------------------ | |
521 | ||
522 | wxDF_INVALID = clip_dndc.wxDF_INVALID | |
523 | wxDF_TEXT = clip_dndc.wxDF_TEXT | |
524 | wxDF_BITMAP = clip_dndc.wxDF_BITMAP | |
525 | wxDF_METAFILE = clip_dndc.wxDF_METAFILE | |
526 | wxDF_SYLK = clip_dndc.wxDF_SYLK | |
527 | wxDF_DIF = clip_dndc.wxDF_DIF | |
528 | wxDF_TIFF = clip_dndc.wxDF_TIFF | |
529 | wxDF_OEMTEXT = clip_dndc.wxDF_OEMTEXT | |
530 | wxDF_DIB = clip_dndc.wxDF_DIB | |
531 | wxDF_PALETTE = clip_dndc.wxDF_PALETTE | |
532 | wxDF_PENDATA = clip_dndc.wxDF_PENDATA | |
533 | wxDF_RIFF = clip_dndc.wxDF_RIFF | |
534 | wxDF_WAVE = clip_dndc.wxDF_WAVE | |
535 | wxDF_UNICODETEXT = clip_dndc.wxDF_UNICODETEXT | |
536 | wxDF_ENHMETAFILE = clip_dndc.wxDF_ENHMETAFILE | |
537 | wxDF_FILENAME = clip_dndc.wxDF_FILENAME | |
538 | wxDF_LOCALE = clip_dndc.wxDF_LOCALE | |
539 | wxDF_PRIVATE = clip_dndc.wxDF_PRIVATE | |
540 | wxDF_HTML = clip_dndc.wxDF_HTML | |
541 | wxDF_MAX = clip_dndc.wxDF_MAX | |
542 | cvar = clip_dndc.cvar | |
543 | wxFormatInvalid = wxDataFormatPtr(clip_dndc.cvar.wxFormatInvalid) | |
544 | wxTheClipboard = wxClipboardPtr(clip_dndc.cvar.wxTheClipboard) | |
545 | wxDrag_CopyOnly = clip_dndc.wxDrag_CopyOnly | |
546 | wxDrag_AllowMove = clip_dndc.wxDrag_AllowMove | |
547 | wxDrag_DefaultMove = clip_dndc.wxDrag_DefaultMove | |
548 | wxDragError = clip_dndc.wxDragError | |
549 | wxDragNone = clip_dndc.wxDragNone | |
550 | wxDragCopy = clip_dndc.wxDragCopy | |
551 | wxDragMove = clip_dndc.wxDragMove | |
552 | wxDragLink = clip_dndc.wxDragLink | |
553 | wxDragCancel = clip_dndc.wxDragCancel |