aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/wndmgr/skinwnd.h
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/wndmgr/skinwnd.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/Wasabi/api/wndmgr/skinwnd.h')
-rw-r--r--Src/Wasabi/api/wndmgr/skinwnd.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/Src/Wasabi/api/wndmgr/skinwnd.h b/Src/Wasabi/api/wndmgr/skinwnd.h
new file mode 100644
index 00000000..e372fb56
--- /dev/null
+++ b/Src/Wasabi/api/wndmgr/skinwnd.h
@@ -0,0 +1,42 @@
+#ifndef __SKINWND_H
+#define __SKINWND_H
+
+#include <bfc/common.h>
+#include "api.h"
+#include <api/script/scriptobj.h>
+
+#define WASABISTDCONTAINER_RESIZABLE_STATUS "resizable_status"
+#define WASABISTDCONTAINER_RESIZABLE_NOSTATUS "resizable_nostatus"
+#define WASABISTDCONTAINER_STATIC "static"
+#define WASABISTDCONTAINER_MODAL "modal"
+
+#define SKINWND_ATTACH_LEFT 1
+#define SKINWND_ATTACH_TOP 2
+#define SKINWND_ATTACH_RIGHT 3
+#define SKINWND_ATTACH_BOTTOM 4
+
+class ifc_window;
+class GuiObject;
+
+class SkinWnd
+{
+ public:
+ SkinWnd(GUID svc_or_group_guid, const wchar_t *prefered_container=NULL, int container_flag=0, RECT *animated_rect_source=NULL, int transcient=0, int starthidden=0);
+ SkinWnd(const wchar_t *group_id, const wchar_t *prefered_container=NULL, int container_flag=0, RECT *animated_rect_source=NULL, int transcient=0, int starthidden=0);
+ virtual ~SkinWnd();
+ void destroy(RECT *animated_rect_dest=NULL);
+ ifc_window *getWindow() { return wnd; }
+ ScriptObject *getContainer();
+ ScriptObject *getLayout();
+ int runModal(int center=0);
+ void endModal(int retcode);
+ GuiObject *findObject(const wchar_t *object_id);
+ void notifyMinMaxChanged();
+ int isNewContainer() { return isnew; }
+
+ private:
+ ifc_window *wnd;
+ int isnew;
+};
+
+#endif