#include <ruler.hh>
Public Member Functions | |
| Ruler () | |
| core::Iterator * | iterator (core::Content::Type mask, bool atEnd) |
| Return an iterator for this widget. | |
Protected Member Functions | |
| void | sizeRequestImpl (core::Requisition *requisition) |
| See Sizes of Dillo Widgets. | |
| void | draw (core::View *view, core::Rectangle *area) |
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.
| dw::Ruler::Ruler | ( | ) |
| void dw::Ruler::draw | ( | core::View * | view, | |
| core::Rectangle * | area | |||
| ) | [protected, virtual] |
Area is given in widget coordinates.
Implements dw::core::Widget.
References dw::core::Widget::drawWidgetBox().
| core::Iterator * dw::Ruler::iterator | ( | core::Content::Type | mask, | |
| bool | atEnd | |||
| ) | [virtual] |
Return an iterator for this widget.
mask can narrow the types returned by the iterator, this can enhance performance quite much, e.g. when only searching for child widgets.
With atEnd == false, the iterator starts before the beginning, i.e. the first call of dw::core::Iterator::next will let the iterator point on the first piece of contents. Likewise, With atEnd == true, the iterator starts after the last piece of contents, call dw::core::Iterator::prev in this case.
Implements dw::core::Widget.
| void dw::Ruler::sizeRequestImpl | ( | core::Requisition * | requisition | ) | [protected, virtual] |
Implements dw::core::Widget.
References dw::core::Requisition::ascent, dw::core::Requisition::descent, dw::core::Widget::getStyle(), and dw::core::Requisition::width.
1.5.9