#include "stage/model/element-access.hpp"
Interface: access UI elements by navigating the UI topology.
- See also
- stage::interact::Navigator
-
ElementAccess_test
Definition at line 86 of file element-access.hpp.
◆ access()
Navigate the UI topology to access the designated component.
- Template Parameters
-
TAR | type of result element expected at the designated location |
- Returns
- suitably converted direct (language) reference to the desired element wrapped as result proxy
- Note
- when access was not possible because either the element does not exist, or is not convertible to the desired target type, the result proxy is empty and convertible to
bool(false)
Definition at line 172 of file element-access.hpp.
◆ locate_or_create()
UICoord locate_or_create |
( |
UICoord const & |
destination, |
|
|
size_t |
limitCreation = LUMIERA_MAX_ORDINAL_NUMBER |
|
) |
| |
|
inline |
Navigate to the designated component, possibly create the element and parents.
- Parameters
-
limitCreation | limit on the number of similar UI elements that can be created within a scope. A value of zero prohibits creating of new elements. |
- Returns
- location of the actual element to use, as UI-coordinates.
- Note
- when access was not possible because the element could not been created, the indicated location returned is an empty coordinate spec.
Definition at line 190 of file element-access.hpp.
◆ performAccessTo()
The documentation for this class was generated from the following file: