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

    Class AbstractCustomPainter

    Inheritance
    Object
    AbstractCustomPainter
    BannerPainter
    Namespace: Unity.UIWidgets.widgets
    Syntax
    public abstract class AbstractCustomPainter : CustomPainter, Listenable

    Constructors

    AbstractCustomPainter(Listenable)

    Declaration
    public AbstractCustomPainter(Listenable repaint = null)
    Parameters
    Type Name Description
    Listenable repaint

    Methods

    addListener(VoidCallback)

    Declaration
    public void addListener(VoidCallback listener)
    Parameters
    Type Name Description
    VoidCallback listener
    Implements
    Listenable.addListener(VoidCallback)

    hitTest(Offset)

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

    paint(Canvas, Size)

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

    removeListener(VoidCallback)

    Declaration
    public void removeListener(VoidCallback listener)
    Parameters
    Type Name Description
    VoidCallback listener
    Implements
    Listenable.removeListener(VoidCallback)

    shouldRepaint(CustomPainter)

    Declaration
    public abstract bool shouldRepaint(CustomPainter oldDelegate)
    Parameters
    Type Name Description
    CustomPainter oldDelegate
    Returns
    Type Description
    Boolean
    Implements
    CustomPainter.shouldRepaint(CustomPainter)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    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