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

Function DragFloat2

Source/GUI/ImGuiBinding.cpp:745–751  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743}
744
745bool DragFloat2(const char* label, float* v1, float* v2, float v_speed, float v_min, float v_max, const char* display_format, Slice* flags, int flagCount) {
746 float floats[2] = {*v1, *v2};
747 bool changed = ImGui::DragFloat2(label, floats, v_speed, v_min, v_max, display_format, SliderFlags(flags, flagCount));
748 *v1 = floats[0];
749 *v2 = floats[1];
750 return changed;
751}
752
753bool DragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* display_format, Slice* flags, int flagCount) {
754 return ImGui::DragInt(label, v, v_speed, v_min, v_max, display_format, SliderFlags(flags, flagCount));

Callers 6

DemoWindowLayoutFunction · 0.85
DemoWindowTablesFunction · 0.85
Demo_HistogramFunction · 0.85
Demo_AxisConstraintsFunction · 0.85

Calls 4

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

Tested by

no test coverage detected