Navigation
API > API/Runtime > API/Runtime/Slate
Shared navigation context written by SListView::OnNavigation and read by both SListView::OnNavigation (entry with no selection) and SCommonListView::OnFocusReceived.
Feature 1 (cross-list): written when a list escapes its boundary with bEnableProximateEntryNavigation = true, consumed by the receiving list to select the spatially nearest boundary item instead of always defaulting to item 0.
Feature 2 (intra-entry): the SourceWidget field is also used by SCommonListView::OnNavigation to seed FindNextFocusableWidget when routing focus into a non-CommonButtonBase entry. Navigation context payload written by SListView::OnNavigation when escaping a boundary. Set via FSlateApplication::SetPendingNavigationContext; read during OnFocusReceived on the destination list. Cleared automatically at the end of each navigation event.
| Name | FListViewNavigationContext |
| Type | struct |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Views/SListView.h |
| Include Path | #include "Widgets/Views/SListView.h" |
Syntax
struct FListViewNavigationContext : public ISlateMetaData
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| NavigationType | EUINavigation | Navigation direction that triggered the escape. | Widgets/Views/SListView.h | |
| SourceWidget | TWeakPtr< SWidget > | The widget that held focus on the departing list when it escaped its boundary. | Widgets/Views/SListView.h |
Functions
Public Virtual
Overridden from ISlateMetaData
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsOfTypeImpl
(
const FName& Type |
Widgets/Views/SListView.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const FName & GetTypeId() |
Widgets/Views/SListView.h |