Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::NodeRef< T > Class Template Reference

Shared observing slot published only after a complete successful description mount. More...

#include <ui_ref.hpp>

Inheritance diagram for portals::ui::NodeRef< T >:
portals::ui::NodeRef< T >portals::ui::NodeRef< T > portals::ui::Ref< Password > portals::ui::Ref< MessageBox > portals::ui::Ref< ThemeSelectorRef > portals::ui::Ref< T >

Public Member Functions

 NodeRef ()
 Allocate an empty observing slot, with no widget ownership.
Node< T > node () const noexcept

Friends

struct detail::NamedAccess
class Description< T >
template<class U>
class Ref

Detailed Description

template<class T>
class portals::ui::NodeRef< T >

Shared observing slot published only after a complete successful description mount.

Template Parameters
TObserved public Widget subtype; no widget or scene ownership is retained. Read/write the slot only on the UI thread. Copies share the slot. A published identity is never automatically reset; checked tree access detects later retirement. Use a new slot for another description. Construction can throw std::bad_alloc.

Member Function Documentation

◆ node()

template<class T>
Node< T > portals::ui::NodeRef< T >::node ( ) const
inlinenoexcept
Returns
Empty before successful mount, otherwise the observing identity, possibly stale.

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