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

            this.renderNode = renderNode;

            this.target = target;
        }
示例#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();
        }
示例#3
0
 private static bool CanRenderNode(Win2DRenderNode renderNode, Rect2 viewRect)
 {
     return(viewRect.IntersectsWith(renderNode.OcclusionBounds));
 }
示例#4
0
 private static bool CanRenderPath(Win2DRenderNode renderNode, Rect2 viewRect)
 {
     return(viewRect.IntersectsWith(renderNode.RenderBoundsWithParent));
 }