My Project
|
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 #pragma once 00029 #include "Define.h" 00030 #include "Control.h" 00031 #include "ParameterHoldClick.h" 00032 00033 namespace SallyAPI 00034 { 00035 namespace GUI 00036 { 00045 00046 class DLL_API_SALLY CLabel 00047 : public SallyAPI::GUI::CControl 00048 { 00049 protected: 00050 bool m_bDrawBackground; 00051 bool m_bBold; 00052 bool m_bBig; 00053 bool m_bFitBackgroundToText; 00054 std::string m_strFontName; 00055 00056 virtual void RenderControl(); 00057 virtual bool ProcessMouseUp(int x, int y); 00058 public: 00059 CLabel(SallyAPI::GUI::CGUIBaseObject* parent, int x, int y, int width, int controlId = 0); 00060 virtual ~CLabel(); 00061 00062 virtual void Timer(float timeDelta); 00063 00064 void SetBold(bool bold); 00065 void SetFont(const std::string& fontName); 00066 void SetDrawBackground(bool drawBackground); 00067 void SetBig(bool big); 00068 void SetFitBackgroundToText(bool value); 00069 }; 00070 } 00071 }