7#ifndef CORE_FXCRT_CSS_CFX_CSSENUMVALUE_H_
8#define CORE_FXCRT_CSS_CFX_CSSENUMVALUE_H_
10#include "core/fxcrt/css/cfx_cssvalue.h"
@ CFX_CSSVALUETYPE_Shorthand
@ CFX_CSSVALUETYPE_Primitive
@ CFX_CSSVALUETYPE_MaybeEnum
@ CFX_CSSVALUETYPE_MaybeString
@ CFX_CSSVALUETYPE_MaybeColor
@ CFX_CSSVALUETYPE_MaybeNumber
static const Color * GetColorByName(WideStringView wsName)
static const LengthUnit * GetLengthUnitByName(WideStringView wsName)
static const PropertyValue * GetPropertyValueByName(WideStringView wsName)
static bool ParseCSSString(const wchar_t *pszValue, size_t nValueLen, size_t *nOffset, size_t *nLength)
FX_ARGB ParseColorForTest(const wchar_t *pszValue, size_t nValueLen, FX_ARGB *dwColor) const
const_prop_iterator end() const
void AddProperty(const CFX_CSSData::Property *property, WideStringView value)
const_prop_iterator begin() const
void AddProperty(const WideString &prop, const WideString &value)
size_t PropertyCountForTesting() const
const_custom_iterator custom_begin() const
const_custom_iterator custom_end() const
RetainPtr< CFX_CSSValue > GetProperty(CFX_CSSProperty eProperty, bool *bImportant) const
static bool ParseCSSColor(const wchar_t *pszValue, size_t nValueLen, FX_ARGB *dwColor)
CFX_CSSPropertyValue Value() const
~CFX_CSSEnumValue() override
CFX_CSSEnumValue(CFX_CSSPropertyValue value)
constexpr FX_ARGB ArgbEncode(uint32_t a, uint32_t r, uint32_t g, uint32_t b)
int FXSYS_HexCharToInt(char c)
int FXSYS_roundf(float f)
CFX_CSSNumberValue::Unit type
CFX_CSSPropertyValue eName