| 12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include "UIElement.h"
- class UITextElement : public UIElement
- {
- private:
- Framework::Text text;
- public:
- UITextElement();
- void setText(const Framework::Text& text);
- const Framework::Text& getText() const;
- virtual Framework::XML::Element* toUIML(
- Framework::Either<Block*, Entity*> zTarget,
- Entity* zActor) const override;
- };
- class UITextElementFactory : public UIElementFactory<UITextElement>
- {
- public:
- UITextElementFactory();
- virtual JSONObjectValidationBuilder* addToValidator(
- JSONObjectValidationBuilder* builder) const override;
- UITextElement* fromJson(Framework::JSON::JSONObject* zJson) const override;
- Framework::JSON::JSONObject* toJsonObject(
- UITextElement* zObject) const override;
- UITextElement* createElement(
- Framework::JSON::JSONObject* zJson) const override;
- const char* getTypeToken() const override;
- };
|