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

Owning panel geometry and managed input settings, in terminal cells. More...

#include <dialog.hpp>

Public Attributes

DialogMode mode {DialogMode::MODAL}
 Modal input confinement by default.
DialogPlacement placement {DialogPlacement::CENTER}
 Preferred placement; anchors belong to the host body.
CellSize maximumPanelSize {60, 20}
 Strictly positive independent width and height caps.
std::int32_t viewportMargin {1}
 Nonnegative inset, reduced on tiny viewports.
std::int32_t anchorGap {1}
 Nonnegative distance from the anchor.
bool closeOnEscape {true}
 Allow managed cancellation with Escape.
BorderOptions frame {}
 Frame glyph policy and allocated opaque-area paint cap.
DialogCloseOptions closeButton {.enabled = false}
 Opt-in close chrome on the top frame edge.

Detailed Description

Owning panel geometry and managed input settings, in terminal cells.


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