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

Owning advanced frame settings; legacy BorderOptions remains a literal value type. More...

#include <primitives.hpp>

Public Member Functions

 ~FrameOptions ()=default
 Destroy owned sources; copy construction preserves checked allocation failures in MSVC Debug.

Public Attributes

BorderOptions border {}
 Existing glyph selection and paint-work cap.
FramePattern pattern {FramePattern::SINGLE}
 Built-in line pattern, overridden by customGlyphs.
FrameSides sides {}
 Independently present one-cell edges and their content insets.
std::optional< FrameGlyphs > customGlyphs {}
 Optional owning custom glyph source, compiled at construction.
std::string title = std::string(0, '\0')
 Owning UTF-8 top-edge title; does not increase intrinsic width.
FrameTitleAlignment titleAlignment {FrameTitleAlignment::START}
 Alignment of the fitting title prefix.
std::size_t maxTitleBytes {4096}
 Positive maximum complete title source bytes, including clipped text.
TitleDecoration titleDecoration {TitleDecoration::NONE}
 Opt-in title ends; NONE keeps the literal title.
std::optional< CustomTitleDecoration > customTitleDecoration {}
 Owning ends overriding the preset.

Detailed Description

Owning advanced frame settings; legacy BorderOptions remains a literal value type.


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