public HitResult(Win2DRenderNode renderNode, HitTarget target) { Guard.NotNull(renderNode, nameof(renderNode)); this.renderNode = renderNode; this.target = target; }
internal Win2DScene(Document document, Win2DRenderNode previewNode, Func <NodeBase, Win2DRenderNode> nodeFactory) { this.document = document; this.previewNode = previewNode; this.previewNode.Hide(); this.nodeFactory = nodeFactory; InitializeDocument(); }
private static bool CanRenderNode(Win2DRenderNode renderNode, Rect2 viewRect) { return(viewRect.IntersectsWith(renderNode.OcclusionBounds)); }
private static bool CanRenderPath(Win2DRenderNode renderNode, Rect2 viewRect) { return(viewRect.IntersectsWith(renderNode.RenderBoundsWithParent)); }