Пример #1
0
 private void SwigDirectorConnect()
 {
     if (SwigDerivedClassHasMethod("onDocLoaded", swigMethodTypes0))
     {
         swigDelegate0 = new SwigDelegateCmdObserverDefault_0(SwigDirectoronDocLoaded);
     }
     if (SwigDerivedClassHasMethod("onEnterSelectCommand", swigMethodTypes1))
     {
         swigDelegate1 = new SwigDelegateCmdObserverDefault_1(SwigDirectoronEnterSelectCommand);
     }
     if (SwigDerivedClassHasMethod("onUnloadCommands", swigMethodTypes2))
     {
         swigDelegate2 = new SwigDelegateCmdObserverDefault_2(SwigDirectoronUnloadCommands);
     }
     if (SwigDerivedClassHasMethod("selectActionsNeedHided", swigMethodTypes3))
     {
         swigDelegate3 = new SwigDelegateCmdObserverDefault_3(SwigDirectorselectActionsNeedHided);
     }
     if (SwigDerivedClassHasMethod("addShapeActions", swigMethodTypes4))
     {
         swigDelegate4 = new SwigDelegateCmdObserverDefault_4(SwigDirectoraddShapeActions);
     }
     if (SwigDerivedClassHasMethod("doAction", swigMethodTypes5))
     {
         swigDelegate5 = new SwigDelegateCmdObserverDefault_5(SwigDirectordoAction);
     }
     if (SwigDerivedClassHasMethod("doEndAction", swigMethodTypes6))
     {
         swigDelegate6 = new SwigDelegateCmdObserverDefault_6(SwigDirectordoEndAction);
     }
     if (SwigDerivedClassHasMethod("drawInShapeCommand", swigMethodTypes7))
     {
         swigDelegate7 = new SwigDelegateCmdObserverDefault_7(SwigDirectordrawInShapeCommand);
     }
     if (SwigDerivedClassHasMethod("drawInSelectCommand", swigMethodTypes8))
     {
         swigDelegate8 = new SwigDelegateCmdObserverDefault_8(SwigDirectordrawInSelectCommand);
     }
     if (SwigDerivedClassHasMethod("onSelectionChanged", swigMethodTypes9))
     {
         swigDelegate9 = new SwigDelegateCmdObserverDefault_9(SwigDirectoronSelectionChanged);
     }
     if (SwigDerivedClassHasMethod("onShapeWillAdded", swigMethodTypes10))
     {
         swigDelegate10 = new SwigDelegateCmdObserverDefault_10(SwigDirectoronShapeWillAdded);
     }
     if (SwigDerivedClassHasMethod("onShapeAdded", swigMethodTypes11))
     {
         swigDelegate11 = new SwigDelegateCmdObserverDefault_11(SwigDirectoronShapeAdded);
     }
     if (SwigDerivedClassHasMethod("onShapeWillDeleted", swigMethodTypes12))
     {
         swigDelegate12 = new SwigDelegateCmdObserverDefault_12(SwigDirectoronShapeWillDeleted);
     }
     if (SwigDerivedClassHasMethod("onShapeDeleted", swigMethodTypes13))
     {
         swigDelegate13 = new SwigDelegateCmdObserverDefault_13(SwigDirectoronShapeDeleted);
     }
     if (SwigDerivedClassHasMethod("onShapeCanRotated", swigMethodTypes14))
     {
         swigDelegate14 = new SwigDelegateCmdObserverDefault_14(SwigDirectoronShapeCanRotated);
     }
     if (SwigDerivedClassHasMethod("onShapeCanTransform", swigMethodTypes15))
     {
         swigDelegate15 = new SwigDelegateCmdObserverDefault_15(SwigDirectoronShapeCanTransform);
     }
     if (SwigDerivedClassHasMethod("onShapeCanUnlock", swigMethodTypes16))
     {
         swigDelegate16 = new SwigDelegateCmdObserverDefault_16(SwigDirectoronShapeCanUnlock);
     }
     if (SwigDerivedClassHasMethod("onShapeCanUngroup", swigMethodTypes17))
     {
         swigDelegate17 = new SwigDelegateCmdObserverDefault_17(SwigDirectoronShapeCanUngroup);
     }
     if (SwigDerivedClassHasMethod("onShapeCanMovedHandle", swigMethodTypes18))
     {
         swigDelegate18 = new SwigDelegateCmdObserverDefault_18(SwigDirectoronShapeCanMovedHandle);
     }
     if (SwigDerivedClassHasMethod("onShapeMoved", swigMethodTypes19))
     {
         swigDelegate19 = new SwigDelegateCmdObserverDefault_19(SwigDirectoronShapeMoved);
     }
     if (SwigDerivedClassHasMethod("onShapeWillChanged", swigMethodTypes20))
     {
         swigDelegate20 = new SwigDelegateCmdObserverDefault_20(SwigDirectoronShapeWillChanged);
     }
     if (SwigDerivedClassHasMethod("onShapeChanged", swigMethodTypes21))
     {
         swigDelegate21 = new SwigDelegateCmdObserverDefault_21(SwigDirectoronShapeChanged);
     }
     if (SwigDerivedClassHasMethod("createShape", swigMethodTypes22))
     {
         swigDelegate22 = new SwigDelegateCmdObserverDefault_22(SwigDirectorcreateShape);
     }
     if (SwigDerivedClassHasMethod("createCommand", swigMethodTypes23))
     {
         swigDelegate23 = new SwigDelegateCmdObserverDefault_23(SwigDirectorcreateCommand);
     }
     if (SwigDerivedClassHasMethod("onPreGesture", swigMethodTypes24))
     {
         swigDelegate24 = new SwigDelegateCmdObserverDefault_24(SwigDirectoronPreGesture);
     }
     if (SwigDerivedClassHasMethod("onPostGesture", swigMethodTypes25))
     {
         swigDelegate25 = new SwigDelegateCmdObserverDefault_25(SwigDirectoronPostGesture);
     }
     if (SwigDerivedClassHasMethod("onPointSnapped", swigMethodTypes26))
     {
         swigDelegate26 = new SwigDelegateCmdObserverDefault_26(SwigDirectoronPointSnapped);
     }
     touchvgPINVOKE.CmdObserverDefault_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, swigDelegate22, swigDelegate23, swigDelegate24, swigDelegate25, swigDelegate26);
 }
Пример #2
0
 private void SwigDirectorConnect() {
   if (SwigDerivedClassHasMethod("onDocLoaded", swigMethodTypes0))
     swigDelegate0 = new SwigDelegateCmdObserverDefault_0(SwigDirectoronDocLoaded);
   if (SwigDerivedClassHasMethod("onEnterSelectCommand", swigMethodTypes1))
     swigDelegate1 = new SwigDelegateCmdObserverDefault_1(SwigDirectoronEnterSelectCommand);
   if (SwigDerivedClassHasMethod("onUnloadCommands", swigMethodTypes2))
     swigDelegate2 = new SwigDelegateCmdObserverDefault_2(SwigDirectoronUnloadCommands);
   if (SwigDerivedClassHasMethod("selectActionsNeedHided", swigMethodTypes3))
     swigDelegate3 = new SwigDelegateCmdObserverDefault_3(SwigDirectorselectActionsNeedHided);
   if (SwigDerivedClassHasMethod("addShapeActions", swigMethodTypes4))
     swigDelegate4 = new SwigDelegateCmdObserverDefault_4(SwigDirectoraddShapeActions);
   if (SwigDerivedClassHasMethod("doAction", swigMethodTypes5))
     swigDelegate5 = new SwigDelegateCmdObserverDefault_5(SwigDirectordoAction);
   if (SwigDerivedClassHasMethod("doEndAction", swigMethodTypes6))
     swigDelegate6 = new SwigDelegateCmdObserverDefault_6(SwigDirectordoEndAction);
   if (SwigDerivedClassHasMethod("drawInShapeCommand", swigMethodTypes7))
     swigDelegate7 = new SwigDelegateCmdObserverDefault_7(SwigDirectordrawInShapeCommand);
   if (SwigDerivedClassHasMethod("drawInSelectCommand", swigMethodTypes8))
     swigDelegate8 = new SwigDelegateCmdObserverDefault_8(SwigDirectordrawInSelectCommand);
   if (SwigDerivedClassHasMethod("onShapeWillAdded", swigMethodTypes9))
     swigDelegate9 = new SwigDelegateCmdObserverDefault_9(SwigDirectoronShapeWillAdded);
   if (SwigDerivedClassHasMethod("onShapeAdded", swigMethodTypes10))
     swigDelegate10 = new SwigDelegateCmdObserverDefault_10(SwigDirectoronShapeAdded);
   if (SwigDerivedClassHasMethod("onShapeWillDeleted", swigMethodTypes11))
     swigDelegate11 = new SwigDelegateCmdObserverDefault_11(SwigDirectoronShapeWillDeleted);
   if (SwigDerivedClassHasMethod("onShapeDeleted", swigMethodTypes12))
     swigDelegate12 = new SwigDelegateCmdObserverDefault_12(SwigDirectoronShapeDeleted);
   if (SwigDerivedClassHasMethod("onShapeCanRotated", swigMethodTypes13))
     swigDelegate13 = new SwigDelegateCmdObserverDefault_13(SwigDirectoronShapeCanRotated);
   if (SwigDerivedClassHasMethod("onShapeCanTransform", swigMethodTypes14))
     swigDelegate14 = new SwigDelegateCmdObserverDefault_14(SwigDirectoronShapeCanTransform);
   if (SwigDerivedClassHasMethod("onShapeCanUnlock", swigMethodTypes15))
     swigDelegate15 = new SwigDelegateCmdObserverDefault_15(SwigDirectoronShapeCanUnlock);
   if (SwigDerivedClassHasMethod("onShapeCanUngroup", swigMethodTypes16))
     swigDelegate16 = new SwigDelegateCmdObserverDefault_16(SwigDirectoronShapeCanUngroup);
   if (SwigDerivedClassHasMethod("onShapeMoved", swigMethodTypes17))
     swigDelegate17 = new SwigDelegateCmdObserverDefault_17(SwigDirectoronShapeMoved);
   if (SwigDerivedClassHasMethod("createShape", swigMethodTypes18))
     swigDelegate18 = new SwigDelegateCmdObserverDefault_18(SwigDirectorcreateShape);
   if (SwigDerivedClassHasMethod("createCommand", swigMethodTypes19))
     swigDelegate19 = new SwigDelegateCmdObserverDefault_19(SwigDirectorcreateCommand);
   touchvgPINVOKE.CmdObserverDefault_director_connect(swigCPtr, swigDelegate0, swigDelegate1, swigDelegate2, swigDelegate3, swigDelegate4, swigDelegate5, swigDelegate6, swigDelegate7, swigDelegate8, swigDelegate9, swigDelegate10, swigDelegate11, swigDelegate12, swigDelegate13, swigDelegate14, swigDelegate15, swigDelegate16, swigDelegate17, swigDelegate18, swigDelegate19);
 }