private bool SetInlineTextShadow(StyleTextShadow inlineValue, StyleTextShadow sharedValue) { var styleTextShadow = new StyleTextShadow(); if (TryGetInlineTextShadow(ref styleTextShadow)) { if (styleTextShadow.value == inlineValue.value && styleTextShadow.keyword == inlineValue.keyword) { return(false); } } else if (inlineValue.keyword == StyleKeyword.Null) { return(false); } styleTextShadow.value = inlineValue.value; styleTextShadow.keyword = inlineValue.keyword; SetInlineTextShadow(styleTextShadow); if (styleTextShadow.keyword == StyleKeyword.Null) { styleTextShadow.keyword = sharedValue.keyword; styleTextShadow.value = sharedValue.value; } ve.computedStyle.ApplyStyleTextShadow(styleTextShadow.value); return(true); }
public bool TryGetInlineTextShadow(ref StyleTextShadow value) { if (m_HasInlineTextShadow) { value = m_InlineTextShadow; return(true); } return(false); }
public static bool StartAnimationInlineTextShadow(VisualElement element, ref ComputedStyle computedStyle, StyleTextShadow textShadow, int durationMs, int delayMs, Func <float, float> easingCurve) { var to = textShadow.keyword == StyleKeyword.Initial ? InitialStyle.textShadow : textShadow.value; return(element.styleAnimation.Start(StylePropertyId.TextShadow, computedStyle.inheritedData.Read().textShadow, to, durationMs, delayMs, easingCurve)); }
public bool Equals(StyleTextShadow other) { return(other == this); }
public void SetInlineTextShadow(StyleTextShadow value) { m_InlineTextShadow = value; m_HasInlineTextShadow = true; }