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

Owning cold source descriptor; copies retain the same provider, revision namespace and budget. Provider/file descriptors may be constructed before transfer to UI. After their first mount, shared descriptor queries and reuse belong to that UI thread. Explicit low-level sources originate on UI. More...

#include <ui_document_view.hpp>

Public Member Functions

 DocumentSource ()=default
 Empty descriptor; mount reports INVALID_ARGUMENT.
std::shared_ptr< ByteDocumentSource > byteSource () const noexcept
std::shared_ptr< SourceBudget > budget () const noexcept

Friends

struct detail::DocumentSourceAccess

Detailed Description

Owning cold source descriptor; copies retain the same provider, revision namespace and budget. Provider/file descriptors may be constructed before transfer to UI. After their first mount, shared descriptor queries and reuse belong to that UI thread. Explicit low-level sources originate on UI.

Member Function Documentation

◆ budget()

std::shared_ptr< SourceBudget > portals::ui::DocumentSource::budget ( ) const
noexcept
Returns
The source's existing shared credit root, or null for an empty descriptor.

◆ byteSource()

std::shared_ptr< ByteDocumentSource > portals::ui::DocumentSource::byteSource ( ) const
noexcept
Returns
Shared byte source after successful UI mount, or the explicitly supplied source; never performs I/O.

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