コード例 #1
0
            public void AddHandles()
            {
                PHandle h1 = new PHandle(new AngleHandleLocator(this, AngleHandleLocator.HandleNum.HandleOne));

                h1.HandleDrag = new HandleDragDelegate(DragHandleOneHandler);
                AddChild(h1);

                PHandle h2 = new PHandle(new AngleHandleLocator(this, AngleHandleLocator.HandleNum.HandleTwo));

                h2.HandleDrag = new HandleDragDelegate(DragHandleTwoHandler);
                AddChild(h2);
            }
コード例 #2
0
        protected void ActivityStepped(PActivity activity)
        {
            PRoot root = Canvas.Root;

            if (root.PaintInvalid || root.ChildPaintInvalid)
            {
                PNodeList cameraChildren = Canvas.Camera.ChildrenReference;
                foreach (PNode each in cameraChildren)
                {
                    if (each is PHandle)
                    {
                        PHandle handle = (PHandle)each;
                        handle.RelocateHandle();
                    }
                }
            }
        }
コード例 #3
0
 public HandleEventHandler(PHandle handle)
 {
     this.handle = handle;
 }