internal RopInput(RopBind own, InputCallBack inputCB) { this.own = new WeakReference <RopBind>(own); this.lib = own.getLib(); this.iid = null; this.inputCB = inputCB; }
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); }
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); }
public static void registerCallBack(InputCallBack _inputCallBack) { inputCallBack = _inputCallBack; }