Class ScrollbarPainter | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ScrollbarPainter

    Inheritance
    System.Object
    ChangeNotifier
    ScrollbarPainter
    Inherited Members
    ChangeNotifier.hasListeners
    ChangeNotifier.addListener(VoidCallback)
    ChangeNotifier.removeListener(VoidCallback)
    ChangeNotifier.notifyListeners()
    Namespace: Unity.UIWidgets.widgets
    Syntax
    public class ScrollbarPainter : ChangeNotifier, CustomPainter, Listenable

    Constructors

    ScrollbarPainter(Color, TextDirection, Single, Animation<Single>, Single, Single, Radius, Single, Single)

    Declaration
    public ScrollbarPainter(Color color, TextDirection textDirection, float thickness, Animation<float> fadeoutOpacityAnimation, float mainAxisMargin = 0F, float crossAxisMargin = 0F, Radius radius = null, float minLength = 18F, float minOverscrollLength = 18F)
    Parameters
    Type Name Description
    Color color
    TextDirection textDirection
    System.Single thickness
    Animation<System.Single> fadeoutOpacityAnimation
    System.Single mainAxisMargin
    System.Single crossAxisMargin
    Radius radius
    System.Single minLength
    System.Single minOverscrollLength

    Fields

    color

    Declaration
    public Color color
    Field Value
    Type Description
    Color

    crossAxisMargin

    Declaration
    public float crossAxisMargin
    Field Value
    Type Description
    System.Single

    fadeoutOpacityAnimation

    Declaration
    public Animation<float> fadeoutOpacityAnimation
    Field Value
    Type Description
    Animation<System.Single>

    mainAxisMargin

    Declaration
    public float mainAxisMargin
    Field Value
    Type Description
    System.Single

    minLength

    Declaration
    public float minLength
    Field Value
    Type Description
    System.Single

    minOverscrollLength

    Declaration
    public float minOverscrollLength
    Field Value
    Type Description
    System.Single

    radius

    Declaration
    public Radius radius
    Field Value
    Type Description
    Radius

    textDirection

    Declaration
    public TextDirection? textDirection
    Field Value
    Type Description
    System.Nullable<TextDirection>

    thickness

    Declaration
    public float thickness
    Field Value
    Type Description
    System.Single

    Methods

    dispose()

    Declaration
    public override void dispose()
    Overrides
    ChangeNotifier.dispose()

    hitTest(Offset)

    Declaration
    public bool? hitTest(Offset position)
    Parameters
    Type Name Description
    Offset position
    Returns
    Type Description
    System.Nullable<System.Boolean>
    Implements
    CustomPainter.hitTest(Offset)

    paint(Canvas, Size)

    Declaration
    public void paint(Canvas canvas, Size size)
    Parameters
    Type Name Description
    Canvas canvas
    Size size
    Implements
    CustomPainter.paint(Canvas, Size)

    shouldRepaint(CustomPainter)

    Declaration
    public bool shouldRepaint(CustomPainter oldRaw)
    Parameters
    Type Name Description
    CustomPainter oldRaw
    Returns
    Type Description
    System.Boolean
    Implements
    CustomPainter.shouldRepaint(CustomPainter)

    update(ScrollMetrics, AxisDirection)

    Declaration
    public void update(ScrollMetrics metrics, AxisDirection axisDirection)
    Parameters
    Type Name Description
    ScrollMetrics metrics
    AxisDirection 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