Search Results for

    Show / Hide Table of Contents

    Class BoxLength

    A C# typedef to make sure that CSS Box sizes are never passed to/from methods that use CSS ContentBox or CSS MarginBox sizes etc (and vice versa).

    Note that we happily down-convert this to a float automatically (so it can be used anywhere a float is required, including: all Unity core APIs) but we never up-convert from a float (so that you can't naively pass a float into a method that was strongly-typed to require an actual BoxLength instance)

    Inheritance
    Object
    BoxLength
    Namespace: NinjaTools.FlexBuilder.CSS3
    Assembly: cs.temp.dll.dll
    Syntax
    public class BoxLength

    Constructors

    - (void) BoxLength(Single)

    Parameters
    Single f

    Properties

    - (Single) InternalFloatValue

    Do NOT directly fetch this unless you are writing an explicit 'convert' routine -- directly accessing this bypasses the compile-time checks that ensure you never accidentally mis-convert

    Methods

    - (Boolean) Equals(BoxLength)

    Parameters
    BoxLength cl
    Returns
    Boolean

    - (Boolean) Equals(Object)

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

    - (Int32) GetHashCode()

    This is critical; without it, the float won't == the float when used inside Dictionary instances (not just directly, but even indirectly it will break any classes that use it as a member variable, etc)

    Returns
    Int32
    Overrides
    Object.GetHashCode()

    - (BoxLength) Max(Single)

    Parameters
    Single other
    Returns
    BoxLength

    - (BoxLength) Min(Single)

    Parameters
    Single other
    Returns
    BoxLength

    - (String) ToString()

    Returns
    String
    Overrides
    Object.ToString()

    - (Single) ZeroAlloc_Plus(Single)

    Parameters
    Single r
    Returns
    Single

    Operators

    - (BoxLength) Addition(BoxLength, BoxLength)

    Parameters
    BoxLength l
    BoxLength r
    Returns
    BoxLength

    - (BoxLength) Addition(BoxLength, Single)

    Parameters
    BoxLength l
    Single r
    Returns
    BoxLength

    - (BoxLength) Division(BoxLength, Single)

    Parameters
    BoxLength l
    Single r
    Returns
    BoxLength

    - (Boolean) Equality(BoxLength, BoxLength)

    Parameters
    BoxLength b1
    BoxLength b2
    Returns
    Boolean

    - (Boolean) GreaterThan(BoxLength, BoxLength)

    Parameters
    BoxLength l
    BoxLength r
    Returns
    Boolean

    - (Boolean) Inequality(BoxLength, BoxLength)

    Parameters
    BoxLength b1
    BoxLength b2
    Returns
    Boolean

    - (Boolean) LessThan(BoxLength, BoxLength)

    Parameters
    BoxLength l
    BoxLength r
    Returns
    Boolean

    - (BoxLength) Multiply(BoxLength, Single)

    Parameters
    BoxLength l
    Single r
    Returns
    BoxLength

    - (BoxLength) Subtraction(BoxLength, BoxLength)

    Parameters
    BoxLength l
    BoxLength r
    Returns
    BoxLength

    - (ContentLength) Subtraction(BoxLength, PaddingValue)

    Parameters
    BoxLength l
    PaddingValue r
    Returns
    ContentLength

    - (BoxLength) Subtraction(BoxLength, Single)

    Parameters
    BoxLength l
    Single r
    Returns
    BoxLength
    In This Article
    Back to top http://flexbuilder.ninja