#ifndef CORE_STYLE_SHADOW_DATA_H_
#define CORE_STYLE_SHADOW_DATA_H_
#include "core/renderer/starlight/style/css_type.h"
namespace lynx {
namespace starlight {
struct ShadowData {
float h_offset = 0;
float v_offset = 0;
float blur = 0;
float spread = 0;
unsigned int color = 0;
ShadowOption option = ShadowOption::kNone;
ShadowData() = default;
~ShadowData() = default;
void Reset();
bool operator==(const ShadowData& rhs) const {
return h_offset == rhs.h_offset && v_offset == rhs.v_offset &&
blur == rhs.blur && spread == rhs.spread && color == rhs.color &&
option == rhs.option;
}
bool operator!=(const ShadowData& rhs) const { return !(*this == rhs); }
};
}
}
#endif