Lumiera
0.pre.03
»edit your freedom«
|
#include "stage/interact/ui-coord-resolver.hpp"
Interface to discover a backing structure for the purpose of path navigation and resolution.
UICoord are meant to designate a position within the logical structure of an UI – yet in fact they may be resolved against any tree-like topological structure, which can be queried through this interface.
Definition at line 191 of file ui-coord-resolver.hpp.
Public Types | |
using | ChildIter = decltype(TreeStructureNavigator::buildIterator(0)) |
Public Member Functions | |
virtual | ~LocationQuery () |
this is an interface | |
virtual Literal | determineAnchor (UICoord const &path)=0 |
make the real anchor point explicit. More... | |
virtual size_t | determineCoverage (UICoord const &path)=0 |
evaluate to what extent a UIcoord spec matches the actual UI More... | |
virtual ChildIter | getChildren (UICoord const &path, size_t pos)=0 |
get the sequence of child components at a designated position in the actual UI More... | |
Static Public Attributes | |
static lib::Depend< LocationQuery > | service |
access point to global LocationQuery service implementation More... | |
make the real anchor point explicit.
path | an explicit UICoord spec to be anchored in the actual UI |
currentWindow
and firstWindow
, again in the form of an explicit window name Implemented in GenNodeLocationQuery, and Navigator.
Referenced by UICoordResolver::attempt_trivialResolution().
|
pure virtual |
evaluate to what extent a UIcoord spec matches the actual UI
Implemented in GenNodeLocationQuery, and Navigator.
Referenced by UICoordResolver::attempt_trivialResolution(), and UICoordResolver::extend().
|
pure virtual |
get the sequence of child components at a designated position in the actual UI
path | an explicit UIcoord spec, expected to be anchored and at least partially covered within the current configuration and state of the UI |
pos | depth where the given path shall be evaluated, starting with 0 at window level |
pos == 0
, then the path is not evaluated and matched at all, rather just the current list of top-level windows is returned. error::State | when navigating the given path touches a non-existing element |
Implemented in GenNodeLocationQuery, and Navigator.
|
static |
access point to global LocationQuery service implementation
storage for the global LocationQuery service access point
Definition at line 197 of file ui-coord-resolver.hpp.
Referenced by LocationQuery::~LocationQuery().