2020-01-05 02:33:03 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "PascalStr.h"
|
|
|
|
|
#include "PLWidgets.h"
|
|
|
|
|
|
|
|
|
|
namespace PortabilityLayer
|
|
|
|
|
{
|
|
|
|
|
class RadioButtonWidget final : public WidgetSpec<RadioButtonWidget>
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
RadioButtonWidget(const WidgetBasicState &state);
|
|
|
|
|
~RadioButtonWidget();
|
|
|
|
|
|
|
|
|
|
bool Init(const WidgetBasicState &state) override;
|
|
|
|
|
|
|
|
|
|
void DrawControl(DrawSurface *surface) override;
|
|
|
|
|
void SetString(const PLPasStr &str) override;
|
2020-02-02 01:38:38 -05:00
|
|
|
PLPasStr GetString() const override;
|
|
|
|
|
|
|
|
|
|
void OnStateChanged() override;
|
2020-01-05 02:33:03 -05:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
PascalStr<255> m_text;
|
|
|
|
|
};
|
|
|
|
|
}
|