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

    Class ScrollView

    Inheritance
    Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatelessWidget
    ScrollView
    BoxScrollView
    CustomScrollView
    Inherited Members
    StatelessWidget.createElement()
    Widget.key
    Widget.toStringShort()
    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 abstract class ScrollView : StatelessWidget

    Constructors

    ScrollView(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, Key, Single, Nullable<Single>, DragStartBehavior)

    Declaration
    protected ScrollView(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, Key center = null, float anchor = 0F, float? cacheExtent = default(float? ), DragStartBehavior dragStartBehavior = DragStartBehavior.start)
    Parameters
    Type Name Description
    Key key
    Axis scrollDirection
    Boolean reverse
    ScrollController controller
    Nullable<Boolean> primary
    ScrollPhysics physics
    Boolean shrinkWrap
    Key center
    Single anchor
    Nullable<Single> cacheExtent
    DragStartBehavior dragStartBehavior

    Fields

    anchor

    Declaration
    public readonly float anchor
    Field Value
    Type Description
    Single

    cacheExtent

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

    center

    Declaration
    public readonly Key center
    Field Value
    Type Description
    Key

    controller

    Declaration
    public readonly ScrollController controller
    Field Value
    Type Description
    ScrollController

    dragStartBehavior

    Declaration
    public readonly DragStartBehavior dragStartBehavior
    Field Value
    Type Description
    DragStartBehavior

    physics

    Declaration
    public readonly ScrollPhysics physics
    Field Value
    Type Description
    ScrollPhysics

    primary

    Declaration
    public readonly bool primary
    Field Value
    Type Description
    Boolean

    reverse

    Declaration
    public readonly bool reverse
    Field Value
    Type Description
    Boolean

    scrollDirection

    Declaration
    public readonly Axis scrollDirection
    Field Value
    Type Description
    Axis

    shrinkWrap

    Declaration
    public readonly bool shrinkWrap
    Field Value
    Type Description
    Boolean

    Methods

    build(BuildContext)

    Declaration
    public override Widget build(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    Widget
    Overrides
    StatelessWidget.build(BuildContext)

    buildSlivers(BuildContext)

    Declaration
    protected abstract List<Widget> buildSlivers(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    List<Widget>

    buildViewport(BuildContext, ViewportOffset, AxisDirection, List<Widget>)

    Declaration
    protected virtual Widget buildViewport(BuildContext context, ViewportOffset offset, AxisDirection axisDirection, List<Widget> slivers)
    Parameters
    Type Name Description
    BuildContext context
    ViewportOffset offset
    AxisDirection axisDirection
    List<Widget> slivers
    Returns
    Type Description
    Widget

    debugFillProperties(DiagnosticPropertiesBuilder)

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

    getDirection(BuildContext)

    Declaration
    protected AxisDirection getDirection(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    AxisDirection
    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