ICustomDrawOperation Interface
Definition
public interface ICustomDrawOperation
Methods
| Name | Description |
|---|---|
| HitTest (2 overloads) | Hit test the geometry in this node. |
| Render | Renders the node to a drawing context. |
HitTest overloads
HitTest Method
Hit test the geometry in this node.
public Avalonia.Media.IntersectionResult HitTest(Avalonia.Media.Geometry geometry)
Parameters
geometry Avalonia.Media.Geometry
The geometry in global coordinates.
Returns
Avalonia.Media.IntersectionResult
The Avalonia.Media.IntersectionResult describing the intersecting between the hit geometry and the node's geometry.
Remarks
This method does not recurse to childs, if you want to hit test children they must be hit tested manually.
HitTest Method
Hit test the geometry in this node.
public bool HitTest(Avalonia.Point p)
Parameters
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
| Name | Description |
|---|---|
| Bounds | Gets 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; }