public SceneManager(Canvas scene, DistributedInkCanvas ink, Palette palette, InkPalette inkPalette, int topicId, int discussionId, bool shapeVisibility) { _scene = scene; _palette = palette; _ink = ink; _inkPalette = inkPalette; //non-NaN palette coords Canvas.SetLeft(_palette, 200); Canvas.SetTop(_palette, 200); _doc = new VdDocument(palette, scene, ShapePostCtor, topicId, discussionId, shapeVisibility); inkPalette.Init(FinishFreeDrawing, ink); setListeners(true); }
public EditorWndCtx(Canvas canv, DistributedInkCanvas inkCanv, Palette palette, InkPalette inkPalette, SurfaceWindow keyboardWnd, int topicId, int discussionId) { _canv = canv; _inkCanv = inkCanv; _palette = palette; _inkPalette = inkPalette; _keyboardWnd = keyboardWnd; mgr = new SceneManager(canv, inkCanv, palette, inkPalette, topicId, discussionId); touchTimer = new ContactTimer(DevDownAsMouse, 0.05, false); SetListeners(true); }
public SceneManager(Canvas scene, DistributedInkCanvas ink, Palette palette, InkPalette inkPalette, int topicId, int discussionId) { _scene = scene; _palette = palette; _ink = ink; _inkPalette = inkPalette; //non-NaN palette coords Canvas.SetLeft(_palette, 200); Canvas.SetTop(_palette, 200); _doc = new VdDocument(palette, scene, ShapePostCtor, topicId, discussionId); _doc.VolatileCtx.localCursorChanged += localCursorChanged; _ink.OnInkChanged += OnLocalInkChanged; inkPalette.Init(finishFreeDrawing); setListeners(true); }
public EditorWndCtx(Canvas canv, DistributedInkCanvas inkCanv, Palette palette, InkPalette inkPalette, PortableWindow keyboardWnd, int topicId, int discussionId, bool shapesVisibility) { _canv = canv; _inkCanv = inkCanv; _palette = palette; _keyboardWnd = keyboardWnd; _zoomManipProc = new ManipulationProcessor2D(Manipulations2D.All); mgr = new SceneManager(canv, inkCanv, palette, inkPalette, topicId, discussionId, shapesVisibility); SetListeners(true); //poinManipDeferrer = new DispatcherTimer(); //poinManipDeferrer.Interval = TimeSpan.FromMilliseconds(260); //poinManipDeferrer.Tick += manipDeferrerTick; }
public void Init(Action finishDrawing, DistributedInkCanvas inkCanvas) { _finishDrawing = finishDrawing; this.InkCanvas = inkCanvas; }