![]() |
Mapper
0.9.0
API documentation
|
TextObjectPartInfo contains layout information for a continuous sequence of printable characters in a longer text. More...
#include <text_object.h>
Public Member Functions | |
double | getX (int index) const |
The metrics of the font that is used to render the part. More... | |
int | getIndex (double pos_x) const |
Find the index of the character corresponding to a particular position. More... | |
Public Attributes | |
QString | part_text |
int | start_index |
The sequence of printable characters which makes up this part. More... | |
int | end_index |
The index of the part's first character in the original string. More... | |
double | part_x |
The index of the part's last character in the original string. More... | |
double | width |
The left endpoint of the baseline of this part in text coordinates. More... | |
QFontMetricsF | metrics |
The width of the rendered part in text coordinates. More... | |
TextObjectPartInfo contains layout information for a continuous sequence of printable characters in a longer text.
Use the implicit initializer list constructor to create a new object of this class.
int OpenOrienteering::TextObjectPartInfo::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 |
|
inline |
The metrics of the font that is used to render the part.
Get the horizontal position of a particular character in a part.
index | the index of the character in the original string |
int OpenOrienteering::TextObjectPartInfo::end_index |
The index of the part's first character in the original string.
QFontMetricsF OpenOrienteering::TextObjectPartInfo::metrics |
The width of the rendered part in text coordinates.
QString OpenOrienteering::TextObjectPartInfo::part_text |
double OpenOrienteering::TextObjectPartInfo::part_x |
The index of the part's last character in the original string.
int OpenOrienteering::TextObjectPartInfo::start_index |
The sequence of printable characters which makes up this part.
double OpenOrienteering::TextObjectPartInfo::width |
The left endpoint of the baseline of this part in text coordinates.