/** SGX

The   sss    gggg x   x   
     s      g      x x    Engine
      sss   g  gg   x
         s  g   g  x x          Copyright 1995-2008.
     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: include/sgx/gui/button.hpp

*/

#ifndef SGX_CORE_GUI_BUTTON_HPP
#define SGX_CORE_GUI_BUTTON_HPP	1

class sgxGUIButtonParams {
public:
	tUINT32		m_Width, m_Height;
	sgxString	m_Text;

	sgxGUIButtonParams(const sgxString &text="", const tUINT32 widthPixels=-1);

	static tUINT32	DEFAULT_WIDTH;
	static tUINT32	DEFAULT_HEIGHT;
};

class sgxGUIButton : public sgxWidget {
public:
	virtual void	getArea(sgxRect2i &rc) const;
	virtual tBOOL	draw(const tINT32 offsetX, const tINT32 offsetY) const;
	virtual void 	setText(const sgxString &s);

protected:
	sgxGUIButton(const tINT32 x, const tINT32 y, const sgxGUIButtonParams &params);

	sgxGUIButtonParams		m_SetupParams;
	sgxGUISkinnedButton *	m_pSkinParams;

	friend class CSGXGUI;
};

#endif /* SGX_CORE_GUI_BUTTON_HPP */
