Наследование: IDisposable
Пример #1
0
 public static void releaseShapesArray(Ints shapes)
 {
     touchvgPINVOKE.GiCoreView_releaseShapesArray(Ints.getCPtr(shapes));
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
 public static void releaseDocs(Ints docs)
 {
     touchvgPINVOKE.GiCoreView_releaseDocs(Ints.getCPtr(docs));
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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;
 }
Пример #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);
                }
            }
Пример #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);
        }
Пример #14
0
 internal static HandleRef getCPtr(Ints obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Пример #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;
 }
Пример #16
0
 public static void releaseDocs(Ints docs)
 {
     touchvgPINVOKE.GiCoreView_releaseDocs(Ints.getCPtr(docs));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #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;
 }
Пример #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();
 }
Пример #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;
 }
Пример #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;
 }
Пример #21
0
 public static void releaseShapesArray(Ints shapes)
 {
     touchvgPINVOKE.GiCoreView_releaseShapesArray(Ints.getCPtr(shapes));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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);
        }
Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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();
 }
Пример #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;
 }
Пример #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;
            }
Пример #32
0
 internal static HandleRef getCPtr(Ints obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }