public static void releaseShapesArray(Ints shapes) { touchvgPINVOKE.GiCoreView_releaseShapesArray(Ints.getCPtr(shapes)); if (touchvgPINVOKE.SWIGPendingException.Pending) { throw touchvgPINVOKE.SWIGPendingException.Retrieve(); } }
public static void releaseDocs(Ints docs) { touchvgPINVOKE.GiCoreView_releaseDocs(Ints.getCPtr(docs)); if (touchvgPINVOKE.SWIGPendingException.Pending) { throw touchvgPINVOKE.SWIGPendingException.Retrieve(); } }
public virtual bool showContextActions(Ints actions, Floats buttonXY, float x, float y, float w, float h) { bool ret = (SwigDerivedClassHasMethod("showContextActions", swigMethodTypes5) ? touchvgPINVOKE.GiView_showContextActionsSwigExplicitGiView(swigCPtr, Ints.getCPtr(actions), Floats.getCPtr(buttonXY), x, y, w, h) : touchvgPINVOKE.GiView_showContextActions(swigCPtr, Ints.getCPtr(actions), Floats.getCPtr(buttonXY), x, y, w, h)); if (touchvgPINVOKE.SWIGPendingException.Pending) { throw touchvgPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public override int addShapeActions(MgMotion arg0, Ints arg1, int n, MgShape arg3) { int ret = (SwigDerivedClassHasMethod("addShapeActions", swigMethodTypes4) ? touchvgPINVOKE.CmdObserverDefault_addShapeActionsSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(arg0), Ints.getCPtr(arg1), n, MgShape.getCPtr(arg3)) : touchvgPINVOKE.CmdObserverDefault_addShapeActions(swigCPtr, MgMotion.getCPtr(arg0), Ints.getCPtr(arg1), n, MgShape.getCPtr(arg3))); if (touchvgPINVOKE.SWIGPendingException.Pending) { throw touchvgPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public int acquireDynamicShapesArray(Ints shapes) { int ret = touchvgPINVOKE.GiCoreView_acquireDynamicShapesArray(swigCPtr, Ints.getCPtr(shapes)); if (touchvgPINVOKE.SWIGPendingException.Pending) { throw touchvgPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static bool loadFrameIndex(string path, Ints arr) { bool ret = touchvgPINVOKE.GiCoreView_loadFrameIndex(path, Ints.getCPtr(arr)); if (touchvgPINVOKE.SWIGPendingException.Pending) { throw touchvgPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public int acquireFrontDocs(Ints docs) { int ret = touchvgPINVOKE.GiCoreView_acquireFrontDocs(swigCPtr, Ints.getCPtr(docs)); if (touchvgPINVOKE.SWIGPendingException.Pending) { throw touchvgPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public virtual int addShapeActions(MgMotion sender, Ints actions, int n, MgShape sp) { int ret = touchvgPINVOKE.CmdObserver_addShapeActions(swigCPtr, MgMotion.getCPtr(sender), Ints.getCPtr(actions), n, MgShape.getCPtr(sp)); if (touchvgPINVOKE.SWIGPendingException.Pending) { throw touchvgPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public int skipExpireFrame(Ints head, int index, int curTick) { int ret = touchvgPINVOKE.GiCoreView_skipExpireFrame(swigCPtr, Ints.getCPtr(head), index, curTick); if (touchvgPINVOKE.SWIGPendingException.Pending) { throw touchvgPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public int dynDraw(Ints shapes, int gs, GiCanvas canvas) { int ret = touchvgPINVOKE.GiCoreView_dynDraw__SWIG_1(swigCPtr, Ints.getCPtr(shapes), gs, GiCanvas.getCPtr(canvas)); if (touchvgPINVOKE.SWIGPendingException.Pending) { throw touchvgPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public int dynDraw(Ints shapes, int gs, GiCanvas canvas) { int ret = touchvgPINVOKE.GiCoreView_dynDraw__SWIG_1(swigCPtr, Ints.getCPtr(shapes), gs, GiCanvas.getCPtr(canvas)); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
private void createActionButtons(Ints actions, Floats buttonXY) { if (ActionButtons == null) ActionButtons = new List<Button>(); int actionCount = actions.count(); for (int i = 0; i < actionCount; i++) { int cmdIndex = actions.get(i); if (cmdIndex >= buttonCaptions.Length) continue; string cmdName = buttonCaptions[cmdIndex]; Button button = new Button() { Content = cmdName, Tag = cmdIndex, Width = cmdName.Length * 14 + 8, Height = 24 }; button.Click += new RoutedEventHandler(button_Click); _owner.TempCanvas.Children.Add(button); Canvas.SetLeft(button, buttonXY.get(2 * i) - button.Width / 2); Canvas.SetTop(button, buttonXY.get(2 * i + 1) - button.Height / 2); ActionButtons.Add(button); } }
public bool recordShapes(bool forUndo, int tick, int doc, int shapes, Ints exts) { bool ret = touchvgPINVOKE.GiCoreView_recordShapes__SWIG_1(swigCPtr, forUndo, tick, doc, shapes, Ints.getCPtr(exts)); return(ret); }
internal static HandleRef getCPtr(Ints obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
public int acquireDynamicShapesArray(Ints shapes) { int ret = touchvgPINVOKE.GiCoreView_acquireDynamicShapesArray(swigCPtr, Ints.getCPtr(shapes)); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public static void releaseDocs(Ints docs) { touchvgPINVOKE.GiCoreView_releaseDocs(Ints.getCPtr(docs)); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); }
public bool recordShapes(bool forUndo, int tick, int doc, int shapes, Ints exts, MgStringCallback c) { bool ret = touchvgPINVOKE.GiCoreView_recordShapes__SWIG_1(swigCPtr, forUndo, tick, doc, shapes, Ints.getCPtr(exts), MgStringCallback.getCPtr(c)); return ret; }
public override bool showContextActions(Ints actions, Floats buttonXY, float x, float y, float w, float h) { hideContextActions(); if (buttonCaptions == null) buttonCaptions = Resource1.basic_actions.Split(new Char[] { ',' }); if (actions != null && !createActionImages(actions, buttonXY)) createActionButtons(actions, buttonXY); return isContextActionsVisible(); }
public bool recordShapes(bool forUndo, int tick, int doc, int shapes, Ints exts) { bool ret = touchvgPINVOKE.GiCoreView_recordShapes__SWIG_2(swigCPtr, forUndo, tick, doc, shapes, Ints.getCPtr(exts)); return ret; }
public int dynDraw(int shapes, int gs, GiCanvas canvas, Ints exts) { int ret = touchvgPINVOKE.GiCoreView_dynDraw__SWIG_1(swigCPtr, shapes, gs, GiCanvas.getCPtr(canvas), Ints.getCPtr(exts)); return ret; }
public static void releaseShapesArray(Ints shapes) { touchvgPINVOKE.GiCoreView_releaseShapesArray(Ints.getCPtr(shapes)); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); }
public int skipExpireFrame(Ints head, int index, int curTick) { int ret = touchvgPINVOKE.GiCoreView_skipExpireFrame(swigCPtr, Ints.getCPtr(head), index, curTick); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public int acquireFrontDocs(Ints docs) { int ret = touchvgPINVOKE.GiCoreView_acquireFrontDocs(swigCPtr, Ints.getCPtr(docs)); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public static bool loadFrameIndex(string path, Ints arr) { bool ret = touchvgPINVOKE.GiCoreView_loadFrameIndex(path, Ints.getCPtr(arr)); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public int dynDraw(int shapes, int gs, GiCanvas canvas, Ints exts) { int ret = touchvgPINVOKE.GiCoreView_dynDraw__SWIG_1(swigCPtr, shapes, gs, GiCanvas.getCPtr(canvas), Ints.getCPtr(exts)); return(ret); }
public virtual int addShapeActions(MgMotion sender, Ints actions, int n, MgShape sp) { int ret = touchvgPINVOKE.CmdObserver_addShapeActions(swigCPtr, MgMotion.getCPtr(sender), Ints.getCPtr(actions), n, MgShape.getCPtr(sp)); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public virtual bool showContextActions(Ints actions, Floats buttonXY, float x, float y, float w, float h) { bool ret = (SwigDerivedClassHasMethod("showContextActions", swigMethodTypes5) ? touchvgPINVOKE.GiView_showContextActionsSwigExplicitGiView(swigCPtr, Ints.getCPtr(actions), Floats.getCPtr(buttonXY), x, y, w, h) : touchvgPINVOKE.GiView_showContextActions(swigCPtr, Ints.getCPtr(actions), Floats.getCPtr(buttonXY), x, y, w, h)); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public override int addShapeActions(MgMotion arg0, Ints arg1, int n, MgShape arg3) { int ret = (SwigDerivedClassHasMethod("addShapeActions", swigMethodTypes4) ? touchvgPINVOKE.CmdObserverDefault_addShapeActionsSwigExplicitCmdObserverDefault(swigCPtr, MgMotion.getCPtr(arg0), Ints.getCPtr(arg1), n, MgShape.getCPtr(arg3)) : touchvgPINVOKE.CmdObserverDefault_addShapeActions(swigCPtr, MgMotion.getCPtr(arg0), Ints.getCPtr(arg1), n, MgShape.getCPtr(arg3))); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
public override bool showContextActions(Ints actions, Floats buttonXY, float x, float y, float w, float h) { ClearActions(); if (actions != null && !createActionImages(actions, buttonXY)) createActionButtons(actions, buttonXY); return isContextActionsVisible(); }
public int drawAll(Ints docs, int gs, GiCanvas canvas) { int ret = touchvgPINVOKE.GiCoreView_drawAll__SWIG_1(swigCPtr, Ints.getCPtr(docs), gs, GiCanvas.getCPtr(canvas)); if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve(); return ret; }
private bool createActionImages(Ints actions, Floats buttonXY) { int actionCount = actions.count(); for (int i = 0; i < actionCount; i++) { int cmdIndex = actions.get(i); if (cmdIndex >= buttonCaptions.Length) continue; ImageSource imageSource = WPFImageSourceHelper.Instance.ActionImageSource(cmdIndex); if (imageSource == null) continue; string cmdName = buttonCaptions[cmdIndex]; System.Diagnostics.Trace.WriteLine(string.Format("{0},{1}", cmdIndex, cmdName)); Image image = new Image() { Source = imageSource, ToolTip = cmdName, Tag = cmdIndex, Width = imageSource.Width, Height = imageSource.Height }; image.MouseDown += new MouseButtonEventHandler(image_MouseDown); _owner.TempCanvas.Children.Add(image); Canvas.SetLeft(image, buttonXY.get(2 * i) - image.Width / 2); Canvas.SetTop(image, buttonXY.get(2 * i + 1) - image.Height / 2); ActionImages.Add(image); ActionImages.Add(image); } return actionCount == 0 || ActionImages.Count > 0; }
internal static HandleRef getCPtr(Ints obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }