Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::detail::RefTarget Struct Reference

Shared observation; publication and all mutable fields belong to the constructing UI thread. More...

#include <ui_ref.hpp>

Public Attributes

const std::thread::id owner = std::this_thread::get_id()
 Immutable affinity checked before mutable fields.
ManagedScene * scene {}
 Borrowed only while lifetime remains live on UI.
std::weak_ptr< const void > lifetime
 Does not retain the scene or its widgets.
Node< Widget > node
 Published identity, never automatically reset.
Node< Control > caption
 Typed caption identity, empty for other widgets.
std::shared_ptr< const ManagedError > failure
 Owning failure, allocated only for a rejected named request.
Node< LineEdit > draft
 Typed editor identity, empty for other widgets.
Node< Password > secret
 Protected editor identity; never grants plaintext access.

Detailed Description

Shared observation; publication and all mutable fields belong to the constructing UI thread.


The documentation for this struct was generated from the following file: