aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/wnd/wndclass/labelwnd.h
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Wasabi/api/wnd/wndclass/labelwnd.h')
-rw-r--r--Src/Wasabi/api/wnd/wndclass/labelwnd.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/Src/Wasabi/api/wnd/wndclass/labelwnd.h b/Src/Wasabi/api/wnd/wndclass/labelwnd.h
new file mode 100644
index 00000000..f6425514
--- /dev/null
+++ b/Src/Wasabi/api/wnd/wndclass/labelwnd.h
@@ -0,0 +1,46 @@
+#ifndef _LABELWND_H
+#define _LABELWND_H
+
+#include <bfc/common.h>
+#include <api/wnd/wndclass/guiobjwnd.h>
+
+#define LABELWND_PARENT GuiObjectWnd
+class LabelWnd : public LABELWND_PARENT {
+protected:
+ LabelWnd();
+public:
+
+ virtual void getClientRect(RECT *);
+ virtual int onResize();
+ virtual int onPaint(Canvas *canvas);
+ virtual int onGetFocus();
+ virtual int onKillFocus();
+ virtual void invalidateLabel();
+ virtual int wantFocus();
+ virtual int wantRenderBaseTexture() { return 1; }
+
+ // override & return 1 to force painting label with focus all the time
+ virtual int forceFocus() { return 0; }
+
+ virtual void onSetName();
+ virtual void setMargin(int newmargin);
+
+ virtual int setFontSize(int size);
+
+//CUT virtual int childNotify(api_window *child, int msg, intptr_t param1=0, intptr_t param2=0);
+
+ int showLabel(int show);
+ int getLabelHeight();
+
+ void reloadResources();
+
+private:
+ int show_label, labelsize;
+ int labelHeight;
+ int margin;
+};
+
+// use this if you want a generic labelwnd (but try not to)
+class LabelWndI : public LabelWnd { };
+
+#endif