diff options
author | Sebastian Geerken <devnull@localhost> | 2016-05-29 13:21:36 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2016-05-29 13:21:36 +0200 |
commit | 12bf33a4335310de0ddb16e321886e1c6093635e (patch) | |
tree | 1e7c5d75d2e49c75b6dbf2eba8d8f3d2799cbd12 /dw | |
parent | d523abc58605211e1cd43fc5c52c74e1c6d099b5 (diff) |
Comments.
Diffstat (limited to 'dw')
-rw-r--r-- | dw/textblock.hh | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh index 499ee063..8e9fb4e2 100644 --- a/dw/textblock.hh +++ b/dw/textblock.hh @@ -371,27 +371,26 @@ protected: int lastWord; /* last word's index in word vector */ - int top; /* "top" is always relative to the top - of the first line, i.e. - page->lines[0].top is always 0. */ - int marginAscent; /* Maximum of all total ascents - (including margin: hence the name) + int top; /* "top" is always relative to the top of the + first line, i.e. page->lines[0].top is + always 0. */ + int marginAscent; /* Maximum of all total ascents (including + margin: hence the name) of the words in this + line. */ + int marginDescent; /* Maximum of all total decents (including + margin: hence the name) of the words in this + line. */ + int borderAscent; /* Maximum of all ascents minus margin (but + including padding and border: hence the name) of the words in this line. */ - int marginDescent; /* Maximum of all total decents - (including margin: hence the name) + int borderDescent; /* Maximum of all descents minus margin (but + including padding and border: hence the name) of the words in this line. */ - int borderAscent; /* Maximum of all ascents minus margin - (but including padding and border: - hence the name) of the words in - this line. */ - int borderDescent; /* Maximum of all descents minus margin - (but including padding and border: - hence the name) of the words in - this line. */ int contentAscent; /* ??? (depricated?) */ int contentDescent; /* ??? (depricated?) */ int breakSpace; /* Space between this line and the next one. */ - int textOffset; /* ??? (to be documented) */ + int textOffset; /* Horizontal position of the first word of the + line, in widget coordinates. */ /** * \brief Returns the difference between two vertical lines |