ICustomDrawOperation Interface
Definition
public interface ICustomDrawOperation
Methods
| Name | Description |
|---|---|
| HitTest | Hit test the geometry in this node. |
| Render | Renders the node to a drawing context. |
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; }