Added 'paragraph height' property to split a text field into multiple boxes.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@666 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-09-02 21:00:49 +00:00
parent 749a04e822
commit 54fdc78858
5 changed files with 46 additions and 15 deletions
+2
View File
@@ -143,6 +143,8 @@ class TextViewer {
bool prepareLinesScale(RotatedDC& dc, const vector<CharInfo>& chars, const TextStyle& style, bool stop_if_too_long, vector<Line>& lines_out) const;
/// Align the lines within the textbox
void alignLines(RotatedDC& dc, const vector<CharInfo>& chars, const TextStyle& style);
/// Align the lines of a single paragraph (a set of lines)
void alignParagraph(size_t start_line, size_t end_line, const vector<CharInfo>& chars, const TextStyle& style, const RealRect& box);
/// Find the line the given index is on, returns the first line if the index is not found
const Line& findLine(size_t index) const;