widgetFree
Pops a widget off the alloc stack, if it was allocated there.
This should always be called in deinit to ensure the widget
is popped.
Only valid between Window.beginand Window.end.
Parameters
- ptr:anytype
- anytype
Source
Implementation
pub fn widgetFree(ptr: anytype) void {
dvui.currentWindow()._widget_stack.destroy(ptr);
}