|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Weak UI-affine action identity; owner retirement never leaves an executable callback. More...
#include <ui_action.hpp>
Public Member Functions | |
| ActionRef ()=default | |
| Empty weak identity; operations return CLOSED. | |
| std::expected< std::shared_ptr< const ActionMetadata >, TreeError > | snapshot () const |
| EditorCommandResult | set (ActionMetadata metadata, std::source_location origin=std::source_location::current()) const |
| EditorCommandResult | rebind (Action action, std::source_location origin=std::source_location::current()) const |
| EditorCommandResult | remove (std::source_location origin=std::source_location::current()) const |
| EditorCommandResult | invoke (ActionInvocation invocation={}, std::source_location origin=std::source_location::current()) const |
| EditorCommandResult | operator() (const KeyEvent &event) const |
| EditorCommandResult | operator() (const ClickEvent &event) const |
Friends | |
| class | ActionSet |
| struct | detail::ActionAccess |
Weak UI-affine action identity; owner retirement never leaves an executable callback.
| EditorCommandResult portals::ui::ActionRef::invoke | ( | ActionInvocation | invocation = {}, |
| std::source_location | origin = std::source_location::current() ) const |
| invocation | Explicit original input context. |
| origin | Invocation site retained for an unreported callback error. |
| EditorCommandResult portals::ui::ActionRef::operator() | ( | const ClickEvent & | event | ) | const |
| event | Existing button activation. |
| EditorCommandResult portals::ui::ActionRef::operator() | ( | const KeyEvent & | event | ) | const |
| event | Existing keyboard input. |
| EditorCommandResult portals::ui::ActionRef::rebind | ( | Action | action, |
| std::source_location | origin = std::source_location::current() ) const |
| action | Replacement callback and metadata; the currently admitted callback stays alive. |
| origin | Registration site. |
| EditorCommandResult portals::ui::ActionRef::remove | ( | std::source_location | origin = std::source_location::current() | ) | const |
| origin | Retirement site. |
| EditorCommandResult portals::ui::ActionRef::set | ( | ActionMetadata | metadata, |
| std::source_location | origin = std::source_location::current() ) const |
| metadata | Candidate common state, atomically committed after all new storage is ready. |
| origin | Public mutation site retained in existing diagnostics. |
| std::expected< std::shared_ptr< const ActionMetadata >, TreeError > portals::ui::ActionRef::snapshot | ( | ) | const |