#include <ParagraphLayout.h>
Inheritance diagram for ParagraphLayout:
Public Member Functions | |
ParagraphLayout (const LEUnicode chars[], le_int32 count, const FontRuns *fontRuns, const ValueRuns *levelRuns, const ValueRuns *scriptRuns, const LocaleRuns *localeRuns, UBiDiLevel paragraphLevel, le_bool vertical, LEErrorCode &status) | |
Construct a ParagraphLayout object for a styled paragraph. | |
~ParagraphLayout () | |
The destructor. | |
UBiDiLevel | getParagraphLevel () |
Return the resolved paragraph level. | |
UBiDiDirection | getTextDirection () |
Return the directionality of the text in the paragraph. | |
virtual le_int32 | getAscent () const |
Return the max ascent value for all the fonts in the paragraph. | |
virtual le_int32 | getDescent () const |
Return the max descent value for all the fonts in the paragraph. | |
virtual le_int32 | getLeading () const |
Return the max leading value for all the fonts in the paragraph. | |
void | reflow () |
Reset line breaking to start from the beginning of the paragraph. | |
Line * | nextLine (float width) |
Return a ParagraphLayout::Line object which represents next line in the paragraph. | |
virtual UClassID | getDynamicClassID () const |
ICU "poor man's RTTI", returns a UClassID for the actual class. | |
Static Public Member Functions | |
le_bool | isComplex (const LEUnicode chars[], le_int32 count) |
Examine the given text and determine if it contains characters in any script which requires complex processing to be rendered correctly. | |
UClassID | getStaticClassID () |
ICU "poor man's RTTI", returns a UClassID for this class. |
The ParagraphLayout
object will analyze the text into runs of text in the same font, script and direction, and will create a LayoutEngine
object for each run. The LayoutEngine
will transform the characters into glyph codes in visual order.
Clients can use this to break a paragraph into lines, and to display the glyphs in each line.
Definition at line 44 of file ParagraphLayout.h.
|
Construct a
The paragraph is specified as runs of text all in the same font. An Clients can optionally specify directional runs and / or script runs. If these aren't specified they will be computed.
If any errors are encountered during construction,
|
|
The destructor. Virtual so that it works correctly with sublcasses.
|
|
Return the max ascent value for all the fonts in the paragraph.
|
|
Return the max descent value for all the fonts in the paragraph.
|
|
ICU "poor man's RTTI", returns a UClassID for the actual class.
Implements UObject. Definition at line 567 of file ParagraphLayout.h. References le_bool, le_int32, LEUnicode, UBiDi, and UBiDiLevel. |
|
Return the max leading value for all the fonts in the paragraph.
|
|
Return the resolved paragraph level. This is useful for those cases where the bidi analysis has determined the level based on the first strong character in the paragraph.
Definition at line 662 of file ParagraphLayout.h. |
|
ICU "poor man's RTTI", returns a UClassID for this class.
Definition at line 559 of file ParagraphLayout.h. |
|
Return the directionality of the text in the paragraph.
Definition at line 667 of file ParagraphLayout.h. |
|
Examine the given text and determine if it contains characters in any script which requires complex processing to be rendered correctly.
|
|
Return a The width of the line is specified each time so that it can be varied to support arbitrary paragraph shapes.
|
|
Reset line breaking to start from the beginning of the paragraph.
Definition at line 672 of file ParagraphLayout.h. |