5#include <portals/menu.hpp>
12std::vector<PopupEntry> emptyPopupEntries();
19 std::string
caption = std::string(0,
'\0');
20 std::vector<PopupEntry>
children = detail::emptyPopupEntries();
29inline std::vector<PopupEntry> emptyPopupEntries() {
31 return std::vector<PopupEntry>(0);
87 std::unique_ptr<State> state_;
91 void invalidatePresentation() noexcept override;
An owning, invariant-preserving half-open cell rectangle.
Definition geometry.hpp:81
Full-host structural root containing at most one visible opaque panel. This is deliberately not a Siz...
Definition dialog.hpp:102
Owning validated UTF-8 and immutable extended grapheme measurements.
Definition text.hpp:145
Copyable typed observer; never owns or exposes an unchecked widget pointer.
Definition widget.hpp:92
Borrowed synchronous command sink supplied by the frame owner. submit must consume commands immediate...
Definition widget_types.hpp:66
Weak UI-affine action identity; owner retirement never leaves an executable callback.
Definition ui_action.hpp:117
Public Portals API.
Definition action.hpp:8
constexpr SizePolicy DEFAULT_MENU_POLICY
Natural menu extent on both axes; callers may supply an ordinary explicit SizePolicy.
Definition menu.hpp:9
std::variant< ActionEvent, KeyEvent, TextInputEvent, PasteInputEvent, MouseInputEvent > RoutedEvent
Synchronous input value; callback borrows it only until return.
Definition action.hpp:47
TreeError
Checked tree failures; rejected operations never start the requested callback.
Definition widget_types.hpp:26
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
Owning advanced frame settings; legacy BorderOptions remains a literal value type.
Definition primitives.hpp:62
Owning arranged geometry; invalid geometry must never be used for hit-testing.
Definition widget_types.hpp:48
Owning independent policies for width and height.
Definition layout.hpp:35
Owning deterministic width policy; no font or terminal matching promise.
Definition text.hpp:42