Added PushDisabled(), PopDisabled() currently only exposed in imgui_internal.h (#211)

This commit is contained in:
ocornut
2021-06-09 15:28:59 +02:00
parent b66529fe3e
commit 61f4aec868
3 changed files with 25 additions and 1 deletions

View File

@ -2379,6 +2379,8 @@ namespace ImGui
IMGUI_API void PushMultiItemsWidths(int components, float width_full);
IMGUI_API void PushItemFlag(ImGuiItemFlags option, bool enabled);
IMGUI_API void PopItemFlag();
IMGUI_API void PushDisabled();
IMGUI_API void PopDisabled();
IMGUI_API bool IsItemToggledSelection(); // Was the last item selection toggled? (after Selectable(), TreeNode() etc. We only returns toggle _event_ in order to handle clipping correctly)
IMGUI_API ImVec2 GetContentRegionMaxAbs();
IMGUI_API void ShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess);