blob: 32e859a12622dc057673f705dbba1f962c1c35d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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__
|