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. 23 #include "../lout/msg.h" 24 #include "../lout/misc.hh" 33 Textblock::TextblockIterator::TextblockIterator (
Textblock *textblock,
36 core::Iterator (textblock, mask, atEnd)
38 index = atEnd ? textblock->
words->size () : -1;
45 core::Iterator (textblock, mask, false)
80 }
while ((textblock->
words->getRef(
index)->content.type & getMask()) == 0);
82 content = textblock->
words->getRef(
index)->content;
99 }
while ((textblock->
words->getRef(
index)->content.type & getMask()) == 0);
101 content = textblock->
words->getRef(
index)->content;
113 int oldEndIndex = textblock->
hlEnd[layer].
index;
114 int oldEndChar = textblock->
hlEnd[layer].
nChar;
136 oldEndIndex != textblock->
hlEnd[layer].
index ||
152 int oldEndIndex = textblock->
hlEnd[layer].
index;
153 int oldEndChar = textblock->
hlEnd[layer].
nChar;
155 if (direction == 0) {
172 oldEndIndex != textblock->
hlEnd[layer].
index ||
182 Line *line = textblock->
lines->getRef (lineIndex);
206 if (start > 0 || end < wordEnd) {
bool next()
Move iterator forward and store content it.
A Widget for rendering text blocks, i.e. paragraphs or sequences of paragraphs.
lout::object::Object * clone()
Return an exact copy of the object.
Represents the allocation, i.e. actual position and size of a dw::core::Widget.
int findLineOfWord(int wordIndex)
Find the line of word wordIndex.
void queueDrawRange(int index1, int index2)
int textWidth(const char *text, int start, int len, core::style::Style *style, bool isStart, bool isEnd)
core::style::Style * style
This is the base class for many other classes, which defines very common virtual methods.
int lineXOffsetWidget(Line *line)
Like lineXOffset, but relative to the allocation (i.e. including border etc.).
lout::misc::SimpleVector< Line > * lines
int compareTo(lout::object::Comparable *other)
Compare two objects c1 and c2.
TextblockIterator(Textblock *textblock, core::Content::Type mask, bool atEnd)
bool prev()
Move iterator backward and store content it.
int lineYOffsetCanvas(Line *line)
lout::misc::NotSoSimpleVector< Word > * words
Instances of a sub class of may be compared (less, greater).
struct dw::Textblock::@23 hlEnd[core::HIGHLIGHT_NUM_LAYERS]
struct dw::Textblock::@23 hlStart[core::HIGHLIGHT_NUM_LAYERS]
Dw is in this namespace, or sub namespaces of this one.
void getAllocation(int start, int end, core::Allocation *allocation)
Return the shape, which a part of the item, the iterator points on, allocates.
void highlight(int start, int end, core::HighlightLayer layer)
Extend highlighted region to contain part of the current content.
friend class TextblockIterator
void unhighlight(int direction, core::HighlightLayer layer)
Shrink highlighted region to no longer contain the current content.