mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
23 lines
553 B
C++
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
|