DVUI

osWindow

Spawn a new OS Window and subsequent widgets will be drawn on it.

If the backend doesn't support multiple OS windows, it will fallback to a dvui.floatingWindow.

Only valid between Window.begin and Window.end.

Parameters

#
src:std.builtin.SourceLocation
std.builtin.SourceLocation
os_win_opts:OsWindowWidget.InitOptions
OsWindowWidget.InitOptions
win_opts:Window.InitOptions
Window.InitOptions

Source

Implementation

#
pub fn osWindow(src: std.builtin.SourceLocation, os_win_opts: OsWindowWidget.InitOptions, win_opts: Window.InitOptions) OsWindowWidget {
    if (Backend.support_child_os_wins)
        return OsWindowWidget.osWindowImpl(src, os_win_opts, win_opts)
    else
        // This will be in the same dvui.Window, so win_opts is basically already "applied". Nice.
        return OsWindowWidget.osWindowFallback(src, os_win_opts);
}