MyGUI
3.2.1
|
00001 /* 00002 * This source file is part of MyGUI. For the latest info, see http://mygui.info/ 00003 * Distributed under the MIT License 00004 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) 00005 */ 00006 00007 #ifndef __MYGUI_TEXT_BOX_H__ 00008 #define __MYGUI_TEXT_BOX_H__ 00009 00010 #include "MyGUI_Prerequest.h" 00011 #include "MyGUI_Widget.h" 00012 00013 namespace MyGUI 00014 { 00015 00019 class MYGUI_EXPORT TextBox : 00020 public Widget 00021 { 00022 MYGUI_RTTI_DERIVED( TextBox ) 00023 00024 public: 00025 TextBox(); 00026 00028 virtual IntCoord getTextRegion(); 00029 00031 virtual IntSize getTextSize(); 00032 00034 virtual void setCaption(const UString& _value); 00036 virtual const UString& getCaption(); 00037 00039 virtual void setFontName(const std::string& _value); 00041 const std::string& getFontName(); 00042 00044 virtual void setFontHeight(int _value); 00046 int getFontHeight(); 00047 00049 virtual void setTextAlign(Align _value); 00051 Align getTextAlign(); 00052 00054 virtual void setTextColour(const Colour& _value); 00056 const Colour& getTextColour(); 00057 00063 void setCaptionWithReplacing(const std::string& _value); 00064 00066 virtual void setTextShadowColour(const Colour& _value); 00068 const Colour& getTextShadowColour(); 00069 00071 virtual void setTextShadow(bool _value); 00073 bool getTextShadow(); 00074 00075 protected: 00076 virtual void setPropertyOverride(const std::string& _key, const std::string& _value); 00077 }; 00078 00079 } // namespace MyGUI 00080 00081 #endif // __MYGUI_TEXT_BOX_H__