dataSet
Store value under 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.
Stored value with the same key will be overwritten if it has the same size,
otherwise the value will be freed at the next call to Window.end. This means
that if a pointer to the same key was retrieved earlier, the value behind
that pointer would be modified.
If you want to store the contents of a slice, use dataSetSlice.
Parameters
Source
Implementation
pub fn dataSet(win: ?*Window, id: Id, name: []const u8, value: anytype) void {
data.set(win, .widget(id, name), value);
}