Sun, 19 Apr 2026 14:52:59 +0200
add functions for accessing some UiContext internals
| ui/common/document.c | file | annotate | diff | comparison | revisions | |
| ui/ui/toolkit.h | file | annotate | diff | comparison | revisions |
--- a/ui/common/document.c Sat Apr 18 08:07:24 2026 +0200 +++ b/ui/common/document.c Sun Apr 19 14:52:59 2026 +0200 @@ -78,3 +78,11 @@ return NULL; } } + +void* ui_context_document(UiContext *ctx) { + return ctx->self_doc; +} + +UiObject* ui_context_obj(UiContext *ctx) { + return ctx->obj; +}
--- a/ui/ui/toolkit.h Sat Apr 18 08:07:24 2026 +0200 +++ b/ui/ui/toolkit.h Sun Apr 19 14:52:59 2026 +0200 @@ -579,6 +579,8 @@ UIEXPORT void* ui_get_subdocument(void *document); // deprecated UIEXPORT UiContext* ui_document_context(void *doc); +UIEXPORT void* ui_context_document(UiContext *ctx); +UIEXPORT UiObject* ui_context_obj(UiContext *ctx); UIEXPORT void* ui_context_get_document(UiContext *ctx); UIEXPORT void ui_context_single_attachment_mode(UiContext *ctx, UiBool enable);