Home
last modified time | relevance | path

Searched refs:center_y_ratio (Results 1 - 5 of 5) sorted by relevance

/third_party/skia/third_party/externals/imgui/
H A Dimgui.cpp7974 float center_y_ratio = window->ScrollTargetCenterRatio.y; in CalcNextScrollFromScrollTargetAndClamp() local
7980 scroll_target_y = CalcScrollEdgeSnap(scroll_target_y, snap_y_min, snap_y_max, window->ScrollTargetEdgeSnapDist.y, center_y_ratio); in CalcNextScrollFromScrollTargetAndClamp()
7982 scroll.y = scroll_target_y - center_y_ratio * (window->SizeFull.y - decoration_total_height); in CalcNextScrollFromScrollTargetAndClamp()
8140 void ImGui::SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio) in SetScrollFromPosY() argument
8142 IM_ASSERT(center_y_ratio >= 0.0f && center_y_ratio <= 1.0f); in SetScrollFromPosY()
8146 window->ScrollTargetCenterRatio.y = center_y_ratio; in SetScrollFromPosY()
8156 void ImGui::SetScrollFromPosY(float local_y, float center_y_ratio) in SetScrollFromPosY() argument
8159 SetScrollFromPosY(g.CurrentWindow, local_y, center_y_ratio); in SetScrollFromPosY()
8175 // center_y_ratio
8176 SetScrollHereY(float center_y_ratio) SetScrollHereY() argument
[all...]
H A Dimgui.h397 IMGUI_API void SetScrollHereY(float center_y_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead.
399 IMGUI_API void SetScrollFromPosY(float local_y, float center_y_ratio = 0.5f); // adjust scrolling amount to make given position visible. Generally GetCursorStartPos() + offset to compute a valid position.
H A Dimgui_internal.h2435 IMGUI_API void SetScrollFromPosY(ImGuiWindow* window, float local_y, float center_y_ratio);
/third_party/mesa3d/src/imgui/
H A Dimgui.h295 IMGUI_API void SetScrollHereY(float center_y_ratio = 0.5f); // adjust scrolling amount to make current cursor position visible. center_y_ratio=0.0: top, 0.5: center, 1.0: bottom. When using to make a "default/current item" visible, consider using SetItemDefaultFocus() instead.
296 IMGUI_API void SetScrollFromPosY(float local_y, float center_y_ratio = 0.5f); // adjust scrolling amount to make given position valid. use GetCursorPos() or GetCursorStartPos()+offset to get valid positions.
H A Dimgui.cpp6419 void ImGui::SetScrollFromPosY(float local_y, float center_y_ratio) in SetScrollFromPosY() argument
6423 IM_ASSERT(center_y_ratio >= 0.0f && center_y_ratio <= 1.0f); in SetScrollFromPosY()
6425 window->ScrollTargetCenterRatio.y = center_y_ratio; in SetScrollFromPosY()
6428 // center_y_ratio: 0.0f top of last item, 0.5f vertical center of last item, 1.0f bottom of last item.
6429 void ImGui::SetScrollHereY(float center_y_ratio) in SetScrollHereY() argument
6433 target_y += (window->DC.PrevLineSize.y * center_y_ratio) + (GImGui->Style.ItemSpacing.y * (center_y_ratio - 0.5f) * 2.0f); // Precisely aim above, in the middle or below the last line. in SetScrollHereY()
6434 SetScrollFromPosY(target_y, center_y_ratio); in SetScrollHereY()

Completed in 84 milliseconds