示例#1
0
 public void CopyFrom(YogaStyle other)
 {
     Direction      = other.Direction;
     FlexDirection  = other.FlexDirection;
     JustifyContent = other.JustifyContent;
     AlignContent   = other.AlignContent;
     AlignItems     = other.AlignItems;
     AlignSelf      = other.AlignSelf;
     PositionType   = other.PositionType;
     FlexWrap       = other.FlexWrap;
     Overflow       = other.Overflow;
     Display        = other.Display;
     Flex           = other.Flex;
     FlexGrow       = other.FlexGrow;
     FlexShrink     = other.FlexShrink;
     FlexBasis      = other.FlexBasis;
     Margin.CopyFrom(other.Margin);
     Position.CopyFrom(other.Position);
     Padding.CopyFrom(other.Padding);
     Border.CopyFrom(other.Border);
     Dimensions.CopyFrom(other.Dimensions);
     MinDimensions.CopyFrom(other.MinDimensions);
     MaxDimensions.CopyFrom(other.MaxDimensions);
     AspectRatio = other.AspectRatio;
 }