Inheritance: IDisposable
示例#1
0
        public static GiCoreView createView(GiView view)
        {
            IntPtr     cPtr = touchvgPINVOKE.GiCoreView_createView__SWIG_1(GiView.getCPtr(view));
            GiCoreView ret  = (cPtr == IntPtr.Zero) ? null : new GiCoreView(cPtr, false);

            return(ret);
        }
示例#2
0
        public static GiCoreView createMagnifierView(GiView newview, GiCoreView mainView, GiView mainDevView)
        {
            IntPtr     cPtr = touchvgPINVOKE.GiCoreView_createMagnifierView(GiView.getCPtr(newview), GiCoreView.getCPtr(mainView), GiView.getCPtr(mainDevView));
            GiCoreView ret  = (cPtr == IntPtr.Zero) ? null : new GiCoreView(cPtr, false);

            return(ret);
        }
示例#3
0
 public WPFTempCanvas(GiCoreView coreView, GiView view)
 {
     this._coreView = coreView;
     this._view = view;
     this._adapter = new WPFCanvasAdapter();
     _helper = new GiMouseHelper(this._view, this._coreView);
     this.MouseDown += new MouseButtonEventHandler(TempCanvas_MouseDown);
     this.MouseUp += new MouseButtonEventHandler(TempCanvas_MouseUp);
 }
示例#4
0
 public void clean()
 {
     _coreView = null;
     _view = null;
     if (_adapter != null)
     {
         _adapter.Dispose();
         _adapter = null;
     }
 }
示例#5
0
 internal static HandleRef getCPtr(GiCoreView obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
示例#6
0
 public GiCoreView(GiCoreView mainView)
     : this(touchvgPINVOKE.new_GiCoreView__SWIG_0(GiCoreView.getCPtr(mainView)), true)
 {
 }
示例#7
0
 internal static HandleRef getCPtr(GiCoreView obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
示例#8
0
 public static GiCoreView createMagnifierView(GiView newview, GiCoreView mainView, GiView mainDevView)
 {
     IntPtr cPtr = touchvgPINVOKE.GiCoreView_createMagnifierView(GiView.getCPtr(newview), GiCoreView.getCPtr(mainView), GiView.getCPtr(mainDevView));
     GiCoreView ret = (cPtr == IntPtr.Zero) ? null : new GiCoreView(cPtr, false);
     return ret;
 }
示例#9
0
 public GiMouseHelper(GiView view, GiCoreView coreView)
     : this(touchvgcsPINVOKE.new_GiMouseHelper(GiView.getCPtr(view), GiCoreView.getCPtr(coreView)), true)
 {
 }
示例#10
0
 public GiMouseHelper(GiView view, GiCoreView coreView) : this(touchvgPINVOKE.new_GiMouseHelper(GiView.getCPtr(view), GiCoreView.getCPtr(coreView)), true)
 {
 }
示例#11
0
文件: EduCmds.cs 项目: rhcad/vglite
 public static void registerCmds(GiCoreView coreView)
 {
     touchvgcsPINVOKE.EduCmds_registerCmds(GiCoreView.getCPtr(coreView));
 }
示例#12
0
文件: EduCmds.cs 项目: rhcad/vglite
 public static int getDimensions(GiCoreView coreView, Floats vars, Chars types)
 {
     int ret = touchvgcsPINVOKE.EduCmds_getDimensions(GiCoreView.getCPtr(coreView), Floats.getCPtr(vars), Chars.getCPtr(types));
     if (touchvgcsPINVOKE.SWIGPendingException.Pending) throw touchvgcsPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#13
0
 public WPFMainCanvas(GiCoreView coreView, GiView view)
 {
     this._coreView = coreView;
     this._view = view;
     this._adapter = new WPFCanvasAdapter();
 }