Dillo
ruler.hh
Go to the documentation of this file.
1 #ifndef __RULER_HH__
2 #define __RULER_HH__
3 
4 #include "regardingborder.hh"
5 
6 namespace dw {
7 
20 class Ruler: public RegardingBorder
21 {
22 protected:
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 
32 public:
33  static int CLASS_ID;
34 
35  Ruler ();
36  ~Ruler ();
37 
38  bool isBlockLevel ();
39 
40  core::Iterator *iterator (core::Content::Type mask, bool atEnd);
41 };
42 
43 } // namespace dw
44 
45 #endif // __RULER_HH__
core::Iterator * iterator(core::Content::Type mask, bool atEnd)
Return an iterator for this widget.
Definition: ruler.cc:94
Ruler()
Definition: ruler.cc:31
Extremes extremes
Analogue to dw::core::Widget::requisition.
Definition: widget.hh:146
Set at the top when getting the widget at the point.
Definition: types.hh:312
bool usesAvailWidth()
Must be implemengted by a method returning true, when getAvailWidth() is called.
Definition: ruler.cc:71
Requisition requisition
Size_request() stores the result of the last call of size_request_impl().
Definition: widget.hh:140
~Ruler()
Definition: ruler.cc:37
dw::core::Shape implemtation for simple rectangles.
Definition: types.hh:69
void getExtremesSimpl(core::Extremes *extremes)
Simple variant, to be implemented by widgets with extremes not depending on positions.
Definition: ruler.cc:49
Type
Definition: types.hh:199
Iterators are used to iterate through the contents of a widget.
Definition: iterator.hh:19
static int CLASS_ID
Definition: ruler.hh:33
Widget for drawing (horizontal) rules.
Definition: ruler.hh:20
core::Widget * getWidgetAtPoint(int x, int y, core::GettingWidgetAtPointContext *context)
Definition: ruler.cc:82
Definition: types.hh:172
The base class of all dillo widgets.
Definition: widget.hh:23
Set at the top when drawing.
Definition: types.hh:294
Definition: types.hh:179
Base class (rather a tag interface) for those widgets regarding borders defined by floats...
Definition: regardingborder.hh:13
void draw(core::View *view, core::Rectangle *area, core::DrawingContext *context)
Definition: ruler.cc:76
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtablecell.cc:28
An interface to encapsulate platform dependent drawing.
Definition: view.hh:16
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
void containerSizeChangedForChildren()
Definition: ruler.cc:64