2020-01-01 20:24:46 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "PascalStr.h"
|
|
|
|
|
#include "PLWidgets.h"
|
|
|
|
|
|
|
|
|
|
namespace PortabilityLayer
|
|
|
|
|
{
|
|
|
|
|
class LabelWidget final : public WidgetSpec<LabelWidget>
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
LabelWidget(const WidgetBasicState &state);
|
|
|
|
|
|
2020-05-18 02:03:17 -04:00
|
|
|
bool Init(const WidgetBasicState &state, const void *additionalData) override;
|
2020-01-01 20:24:46 -05:00
|
|
|
|
2020-02-02 01:38:38 -05:00
|
|
|
void SetString(const PLPasStr &str) override;
|
|
|
|
|
PLPasStr GetString() const override;
|
|
|
|
|
|
2020-01-01 20:24:46 -05:00
|
|
|
void DrawControl(DrawSurface *surface) override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
PascalStr<255> m_text;
|
|
|
|
|
};
|
|
|
|
|
}
|