Deferred observing slot, published only by a complete successful registration. Construction may allocate; copies never own a scene or action.
More...
#include <key_binding.hpp>
|
|
| KeyBindingRef () |
| | Create an unpublished slot; may throw std::bad_alloc.
|
| std::expected< KeyBindingId, ManagedError > | id () const |
| std::expected< void, ManagedError > | setEnabled (bool value, std::source_location origin=std::source_location::current()) const |
| std::expected< void, ManagedError > | setVisible (bool value, std::source_location origin=std::source_location::current()) const |
| std::expected< void, ManagedError > | setText (TextValue label, TextValue description, KeyTextResolver resolver={}, std::source_location origin=std::source_location::current()) const |
| std::expected< void, ManagedError > | rebind (const KeySelection &selection, std::source_location origin=std::source_location::current()) const |
| std::expected< void, ManagedError > | unbind (std::source_location origin=std::source_location::current()) const |
| std::expected< void, ManagedError > | remove (std::source_location origin=std::source_location::current()) const |
Deferred observing slot, published only by a complete successful registration. Construction may allocate; copies never own a scene or action.
◆ id()
- Returns
- Published immutable identity, CLOSED or WRONG_THREAD.
◆ rebind()
| std::expected< void, ManagedError > portals::ui::KeyBindingRef::rebind |
( |
const KeySelection & | selection, |
|
|
std::source_location | origin = std::source_location::current() ) const |
- Parameters
-
| selection | New alternatives. |
| origin | Call site. |
- Returns
- Pure checked publication.
◆ remove()
| std::expected< void, ManagedError > portals::ui::KeyBindingRef::remove |
( |
std::source_location | origin = std::source_location::current() | ) |
const |
- Parameters
-
- Returns
- Pure checked retirement.
◆ setEnabled()
| std::expected< void, ManagedError > portals::ui::KeyBindingRef::setEnabled |
( |
bool | value, |
|
|
std::source_location | origin = std::source_location::current() ) const |
- Parameters
-
| value | New state. |
| origin | Call site. |
- Returns
- Pure checked publication.
◆ setText()
- Parameters
-
| label | New label. |
| description | New explanation. |
| resolver | Local resolver. |
| origin | Call site. |
- Returns
- Pure checked publication.
◆ setVisible()
| std::expected< void, ManagedError > portals::ui::KeyBindingRef::setVisible |
( |
bool | value, |
|
|
std::source_location | origin = std::source_location::current() ) const |
- Parameters
-
| value | New state. |
| origin | Call site. |
- Returns
- Pure checked publication.
◆ unbind()
| std::expected< void, ManagedError > portals::ui::KeyBindingRef::unbind |
( |
std::source_location | origin = std::source_location::current() | ) |
const |
- Parameters
-
- Returns
- Pure checked unbinding.
The documentation for this class was generated from the following file: