engine
 
载入中...
搜索中...
未找到
类 | Public 成员函数 | 所有成员列表
FWeakWidgetPath类 参考

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::FWeakWidgetPath ( const FWidgetPath &  InWidgetPath = FWidgetPath())

Construct a weak widget path from a widget path.

Defaults to an invalid path.

成员函数说明

◆ ToNextFocusedPath() [1/2]

FWidgetPath FWeakWidgetPath::ToNextFocusedPath ( EUINavigation  NavigationType) const
参数
NavigationTypeDirection in which to move the focus (only for use with EUINavigation::Next and EUINavigation::Previous).
返回
The widget path to the resulting widget

◆ ToNextFocusedPath() [2/2]

FWidgetPath FWeakWidgetPath::ToNextFocusedPath ( EUINavigation  NavigationType,
const FNavigationReply &  NavigationReply,
const FArrangedWidget &  RuleWidget 
) const
参数
NavigationTypeDirection in which to move the focus (only for use with EUINavigation::Next and EUINavigation::Previous).
NavigationReplyThe NavigationReply that the RuleWidget provided during the bubbled navigation event
RuleWidgetThe ArrangedWidget or the widget that provided the NavigationReply
返回
The widget path to the resulting widget

◆ ToWidgetPath() [1/2]

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.

参数
InterruptedPathHandlingShould interrupted paths result in a truncated path or an invalid path

◆ ToWidgetPath() [2/2]

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.

参数
WidgetPathThe non-weak path is returned via this.
InterruptedPathHandlingShould interrupted paths result in a truncated path or an invalid path.
返回
Whether the path is truncated or live - a live path refers to a widget that is currently active and visible, a widget with a truncated path is not.

◆ ToWidgetPathRef()

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.

参数
InterruptedPathHandlingShould interrupted paths result in a truncated path or an invalid path

该类的文档由以下文件生成: