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

Canonical typed observation of the existing scene-owned selector facade. Copies and moves share/transfer the legacy weak identity without adding a slot or retaining a view/model. Commands remain checked-only; lastApply retains its owning metadata under the existing retirement policy. No generic node(), text() or focus() is exposed; use a separate Ref<Dialog> for the real view when needed. More...

#include <theme_selector.hpp>

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

Public Member Functions

 Ref ()=default
 Create the existing cold selector identity; construction may throw std::bad_alloc.
 Ref (ThemeSelectorRef reference) noexcept
CheckedProperty checked (std::source_location origin=std::source_location::current()) const
std::expected< RadioGroupValue, ManagedError > value () const
std::expected< PropertyUpdate< RadioGroupValue >, ManagedError > select (std::optional< RowId > id, std::source_location origin=std::source_location::current()) const
std::expected< UiEndpoint< Value >, ManagedError > delivery (Callback callback, std::source_location origin=std::source_location::current()) const
 Register a checked, node-scoped worker-to-UI delivery endpoint.
EditorCommandResult activate (std::source_location origin=std::source_location::current()) const
 Invoke the existing semantic button route synchronously on UI; focus is unchanged.
Ref< LineEdit > lineEdit () const
std::expected< void, ManagedError > adjust (double delta, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > withPlaintext (F &&callback, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > start (std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > stop (std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > label (std::string_view value, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > open (std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > close (std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > setOffset (ScrollAxis axis, ScrollOffset offset, std::source_location origin=std::source_location::current()) const
std::expected< LogAppendReceipt, ManagedError > appendBatch (std::string_view bytes, std::source_location origin=std::source_location::current()) const
bool append (std::string_view bytes, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > setModel (const LogSource &source, std::source_location origin=std::source_location::current()) const
bool model (const LogSource &source, std::source_location origin=std::source_location::current()) const
std::expected< std::optional< PositionResolution >, ManagedError > restoreStatus (std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > followTail (std::source_location origin=std::source_location::current()) const
bool tail (std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > clearLog (std::source_location origin=std::source_location::current()) const
bool clear (std::source_location origin=std::source_location::current()) const
std::expected< LogStatus, ManagedError > status () const
std::expected< void, ManagedError > seekByte (std::uint64_t offset, std::source_location origin=std::source_location::current()) const
bool byte (std::uint64_t offset, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > refresh (std::source_location origin=std::source_location::current()) const
bool reload (std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > scrollRows (std::int64_t rows, std::source_location origin=std::source_location::current()) const
bool scroll (std::int64_t rows, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > scrollPages (std::int64_t pages, std::source_location origin=std::source_location::current()) const
bool page (std::int64_t pages, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > goHome (std::source_location origin=std::source_location::current()) const
 Admit a one-shot boundary navigation command.
bool home (std::source_location origin=std::source_location::current()) const
 Admit a one-shot boundary navigation command.
std::expected< void, ManagedError > goEnd (std::source_location origin=std::source_location::current()) const
 Admit a one-shot boundary navigation command.
bool end (std::source_location origin=std::source_location::current()) const
 Admit a one-shot boundary navigation command.
std::expected< void, ManagedError > setMode (DocumentViewMode value, std::source_location origin=std::source_location::current()) const
bool mode (DocumentViewMode value, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > setHexOptions (DocumentHexOptions options, std::source_location origin=std::source_location::current()) const
bool hexOptions (DocumentHexOptions options, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > setLanguage (DocumentLanguage value, std::source_location origin=std::source_location::current()) const
bool language (DocumentLanguage value, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > setSyntax (DocumentSyntaxPolicy policy, std::source_location origin=std::source_location::current()) const
bool syntax (DocumentSyntaxPolicy policy, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > setLineNumbers (bool enabled, std::source_location origin=std::source_location::current()) const
bool lineNumbers (bool enabled, std::source_location origin=std::source_location::current()) const
bool toggleLineNumbers (std::source_location origin=std::source_location::current()) const
std::optional< DocumentViewStatus > currentStatus (std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > setMetrics (ScrollAxisMetrics metrics, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > ensureVisible (std::source_location origin=std::source_location::current()) const
std::expected< NodeGeometry, ManagedError > geometry () const
std::expected< CellSize, ManagedError > size () const
std::expected< void, ManagedError > onLayout (Callback callback, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > onClick (Callback action, std::source_location origin=std::source_location::current()) const
std::expected< void, TreeError > display (DataPresentation value, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > focus (std::source_location origin=std::source_location::current()) const
DialogCommandResult dismiss (std::source_location origin=std::source_location::current()) const
std::expected< bool, ManagedError > opened () const
std::expected< void, ManagedError > enterFocusScope (std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > leaveFocusScope (std::source_location origin=std::source_location::current()) const
TextProperty text (TextResolver resolver={}, std::source_location origin=std::source_location::current()) const
Ref< LineEdit > editor () const
std::expected< ChoiceSelection, ManagedError > selection () const
std::expected< void, ManagedError > clearSelection (std::source_location origin=std::source_location::current()) const
std::expected< FindMatch, ManagedError > navigate (FindDirection direction) const
bool next (std::source_location origin=std::source_location::current()) const
bool previous (std::source_location origin=std::source_location::current()) const
std::expected< FindMatch, ManagedError > match () const
std::expected< bool, ManagedError > current (const FindMatch &value) const
std::expected< void, ManagedError > replaceDocument (std::string_view bytes) const
bool document (std::string_view bytes, std::source_location origin=std::source_location::current()) const
EditorCommandResult clearQuery (std::source_location origin=std::source_location::current()) const
std::expected< FieldValidation, ManagedError > validation () const
std::expected< bool, ManagedError > validate () const
bool valid (std::source_location origin=std::source_location::current()) const
EditorCommandResult undo (std::source_location origin=std::source_location::current()) const
EditorCommandResult redo (std::source_location origin=std::source_location::current()) const
EditorCommandResult stopGrouping (std::source_location origin=std::source_location::current()) const
TextSource captionText () const
auto visibleModel () const
Model< VirtualRowsPosition > position () const
TextSource draftText () const
TextSource committedText () const
std::expected< HistoryAvailability, TreeError > historyAvailability () const
bool canUndo () const
bool canRedo () const
Public Member Functions inherited from portals::ui::NodeRef< T >
 NodeRef ()
 Allocate an empty observing slot, with no widget ownership.
Node< T > node () const noexcept
Public Member Functions inherited from portals::ui::ThemeSelectorRef
 ThemeSelectorRef ()
 Create a cold identity; allocation may throw before a scene owner exists.
std::expected< void, ManagedError > open (std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > preview (std::string_view id, std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > commit (std::source_location origin=std::source_location::current()) const
std::expected< std::shared_ptr< const ThemeSelectionSnapshot >, ManagedError > snapshot () const
std::expected< void, ManagedError > apply (std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > cancel (std::source_location origin=std::source_location::current()) const
std::expected< void, ManagedError > closeKeepingPreview (std::source_location origin=std::source_location::current()) const
std::expected< std::shared_ptr< const ThemeApplyOutcome >, ManagedError > lastApply () const

Friends

struct detail::MessageAccess
struct detail::ClickAccess
struct detail::AsyncAccess
struct detail::EditorEventAccess
struct detail::ChangeAccess
class KeyInfo
struct detail::KeyHelpAccess
struct detail::LayoutAccess
struct detail::NamedAccess
class DynamicRef
class Description

Detailed Description

Canonical typed observation of the existing scene-owned selector facade. Copies and moves share/transfer the legacy weak identity without adding a slot or retaining a view/model. Commands remain checked-only; lastApply retains its owning metadata under the existing retirement policy. No generic node(), text() or focus() is exposed; use a separate Ref<Dialog> for the real view when needed.

Constructor & Destructor Documentation

◆ Ref()

portals::ui::Ref< ThemeSelectorRef >::Ref ( ThemeSelectorRef< ThemeSelectorRef > reference)
inlineexplicitnoexcept
Parameters
referenceExisting weak facade, copied from lvalues or moved from rvalues without allocating. The observation preserves the original identity, affinity and completed Apply metadata.

Member Function Documentation

◆ activate()

EditorCommandResult portals::ui::Ref< ThemeSelectorRef >::activate ( std::source_location origin = std::source_location::current()) const
inline

Invoke the existing semantic button route synchronously on UI; focus is unchanged.

Parameters
originCommand origin retained by recoverable diagnostics.
Returns
Checked command preserving its recoverable reporting receipt; return it unchanged from managed handlers. Disabled/hidden or unhandled targets are successful no-ops; use router.invoke for detailed routing status. Nested router invocation yields WOULD_BLOCK. Extracting result() deliberately loses reporting provenance.

◆ adjust()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::adjust ( double delta,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
deltaFinite amount added to the current value; nonfinite/out-of-range results reject without mutation.
originPublic command site retained on failure.
Returns
Checked programmatic change, automatically collected on failure; unchanged results request no redraw. Uses the same UI-thread, lifetime and between-frame contract as value(double); never clamps.

◆ append()

bool portals::ui::Ref< ThemeSelectorRef >::append ( std::string_view bytes,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
bytesComplete batch.
originCall site.
Returns
Success; false reports the exact native failure once through the existing scene collector.

◆ appendBatch()

std::expected< LogAppendReceipt, ManagedError > portals::ui::Ref< ThemeSelectorRef >::appendBatch ( std::string_view bytes,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
bytesComplete UTF-8 batch, borrowed only during synchronous admission.
originOriginal command site.
Returns
Atomic owning receipt; checked failures are never auto-reported.

◆ byte()

bool portals::ui::Ref< ThemeSelectorRef >::byte ( std::uint64_t offset,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
offsetOriginal byte anchor.
originOriginal call site.
Returns
Seek admission; failures are collected once.

◆ canRedo()

bool portals::ui::Ref< ThemeSelectorRef >::canRedo ( ) const
inline
Returns
Effective Redo availability; false on checked errors without reporting.

◆ canUndo()

bool portals::ui::Ref< ThemeSelectorRef >::canUndo ( ) const
inline
Returns
Effective Undo availability; false on checked errors without reporting.

◆ captionText()

TextSource portals::ui::Ref< ThemeSelectorRef >::captionText ( ) const
inline
Returns
Read-only visible caption source; acquisition never reads or subscribes.

◆ checked()

CheckedProperty portals::ui::Ref< ThemeSelectorRef >::checked ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originStatic call site retained for assignment diagnostics.
Returns
Deferred bool property, retaining this observing slot; reads use get(), writes use assignment.

◆ clear()

bool portals::ui::Ref< ThemeSelectorRef >::clear ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originCall site.
Returns
Clear success; false records the original failure once.

◆ clearLog()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::clearLog ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originOriginal call site.
Returns
Checked clear result preserving IDs; never auto-reports.

◆ clearQuery()

EditorCommandResult portals::ui::Ref< ThemeSelectorRef >::clearQuery ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originOriginal call site for the ordinary editor diagnostic receipt.
Returns
Explicit clear receipt; one editor history operation, confirmed in every mode. Technical failures are reported once automatically. Keep the opaque receipt to preserve diagnostic provenance; result() extracts only its checked TreeError observation.

◆ clearSelection()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::clearSelection ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originCommand site.
Returns
Clear accepted selection, preserving the ordinary editor draft.

◆ close()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::close ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originOperation site.
Returns
Pure checked focus return; already closed is a no-op.

◆ committedText()

TextSource portals::ui::Ref< ThemeSelectorRef >::committedText ( ) const
inline
Returns
Read-only latest accepted model source, independent of the editor's visible draft.

◆ current()

std::expected< bool, ManagedError > portals::ui::Ref< ThemeSelectorRef >::current ( const FindMatch & value) const
inline
Parameters
valuePreviously retained match.
Returns
True for membership in the current result set, independently of the selected ordinal; false for empty/stale sets, or an affinity/liveness error.

◆ currentStatus()

std::optional< DocumentViewStatus > portals::ui::Ref< ThemeSelectorRef >::currentStatus ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originOriginal observation site.
Returns
Status, or empty after collecting the exact failure once.

◆ delivery()

std::expected< UiEndpoint< Value >, ManagedError > portals::ui::Ref< ThemeSelectorRef >::delivery ( Callback callback,
std::source_location origin = std::source_location::current() ) const
inline

Register a checked, node-scoped worker-to-UI delivery endpoint.

Template Parameters
ValueTransitively immutable owning payload, safe to destroy on UI or a producer thread.
CallbackCopy-constructible callback taking shared_ptr<const Value>, returning void or expected<void,TreeError>.
Parameters
callbackUI-owned short action; captures are never transferred to producers. Borrowed captures remain the caller's responsibility.
originRegistration origin retained by recoverable execution diagnostics.
Returns
Worker-safe endpoint or exact checked registration failure, also collected by the live scene. Always deferred through existing CONTROL/REJECT. Node/scene removal closes delivery without joining. Typed execution errors are collected recoverably; exceptions also disconnect through Scheduler. Callback argument construction before entry may throw; transfers inside this boundary are checked.

◆ dismiss()

DialogCommandResult portals::ui::Ref< ThemeSelectorRef >::dismiss ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originDismissal call site retained by the existing callback error collector.
Returns
Checked dismissal; a closed layer is a no-op and admitted callbacks never replay.

◆ display()

std::expected< void, TreeError > portals::ui::Ref< ThemeSelectorRef >::display ( DataPresentation value,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
valueOwning explicit presentation for an own-value composite; older generations are ignored.
originPublic call site for the existing short diagnostic collector.
Returns
Original checked TreeError; bound/automatic composites reject writes with INVALID_ARGUMENT.

◆ document()

bool portals::ui::Ref< ThemeSelectorRef >::document ( std::string_view bytes,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
bytesNew owning source candidate.
originOriginal call site retained in diagnostics.
Returns
True after coherent replacement; false after reporting the original technical failure once.

◆ draftText()

TextSource portals::ui::Ref< ThemeSelectorRef >::draftText ( ) const
inline
Returns
Read-only visible draft source, including uncommitted or semantically rejected text.

◆ editor()

Ref< LineEdit > portals::ui::Ref< ThemeSelectorRef >::editor ( ) const
inline
Returns
Query editor observation; acquire after successful mount.

◆ end()

bool portals::ui::Ref< ThemeSelectorRef >::end ( std::source_location origin = std::source_location::current()) const
inline

Admit a one-shot boundary navigation command.

Parameters
originCommand site.
Returns
Admission success; one rejection enters the existing collector once.

◆ ensureVisible()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::ensureVisible ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originRequest site retained by the scene collector.
Returns
Checked one-shot reveal admission; final rendering remains asynchronous.

◆ enterFocusScope()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::enterFocusScope ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originFocus-entry call site retained in managed diagnostics.
Returns
Checked focus-only scope entry, saving a return record; no input trap is installed. Published callback errors retain entry and can be followed by leaveFocusScope().

◆ focus()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::focus ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originFocus request call site retained in managed diagnostics.
Returns
Checked focus/entry result; CLOSED before publication/after scene destruction, WRONG_THREAD, STALE_NODE, typed eligibility or callback failure. No lifetime is extended. Programmatic focus preserves the same editor blur and validation policies as keyboard focus.

◆ followTail()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::followTail ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originOriginal call site.
Returns
Pure checked resume-following result, without reporting.

◆ geometry()

std::expected< NodeGeometry, ManagedError > portals::ui::Ref< ThemeSelectorRef >::geometry ( ) const
inline
Returns
Owning final local/surface/clip geometry, or checked affinity/liveness/reentry failure. Before final layout, while hidden, or after invalidation/rearrangement returns INVALID_GEOMETRY. Does not perform layout or report errors; copies never borrow widgets or the scene.

◆ goEnd()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::goEnd ( std::source_location origin = std::source_location::current()) const
inline

Admit a one-shot boundary navigation command.

Parameters
originCommand site.
Returns
Checked atomic admission without I/O or automatic reporting.

◆ goHome()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::goHome ( std::source_location origin = std::source_location::current()) const
inline

Admit a one-shot boundary navigation command.

Parameters
originCommand site.
Returns
Checked atomic admission without I/O or automatic reporting.

◆ hexOptions()

bool portals::ui::Ref< ThemeSelectorRef >::hexOptions ( DocumentHexOptions options,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
optionsFixed raw-byte layout.
originCommand site.
Returns
Admission result; a rejection is collected exactly once.

◆ historyAvailability()

std::expected< HistoryAvailability, TreeError > portals::ui::Ref< ThemeSelectorRef >::historyAvailability ( ) const
inline
Returns
Effective checked availability without adoption, invalidation or error reporting.

◆ home()

bool portals::ui::Ref< ThemeSelectorRef >::home ( std::source_location origin = std::source_location::current()) const
inline

Admit a one-shot boundary navigation command.

Parameters
originCommand site.
Returns
Admission success; one rejection enters the existing collector once.

◆ label()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::label ( std::string_view value,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
valueLiteral UTF-8 label bytes copied inside the checked allocation boundary.
originPublic command call site.
Returns
Checked replacement; successful changes reset frame zero and restart its interval.

◆ language()

bool portals::ui::Ref< ThemeSelectorRef >::language ( DocumentLanguage value,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
valueNew lexical profile.
originCommand site.
Returns
Admission result; rejection is collected once by the scene.

◆ leaveFocusScope()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::leaveFocusScope ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originFocus-return call site retained in managed diagnostics.
Returns
Checked top-scope return; stale/unpublished/foreign-thread errors follow focus(). Owned failures are reported once, allowing use in ordinary void button callbacks.

◆ lineEdit()

Ref< LineEdit > portals::ui::Ref< ThemeSelectorRef >::lineEdit ( ) const
inline
Returns
Weak reference to the single ordinary editor, preserving its text/history API.

◆ lineNumbers()

bool portals::ui::Ref< ThemeSelectorRef >::lineNumbers ( bool enabled,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
enabledShow proven logical line numbers.
originOriginal command site.
Returns
Checked reflow admission; the existing scene collector receives a failure exactly once.

◆ match()

std::expected< FindMatch, ManagedError > portals::ui::Ref< ThemeSelectorRef >::match ( ) const
inline
Returns
Current owning range or empty handle; never reports, scans or changes selection.

◆ mode()

bool portals::ui::Ref< ThemeSelectorRef >::mode ( DocumentViewMode value,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
valueProjection of the same raw source.
originCommand site.
Returns
Admission result; a rejection is collected exactly once.

◆ model()

bool portals::ui::Ref< ThemeSelectorRef >::model ( const LogSource & source,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
sourceOwning deferred log binding.
originOriginal call site.
Returns
Admission success; false reports the exact failure once through the scene collector.

◆ navigate()

std::expected< FindMatch, ManagedError > portals::ui::Ref< ThemeSelectorRef >::navigate ( FindDirection direction) const
inline
Parameters
directionChecked stored-prefix direction.
Returns
Selected owning range or exact technical failure.

Empty/no-match is an empty successful handle. Same-index navigation makes no callback or invalidation. A selected callback runs after publication; its failure does not roll back the selected range.

◆ next()

bool portals::ui::Ref< ThemeSelectorRef >::next ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originOriginal call site.
Returns
True when a stored match exists; technical errors report once.

◆ onClick()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::onClick ( Callback action,
std::source_location origin = std::source_location::current() ) const
inline
Template Parameters
CallbackOwning compact click action, optionally taking const ClickEvent&.
Parameters
actionVoid, expected<Value, TreeError> or exact EditorCommandResult callback; success values are ignored.
originRegistration call site retained in diagnostics.
Returns
Checked registration on a mounted live button; CLOSED before publication/destruction, WRONG_THREAD, STALE_NODE, duplicate INVALID_ARGUMENT or allocation error. Scene owns captures/token. This adds one binding; it never replaces an existing one. Admitted calls survive self-removal. Registration failures are also recorded in a live UI collector, without stopping the scene. Internal callback transfers are checked; constructing the by-value argument before entry may throw.

◆ onLayout()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::onLayout ( Callback callback,
std::source_location origin = std::source_location::current() ) const
inline
Template Parameters
CallbackOwning compact action receiving const NodeGeometry& or no arguments.
Parameters
callbackVoid, checked TreeError or EditorCommandResult action retained by the scene.
originRegistration site retained in diagnostics.
Returns
Scene-owned registration or checked admission/budget/allocation error. Initial valid and changed local/surface/clip bounds arrive on a subsequent UI dispatch. Removal/close retires captures; an executing capture survives self-removal.

◆ open()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::open ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originOperation site.
Returns
Pure checked scope entry; already open is a no-op.

◆ opened()

std::expected< bool, ManagedError > portals::ui::Ref< ThemeSelectorRef >::opened ( ) const
inline
Returns
Effective activation, or exact affinity/lifetime/identity failure without reporting.

◆ page()

bool portals::ui::Ref< ThemeSelectorRef >::page ( std::int64_t pages,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
pagesSigned pages resolved from current arranged body; zero is a no-op.
originCommand site.
Returns
Admission success; one rejection enters the existing collector once.

◆ position()

Returns
Deferred read-only committed row position. Mount its consumer after the referenced host. The source borrows the host's checked lifetime and creates no polling or second navigation context.

◆ previous()

bool portals::ui::Ref< ThemeSelectorRef >::previous ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originOriginal call site.
Returns
True when a stored match exists; technical errors report once.

◆ redo()

EditorCommandResult portals::ui::Ref< ThemeSelectorRef >::redo ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originCommand call site retained in diagnostics.
Returns
Owning checked Redo result; empty history is a no-op without callbacks or redraw.

◆ refresh()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::refresh ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originOriginal call site.
Returns
Checked explicit refresh preserving the byte anchor.

◆ reload()

bool portals::ui::Ref< ThemeSelectorRef >::reload ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originOriginal call site.
Returns
Refresh admission; failures are collected once.

◆ replaceDocument()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::replaceDocument ( std::string_view bytes) const
inline
Parameters
bytesNew bounded UTF-8 source, borrowed only during this call.
Returns
Checked replacement; creates new identity even for equal bytes, including while disabled/hidden. Rejected input/preparation allocation preserves the previous source/results/selection and original TextError. The selected callback runs after publication; its failure does not roll back the accepted source.

◆ restoreStatus()

std::expected< std::optional< PositionResolution >, ManagedError > portals::ui::Ref< ThemeSelectorRef >::restoreStatus ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originOriginal query site.
Returns
No value before restoration, otherwise the current/reading/selection aggregate outcome. Unresolved current takes precedence over reading and selection. No work or redraw is started.

◆ scroll()

bool portals::ui::Ref< ThemeSelectorRef >::scroll ( std::int64_t rows,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
rowsSigned visual rows; zero is a no-op.
originCommand site.
Returns
Admission success; one rejection enters the existing collector once.

◆ scrollPages()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::scrollPages ( std::int64_t pages,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
pagesSigned pages resolved from current arranged body; zero is a no-op.
originCommand site.
Returns
Checked atomic admission without I/O or automatic reporting.

◆ scrollRows()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::scrollRows ( std::int64_t rows,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
rowsSigned visual rows; zero is a no-op.
originCommand site.
Returns
Checked atomic admission without I/O or automatic reporting.

◆ seekByte()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::seekByte ( std::uint64_t offset,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
offsetOriginal byte anchor.
originOriginal call site.
Returns
Checked deferred seek admission; no worker operation occurs here.

◆ select()

std::expected< PropertyUpdate< RadioGroupValue >, ManagedError > portals::ui::Ref< ThemeSelectorRef >::select ( std::optional< RowId > id,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
idExisting full identity or no selection.
originDiagnostic operation site.
Returns
Exact programmatic receipt; no user onChange. Failures also enter the existing scene collector.

◆ selection()

std::expected< ChoiceSelection, ManagedError > portals::ui::Ref< ThemeSelectorRef >::selection ( ) const
inline
Returns
Owning accepted row, independent of current editable draft.

◆ setHexOptions()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::setHexOptions ( DocumentHexOptions options,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
optionsFixed raw-byte layout.
originCommand site.
Returns
Checked reflow preserving the requested byte anchor; no I/O is performed.

◆ setLanguage()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::setLanguage ( DocumentLanguage value,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
valueNew lexical profile.
originCommand site.
Returns
Checked deferred change, preserving the current view on rejection. A consumed forward-only source cannot enable a different lexical profile without replay.

◆ setLineNumbers()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::setLineNumbers ( bool enabled,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
enabledShow proven logical line numbers; defaults remain off.
originOriginal command site.
Returns
Checked deferred reflow, preserving byte anchor and pending relative input; no source I/O. Assigning the existing value is an exact no-op. Failure is not automatically reported.

◆ setMetrics()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::setMetrics ( ScrollAxisMetrics metrics,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
metricsExact standalone extent and viewport.
originCommand site retained by the scene collector.
Returns
Checked metrics command; an area projection is not a metrics writer.

◆ setMode()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::setMode ( DocumentViewMode value,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
valueProjection of the same raw source.
originCommand site.
Returns
Checked mode admission; rejection preserves mode, anchor, frame and pending rows and is not collected. A changed mode supersedes unresolved old-mode relative navigation at the requested raw byte anchor. Assigning the same mode is a no-op. Forward-only sources reject a changed mode as UNSUPPORTED.

◆ setModel()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::setModel ( const LogSource & source,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
sourceOwning deferred log binding; no source I/O runs during admission.
originOriginal call site.
Returns
Checked atomic replacement; never auto-reports errors.

◆ setOffset()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::setOffset ( ScrollAxis axis,
ScrollOffset offset,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
axisSelected logical axis.
offsetExact logical offset, clamped to the current range.
originCommand site retained by the scene collector.
Returns
Checked programmatic command or reported affinity/liveness/lease error.

◆ setSyntax()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::setSyntax ( DocumentSyntaxPolicy policy,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
policyAutomatic, local preview or explicit exact recovery.
originCommand site.
Returns
Checked deferred policy change without automatically collecting errors.

◆ size()

std::expected< CellSize, ManagedError > portals::ui::Ref< ThemeSelectorRef >::size ( ) const
inline
Returns
Owning final local size or the exact geometry() error; never performs layout.

◆ start()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::start ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originPublic call site retained on failure.
Returns
Checked start; retains the current frame and arms one fresh interval during ordinary preparation.

◆ status()

std::expected< LogStatus, ManagedError > portals::ui::Ref< ThemeSelectorRef >::status ( ) const
inline
Returns
Owning counters/flags or exact UI/lifetime/frame error; never reports or retains records.

◆ stop()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::stop ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originPublic call site retained on failure.
Returns
Checked immediate token cancellation; failures enter the ordinary scene collector.

◆ stopGrouping()

EditorCommandResult portals::ui::Ref< ThemeSelectorRef >::stopGrouping ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originCommand call site retained in diagnostics.
Returns
Owning checked grouping boundary; does not change text or presentation.

◆ syntax()

bool portals::ui::Ref< ThemeSelectorRef >::syntax ( DocumentSyntaxPolicy policy,
std::source_location origin = std::source_location::current() ) const
inline
Parameters
policyRecovery policy.
originCommand site.
Returns
Admission result; a rejected command is collected once by the scene.

◆ tail()

bool portals::ui::Ref< ThemeSelectorRef >::tail ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originCall site.
Returns
Resume success; false records the original cause once.

◆ text()

TextProperty portals::ui::Ref< ThemeSelectorRef >::text ( TextResolver resolver = {},
std::source_location origin = std::source_location::current() ) const
inline
Parameters
resolverOptional owning synchronous adapter used only for i18n expressions.
originProperty acquisition call site used by assignment/+= diagnostics.
Returns
Owning observing proxy, valid after Ref destruction; never extends scene/widget lifetime. Resolver capture/storage allocation may throw before a mutation starts.

◆ toggleLineNumbers()

bool portals::ui::Ref< ThemeSelectorRef >::toggleLineNumbers ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originOriginal command site.
Returns
Toggle admission, with one collected failure on rejection. Reads and changes the live setting on its UI owner; no client-side bool or source I/O is needed.

◆ undo()

EditorCommandResult portals::ui::Ref< ThemeSelectorRef >::undo ( std::source_location origin = std::source_location::current()) const
inline
Parameters
originCommand call site retained in diagnostics.
Returns
Owning checked Undo result, with exact reporting provenance for managed button adapters.

◆ valid()

bool portals::ui::Ref< ThemeSelectorRef >::valid ( std::source_location origin = std::source_location::current()) const
inline
Returns
True after the current draft passes its synchronous rules.
Parameters
originValidation call site retained by the existing diagnostic collector. Short callback convenience: runs rules and updates presentation; technical failures use the scene error channel. Use validate() to inspect the original checked failure explicitly.

◆ validate()

std::expected< bool, ManagedError > portals::ui::Ref< ThemeSelectorRef >::validate ( ) const
inline
Returns
True when the current standard editor draft passes the synchronous field rules. This explicit check updates presentation without committing a model or adding an Undo operation. Reentry returns WOULD_BLOCK; custom editor roots return INVALID_ARGUMENT. Async-configured fields reject this synchronous observation with INVALID_ARGUMENT.

◆ validation()

std::expected< FieldValidation, ManagedError > portals::ui::Ref< ThemeSelectorRef >::validation ( ) const
inline
Returns
Most recent validation presentation, or exact checked affinity/liveness error. Deferred-mode dirty drafts preserve the last message until their next validation boundary.

◆ value()

std::expected< RadioGroupValue, ManagedError > portals::ui::Ref< ThemeSelectorRef >::value ( ) const
inline
Returns
Current authoritative immutable radio value, or original checked owner/thread/lifetime error.

◆ visibleModel()

auto portals::ui::Ref< ThemeSelectorRef >::visibleModel ( ) const
inline
Returns
Deferred physical body-row source; acquisition never reads or subscribes. Retains the original observing slot, including when acquired before mount, without owning the scene.

◆ withPlaintext()

std::expected< void, ManagedError > portals::ui::Ref< ThemeSelectorRef >::withPlaintext ( F && callback,
std::source_location origin = std::source_location::current() ) const
inline
Template Parameters
FOwned synchronous callable returning void and accepting a scoped SecretView.
Parameters
callbackPlaintext consumer; views and caller-created copies remain its responsibility.
originOriginal access site.
Returns
Checked secure access, with failures collected once. The borrowed value survives removal of the Ref, widget or scene during the callback.

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