summaryrefslogtreecommitdiff
path: root/plugins/MagneticWindows/src/MagneticWindowsCore.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MagneticWindows/src/MagneticWindowsCore.h')
-rw-r--r--plugins/MagneticWindows/src/MagneticWindowsCore.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/plugins/MagneticWindows/src/MagneticWindowsCore.h b/plugins/MagneticWindows/src/MagneticWindowsCore.h
new file mode 100644
index 0000000000..c0d6938a7f
--- /dev/null
+++ b/plugins/MagneticWindows/src/MagneticWindowsCore.h
@@ -0,0 +1,48 @@
+#include <windows.h>
+#include <commctrl.h>
+#include <stdio.h>
+
+#include <newpluginapi.h>
+#include <m_clist.h>
+#include <m_clui.h>
+#include <m_message.h>
+#include <m_system.h>
+#include <m_options.h>
+// #include "../include/m_plugins.h"
+#include <m_database.h>
+#include <m_langpack.h>
+#include <m_MagneticWindows.h>
+
+#include "SnapToListService.h"
+#include "Options.h"
+
+#include "resource.h"
+#include "Version.h"
+
+typedef
+ struct TDockingWindow {
+ HWND hWnd;
+ WNDPROC OldWindowProc;
+ TDockingWindow* Next;
+ } TDockingWindow, *PDockingWindow;
+typedef
+ struct TRectList {
+ RECT Rect;
+ TRectList* Next;
+ } TRectList, *PRectList;
+typedef
+ struct {
+ PDockingWindow WindowList;
+ PRectList Rects;
+ int MouseX, MouseY;
+ bool SnappedX, SnappedY;
+ } TWorkingVariables;
+
+
+
+#define MODULE_NAME "MagneticWindows"
+extern HINSTANCE hInst;
+
+bool WindowOpen(HWND);
+bool WindowClose(HWND);
+bool WindowCloseAll(); \ No newline at end of file