Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/SListView
Description
Selects the boundary item that is spatially nearest to the source widget stored in the navigation context on the cross axis.
Pass 1 - rendered boundary row: iterates the boundary line items, measures each rendered widget's cross-axis center and returns the closest one. Pass 2 - off-screen fallback: divides the list's cross-axis extent by NumItemsPerLine and maps the source center to a column index. Skipped for single-column lists.
| Name | FindProximateBoundaryItem |
| Type | function |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Views/SListView.h |
| Include Path | #include "Widgets/Views/SListView.h" |
int32 FindProximateBoundaryItem
(
TSharedPtr < SWidget > SourceWidget,
EUINavigation InNavigationType,
const TArrayView < const ItemType > & ItemsSourceRef,
int32 NumItems,
int32 NumItemsPerLine,
bool bNavForward
) const
Best boundary index, or BoundaryLineStart on failure.
Parameters
| Name | Remarks |
|---|---|
| SourceWidget | Widget that held focus before navigation (used for cross-axis proximity measurement). |
| InNavigationType | The navigation direction (Down, Up, Left, Right) used to determine the comparison axis. |
| ItemsSourceRef | View of the full item array. |
| NumItems | Cached count of items. |
| NumItemsPerLine | Number of items per row/column. |
| bNavForward | True when navigating Down/Right (boundary = first row), false for Up/Left (boundary = last row). |