555 |
555 |
556 cxListAdd(ctx->group_widgets, &gw); |
556 cxListAdd(ctx->group_widgets, &gw); |
557 } |
557 } |
558 |
558 |
559 UIEXPORT void *ui_allocator(UiContext *ctx) { |
559 UIEXPORT void *ui_allocator(UiContext *ctx) { |
560 return ctx ? (void*)ctx->allocator : NULL; |
560 return (void*)ctx->allocator; |
|
561 } |
|
562 |
|
563 void* ui_cx_mempool(UiContext *ctx) { |
|
564 return ctx->mp; |
561 } |
565 } |
562 |
566 |
563 void* ui_malloc(UiContext *ctx, size_t size) { |
567 void* ui_malloc(UiContext *ctx, size_t size) { |
564 return ctx ? cxMalloc(ctx->allocator, size) : NULL; |
568 return ctx ? cxMalloc(ctx->allocator, size) : NULL; |
565 } |
569 } |