Dillo v3.1.1-111-gd4f56d0d
Loading...
Searching...
No Matches
ruler.hh
Go to the documentation of this file.
1#ifndef __RULER_HH__
2#define __RULER_HH__
3
4#include "regardingborder.hh"
5
6namespace dw {
7
21{
22protected:
26 bool usesAvailWidth ();
27 void draw (core::View *view, core::Rectangle *area,
28 core::DrawingContext *context);
29 core::Widget *getWidgetAtPoint (int x, int y,
31
32public:
33 static int CLASS_ID;
34
35 Ruler ();
36 ~Ruler ();
37
38 bool isBlockLevel ();
39
41};
42
43} // namespace dw
44
45#endif // __RULER_HH__
Base class (rather a tag interface) for those widgets regarding borders defined by floats,...
Widget for drawing (horizontal) rules.
Definition ruler.hh:21
~Ruler()
Definition ruler.cc:37
void sizeRequestSimpl(core::Requisition *requisition)
Simple variant, to be implemented by widgets with sizes not depending on positions.
Definition ruler.cc:42
bool isBlockLevel()
Definition ruler.cc:59
bool usesAvailWidth()
Must be implemengted by a method returning true, when getAvailWidth() is called.
Definition ruler.cc:71
static int CLASS_ID
Definition ruler.hh:33
core::Widget * getWidgetAtPoint(int x, int y, core::GettingWidgetAtPointContext *context)
Definition ruler.cc:82
void draw(core::View *view, core::Rectangle *area, core::DrawingContext *context)
Area is given in widget coordinates.
Definition ruler.cc:76
void getExtremesSimpl(core::Extremes *extremes)
Simple variant, to be implemented by widgets with extremes not depending on positions.
Definition ruler.cc:49
core::Iterator * iterator(core::Content::Type mask, bool atEnd)
Return an iterator for this widget.
Definition ruler.cc:94
void containerSizeChangedForChildren()
Definition ruler.cc:64
Ruler()
Definition ruler.cc:31
Set at the top when drawing.
Definition types.hh:295
Set at the top when getting the widget at the point.
Definition types.hh:313
Iterators are used to iterate through the contents of a widget.
Definition iterator.hh:20
dw::core::Shape implemtation for simple rectangles.
Definition types.hh:70
An interface to encapsulate platform dependent drawing.
Definition view.hh:17
The base class of all dillo widgets.
Definition widget.hh:44
Extremes extremes
Analogue to dw::core::Widget::requisition.
Definition widget.hh:166
Requisition requisition
Size_request() stores the result of the last call of size_request_impl().
Definition widget.hh:160
Dw is in this namespace, or sub namespaces of this one.