DVUI

parentGet

Get the Widget that would be the parent of a new widget.

dvui.parentGet().extendId(@src(), id_extra)

is how new widgets get their id, and can be used to make a unique id without making a widget.

Only valid between Window.beginand Window.end.

Source

Implementation

#
pub fn parentGet() Widget {
    return currentWindow().current_parent;
}