| 12345678910111213141516171819202122232425 |
- #pragma once
- #include "CProperty.h"
- namespace WallpaperEngine::Core::Projects
- {
- using json = nlohmann::json;
- class CPropertyBoolean : public CProperty
- {
- public:
- static CPropertyBoolean* fromJSON (json data, const std::string& name);
- bool getValue () const;
- std::string dump () const override;
- void update (const std::string& value) override;
- static const std::string Type;
- private:
- CPropertyBoolean (bool value, const std::string& name, const std::string& text);
- bool m_value;
- };
- }
|