4#ifndef __INCLUDED_FROM_DW_CORE_HH__
5# error Do not include this file directly, use "core.hh" instead.
40 virtual void unref ();
227 start, end, hpos, vpos); }
static void highlight(CharIterator *it1, CharIterator *it2, HighlightLayer layer)
CharIterator * cloneCharIterator()
int compareTo(lout::object::Comparable *other)
Compare two objects, this and other.
static void unhighlight(CharIterator *it1, CharIterator *it2, HighlightLayer layer)
static void scrollTo(CharIterator *it1, CharIterator *it2, HPosition hpos, VPosition vpos)
lout::object::Object * clone()
Return an exact copy of the object.
A stack of iterators, to iterate recursively through a widget tree.
static Iterator * searchDownward(Iterator *it, Content::Type mask, bool fromEnd)
static Iterator * searchSideward(Iterator *it, Content::Type mask, bool fromEnd)
DeepIterator * cloneDeepIterator()
static int getRespectiveLevel(Widget *widget, Content::Type mask)
DeepIterator * createVariant(Iterator *it)
void highlight(int start, int end, HighlightLayer layer)
Highlight a part of the current content.
int compareTo(lout::object::Comparable *other)
Compare two objects, this and other.
bool prev()
Move iterator backward and store content it.
Widget * getRespectiveParent(Widget *widget)
lout::object::Object * clone()
Return an exact copy of the object.
static Widget * getRespectiveParent(Widget *widget, Content::Type mask)
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.
static void scrollTo(DeepIterator *it1, DeepIterator *it2, int start, int end, HPosition hpos, VPosition vpos)
int getRespectiveLevel(Widget *widget)
Iterator * getTopIterator()
void unhighlight(int direction, HighlightLayer layer)
This implementation of dw::core::Iterator can be used by widgets with no contents.
bool next()
Move iterator forward and store content it.
lout::object::Object * clone()
Return an exact copy of the object.
void unhighlight(int direction, HighlightLayer layer)
Shrink highlighted region to no longer contain the current content.
int compareTo(lout::object::Comparable *other)
Compare two objects, this and other.
void getAllocation(int start, int end, Allocation *allocation)
Return the shape, which a part of the item, the iterator points on, allocates.
bool prev()
Move iterator backward and store content it.
void highlight(int start, int end, HighlightLayer layer)
Extend highlighted region to contain part of the current content.
Iterators are used to iterate through the contents of a widget.
virtual void highlight(int start, int end, HighlightLayer layer)=0
Extend highlighted region to contain part of the current content.
virtual void getAllocation(int start, int end, Allocation *allocation)=0
Return the shape, which a part of the item, the iterator points on, allocates.
virtual void unref()
Delete the iterator.
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.
void intoStringBuffer(lout::misc::StringBuffer *sb)
Store a textual representation of the object in a misc::StringBuffer.
virtual bool next()=0
Move iterator forward and store content it.
virtual bool prev()=0
Move iterator backward and store content it.
bool equals(Object *other)
Returns, whether two objects are equal.
virtual void unhighlight(int direction, HighlightLayer layer)=0
Shrink highlighted region to no longer contain the current content.
Iterator * cloneIterator()
This implementation of dw::core::Iterator can be used by widgets having one text word as contents.
const char * text
May be NULL, in this case, the next is skipped.
bool next()
Move iterator forward and store content it.
bool prev()
Move iterator backward 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.
int compareTo(lout::object::Comparable *other)
Compare two objects, this and other.
Typed version of container::untyped::Vector.
void put(Iterator *newElement, int newPos=-1)
Vector(int initSize, bool ownerOfObjects)
Iterator * get(int pos) const
A class for fast concatenation of a large number of strings.
Instances of a sub class of may be compared (less, greater).
This is the base class for many other classes, which defines very common virtual methods.
virtual Object * clone()
Return an exact copy of the object.
Dw is in this namespace, or sub namespaces of this one.
Represents the allocation, i.e.