*
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#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__
|
||||
Reference in New Issue
Block a user