winamp/Src/Wasabi/api/wnd/wndclass/labelwnd.h

47 lines
1.1 KiB
C
Raw Normal View History

2024-09-24 13:54:57 +01:00
#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