MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / DragInt2

Function DragInt2

Source/GUI/ImGuiBinding.cpp:757–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755}
756
757bool DragInt2(const char* label, int* v1, int* v2, float v_speed, int v_min, int v_max, const char* display_format, Slice* flags, int flagCount) {
758 int ints[2] = {*v1, *v2};
759 bool changed = ImGui::DragInt2(label, ints, v_speed, v_min, v_max, display_format, SliderFlags(flags, flagCount));
760 *v1 = ints[0];
761 *v2 = ints[1];
762 return changed;
763}
764
765bool InputFloat(const char* label, float* v, float step, float step_fast, const char* format, Slice* flags, int flagCount) {
766 return ImGui::InputFloat(label, v, step, step_fast, format, InputTextFlags(flags, flagCount));

Callers 2

Calls 4

SliderFlagsFunction · 0.85
popMethod · 0.65
pushMethod · 0.65
c_strMethod · 0.45

Tested by

no test coverage detected