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. 36 this->widget = widget;
86 int curStart, curEnd, cmp;
108 eit3->
next (), atStart =
false) {
133 if (alloc1.
x > alloc2.
x) {
174 if (alloc1.
y > alloc2.
y) {
185 x1, y1, x2 - x1, y2 - y1);
249 const char *text):
Iterator (widget, mask, atEnd)
322 for (
int i = 0; i <
size (); i++)
355 while (fromEnd ? it2->prev () : it2->next ()) {
396 while (fromEnd ? it2->prev () : it2->next ()) {
426 it2->getContent()->widget == it->
getWidget ()) {
505 bool hasNext = it->
next();
545 while (
stack.
get(level)->getWidget ()
546 == otherDeepIterator->
stack.
get(level)->getWidget ()) {
548 level == otherDeepIterator->
stack.
size() - 1)
553 while (
stack.
get(level)->getWidget ()
554 != otherDeepIterator->
stack.
get(level)->getWidget ())
675 return pos - otherIt->
pos;
682 it->getContent()->text[pos] == 0)) {
688 ch = it->getContent()->text[pos];
699 }
else if (ch == END)
704 ch = it->getContent()->text[pos];
706 if (it->getContent()->space) {
725 if (it->getContent()->text[0] == 0)
728 pos = strlen (it->getContent()->text);
729 if (it->getContent()->space) {
733 ch = it->getContent()->text[pos];
743 }
else if (ch == START)
748 ch = it->getContent()->text[pos];
768 it->
next (), start =
false) {
virtual bool next()=0
Move iterator forward and store content it.
int compareTo(lout::object::Comparable *other)
Compare two objects c1 and c2.
void scrollTo(HPosition hpos, VPosition vpos, int x, int y, int width, int height)
Scrolls all viewports, so that the region [x, y, width, height] is seen, according to hpos and vpos.
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.
void getAllocation(int start, int end, Allocation *allocation)
Return the shape, which a part of the item, the iterator points on, allocates.
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.
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.
virtual int compareTo(Comparable *other)=0
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.
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.
void put(T *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)