| 3786 | } |
| 3787 | |
| 3788 | void 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. |
nothing calls this directly
no outgoing calls
no test coverage detected