Exemplo n.º 1
0
        public HitResult(Win2DRenderNode renderNode, HitTarget target)
        {
            Guard.NotNull(renderNode, nameof(renderNode));

            this.renderNode = renderNode;

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