aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/wnd/api_wnd.cpp
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/wnd/api_wnd.cpp
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/Wasabi/api/wnd/api_wnd.cpp')
-rw-r--r--Src/Wasabi/api/wnd/api_wnd.cpp57
1 files changed, 57 insertions, 0 deletions
diff --git a/Src/Wasabi/api/wnd/api_wnd.cpp b/Src/Wasabi/api/wnd/api_wnd.cpp
new file mode 100644
index 00000000..50d2f455
--- /dev/null
+++ b/Src/Wasabi/api/wnd/api_wnd.cpp
@@ -0,0 +1,57 @@
+#include "precomp.h"
+#include "api_wnd.h"
+
+#define CBCLASS wnd_apiI
+START_DISPATCH;
+VCB(API_WND_SETROOTWND, main_setRootWnd);
+CB(API_WND_GETROOTWND, main_getRootWnd);
+CB(API_WND_GETMODALWND, getModalWnd);
+VCB(API_WND_PUSHMODALWND, popModalWnd);
+VCB(API_WND_POPMODALWND, popModalWnd);
+CB(API_WND_ROOTWNDFROMPOINT, rootWndFromPoint);
+VCB(API_WND_REGISTERROOTWND, registerRootWnd);
+VCB(API_WND_UNREGISTERROOTWND, unregisterRootWnd);
+CB(API_WND_ROOTWNDISVALID, rootwndIsValid);
+CB(API_WND_INTERCEPTONCHAR, interceptOnChar);
+CB(API_WND_INTERCEPTONKEYDOWN, interceptOnKeyDown);
+CB(API_WND_INTERCEPTONKEYUP, interceptOnKeyUp);
+CB(API_WND_INTERCEPTONSYSKEYDOWN, interceptOnSysKeyDown);
+CB(API_WND_INTERCEPTONSYSKEYUP, interceptOnSysKeyUp);
+VCB(API_WND_HOOKKEYBOARD, hookKeyboard);
+VCB(API_WND_UNHOOKKEYBOARD, unhookKeyboard);
+VCB(API_WND_KBDRESET, kbdReset);
+CB(API_WND_FORWARDONCHAR, forwardOnChar);
+CB(API_WND_FORWARDONKEYDOWN, forwardOnKeyDown);
+CB(API_WND_FORWARDONKEYUP, forwardOnKeyUp);
+CB(API_WND_FORWARDONSYSKEYDOWN, forwardOnSysKeyDown);
+CB(API_WND_FORWARDONSYSKEYUP, forwardOnSysKeyUp);
+CB(API_WND_FORWARDONKILLFOCUS, forwardOnKillFocus);
+CB(API_WND_POPUPEXIT_CHECK, popupexit_check);
+VCB(API_WND_POPUPEXIT_SIGNAL, popupexit_signal);
+VCB(API_WND_POPUPEXIT_REGISTER, popupexit_register);
+VCB(API_WND_POPUPEXIT_DEREGISTER, popupexit_deregister);
+VCB(API_WND_RENDERBASETEXTURE, skin_renderBaseTexture);
+VCB(API_WND_REGISTERBASETEXTUREWINDOW, skin_registerBaseTextureWindow);
+VCB(API_WND_UNREGISTERBASETEXTUREWINDOW, skin_unregisterBaseTextureWindow);
+VCB(API_WND_APPDEACTIVATION_PUSH_DISALLOW, appdeactivation_push_disallow);
+VCB(API_WND_APPDEACTIVATION_POP_DISALLOW, appdeactivation_pop_disallow);
+CB(API_WND_APPDEACTIVATION_ISALLOWED, appdeactivation_isallowed);
+VCB(API_WND_APPDEACTIVATION_SETBYPASS, appdeactivation_setbypass);
+CB(API_WND_FORWARDONMOUSEWHEEL, forwardOnMouseWheel);
+#ifdef WASABI_COMPILE_PAINTSETS
+CB(API_WND_PAINTSET_PRESENT, paintset_present );
+#ifdef WASABI_COMPILE_IMGLDR
+VCB(API_WND_PAINTSET_RENDER, paintset_render);
+#ifdef WASABI_COMPILE_FONTS
+VCB(API_WND_PAINTSET_RENDERTITLE, paintset_renderTitle);
+#endif // fonts
+#endif // imgldr
+#endif // paintsets
+// fg> this may need to go away eventually but i need it _right now_
+VCB(API_WND_SETDEFAULTDROPTARGET, setDefaultDropTarget);
+CB(API_WND_GETDEFAULTDROPTARGET, getDefaultDropTarget);
+CB(API_WND_PUSHKBDLOCK, pushKeyboardLock);
+CB(API_WND_POPKBDLOCK, popKeyboardLock);
+CB(API_WND_ISKBDLOCKED, isKeyboardLocked);
+CB(API_WND_ROOTWNDFROMOSHANDLE, rootWndFromOSHandle);
+END_DISPATCH;