aboutsummaryrefslogtreecommitdiff
path: root/dw/ruler.hh
diff options
context:
space:
mode:
Diffstat (limited to 'dw/ruler.hh')
-rw-r--r--dw/ruler.hh15
1 files changed, 11 insertions, 4 deletions
diff --git a/dw/ruler.hh b/dw/ruler.hh
index c94c2e55..50789398 100644
--- a/dw/ruler.hh
+++ b/dw/ruler.hh
@@ -1,7 +1,7 @@
#ifndef __RULER_HH__
#define __RULER_HH__
-#include "core.hh"
+#include "regardingborder.hh"
namespace dw {
@@ -10,10 +10,14 @@ namespace dw {
*
* This is really an empty widget, the HTML parser puts a border
* around it, and drawing is done in dw::core::Widget::drawWidgetBox.
- * The only remarkable point is that the HAS_CONTENT flag is
- * cleared.
+ *
+ * Ruler implements RegardingBorder; this way, it is simpler to fit
+ * the ruler exactly within the space between floats. Currently, the
+ * drawn area of the ruler is too large (but most of the superfluous
+ * part is hidden by the floats); this problem will soon solved here
+ * in the "dillo_grows" repository.
*/
-class Ruler: public core::Widget
+class Ruler: public RegardingBorder
{
protected:
void sizeRequestImpl (core::Requisition *requisition);
@@ -25,7 +29,10 @@ protected:
Widget **interruptedWidget);
public:
+ static int CLASS_ID;
+
Ruler ();
+ ~Ruler ();
bool isBlockLevel ();