AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
Public Member Functions | |
UIMatcher (const _< IMatcher > &matcher) | |
ASet< _< AView > > | toSet () 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. More... | |
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 specified one.
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. |