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