aboutsummaryrefslogtreecommitdiff
path: root/dw/oofawarewidget.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2016-05-27 13:47:14 +0200
committerSebastian Geerken <devnull@localhost>2016-05-27 13:47:14 +0200
commit91e3b71937b30e0c0ec38de7b5a0a099edf7ce32 (patch)
tree483ec252707cd54b138bd3ae779616a08cc3e1b6 /dw/oofawarewidget.hh
parentc3291c7a8d3f5f7df51e24bdeed82a2f72cb097b (diff)
Textblock::getGeneratorWidth() may use caller information to adjust return value. This fixes too small return values of getGeneratorRest().
Diffstat (limited to 'dw/oofawarewidget.hh')
-rw-r--r--dw/oofawarewidget.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/dw/oofawarewidget.hh b/dw/oofawarewidget.hh
index 9d5fa38a..e49cce14 100644
--- a/dw/oofawarewidget.hh
+++ b/dw/oofawarewidget.hh
@@ -287,8 +287,13 @@ public:
/**
* Return width including margin/border/padding Called by OOFFloatsMgr to
* position floats.
+ *
+ * In somce cases (as in dw::Textblock::getGeneratorRest), the value is not
+ * up to date; for this, the caller may pass its position relative to this
+ * widget, as well as its width, which are used for adjustments. (See comment
+ * in dw::Textblock::getGeneratorRest.)
*/
- virtual int getGeneratorWidth ();
+ virtual int getGeneratorWidth (int callerX, int callerWidth);
virtual int getMaxGeneratorWidth ();