Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
46
Src/Wasabi/api/wnd/wndclass/labelwnd.h
Normal file
46
Src/Wasabi/api/wnd/wndclass/labelwnd.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue