Beispiel #1
0
 public YGCachedMeasurement()
 {
     availableWidth    = 0;
     availableHeight   = 0;
     widthMeasureMode  = YGMeasureMode.Undefined;
     heightMeasureMode = YGMeasureMode.Undefined;
     computedWidth     = -1;
     computedHeight    = -1;
 }
Beispiel #2
0
 public YGCachedMeasurement(YGCachedMeasurement other)
 {
     availableWidth    = other.availableWidth;
     availableHeight   = other.availableHeight;
     widthMeasureMode  = other.widthMeasureMode;
     heightMeasureMode = other.heightMeasureMode;
     computedWidth     = other.computedWidth;
     computedHeight    = other.computedHeight;
 }
Beispiel #3
0
 /// <inheritdoc />
 public MeasureCallbackEndEventArgs(
     YGNode node,
     object layoutContext,
     float width,
     YGMeasureMode widthMeasureMode,
     float height,
     YGMeasureMode heightMeasureMode,
     float measuredWidth,
     float measuredHeight,
     LayoutPassReason reason
     ) : base(node)
 {
     LayoutContext     = layoutContext;
     Width             = width;
     WidthMeasureMode  = widthMeasureMode;
     Height            = height;
     HeightMeasureMode = heightMeasureMode;
     MeasuredWidth     = measuredWidth;
     MeasuredHeight    = measuredHeight;
     Reason            = reason;
 }