DVUI

renderingSet

Set if dvui should immediately render, and return the previous setting.

If false, the render functions defer until Window.end.

Only valid between Window.beginand Window.end.

Parameters

#
r:bool
bool

Source

Implementation

#
pub fn renderingSet(r: bool) bool {
    const cw = currentWindow();
    const ret = cw.render_target.rendering;
    cw.render_target.rendering = r;
    return ret;
}