4#include <portals/help_view.hpp>
8struct KeyHelpPresentation;
40 friend struct ui::detail::KeyHelpAccess;
41 std::shared_ptr<detail::KeyHelpPresentation> presentation_;
49Description<KeyHints> keyHints(Ref<HelpView> help,
KeyHintsOptions options = {}, ControlStyle style = {});
An owning, invariant-preserving half-open cell rectangle.
Definition geometry.hpp:81
const GraphemeText & text() const
Inspect the control's owning Unicode text on UI.
Owning validated UTF-8 and immutable extended grapheme measurements.
Definition text.hpp:145
KeyHints(GraphemeText text, ControlStyle style={}, SizePolicy policy=DEFAULT_FLEX_WIDTH_POLICY)
Definition key_hints.hpp:28
std::expected< void, TreeError > paint(PaintContext &context) override
std::expected< CellSize, TreeError > measure(CellSize available) override
std::expected< void, TreeError > arrange(CellRect local) override
Borrowed synchronous command sink supplied by the frame owner. submit must consume commands immediate...
Definition widget_types.hpp:66
Public Portals API.
Definition action.hpp:8
ui::ValueText text(std::format_string< const ui::detail::TextArgumentValue< Args > &... > pattern, Args &&...args)
Declare live formatted text over explicit scalar roots, fields or value properties.
Definition ui_value_text.hpp:567
constexpr SizePolicy DEFAULT_FLEX_WIDTH_POLICY
Fill available width from a zero flex basis while retaining content height.
Definition layout.hpp:47
ButtonChrome
Button caption decoration; action routing and identity remain unchanged.
Definition controls.hpp:155
@ NONE
Caption only, including a single-glyph action button.
Definition controls.hpp:157
An owning available extent in terminal columns/rows.
Definition geometry.hpp:44
Owning paint values; no theme engine or behavior is encoded here.
Definition controls.hpp:24
Single-row compact presentation options, bounded by the canonical registration limit.
Definition key_hints.hpp:12
~KeyHintsOptions()=default
Release the owning compact presentation options.
std::string overflowMarker
Marker followed by the number of omitted discoverable rows.
Definition key_hints.hpp:17
KeyFormatOptions format
Owning bounded formatter options.
Definition key_hints.hpp:15
std::string entrySeparator
Between complete named entries.
Definition key_hints.hpp:16
std::string unavailableText
Failed fresh projection marker, clipped at grapheme boundaries.
Definition key_hints.hpp:19
std::string emptyText
Empty-list presentation, empty by default.
Definition key_hints.hpp:18
Owning independent policies for width and height.
Definition layout.hpp:35