--- a/ui/common/wrapper.c Fri Jun 13 21:37:00 2025 +0200 +++ b/ui/common/wrapper.c Sat Jun 14 11:05:57 2025 +0200 @@ -28,6 +28,23 @@ #include "wrapper.h" +/* ---------------------------- UiObject ---------------------------- */ + +UiContext* ui_object_get_context(UiObject *obj) { + return obj->ctx; +} + +void* ui_object_get_windowdata(UiObject *obj) { + return obj->window; +} + +void ui_object_set_windowdata(UiObject *obj, void *windowdata) { + obj->window = windowdata; +} + + +/* ---------------------------- UiEvent ---------------------------- */ + UiObject* ui_event_get_obj(UiEvent *event) { return event->obj; }