DVUI

osWindowFallback

Parameters

#
src:std.builtin.SourceLocation
std.builtin.SourceLocation
child_win_opts:OsWindowWidget.InitOptions
OsWindowWidget.InitOptions

Source

Implementation

#
pub fn osWindowFallback(src: std.builtin.SourceLocation, child_win_opts: OsWindowWidget.InitOptions) OsWindowWidget {
    const float = dvui.floatingWindow(src, .{}, .{
        // TODO : review which os_win_opts make sense to "forward"
    });
    // TODO : deal with close flag somehow. osWindowFallback should have a close button, because an OS window do
    float.dragAreaSet(dvui.windowHeader(child_win_opts.title orelse "Dvui child window", "", null));
    // TODO : deal with Floating window inside the floating window.
    // something is wrong with rendering order, but maybe we want the floating win declared
    // inside an osWindow to not be able to exceed it's boundaries ? Or on the contrary it's nice
    // that they just become "sibling" floating window ?
    return .{ .inner = float };
}