ICU 72.1 72.1
|
This class represents a single line of text in a ParagraphLayout
.
More...
#include <ParagraphLayout.h>
Public Member Functions | |
~Line () | |
The constructor is private since these objects can only be created by ParagraphLayout . More... | |
le_int32 | countRuns () const |
Count the number of visual runs in the line. More... | |
le_int32 | getAscent () const |
Get the ascent of the line. More... | |
le_int32 | getDescent () const |
Get the descent of the line. More... | |
le_int32 | getLeading () const |
Get the leading of the line. More... | |
le_int32 | getWidth () const |
Get the width of the line. More... | |
const VisualRun * | getVisualRun (le_int32 runIndex) const |
Get a ParagraphLayout::VisualRun object for a given visual run in the line. More... | |
virtual UClassID | getDynamicClassID () const |
ICU "poor man's RTTI", returns a UClassID for the actual class. More... | |
Public Member Functions inherited from icu::UObject | |
virtual | ~UObject () |
Destructor. More... | |
virtual UClassID | getDynamicClassID () const |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. More... | |
Static Public Member Functions | |
static UClassID | getStaticClassID () |
ICU "poor man's RTTI", returns a UClassID for this class. More... | |
Friends | |
class | ParagraphLayout |
This class represents a single line of text in a ParagraphLayout
.
They can only be created by calling ParagraphLayout::nextLine()
. Each line consists of multiple visual runs, represented by ParagraphLayout::VisualRun
objects.
Definition at line 67 of file ParagraphLayout.h.
icu::ParagraphLayout::Line::~Line | ( | ) |
The constructor is private since these objects can only be created by ParagraphLayout
.
However, it is the clients responsibility to destroy the objects, so the destructor is public.
|
inline |
Count the number of visual runs in the line.
Definition at line 675 of file ParagraphLayout.h.
le_int32 icu::ParagraphLayout::Line::getAscent | ( | ) | const |
Get the ascent of the line.
This is the maximum ascent of all the fonts on the line.
le_int32 icu::ParagraphLayout::Line::getDescent | ( | ) | const |
Get the descent of the line.
This is the maximum descent of all the fonts on the line.
|
inlinevirtual |
ICU "poor man's RTTI", returns a UClassID for the actual class.
Reimplemented from icu::UObject.
Definition at line 159 of file ParagraphLayout.h.
le_int32 icu::ParagraphLayout::Line::getLeading | ( | ) | const |
Get the leading of the line.
This is the maximum leading of all the fonts on the line.
|
inlinestatic |
ICU "poor man's RTTI", returns a UClassID for this class.
Definition at line 152 of file ParagraphLayout.h.
const VisualRun * icu::ParagraphLayout::Line::getVisualRun | ( | le_int32 | runIndex | ) | const |
Get a ParagraphLayout::VisualRun
object for a given visual run in the line.
runIndex | is the index of the run, in visual order. |
ParagraphLayout::VisualRun
object representing the visual run. This object is owned by the Line
object which created it, and will remain valid for as long as the Line
object is valid.le_int32 icu::ParagraphLayout::Line::getWidth | ( | ) | const |
Get the width of the line.
This is a convenience method which returns the last X position of the last visual run in the line.
|
friend |
Definition at line 169 of file ParagraphLayout.h.