mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Added IsAnyItemActive()
This commit is contained in:
parent
c1f20f03c5
commit
f2752584e2
2 changed files with 8 additions and 0 deletions
1
imgui.h
1
imgui.h
|
|
@ -327,6 +327,7 @@ namespace ImGui
|
|||
// Utilities
|
||||
IMGUI_API bool IsItemHovered(); // was the last item hovered by mouse?
|
||||
IMGUI_API bool IsItemActive(); // was the last item active? (e.g. button being held, text field being edited- items that don't interact will always return false)
|
||||
IMGUI_API bool IsAnyItemActive(); //
|
||||
IMGUI_API ImVec2 GetItemBoxMin(); // get bounding box of last item
|
||||
IMGUI_API ImVec2 GetItemBoxMax(); // get bounding box of last item
|
||||
IMGUI_API bool IsClipped(const ImVec2& item_size); // to perform coarse clipping on user's side (as an optimization)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue