Files
LifeProject/LifeGUI/src/GUIRadioButton.h
T
2025-05-13 02:46:21 +03:00

30 lines
600 B
C++

#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__