diff options
Diffstat (limited to 'dw/ruler.cc')
-rw-r--r-- | dw/ruler.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dw/ruler.cc b/dw/ruler.cc index bff43479..fc0bbce6 100644 --- a/dw/ruler.cc +++ b/dw/ruler.cc @@ -79,6 +79,18 @@ void Ruler::draw (core::View *view, core::Rectangle *area, drawWidgetBox (view, area, false); } +core::Widget *Ruler::getWidgetAtPoint (int x, int y, + core::GettingWidgetAtPointContext + *context) +{ + // Override (complex) implementation OOFAwareWidget::getWidgetAtPoint(). + + if (inAllocation (x, y)) + return this; + else + return NULL; +} + core::Iterator *Ruler::iterator (core::Content::Type mask, bool atEnd) { /** \todo TextIterator? */ |