mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 05:46:48 +08:00
23 lines
603 B
C++
23 lines
603 B
C++
#pragma once
|
|
|
|
#include "CProperty.h"
|
|
|
|
namespace WallpaperEngine::Core::Projects {
|
|
using JSON = WallpaperEngine::Data::JSON::JSON;
|
|
|
|
/**
|
|
* Represents a text property
|
|
*/
|
|
class CPropertyText final : public CProperty {
|
|
public:
|
|
CPropertyText (std::string name, std::string text);
|
|
|
|
static std::shared_ptr<CPropertyText> fromJSON (const JSON& data, std::string name);
|
|
[[nodiscard]] std::string dump () const override;
|
|
void set (const std::string& value) override;
|
|
|
|
[[nodiscard]] const char* getPropertyType () const override;
|
|
private:
|
|
};
|
|
} // namespace WallpaperEngine::Core::Projects
|