public static void ApplyShorthand(this StyleSheet sheet, StyleValueHandle[] handles, int specificity, VisualElementStylesData styleData, ShorthandApplicatorFunction applicatorFunc)
 {
     // applicatorFunc should handle Unset.
     applicatorFunc(sheet, handles, specificity, styleData);
 }
예제 #2
0
 public static void ApplyShorthand(this StyleSheet sheet, StyleValueHandle[] handles, int specificity, VisualElementStylesData styleData, ShorthandApplicatorFunction applicatorFunc)
 {
     if (handles[0].valueType != StyleValueType.Keyword && handles[0].valueIndex != 2)
     {
         applicatorFunc(sheet, handles, specificity, styleData);
     }
 }
 public static void ApplyShorthand(this StyleSheet sheet, StyleValueHandle[] handles, int specificity, VisualElementStylesData styleData, ShorthandApplicatorFunction applicatorFunc)
 {
     // Do not apply anything if shorthand is equal to unset
     if (handles[0].valueType != StyleValueType.Keyword && handles[0].valueIndex != (int)StyleValueKeyword.Unset)
     {
         applicatorFunc(sheet, handles, specificity, styleData);
     }
 }