Пример #1
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("release", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateMgCommandDraw_0(SwigDirectorrelease);
     }
     if (SwigDerivedClassHasMethod("cancel", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegateMgCommandDraw_1(SwigDirectorcancel);
     }
     if (SwigDerivedClassHasMethod("initialize", swigMethodTypes2))
     {
         swigDelegate2 = new SwigDelegateMgCommandDraw_2(SwigDirectorinitialize);
     }
     if (SwigDerivedClassHasMethod("backStep", swigMethodTypes3))
     {
         swigDelegate3 = new SwigDelegateMgCommandDraw_3(SwigDirectorbackStep);
     }
     if (SwigDerivedClassHasMethod("draw", swigMethodTypes4))
     {
         swigDelegate4 = new SwigDelegateMgCommandDraw_4(SwigDirectordraw);
     }
     if (SwigDerivedClassHasMethod("gatherShapes", swigMethodTypes5))
     {
         swigDelegate5 = new SwigDelegateMgCommandDraw_5(SwigDirectorgatherShapes);
     }
     if (SwigDerivedClassHasMethod("click", swigMethodTypes6))
     {
         swigDelegate6 = new SwigDelegateMgCommandDraw_6(SwigDirectorclick);
     }
     if (SwigDerivedClassHasMethod("doubleClick", swigMethodTypes7))
     {
         swigDelegate7 = new SwigDelegateMgCommandDraw_7(SwigDirectordoubleClick);
     }
     if (SwigDerivedClassHasMethod("longPress", swigMethodTypes8))
     {
         swigDelegate8 = new SwigDelegateMgCommandDraw_8(SwigDirectorlongPress);
     }
     if (SwigDerivedClassHasMethod("touchBegan", swigMethodTypes9))
     {
         swigDelegate9 = new SwigDelegateMgCommandDraw_9(SwigDirectortouchBegan);
     }
     if (SwigDerivedClassHasMethod("touchMoved", swigMethodTypes10))
     {
         swigDelegate10 = new SwigDelegateMgCommandDraw_10(SwigDirectortouchMoved);
     }
     if (SwigDerivedClassHasMethod("touchEnded", swigMethodTypes11))
     {
         swigDelegate11 = new SwigDelegateMgCommandDraw_11(SwigDirectortouchEnded);
     }
     if (SwigDerivedClassHasMethod("mouseHover", swigMethodTypes12))
     {
         swigDelegate12 = new SwigDelegateMgCommandDraw_12(SwigDirectormouseHover);
     }
     if (SwigDerivedClassHasMethod("twoFingersMove", swigMethodTypes13))
     {
         swigDelegate13 = new SwigDelegateMgCommandDraw_13(SwigDirectortwoFingersMove);
     }
     if (SwigDerivedClassHasMethod("isDrawingCommand", swigMethodTypes14))
     {
         swigDelegate14 = new SwigDelegateMgCommandDraw_14(SwigDirectorisDrawingCommand);
     }
     if (SwigDerivedClassHasMethod("isFloatingCommand", swigMethodTypes15))
     {
         swigDelegate15 = new SwigDelegateMgCommandDraw_15(SwigDirectorisFloatingCommand);
     }
     if (SwigDerivedClassHasMethod("doContextAction", swigMethodTypes16))
     {
         swigDelegate16 = new SwigDelegateMgCommandDraw_16(SwigDirectordoContextAction);
     }
     if (SwigDerivedClassHasMethod("getShapeType", swigMethodTypes17))
     {
         swigDelegate17 = new SwigDelegateMgCommandDraw_17(SwigDirectorgetShapeType);
     }
     if (SwigDerivedClassHasMethod("getMaxStep", swigMethodTypes18))
     {
         swigDelegate18 = new SwigDelegateMgCommandDraw_18(SwigDirectorgetMaxStep);
     }
     if (SwigDerivedClassHasMethod("setStepPoint", swigMethodTypes19))
     {
         swigDelegate19 = new SwigDelegateMgCommandDraw_19(SwigDirectorsetStepPoint);
     }
     if (SwigDerivedClassHasMethod("isStepPointAccepted", swigMethodTypes20))
     {
         swigDelegate20 = new SwigDelegateMgCommandDraw_20(SwigDirectorisStepPointAccepted);
     }
     if (SwigDerivedClassHasMethod("snapOptionsForStep", swigMethodTypes21))
     {
         swigDelegate21 = new SwigDelegateMgCommandDraw_21(SwigDirectorsnapOptionsForStep);
     }
     touchvgPINVOKE.MgCommandDraw_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18, swigDelegate19, swigDelegate20, swigDelegate21);
 }
Пример #2
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("release", swigMethodTypes0))
       swigDelegate0 = new SwigDelegateMgCommandDraw_0(SwigDirectorrelease);
     if (SwigDerivedClassHasMethod("cancel", swigMethodTypes1))
       swigDelegate1 = new SwigDelegateMgCommandDraw_1(SwigDirectorcancel);
     if (SwigDerivedClassHasMethod("initialize", swigMethodTypes2))
       swigDelegate2 = new SwigDelegateMgCommandDraw_2(SwigDirectorinitialize);
     if (SwigDerivedClassHasMethod("backStep", swigMethodTypes3))
       swigDelegate3 = new SwigDelegateMgCommandDraw_3(SwigDirectorbackStep);
     if (SwigDerivedClassHasMethod("draw", swigMethodTypes4))
       swigDelegate4 = new SwigDelegateMgCommandDraw_4(SwigDirectordraw);
     if (SwigDerivedClassHasMethod("gatherShapes", swigMethodTypes5))
       swigDelegate5 = new SwigDelegateMgCommandDraw_5(SwigDirectorgatherShapes);
     if (SwigDerivedClassHasMethod("click", swigMethodTypes6))
       swigDelegate6 = new SwigDelegateMgCommandDraw_6(SwigDirectorclick);
     if (SwigDerivedClassHasMethod("doubleClick", swigMethodTypes7))
       swigDelegate7 = new SwigDelegateMgCommandDraw_7(SwigDirectordoubleClick);
     if (SwigDerivedClassHasMethod("longPress", swigMethodTypes8))
       swigDelegate8 = new SwigDelegateMgCommandDraw_8(SwigDirectorlongPress);
     if (SwigDerivedClassHasMethod("touchBegan", swigMethodTypes9))
       swigDelegate9 = new SwigDelegateMgCommandDraw_9(SwigDirectortouchBegan);
     if (SwigDerivedClassHasMethod("touchMoved", swigMethodTypes10))
       swigDelegate10 = new SwigDelegateMgCommandDraw_10(SwigDirectortouchMoved);
     if (SwigDerivedClassHasMethod("touchEnded", swigMethodTypes11))
       swigDelegate11 = new SwigDelegateMgCommandDraw_11(SwigDirectortouchEnded);
     if (SwigDerivedClassHasMethod("mouseHover", swigMethodTypes12))
       swigDelegate12 = new SwigDelegateMgCommandDraw_12(SwigDirectormouseHover);
     if (SwigDerivedClassHasMethod("twoFingersMove", swigMethodTypes13))
       swigDelegate13 = new SwigDelegateMgCommandDraw_13(SwigDirectortwoFingersMove);
     if (SwigDerivedClassHasMethod("isDrawingCommand", swigMethodTypes14))
       swigDelegate14 = new SwigDelegateMgCommandDraw_14(SwigDirectorisDrawingCommand);
     if (SwigDerivedClassHasMethod("isFloatingCommand", swigMethodTypes15))
       swigDelegate15 = new SwigDelegateMgCommandDraw_15(SwigDirectorisFloatingCommand);
     if (SwigDerivedClassHasMethod("doContextAction", swigMethodTypes16))
       swigDelegate16 = new SwigDelegateMgCommandDraw_16(SwigDirectordoContextAction);
     if (SwigDerivedClassHasMethod("getShape", swigMethodTypes17))
       swigDelegate17 = new SwigDelegateMgCommandDraw_17(SwigDirectorgetShape);
     if (SwigDerivedClassHasMethod("getShapeType", swigMethodTypes18))
       swigDelegate18 = new SwigDelegateMgCommandDraw_18(SwigDirectorgetShapeType);
     if (SwigDerivedClassHasMethod("getMaxStep", swigMethodTypes19))
       swigDelegate19 = new SwigDelegateMgCommandDraw_19(SwigDirectorgetMaxStep);
     if (SwigDerivedClassHasMethod("setStepPoint", swigMethodTypes20))
       swigDelegate20 = new SwigDelegateMgCommandDraw_20(SwigDirectorsetStepPoint);
     touchvgPINVOKE.MgCommandDraw_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18, swigDelegate19, swigDelegate20);
 }