本文整理汇总了C++中FillLayer::setNext方法的典型用法代码示例。如果您正苦于以下问题:C++ FillLayer::setNext方法的具体用法?C++ FillLayer::setNext怎么用?C++ FillLayer::setNext使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FillLayer
的用法示例。
在下文中一共展示了FillLayer::setNext方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: applyValue
virtual void applyValue(CSSStyleSelector* selector, CSSValue* value) const
{
FillLayer* currChild = (selector->style()->*m_accessLayers)();
FillLayer* prevChild = 0;
if (value->isValueList()) {
/* Walk each value and put it into a layer, creating new layers as needed. */
CSSValueList* valueList = static_cast<CSSValueList*>(value);
for (unsigned int i = 0; i < valueList->length(); i++) {
if (!currChild) {
/* Need to make a new layer to hold this value */
currChild = new FillLayer(m_fillLayerType);
prevChild->setNext(currChild);
}
(selector->*m_mapFill)(m_propertyId, currChild, valueList->itemWithoutBoundsCheck(i));
prevChild = currChild;
currChild = currChild->next();
}
} else {
(selector->*m_mapFill)(m_propertyId, currChild, value);
currChild = currChild->next();
}
while (currChild) {
/* Reset all remaining layers to not have the property set. */
(currChild->*m_clear)();
currChild = currChild->next();
}
}
示例2: applyInheritValue
virtual void applyInheritValue(CSSStyleSelector* selector) const
{
FillLayer* currChild = (selector->style()->*m_accessLayers)();
FillLayer* prevChild = 0;
const FillLayer* currParent = (selector->parentStyle()->*m_layers)();
while (currParent && (currParent->*m_test)()) {
if (!currChild) {
/* Need to make a new layer.*/
currChild = new FillLayer(m_fillLayerType);
prevChild->setNext(currChild);
}
(currChild->*m_set)((currParent->*m_get)());
prevChild = currChild;
currChild = prevChild->next();
currParent = currParent->next();
}
while (currChild) {
/* Reset any remaining layers to not have the property set. */
(currChild->*m_clear)();
currChild = currChild->next();
}
}