Class SizedBox | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class SizedBox

    Inheritance
    Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    RenderObjectWidget
    SingleChildRenderObjectWidget
    SizedBox
    Inherited Members
    SingleChildRenderObjectWidget.child
    SingleChildRenderObjectWidget.createElement()
    RenderObjectWidget.didUnmountRenderObject(RenderObject)
    Widget.key
    Widget.canUpdate(Widget, Widget)
    CanonicalMixinDiagnosticableTree.pureWidget
    CanonicalMixinDiagnosticableTree.Equals(Object)
    CanonicalMixinDiagnosticableTree.GetHashCode()
    DiagnosticableTree.toStringShallow(String, DiagnosticLevel)
    DiagnosticableTree.toStringDeep(String, String, DiagnosticLevel)
    DiagnosticableTree.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    DiagnosticableTree.debugDescribeChildren()
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Namespace: Unity.UIWidgets.widgets
    Syntax
    public class SizedBox : SingleChildRenderObjectWidget

    Constructors

    SizedBox(Key, Nullable<Single>, Nullable<Single>, Widget)

    Declaration
    public SizedBox(Key key = null, float? width = default(float? ), float? height = default(float? ), Widget child = null)
    Parameters
    Type Name Description
    Key key
    Nullable<Single> width
    Nullable<Single> height
    Widget child

    Fields

    height

    Declaration
    public readonly float? height
    Field Value
    Type Description
    Nullable<Single>

    width

    Declaration
    public readonly float? width
    Field Value
    Type Description
    Nullable<Single>

    Methods

    createRenderObject(BuildContext)

    Declaration
    public override RenderObject createRenderObject(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    RenderObject
    Overrides
    RenderObjectWidget.createRenderObject(BuildContext)

    debugFillProperties(DiagnosticPropertiesBuilder)

    Declaration
    public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
    Parameters
    Type Name Description
    DiagnosticPropertiesBuilder properties
    Overrides
    Widget.debugFillProperties(DiagnosticPropertiesBuilder)

    expand(Key, Widget)

    Declaration
    public static SizedBox expand(Key key = null, Widget child = null)
    Parameters
    Type Name Description
    Key key
    Widget child
    Returns
    Type Description
    SizedBox

    fromSize(Key, Widget, Size)

    Declaration
    public static SizedBox fromSize(Key key = null, Widget child = null, Size size = null)
    Parameters
    Type Name Description
    Key key
    Widget child
    Size size
    Returns
    Type Description
    SizedBox

    shrink(Key, Widget)

    Declaration
    public static SizedBox shrink(Key key = null, Widget child = null)
    Parameters
    Type Name Description
    Key key
    Widget child
    Returns
    Type Description
    SizedBox

    toStringShort()

    Declaration
    public override string toStringShort()
    Returns
    Type Description
    String
    Overrides
    Widget.toStringShort()

    updateRenderObject(BuildContext, RenderObject)

    Declaration
    public override void updateRenderObject(BuildContext context, RenderObject renderObjectRaw)
    Parameters
    Type Name Description
    BuildContext context
    RenderObject renderObjectRaw
    Overrides
    RenderObjectWidget.updateRenderObject(BuildContext, RenderObject)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023