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

Owning read DTO, retaining no callback, resolver, subscription or widget. More...

#include <key_binding.hpp>

Public Member Functions

 KeyBindingView (GraphemeText caption, GraphemeText detail)
 ~KeyBindingView ()=default
 Release independently owned text, alternatives and relations.

Public Attributes

std::optional< KeyBindingId > id {}
 Absent for legacy registrations.
std::size_t ordinal {}
 Display-local registration position.
GraphemeText label
 Empty for unannotated legacy bindings.
GraphemeText description
 Independently owned text.
std::optional< KeyEvent > legacy {}
 Original exact legacy key, if any.
std::optional< Shortcut > shortcut {}
 Owning normalized alternatives, including sequences.
std::vector< KeyAction > actions = std::vector<KeyAction>(0)
 Native admitted phases.
NodeId owner {}
 Diagnostic identity only.
NodeId scope {}
 Diagnostic identity only.
KeyEligibility eligibility {KeyEligibility::ELIGIBLE}
 Observed admission reason.
std::vector< KeyConflict > conflicts = std::vector<KeyConflict>(0)
 Conditional alternative relations.

Detailed Description

Owning read DTO, retaining no callback, resolver, subscription or widget.

Constructor & Destructor Documentation

◆ KeyBindingView()

portals::KeyBindingView::KeyBindingView ( GraphemeText caption,
GraphemeText detail )
inline
Parameters
captionResolved label.
detailResolved description.

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