Lumiera  0.pre.03
»edit your freedom«
test-element-access.hpp File Reference

Go to the source code of this file.

Description

Unit test helper for access to UI elements without actually running an UI.

This allows to cover functionality for resolving UI-coordinates against an UI topology and accessing or creating elements. Obviously, only faked UI widgets can be returned, but this does not matter for those features anyway.

Note
as of 4/2018 this is a first draft and WIP-WIP-WIP
Todo:
right now this test is braindead; the idea is to extend it similar to the GenNodeLocationQuery eventually, so to mimic the way an actual implementation would drill down into the UI topology. Yet at the moment (4/2018) we are still far from implementing anything in this regard; we just need the interface... ///////////////////////////////TICKET #1134
See also
ElementAccess_test usage example
elem-access-dir.hpp real implementation

Definition in file test-element-access.hpp.

#include "lib/error.hpp"
#include "stage/model/element-access.hpp"
#include "stage/interact/ui-coord.hpp"
#include "test/mock-elm.hpp"
#include "lib/symbol.hpp"
#include <string>
#include <memory>

Classes

struct  DummyTab
 
struct  DummyView
 
class  DummyWidget
 
class  TestElementAccess
 Mock implementation of the model::ElementAccess interface for testing without actual UI. More...
 

Namespaces

 stage
 Lumiera GTK UI implementation root.