Lines Matching defs:horizontal
724 // - We handle both horizontal and vertical scrollbars, which makes the terminology not ideal.
730 const bool horizontal = (direction == ImGuiLayoutType_Horizontal);
735 bool other_scrollbar = (horizontal ? window->ScrollbarY : window->ScrollbarX);
739 ImRect bb = horizontal
742 if (!horizontal)
760 if (horizontal)
768 float scrollbar_size_v = horizontal ? bb.GetWidth() : bb.GetHeight();
769 float scroll_v = horizontal ? window->Scroll.x : window->Scroll.y;
770 float win_size_avail_v = (horizontal ? window->SizeFull.x : window->SizeFull.y) - other_scrollbar_size_w;
771 float win_size_contents_v = horizontal ? window->SizeContents.x : window->SizeContents.y;
791 float scrollbar_pos_v = horizontal ? bb.Min.x : bb.Min.y;
792 float mouse_pos_v = horizontal ? g.IO.MousePos.x : g.IO.MousePos.y;
793 float* click_delta_to_grab_center_v = horizontal ? &g.ScrollbarClickDeltaToGrabCenter.x : &g.ScrollbarClickDeltaToGrabCenter.y;
818 if (horizontal)
835 if (horizontal)
5041 // Fill horizontal space.
5580 window->DC.MenuBarOffset.x = window->DC.CursorPos.x - window->MenuBarRect().Min.x; // Save horizontal position so next append can reuse it. This is kinda equivalent to a per-layer CursorPos.
5614 // Menu inside an horizontal menu bar