NB: v_speed is float to allow adjusting the drag speed with more precision
| 7757 | |
| 7758 | // NB: v_speed is float to allow adjusting the drag speed with more precision |
| 7759 | bool 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 | |
| 7769 | bool ImGui::DragIntN(const char* label, int* v, int components, float v_speed, int v_min, int v_max, const char* display_format) |
| 7770 | { |
nothing calls this directly
no outgoing calls
no test coverage detected