Skip to main content

ICustomDrawOperation Interface

Definition

Assembly:Avalonia.Base
Package:Avalonia
public interface ICustomDrawOperation

Implements: IDisposable, IEquatable<ICustomDrawOperation>

Methods

NameDescription
HitTestHit test the geometry in this node.
RenderRenders the node to a drawing context.

HitTest Method

Hit test the geometry in this node.

public bool HitTest(Avalonia.Point p)

Parameters

p Avalonia.Point

The point in global coordinates.

Returns

bool

True if the point hits the node's geometry; otherwise false.

Remarks

This method does not recurse to childs, if you want to hit test children they must be hit tested manually.

Render Method

Renders the node to a drawing context.

public void Render(Avalonia.Media.ImmediateDrawingContext context)

Parameters

context Avalonia.Media.ImmediateDrawingContext

The drawing context.

Properties

NameDescription
BoundsGets the bounds of the visible content in the node in global coordinates.

Bounds Property

Gets the bounds of the visible content in the node in global coordinates.

public Avalonia.Rect Bounds { get; set; }