| 7223 | } |
| 7224 | |
| 7225 | void ImGui::PopItemFlag() |
| 7226 | { |
| 7227 | ImGuiContext& g = *GImGui; |
| 7228 | IM_ASSERT(g.ItemFlagsStack.Size > 1); // Too many calls to PopItemFlag() - we always leave a 0 at the bottom of the stack. |
| 7229 | g.ItemFlagsStack.pop_back(); |
| 7230 | g.CurrentItemFlags = g.ItemFlagsStack.back(); |
| 7231 | } |
| 7232 | |
| 7233 | // BeginDisabled()/EndDisabled() |
| 7234 | // - Those can be nested but it cannot be used to enable an already disabled section (a single BeginDisabled(true) in the stack is enough to keep everything disabled) |