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; }
public DimensionsFloat(DimensionsFloat other) { Width = other.Width; Height = other.Height; }