view dw/ruler.hh @ 2104:3e7e5395f0bc

non-ASCII keybindings Alexander Voigt has kindly done some testing, and it seems that this makes bindings to most keys on a German keyboard possible -- except those that need AltGr don't work yet.
author corvid <corvid@lavabit.com>
date Thu, 23 Jun 2011 19:24:11 +0000
parents b277eed3119c
children
line wrap: on
line source
#ifndef __RULER_HH__
#define __RULER_HH__

#include "core.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.
 * The only remarkable point is that the HAS_CONTENT flag is
 * cleared.
 */
class Ruler: public core::Widget
{
protected:
   void sizeRequestImpl (core::Requisition *requisition);
   void draw (core::View *view, core::Rectangle *area);

public:
   Ruler ();

   core::Iterator *iterator (core::Content::Type mask, bool atEnd);
};

} // namespace dw

#endif // __RULER_HH__