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