summaryrefslogtreecommitdiff
path: root/dw/textblock.hh
diff options
context:
space:
mode:
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r--dw/textblock.hh10
1 files changed, 3 insertions, 7 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh
index 51d82f55..37786a1e 100644
--- a/dw/textblock.hh
+++ b/dw/textblock.hh
@@ -516,8 +516,8 @@ protected:
int redrawY;
int lastWordDrawn;
- /* These values are set by set_... */
- int availWidth, availAscent, availDescent;
+ /* This value is (currently) set by setAscent(). */
+ int lineBreakWidth;
// Additional vertical offset, used for the "clear" attribute.
int verticalOffset;
@@ -754,8 +754,6 @@ protected:
void notifySetAsTopLevel();
void notifySetParent();
void setWidth (int width);
- void setAscent (int ascent);
- void setDescent (int descent);
bool isBlockLevel ();
@@ -820,9 +818,7 @@ public:
queueResize (-1, extremesChanged);
DBG_OBJ_MSG_END ();
}
- inline int getAvailWidth () { return availWidth; }
- inline int getAvailAscent () { return availAscent; }
- inline int getAvailDescent () { return availDescent; }
+ inline int getLineBreakWidth () { return lineBreakWidth; }
};
#define DBG_SET_WORD_PENALTY(n, i, is) \