Beispiel #1
0
        protected override float computeMaxIntrinsicHeight(float width) {
            float height = this._getSize(BoxConstraints.tightForFinite(width: width)).height;
            if (height.isFinite()) {
                return height;
            }

            return 0.0f;
        }
Beispiel #2
0
        protected override float computeMaxIntrinsicWidth(float height) {
            float width = this._getSize(BoxConstraints.tightForFinite(height: height)).width;
            if (width.isFinite()) {
                return width;
            }

            return 0.0f;
        }
Beispiel #3
0
        protected internal override float computeMinIntrinsicHeight(float width)
        {
            D.assert(width >= 0.0);
            if (_width == null && _height == null)
            {
                return(0.0f);
            }

            return(_sizeForConstraints(BoxConstraints.tightForFinite(width: width)).height);
        }
Beispiel #4
0
        protected internal override float computeMinIntrinsicWidth(float height)
        {
            D.assert(height >= 0.0);
            if (_width == null && _height == null)
            {
                return(0.0f);
            }

            return(_sizeForConstraints(BoxConstraints.tightForFinite(height: height)).width);
        }
Beispiel #5
0
        protected override double computeMinIntrinsicHeight(double width)
        {
            D.assert(width >= 0.0);
            if (this._width == null && this._height == null)
            {
                return(0.0);
            }

            return(this._sizeForConstraints(BoxConstraints.tightForFinite(width: width)).height);
        }
Beispiel #6
0
        protected override double computeMinIntrinsicWidth(double height)
        {
            D.assert(height >= 0.0);
            if (this._width == null && this._height == null)
            {
                return(0.0);
            }

            return(this._sizeForConstraints(BoxConstraints.tightForFinite(height: height)).width);
        }
Beispiel #7
0
        protected override double computeMaxIntrinsicHeight(double width)
        {
            double height = this._getSize(BoxConstraints.tightForFinite(width: width)).height;

            if (height.isFinite())
            {
                return(height);
            }

            return(0.0);
        }
Beispiel #8
0
        protected override double computeMaxIntrinsicWidth(double height)
        {
            double width = this._getSize(BoxConstraints.tightForFinite(height: height)).width;

            if (width.isFinite())
            {
                return(width);
            }

            return(0.0);
        }
Beispiel #9
0
        protected internal override float computeMaxIntrinsicHeight(float width)
        {
            float height = _getSize(BoxConstraints.tightForFinite(width: width)).height;

            if (height.isFinite())
            {
                return(height);
            }

            return(0.0f);
        }
Beispiel #10
0
        protected internal override float computeMaxIntrinsicWidth(float height)
        {
            float width = _getSize(BoxConstraints.tightForFinite(height: height)).width;

            if (width.isFinite())
            {
                return(width);
            }

            return(0.0f);
        }
Beispiel #11
0
        protected override float computeMinIntrinsicHeight(float width)
        {
            D.assert(this._children.Count == this.rows * this.columns);
            List <float> widths = this._computeColumnWidths(BoxConstraints.tightForFinite(width: width));
            float        rowTop = 0.0f;

            for (int y = 0; y < this.rows; y++)
            {
                float rowHeight = 0.0f;
                for (int x = 0; x < this.columns; x++)
                {
                    int       xy    = x + y * this.columns;
                    RenderBox child = this._children[xy];
                    if (child != null)
                    {
                        rowHeight = Mathf.Max(rowHeight, child.getMaxIntrinsicHeight(widths[x]));
                    }
                }

                rowTop += rowHeight;
            }

            return(rowTop);
        }
Beispiel #12
0
 protected internal override float computeMaxIntrinsicHeight(float width)
 {
     D.assert(width >= 0.0);
     return(_sizeForConstraints(BoxConstraints.tightForFinite(width: width)).height);
 }
Beispiel #13
0
 protected internal override float computeMaxIntrinsicWidth(float height)
 {
     D.assert(height >= 0.0);
     return(_sizeForConstraints(BoxConstraints.tightForFinite(height: height)).width);
 }
Beispiel #14
0
 protected override double computeMaxIntrinsicHeight(double width)
 {
     D.assert(width >= 0.0);
     return(this._sizeForConstraints(BoxConstraints.tightForFinite(width: width)).height);
 }
Beispiel #15
0
 protected override double computeMaxIntrinsicWidth(double height)
 {
     D.assert(height >= 0.0);
     return(this._sizeForConstraints(BoxConstraints.tightForFinite(height: height)).width);
 }