Files
Aerofoil/PortabilityLayer/PLCheckboxWidget.h
elasota 7548690c51 Fix up radio buttons, more editbox functionality.
All blocking issues with UI should now be fixed.
2020-02-16 21:57:02 -05:00

29 lines
598 B
C++

#pragma once
#include "PascalStr.h"
#include "PLWidgets.h"
namespace PortabilityLayer
{
class CheckboxWidget final : public WidgetSpec<CheckboxWidget>
{
public:
CheckboxWidget(const WidgetBasicState &state);
~CheckboxWidget();
bool Init(const WidgetBasicState &state) override;
void DrawControl(DrawSurface *surface) override;
void SetString(const PLPasStr &str) override;
PLPasStr GetString() const override;
void OnStateChanged() override;
WidgetHandleState_t ProcessEvent(const TimeTaggedVOSEvent &evt);
private:
PascalStr<255> m_text;
bool m_haveMouseDown;
};
}