mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-21 01:44:21 +00:00
Undo IsHovered > IsItemHovered, shorter name wins
This commit is contained in:
parent
f30d23a502
commit
309ff44579
2 changed files with 3 additions and 3 deletions
|
|
@ -1671,7 +1671,7 @@ ImVec2 GetMousePos()
|
|||
return GImGui.IO.MousePos;
|
||||
}
|
||||
|
||||
bool IsItemHovered()
|
||||
bool IsHovered()
|
||||
{
|
||||
ImGuiWindow* window = GetCurrentWindow();
|
||||
return window->DC.LastItemHovered;
|
||||
|
|
@ -5427,7 +5427,7 @@ void ShowTestWindow(bool* open)
|
|||
ImGui::RadioButton("radio c", &e, 2);
|
||||
|
||||
ImGui::Text("Hover me");
|
||||
if (ImGui::IsItemHovered())
|
||||
if (ImGui::IsHovered())
|
||||
ImGui::SetTooltip("I am a tooltip");
|
||||
|
||||
static int item = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue