#include <iterator.hh>
Public Types | |
| enum | { START = 257, END = 258 } |
Public Member Functions | |
| CharIterator (Widget *widget) | |
| ~CharIterator () | |
| lout::object::Object * | clone () |
| Return an exact copy of the object. | |
| int | compareTo (lout::misc::Comparable *other) |
| Compare two objects c1 and c2. | |
| bool | next () |
| bool | prev () |
| int | getChar () |
| CharIterator * | cloneCharIterator () |
Static Public Member Functions | |
| static void | highlight (CharIterator *it1, CharIterator *it2, HighlightLayer layer) |
| static void | unhighlight (CharIterator *it1, CharIterator *it2, HighlightLayer layer) |
| static void | scrollTo (CharIterator *it1, CharIterator *it2, HPosition hpos, VPosition vpos) |
Private Member Functions | |
| CharIterator () | |
Private Attributes | |
| DeepIterator * | it |
| int | pos |
| int | ch |
| dw::core::CharIterator::CharIterator | ( | Widget * | widget | ) |
References ch, it, dw::core::Widget::iterator(), dw::core::Content::SELECTION_CONTENT, START, and dw::core::Iterator::unref().
| dw::core::CharIterator::~CharIterator | ( | ) |
References it.
| object::Object * dw::core::CharIterator::clone | ( | ) | [virtual] |
Return an exact copy of the object.
Reimplemented from lout::object::Object.
References ch, CharIterator(), dw::core::DeepIterator::cloneDeepIterator(), it, and pos.
Referenced by cloneCharIterator().
| CharIterator* dw::core::CharIterator::cloneCharIterator | ( | ) | [inline] |
References clone().
Referenced by dw::core::FindtextState::search(), and dw::core::FindtextState::unhighlight().
| int dw::core::CharIterator::compareTo | ( | lout::misc::Comparable * | other | ) | [virtual] |
Compare two objects c1 and c2.
return a value < 0, when c1 is less than c2, a value > 0, when c1 is greater than c2, or 0, when c1 and c2 are equal.
If also object::Object is implemented, and if c1.equals(c2), c1.compareTo(c2) must be 0, but, unlike you may expect, the reversed is not necessarily true. This method returns 0, if, according to the rules for sorting, there is no difference, but there may still be differences (not relevant for sorting), which "equals" will care about.
Implements lout::misc::Comparable.
References dw::core::DeepIterator::compareTo(), it, and pos.
| int dw::core::CharIterator::getChar | ( | ) | [inline] |
| void dw::core::CharIterator::highlight | ( | CharIterator * | it1, | |
| CharIterator * | it2, | |||
| HighlightLayer | layer | |||
| ) | [static] |
References dw::core::DeepIterator::cloneDeepIterator(), dw::core::DeepIterator::compareTo(), END, getChar(), dw::core::DeepIterator::getContent(), dw::core::DeepIterator::highlight(), it, dw::core::DeepIterator::next(), pos, prev(), dw::core::Content::text, dw::core::Content::TEXT, and dw::core::Content::type.
Referenced by dw::core::FindtextState::search().
| bool dw::core::CharIterator::next | ( | ) |
References dw::core::Content::BREAK, ch, END, dw::core::DeepIterator::getContent(), it, dw::core::DeepIterator::next(), pos, dw::core::Content::space, START, dw::core::Content::text, dw::core::Content::TEXT, and dw::core::Content::type.
Referenced by dw::core::FindtextState::search(), and dw::core::FindtextState::search0().
| bool dw::core::CharIterator::prev | ( | ) |
References dw::core::Content::BREAK, ch, END, dw::core::DeepIterator::getContent(), it, pos, dw::core::DeepIterator::prev(), dw::core::Content::space, START, dw::core::Content::text, dw::core::Content::TEXT, and dw::core::Content::type.
Referenced by highlight(), dw::core::FindtextState::search(), dw::core::FindtextState::search0(), and dw::core::FindtextState::unhighlight().
| static void dw::core::CharIterator::scrollTo | ( | CharIterator * | it1, | |
| CharIterator * | it2, | |||
| HPosition | hpos, | |||
| VPosition | vpos | |||
| ) | [inline, static] |
| void dw::core::CharIterator::unhighlight | ( | CharIterator * | it1, | |
| CharIterator * | it2, | |||
| HighlightLayer | layer | |||
| ) | [static] |
int dw::core::CharIterator::ch [private] |
Referenced by CharIterator(), clone(), getChar(), next(), and prev().
DeepIterator* dw::core::CharIterator::it [private] |
Referenced by CharIterator(), clone(), compareTo(), highlight(), next(), prev(), scrollTo(), unhighlight(), and ~CharIterator().
int dw::core::CharIterator::pos [private] |
Referenced by clone(), compareTo(), highlight(), next(), prev(), and scrollTo().
1.5.9