ui/common/context.c

changeset 21
3060a5a1d5fd
parent 8
726b24766437
child 26
40d6af793c1a
equal deleted inserted replaced
20:db263186edf3 21:3060a5a1d5fd
434 void ui_context_closefunc(UiContext *ctx, ui_callback fnc, void *udata) { 434 void ui_context_closefunc(UiContext *ctx, ui_callback fnc, void *udata) {
435 ctx->close_callback = fnc; 435 ctx->close_callback = fnc;
436 ctx->close_data = udata; 436 ctx->close_data = udata;
437 } 437 }
438 438
439 UIEXPORT void ui_context_destroy(UiContext *ctx) {
440 cxMempoolDestroy(ctx->mp);
441 }
442
439 443
440 void ui_set_group(UiContext *ctx, int group) { 444 void ui_set_group(UiContext *ctx, int group) {
441 if(cxListFind(ctx->groups, &group) == -1) { 445 if(cxListFind(ctx->groups, &group) == -1) {
442 cxListAdd(ctx->groups, &group); 446 cxListAdd(ctx->groups, &group);
443 } 447 }

mercurial