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

    Class PaintingContext

    Inheritance
    System.Object
    ClipContext
    PaintingContext
    Inherited Members
    ClipContext.clipPathAndPaint(Path, Clip, Rect, Action)
    ClipContext.clipRRectAndPaint(RRect, Clip, Rect, Action)
    ClipContext.clipRectAndPaint(Rect, Clip, Rect, Action)
    Namespace: Unity.UIWidgets.rendering
    Syntax
    public class PaintingContext : ClipContext

    Fields

    estimatedBounds

    Declaration
    public readonly Rect estimatedBounds
    Field Value
    Type Description
    Rect

    Properties

    canvas

    Declaration
    public override Canvas canvas { get; }
    Property Value
    Type Description
    Canvas
    Overrides
    ClipContext.canvas

    Methods

    addLayer(Layer)

    Declaration
    public void addLayer(Layer layer)
    Parameters
    Type Name Description
    Layer layer

    appendLayer(Layer)

    Declaration
    protected virtual void appendLayer(Layer layer)
    Parameters
    Type Name Description
    Layer layer

    createChildContext(ContainerLayer, Rect)

    Declaration
    protected PaintingContext createChildContext(ContainerLayer childLayer, Rect bounds)
    Parameters
    Type Name Description
    ContainerLayer childLayer
    Rect bounds
    Returns
    Type Description
    PaintingContext

    debugInstrumentRepaintCompositedChild(RenderObject, Boolean, PaintingContext)

    Declaration
    public static void debugInstrumentRepaintCompositedChild(RenderObject child, bool debugAlsoPaintedParent = false, PaintingContext customContext = null)
    Parameters
    Type Name Description
    RenderObject child
    System.Boolean debugAlsoPaintedParent
    PaintingContext customContext

    paintChild(RenderObject, Offset)

    Declaration
    public void paintChild(RenderObject child, Offset offset)
    Parameters
    Type Name Description
    RenderObject child
    Offset offset

    pushClipPath(Boolean, Offset, Rect, Path, PaintingContextCallback, Clip)

    Declaration
    public void pushClipPath(bool needsCompositing, Offset offset, Rect bounds, Path clipPath, PaintingContextCallback painter, Clip clipBehavior = Clip.antiAlias)
    Parameters
    Type Name Description
    System.Boolean needsCompositing
    Offset offset
    Rect bounds
    Path clipPath
    PaintingContextCallback painter
    Clip clipBehavior

    pushClipRect(Boolean, Offset, Rect, PaintingContextCallback, Clip)

    Declaration
    public void pushClipRect(bool needsCompositing, Offset offset, Rect clipRect, PaintingContextCallback painter, Clip clipBehavior = Clip.hardEdge)
    Parameters
    Type Name Description
    System.Boolean needsCompositing
    Offset offset
    Rect clipRect
    PaintingContextCallback painter
    Clip clipBehavior

    pushClipRRect(Boolean, Offset, Rect, RRect, PaintingContextCallback, Clip)

    Declaration
    public void pushClipRRect(bool needsCompositing, Offset offset, Rect bounds, RRect clipRRect, PaintingContextCallback painter, Clip clipBehavior = Clip.antiAlias)
    Parameters
    Type Name Description
    System.Boolean needsCompositing
    Offset offset
    Rect bounds
    RRect clipRRect
    PaintingContextCallback painter
    Clip clipBehavior

    pushLayer(ContainerLayer, PaintingContextCallback, Offset, Rect)

    Declaration
    public void pushLayer(ContainerLayer childLayer, PaintingContextCallback painter, Offset offset, Rect childPaintBounds = null)
    Parameters
    Type Name Description
    ContainerLayer childLayer
    PaintingContextCallback painter
    Offset offset
    Rect childPaintBounds

    pushOpacity(Offset, Int32, PaintingContextCallback)

    Declaration
    public void pushOpacity(Offset offset, int alpha, PaintingContextCallback painter)
    Parameters
    Type Name Description
    Offset offset
    System.Int32 alpha
    PaintingContextCallback painter

    pushTransform(Boolean, Offset, Matrix3, PaintingContextCallback)

    Declaration
    public void pushTransform(bool needsCompositing, Offset offset, Matrix3 transform, PaintingContextCallback painter)
    Parameters
    Type Name Description
    System.Boolean needsCompositing
    Offset offset
    Matrix3 transform
    PaintingContextCallback painter

    repaintCompositedChild(RenderObject, Boolean)

    Declaration
    public static void repaintCompositedChild(RenderObject child, bool debugAlsoPaintedParent = false)
    Parameters
    Type Name Description
    RenderObject child
    System.Boolean debugAlsoPaintedParent

    setIsComplexHint()

    Declaration
    public void setIsComplexHint()

    setWillChangeHint()

    Declaration
    public void setWillChangeHint()

    stopRecordingIfNeeded()

    Declaration
    protected virtual void stopRecordingIfNeeded()

    ToString()

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