DVUI

floatingWindow

Subwindow that the user can generally resize and move around. Options.rect will control the initial position/size.

Usually you want to add windowHeader as the first child.

Only valid between Window.beginand Window.end.

Parameters

#
src:std.builtin.SourceLocation
std.builtin.SourceLocation
floating_opts:FloatingWindowWidget.InitOptions
FloatingWindowWidget.InitOptions
opts:Options
Options

Source

Implementation

#
pub fn floatingWindow(src: std.builtin.SourceLocation, floating_opts: FloatingWindowWidget.InitOptions, opts: Options) *FloatingWindowWidget {
    var ret = widgetAlloc(FloatingWindowWidget);
    ret.init(src, floating_opts, opts);
    ret.processEventsBefore();
    ret.drawBackground();
    return ret;
}