diff -r c0eb2bc7ab13 -r e519ecc27cfe ui/common/document.c --- 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; +}