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

Consuming metadata for one canonical annotated registration; refs resolve after complete mount. More...

#include <ui_key_info.hpp>

Public Member Functions

 KeyInfo (TextValue label, TextResolver resolver={})
KeyInfo && description (TextValue text) &&
KeyInfo && reference (KeyBindingRef reference) &&
template<class T>
requires std::derived_from<T, Widget>
KeyInfo && owner (const Ref< T > &reference) &&
template<class T>
requires std::derived_from<T, Widget>
KeyInfo && scope (const Ref< T > &reference) &&
KeyInfo && enabled (bool value) &&
KeyInfo && visible (bool value) &&

Friends

class Scene

Detailed Description

Consuming metadata for one canonical annotated registration; refs resolve after complete mount.

Constructor & Destructor Documentation

◆ KeyInfo()

portals::ui::KeyInfo::KeyInfo ( TextValue label,
TextResolver resolver = {} )
inlineexplicit
Parameters
labelOwning required label.
resolverLocal resource resolver, never retained by a row.

Member Function Documentation

◆ description()

KeyInfo && portals::ui::KeyInfo::description ( TextValue text) &&
inline
Parameters
textOwning explanation.
Returns
This consuming metadata.

◆ enabled()

KeyInfo && portals::ui::KeyInfo::enabled ( bool value) &&
inline
Parameters
valueNew admission state.
Returns
This consuming metadata.

◆ owner()

template<class T>
requires std::derived_from<T, Widget>
KeyInfo && portals::ui::KeyInfo::owner ( const Ref< T > & reference) &&
inline
Template Parameters
TWidget type.
Parameters
referenceOriginal owner observation.
Returns
This consuming metadata.

◆ reference()

KeyInfo && portals::ui::KeyInfo::reference ( KeyBindingRef reference) &&
inline
Parameters
referenceDeferred command slot.
Returns
This consuming metadata.

◆ scope()

template<class T>
requires std::derived_from<T, Widget>
KeyInfo && portals::ui::KeyInfo::scope ( const Ref< T > & reference) &&
inline
Template Parameters
TWidget type.
Parameters
referenceDeclared scope observation.
Returns
This consuming metadata.

◆ visible()

KeyInfo && portals::ui::KeyInfo::visible ( bool value) &&
inline
Parameters
valueNew visibility/admission state.
Returns
This consuming metadata.

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