Portals 0.7.0 · dev0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::ThemeSelectorRef Class Reference
Weak UI-affine observation of one scene-owned selector view. Commands are checked only: they never report, remember or stop the application. Built-in controls use report-only diagnostics separately. Copy/destruction never restores a theme. An active model may outlive a retired view.
More...
Weak UI-affine observation of one scene-owned selector view. Commands are checked only: they never report, remember or stop the application. Built-in controls use report-only diagnostics separately. Copy/destruction never restores a theme. An active model may outlive a retired view.
Guarded commit, once-only callback and close; callback error takes precedence over close error. Precommit rejection preserves lastApply. Reentry during transition is WOULD_BLOCK.
Existing model commit result; does not close the view, call onCommitted or replace lastApply. Use apply() for the selected UI choice and its once-only callback/close outcome.
Allocation-free owning completed result; null success before any committed Apply. UI-affine metadata remains readable after view/scene retirement. During transition the previous result survives. This query owns no scene, widget or callback.
Exact catalog ID, borrowed only for the existing synchronous model preview.
origin
Original checked command site.
Returns
Existing model preview result without opening the view or selecting a different UI row. An independently selected UI row remains protected by Apply's expected-ID guard.
Owning current model metadata, or full checked affinity/lifetime/transition failure. Requires this live attached view; retained immutable snapshots remain usable after scene retirement.
The documentation for this class was generated from the following file: