diff options
author | Dan Gudmundsson <[email protected]> | 2016-09-28 13:13:20 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2016-09-29 09:47:38 +0200 |
commit | b8339d7edf63c8745be4be092e63f46bc4e63b91 (patch) | |
tree | 5f160a5782ff7813865851d1cc33316888c0f54c /lib/wx/c_src/gen/wxe_funcs.cpp | |
parent | b271012d04897f788866760c1dea7d51b1b44a4d (diff) | |
download | otp-b8339d7edf63c8745be4be092e63f46bc4e63b91.tar.gz otp-b8339d7edf63c8745be4be092e63f46bc4e63b91.tar.bz2 otp-b8339d7edf63c8745be4be092e63f46bc4e63b91.zip |
wx: add wxWindowDragAcceptFiles
Enable window to handle drop file events.
Diffstat (limited to 'lib/wx/c_src/gen/wxe_funcs.cpp')
-rw-r--r-- | lib/wx/c_src/gen/wxe_funcs.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/wx/c_src/gen/wxe_funcs.cpp b/lib/wx/c_src/gen/wxe_funcs.cpp index 610b0a2558..927528fb32 100644 --- a/lib/wx/c_src/gen/wxe_funcs.cpp +++ b/lib/wx/c_src/gen/wxe_funcs.cpp @@ -315,6 +315,15 @@ case wxWindow_Disable: { // wxWindow::Disable rt.addBool(Result); break; } +#if wxCHECK_VERSION(2,8,10) +case wxWindow_DragAcceptFiles: { // wxWindow::DragAcceptFiles + wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4; + bool * accept = (bool *) bp; bp += 4; + if(!This) throw wxe_badarg(0); + This->DragAcceptFiles(*accept); + break; +} +#endif case wxWindow_Enable: { // wxWindow::Enable bool enable=true; wxWindow *This = (wxWindow *) getPtr(bp,memenv); bp += 4; |