Lines Matching defs:p_open

110  - Click upper right corner to close a window, available when 'bool* p_open' is passed to ImGui::Begin().
4865 // - Passing 'bool* p_open' displays a Close button on the upper-right corner of the window, the pointed value will be set to false when the button is pressed.
4866 bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
4903 window->HasCloseButton = (p_open != NULL);
5380 if (p_open != NULL)
5385 *p_open = false;
5399 float pad_right = (p_open == NULL) ? style.FramePadding.x : (style.FramePadding.x + g.FontSize + style.ItemInnerSpacing.x);
5405 clip_rect.Max.x = window->Pos.x + window->Size.x - (p_open ? title_bar_rect.GetHeight() - 3 : style.FramePadding.x); // Match the size of CloseButton()
5489 bool ImGui::Begin(const char* name, bool* p_open, const ImVec2& size_first_use, float bg_alpha_override, ImGuiWindowFlags flags)
5499 return Begin(name, p_open, flags);
6936 // If 'p_open' is specified for a modal popup window, the popup will have a regular close button which will close the popup.
6937 // Note that popup visibility status is owned by imgui (and manipulated with e.g. OpenPopup) so the actual value of *p_open is meaningless here.
6938 bool ImGui::BeginPopupModal(const char* name, bool* p_open, ImGuiWindowFlags flags)
6955 const bool is_open = Begin(name, p_open, flags);
6956 if (!is_open || (p_open && !*p_open)) // NB: is_open can be 'false' when the popup is completely clipped (e.g. zero size display)
9279 void ImGui::ShowMetricsWindow(bool* p_open)
9281 if (!ImGui::Begin("ImGui Metrics", p_open))