![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "stage/model/w-link.hpp"
Managed link to a sigc::trackable UI widget, without taking ownership.
Automatically installs a callback to switch this link into detached state when the target (widget) is destroyed.
| TAR | the actual target widget type, which can be forward declared, until the point where the widget is actually constructed or attached. This target type must derive from sigc::trackable |
Definition at line 79 of file w-link.hpp.
Public Member Functions | |
| ~WLink () | |
| WLink () noexcept | |
| WLink (TAR &targetWidget) | |
| WLink (WLink const &r) | |
| WLink (WLink &&rr) | |
| WLink & | operator= (WLink other) |
| operator bool () const | |
| TAR & | operator* () const |
| TAR * | operator-> () const |
| bool | isValid () const |
| bool | isActive () const |
| void | clear () |
| detach and deactivate this link | |
| void | connect (TAR &otherTarget) |
| (re)connect this smart link to the given target. | |
Friends | |
| void | swap (WLink &l, WLink &r) |
| swap the pointees, including callback registration. | |
Private Member Functions | |
| void | __ensureAlive () const |
| TAR * | attachTo (TAR &target) |
Private Attributes | |
| TAR * | widget_ |
|
inline |
Definition at line 86 of file w-link.hpp.
References WLink< TAR >::clear(), and ERROR_LOG_AND_IGNORE.
Here is the call graph for this function:
|
inlinenoexcept |
Definition at line 93 of file w-link.hpp.
|
inlineexplicit |
Definition at line 98 of file w-link.hpp.
Definition at line 102 of file w-link.hpp.
Definition at line 106 of file w-link.hpp.
| other |
Definition at line 113 of file w-link.hpp.
References WLink< TAR >::swap.
|
inlineexplicit |
Definition at line 141 of file w-link.hpp.
References WLink< TAR >::widget_.
|
inline |
Definition at line 147 of file w-link.hpp.
References WLink< TAR >::__ensureAlive(), and WLink< TAR >::widget_.
Here is the call graph for this function:
|
inline |
Definition at line 154 of file w-link.hpp.
References WLink< TAR >::__ensureAlive(), and WLink< TAR >::widget_.
Here is the call graph for this function:
|
inline |
Definition at line 161 of file w-link.hpp.
|
inline |
Definition at line 162 of file w-link.hpp.
|
inline |
detach and deactivate this link
Definition at line 170 of file w-link.hpp.
References WLink< TAR >::widget_.
Referenced by WLink< TAR >::~WLink(), and WLink< TAR >::connect().
Here is the caller graph for this function:
|
inline |
(re)connect this smart link to the given target.
Any previously existing link is detached beforehand
sigc::trackable is sane) Might leave this WLink in disconnected state when throwing | error::External | when registration with sigc::trackable fails |
Definition at line 184 of file w-link.hpp.
References WLink< TAR >::attachTo(), WLink< TAR >::clear(), and WLink< TAR >::widget_.
Referenced by PlayPanel::accessViewer(), and WLink_test::verify_reconnect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
Definition at line 193 of file w-link.hpp.
References LERR_, and WLink< TAR >::widget_.
Referenced by WLink< TAR >::operator*(), and WLink< TAR >::operator->().
Here is the caller graph for this function:
|
inlineprivate |
installs the necessary callback to detach this link in case the target is destroyed
Definition at line 205 of file w-link.hpp.
References WLink< TAR >::widget_.
Referenced by WLink< TAR >::connect().
Here is the caller graph for this function:
|
private |
Definition at line 82 of file w-link.hpp.
Referenced by WLink< TAR >::__ensureAlive(), WLink< TAR >::attachTo(), WLink< TAR >::clear(), WLink< TAR >::connect(), WLink< TAR >::operator bool(), WLink< TAR >::operator*(), and WLink< TAR >::operator->().
swap the pointees, including callback registration.
Definition at line 128 of file w-link.hpp.
Referenced by WLink< TAR >::operator=().
Inheritance diagram for WLink< TAR >:
Collaboration diagram for WLink< TAR >: