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

Method DragIntRange2

libs/imgui/imgui.cpp:7811–7834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7809}
7810
7811bool ImGui::DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, const char* display_format, const char* display_format_max)
7812{
7813 ImGuiWindow* window = GetCurrentWindow();
7814 if (window->SkipItems)
7815 return false;
7816
7817 ImGuiContext& g = *GImGui;
7818 PushID(label);
7819 BeginGroup();
7820 PushMultiItemsWidths(2);
7821
7822 bool value_changed = DragInt("##min", v_current_min, v_speed, (v_min >= v_max) ? INT_MIN : v_min, (v_min >= v_max) ? *v_current_max : ImMin(v_max, *v_current_max), display_format);
7823 PopItemWidth();
7824 SameLine(0, g.Style.ItemInnerSpacing.x);
7825 value_changed |= DragInt("##max", v_current_max, v_speed, (v_min >= v_max) ? *v_current_min : ImMax(v_min, *v_current_min), (v_min >= v_max) ? INT_MAX : v_max, display_format_max ? display_format_max : display_format);
7826 PopItemWidth();
7827 SameLine(0, g.Style.ItemInnerSpacing.x);
7828
7829 TextUnformatted(label, FindRenderedTextEnd(label));
7830 EndGroup();
7831 PopID();
7832
7833 return value_changed;
7834}
7835
7836void ImGui::PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)
7837{

Callers

nothing calls this directly

Calls 3

GetCurrentWindowFunction · 0.85
ImMinFunction · 0.85
ImMaxFunction · 0.85

Tested by

no test coverage detected