Lines Matching refs:last_dir
7022 ImVec2 ImGui::FindBestWindowPosForPopupEx(const ImVec2& ref_pos, const ImVec2& size, ImGuiDir* last_dir, const ImRect& r_outer, const ImRect& r_avoid, ImGuiPopupPositionPolicy policy)
7032 for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++)
7034 const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n];
7035 if (n != -1 && dir == *last_dir) // Already tried this direction?
7044 *last_dir = dir;
7051 for (int n = (*last_dir != ImGuiDir_None) ? -1 : 0; n < ImGuiDir_COUNT; n++)
7053 const ImGuiDir dir = (n == -1) ? *last_dir : dir_prefered_order[n];
7054 if (n != -1 && dir == *last_dir) // Already tried this direction?
7063 *last_dir = dir;
7068 *last_dir = ImGuiDir_None;