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

    Interface CustomPainter

    Inherited Members
    Listenable.addListener(VoidCallback)
    Listenable.removeListener(VoidCallback)
    Namespace: Unity.UIWidgets.widgets
    Syntax
    public interface CustomPainter : Listenable

    Methods

    hitTest(Offset)

    Declaration
    bool? hitTest(Offset position)
    Parameters
    Type Name Description
    Offset position
    Returns
    Type Description
    Nullable<Boolean>

    paint(Canvas, Size)

    Declaration
    void paint(Canvas canvas, Size size)
    Parameters
    Type Name Description
    Canvas canvas
    Size size

    shouldRepaint(CustomPainter)

    Declaration
    bool shouldRepaint(CustomPainter oldDelegate)
    Parameters
    Type Name Description
    CustomPainter oldDelegate
    Returns
    Type Description
    Boolean
    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