DVUI

widgetIsAllocated

Returns whether the widget was created with widgetAlloc.

Only valid between Window.beginand Window.end.

Parameters

#
ptr:anytype
anytype

Source

Implementation

#
pub fn widgetIsAllocated(ptr: anytype) bool {
    return dvui.currentWindow()._widget_stack.created(ptr);
}