Navigation
API > API/Runtime > API/Runtime/ApplicationCore > API/Runtime/ApplicationCore/IAccessibleWidget
Description
Returns the first instance of an ancestor from a source widget that satisfies a search criteria. If the passed in source widget does not have any ancestors or if there are no ancestors 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 | SearchForAncestorFrom |
| 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 > SearchForAncestorFrom
(
const TSharedRef < IAccessibleWidget > & Source,
PredicateType Predicate
)
The first instance of an ancestor 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 |