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

Owning sparse literals only; never contains IDs, models, handlers or live history. More...

#include <ui_control_context.hpp>

Public Member Functions

const ControlDocumentSettings & documentSettings () const noexcept

Public Attributes

std::optional< TextValue > text {}
 Caption/value expression, resolved by receiving scene.
std::optional< std::int32_t > width {}
 Nonnegative fixed width in cells.
std::optional< std::int32_t > height {}
 Nonnegative fixed height in cells.
std::optional< std::uint32_t > flex {}
 Positive common flex weight.
std::optional< std::int32_t > gap {}
 Nonnegative VBox/HBox gap.
std::optional< CheckState > state {}
 CheckBox/ThreeState/Switch initial state; Switch is boolean only.
std::optional< CheckCycle > cycle {}
 CheckBox cycle; ThreeState is fixed THREE_STATE.
std::optional< EditMode > editMode {}
 LineEdit publication mode.
std::optional< bool > readOnly {}
 User-mutation policy for supporting controls.
std::optional< ProgrammaticChange > programmaticChange {}
 LineEdit initial programmatic history policy.
std::optional< LineEditDisplayMode > displayMode {}
 LineEdit immutable presentation.
std::optional< TextValue > placeholder {}
 LineEdit placeholder expression.
ControlHistorySettings history {}
 Structural merge, never a whole-history reset.
std::shared_ptr< const ControlSourceOrigin > origin {}
 Fallback location for present properties.
std::vector< ControlPropertyOrigin > origins = std::vector<ControlPropertyOrigin>(0)
 Per-property overrides.
ControlGridSettings grid {}
 Sparse container settings, supported only by a matching schema.
ControlLinearSettings linear {}
 Sparse VBox/HBox alignment and overflow settings.
ControlTextLimitSettings limits {}
 Sparse LineEdit limits, merged one bound at a time.
std::optional< ButtonChrome > chrome {}
 Button decoration; absence preserves the receiving factory's chrome.
std::optional< PrimitiveGlyphs > glyphs {}
 Border/Gauge/scroll one-cell decoration selection.
std::optional< std::size_t > maxPaintCells {}
 Positive Border/Gauge/scroll paint-work cap in allocated cells.
std::optional< double > value {}
 Finite Gauge initial value, checked against its effective range at construction.
std::optional< double > minimum {}
 Finite Gauge lower bound; effective maximum must be greater.
std::optional< double > maximum {}
 Finite Gauge upper bound with a finite positive span.
std::optional< std::int32_t > preferredWidth {}
 Nonnegative Gauge intrinsic width in terminal cells.
std::optional< double > wheelStep {}
 Positive finite logical scroll cells per decoded wheel event.
std::optional< std::uint64_t > keyStep {}
 Positive integral logical cells per arrow event, retaining all 64 bits.
std::optional< std::uint64_t > pageOverlap {}
 Shared logical cells between pages; explicit zero is supported.
std::optional< std::int32_t > minimumThumb {}
 Positive minimum thumb cells, capped by the actual track.
std::optional< bool > focusable {}
 Whether the owning area/standalone bar participates in focus traversal.
std::optional< ScrollBarPolicy > horizontal {}
 ScrollArea horizontal bar presence policy.
std::optional< ScrollBarPolicy > vertical {}
 ScrollArea vertical bar presence policy.
std::optional< ScrollPlacement > placement {}
 ScrollArea gutter/overlay/frame relationship.
std::optional< ScrollAxis > axis {}
 ScrollBar projection axis, applied without changing its writer role.
ControlScrollFrameSettings frame {}
 Sparse optional frame configuration for sized controls.
std::optional< LayoutAlign > horizontalAlign {}
 Ordinary Overlay child alignment across columns.
std::optional< LayoutAlign > verticalAlign {}
 Ordinary Overlay child alignment across rows.
std::optional< bool > initiallyOpen {}
 HelpView initial open state, using its existing focus-return lifecycle.
ControlKeyFormatSettings format {}
 Sparse literal formatter shared by HelpView and KeyHints.
std::optional< std::string > emptyText {}
 Literal empty-projection presentation.
std::optional< std::string > unavailableText {}
 Literal failed-projection presentation.
std::optional< std::string > entrySeparator {}
 KeyHints separator between complete entries.
std::optional< std::string > overflowMarker {}
 Nonempty KeyHints overflow marker.
std::optional< std::int32_t > rowHeight {}
 Positive VirtualList/VirtualTable cell rows per logical row.
std::optional< std::size_t > overscanRows {}
 Additional requested rows per side; explicit zero is supported.
std::optional< std::size_t > maxColumns {}
 Positive VirtualTable configured-column cap.
std::optional< std::size_t > maxPreparedCells {}
 Positive VirtualTable visible body-cell cap.
std::optional< std::size_t > maxPreparedTextBytes {}
 Positive VirtualTable header/body UTF-8 cap.
std::optional< ChartMode > mode {}
 Chart line/candle presentation.
std::optional< ChartGlyphSet > chartGlyphSet {}
 Chart-only candle glyph domain.
std::optional< std::int32_t > candleGap {}
 Nonnegative empty columns between candles.
ControlChartRangeSettings yRange {}
 Sparse optional chart scale, merged per leaf.
std::optional< bool > showStatus {}
 Native status subtree visibility at construction.
std::optional< std::int32_t > statusRows {}
 Positive fixed status strip height in cell rows.
std::optional< DataContentPolicy > contentPolicy {}
 Existing KEEP_BODY/REPLACE behavior.
std::optional< SchedulerTime > spinnerInterval {}
 Positive uint64 monotonic milliseconds.
ControlDataStateLabelSettings labels {}
 Owning native expressions, merged one label at a time.
std::optional< std::size_t > maxLayers {}
 Positive OverlayHost layer-registration cap, including closed layers.
std::optional< TextValue > title {}
 Owning Dialog caption expression; unspecified keeps the actual caption.
ControlDialogSettings dialog {}
 Native Dialog-only options, merged per leaf.
std::optional< TextValue > body {}
 Owning native MessageBox paragraph expression.
ControlMessageSettings message {}
 Native MessageBox-only sparse options.
ControlNotificationSettings notification {}
 Explicit code-bound native notifications options.
ControlThemeSelectorSettings themeSelector {}
 Explicit code-bound native selector view settings.
ControlThemeCatalogSettings themeCatalog {}
 Constructor-only real owning catalog scalars.
ControlSecureSettings securePolicy {}
 Password native security policy; appended for aggregate compatibility.
std::optional< PasswordPastePolicy > pastePolicy {}
 Password explicit inbound paste admission.
std::optional< SpinnerPreset > spinnerPreset {}
 Sparse Spinner preset setting.
std::optional< std::string > spinnerFrames {}
 Sparse Spinner frames setting.
std::optional< SchedulerTime > spinnerTick {}
 Sparse Spinner interval setting.
std::optional< SpinnerDirection > spinnerDirection {}
 Sparse Spinner direction setting.
std::optional< LayoutAlign > spinnerAlignment {}
 Sparse Spinner alignment setting.
std::optional< bool > spinnerActive {}
 Sparse Spinner active setting.
std::optional< bool > spinnerReducedMotion {}
 Sparse Spinner reducedMotion setting.
std::optional< TextValue > spinnerLabel {}
 Sparse Spinner label setting.
std::optional< std::size_t > spinnerMaxFrames {}
 Sparse Spinner maxFrames setting.
std::optional< std::size_t > spinnerMaxFrameBytes {}
 Sparse Spinner maxFrameBytes setting.
std::optional< std::size_t > spinnerMaxFrameCells {}
 Sparse Spinner maxFrameCells setting.
ControlScrollbarSettings scrollbar {}
 Sparse scrollbar skin; appended for aggregate compatibility.
std::optional< TextValue > fieldHelp {}
 FormField explanatory text below its editor.
std::optional< bool > fieldRequired {}
 FormField required marker and standard text rule.
std::optional< TextValue > fieldRequiredMessage {}
 FormField empty-candidate explanation.
std::optional< TextValue > findDocument {}
 FindBar owning bounded source text.
std::optional< std::size_t > findMaxDocumentBytes {}
 FindBar synchronous source byte admission cap.
std::optional< std::size_t > findMaxMatches {}
 FindBar positive stored-prefix range cap.
std::optional< TextValue > findPreviousLabel {}
 FindBar previous-match caption.
std::optional< TextValue > findNextLabel {}
 FindBar next-match caption.
std::optional< TextValue > findClearLabel {}
 FindBar explicit clear caption.
std::optional< std::size_t > maxLines {}
 Positive LogView retained-record cap.
std::optional< std::size_t > maxBytes {}
 Positive LogView retained UTF-8 payload cap.
std::optional< std::size_t > maxBatchBytes {}
 Positive LogView complete input-batch byte cap.
std::optional< std::size_t > maxRecordBytes {}
 Positive LogView individual record byte cap.
std::optional< bool > followTail {}
 LogView initial follow-tail mode.
std::optional< SearchStrategy > searchStrategy {}
 ComboBox/DropDown matching; preserves worker budgets.
std::optional< bool > arrows {}
 Reserve functional arrow buttons when the channel fits.
std::optional< std::uint64_t > arrowDelay {}
 Positive initial hold delay in milliseconds.
std::optional< std::uint64_t > arrowRepeat {}
 Positive repeat interval in milliseconds.
std::optional< GlyphProfile > glyphProfile {}
 Manual named base for Border and native scroll controls.
std::optional< GlyphFallback > glyphFallback {}
 Portable admission fallback, independent of colors.
std::optional< bool > fitWidth {}
 True requests content width; false requests automatic.
std::optional< bool > fitHeight {}
 True requests content height; false requests automatic.
std::optional< std::uint32_t > flexX {}
 Positive horizontal flex weight.
std::optional< std::uint32_t > flexY {}
 Positive vertical flex weight.
std::optional< std::int32_t > minWidth {}
 Nonnegative hard column minimum.
std::optional< std::int32_t > maxWidth {}
 Nonnegative hard column cap.
std::optional< std::int32_t > minHeight {}
 Nonnegative hard row minimum.
std::optional< std::int32_t > maxHeight {}
 Nonnegative hard row cap.
ControlRadioInitialSettings radioInitial {}
 Internal-model initial selection; external models reject overrides.
std::optional< double > step {}
 Slider increment; appended to preserve the positional aggregate prefix.
std::optional< std::uint64_t > pageSteps {}
 Positive Slider increment count per PageUp/PageDown action.
std::optional< RadioSelectionMode > radioSelectionMode {}
 Keyboard selection policy; appended for compatibility.
std::shared_ptr< const ControlDocumentSettings > document {}
 Cold immutable document settings.
std::optional< std::string > sliderSkin {}
 Numeric-control skin; historical name retained for source compatibility.
std::optional< std::string > sliderTrack {}
 Owning custom unfilled glyph.
std::optional< std::string > sliderFill {}
 Owning custom filled glyph.
std::optional< std::string > sliderThumb {}
 Owning custom thumb glyph.

Detailed Description

Owning sparse literals only; never contains IDs, models, handlers or live history.

Member Function Documentation

◆ documentSettings()

const ControlDocumentSettings & portals::ui::ControlSettings::documentSettings ( ) const
inlinenoexcept
Returns
Immutable document settings, or a shared empty value when absent.

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