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

Owning bounded selection; display bytes survive source and scene retirement. More...

#include <ui_suggestions.hpp>

Public Member Functions

RowId rowId () const noexcept
std::string_view text () const noexcept
std::uint64_t index () const noexcept
const SearchSourceIdentity & sourceIdentity () const noexcept
std::expected< bool, ManagedError > current () const

Friends

class ui::detail::SuggestionsActivity

Detailed Description

Owning bounded selection; display bytes survive source and scene retirement.

Member Function Documentation

◆ current()

std::expected< bool, ManagedError > portals::SearchSelection::current ( ) const
Returns
UI-affine exact current status, CLOSED/WRONG_THREAD access failures preserved.

◆ index()

std::uint64_t portals::SearchSelection::index ( ) const
inlinenoexcept
Returns
Zero-based original source ordinal, independent of result ranking.

◆ rowId()

RowId portals::SearchSelection::rowId ( ) const
inlinenoexcept
Returns
Stable source identity and generation, never a result ordinal.

◆ sourceIdentity()

const SearchSourceIdentity & portals::SearchSelection::sourceIdentity ( ) const
inlinenoexcept
Returns
Exact weak source identity that produced this selection.

◆ text()

std::string_view portals::SearchSelection::text ( ) const
inlinenoexcept
Returns
Original bounded UTF-8 label, borrowed while this selection/result lives.

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