AUI Framework
master
Cross-platform base for C++ UI apps
|
Public Member Functions# | |
UIMatcher (const _< IMatcher > &matcher) | |
ASet< _< AView > > | toSet () const |
AVector< _< AView > > | toVector () const |
_< AView > | one () const |
UIMatcher & | includeInvisibleViews () |
template<class Action> | |
UIMatcher & | perform (Action &&action) |
UIMatcher | findNearestTo (UIMatcher matcher) |
Finds the nearest view to the specified one. | |
template<class Assertion> | |
UIMatcher & | check (Assertion &&assertion, const char *msg="no msg") |
UIMatcher | parent () const |
UIMatcher | allChildren () const |
UIMatcher | operator| (const UIMatcher &matcher) const |
UIMatcher | operator& (const UIMatcher &matcher) const |
Static Public Member Functions# | |
static UIMatcher * | current () |
Finds the nearest view to the bottom right corner of the specified view. The bottom right corner is chosen in order to simulate human eye scanning (which is from top-left to bottom-right).
Useful when finding fields by their labels:
matcher | UIMatcher of a view to find the nearest to. The UIMatcher is expected to match only one view. |