linux-wallpaperengine/src/WallpaperEngine/Core/Projects/CPropertyText.h

23 lines
553 B
C++

#pragma once
#include "CProperty.h"
namespace WallpaperEngine::Core::Projects {
using json = nlohmann::json;
/**
* Represents a text property
*/
class CPropertyText final : public CProperty {
public:
static const CPropertyText* fromJSON (const json& data, std::string name);
[[nodiscard]] std::string dump () const override;
void update (const std::string& value) const override;
static const std::string Type;
private:
CPropertyText (std::string name, std::string text);
};
} // namespace WallpaperEngine::Core::Projects