Just like a WidgetPath, but uses weak pointers and does not store geometry. 更多...
#include <WidgetPath.h>
类 | |
| struct | EInterruptedPathHandling |
| Should interrupted paths truncate or return an invalid path? 更多... | |
Public 成员函数 | |
| FWeakWidgetPath (const FWidgetPath &InWidgetPath=FWidgetPath()) | |
| Construct a weak widget path from a widget path. 更多... | |
| TWeakPtr< SWidget > | GetLastWidget () const |
| Get the last (leaf-most) widget in this path; assumes path is valid | |
| bool | IsValid () const |
| A valid path has at least one widget in it | |
| FWidgetPath | ToNextFocusedPath (EUINavigation NavigationType) const |
| FWidgetPath | ToNextFocusedPath (EUINavigation NavigationType, const FNavigationReply &NavigationReply, const FArrangedWidget &RuleWidget) const |
| FWidgetPath | ToWidgetPath (EInterruptedPathHandling::Type InterruptedPathHandling=EInterruptedPathHandling::Truncate, const FPointerEvent *PointerEvent=nullptr, const EVisibility VisibilityFilter=EVisibility::Visible) const |
| Make a non-weak WidgetPath out of this WeakWidgetPath. 更多... | |
| EPathResolutionResult::Result | ToWidgetPath (FWidgetPath &WidgetPath, EInterruptedPathHandling::Type InterruptedPathHandling=EInterruptedPathHandling::Truncate, const FPointerEvent *PointerEvent=nullptr, const EVisibility VisibilityFilter=EVisibility::Visible) const |
| Make a non-weak WidgetPath out of this WeakWidgetPath. 更多... | |
| TSharedRef< FWidgetPath > | ToWidgetPathRef (EInterruptedPathHandling::Type InterruptedPathHandling=EInterruptedPathHandling::Truncate, const FPointerEvent *PointerEvent=nullptr, const EVisibility VisibilityFilter=EVisibility::Visible) const |
| Make a non-weak WidgetPath out of this WeakWidgetPath. 更多... | |
Just like a WidgetPath, but uses weak pointers and does not store geometry.
| FWeakWidgetPath::FWeakWidgetPath | ( | const FWidgetPath & | InWidgetPath = FWidgetPath() | ) |
Construct a weak widget path from a widget path.
Defaults to an invalid path.
| FWidgetPath FWeakWidgetPath::ToNextFocusedPath | ( | EUINavigation | NavigationType | ) | const |
| NavigationType | Direction in which to move the focus (only for use with EUINavigation::Next and EUINavigation::Previous). |
| FWidgetPath FWeakWidgetPath::ToNextFocusedPath | ( | EUINavigation | NavigationType, |
| const FNavigationReply & | NavigationReply, | ||
| const FArrangedWidget & | RuleWidget | ||
| ) | const |
| NavigationType | Direction in which to move the focus (only for use with EUINavigation::Next and EUINavigation::Previous). |
| NavigationReply | The NavigationReply that the RuleWidget provided during the bubbled navigation event |
| RuleWidget | The ArrangedWidget or the widget that provided the NavigationReply |
| FWidgetPath FWeakWidgetPath::ToWidgetPath | ( | EInterruptedPathHandling::Type | InterruptedPathHandling = EInterruptedPathHandling::Truncate, |
| const FPointerEvent * | PointerEvent = nullptr, |
||
| const EVisibility | VisibilityFilter = EVisibility::Visible |
||
| ) | const |
Make a non-weak WidgetPath out of this WeakWidgetPath.
Do this by computing all the relevant geometries and converting the weak pointers to TSharedPtr.
| InterruptedPathHandling | Should interrupted paths result in a truncated path or an invalid path |
| EPathResolutionResult::Result FWeakWidgetPath::ToWidgetPath | ( | FWidgetPath & | WidgetPath, |
| EInterruptedPathHandling::Type | InterruptedPathHandling = EInterruptedPathHandling::Truncate, |
||
| const FPointerEvent * | PointerEvent = nullptr, |
||
| const EVisibility | VisibilityFilter = EVisibility::Visible |
||
| ) | const |
Make a non-weak WidgetPath out of this WeakWidgetPath.
Do this by computing all the relevant geometries and converting the weak pointers to TSharedPtr.
| WidgetPath | The non-weak path is returned via this. |
| InterruptedPathHandling | Should interrupted paths result in a truncated path or an invalid path. |
| TSharedRef< FWidgetPath > FWeakWidgetPath::ToWidgetPathRef | ( | EInterruptedPathHandling::Type | InterruptedPathHandling = EInterruptedPathHandling::Truncate, |
| const FPointerEvent * | PointerEvent = nullptr, |
||
| const EVisibility | VisibilityFilter = EVisibility::Visible |
||
| ) | const |
Make a non-weak WidgetPath out of this WeakWidgetPath.
Do this by computing all the relevant geometries and converting the weak pointers to TSharedPtr.
| InterruptedPathHandling | Should interrupted paths result in a truncated path or an invalid path |