Home
last modified time | relevance | path

Searched refs:item_rect (Results 1 – 1 of 1) sorted by relevance

/external/mesa3d/src/imgui/
Dimgui.cpp7540 static void NavScrollToBringItemIntoView(ImGuiWindow* window, const ImRect& item_rect) in NavScrollToBringItemIntoView() argument
7544 if (window_rect.Contains(item_rect)) in NavScrollToBringItemIntoView()
7548 if (window->ScrollbarX && item_rect.Min.x < window_rect.Min.x) in NavScrollToBringItemIntoView()
7550 …window->ScrollTarget.x = item_rect.Min.x - window->Pos.x + window->Scroll.x - g.Style.ItemSpacing.… in NavScrollToBringItemIntoView()
7553 else if (window->ScrollbarX && item_rect.Max.x >= window_rect.Max.x) in NavScrollToBringItemIntoView()
7555 …window->ScrollTarget.x = item_rect.Max.x - window->Pos.x + window->Scroll.x + g.Style.ItemSpacing.… in NavScrollToBringItemIntoView()
7558 if (item_rect.Min.y < window_rect.Min.y) in NavScrollToBringItemIntoView()
7560 …window->ScrollTarget.y = item_rect.Min.y - window->Pos.y + window->Scroll.y - g.Style.ItemSpacing.… in NavScrollToBringItemIntoView()
7563 else if (item_rect.Max.y >= window_rect.Max.y) in NavScrollToBringItemIntoView()
7565 …window->ScrollTarget.y = item_rect.Max.y - window->Pos.y + window->Scroll.y + g.Style.ItemSpacing.… in NavScrollToBringItemIntoView()