MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / DragInt

Method DragInt

libs/imgui/imgui.cpp:7759–7767  ·  view source on GitHub ↗

NB: v_speed is float to allow adjusting the drag speed with more precision

Source from the content-addressed store, hash-verified

7757
7758// NB: v_speed is float to allow adjusting the drag speed with more precision
7759bool ImGui::DragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* display_format)
7760{
7761 if (!display_format)
7762 display_format = "%.0f";
7763 float v_f = (float)*v;
7764 bool value_changed = DragFloat(label, &v_f, v_speed, (float)v_min, (float)v_max, display_format);
7765 *v = (int)v_f;
7766 return value_changed;
7767}
7768
7769bool ImGui::DragIntN(const char* label, int* v, int components, float v_speed, int v_min, int v_max, const char* display_format)
7770{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected