guiapplabel.h
来自「老外为HGE写的扩展GUI」· C头文件 代码 · 共 28 行
H
28 行
#ifndef __GUIAPPLABEL_H__
#define __GUIAPPLABEL_H__
#include "guiappobj.h"
#include "m_str.h"
class GUIAppLabel : public GUIAppObject {
public:
GUIAppLabel(int id, float x, float y, hgeFont *fnt, char* text, DWORD color = 0xFFFFFFFF, int align = HGETEXT_LEFT);
void SetAlign(int align);
void SetVisible(bool yesno);
void SetText(char *text);
void SetText(int value);
void SetColor(DWORD col);
virtual void Render();
virtual void Move( float dx, float dy);
private:
hgeFont* m_Font;
hgeVector m_Pos;
int m_Align;
TStr m_Text;
DWORD m_Color;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?