Lumiera  0.pre.03
»edit your freedom«
TestElementAccess Class Reference

#include "/Werk/devel/lumi/tests/stage/test/test-element-access.hpp"

Description

Mock implementation of the model::ElementAccess interface for testing without actual UI.

See also
ElementAccess_test

Definition at line 106 of file test-element-access.hpp.

Public Member Functions

RawResult performAccessTo (UICoord::Builder &target, size_t) override
 
- Public Member Functions inherited from ElementAccess
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. More...
 
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. More...
 

Public Attributes

UICoord existingPath
 the next query will fail unless it presents this Path
 
std::unique_ptr< model::Tangibleresponse
 ...and if acceptable, we record the last answer here
 

Additional Inherited Members

- Protected Types inherited from ElementAccess
using RawResult = lib::Variant< Types< model::Tangible *, Gtk::Widget * > >
 

Member Function Documentation

◆ performAccessTo()

RawResult performAccessTo ( UICoord::Builder ,
size_t  limitCreation 
)
inlineoverridevirtual

drill down according to coordinates, maybe create element

Implements ElementAccess.

Definition at line 128 of file test-element-access.hpp.

References UICoord::Builder::uiCoord().

+ Here is the call graph for this function:
+ Inheritance diagram for TestElementAccess:
+ Collaboration diagram for TestElementAccess:

The documentation for this class was generated from the following file: