aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/skin/widgets/titlebox.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/skin/widgets/titlebox.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/Wasabi/api/skin/widgets/titlebox.h')
-rw-r--r--Src/Wasabi/api/skin/widgets/titlebox.h95
1 files changed, 95 insertions, 0 deletions
diff --git a/Src/Wasabi/api/skin/widgets/titlebox.h b/Src/Wasabi/api/skin/widgets/titlebox.h
new file mode 100644
index 00000000..6631657a
--- /dev/null
+++ b/Src/Wasabi/api/skin/widgets/titlebox.h
@@ -0,0 +1,95 @@
+#ifndef __TITLEBOX_H
+#define __TITLEBOX_H
+
+#include <api/wnd/wndclass/guiobjwnd.h>
+
+#define TITLEBOX_PARENT GuiObjectWnd
+
+
+/**
+ Titlebox
+
+ @short
+ @author Nullsoft
+ @ver 1.0
+ @see
+*/
+class TitleBox : public TITLEBOX_PARENT {
+
+ public:
+
+
+ /**
+ Method
+
+ @see
+ @ret
+ @param
+ */
+ TitleBox();
+
+ /**
+ Method
+
+ @see
+ @ret
+ @param
+ */
+ virtual ~TitleBox();
+
+
+ /**
+ Method
+
+ @see
+ @ret
+ @param
+ */
+ virtual int onInit();
+
+ virtual int onResize();
+ virtual int getCentered() { return centered; }
+ virtual void setCentered(int _centered);
+ virtual void setTitle(const wchar_t *t);
+ virtual const wchar_t *getTitle() { return title; }
+ virtual void setSuffix(const wchar_t *suffix);
+ const wchar_t *getSuffix() { return suffix; }
+
+ virtual void onNewContent();
+
+
+ virtual void setChildGroup(const wchar_t *grp);
+
+ /**
+ Method
+
+ @see
+ @ret
+ @param
+ */
+ virtual int getPreferences(int what);
+
+ private:
+
+
+ /**
+ Method
+
+ @see
+ @ret
+ @param
+ */
+ void setSubContent(int insertcontent=1);
+
+ GuiObjectWnd *titleleft;
+ GuiObjectWnd *titleright;
+ GuiObjectWnd *titlecenter;
+ GuiObjectWnd *content;
+ int centered;
+ StringW title;
+ StringW content_id;
+ StringW suffix;
+};
+
+
+#endif