KHTML
#include <khtml_caret_p.h>
Public Member Functions | |
EditableCaretBoxIterator (LineIterator &lit, bool fromEnd=false, CaretBoxIterator *it=0) | |
EditableCaretBoxIterator () | |
void | advance (bool toBegin) |
bool | isAdjacent () const |
EditableCaretBoxIterator & | operator++ () |
EditableCaretBoxIterator & | operator-- () |
Public Member Functions inherited from khtml::CaretBoxIterator | |
CaretBoxIterator () | |
CaretBox * | data () const |
bool | operator!= (const CaretBoxIterator &it) const |
CaretBox * | operator* () const |
CaretBoxIterator & | operator++ () |
CaretBoxIterator & | operator-- () |
bool | operator== (const CaretBoxIterator &it) const |
Protected Member Functions | |
bool | isEditable (const CaretBoxIterator &boxit, bool fromEnd) |
Additional Inherited Members | |
Protected Attributes inherited from khtml::CaretBoxIterator | |
CaretBoxLine * | cbl |
int | index |
Detailed Description
Iterates over the editable inner elements of a caret line box.
The incrementor will traverse all caret boxes according to the associated linear document's caret advance policy. In contrast to CaretBoxIterator
this iterator only regards caret boxes which are editable.
Definition at line 742 of file khtml_caret_p.h.
Constructor & Destructor Documentation
|
inline |
initializes a new iterator from the given line iterator, beginning with the given caret box iterator, if specified
Definition at line 751 of file khtml_caret_p.h.
|
inline |
empty constructor.
Use only to copy another iterator into this one.
Definition at line 764 of file khtml_caret_p.h.
Member Function Documentation
void khtml::EditableCaretBoxIterator::advance | ( | bool | toBegin | ) |
advances to the editable caret box to come
- Parameters
-
toBegin true, move towards beginning, false, move towards end.
Definition at line 1505 of file khtml_caret.cpp.
|
inline |
returns true
when the current caret box is adjacent to the previously iterated caret box, i.
e. no intervening caret boxes.
Definition at line 769 of file khtml_caret_p.h.
|
protected |
finds out if the given box is editable.
- Parameters
-
boxit iterator to given caret box fromEnd true when advancing towards the beginning
- Returns
true
if box is editable
Definition at line 1642 of file khtml_caret.cpp.
|
inline |
increments the iterator to point to the next editable caret box.
Definition at line 773 of file khtml_caret_p.h.
|
inline |
decrements the iterator to point to the previous editable caret box.
Definition at line 777 of file khtml_caret_p.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.