![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <WidgetPath.h>
Public Attributes | |
| FArrangedChildren | Widgets |
| TSharedPtr< SWindow > | TopLevelWindow |
A widget path is a vertical slice through the tree. The canonical form for widget paths is "leafmost last". The top-level window always resides at index 0. A widget path also contains a reference to a top-level SWindow that contains all the widgets in the path. The window is needed for its ability to determine its own geometry, from which the geometries of the rest of the widget can be determined.
| FWidgetPath::FWidgetPath | ( | ) |
| FWidgetPath::FWidgetPath | ( | TSharedPtr< SWindow > | InTopLevelWindow, |
| const FArrangedChildren & | InWidgetPath | ||
| ) |
| FWidgetPath::FWidgetPath | ( | TArrayView< FWidgetAndPointer > | InWidgetsAndPointers | ) |
|
inline |
Extend the current path such that it reaches some widget that qualifies as a Match The widget to match must be a descendant of the last widget currently in the path.
| Matcher | Some struct that has a "bool IsMatch( const TSharedRef<const SWidget>& InWidget ) const" method |
| VisibilityFilter | Widgets must have this type of visibility to be included the path |
| SearchPurpose | What is the purpose for extending the path |
| TOptional< FArrangedWidget > FWidgetPath::FindArrangedWidget | ( | TSharedRef< const SWidget > | WidgetToFind | ) | const |
| PRAGMA_DISABLE_DEPRECATION_WARNINGS TOptional< FWidgetAndPointer > FWidgetPath::FindArrangedWidgetAndCursor | ( | TSharedRef< const SWidget > | WidgetToFind | ) | const |
|
inline |
Generate a path from FromWidget to WidgetToFind. The path will not include FromWidget.
| Matcher | Some struct that has a "bool IsMatch( const TSharedRef<const SWidget>& InWidget ) const" method |
| FromWidget | Widget from which we a building a path.AddItem* |
| VisibilityFilter | Widgets must have this type of visibility to be included the path |
| SearchPurpose | What is the purpose for generating the path |
| TSharedRef< SWindow > FWidgetPath::GetDeepestWindow | ( | ) | const |
Get the deepest (bottom-most) window in this path; assumes path is valid.
|
inline |
Get the last (leaf-most) widget in this path; assumes path is valid
| FWidgetPath FWidgetPath::GetPathDownTo | ( | TSharedRef< const SWidget > | MarkerWidget | ) | const |
| MarkerWidget | Copy the path up to and including this widget |
|
inline |
Get the virtual representation of the mouse at each level in the widget path.
| PRAGMA_ENABLE_DEPRECATION_WARNINGS TSharedRef< SWindow > FWidgetPath::GetWindow | ( | ) | const |
Get the first (top-most) widget in this path, which is always a window; assumes path is valid.
| bool FWidgetPath::IsValid | ( | ) | const |
A valid path has at least one widget in it
| bool FWidgetPath::MoveFocus | ( | int32 | PathLevel, |
| EUINavigation | NavigationType, | ||
| bool | bSearchFromPathWidget = true |
||
| ) |
Move focus either forward on backward in the path level specified by PathLevel. That is, this movement of focus will modify the subtree under Widgets(PathLevel).
| PathLevel | The level in this WidgetPath whose focus to move. |
| MoveDirectin | Move focus forward or backward? |
| bSearchFromPathWidget | if set false the search for the next will simply start at the beginning or end of the list of children dependant on the direction |
| FString FWidgetPath::ToString | ( | ) | const |
Builds a string representation of the widget path.
| TSharedPtr<SWindow> FWidgetPath::TopLevelWindow |
The top level window of this widget path.
| FArrangedChildren FWidgetPath::Widgets |
The widgets that make up the widget path, the first item is the root widget, the end is the widget this path was built for.