Emscripten port

This commit is contained in:
elasota
2021-03-29 21:41:11 -04:00
parent 9ba0e9f13d
commit 6fb45f480b
92 changed files with 15731 additions and 300 deletions

View File

@@ -5,7 +5,7 @@
namespace PortabilityLayer
{
class LabelWidget final : public WidgetSpec<LabelWidget>
class LabelWidget final : public WidgetSpec<LabelWidget, WidgetTypes::kLabel>
{
public:
LabelWidget(const WidgetBasicState &state);
@@ -17,6 +17,9 @@ namespace PortabilityLayer
void DrawControl(DrawSurface *surface) override;
WidgetHandleState_t ProcessEvent(void *captureContext, const TimeTaggedVOSEvent &evt) GP_ASYNCIFY_PARANOID_OVERRIDE;
int16_t Capture(void *captureContext, const Point &pos, WidgetUpdateCallback_t callback) GP_ASYNCIFY_PARANOID_OVERRIDE;
private:
PascalStr<255> m_text;
};