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

Method IsItemActiveAlt

src/utils/ims_utils.cpp:330–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330bool utils::IsItemActiveAlt(ImVec2 pos, int id)
331{
332 bool active = false;
333 ImGui::SetCursorPos(pos);
334 ImGui::PushID(id);
335 ImGui::InvisibleButton(" ", ImGui::GetItemRectSize());
336 ImGui::PopID();
337 active = ImGui::IsItemActive();
338 return active;
339}
340
341bool utils::GrabButton(ImVec2 pos, int random_int)
342{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected