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

Owning bounded literal search configuration; the normal editor owns query admission/history. More...

#include <ui_find_bar.hpp>

Public Member Functions

 ~FindBarConfig ()=default
 Keep aggregate transfers fallible on checked standard-library implementations.

Public Attributes

FindLimits limits {}
 Legacy document/range caps; the model overload uses search instead.
LineEditConfig editor
 Query options; automatic width shares toolbar space.
TextValue previousLabel {"Previous"}
 Owning previous-match button caption.
TextValue nextLabel {"Next"}
 Owning next-match button caption.
TextValue clearLabel {"Clear"}
 Owning clear-query button caption.
FindBarAppearance appearance {}
 Layout/manual style defaults; callbacks never run during styling.
std::function< void(FindMatch)> selected {}
 Owning UI callback after publication; no mount-time delivery or rollback on failure.
FindSearchOptions search {}
 Worker scan/result budgets used only by the model-backed overload.
std::function< void(FindSearchError)> searchFailed {}
 UI callback for the newest model query's domain failure.

Detailed Description

Owning bounded literal search configuration; the normal editor owns query admission/history.

Member Data Documentation

◆ editor

LineEditConfig portals::ui::FindBarConfig::editor
Initial value:
{
.options = {.limits = {1024, 1024, 1024, 2048}}}

Query options; automatic width shares toolbar space.


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