public LTRBEdge(LTRBEdge other) { _bottom = other._bottom; _left = other._left; _right = other._right; _top = other._top; }
public YogaLayout(YogaLayout other) { Position = new LTRBEdge(other.Position); Width = other.Width; Height = other.Height; Margin = new LTRBEdge(other.Margin); Border = new LTRBEdge(other.Border); Padding = new LTRBEdge(other.Padding); ComputedFlexBasisGeneration = other.ComputedFlexBasisGeneration; ComputedFlexBasis = other.ComputedFlexBasis; GenerationCount = other.GenerationCount; LastOwnerDirection = other.LastOwnerDirection; NextCachedMeasurementsIndex = other.NextCachedMeasurementsIndex; Array.Copy(other.CachedMeasurements, CachedMeasurements, CachedMeasurements.Length); MeasuredDimensions = new DimensionsFloat(other.MeasuredDimensions); CachedLayout = new YogaCachedMeasurement(other.CachedLayout); Direction = other.Direction; HadOverflow = other.HadOverflow; }