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 } |