Files
Aerofoil/PortabilityLayer/PLButtonWidget.h

29 lines
626 B
C
Raw Normal View History

#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;
WidgetHandleState_t ProcessEvent(const TimeTaggedVOSEvent &evt) override;
2020-03-01 17:01:35 -05:00
void OnEnabledChanged() override;
int16_t Capture(const Point &pos, WidgetUpdateCallback_t callback) override;
private:
2020-03-14 05:04:51 -04:00
void DrawControlInternal(DrawSurface *surface, bool inverted);
PascalStr<255> m_text;
};
}