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
ファイル: WPFMainCanvas.cs プロジェクト: stonelin129/Touchvg
 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
ファイル: WPFMainCanvas.cs プロジェクト: stonelin129/Touchvg
 public void clean()
 {
     _coreView = null;
     _view = null;
     if (_adapter != null)
     {
         _adapter.Dispose();
         _adapter = null;
     }
 }
コード例 #5
0
ファイル: GiCoreView.cs プロジェクト: hantu123/touchvg
 internal static HandleRef getCPtr(GiCoreView obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #6
0
ファイル: GiCoreView.cs プロジェクト: hantu123/touchvg
 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
ファイル: GiCoreView.cs プロジェクト: pankajcg/TouchVG
 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
ファイル: GiMouseHelper.cs プロジェクト: rhcad/vglite
 public GiMouseHelper(GiView view, GiCoreView coreView)
     : this(touchvgcsPINVOKE.new_GiMouseHelper(GiView.getCPtr(view), GiCoreView.getCPtr(coreView)), true)
 {
 }
コード例 #10
0
ファイル: GiMouseHelper.cs プロジェクト: shuangyou/TouchVG
 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
ファイル: WPFMainCanvas.cs プロジェクト: stonelin129/Touchvg
 public WPFMainCanvas(GiCoreView coreView, GiView view)
 {
     this._coreView = coreView;
     this._view = view;
     this._adapter = new WPFCanvasAdapter();
 }