Lines Matching defs:popup

511  - 2015/05/11 (1.40) - changed BeginPopup() API, takes a string identifier instead of a bool. ImGui needs to manage the open/closed state of popups. Call OpenPopup() to actually set the "open" state of a popup. BeginPopup() returns true if the popup is opened.
557 - When 'io.WantTextInput' is set to may want to notify your OS to popup an on-screen keyboard, if available (e.g. on a mobile phone, or console OS).
1089 PopupRounding = 0.0f; // Radius of popup window corners rounding. Set to 0.0f to have rectangular child windows
1090 PopupBorderSize = 1.0f; // Thickness of border around popup or tooltip windows. Generally set to 0.0f or 1.0f. Other values not well tested.
2724 // An active popup disable hovering on other windows (apart from its own children)
2731 // For the purpose of those flags we differentiate "standard popup" from "modal popup"
2846 // Test if interactions on this window are blocked by an active popup or modal
3151 // Unless we just made a window/popup appear
3177 // This is where we can trim the popup stack.
4143 // NB: prefer to call right after BeginPopup(). At the time Selectable/MenuItem is activated, the popup is already closed!
4911 window_just_activated_by_user |= (window->PopupId != popup_ref.PopupId); // We recycle popups so treat window as activated if popup id changed
5016 // Hide popup/tooltip window when re-opening while we measure size (because we recycle the windows)
6740 if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window)
6741 if (popup->Flags & ImGuiWindowFlags_Modal)
6742 return popup;
6752 // Mark popup as open (toggle toward open state).
6755 // One open popup per level of the popup hierarchy (NB: when assigning we reset the Window member of ImGuiPopupRef to NULL)
6778 // would become completely unusable because the popup will always be in hidden-while-calculating-size state _while_ claiming focus. Which would be a very confusing
6779 // situation for the programmer. Instead, we silently allow the popup to proceed, it will keep reappearing and the programming error will be more obvious to understand.
6786 // Close child popups if any, then flag popup for open/reopen
6791 // When reopening a popup we first refocus its parent, otherwise if its parent is itself a popup it would get closed by ClosePopupsOverWindow().
6818 // Don't close our own child popup windows.
6822 // Find the highest popup which is a descendant of the reference window (generally reference window = NavWindow)
6825 ImGuiPopupRef& popup = g.OpenPopupStack[popup_count_to_keep];
6826 if (!popup.Window)
6828 IM_ASSERT((popup.Window->Flags & ImGuiWindowFlags_Popup) != 0);
6829 if (popup.Window->Flags & ImGuiWindowFlags_ChildWindow)
6857 // The current code will set focus to the parent of the popup window which is incorrect.
6859 // leading to a chain of focusing A (clicked window) then B (parent window of the popup) then A again.
6871 // Close the popup we have begin-ed into.
6879 // Closing a menu closes its top-most parent popup (unless a modal)
6895 // A common pattern is to close a popup when selecting a menu item/selectable that will open another window.
6918 if (!is_open) // NB: Begin can return false when the popup is completely clipped (e.g. zero size display)
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.
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)
6978 // This is a helper to handle the simplest case of associating one named popup to one given widget.
7021 // r_outer = the visible area rectangle, minus safe area padding. If our popup size won't fit because of safe area padding we ignore it.
7049 // Default popup policy
7665 // Process NavCancel input (to close a popup, get back to parent, clear focus)
7687 // Close open popup/menu