Lumiera
0.pre.03
»edit your freedom«
|
Go to the source code of this file.
A smart link to an GTK widget with automatic disconnection.
Allows to hold a connection to a trackable without taking ownership. The link is statefull, can be reconnected, and automatically transitions into disconnected state when the target dies. The link state can be tested by bool
conversion. WLink objects are fully copyable, and each copy has its own attachment state and can be reconnected independently.
The purpose of WLink is to support collaborations between controllers and widgets or between widgets. Whenever some logic works with or relies on some other UI entity – which it might even _"allocate"_ – without taking ownership, the relation can be implemented with a WLink.
Definition in file w-link.hpp.
#include "lib/error.hpp"
#include "lib/format-string.hpp"
#include <type_traits>
#include <sigc++/trackable.h>
Classes | |
class | WLink< TAR > |
Managed link to a sigc::trackable UI widget, without taking ownership. More... | |
Namespaces | |
stage | |
Lumiera GTK UI implementation root. | |
stage::model | |
The Lumiera GTK-GUI uses a thin proxy layer data model on top of the actual "high-level-model", which lives in the Steam-Layer below. | |