예제 #1
0
U_CAPI const pl_visualRun * U_EXPORT2
pl_getLineVisualRun(const pl_line *line, le_int32 runIndex)
{
    ParagraphLayout::Line *ll = (ParagraphLayout::Line *) line;

    if (ll == NULL) {
        return 0;
    }

    return (pl_visualRun *) ll->getVisualRun(runIndex);
}
예제 #2
0
U_CAPI le_int32 U_EXPORT2
pl_getLineWidth(const pl_line *line)
{
    ParagraphLayout::Line *ll = (ParagraphLayout::Line *) line;

    if (ll == NULL) {
        return 0;
    }

    return ll->getWidth();
}
예제 #3
0
U_CAPI le_int32 U_EXPORT2
pl_countLineRuns(const pl_line *line)
{
    ParagraphLayout::Line *ll = (ParagraphLayout::Line *) line;

    if (ll == NULL) {
        return 0;
    }

    return ll->countRuns();
}
예제 #4
0
		int CountRuns() const  { return l->countRuns(); }
예제 #5
0
		int GetWidth() const   { return l->getWidth(); }
예제 #6
0
		int GetLeading() const { return l->getLeading(); }
예제 #7
0
		ICULine(ParagraphLayout::Line *l) : l(l)
		{
			for (int i = 0; i < l->countRuns(); i++) {
				*this->Append() = new ICUVisualRun(l->getVisualRun(i));
			}
		}