DVUI

overlay

Lays out children according to gravity anywhere inside. Useful to overlap children.

See box.

Only valid between Window.beginand Window.end.

Parameters

#
src:std.builtin.SourceLocation
std.builtin.SourceLocation
opts:Options
Options

Source

Implementation

#
pub fn overlay(src: std.builtin.SourceLocation, opts: Options) *OverlayWidget {
    var ret = widgetAlloc(OverlayWidget);
    ret.init(src, opts);
    ret.drawBackground();
    return ret;
}