/** SGX

The   sss    gggg x   x   
     s      g      x x    Engine
      sss   g  gg   x
         s  g   g  x x          Copyright 1995-2009.
     ssss    gggg x   x         Steven Goodwin. All Rights Reserved.
    
This version has been released under the GNU Public License v2.0.

Please see the license files for details.

File: sgx/include/sgx/gui/static_text.hpp

*/

#ifndef SGX_CORE_GUI_STATIC_TEXT_HPP
#define SGX_CORE_GUI_STATIC_TEXT_HPP	1

class sgxGUIStaticTextParams {
public:
	sgxString			m_Text;
	sgxColorRGBA		m_Color;

	sgxGUIStaticTextParams(const sgxString &text="", const sgxColorRGBA color=sgxColorRGBA::White);
};

class sgxGUIStaticText : public sgxWidget {
protected:
	sgxGUIStaticText(const tINT32 x, const tINT32 y, CGUIDesign::tJustify jx, CGUIDesign::tJustify jy, const sgxGUIStaticTextParams &params);
	sgxGUIStaticTextParams		m_SetupParams;

	virtual tBOOL	draw(CSGXDrawSurface *pSurface, const tINT32 offsetX, const tINT32 offsetY) const;
	virtual void	getArea(sgxRect2i &rc) const;
	virtual void	setText(const sgxString &s);

	friend class CSGXGUI;
protected:
	sgxString				m_Text;
	tINT32					m_BaseX, m_BaseY;
	CGUIDesign::tJustify	m_JustifyX;
	CGUIDesign::tJustify	m_JustifyY;

};

#endif /* SGX_CORE_GUI_STATIC_TEXT_HPP */
