Lines Matching defs:ImGuiWindow

971 #pragma GCC diagnostic ignored "-Wformat"                   // warning: format '%p' expects argument of type 'void*', but argument 6 has type 'ImGuiWindow*'
993 static void SetCurrentWindow(ImGuiWindow* window);
995 static ImGuiWindow* CreateNewWindow(const char* name, ImVec2 size, ImGuiWindowFlags flags);
996 static void CheckStacksSize(ImGuiWindow* window, bool write);
997 static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window, bool snap_on_edges);
1000 static void AddWindowToSortBuffer(ImVector<ImGuiWindow*>* out_sorted_windows, ImGuiWindow* window);
1025 static void NavProcessItem(ImGuiWindow* window, const ImRect& nav_bb, const ImGuiID id);
1027 static void NavSaveLastChildNavWindow(ImGuiWindow* nav_window);
1028 static ImGuiWindow* NavRestoreLastChildNavWindow(ImGuiWindow* window);
1033 static void UpdateManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4]);
1034 static void RenderOuterBorders(ImGuiWindow* window);
2192 ImGuiWindow* window = ImGui::GetCurrentWindow();
2288 ImGuiWindow* window = g.CurrentWindow;
2314 ImGuiWindow* window = g.CurrentWindow;
2366 ImGuiWindow* window = g.CurrentWindow;
2376 ImGuiWindow* window = g.CurrentWindow;
2389 ImGuiWindow* window = g.CurrentWindow;
2436 ImGuiWindow* window = g.CurrentWindow;
2443 ImGuiWindow* window = g.CurrentWindow;
2465 ImGuiWindow* window = g.CurrentWindow;
2494 // ImGuiWindow is mostly a dumb struct. It merely has a constructor and a few helper methods
2495 ImGuiWindow::ImGuiWindow(ImGuiContext* context, const char* name)
2558 ImGuiWindow::~ImGuiWindow()
2566 ImGuiID ImGuiWindow::GetID(const char* str, const char* str_end)
2574 ImGuiID ImGuiWindow::GetID(const void* ptr)
2582 ImGuiID ImGuiWindow::GetIDNoKeepAlive(const char* str, const char* str_end)
2588 ImGuiID ImGuiWindow::GetIDNoKeepAlive(const void* ptr)
2595 ImGuiID ImGuiWindow::GetIDFromRectangle(const ImRect& r_abs)
2604 static void SetCurrentWindow(ImGuiWindow* window)
2631 void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window)
2659 void ImGui::SetFocusID(ImGuiID id, ImGuiWindow* window)
2722 static inline bool IsWindowContentHoverable(ImGuiWindow* window, ImGuiHoveredFlags flags)
2728 if (ImGuiWindow* focused_root_window = g.NavWindow->RootWindow)
2746 ImGuiWindow* window = g.CurrentWindow;
2781 ImGuiWindow* window = g.CurrentWindow;
2824 ImGuiWindow* window = g.CurrentWindow;
2868 ImGuiWindow* window = g.CurrentWindow;
2887 ImGuiWindow* window = g.CurrentWindow;
2895 bool ImGui::FocusableItemRegister(ImGuiWindow* window, ImGuiID id, bool tab_stop)
2920 void ImGui::FocusableItemUnregister(ImGuiWindow* window)
2944 ImGuiWindow* window = GetCurrentWindowRead();
3069 static ImDrawList* GetOverlayDrawList(ImGuiWindow*)
3085 void ImGui::StartMouseMovingWindow(ImGuiWindow* window)
3114 ImGuiWindow* moving_window = g.MovingWindow->RootWindow;
3178 ImGuiWindow* modal = GetFrontMostPopupModal();
3184 ImGuiWindow* window = g.Windows[i];
3194 static bool IsWindowActiveAndVisible(ImGuiWindow* window)
3262 ImGuiWindow* window = g.HoveredWindow;
3263 ImGuiWindow* scroll_window = window;
3310 ImGuiWindow* modal_window = GetFrontMostPopupModal();
3515 ImGuiWindow* window = g.Windows[i];
3548 // Add .ini handle for ImGuiWindow type
3628 const ImGuiWindow* const a = *(const ImGuiWindow* const *)lhs;
3629 const ImGuiWindow* const b = *(const ImGuiWindow* const *)rhs;
3637 static void AddWindowToSortBuffer(ImVector<ImGuiWindow*>* out_sorted_windows, ImGuiWindow* window)
3644 ImQsort(window->DC.ChildWindows.begin(), (size_t)count, sizeof(ImGuiWindow*), ChildWindowComparer);
3647 ImGuiWindow* child = window->DC.ChildWindows[i];
3687 static void AddWindowToDrawData(ImVector<ImDrawList*>* out_render_list, ImGuiWindow* window)
3694 ImGuiWindow* child = window->DC.ChildWindows[i];
3700 static void AddRootWindowToDrawData(ImGuiWindow* window)
3747 ImGuiWindow* window = GetCurrentWindow();
3754 ImGuiWindow* window = GetCurrentWindow();
3831 ImGuiWindow* window = g.Windows[i];
3863 ImGuiWindow* windows_to_render_front_most[2];
3868 ImGuiWindow* window = g.Windows[n];
3926 ImGuiWindow* window = g.CurrentWindow;
3969 ImGuiWindow* hovered_window = NULL;
3977 ImGuiWindow* window = g.Windows[i];
4211 ImGuiWindow* window = g.CurrentWindow;
4222 ImGuiWindow* window = g.CurrentWindow;
4232 ImGuiWindow* window = g.CurrentWindow;
4245 ImGuiWindow* window = g.CurrentWindow;
4277 ImGuiWindow* window = GetCurrentWindowRead();
4283 ImGuiWindow* window = GetCurrentWindowRead();
4299 ImGuiWindow* window = GetCurrentWindowRead();
4305 ImGuiWindow* window = GetCurrentWindowRead();
4311 ImGuiWindow* window = GetCurrentWindowRead();
4324 ImGuiWindow* parent_window = g.CurrentWindow;
4352 ImGuiWindow* child_window = g.CurrentWindow;
4374 ImGuiWindow* window = GetCurrentWindow();
4387 ImGuiWindow* window = g.CurrentWindow;
4403 ImGuiWindow* parent_window = g.CurrentWindow;
4444 static void CheckStacksSize(ImGuiWindow* window, bool write)
4459 static void SetWindowConditionAllowFlags(ImGuiWindow* window, ImGuiCond flags, bool enabled)
4466 ImGuiWindow* ImGui::FindWindowByID(ImGuiID id)
4469 return (ImGuiWindow*)g.WindowsById.GetVoidPtr(id);
4472 ImGuiWindow* ImGui::FindWindowByName(const char* name)
4478 static ImGuiWindow* CreateNewWindow(const char* name, ImVec2 size, ImGuiWindowFlags flags)
4483 ImGuiWindow* window = IM_NEW(ImGuiWindow)(&g, name);
4527 static ImVec2 CalcSizeAfterConstraint(ImGuiWindow* window, ImVec2 new_size)
4557 static ImVec2 CalcSizeContents(ImGuiWindow* window)
4571 static ImVec2 CalcSizeAutoFit(ImGuiWindow* window, const ImVec2& size_contents)
4601 ImVec2 ImGui::CalcWindowExpectedSize(ImGuiWindow* window)
4607 float ImGui::GetWindowScrollMaxX(ImGuiWindow* window)
4612 float ImGui::GetWindowScrollMaxY(ImGuiWindow* window)
4617 static ImVec2 CalcNextScrollFromScrollTargetAndClamp(ImGuiWindow* window, bool snap_on_edges)
4655 static void CalcResizePosSizeFromAnyCorner(ImGuiWindow* window, const ImVec2& corner_target, const ImVec2& corner_norm, ImVec2* out_pos, ImVec2* out_size)
4684 static ImRect GetResizeBorderRect(ImGuiWindow* window, int border_n, float perp_padding, float thickness)
4697 static void ImGui::UpdateManualResize(ImGuiWindow* window, const ImVec2& size_auto_fit, int* border_held, int resize_grip_count, ImU32 resize_grip_col[4])
4807 static void ImGui::RenderOuterBorders(ImGuiWindow* window)
4844 void ImGui::UpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window)
4875 ImGuiWindow* window = FindWindowByName(name);
4900 ImGuiWindow* parent_window_in_stack = g.CurrentWindowStack.empty() ? NULL : g.CurrentWindowStack.back();
4901 ImGuiWindow* parent_window = first_begin_of_the_frame ? ((flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup)) ? parent_window_in_stack : NULL) : window->ParentWindow;
5222 const ImGuiWindow* window_to_highlight = g.NavWindowingTarget ? g.NavWindowingTarget : g.NavWindow;
5514 ImGuiWindow* window = g.CurrentWindow;
5532 void ImGui::BringWindowToFocusFront(ImGuiWindow* window)
5540 memmove(&g.WindowsFocusOrder[i], &g.WindowsFocusOrder[i + 1], (size_t)(g.WindowsFocusOrder.Size - i - 1) * sizeof(ImGuiWindow*));
5546 void ImGui::BringWindowToDisplayFront(ImGuiWindow* window)
5549 ImGuiWindow* current_front_window = g.Windows.back();
5555 memmove(&g.Windows[i], &g.Windows[i + 1], (size_t)(g.Windows.Size - i - 1) * sizeof(ImGuiWindow*));
5561 void ImGui::BringWindowToDisplayBack(ImGuiWindow* window)
5569 memmove(&g.Windows[1], &g.Windows[0], (size_t)i * sizeof(ImGuiWindow*));
5576 void ImGui::FocusWindow(ImGuiWindow* window)
5611 void ImGui::FocusPreviousWindowIgnoringOne(ImGuiWindow* ignore_window)
5617 ImGuiWindow* window = g.WindowsFocusOrder[i];
5621 ImGuiWindow* focus_window = NavRestoreLastChildNavWindow(window);
5630 ImGuiWindow* window = GetCurrentWindow();
5637 ImGuiWindow* window = GetCurrentWindow();
5651 ImGuiWindow* window = GetCurrentWindow();
5658 ImGuiWindow* window = GetCurrentWindowRead();
5705 ImGuiWindow* window = GetCurrentWindow();
5715 ImGuiWindow* window = GetCurrentWindow();
5743 ImGuiWindow* window = GetCurrentWindow();
5750 ImGuiWindow* window = GetCurrentWindow();
5932 bool ImGui::IsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent)
6010 bool ImGui::IsWindowNavFocusable(ImGuiWindow* window)
6017 ImGuiWindow* window = GImGui->CurrentWindow;
6023 ImGuiWindow* window = GImGui->CurrentWindow;
6030 ImGuiWindow* window = g.CurrentWindow;
6034 void ImGui::SetWindowScrollX(ImGuiWindow* window, float new_scroll_x)
6041 void ImGui::SetWindowScrollY(ImGuiWindow* window, float new_scroll_y)
6048 void ImGui::SetWindowPos(ImGuiWindow* window, const ImVec2& pos, ImGuiCond cond)
6067 ImGuiWindow* window = GetCurrentWindowRead();
6073 if (ImGuiWindow* window = FindWindowByName(name))
6079 ImGuiWindow* window = GetCurrentWindowRead();
6083 void ImGui::SetWindowSize(ImGuiWindow* window, const ImVec2& size, ImGuiCond cond)
6122 if (ImGuiWindow* window = FindWindowByName(name))
6126 void ImGui::SetWindowCollapsed(ImGuiWindow* window, bool collapsed, ImGuiCond cond)
6144 ImGuiWindow* window = GetCurrentWindowRead();
6150 ImGuiWindow* window = GetCurrentWindowRead();
6156 if (ImGuiWindow* window = FindWindowByName(name))
6169 if (ImGuiWindow* window = FindWindowByName(name))
6235 ImGuiWindow* window = GetCurrentWindowRead();
6244 ImGuiWindow* window = GetCurrentWindowRead();
6256 ImGuiWindow* window = GetCurrentWindowRead();
6262 ImGuiWindow* window = GetCurrentWindowRead();
6268 ImGuiWindow* window = GetCurrentWindowRead();
6298 ImGuiWindow* window = GetCurrentWindow();
6320 ImGuiWindow* window = GetCurrentWindow();
6329 ImGuiWindow* window = GetCurrentWindowRead();
6335 ImGuiWindow* window = GetCurrentWindowRead();
6341 ImGuiWindow* window = GetCurrentWindowRead();
6347 ImGuiWindow* window = GetCurrentWindow();
6354 ImGuiWindow* window = GetCurrentWindow();
6361 ImGuiWindow* window = GetCurrentWindow();
6368 ImGuiWindow* window = GetCurrentWindowRead();
6374 ImGuiWindow* window = GetCurrentWindowRead();
6380 ImGuiWindow* window = GetCurrentWindow();
6407 ImGuiWindow* window = GetCurrentWindow();
6414 ImGuiWindow* window = GetCurrentWindow();
6422 ImGuiWindow* window = GetCurrentWindow();
6431 ImGuiWindow* window = GetCurrentWindow();
6446 ImGuiWindow* window = GetCurrentWindow();
6454 ImGuiWindow* window = g.CurrentWindow;
6470 ImGuiWindow* window = GImGui->CurrentWindow;
6476 ImGuiWindow* window = GImGui->CurrentWindow;
6482 ImGuiWindow* window = GImGui->CurrentWindow;
6488 ImGuiWindow* window = GImGui->CurrentWindow;
6494 ImGuiWindow* window = GImGui->CurrentWindow;
6501 ImGuiWindow* window = GImGui->CurrentWindow;
6507 ImGuiWindow* window = GImGui->CurrentWindow;
6513 ImGuiWindow* window = GImGui->CurrentWindow;
6519 ImGuiWindow* window = GImGui->CurrentWindow;
6525 ImGuiWindow* window = GImGui->CurrentWindow;
6531 ImGuiWindow* window = GImGui->CurrentWindow;;
6537 ImGuiWindow* window = GImGui->CurrentWindow;;
6545 ImGuiWindow* window = GetCurrentWindow();
6570 ImGuiWindow* window = GetCurrentWindow();
6614 ImGuiWindow* window = GetCurrentWindow();
6638 ImGuiWindow* window = GetCurrentWindow();
6646 ImGuiWindow* window = GetCurrentWindow();
6683 if (ImGuiWindow* window = FindWindowByName(window_name))
6736 ImGuiWindow* ImGui::GetFrontMostPopupModal()
6740 if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window)
6759 ImGuiWindow* parent_window = g.CurrentWindow;
6800 ImGuiWindow* window = GImGui->CurrentWindow;
6811 void ImGui::ClosePopupsOverWindow(ImGuiWindow* ref_window)
6852 ImGuiWindow* focus_window = (remaining > 0) ? g.OpenPopupStack[remaining-1].Window : g.OpenPopupStack[0].ParentWindow;
6882 ImGuiWindow* popup_window = g.OpenPopupStack[popup_idx].Window;
6883 ImGuiWindow* parent_popup_window = g.OpenPopupStack[popup_idx - 1].Window;
6898 if (ImGuiWindow* window = g.NavWindow)
6941 ImGuiWindow* window = g.CurrentWindow;
6983 ImGuiWindow* window = GImGui->CurrentWindow;
7012 ImRect ImGui::GetWindowAllowedExtentRect(ImGuiWindow*)
7075 ImVec2 ImGui::FindBestWindowPosForPopup(ImGuiWindow* window)
7085 ImGuiWindow* parent_window = g.CurrentWindowStack[g.CurrentWindowStack.Size - 2];
7162 ImGuiWindow* window = g.CurrentWindow;
7291 static void ImGui::NavProcessItem(ImGuiWindow* window, const ImRect& nav_bb, const ImGuiID id)
7386 void ImGui::NavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags)
7421 static void ImGui::NavSaveLastChildNavWindow(ImGuiWindow* nav_window)
7423 ImGuiWindow* parent_window = nav_window;
7431 static ImGuiWindow* ImGui::NavRestoreLastChildNavWindow(ImGuiWindow* window)
7457 void ImGui::NavInitWindow(ImGuiWindow* window, bool force_reinit)
7540 static void NavScrollToBringItemIntoView(ImGuiWindow* window, const ImRect& item_rect)
7676 ImGuiWindow* child_window = g.NavWindow;
7677 ImGuiWindow* parent_window = g.NavWindow->ParentWindow;
7778 ImGuiWindow* window = g.NavWindow;
7811 ImGuiWindow* window = g.NavWindow;
7900 ImGuiWindow* window = g.NavWindow;
7939 static int FindWindowFocusIndex(ImGuiWindow* window) // FIXME-OPT O(N)
7948 static ImGuiWindow* FindWindowNavFocusable(int i_start, int i_stop, int dir) // FIXME-OPT O(N)
7965 ImGuiWindow* window_target = FindWindowNavFocusable(i_current + focus_change_dir, -INT_MAX, focus_change_dir);
7977 ImGuiWindow* apply_focus_window = NULL;
7980 ImGuiWindow* modal_window = GetFrontMostPopupModal();
7999 if (ImGuiWindow* window = g.NavWindow ? g.NavWindow : FindWindowNavFocusable(g.WindowsFocusOrder.Size - 1, -INT_MAX, -1))
8091 ImGuiWindow* new_nav_window = g.NavWindow;
8098 ImGuiWindow* old_nav_window = g.NavWindow;
8109 static const char* GetFallbackWindowNameForWindowingList(ImGuiWindow* window)
8135 ImGuiWindow* window = g.WindowsFocusOrder[n];
8154 ImGuiWindow* window = GetCurrentWindow();
8188 ImGuiWindow* window = GetCurrentWindowRead();
8194 ImGuiWindow* window = GetCurrentWindowRead();
8215 ImGuiWindow* window = g.CurrentWindow;
8229 ImGuiWindow* window = GetCurrentWindowRead();
8257 ImGuiWindow* window = GetCurrentWindowRead();
8269 ImGuiWindow* window = g.CurrentWindow;
8290 ImGuiWindow* window = GetCurrentWindowRead();
8301 ImGuiWindow* window = GetCurrentWindowRead();
8309 static ImGuiColumnsSet* FindOrAddColumnsSet(ImGuiWindow* window, ImGuiID id)
8324 ImGuiWindow* window = GetCurrentWindow();
8388 ImGuiWindow* window = GetCurrentWindow();
8455 ImGuiWindow* window = GetCurrentWindow();
8493 ImGuiWindow* window = g.CurrentWindow;
8574 ImGuiWindow* tooltip_window = g.CurrentWindow;
8653 ImGuiWindow* window = g.CurrentWindow;
8679 ImGuiWindow* window = g.CurrentWindow;
8708 ImGuiWindow* window = g.CurrentWindow;
8797 ImGuiWindow* window = g.CurrentWindow;
8838 ImGuiWindow* window = g.CurrentWindow;
8854 ImGuiWindow* window = g.CurrentWindow;
8882 ImGuiWindow* window = g.CurrentWindow;
8951 void ImGui::MarkIniSettingsDirty(ImGuiWindow* window)
9125 ImGuiWindow* window = g.Windows[i];
9301 static void NodeDrawList(ImGuiWindow* window, ImDrawList* draw_list, const char* label)
9372 static void NodeWindows(ImVector<ImGuiWindow*>& windows, const char* label)
9381 static void NodeWindow(ImGuiWindow* window, const char* label)
9459 ImGuiWindow* window = g.OpenPopupStack[i].Window;
9495 ImGuiWindow* window = g.Windows[n];