MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / SetNextItemRefVal

Method SetNextItemRefVal

include/imgui/imgui_widgets.cpp:3788–3793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3786}
3787
3788void ImGui::SetNextItemRefVal(ImGuiDataType data_type, void* p_data)
3789{
3790 ImGuiContext& g = *GImGui;
3791 g.NextItemData.HasFlags |= ImGuiNextItemDataFlags_HasRefVal;
3792 memcpy(&g.NextItemData.RefVal, p_data, DataTypeGetInfo(data_type)->Size);
3793}
3794
3795// Note: p_data, p_step, p_step_fast are _pointers_ to a memory address holding the data. For an Input widget, p_step and p_step_fast are optional.
3796// Read code of e.g. InputFloat(), InputInt() etc. or examples in 'Demo->Widgets->Data Types' to understand how to use this function directly.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected