dataRetain
Set retain token for this key (id+name). null means remove retain token.
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.
While a key has retain dvui will not free its value. To free it you
must call either this with null, dataRemove, or retainClear.
Parameters
- win:?*Window
- ?*Window
- id:Id
- Id
- name:[]const u8
- []const u8
- token:?data.Token
- ?data.Token
Source
Implementation
pub fn dataRetain(win: ?*Window, id: Id, name: []const u8, token: ?data.Token) void {
data.retainToken(win, .widget(id, name), token);
}