Mercurial > LightClone
view LightClone/Source/GuiLabel.h @ 54:95677f648a2c VirtualMachine Mk2
Refactored VirtualMachine
author | koryspansel |
---|---|
date | Fri, 30 Sep 2011 18:37:54 -0700 |
parents | efd2b1ca5b77 |
children | 3507bd831c7f |
line wrap: on
line source
/* * GuiLabel */ #ifndef __GUILABEL_H__ #define __GUILABEL_H__ #include "Core.h" #include "GuiElement.h" #include "FixedString.h" /* * GuiLabelFlag */ enum { GuiLabelFlag_CenterX = (1 << 0), GuiLabelFlag_CenterY = (1 << 1), }; /* * GuiLabel */ class GuiLabel : public GuiElement { /* * pFont */ ID3DXFont* pFont; /* * kLabel */ FixedString<> kLabel; /* * nLabelFlags */ uint32 nLabelFlags; public: /* * GuiLabel */ GuiLabel(); /* * Initialize */ virtual ErrorCode Initialize(ResourceManager* pResourceManager); /* * Render */ virtual void Render(GuiRenderContext& kContext); /* * SetFont */ ErrorCode SetFont(const char* pName, uint32 nSize, uint32 nHeight = FW_NORMAL); /* * SetText */ ErrorCode SetText(const char* pText); /* * SetLabelFlag */ ErrorCode SetLabelFlag(uint32 nFlag); /* * ClearLabelFlag */ ErrorCode ClearLabelFlag(uint32 nFlag); }; #endif //__GUILABEL_H__