#include <focusdata.h>
Inheritance diagram for Wt::FocusData:
Public Member Functions | |
Widget * | focusWidget () const |
Widget * | home () |
Widget * | next () |
Widget * | prev () |
Widget * | first () const |
Widget * | last () const |
int | count () const |
Protected Member Functions | |
FocusData () | |
Widget * | setFocus (const Widget *w) |
void | looseFocus () |
stop being clever and loose the damn focus | |
Private Attributes | |
WidgetList::iterator | current_it_ |
WidgetList::iterator | it_ |
Friends | |
class | Widget |
Definition at line 31 of file focusdata.h.
Wt::FocusData::FocusData | ( | ) | [inline, protected] |
int Wt::FocusData::count | ( | ) | const [inline] |
Widget* Wt::FocusData::first | ( | ) | const [inline] |
Widget* Wt::FocusData::focusWidget | ( | ) | const [inline] |
Definition at line 33 of file focusdata.h.
References current_it_.
Referenced by Wt::Widget::focusWidget(), home(), and setFocus().
00033 { 00034 return (current_it_ != end()) ? *current_it_ : 0; 00035 }
Widget* Wt::FocusData::home | ( | ) | [inline] |
Definition at line 37 of file focusdata.h.
References current_it_, focusWidget(), and it_.
00037 { 00038 it_ = current_it_; 00039 return focusWidget(); 00040 }
Here is the call graph for this function:
Widget* Wt::FocusData::last | ( | ) | const [inline] |
void Wt::FocusData::looseFocus | ( | ) | [inline, protected] |
stop being clever and loose the damn focus
Definition at line 91 of file focusdata.h.
References current_it_, and it_.
Referenced by Wt::Widget::~Widget().
00091 { 00092 current_it_ = end(); 00093 it_ = begin(); 00094 }
Widget* Wt::FocusData::next | ( | ) | [inline] |
Widget* Wt::FocusData::prev | ( | ) | [inline] |
Definition at line 84 of file focusdata.h.
References current_it_, focusWidget(), and it_.
Referenced by Wt::Widget::setFocus().
00084 { 00085 it_ = find(begin(), end(), w); 00086 current_it_ = it_; 00087 return focusWidget(); 00088 }
Here is the call graph for this function:
friend class Widget [friend] |
Definition at line 79 of file focusdata.h.
WidgetList::iterator Wt::FocusData::current_it_ [private] |
Definition at line 97 of file focusdata.h.
Referenced by focusWidget(), home(), looseFocus(), and setFocus().
WidgetList::iterator Wt::FocusData::it_ [private] |
Definition at line 97 of file focusdata.h.
Referenced by home(), looseFocus(), next(), prev(), and setFocus().
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.