2020-01-01 20:24:46 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "PascalStr.h"
|
|
|
|
|
#include "PLWidgets.h"
|
|
|
|
|
|
|
|
|
|
namespace PortabilityLayer
|
|
|
|
|
{
|
|
|
|
|
class ButtonWidget final : public WidgetSpec<ButtonWidget>
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit ButtonWidget(const WidgetBasicState &state);
|
|
|
|
|
|
|
|
|
|
bool Init(const WidgetBasicState &state) override;
|
|
|
|
|
|
2020-01-04 01:19:01 -05:00
|
|
|
void DrawControl(DrawSurface *surface) override;
|
|
|
|
|
|
2020-01-01 20:49:18 -05:00
|
|
|
WidgetHandleState_t ProcessEvent(const TimeTaggedVOSEvent &evt) override;
|
2020-01-01 20:24:46 -05:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool m_haveMouseDown;
|
|
|
|
|
PascalStr<255> m_text;
|
|
|
|
|
};
|
|
|
|
|
}
|