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

*/

#ifndef SGX_CORE_GUI_RADIO_BUTTON_HPP
#define SGX_CORE_GUI_RADIO_BUTTON_HPP	1

class sgxGUIRadioButtonParams {
public:
	tBOOL			m_bInitialState;
	sgxWidgetGroup	*m_pGroup;
	tBOOL			m_bTextOnRight;
	sgxString		m_Text;
	tUINT32			m_Width, m_Height;

	sgxGUIRadioButtonParams(const sgxString &text, sgxWidgetGroup *pGroup=NULL, tBOOL initState=FALSE);
	sgxGUIRadioButtonParams(){}
	
	static tUINT32	DEFAULT_WIDTH;
	static tUINT32	DEFAULT_HEIGHT;
};

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

protected:
	sgxGUIRadioButton(const tINT32 x, const tINT32 y, const sgxGUIRadioButtonParams &params);

	tBOOL						m_bState;

	sgxGUIRadioButtonParams		m_SetupParams;
	sgxGUISkinnedRadioButton *	m_pSkinParams;

	friend class CSGXGUI;

};


#endif /* SGX_CORE_GUI_RADIO_BUTTON_HPP */
