Added GetItemBoxMin(),GetItemBoxMax(), renamed IsHovered()-->IsItemHovered()

This commit is contained in:
ocornut
2014-08-14 12:43:30 +01:00
parent 46eee0cee4
commit a905505cca
2 changed files with 21 additions and 3 deletions

View File

@ -231,7 +231,9 @@ namespace ImGui
// Utilities
void SetTooltip(const char* fmt, ...); // set tooltip under mouse-cursor, typically use with ImGui::IsHovered(). (currently no contention handling, last call win)
void SetNewWindowDefaultPos(ImVec2 pos); // set position of window that do
bool IsHovered(); // was the last item active area hovered by mouse?
bool IsItemHovered(); // was the last item active area hovered by mouse?
ImVec2 GetItemBoxMin(); // get bounding box of last item
ImVec2 GetItemBoxMax(); // get bounding box of last item
bool IsClipped(ImVec2 item_size); // to perform coarse clipping on user's side (as an optimisation)
bool IsKeyPressed(int key_index, bool repeat = true); // key_index into the keys_down[512] array, imgui doesn't know the semantic of each entry
bool IsMouseClicked(int button, bool repeat = false);