7#ifndef CORE_FXCRT_CSS_CFX_CSS_H_
8#define CORE_FXCRT_CSS_CFX_CSS_H_
27#define CSS_PROP____(a, b, c, d) a,
29#include "core/fxcrt/css/properties.inc"
33#undef CSS_PROP_VALUE____
34#define CSS_PROP_VALUE____(a, b, c) a,
36#include "core/fxcrt/css/property_values.inc"
38#undef CSS_PROP_VALUE____
101 : m_unit(eUnit), m_fValue(fValue) {}
117 bool NonZero()
const {
return static_cast<
int>(m_fValue) != 0; }
@ CFX_CSSVALUETYPE_Shorthand
@ CFX_CSSVALUETYPE_Primitive
@ CFX_CSSVALUETYPE_MaybeEnum
@ CFX_CSSVALUETYPE_MaybeString
@ CFX_CSSVALUETYPE_MaybeColor
@ CFX_CSSVALUETYPE_MaybeNumber
~CFX_CSSColorValue() override
CFX_CSSColorValue(FX_ARGB color)
CFX_CSSLengthUnit GetUnit() const
CFX_CSSLength & Set(CFX_CSSLengthUnit eUnit)
CFX_CSSLength & Set(CFX_CSSLengthUnit eUnit, float fValue)
CFX_CSSLength(CFX_CSSLengthUnit eUnit, float fValue)
CFX_CSSRect(CFX_CSSLengthUnit eUnit, float val)
CFX_CSSRect & Set(CFX_CSSLengthUnit eUnit)
CFX_CSSRect & Set(CFX_CSSLengthUnit eUnit, float fValue)
CFX_CSSValue(PrimitiveType type)
PrimitiveType GetType() const