Searched refs:center_y_ratio (Results 1 - 4 of 4) sorted by relevance
| /xsrc/external/mit/MesaLib.old/dist/src/imgui/ |
| H A D | imgui.h | 295 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 D | imgui.cpp | 6419 void ImGui::SetScrollFromPosY(float local_y, float center_y_ratio) argument 6423 IM_ASSERT(center_y_ratio >= 0.0f && center_y_ratio <= 1.0f); 6425 window->ScrollTargetCenterRatio.y = center_y_ratio; 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) 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. 6434 SetScrollFromPosY(target_y, center_y_ratio);
|
| /xsrc/external/mit/MesaLib/dist/src/imgui/ |
| H A D | imgui.h | 295 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 D | imgui.cpp | 6419 void ImGui::SetScrollFromPosY(float local_y, float center_y_ratio) argument 6423 IM_ASSERT(center_y_ratio >= 0.0f && center_y_ratio <= 1.0f); 6425 window->ScrollTargetCenterRatio.y = center_y_ratio; 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) 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. 6434 SetScrollFromPosY(target_y, center_y_ratio);
|
Completed in 55 milliseconds