linux-wallpaperengine/src/WallpaperEngine/Core/UserSettings/CUserSettingFloat.h
Alexis Maiquez 732c60da46 More code cleanups
Update .clang-format

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
2023-02-08 18:48:19 +01:00

33 lines
858 B
C++

#pragma once
#include "CUserSettingValue.h"
namespace WallpaperEngine::Core::Projects
{
class CProperty;
}
namespace WallpaperEngine::Core::UserSettings
{
class CUserSettingFloat : public CUserSettingValue
{
public:
typedef double data_type;
static CUserSettingFloat* fromJSON (nlohmann::json& data);
static CUserSettingFloat* fromScalar (double value);
static std::string Type;
double processValue (const std::vector<Projects::CProperty*>& properties);
double getDefaultValue () const;
private:
CUserSettingFloat (bool hasCondition, bool hasSource, double defaultValue, std::string source, std::string expectedValue);
double m_default;
bool m_hasCondition;
bool m_hasSource;
std::string m_source;
std::string m_expectedValue;
};
}