Added IsAnyItemActive()

This commit is contained in:
ocornut
2015-02-18 17:17:06 +00:00
parent c1f20f03c5
commit f2752584e2
2 changed files with 8 additions and 0 deletions

View File

@ -295,6 +295,7 @@
! style: store rounded corners in texture to use 1 quad per corner (filled and wireframe). so rounding have minor cost.
- style: checkbox: padding for "active" color should be a multiplier of the
- style: colorbox not always square?
- text: simple markup language for color change?
- log: LogButtons() options for specifying depth and/or hiding depth slider
- log: have more control over the log scope (e.g. stop logging when leaving current tree node scope)
- log: be able to right-click and log a window or tree-node into tty/file/clipboard / generalized context menu?
@ -2437,6 +2438,12 @@ bool ImGui::IsItemActive()
return false;
}
bool ImGui::IsAnyItemActive()
{
ImGuiState& g = *GImGui;
return g.ActiveId != 0;
}
ImVec2 ImGui::GetItemBoxMin()
{
ImGuiWindow* window = GetCurrentWindow();