![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "stage/model/element-access.hpp"
Interface: access UI elements by navigating the UI topology.
Definition at line 77 of file element-access.hpp.
Classes | |
| struct | TypeConverter |
Public Member Functions | |
| virtual | ~ElementAccess () |
| this is an interface | |
| template<class TAR > | |
| lib::Result< TAR & > | access (UICoord const &destination) |
| Navigate the UI topology to access the designated component. | |
| UICoord | locate_or_create (UICoord const &destination, size_t limitCreation=LUMIERA_MAX_ORDINAL_NUMBER) |
| Navigate to the designated component, possibly create the element and parents. | |
Protected Types | |
| using | RawResult = lib::Variant< Types< model::Tangible *, Gtk::Widget * > > |
Protected Member Functions | |
| virtual RawResult | performAccessTo (UICoord::Builder &, size_t limitCreation)=0 |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
| ~NonCopyable ()=default | |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable const &)=delete | |
| NonCopyable & | operator= (NonCopyable const &)=delete |
|
inlinevirtual |
this is an interface
Definition at line 82 of file element-access.hpp.
|
protected |
Definition at line 94 of file element-access.hpp.
|
inline |
Navigate the UI topology to access the designated component.
| TAR | type of result element expected at the designated location |
bool(false) Definition at line 163 of file element-access.hpp.
References Variant< TYPES >::accept(), ElementAccess::performAccessTo(), UICoord::rebuild(), and ElementAccess::TypeConverter< TAR >::result.
Here is the call graph for this function:
|
inline |
Navigate to the designated component, possibly create the element and parents.
| 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. |
Definition at line 181 of file element-access.hpp.
References ElementAccess::performAccessTo(), and UICoord::rebuild().
Here is the call graph for this function:
|
protectedpure virtual |
drill down according to coordinates, maybe create element
Implemented in ElemAccessDir, and TestElementAccess.
Referenced by ElementAccess::access(), and ElementAccess::locate_or_create().
Here is the caller graph for this function:
Inheritance diagram for ElementAccess:
Collaboration diagram for ElementAccess: