UI-thread scoped registration; the engine retains only a weak observer. Copies share participation. Dropping the last copy retires it without callbacks; use unregisterRoles for explicit paint invalidation while the node remains live. Retained palette snapshots own their data and never assert that a node is live.
More...
#include <style.hpp>
|
|
| StyleRoleRegistration ()=default |
| | Empty allocation-free handle.
|
| std::shared_ptr< const StyleRolePalette > | snapshot () const noexcept |
| std::uint64_t | revision () const noexcept |
|
|
class | StyleEngine |
|
struct | detail::StyleRoleTestAccess |
UI-thread scoped registration; the engine retains only a weak observer. Copies share participation. Dropping the last copy retires it without callbacks; use unregisterRoles for explicit paint invalidation while the node remains live. Retained palette snapshots own their data and never assert that a node is live.
◆ revision()
| std::uint64_t portals::StyleRoleRegistration::revision |
( |
| ) |
const |
|
noexcept |
- Returns
- Last publication revision; zero for empty/retired handles or foreign-thread observation.
◆ snapshot()
| std::shared_ptr< const StyleRolePalette > portals::StyleRoleRegistration::snapshot |
( |
| ) |
const |
|
noexcept |
- Returns
- Last immutable projection, or null after explicit unregister/engine destruction. Foreign-thread observation returns null; a copied palette remains valid after retirement.
The documentation for this class was generated from the following file: