HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
AttributedGrapheme.hpp
1// Copyright 2020 Pokitec
2// All rights reserved.
3
4#pragma once
5
6#include "TTauri/Text/Grapheme.hpp"
7#include "TTauri/Text/TextStyle.hpp"
8#include "TTauri/Text/UnicodeData.hpp"
9
10namespace tt {
11
13 Grapheme grapheme;
14
18
22
25 BidiClass bidiClass;
26
30
31 GeneralCharacterClass charClass;
32
34 grapheme(std::move(grapheme)), style(std::move(style)), logicalIndex(logicalIndex),
35 bidiClass(BidiClass::Unknown), charClass(GeneralCharacterClass::Unknown) {}
36};
37
38}
STL namespace.
Definition AttributedGrapheme.hpp:12
int8_t embeddingLevel
Embedding level needed by the bidi-algorithm.
Definition AttributedGrapheme.hpp:29
BidiClass bidiClass
The bidirectional classification.
Definition AttributedGrapheme.hpp:25
TextStyle style
All information about the shape and color needed to render this grapheme.
Definition AttributedGrapheme.hpp:17
ssize_t logicalIndex
Index of the grapheme before bidi-algorithm.
Definition AttributedGrapheme.hpp:21
Definition Grapheme.hpp:20
Definition TextStyle.hpp:15