Beispiel #1
0
        public HitResult(Win2DRenderNode renderNode, HitTarget target)
        {
            Guard.NotNull(renderNode, nameof(renderNode));

            this.renderNode = renderNode;

            this.target = target;
        }
Beispiel #2
0
        internal Win2DScene(Document document, Win2DRenderNode previewNode, Func <NodeBase, Win2DRenderNode> nodeFactory)
        {
            this.document    = document;
            this.previewNode = previewNode;
            this.previewNode.Hide();
            this.nodeFactory = nodeFactory;

            InitializeDocument();
        }
Beispiel #3
0
 private static bool CanRenderNode(Win2DRenderNode renderNode, Rect2 viewRect)
 {
     return(viewRect.IntersectsWith(renderNode.OcclusionBounds));
 }
Beispiel #4
0
 private static bool CanRenderPath(Win2DRenderNode renderNode, Rect2 viewRect)
 {
     return(viewRect.IntersectsWith(renderNode.RenderBoundsWithParent));
 }