Dynamic named observation with checked caption/editor and Button capabilities. Copies own the request name and observing slot; they never retain a scene/widget. Converting to Ref<T> checks the same published NodeId, or waits for this slot before mount.
More...
#include <ui_ref.hpp>
|
|
class | Scene |
|
struct | detail::NamedAccess |
Dynamic named observation with checked caption/editor and Button capabilities. Copies own the request name and observing slot; they never retain a scene/widget. Converting to Ref<T> checks the same published NodeId, or waits for this slot before mount.
◆ node()
| Node< Widget > portals::ui::DynamicRef::node |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- Observing published identity, empty before mount; UI-thread only.
◆ onClick()
| std::expected< void, ManagedError > portals::ui::DynamicRef::onClick |
( |
Callback | callback, |
|
|
std::source_location | origin = std::source_location::current() ) const |
|
inline |
- Template Parameters
-
- Parameters
-
| callback | Action transferred into the existing managed binding. |
| origin | Registration call site. |
- Returns
- Checked Button registration result; use a pipe stage for registration before preparation.
◆ operator Ref< T >()
template<class T>
requires std::derived_from<T,
Widget>
| portals::ui::DynamicRef::operator Ref< T > |
( |
| ) |
const |
|
inline |
- Template Parameters
-
| T | Public Widget subtype tested during deferred/immediate name resolution. |
- Returns
- Typed weak slot; wrong type records INVALID_ARGUMENT before startup or in the live collector. Conversion construction may allocate. A successful slot never retargets on later ID reuse.
◆ text()
| TextProperty portals::ui::DynamicRef::text |
( |
TextResolver | resolver = {}, |
|
|
std::source_location | origin = std::source_location::current() ) const |
|
inline |
- Parameters
-
| resolver | Optional owning synchronous localization adapter. |
| origin | Property acquisition call site retained for short mutations. |
- Returns
- Existing checked text proxy; non-text widgets return INVALID_ARGUMENT.
The documentation for this class was generated from the following file: