コード例 #1
0
 private UQuery.QueryBuilder <T2> AddRelationship <T2>(StyleSelectorRelationship relationship) where T2 : VisualElement
 {
     UQuery.QueryBuilder <T2> result = new UQuery.QueryBuilder <T2>(this.m_Element);
     result.m_Matchers              = this.m_Matchers;
     result.m_Parts                 = this.m_Parts;
     result.m_StyleSelectors        = this.m_StyleSelectors;
     result.m_Relationship          = ((relationship != StyleSelectorRelationship.None) ? relationship : this.m_Relationship);
     result.pseudoStatesMask        = this.pseudoStatesMask;
     result.negatedPseudoStatesMask = this.negatedPseudoStatesMask;
     return(result);
 }
コード例 #2
0
 public static UQuery.QueryBuilder <T> Query <T>(this VisualElement e, string name = null, string className = null) where T : VisualElement
 {
     UQuery.QueryBuilder <VisualElement> queryBuilder = new UQuery.QueryBuilder <VisualElement>(e);
     return(queryBuilder.OfType <T>(name, className));
 }
コード例 #3
0
        public static UQuery.QueryBuilder <T> Query <T>(this VisualElement e, string name = null, params string[] classes) where T : VisualElement
        {
            var queryBuilder = new UQuery.QueryBuilder <VisualElement>(e).OfType <T>(name, classes);

            return(queryBuilder);
        }