MCPcopy Create free account
hub / github.com/Raais/ImStudio / GrabButton

Method GrabButton

src/utils/ims_utils.cpp:341–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341bool utils::GrabButton(ImVec2 pos, int random_int)
342{
343 bool active = false;
344 ImGui::SetCursorPos(pos);
345 ImGui::PushID(random_int);
346 ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0.00f, 0.00f));
347 ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 0);
348 ImGui::BeginChild(random_int + 9, ImVec2(20, 20));
349 ImGui::Button(" ");
350 active = ImGui::IsItemActive();
351 ImGui::EndChild();
352 ImGui::PopStyleVar(2);
353 ImGui::PopID();
354 return active;
355}
356
357void utils::HelpMarker(const char *desc)
358{

Callers

nothing calls this directly

Calls 1

ImVec2Function · 0.85

Tested by

no test coverage detected