Copyable UI-affine observer with owned rules and current scalar parameter values. Copies share values but never extend scene lifetime. One handle owns no subscription or callback. Destruction and copies are thread-independent; operations require the scene's UI thread. In layered mode this controller observes reserved THEME authority; external theme() revokes it. In legacy mode only this controller's changes are tracked: external theme() replacement supersedes its sheet until the next unequal parameter update. An equal update deliberately does not reinstall it.
More...
#include <style_static.hpp>
template<class S>
requires
detail::IsSheet<S>::value
class portals::style::ct::LiveTheme< S >
Copyable UI-affine observer with owned rules and current scalar parameter values. Copies share values but never extend scene lifetime. One handle owns no subscription or callback. Destruction and copies are thread-independent; operations require the scene's UI thread. In layered mode this controller observes reserved THEME authority; external theme() revokes it. In legacy mode only this controller's changes are tracked: external theme() replacement supersedes its sheet until the next unequal parameter update. An equal update deliberately does not reinstall it.
- Template Parameters
-
| S | Validated owning static stylesheet type. |
◆ apply()
template<class S>
template<class... C>
- Template Parameters
-
| C | Named update pack; names are known, unique, and values have exact parameter types. |
- Parameters
-
| changes | Candidates committed together only after the existing engine accepts the complete sheet. |
- Returns
- True after a committed batch, false for equal values, or original managed/style error. Equal batches still check scene authority. Without pending layered metadata they allocate nothing and request no invalidation; pending metadata is materialized and committed in the same transaction. A rejected batch leaves both current values and installed widget styles unchanged.
◆ attach()
- Parameters
-
| scene | Existing managed owner, observed through its weak lifetime and UI identity. |
| description | Owning immutable sheet copied into this handle's shared state. |
- Returns
- Observer after installation, or exact managed/style error with no controller published. Allocations precede installation. No user callback is retained by this controller.
◆ get()
- Template Parameters
-
| Name | Known parameter name. |
- Returns
- Current scalar value or CLOSED, WRONG_THREAD, or the existing managed boundary error.
◆ set()
- Template Parameters
-
| Name | Known parameter name. |
| T | Exact parameter value type. |
- Parameters
-
| value | Candidate value; negative runtime metrics are rejected by the existing style engine. |
- Returns
- True after a committed value change, false for an equal value, or original managed/style error.
The documentation for this class was generated from the following file: