aboutsummaryrefslogtreecommitdiff
path: root/dw/outofflowmgr.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-05-24 23:25:51 +0200
committerSebastian Geerken <devnull@localhost>2015-05-24 23:25:51 +0200
commitd07e57413ca9d2c6308d98f29dbbf9e3a85fe2b3 (patch)
tree9e011d7e28af14cf983de2d62a6c53ac17aa961b /dw/outofflowmgr.hh
parente1e51b48ddcf0b217f6008bb6ed997747e1e5695 (diff)
Reorganize comments.
Diffstat (limited to 'dw/outofflowmgr.hh')
-rw-r--r--dw/outofflowmgr.hh41
1 files changed, 40 insertions, 1 deletions
diff --git a/dw/outofflowmgr.hh b/dw/outofflowmgr.hh
index 9f8bf870..67b18f50 100644
--- a/dw/outofflowmgr.hh
+++ b/dw/outofflowmgr.hh
@@ -63,20 +63,59 @@ public:
virtual void getExtremes (core::Extremes *containerExtr, int *oofMinWidth,
int *oofMaxWidth) = 0;
-
+ /**
+ * Get the left border for the vertical position of *y*, for a height
+ * of *h", based on floats; relative to the allocation of the calling
+ * textblock.
+ *
+ * The border includes marging/border/padding of the calling textblock
+ * but is 0 if there is no float, so a caller should also consider
+ * other borders.
+ */
virtual int getLeftBorder (OOFAwareWidget *widget, int y, int h,
OOFAwareWidget *lastGen, int lastExtIndex) = 0;
+
+ /**
+ * Get the right border for the vertical position of *y*, for a height
+ * of *h*, based on floats.
+ *
+ * See also getLeftBorder().
+ */
virtual int getRightBorder (OOFAwareWidget *widget, int y, int h,
OOFAwareWidget *lastGen, int lastExtIndex) = 0;
+ /**
+ * Return whether there is a float on the left side.
+ *
+ * See also getLeftBorder().
+ */
virtual bool hasFloatLeft (OOFAwareWidget *widget, int y, int h,
OOFAwareWidget *lastGen, int lastExtIndex) = 0;
+
+ /**
+ * Return whether there is a float on the right side.
+ *
+ * See also hasFloatLeft(), getLeftBorder();
+ */
virtual bool hasFloatRight (OOFAwareWidget *widget, int y, int h,
OOFAwareWidget *lastGen, int lastExtIndex) = 0;
+ /**
+ * Assuming there is a float on the left side, return the rest
+ * height of it.
+ *
+ * See also getLeftBorder().
+ */
virtual int getLeftFloatHeight (OOFAwareWidget *widget, int y, int h,
OOFAwareWidget *lastGen, int lastExtIndex)
= 0;
+
+ /**
+ * Assuming there is a float on the right side, return the rest
+ * height of it.
+ *
+ * See also getLeftFloatHeight(), getLeftBorder().
+ */
virtual int getRightFloatHeight (OOFAwareWidget *widget, int y, int h,
OOFAwareWidget *lastGen, int lastExtIndex)
= 0;