#ifndef GUIRadioButton_h__ #define GUIRadioButton_h__ #include "GUIPlane.h" #include "GUIText.h" namespace LifeGUI { class GUIRadioButton : public GUIWindow { public: EVENT1(CheckEvent, GUIRadioButton*); CheckEvent Event_CheckChanged; GUIRadioButton(); ~GUIRadioButton(); bool IsChecked(); void SetChecked(bool state); void SetText(const String& _text); const String& GetText(); private: void InternalSetChecked(bool state); void OnBoxClick(GUIWindow* wnd, int v); bool _checked; void UpdateLayout(); GUIPlane* box; GUIText* text; }; } #endif // GUIRadioButton_h__