CPropertyBoolean.h 569 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "CProperty.h"
  3. namespace WallpaperEngine::Core::Projects
  4. {
  5. using json = nlohmann::json;
  6. class CPropertyBoolean : public CProperty
  7. {
  8. public:
  9. static CPropertyBoolean* fromJSON (json data, const std::string& name);
  10. bool getValue () const;
  11. std::string dump () const override;
  12. void update (const std::string& value) override;
  13. static const std::string Type;
  14. private:
  15. CPropertyBoolean (bool value, const std::string& name, const std::string& text);
  16. bool m_value;
  17. };
  18. }