本文整理汇总了C++中compareCSSValuePtr函数的典型用法代码示例。如果您正苦于以下问题:C++ compareCSSValuePtr函数的具体用法?C++ compareCSSValuePtr怎么用?C++ compareCSSValuePtr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了compareCSSValuePtr函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: equals
bool equals(const CSSCalcExpressionNode& exp) const override
{
if (type() != exp.type())
return false;
const CSSCalcBinaryOperation& other = static_cast<const CSSCalcBinaryOperation&>(exp);
return compareCSSValuePtr(m_leftSide, other.m_leftSide)
&& compareCSSValuePtr(m_rightSide, other.m_rightSide)
&& m_operator == other.m_operator;
}
示例2: toCSSBasicShapeCircle
bool CSSBasicShapeCircle::equals(const CSSBasicShape& shape) const
{
if (shape.type() != CSSBasicShapeCircleType)
return false;
const CSSBasicShapeCircle& other = toCSSBasicShapeCircle(shape);
return compareCSSValuePtr(m_centerX, other.m_centerX)
&& compareCSSValuePtr(m_centerY, other.m_centerY)
&& compareCSSValuePtr(m_radius, other.m_radius)
&& compareCSSValuePtr(m_referenceBox, other.m_referenceBox);
}
示例3: compareCSSValuePtr
bool CSSBasicShapeCircle::equals(const CSSBasicShape& shape) const
{
if (!is<CSSBasicShapeCircle>(shape))
return false;
const CSSBasicShapeCircle& other = downcast<CSSBasicShapeCircle>(shape);
return compareCSSValuePtr(m_centerX, other.m_centerX)
&& compareCSSValuePtr(m_centerY, other.m_centerY)
&& compareCSSValuePtr(m_radius, other.m_radius)
&& compareCSSValuePtr(m_referenceBox, other.m_referenceBox);
}
示例4: compareCSSValuePtr
bool CSSBasicShapeEllipse::equals(const CSSBasicShape& shape) const
{
if (shape.type() != CSSBasicShapeEllipseType)
return false;
const CSSBasicShapeEllipse& other = static_cast<const CSSBasicShapeEllipse&>(shape);
return compareCSSValuePtr(m_centerX, other.m_centerX)
&& compareCSSValuePtr(m_centerY, other.m_centerY)
&& compareCSSValuePtr(m_radiusX, other.m_radiusX)
&& compareCSSValuePtr(m_radiusY, other.m_radiusY)
&& compareCSSValuePtr(m_referenceBox, other.m_referenceBox);
}
示例5: compareCSSValuePtr
bool CSSFontValue::equals(const CSSFontValue& other) const
{
return compareCSSValuePtr(style, other.style)
&& compareCSSValuePtr(variant, other.variant)
&& compareCSSValuePtr(weight, other.weight)
&& compareCSSValuePtr(stretch, other.stretch)
&& compareCSSValuePtr(size, other.size)
&& compareCSSValuePtr(lineHeight, other.lineHeight)
&& compareCSSValuePtr(family, other.family);
}
示例6: compareCSSValuePtr
bool CSSShadowValue::equals(const CSSShadowValue& other) const
{
return compareCSSValuePtr(color, other.color)
&& compareCSSValuePtr(x, other.x)
&& compareCSSValuePtr(y, other.y)
&& compareCSSValuePtr(blur, other.blur)
&& compareCSSValuePtr(spread, other.spread)
&& compareCSSValuePtr(style, other.style);
}
示例7: compareCSSValuePtr
bool CSSFunctionValue::equals(const CSSFunctionValue& other) const
{
return m_name == other.m_name && compareCSSValuePtr(m_args, other.m_args);
}
示例8: compareCSSValuePtr
bool CSSReflectValue::equals(const CSSReflectValue& other) const
{
return m_direction == other.m_direction
&& compareCSSValuePtr(m_offset, other.m_offset)
&& compareCSSValuePtr(m_mask, other.m_mask);
}
示例9: compareCSSValuePtr
bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const
{
return m_hasHotSpot ? other.m_hasHotSpot && m_hotSpot == other.m_hotSpot : !other.m_hasHotSpot
&& compareCSSValuePtr(m_imageValue, other.m_imageValue);
}
示例10: compareCSSValuePtr
bool CSSCalcValue::equals(const CSSCalcValue& other) const
{
return compareCSSValuePtr(m_expression, other.m_expression);
}
示例11: compareCSSValuePtr
bool CSSBorderImageSliceValue::equals(const CSSBorderImageSliceValue& other) const
{
return m_fill == other.m_fill && compareCSSValuePtr(m_slices, other.m_slices);
}
示例12: compareCSSValuePtr
bool CSSFilterImageValue::equals(const CSSFilterImageValue& other) const
{
return compareCSSValuePtr(m_imageValue, other.m_imageValue)
&& compareCSSValuePtr(m_filterValue, other.m_filterValue);
}
示例13: equalInputImages
bool CSSCrossfadeValue::equals(const CSSCrossfadeValue& other) const
{
return equalInputImages(other)
&& compareCSSValuePtr(m_percentageValue, other.m_percentageValue);
}
示例14: compareCSSValuePtr
bool CSSCrossfadeValue::equalInputImages(const CSSCrossfadeValue& other) const
{
return compareCSSValuePtr(m_fromValue, other.m_fromValue)
&& compareCSSValuePtr(m_toValue, other.m_toValue);
}