EN
RU
Portals
0.7.0 · dev
0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Toggle main menu visibility
Loading...
Searching...
No Matches
list_text.hpp
1
// Copyright (c) 2026 ttldtor.
2
// SPDX-License-Identifier: BSL-1.0
3
#pragma once
4
#include <portals/text.hpp>
5
6
#include <memory>
7
8
namespace
portals::detail {
10
struct
PreparedListRun {
11
GraphemeText
text
;
12
std::int32_t column{};
13
bool
highlighted{};
14
};
15
16
struct
PreparedListText {
17
explicit
PreparedListText(GraphemeText value) :
text
(std::move(value)) {
18
}
19
20
GraphemeText
text
;
21
// The prepared delegate paints owning runs; text alone is only the logical value.
22
// Every nonempty display therefore needs at least one prepared paint run.
23
std::vector<PreparedListRun> runs = std::vector<PreparedListRun>(std::initializer_list<PreparedListRun>{});
24
};
25
27
}
// namespace portals::detail
portals::text
ui::ValueText text(std::format_string< const ui::detail::TextArgumentValue< Args > &... > pattern, Args &&...args)
Declare live formatted text over explicit scalar roots, fields or value properties.
Definition
ui_value_text.hpp:567
include
portals
detail
list_text.hpp