Navigation
API > API/Runtime > API/Runtime/ApplicationCore > API/Runtime/ApplicationCore/IAccessibleWidget
Description
Returns the first instance of a previous widget in the accessible hierarchy from a source widget that satisfies a search criteria. If the passed in source widget does not have any previous widgets or if there are no previous widgets that satisfy the search criteria, nullptr is returned. The search criteria can be either a functor or lambda that acts as a predicate. It must return a bool and take in a const TSharedRef
| Name | SearchForPreviousWidgetInHierarchyFrom |
| Type | function |
| Header File | /Engine/Source/Runtime/ApplicationCore/Public/GenericPlatform/Accessibility/GenericAccessibleInterfaces.h |
| Include Path | #include "GenericPlatform/Accessibility/GenericAccessibleInterfaces.h" |
template<typename PredicateType>
static TSharedPtr < IAccessibleWidget > SearchForPreviousWidgetInHierarchyFrom
(
const TSharedRef < IAccessibleWidget > & Source,
PredicateType Predicate
)
The first instance of a previous widget from the source widget that satisfies the search criteria.
Parameters
| Name | Remarks |
|---|---|
| Source | The accessible widget to start searching from. |
| SearchCriteria | A predicate that takes a const TSharedRef |