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

Owning role projection; retain a const shared snapshot across node/engine retirement. More...

#include <style.hpp>

Public Member Functions

 ~StyleRolePalette ()=default
 Keep checked vector transfers throwable.
std::optional< CellStyle > find (std::string_view name, StyleState state=StyleState::NORMAL) const noexcept
bool operator== (const StyleRolePalette &) const =default

Public Attributes

std::vector< StyleRoleValue > values = std::vector<StyleRoleValue>(0)
 Bounded registered names only.

Detailed Description

Owning role projection; retain a const shared snapshot across node/engine retirement.

Member Function Documentation

◆ find()

std::optional< CellStyle > portals::StyleRolePalette::find ( std::string_view name,
StyleState state = StyleState::NORMAL ) const
noexcept
Parameters
nameExact registered role.
stateActual presentation state; ANY uses NORMAL.
Returns
Paint value, or empty for an absent name/invalid state. Never allocates.

◆ operator==()

bool portals::StyleRolePalette::operator== ( const StyleRolePalette & ) const
default
Returns
Equal effective role values.

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