dillo
3.0.5
About: dillo is a small, fast, extensible Web browser particularly suitable for older or smaller computers and embedded systems (but only limited or no support for frames, CSS, JavaScript, Java). Fossies Dox: dillo-3.0.5.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 1 #ifndef __ITERATOR_HH__ 2 #define __ITERATOR_HH__ 4 #ifndef __INCLUDED_FROM_DW_CORE_HH__ 5 # error Do not include this file directly, use "core.hh" instead. 39 virtual void unref ();
46 virtual bool next () = 0;
53 virtual bool prev () = 0;
216 start, end, hpos, vpos); }
258 #endif // __ITERATOR_HH__
virtual bool next()=0
Move iterator forward and store content it.
int compareTo(lout::object::Comparable *other)
Compare two objects c1 and c2.
CharIterator * cloneCharIterator()
bool prev()
Move iterator backward and store content it.
bool prev()
Move iterator backward and store content it.
static Iterator * searchDownward(Iterator *it, Content::Type mask, bool fromEnd)
static void unhighlight(CharIterator *it1, CharIterator *it2, HighlightLayer layer)
int compareTo(lout::object::Comparable *other)
Compare two objects c1 and c2.
virtual void getAllocation(int start, int end, Allocation *allocation)=0
Return the shape, which a part of the item, the iterator points on, allocates.
A stack of iterators, to iterate recursively through a widget tree.
Iterators are used to iterate through the contents of a widget.
lout::object::Object * clone()
Return an exact copy of the object.
This implementation of dw::core::Iterator can be used by widgets with no contents.
DeepIterator * cloneDeepIterator()
This implementation of dw::core::Iterator can be used by widgets having one text word as contents.
Represents the allocation, i.e. actual position and size of a dw::core::Widget.
bool next()
Move iterator forward and store content it.
virtual void highlight(int start, int end, HighlightLayer layer)=0
Extend highlighted region to contain part of the current content.
Iterator * getTopIterator()
void getAllocation(int start, int end, Allocation *allocation)
Return the shape, which a part of the item, the iterator points on, allocates.
Typed version of container::untyped::Vector.
static void scrollTo(CharIterator *it1, CharIterator *it2, HPosition hpos, VPosition vpos)
virtual Object * clone()
Return an exact copy of the object.
virtual void unhighlight(int direction, HighlightLayer layer)=0
Shrink highlighted region to no longer contain the current content.
void unhighlight(int direction, HighlightLayer layer)
Shrink highlighted region to no longer contain the current content.
Iterator * get(int pos) const
This is the base class for many other classes, which defines very common virtual methods.
static void scrollTo(DeepIterator *it1, DeepIterator *it2, int start, int end, HPosition hpos, VPosition vpos)
bool next()
Move iterator forward and store content it.
void highlight(int start, int end, HighlightLayer layer)
Extend highlighted region to contain part of the current content.
virtual bool prev()=0
Move iterator backward and store content it.
bool equals(Object *other)
Returns, whether two objects are equal.
EmptyIterator(EmptyIterator &it)
int compareTo(lout::object::Comparable *other)
Compare two objects c1 and c2.
void getAllocation(int start, int end, Allocation *allocation)
Return the shape, which a part of the item, the iterator points on, allocates.
DeepIterator * createVariant(Iterator *it)
static Iterator * searchSideward(Iterator *it, Content::Type mask, bool fromEnd)
lout::object::Object * clone()
Return an exact copy of the object.
Vector(int initSize, bool ownerOfObjects)
lout::object::Object * clone()
Return an exact copy of the object.
Instances of a sub class of may be compared (less, greater).
int compareTo(lout::object::Comparable *other)
Compare two objects c1 and c2.
Iterator(Widget *widget, Content::Type mask, bool atEnd)
void put(Iterator *newElement, int newPos=-1)
bool prev()
Move iterator backward and store content it.
bool next()
Move iterator forward and store content it.
Iterator * cloneIterator()
void unhighlight(int direction, HighlightLayer layer)
virtual void unref()
Delete the iterator.
static void highlight(CharIterator *it1, CharIterator *it2, HighlightLayer layer)
Dw is in this namespace, or sub namespaces of this one.
void getAllocation(int start, int end, Allocation *allocation)
Return the shape, which a part of the item, the iterator points on, allocates.
void highlight(int start, int end, HighlightLayer layer)
Highlight a part of the current content.
static void scrollTo(Iterator *it1, Iterator *it2, int start, int end, HPosition hpos, VPosition vpos)
Scrolls the viewport, so that the region between it1 and it2 is seen, according to hpos and vpos.
TextIterator(TextIterator &it)