mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-28 02:50:06 +00:00
Added IsAnyItemHovered() public helper.
This commit is contained in:
parent
70f2ff0e5a
commit
8c4c421f74
2 changed files with 8 additions and 3 deletions
|
|
@ -2984,10 +2984,14 @@ bool ImGui::IsItemActive()
|
|||
return false;
|
||||
}
|
||||
|
||||
bool ImGui::IsAnyItemHovered()
|
||||
{
|
||||
return GImGui->HoveredId != 0 || GImGui->HoveredIdPreviousFrame != 0;
|
||||
}
|
||||
|
||||
bool ImGui::IsAnyItemActive()
|
||||
{
|
||||
ImGuiState& g = *GImGui;
|
||||
return g.ActiveId != 0;
|
||||
return GImGui->ActiveId != 0;
|
||||
}
|
||||
|
||||
bool ImGui::IsItemVisible()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue