dataGetPtr
Retrieve a pointer to the value for key (id+name).
Can be called from any thread.
If called from non-GUI thread or outside Window.begin/Window.end, you must
pass a pointer to the Window you want to add the value to.
Returns a pointer to internal storage, which will be freed after a frame
where there is no call to any dataGet/dataSet functions for this key.
The pointer will always be valid until the next call to Window.end.
If you want to get the contents of a stored slice, use dataGetSlice.
Parameters
Source
Implementation
pub fn dataGetPtr(win: ?*Window, id: Id, name: []const u8, comptime T: type) ?*T {
return data.getPtr(win, .widget(id, name), T);
}