diff options
| author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
| commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
| tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/wnd/di.cpp | |
| parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
| parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
| download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz | |
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Wasabi/api/wnd/di.cpp')
| -rw-r--r-- | Src/Wasabi/api/wnd/di.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Src/Wasabi/api/wnd/di.cpp b/Src/Wasabi/api/wnd/di.cpp new file mode 100644 index 00000000..d7ff3631 --- /dev/null +++ b/Src/Wasabi/api/wnd/di.cpp @@ -0,0 +1,46 @@ +#include "precomp.h" +#include "drag.h" +#include <api/wnd/api_window.h> + +DI::DI(ifc_window *rw) + { + if (rw == NULL) di = NULL; + else di = rw->getDragInterface(); + } + int DI::dragEnter(ifc_window *sourceWnd) + { + return di ? di->dragEnter(sourceWnd) : 0; + } + int DI::dragOver(int x, int y, ifc_window *sourceWnd) + { + return di ? di->dragOver(x, y, sourceWnd) : 0; + } + int DI::dragSetSticky(ifc_window *wnd, int left, int right, int up, int down) + { + return di ? di->dragSetSticky(wnd, left, right, up, down) : 0; + } + int DI::dragLeave(ifc_window *sourceWnd) + { + return di ? di->dragLeave(sourceWnd) : 0; + } + int DI::dragDrop(ifc_window *sourceWnd, int x, int y) + { + return di ? di->dragDrop(sourceWnd, x, y) : 0; + } + + const wchar_t *DI::dragGetSuggestedDropTitle(void) + { + return di ? di->dragGetSuggestedDropTitle() : NULL; + } + int DI::dragCheckData(const wchar_t *type, int *nitems ) + { + return di ? di->dragCheckData(type, nitems) : 0; + } + void *DI::dragGetData(int slot, int itemnum) + { + return di ? di->dragGetData(slot, itemnum) : NULL; + } + int DI::dragCheckOption(int option) + { + return di ? di->dragCheckOption(option) : NULL; + } |
