Search Results for

    Show / Hide Table of Contents

    Class ContentLength

    A C# typedef to make sure that CSS ContentBox sizes are never passed to/from methods that use CSS BorderBox or CSS MarginBox sizes (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 ContentLength instance)

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

    Constructors

    - (void) ContentLength(Single)

    Parameters
    Single f

    Properties

    - (BoxLength) asBoxLength

    ONLY use this inside a conversion routine, otherwise you lose all typesafety (and get corrupt results)

    Methods

    - (Boolean) Equals(ContentLength)

    Parameters
    ContentLength 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()

    - (String) ToString()

    Returns
    String
    Overrides
    Object.ToString()

    - (Single) ZeroAlloc_Plus(Single)

    Parameters
    Single r
    Returns
    Single

    Operators

    - (ContentLength) Addition(ContentLength, ContentLength)

    Parameters
    ContentLength l
    ContentLength r
    Returns
    ContentLength

    - (PaddingLength) Addition(ContentLength, PaddingValue)

    Parameters
    ContentLength l
    PaddingValue r
    Returns
    PaddingLength

    - (ContentLength) Addition(ContentLength, Single)

    Parameters
    ContentLength l
    Single r
    Returns
    ContentLength

    - (Boolean) Equality(ContentLength, ContentLength)

    Parameters
    ContentLength b1
    ContentLength b2
    Returns
    Boolean

    - (Nullable<Single>) Implicit(ContentLength to Nullable)

    Parameters
    ContentLength cl
    Returns
    Nullable<Single>

    - (Single) Implicit(ContentLength to Single)

    Parameters
    ContentLength cl
    Returns
    Single

    - (Boolean) Inequality(ContentLength, ContentLength)

    Parameters
    ContentLength b1
    ContentLength b2
    Returns
    Boolean

    - (ContentLength) Subtraction(ContentLength, Single)

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