summaryrefslogtreecommitdiff
path: root/dw/ruler.hh
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-09-24 18:44:40 +0200
committerjcid <devnull@localhost>2008-09-24 18:44:40 +0200
commitc377e06400f138325a9a9d43d91a9272691867a1 (patch)
tree49f3ca1c46af11a058a68714899d4137ec717618 /dw/ruler.hh
parent642f9b3e747859a7256ea12fab9f9ed50aa9253a (diff)
- Moved the dw2 tree into dillo2's tree.
Diffstat (limited to 'dw/ruler.hh')
-rw-r--r--dw/ruler.hh30
1 files changed, 30 insertions, 0 deletions
diff --git a/dw/ruler.hh b/dw/ruler.hh
new file mode 100644
index 00000000..a1ae67ea
--- /dev/null
+++ b/dw/ruler.hh
@@ -0,0 +1,30 @@
+#ifndef __RULER_HH__
+#define __RULER_HH__
+
+#include "core.hh"
+
+namespace dw {
+
+/**
+ * \brief Widget for drawing (horizontal) rules.
+ *
+ * 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.
+ */
+class Ruler: public core::Widget
+{
+protected:
+ void sizeRequestImpl (core::Requisition *requisition);
+ void draw (core::View *view, core::Rectangle *area);
+
+public:
+ Ruler ();
+
+ core::Iterator *iterator (core::Content::Type mask, bool atEnd);
+};
+
+} // namespace dw
+
+#endif // __RULER_HH__