Lines Matching defs:p_open
4987 bool ImGui::CollapsingHeader(const char* label, bool* p_open, ImGuiTreeNodeFlags flags)
4993 if (p_open && !*p_open)
4997 bool is_open = TreeNodeBehavior(id, flags | ImGuiTreeNodeFlags_CollapsingHeader | (p_open ? ImGuiTreeNodeFlags_AllowItemOverlap : 0), label);
4998 if (p_open)
5006 *p_open = false;
6308 bool ImGui::BeginTabItem(const char* label, bool* p_open, ImGuiTabItemFlags flags)
6316 bool ret = TabItemEx(tab_bar, label, p_open, flags);
6339 bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags)
6353 // If the user called us with *p_open == false, we early out and don't render. We make a dummy call to ItemAdd() so that attempts to use a contextual popup menu with an implicit ID won't use an older ID.
6354 if (p_open && !*p_open)
6363 ImVec2 size = TabItemCalcSize(label, p_open != NULL);
6379 if (p_open == NULL)
6507 const ImGuiID close_button_id = p_open ? window->GetID((void*)((intptr_t)id + 1)) : 0;
6509 if (just_closed && p_open != NULL)
6511 *p_open = false;