mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 13:22:23 +08:00

Added comments all over the codebase to explain things a bit better Improved CApplicationContext to be a bit more self-explanatory Abstracted CRenderContext access away into a helper that every render class should use Signed-off-by: Alexis Maiquez <almamu@almamu.com>
25 lines
556 B
C++
25 lines
556 B
C++
#pragma once
|
|
|
|
#include "CProperty.h"
|
|
|
|
namespace WallpaperEngine::Core::Projects
|
|
{
|
|
using json = nlohmann::json;
|
|
|
|
/**
|
|
* Represents a text property
|
|
*/
|
|
class CPropertyText : public CProperty
|
|
{
|
|
public:
|
|
static CPropertyText* fromJSON (json data, const std::string& name);
|
|
[[nodiscard]] std::string dump () const override;
|
|
void update (const std::string& value) override;
|
|
|
|
static const std::string Type;
|
|
|
|
private:
|
|
CPropertyText (const std::string& name, const std::string& text);
|
|
};
|
|
}
|