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

    Class BannerPainter

    Inheritance
    System.Object
    AbstractCustomPainter
    BannerPainter
    Inherited Members
    AbstractCustomPainter.addListener(VoidCallback)
    AbstractCustomPainter.removeListener(VoidCallback)
    AbstractCustomPainter.ToString()
    Namespace: Unity.UIWidgets.widgets
    Syntax
    public class BannerPainter : AbstractCustomPainter, CustomPainter, Listenable

    Constructors

    BannerPainter(String, Nullable<BannerLocation>, Color, TextStyle)

    Declaration
    public BannerPainter(string message, BannerLocation? location, Color color = null, TextStyle textStyle = null)
    Parameters
    Type Name Description
    System.String message
    System.Nullable<BannerLocation> location
    Color color
    TextStyle textStyle

    Fields

    color

    Declaration
    public readonly Color color
    Field Value
    Type Description
    Color

    location

    Declaration
    public readonly BannerLocation? location
    Field Value
    Type Description
    System.Nullable<BannerLocation>

    message

    Declaration
    public readonly string message
    Field Value
    Type Description
    System.String

    textStyle

    Declaration
    public readonly TextStyle textStyle
    Field Value
    Type Description
    TextStyle

    Methods

    hitTest(Offset)

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

    paint(Canvas, Size)

    Declaration
    public override void paint(Canvas canvas, Size size)
    Parameters
    Type Name Description
    Canvas canvas
    Size size
    Overrides
    AbstractCustomPainter.paint(Canvas, Size)

    shouldRepaint(CustomPainter)

    Declaration
    public override bool shouldRepaint(CustomPainter _oldDelegate)
    Parameters
    Type Name Description
    CustomPainter _oldDelegate
    Returns
    Type Description
    System.Boolean
    Overrides
    AbstractCustomPainter.shouldRepaint(CustomPainter)
    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