dw::Ruler Class Reference

Widget for drawing (horizontal) rules. More...

#include <ruler.hh>

List of all members.

Public Member Functions

 Ruler ()
core::Iteratoriterator (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)


Detailed Description

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.


Constructor & Destructor Documentation

dw::Ruler::Ruler (  ) 


Member Function Documentation

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.

Todo:
TextIterator?

Implements dw::core::Widget.

void dw::Ruler::sizeRequestImpl ( core::Requisition requisition  )  [protected, virtual]


The documentation for this class was generated from the following files:

Generated on Wed Sep 7 02:00:37 2011 for Dillo by  doxygen 1.5.9