blob: a3c6c96222791f115cb9f9989fdc0ad1937be8de (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef __RULER_HH__
#define __RULER_HH__
#include "regardingborder.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.
*
* 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 RegardingBorder
{
protected:
void sizeRequestSimpl (core::Requisition *requisition);
void getExtremesSimpl (core::Extremes *extremes);
void containerSizeChangedForChildren ();
bool usesAvailWidth ();
void draw (core::View *view, core::Rectangle *area,
core::DrawingContext *context);
core::Widget *getWidgetAtPoint (int x, int y,
core::GettingWidgetAtPointContext *context);
public:
static int CLASS_ID;
Ruler ();
~Ruler ();
bool isBlockLevel ();
core::Iterator *iterator (core::Content::Type mask, bool atEnd);
};
} // namespace dw
#endif // __RULER_HH__
|