|
HikoGUI
A low latency retained GUI
|
#include "unicode_general_category.hpp"#include "unicode_grapheme_cluster_break.hpp"#include "unicode_east_asian_width.hpp"#include "unicode_break_opportunity.hpp"#include "../utility.hpp"#include "../cast.hpp"#include "../assert.hpp"#include "../math.hpp"#include <cstdint>#include <vector>#include <algorithm>#include <numeric>Go to the source code of this file.
Data Structures | |
| struct | v1::detail::unicode_line_break_info |
| Combined unicode_line_break_class and unicode_line_break_opportunity. More... | |
Namespaces | |
| namespace | v1 |
| DOXYGEN BUG. | |
Typedefs | |
| using | v1::detail::unicode_line_break_info_vector = std::vector<unicode_line_break_info> |
| using | v1::detail::unicode_line_break_info_iterator = unicode_line_break_info_vector::iterator |
| using | v1::detail::unicode_line_break_info_const_iterator = unicode_line_break_info_vector::const_iterator |
Enumerations | |
| enum class | v1::unicode_line_break_class : uint8_t { BK , CR , LF , CM , NL , SG , WJ , ZW , GL , SP , ZWJ , B2 , BA , BB , HY , CB , CL , CP , EX , IN , NS , OP , QU , IS , NU , PO , PR , SY , AI , AL , CJ , EB , EM , H2 , H3 , HL , ID , JL , L , JV , V , JT , T , RI , SA , XX } |
| Unicode line break class. More... | |
|
constexprnoexcept |
Get the length of each line when broken after folding text to a maximum width.
|
constexprnoexcept |
Get the length of each line when broken with mandatory breaks.
|
constexpr |
Get the maximum width of the text.
The width of the text when using only the mandatory break-opportunity.
| opportunities | The break-opportunity per character. |
| char_widths | The width of each character. |
|
constexpr |
Get the minimum width of the text.
The width of the text when using each and every break-opportunity.
| opportunities | The break-opportunity per character. |
| char_widths | The width of each character. |
|
constexprnoexcept |
Get the length of each line when broken with mandatory and optional breaks.
|
constexpr |
Get the width of the entire text.
| widths | Width of each character in the text. |
| lengths | Number of characters on each line. |
|
constexprnoexcept |
Calculate the width of a line.
| first | Iterator to the first character widths. |
| last | Iterator to one beyond the last character width. |
|
constexpr |
Get the width of the text at a maximum width.
The width of the text when folding the text to a maximum width.
| opportunities | The break-opportunity per character. |
| char_widths | The width of each character. |
| maximum_line_width | The maximum width of the text |
|
constexprnoexcept |
Check if all the lines in the text fit the maximum width.
| widths | Width of each character in the text. |
| lengths | Number of characters on each line. |
| maximum_line_width | The maximum line width allowed. |