implemented "direction:vertical" support, also for symbols

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@269 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-04-19 23:54:39 +00:00
parent b23040989e
commit 0d3ab74d32
5 changed files with 14 additions and 5 deletions
+3 -2
View File
@@ -31,7 +31,8 @@ enum DrawWhat
/// Information on a linebreak
enum LineBreak
{ BREAK_NO // no line break
{ BREAK_NO // no line break ever
, BREAK_MAYBE // break here when in "direction:vertical" mode
, BREAK_SOFT // optional line break (' ')
, BREAK_HARD // always a line break ('\n')
, BREAK_LINE // line break with a separator line (<line>)
@@ -42,7 +43,7 @@ struct CharInfo {
RealSize size;
LineBreak break_after;
inline CharInfo(RealSize size, LineBreak break_after = BREAK_NO) : size(size), break_after(break_after) {}
inline CharInfo(RealSize size, LineBreak break_after) : size(size), break_after(break_after) {}
};
/// A section of text that can be rendered using a TextViewer