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

Owning accepted row identity and bounded label, independent of editor draft and source lifetime. More...

#include <combo_box.hpp>

Public Member Functions

 operator bool () const noexcept
RowId rowId () const noexcept
std::uint64_t index () const noexcept
std::string_view text () const noexcept
std::uint64_t sourceRevision () const noexcept

Friends

struct detail::ChoiceAccess

Detailed Description

Owning accepted row identity and bounded label, independent of editor draft and source lifetime.

Member Function Documentation

◆ index()

std::uint64_t portals::ChoiceSelection::index ( ) const
noexcept
Returns
Zero-based original source ordinal, or zero for an empty handle.

◆ operator bool()

portals::ChoiceSelection::operator bool ( ) const
explicitnoexcept
Returns
Whether this handle represents an accepted source row.

◆ rowId()

RowId portals::ChoiceSelection::rowId ( ) const
noexcept
Returns
Full stable source row identity, or zero for no selection.

◆ sourceRevision()

std::uint64_t portals::ChoiceSelection::sourceRevision ( ) const
noexcept
Returns
Exact accepted source revision, or zero for no selection.

◆ text()

std::string_view portals::ChoiceSelection::text ( ) const
noexcept
Returns
Original UTF-8 label borrowed while this handle owns its value.

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