For example: https://docs.gtk.org/gtk4/ctor.WindowControls.new.html > The data is owned by the called function. You're looking for some kind of similar statement.