dataSetSlice
Set value for key (id+name), copying the slice contents. Can be passed a slice or pointer to an array.
Can be called from any thread.
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 the slice with the same key was retrieved earlier, the value behind
that slice would be modified.
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.
Parameters
Source
Implementation
pub fn dataSetSlice(win: ?*Window, id: Id, name: []const u8, value: anytype) void {
data.setSlice(win, .widget(id, name), value);
}