1 # This file was created automatically by SWIG.
10 class wxDataFormatPtr
:
11 def __init__(self
,this
):
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
)
20 def GetType(self
, *_args
, **_kwargs
):
21 val
= apply(clip_dndc
.wxDataFormat_GetType
,(self
,) + _args
, _kwargs
)
23 def GetId(self
, *_args
, **_kwargs
):
24 val
= apply(clip_dndc
.wxDataFormat_GetId
,(self
,) + _args
, _kwargs
)
26 def SetId(self
, *_args
, **_kwargs
):
27 val
= apply(clip_dndc
.wxDataFormat_SetId
,(self
,) + _args
, _kwargs
)
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
)
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
):
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
53 def GetFormatCount(self
, *_args
, **_kwargs
):
54 val
= apply(clip_dndc
.wxDataObject_GetFormatCount
,(self
,) + _args
, _kwargs
)
56 def GetAllFormats(self
, *_args
, **_kwargs
):
57 val
= apply(clip_dndc
.wxDataObject_GetAllFormats
,(self
,) + _args
, _kwargs
)
59 def GetDataSize(self
, *_args
, **_kwargs
):
60 val
= apply(clip_dndc
.wxDataObject_GetDataSize
,(self
,) + _args
, _kwargs
)
62 def GetDataHere(self
, *_args
, **_kwargs
):
63 val
= apply(clip_dndc
.wxDataObject_GetDataHere
,(self
,) + _args
, _kwargs
)
65 def SetData(self
, *_args
, **_kwargs
):
66 val
= apply(clip_dndc
.wxDataObject_SetData
,(self
,) + _args
, _kwargs
)
68 def IsSupportedFormat(self
, *_args
, **_kwargs
):
69 val
= apply(clip_dndc
.wxDataObject_IsSupportedFormat
,(self
,) + _args
, _kwargs
)
72 return "<C wxDataObject instance at %s>" % (self
.this
,)
73 class wxDataObject(wxDataObjectPtr
):
74 def __init__(self
,this
):
80 class wxDataObjectSimplePtr(wxDataObjectPtr
):
81 def __init__(self
,this
):
84 def GetFormat(self
, *_args
, **_kwargs
):
85 val
= apply(clip_dndc
.wxDataObjectSimple_GetFormat
,(self
,) + _args
, _kwargs
)
86 if val
: val
= wxDataFormatPtr(val
)
88 def SetFormat(self
, *_args
, **_kwargs
):
89 val
= apply(clip_dndc
.wxDataObjectSimple_SetFormat
,(self
,) + _args
, _kwargs
)
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
)
101 class wxPyDataObjectSimplePtr(wxDataObjectSimplePtr
):
102 def __init__(self
,this
):
105 def _setCallbackInfo(self
, *_args
, **_kwargs
):
106 val
= apply(clip_dndc
.wxPyDataObjectSimple__setCallbackInfo
,(self
,) + _args
, _kwargs
)
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
)
114 self
._setCallbackInfo
(self
, wxPyDataObjectSimple
)
119 class wxDataObjectCompositePtr(wxDataObjectPtr
):
120 def __init__(self
,this
):
123 def Add(self
, *_args
, **_kwargs
):
124 val
= apply(clip_dndc
.wxDataObjectComposite_Add
,(self
,) + _args
, _kwargs
)
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
)
137 class wxTextDataObjectPtr(wxDataObjectSimplePtr
):
138 def __init__(self
,this
):
141 def GetTextLength(self
, *_args
, **_kwargs
):
142 val
= apply(clip_dndc
.wxTextDataObject_GetTextLength
,(self
,) + _args
, _kwargs
)
144 def GetText(self
, *_args
, **_kwargs
):
145 val
= apply(clip_dndc
.wxTextDataObject_GetText
,(self
,) + _args
, _kwargs
)
147 def SetText(self
, *_args
, **_kwargs
):
148 val
= apply(clip_dndc
.wxTextDataObject_SetText
,(self
,) + _args
, _kwargs
)
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
)
160 class wxPyTextDataObjectPtr(wxTextDataObjectPtr
):
161 def __init__(self
,this
):
164 def _setCallbackInfo(self
, *_args
, **_kwargs
):
165 val
= apply(clip_dndc
.wxPyTextDataObject__setCallbackInfo
,(self
,) + _args
, _kwargs
)
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
)
173 self
._setCallbackInfo
(self
, wxPyTextDataObject
)
178 class wxBitmapDataObjectPtr(wxDataObjectSimplePtr
):
179 def __init__(self
,this
):
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
186 def SetBitmap(self
, *_args
, **_kwargs
):
187 val
= apply(clip_dndc
.wxBitmapDataObject_SetBitmap
,(self
,) + _args
, _kwargs
)
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
)
199 class wxPyBitmapDataObjectPtr(wxBitmapDataObjectPtr
):
200 def __init__(self
,this
):
203 def _setCallbackInfo(self
, *_args
, **_kwargs
):
204 val
= apply(clip_dndc
.wxPyBitmapDataObject__setCallbackInfo
,(self
,) + _args
, _kwargs
)
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
)
212 self
._setCallbackInfo
(self
, wxPyBitmapDataObject
)
217 class wxFileDataObjectPtr(wxDataObjectSimplePtr
):
218 def __init__(self
,this
):
221 def GetFilenames(self
, *_args
, **_kwargs
):
222 val
= apply(clip_dndc
.wxFileDataObject_GetFilenames
,(self
,) + _args
, _kwargs
)
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
)
234 class wxCustomDataObjectPtr(wxDataObjectSimplePtr
):
235 def __init__(self
,this
):
238 def TakeData(self
, *_args
, **_kwargs
):
239 val
= apply(clip_dndc
.wxCustomDataObject_TakeData
,(self
,) + _args
, _kwargs
)
241 def SetData(self
, *_args
, **_kwargs
):
242 val
= apply(clip_dndc
.wxCustomDataObject_SetData
,(self
,) + _args
, _kwargs
)
244 def GetSize(self
, *_args
, **_kwargs
):
245 val
= apply(clip_dndc
.wxCustomDataObject_GetSize
,(self
,) + _args
, _kwargs
)
247 def GetData(self
, *_args
, **_kwargs
):
248 val
= apply(clip_dndc
.wxCustomDataObject_GetData
,(self
,) + _args
, _kwargs
)
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
)
260 class wxURLDataObjectPtr(wxDataObjectCompositePtr
):
261 def __init__(self
,this
):
264 def GetURL(self
, *_args
, **_kwargs
):
265 val
= apply(clip_dndc
.wxURLDataObject_GetURL
,(self
,) + _args
, _kwargs
)
267 def SetURL(self
, *_args
, **_kwargs
):
268 val
= apply(clip_dndc
.wxURLDataObject_SetURL
,(self
,) + _args
, _kwargs
)
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
)
280 class wxClipboardPtr(wxObjectPtr
):
281 def __init__(self
,this
):
284 def Open(self
, *_args
, **_kwargs
):
285 val
= apply(clip_dndc
.wxClipboard_Open
,(self
,) + _args
, _kwargs
)
287 def Close(self
, *_args
, **_kwargs
):
288 val
= apply(clip_dndc
.wxClipboard_Close
,(self
,) + _args
, _kwargs
)
290 def IsOpened(self
, *_args
, **_kwargs
):
291 val
= apply(clip_dndc
.wxClipboard_IsOpened
,(self
,) + _args
, _kwargs
)
293 def AddData(self
, *_args
, **_kwargs
):
294 val
= apply(clip_dndc
.wxClipboard_AddData
,(self
,) + _args
, _kwargs
)
297 def SetData(self
, *_args
, **_kwargs
):
298 val
= apply(clip_dndc
.wxClipboard_SetData
,(self
,) + _args
, _kwargs
)
301 def IsSupported(self
, *_args
, **_kwargs
):
302 val
= apply(clip_dndc
.wxClipboard_IsSupported
,(self
,) + _args
, _kwargs
)
304 def GetData(self
, *_args
, **_kwargs
):
305 val
= apply(clip_dndc
.wxClipboard_GetData
,(self
,) + _args
, _kwargs
)
307 def Clear(self
, *_args
, **_kwargs
):
308 val
= apply(clip_dndc
.wxClipboard_Clear
,(self
,) + _args
, _kwargs
)
310 def Flush(self
, *_args
, **_kwargs
):
311 val
= apply(clip_dndc
.wxClipboard_Flush
,(self
,) + _args
, _kwargs
)
313 def UsePrimarySelection(self
, *_args
, **_kwargs
):
314 val
= apply(clip_dndc
.wxClipboard_UsePrimarySelection
,(self
,) + _args
, _kwargs
)
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
)
326 class wxDropSourcePtr
:
327 def __init__(self
,this
):
330 def _setCallbackInfo(self
, *_args
, **_kwargs
):
331 val
= apply(clip_dndc
.wxDropSource__setCallbackInfo
,(self
,) + _args
, _kwargs
)
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
)
339 def GetDataObject(self
, *_args
, **_kwargs
):
340 val
= apply(clip_dndc
.wxDropSource_GetDataObject
,(self
,) + _args
, _kwargs
)
341 if val
: val
= wxDataObjectPtr(val
)
343 def SetCursor(self
, *_args
, **_kwargs
):
344 val
= apply(clip_dndc
.wxDropSource_SetCursor
,(self
,) + _args
, _kwargs
)
346 def DoDragDrop(self
, *_args
, **_kwargs
):
347 val
= apply(clip_dndc
.wxDropSource_DoDragDrop
,(self
,) + _args
, _kwargs
)
349 def base_GiveFeedback(self
, *_args
, **_kwargs
):
350 val
= apply(clip_dndc
.wxDropSource_base_GiveFeedback
,(self
,) + _args
, _kwargs
)
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
)
358 self
._setCallbackInfo
(self
, wxDropSource
, 0)
363 class wxDropTargetPtr
:
364 def __init__(self
,this
):
368 return "<C wxDropTarget instance at %s>" % (self
.this
,)
369 class wxDropTarget(wxDropTargetPtr
):
370 def __init__(self
,this
):
376 class wxPyDropTargetPtr(wxDropTargetPtr
):
377 def __init__(self
,this
):
380 def _setCallbackInfo(self
, *_args
, **_kwargs
):
381 val
= apply(clip_dndc
.wxPyDropTarget__setCallbackInfo
,(self
,) + _args
, _kwargs
)
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
)
390 def SetDataObject(self
, *_args
, **_kwargs
):
391 val
= apply(clip_dndc
.wxPyDropTarget_SetDataObject
,(self
,) + _args
, _kwargs
)
392 if _args
:_args
[0].thisown
= 0
394 def base_OnEnter(self
, *_args
, **_kwargs
):
395 val
= apply(clip_dndc
.wxPyDropTarget_base_OnEnter
,(self
,) + _args
, _kwargs
)
397 def base_OnDragOver(self
, *_args
, **_kwargs
):
398 val
= apply(clip_dndc
.wxPyDropTarget_base_OnDragOver
,(self
,) + _args
, _kwargs
)
400 def base_OnLeave(self
, *_args
, **_kwargs
):
401 val
= apply(clip_dndc
.wxPyDropTarget_base_OnLeave
,(self
,) + _args
, _kwargs
)
403 def base_OnDrop(self
, *_args
, **_kwargs
):
404 val
= apply(clip_dndc
.wxPyDropTarget_base_OnDrop
,(self
,) + _args
, _kwargs
)
406 def GetData(self
, *_args
, **_kwargs
):
407 val
= apply(clip_dndc
.wxPyDropTarget_GetData
,(self
,) + _args
, _kwargs
)
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
)
415 if _args
:_args
[0].thisown
= 0
416 self
._setCallbackInfo
(self
, wxPyDropTarget
)
421 class wxTextDropTargetPtr(wxPyDropTargetPtr
):
422 def __init__(self
,this
):
425 def _setCallbackInfo(self
, *_args
, **_kwargs
):
426 val
= apply(clip_dndc
.wxTextDropTarget__setCallbackInfo
,(self
,) + _args
, _kwargs
)
428 def base_OnEnter(self
, *_args
, **_kwargs
):
429 val
= apply(clip_dndc
.wxTextDropTarget_base_OnEnter
,(self
,) + _args
, _kwargs
)
431 def base_OnDragOver(self
, *_args
, **_kwargs
):
432 val
= apply(clip_dndc
.wxTextDropTarget_base_OnDragOver
,(self
,) + _args
, _kwargs
)
434 def base_OnLeave(self
, *_args
, **_kwargs
):
435 val
= apply(clip_dndc
.wxTextDropTarget_base_OnLeave
,(self
,) + _args
, _kwargs
)
437 def base_OnDrop(self
, *_args
, **_kwargs
):
438 val
= apply(clip_dndc
.wxTextDropTarget_base_OnDrop
,(self
,) + _args
, _kwargs
)
440 def base_OnData(self
, *_args
, **_kwargs
):
441 val
= apply(clip_dndc
.wxTextDropTarget_base_OnData
,(self
,) + _args
, _kwargs
)
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
)
449 self
._setCallbackInfo
(self
, wxTextDropTarget
)
454 class wxFileDropTargetPtr(wxPyDropTargetPtr
):
455 def __init__(self
,this
):
458 def _setCallbackInfo(self
, *_args
, **_kwargs
):
459 val
= apply(clip_dndc
.wxFileDropTarget__setCallbackInfo
,(self
,) + _args
, _kwargs
)
461 def base_OnEnter(self
, *_args
, **_kwargs
):
462 val
= apply(clip_dndc
.wxFileDropTarget_base_OnEnter
,(self
,) + _args
, _kwargs
)
464 def base_OnDragOver(self
, *_args
, **_kwargs
):
465 val
= apply(clip_dndc
.wxFileDropTarget_base_OnDragOver
,(self
,) + _args
, _kwargs
)
467 def base_OnLeave(self
, *_args
, **_kwargs
):
468 val
= apply(clip_dndc
.wxFileDropTarget_base_OnLeave
,(self
,) + _args
, _kwargs
)
470 def base_OnDrop(self
, *_args
, **_kwargs
):
471 val
= apply(clip_dndc
.wxFileDropTarget_base_OnDrop
,(self
,) + _args
, _kwargs
)
473 def base_OnData(self
, *_args
, **_kwargs
):
474 val
= apply(clip_dndc
.wxFileDropTarget_base_OnData
,(self
,) + _args
, _kwargs
)
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
)
482 self
._setCallbackInfo
(self
, wxFileDropTarget
)
489 #-------------- FUNCTION WRAPPERS ------------------
491 def wxCustomDataFormat(*_args
, **_kwargs
):
492 val
= apply(clip_dndc
.wxCustomDataFormat
,_args
,_kwargs
)
493 if val
: val
= wxDataFormatPtr(val
); val
.thisown
= 1
496 wxIsDragResultOk
= clip_dndc
.wxIsDragResultOk
500 #-------------- VARIABLE WRAPPERS ------------------
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_HTML
= clip_dndc
.wxDF_HTML
521 wxDF_MAX
= clip_dndc
.wxDF_MAX
522 cvar
= clip_dndc
.cvar
523 wxFormatInvalid
= wxDataFormatPtr(clip_dndc
.cvar
.wxFormatInvalid
)
524 wxTheClipboard
= wxClipboardPtr(clip_dndc
.cvar
.wxTheClipboard
)
525 wxDrag_CopyOnly
= clip_dndc
.wxDrag_CopyOnly
526 wxDrag_AllowMove
= clip_dndc
.wxDrag_AllowMove
527 wxDrag_DefaultMove
= clip_dndc
.wxDrag_DefaultMove
528 wxDragError
= clip_dndc
.wxDragError
529 wxDragNone
= clip_dndc
.wxDragNone
530 wxDragCopy
= clip_dndc
.wxDragCopy
531 wxDragMove
= clip_dndc
.wxDragMove
532 wxDragLink
= clip_dndc
.wxDragLink
533 wxDragCancel
= clip_dndc
.wxDragCancel