diff options
author | Sebastian Geerken <devnull@localhost> | 2012-11-12 22:04:59 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2012-11-12 22:04:59 +0100 |
commit | 665373f3b7ecf5c31157707d65406174b1a76fe4 (patch) | |
tree | a8057f6602958c596338e6d37772e2e86d689b20 /dw/textblock.hh | |
parent | 9abf65855047e774daa0d4c5dd6d86343eb1b355 (diff) |
Text is now correctly drawn as a whole.
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r-- | dw/textblock.hh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh index f80e573e..e2bbf7ef 100644 --- a/dw/textblock.hh +++ b/dw/textblock.hh @@ -271,6 +271,11 @@ protected: struct Word { + enum { + CAN_BE_HYPHENATED = 1 << 0, + DRAW_AS_ONE_TEXT = 1 << 1 + }; + /* TODO: perhaps add a xLeft? */ core::Requisition size; /* Space after the word, only if it's not a break: */ @@ -284,8 +289,8 @@ protected: * this is the last word of the line, and * "hyphenWidth > 0" is also used to decide * whether to draw a hyphen. */ + short flags; core::Content content; - bool canBeHyphenated; // accumulated values, relative to the beginning of the line int totalWidth; /* The sum of all word widths; plus all |