Lines Matching defs:scroll

115  - Use mouse wheel to scroll.
2787 // (b) So that we can scroll up/down past clipped items. This adds a small O(N) cost to regular navigation requests unfortunately, but it is still limited to one window.
3261 // If a child window has the ImGuiWindowFlags_NoScrollWithMouse flag, we give a chance to scroll its parent (unless either ImGuiWindowFlags_NoInputs or ImGuiWindowFlags_NoScrollbar are also set).
4411 // When browsing a window that has no activable items (scroll only) we keep a highlight on the child
4620 ImVec2 scroll = window->Scroll;
4624 scroll.x = window->ScrollTarget.x - cr_x * (window->SizeFull.x - window->ScrollbarSizes.x);
4628 // 'snap_on_edges' allows for a discontinuity at the edge of scrolling limits to take account of WindowPadding so that scrolling to make the last item visible scroll far enough to see the padding.
4635 scroll.y = target_y - (1.0f - cr_y) * (window->TitleBarHeight() + window->MenuBarHeight()) - cr_y * (window->SizeFull.y - window->ScrollbarSizes.y);
4637 scroll = ImMax(scroll, ImVec2(0.0f, 0.0f));
4640 scroll.x = ImMin(scroll.x, ImGui::GetWindowScrollMaxX(window));
4641 scroll.y = ImMin(scroll.y, ImGui::GetWindowScrollMaxY(window));
4643 return scroll;
6036 window->DC.CursorMaxPos.x += window->Scroll.x; // SizeContents is generally computed based on CursorMaxPos which is affected by scroll position, so we need to apply our change to it.
6043 window->DC.CursorMaxPos.y += window->Scroll.y; // SizeContents is generally computed based on CursorMaxPos which is affected by scroll position, so we need to apply our change to it.
7755 // Update PageUp/PageDown scroll
7777 // *Fallback* manual-scroll with Nav directional keys when window has no navigable item
7779 const float scroll_speed = ImFloor(window->CalcFontSize() * 100 * g.IO.DeltaTime + 0.5f); // We need round the scrolling speed because sub-pixel scroll isn't reliably supported.
7788 // *Normal* Manual scroll with NavScrollXXX keys
7873 // Estimate upcoming scroll so we can offset our result position so mouse position can be applied immediately after in NavUpdate()
7878 // Also scroll parent window to keep us into view if necessary (we could/should technically recurse back the whole the parent hierarchy).
7907 // Fallback manual-scroll when window has no navigable item