Inheritance: IDisposable
Example #1
0
 public static void releaseShapesArray(Ints shapes)
 {
     touchvgPINVOKE.GiCoreView_releaseShapesArray(Ints.getCPtr(shapes));
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public static void releaseDocs(Ints docs)
 {
     touchvgPINVOKE.GiCoreView_releaseDocs(Ints.getCPtr(docs));
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
        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);
        }
Example #4
0
        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);
        }
Example #5
0
        public int acquireDynamicShapesArray(Ints shapes)
        {
            int ret = touchvgPINVOKE.GiCoreView_acquireDynamicShapesArray(swigCPtr, Ints.getCPtr(shapes));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #6
0
        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);
        }
Example #7
0
        public int acquireFrontDocs(Ints docs)
        {
            int ret = touchvgPINVOKE.GiCoreView_acquireFrontDocs(swigCPtr, Ints.getCPtr(docs));

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #8
0
        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);
        }
Example #9
0
        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);
        }
Example #10
0
        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);
        }
Example #11
0
 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;
 }
Example #12
0
            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);
                }
            }
Example #13
0
        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);
        }
Example #14
0
 internal static HandleRef getCPtr(Ints obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Example #15
0
 public int acquireDynamicShapesArray(Ints shapes)
 {
     int ret = touchvgPINVOKE.GiCoreView_acquireDynamicShapesArray(swigCPtr, Ints.getCPtr(shapes));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #16
0
 public static void releaseDocs(Ints docs)
 {
     touchvgPINVOKE.GiCoreView_releaseDocs(Ints.getCPtr(docs));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Example #17
0
 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;
 }
Example #18
0
 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();
 }
Example #19
0
 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;
 }
Example #20
0
 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;
 }
Example #21
0
 public static void releaseShapesArray(Ints shapes)
 {
     touchvgPINVOKE.GiCoreView_releaseShapesArray(Ints.getCPtr(shapes));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Example #22
0
 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;
 }
Example #23
0
 public int acquireFrontDocs(Ints docs)
 {
     int ret = touchvgPINVOKE.GiCoreView_acquireFrontDocs(swigCPtr, Ints.getCPtr(docs));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Example #24
0
 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;
 }
Example #25
0
        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);
        }
Example #26
0
 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;
 }
Example #27
0
 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;
 }
Example #28
0
 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;
 }
Example #29
0
 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();
 }
Example #30
0
 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;
 }
Example #31
0
            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;
            }
Example #32
0
 internal static HandleRef getCPtr(Ints obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }