Move-only scoped disconnect token; never owns a tree or widget. Disconnect/destruction may run on any thread. It prevents future callback admission; an already admitted callback finishes on UI. Captures are reclaimed on UI at the next collecting UI operation or router destruction. Tokens may safely outlive the router.
More...
#include <action.hpp>
|
|
| ActionBinding ()=default |
| | Empty disconnected token.
|
|
| ~ActionBinding () |
| | Disconnect without invoking user code.
|
| | ActionBinding (ActionBinding &&other) noexcept |
| | Transfer disconnect responsibility.
|
| ActionBinding & | operator= (ActionBinding &&other) noexcept |
| | Disconnect old registration, then transfer.
|
|
| ActionBinding (const ActionBinding &)=delete |
|
ActionBinding & | operator= (const ActionBinding &)=delete |
|
void | disconnect () noexcept |
| | Idempotent; active calls retain their captures until return.
|
|
|
class | EventRouter |
|
struct | detail::EventRouterAccess |
Move-only scoped disconnect token; never owns a tree or widget. Disconnect/destruction may run on any thread. It prevents future callback admission; an already admitted callback finishes on UI. Captures are reclaimed on UI at the next collecting UI operation or router destruction. Tokens may safely outlive the router.
◆ ActionBinding()
| portals::ActionBinding::ActionBinding |
( |
ActionBinding && | other | ) |
|
|
noexcept |
Transfer disconnect responsibility.
- Parameters
-
| other | Token to empty and transfer into this token; valid on any thread. |
◆ operator=()
Disconnect old registration, then transfer.
- Parameters
-
| other | Token to empty and transfer after disconnecting this registration; self-assignment is a no-op. |
- Returns
- This token after the transfer.
The documentation for this class was generated from the following file: