One run of rich text: a piece of text or an inline icon.
More...
#include <gui_core/text/gui_text_system.h>
|
| static constexpr float | kSizeAuto = -1.0f |
| | size the icon automatically
|
One run of rich text: a piece of text or an inline icon.
◆ Type
◆ GetHashCode()
| uint64_t tachyon::ContentRun::GetHashCode |
( |
| ) |
const |
|
inline |
◆ kSizeAuto
| float tachyon::ContentRun::kSizeAuto = -1.0f |
|
staticconstexpr |
size the icon automatically
◆ type
| Type tachyon::ContentRun::type |
◆ text
| std::string_view tachyon::ContentRun::text |
◆ iconID
| IconID tachyon::ContentRun::iconID |
◆ iconWidth
| float tachyon::ContentRun::iconWidth = kSizeAuto |
◆ iconHeight
| float tachyon::ContentRun::iconHeight = kSizeAuto |
◆ contentId
| intptr_t tachyon::ContentRun::contentId = 0 |
non-zero makes the run hittable (HitTestContent returns it)
◆ isLink
| bool tachyon::ContentRun::isLink = false |
drawn as a link: underlined, in linkStyle's colors
◆ linkStyle
◆ textStyleOverride
| const TextStyle* tachyon::ContentRun::textStyleOverride = nullptr |
Text style of this run in place of the element's (font, size, weight, ...); null uses the element's.
Caller-owned; must outlive the frame, like text.
The documentation for this struct was generated from the following file: