Exemplo n.º 1
0
 public YogaStyle()
 {
     Direction      = YogaDirection.Inherit;
     FlexDirection  = YogaFlexDirection.Column;
     JustifyContent = YogaJustify.FlexStart;
     AlignContent   = YogaAlign.FlexStart;
     AlignItems     = YogaAlign.Stretch;
     AlignSelf      = YogaAlign.Auto;
     PositionType   = YogaPositionType.Relative;
     FlexWrap       = YogaWrap.NoWrap;
     Overflow       = YogaOverflow.Visible;
     Display        = YogaDisplay.Flex;
     Flex           = null;
     FlexGrow       = null;
     FlexShrink     = null;
     FlexBasis      = YogaValue.Auto;
     Margin         = YogaArray.From(DefaultEdgeValuesUnit);
     Position       = YogaArray.From(DefaultEdgeValuesUnit);
     Padding        = YogaArray.From(DefaultEdgeValuesUnit);
     Border         = YogaArray.From(DefaultEdgeValuesUnit);
     Dimensions     = YogaArray.From(DefaultDimensionValuesAutoUnit);
     MinDimensions  = YogaArray.From(DefaultDimensionValuesUnit);
     MaxDimensions  = YogaArray.From(DefaultDimensionValuesUnit);
     AspectRatio    = null;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
0
 public static extern void YGNodeStyleSetOverflow(YGNodeHandle node, YogaOverflow flexWrap);
Exemplo n.º 4
0
 public static extern void YGNodeStyleSetOverflow(IntPtr node, YogaOverflow flexWrap);