Esempio n. 1
0
        public YogaNode(YogaNode node)
        {
            PrintFunction      = node.PrintFunction;
            HasNewLayout       = node.HasNewLayout;
            NodeType           = node.NodeType;
            _measure           = node._measure;
            Baseline           = node.Baseline;
            Dirtied            = node.Dirtied;
            _style             = node._style;
            _layout            = node._layout;
            LineIndex          = node.LineIndex;
            Owner              = node.Owner;
            _children          = new List <YogaNode>(node._children);
            NextChild          = node.NextChild;
            Config             = node.Config;
            _isDirty           = node._isDirty;
            ResolvedDimensions = YogaArray.From(node.ResolvedDimensions);

#if DEBUG
            Interlocked.Increment(ref s_dbuginstanceCount);
#endif
        }
Esempio n. 2
0
        public YogaNode(
            YogaPrint print,
            bool hasNewLayout,
            YogaNodeType nodeType,
            YogaMeasure measure,
            YogaBaseline baseline,
            YogaDirtied dirtied,
            YogaStyle style,
            YogaLayout layout,
            int lineIndex,
            YogaNode owner,
            List <YogaNode> children,
            YogaNode nextChild,
            YogaConfig config,
            bool isDirty,
            YogaValue[] resolvedDimensions)
        {
            PrintFunction      = print;
            HasNewLayout       = hasNewLayout;
            NodeType           = nodeType;
            _measure           = measure;
            Baseline           = baseline;
            Dirtied            = dirtied;
            _style             = style;
            _layout            = layout;
            LineIndex          = lineIndex;
            Owner              = owner;
            _children          = new List <YogaNode>(children);
            NextChild          = nextChild;
            Config             = config;
            _isDirty           = isDirty;
            ResolvedDimensions = YogaArray.From(resolvedDimensions);

#if DEBUG
            Interlocked.Increment(ref s_dbuginstanceCount);
#endif
        }