Search Results for

    Show / Hide Table of Contents

    Class DefiniteContainingBlockSize

    Used by layout algorithms versions 4.3+, this stores the CSS 'size of a Containing Block', and ensures type-safety.

    Internally it simply wraps a and adds methods to extract the mainAxis/crossAxis values independent of width|height.

    Inheritance
    Object
    DefiniteContainingBlockSize
    Namespace: Global
    Assembly: cs.temp.dll.dll
    Syntax
    public class DefiniteContainingBlockSize

    Constructors

    - (void) DefiniteContainingBlockSize(Vector2)

    Parameters
    Vector2 initial

    Fields

    - (PaddingLength) height

    - (PaddingLength) width

    Methods

    - (Boolean) Equals(DefiniteContainingBlockSize)

    Parameters
    DefiniteContainingBlockSize other
    Returns
    Boolean

    - (Boolean) Equals(Object)

    Parameters
    Object obj
    Returns
    Boolean
    Overrides
    Object.Equals(Object)

    - (Int32) GetHashCode()

    Returns
    Int32
    Overrides
    Object.GetHashCode()

    - (PaddingLength) Length(Axis)

    Spec-CSS: https://www.w3.org/TR/css-position-3/#absolute-cb ContainingBlocks are derived (for normal blocks - in Flexbox we do not implement 'inline blocks' etc, they are out-of-scope) in terms of "the padding edge of the ancestor".

    Spec-CSS: https://www.w3.org/TR/css-box-4/#padding-edge "The padding edge surrounds the box’s padding ... define[s] the box’s padding box, which contains both the content and padding areas."

    So this is returning a PaddingLength

    Parameters
    Axis axis
    Returns
    PaddingLength

    The the padding-box length - CSS says: "the padding edge of the ancestor" (https://www.w3.org/TR/css-position-3/#absolute-cb)

    Exceptions
    Exception

    - (void) Length(Axis, PaddingLength)

    Parameters
    Axis axis
    PaddingLength newValue

    - (String) ToString()

    Returns
    String
    Overrides
    Object.ToString()

    Operators

    - (Boolean) Equality(DefiniteContainingBlockSize, DefiniteContainingBlockSize)

    Parameters
    DefiniteContainingBlockSize b1
    DefiniteContainingBlockSize b2
    Returns
    Boolean

    - (Boolean) Inequality(DefiniteContainingBlockSize, DefiniteContainingBlockSize)

    Parameters
    DefiniteContainingBlockSize b1
    DefiniteContainingBlockSize b2
    Returns
    Boolean
    In This Article
    Back to top http://flexbuilder.ninja