MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / InputInt

Method InputInt

include/imgui/imgui_widgets.cpp:3925–3930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3923}
3924
3925bool ImGui::InputInt(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags)
3926{
3927 // Hexadecimal input provided as a convenience but the flag name is awkward. Typically you'd use InputText() to parse your own data, if you want to handle prefixes.
3928 const char* format = (flags & ImGuiInputTextFlags_CharsHexadecimal) ? "%08X" : "%d";
3929 return InputScalar(label, ImGuiDataType_S32, (void*)v, (void*)(step > 0 ? &step : NULL), (void*)(step_fast > 0 ? &step_fast : NULL), format, flags);
3930}
3931
3932bool ImGui::InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags)
3933{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected