Copyable typed observer; never owns or exposes an unchecked widget pointer.
More...
#include <widget.hpp>
|
|
| Node ()=default |
| | Empty observer; checked access fails.
|
template<class U>
requires std::derived_from<U, T> |
| | Node (Node< U > other) |
| | Safe observing upcast; downcasts are unavailable.
|
| NodeId | id () const noexcept |
| | Copy the stable diagnostic identity.
|
| bool | operator== (const Node &other) const noexcept=default |
| | Compare identity.
|
|
|
class | WidgetTree |
|
struct | ui::detail::NamedAccess |
template<class T = Widget>
class portals::Node< T >
Copyable typed observer; never owns or exposes an unchecked widget pointer.
- Template Parameters
-
| T | Widget or a publicly derived extension type; the handle records identity without owning T. |
◆ Node()
template<class T = Widget>
template<class U>
requires std::derived_from<U, T>
Safe observing upcast; downcasts are unavailable.
- Template Parameters
-
| U | Publicly derived from T, permitting a safe observing upcast. |
- Parameters
-
| other | Observer whose identity is copied; the source remains valid. |
◆ id()
template<class T = Widget>
Copy the stable diagnostic identity.
- Returns
- Copied session/slot/generation identity; it does not establish liveness.
◆ operator==()
template<class T = Widget>
Compare identity.
- Parameters
-
| other | Typed observer to compare. |
- Returns
- True when all compared fields are equal.
The documentation for this class was generated from the following file: