DVUI

subwindowCurrentSet

Used by floating windows (subwindows) to install themselves as the current subwindow (the subwindow that widgets run now will be in).

Only valid between Window.beginand Window.end.

Parameters

#
id:Id
Id
rect:?Rect.Natural
?Rect.Natural

Source

Implementation

#
pub fn subwindowCurrentSet(id: Id, rect: ?Rect.Natural) subwindowCurrentSetReturn {
    const cw = currentWindow();
    const prev_id, const prev_rect = cw.subwindows.setCurrent(id, rect);
    return .{ .id = prev_id, .rect = prev_rect };
}