![]() |
Mapper
0.9.0
API documentation
|
TextObjectLineInfo contains layout information for a single line in a longer text. More...
#include <text_object.h>

Public Types | |
| typedef std::vector< TextObjectPartInfo > | PartInfoContainer |
| A sequence container of TextObjectPartInfo objects. More... | |
Public Member Functions | |
| double | getX (int pos) const |
| The sequence of parts which make up this line. More... | |
| int | getIndex (double pos_x) const |
| Find the index of the character corresponding to a particular position. More... | |
Public Attributes | |
| int | start_index |
| int | end_index |
| The index of the part's first character in the original string. More... | |
| bool | paragraph_end |
| The index of the part's last character in the original string. More... | |
| double | line_x |
| Is this line the end of a paragraph? More... | |
| double | line_y |
| The left endpoint of the baseline of this line in text coordinates. More... | |
| double | width |
| The vertical position of the baseline of this line in text coordinates. More... | |
| double | ascent |
| The total width of the text in this line. More... | |
| double | descent |
| The height of the rendered text above the baseline. More... | |
| PartInfoContainer | part_infos |
| The height of the rendered text below the baseline. More... | |
TextObjectLineInfo contains layout information for a single line in a longer text.
A line is a sequence of different parts.
| typedef std::vector<TextObjectPartInfo> OpenOrienteering::TextObjectLineInfo::PartInfoContainer |
A sequence container of TextObjectPartInfo objects.
| int OpenOrienteering::TextObjectLineInfo::getIndex | ( | double | pos_x | ) | const |
Find the index of the character corresponding to a particular position.
| pos_x | the position for which the index is requested |
| double OpenOrienteering::TextObjectLineInfo::getX | ( | int | pos | ) | const |
The sequence of parts which make up this line.
Get the horizontal position of a particular character in a line.
| pos | the index of the character in the original string |
| double OpenOrienteering::TextObjectLineInfo::ascent |
The total width of the text in this line.
| double OpenOrienteering::TextObjectLineInfo::descent |
The height of the rendered text above the baseline.
| int OpenOrienteering::TextObjectLineInfo::end_index |
The index of the part's first character in the original string.
| double OpenOrienteering::TextObjectLineInfo::line_x |
Is this line the end of a paragraph?
| double OpenOrienteering::TextObjectLineInfo::line_y |
The left endpoint of the baseline of this line in text coordinates.
| bool OpenOrienteering::TextObjectLineInfo::paragraph_end |
The index of the part's last character in the original string.
| PartInfoContainer OpenOrienteering::TextObjectLineInfo::part_infos |
The height of the rendered text below the baseline.
| int OpenOrienteering::TextObjectLineInfo::start_index |
| double OpenOrienteering::TextObjectLineInfo::width |
The vertical position of the baseline of this line in text coordinates.
1.8.13