/** 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/check_box.hpp

*/

#ifndef SGX_CORE_GUI_CHECKBOX_HPP
#define SGX_CORE_GUI_CHECKBOX_HPP	1

class sgxGUICheckBoxParams {
public:
	tBOOL		m_bInitialState;
	tBOOL		m_bTextOnRight;
	sgxString	m_Text;
	tUINT32		m_Width, m_Height;

	sgxGUICheckBoxParams(const tBOOL initState=FALSE);
	
	static tUINT32	DEFAULT_WIDTH;
	static tUINT32	DEFAULT_HEIGHT;
};

class sgxGUICheckBox : public sgxWidget {
public:
	virtual void	getArea(sgxRect2i &rc) const;
	virtual tBOOL	onSelect(const sgxVector2 &position);
	virtual tBOOL	draw(const tINT32 offsetX, const tINT32 offsetY) const;

protected:
	sgxGUICheckBox(const tINT32 x, const tINT32 y, const sgxGUICheckBoxParams &params);

	sgxGUICheckBoxParams		m_SetupParams;
	tBOOL						m_bState;
	sgxGUISkinnedCheckBox *		m_pSkinParams;

	friend class CSGXGUI;
};

#endif /* SGX_CORE_GUI_CHECKBOX_HPP */
