#include <ParagraphLayout.h>
Inheritance diagram for ParagraphLayout::
Public Methods | |
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. More... | |
~ParagraphLayout () | |
The destructor. More... | |
UBiDiLevel | getParagraphLevel () |
Return the resolved paragraph level. More... | |
UBiDiDirection | getTextDirection () |
Return the directionality of the text in the paragraph. More... | |
virtual le_int32 | getAscent () const |
Return the max ascent value for all the fonts in the paragraph. More... | |
virtual le_int32 | getDescent () const |
Return the max descent value for all the fonts in the paragraph. More... | |
virtual le_int32 | getLeading () const |
Return the max leading value for all the fonts in the paragraph. More... | |
void | reflow () |
Reset line breaking to start from the beginning of the paragraph. More... | |
Line * | nextLine (float width) |
Return a ParagraphLayout::Line object which represents next line in the paragraph. More... | |
virtual UClassID | getDynamicClassID () const |
ICU "poor man's RTTI", returns a UClassID for the actual class. More... | |
Static Public Methods | |
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. More... | |
UClassID | getStaticClassID () |
ICU "poor man's RTTI", returns a UClassID for this class. More... | |
Private Methods | |
ParagraphLayout () | |
ParagraphLayout (const ParagraphLayout &) | |
ParagraphLayout & | operator= (const ParagraphLayout &) |
void | computeLevels (UBiDiLevel paragraphLevel) |
Line * | computeVisualRuns () |
void | appendRun (Line *line, le_int32 run, le_int32 firstChar, le_int32 lastChar) |
void | computeScripts () |
void | computeLocales () |
void | computeSubFonts (const FontRuns *fontRuns, LEErrorCode &status) |
void | computeMetrics () |
le_int32 | getLanguageCode (const Locale *locale) |
le_int32 | getCharRun (le_int32 charIndex) |
le_int32 | previousBreak (le_int32 charIndex) |
Static Private Methods | |
le_bool | isComplex (UScriptCode script) |
Private Attributes | |
const LEUnicode * | fChars |
le_int32 | fCharCount |
const FontRuns * | fFontRuns |
const ValueRuns * | fLevelRuns |
const ValueRuns * | fScriptRuns |
const LocaleRuns * | fLocaleRuns |
le_bool | fVertical |
le_bool | fClientLevels |
le_bool | fClientScripts |
le_bool | fClientLocales |
UBiDiLevel * | fEmbeddingLevels |
le_int32 | fAscent |
le_int32 | fDescent |
le_int32 | fLeading |
le_int32 * | fGlyphToCharMap |
le_int32 * | fCharToMinGlyphMap |
le_int32 * | fCharToMaxGlyphMap |
float * | fGlyphWidths |
le_int32 | fGlyphCount |
UBiDi * | fParaBidi |
UBiDi * | fLineBidi |
le_int32 * | fStyleRunLimits |
le_int32 * | fStyleIndices |
StyleRunInfo * | fStyleRunInfo |
le_int32 | fStyleRunCount |
BreakIterator * | fBreakIterator |
le_int32 | fLineStart |
le_int32 | fLineEnd |
le_int32 | fFirstVisualRun |
le_int32 | fLastVisualRun |
float | fVisualRunLastX |
float | fVisualRunLastY |
Static Private Attributes | |
const char | fgClassID |
The address of this static class variable serves as this class's ID for ICU "poor man's RTTI". More... |
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 39 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.
|
|
Definition at line 554 of file ParagraphLayout.h. |
|
Definition at line 555 of file ParagraphLayout.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
Reimplemented from UObject. Definition at line 521 of file ParagraphLayout.h. |
|
|
|
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 623 of file ParagraphLayout.h. |
|
ICU "poor man's RTTI", returns a UClassID for this class.
Definition at line 528 of file ParagraphLayout.h. |
|
Return the directionality of the text in the paragraph.
Definition at line 628 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.
|
|
Definition at line 556 of file ParagraphLayout.h. |
|
|
|
Reset line breaking to start from the beginning of the paragraph.
Definition at line 633 of file ParagraphLayout.h. |
|
Definition at line 595 of file ParagraphLayout.h. |
|
Definition at line 613 of file ParagraphLayout.h. |
|
Definition at line 581 of file ParagraphLayout.h. |
|
Definition at line 601 of file ParagraphLayout.h. |
|
Definition at line 600 of file ParagraphLayout.h. |
|
Definition at line 580 of file ParagraphLayout.h. |
|
Definition at line 589 of file ParagraphLayout.h. |
|
Definition at line 591 of file ParagraphLayout.h. |
|
Definition at line 590 of file ParagraphLayout.h. |
|
Definition at line 596 of file ParagraphLayout.h. |
|
Definition at line 593 of file ParagraphLayout.h. |
|
Definition at line 617 of file ParagraphLayout.h. |
|
Definition at line 583 of file ParagraphLayout.h. |
|
Definition at line 603 of file ParagraphLayout.h. |
|
Definition at line 599 of file ParagraphLayout.h. |
|
Definition at line 602 of file ParagraphLayout.h. |
|
Definition at line 618 of file ParagraphLayout.h. |
|
Definition at line 597 of file ParagraphLayout.h. |
|
Definition at line 584 of file ParagraphLayout.h. |
|
Definition at line 606 of file ParagraphLayout.h. |
|
Definition at line 615 of file ParagraphLayout.h. |
|
Definition at line 614 of file ParagraphLayout.h. |
|
Definition at line 586 of file ParagraphLayout.h. |
|
Definition at line 605 of file ParagraphLayout.h. |
|
Definition at line 585 of file ParagraphLayout.h. |
|
Definition at line 609 of file ParagraphLayout.h. |
|
Definition at line 611 of file ParagraphLayout.h. |
|
Definition at line 610 of file ParagraphLayout.h. |
|
Definition at line 608 of file ParagraphLayout.h. |
|
Definition at line 588 of file ParagraphLayout.h. |
|
Definition at line 619 of file ParagraphLayout.h. |
|
Definition at line 620 of file ParagraphLayout.h. |
|
The address of this static class variable serves as this class's ID for ICU "poor man's RTTI".
Definition at line 537 of file ParagraphLayout.h. |