示例#1
0
文件: RopIO.cs 项目: joke325/Dotrop
 internal RopInput(RopBind own, InputCallBack inputCB)
 {
     this.own     = new WeakReference <RopBind>(own);
     this.lib     = own.getLib();
     this.iid     = null;
     this.inputCB = inputCB;
 }
示例#2
0
文件: RopBind.cs 项目: joke325/Dotrop
        public RopInput create_input(InputCallBack inputCB, object app_ctx, int tag = 0)
        {
            RopInput inp = new RopInput(this, inputCB);
            int      ret = (int)lib.rnp_input_from_callback(out RopHandle hnd, inp, app_ctx);

            inp.Attach(Util.PopHandle(lib, hnd, ret));
            PutObj(inp, tag);
            return(inp);
        }
示例#3
0
文件: ASGUI.cs 项目: wjk17/AnimaSoul
 public virtual int SortList(InputCallBack a, InputCallBack b)
 {
     if (a.order > b.order)
     {
         return(-1);
     }                                    //降序
     else if (a.order < b.order)
     {
         return(1);
     }
     return(0);
 }
示例#4
0
 public static void registerCallBack(InputCallBack _inputCallBack)
 {
     inputCallBack = _inputCallBack;
 }