ui/common/context.c

branch
newapi
changeset 247
4b21af9d8c5a
parent 239
5dd24929f9f6
child 249
4df7c366cff7
equal deleted inserted replaced
246:b19f3098dd11 247:4b21af9d8c5a
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