]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/layout/paragraph.h
2 *******************************************************************************
4 * Copyright (C) 1999-2003, International Business Machines
5 * Corporation and others. All Rights Reserved.
7 *******************************************************************************
8 * file name: Paragraph.h
10 * created on: 09/06/2000
11 * created by: Eric R. Mader
16 #include "unicode/utypes.h"
18 #include "layout/LEFontInstance.h"
19 #include "layout/ParagraphLayout.h"
21 #include "GUISupport.h"
22 #include "RenderingSurface.h"
23 //#include "FontMap.h"
36 Paragraph(const LEUnicode chars
[], le_int32 charCount
, const FontRuns
*fontRuns
, LEErrorCode
&status
);
41 le_int32
getLineHeight();
42 le_int32
getLineCount();
43 void breakLines(le_int32 width
, le_int32 height
);
44 void draw(RenderingSurface
*surface
, le_int32 firstLine
, le_int32 lastLine
);
46 static Paragraph
*paragraphFactory(const char *fileName
, const LEFontInstance
*font
, GUISupport
*guiSupport
);
49 ParagraphLayout
*fParagraphLayout
;
55 const ParagraphLayout::Line
**fLines
;
64 inline le_int32
Paragraph::getLineHeight()
69 inline le_int32
Paragraph::getLineCount()
74 inline le_int32
Paragraph::getAscent()