KHTML
#include <khtml_caret_p.h>
Classes | |
struct | SeekBoxParams |
Public Member Functions | |
InlineFlowBox * | baseFlowBox () const |
CaretBoxIterator | begin () |
RenderBlock * | containingBlock () const |
RenderBox * | enclosingObject () const |
CaretBoxIterator | end () |
bool | isOutside () const |
bool | isOutsideEnd () const |
CaretBoxIterator | preBegin () |
CaretBoxIterator | preEnd () |
Static Public Member Functions | |
static CaretBoxLine * | constructCaretBoxLine (MassDeleter< CaretBoxLine > *deleter, InlineFlowBox *baseFlowBox, InlineBox *seekBox, bool seekOutside, bool seekOutsideEnd, CaretBoxIterator &iter, RenderObject *seekObject=0) |
static CaretBoxLine * | constructCaretBoxLine (MassDeleter< CaretBoxLine > *deleter, RenderBox *cb, bool outside, bool outsideEnd, CaretBoxIterator &iter) |
Protected Member Functions | |
CaretBoxLine () | |
CaretBoxLine (InlineFlowBox *basefb) | |
void | addConvertedInlineBox (InlineBox *, SeekBoxParams &) |
void | addCreatedFlowBoxEdge (InlineFlowBox *flowBox, const QFontMetrics &fm, bool left, bool rtl) |
void | addCreatedFlowBoxInside (InlineFlowBox *flowBox, const QFontMetrics &fm) |
void | addCreatedInlineBoxEdge (InlineBox *box, const QFontMetrics &fm, bool left, bool rtl) |
Protected Attributes | |
InlineFlowBox * | basefb |
CaretBoxDeleter | caret_boxes |
Detailed Description
Resembles a line consisting of caret boxes.
To the contrary of InlineFlowBoxes which are nested as needed to map the DOM to the rendered representation, it is sufficient for caret navigation to provide a linear list of unnested caret boxes.
Definition at line 290 of file khtml_caret_p.h.
Constructor & Destructor Documentation
|
inlineprotected |
Definition at line 296 of file khtml_caret_p.h.
|
inlineprotected |
Definition at line 297 of file khtml_caret_p.h.
Member Function Documentation
|
protected |
recursively converts the given inline box into caret boxes and adds them to this caret box line.
It will additionally look for the caret box specified in SeekBoxParams.
Definition at line 664 of file khtml_caret.cpp.
|
protected |
creates and adds the edge of an inline flow box
- Parameters
-
flowBox inline flow box fm font metrics of inline flow box left true to add left edge, false to add right edge rtl true if direction is rtl
Definition at line 785 of file khtml_caret.cpp.
|
protected |
creates and adds the inside of an inline flow box
- Parameters
-
flowBox inline flow box fm font metrics of inline flow box
Definition at line 771 of file khtml_caret.cpp.
|
protected |
creates and adds the edge of a generic inline box
- Parameters
-
box inline box fm font metrics of inline box left true to add left edge, false to add right edge rtl true if direction is rtl
Definition at line 798 of file khtml_caret.cpp.
|
inline |
returns the base inline flow box which the caret boxes of this caret box line have been constructed from.
This is generally a root line box, but may be an inline flow box when the base is restricted to an inline element.
Definition at line 338 of file khtml_caret_p.h.
|
inline |
Definition at line 303 of file khtml_caret_p.h.
|
static |
constructs a new caret box line out of the given inline flow box
- Parameters
-
deleter deleter which handles alloc+dealloc of the object baseFlowBox basic flow box which to create a caret line box from seekBox seek this box within the constructed line seekOutside denoting whether position is outside of seekBox seekOutsideEnd whether at the outside end of seekBox iter returns an iterator that corresponds to seekBox. If no suitable caret box exists, it will return end() seekObject seek this render object within the constructed line. It will only be regarded if seekBox
is 0.iter
will then point to the first caret box whose render object matches.
|
static |
constructs a new caret box line for the given render block.
- Parameters
-
deleter deleter which handles alloc+dealloc of the object cb render block or render replaced outside true when line is to be constructed outside outsideEnd true when the ending outside is meant iter returns the iterator to the caret box representing the given position for cb
|
inline |
returns the containing block
Definition at line 341 of file khtml_caret_p.h.
|
inline |
returns the enclosing object
Definition at line 343 of file khtml_caret_p.h.
|
inline |
Definition at line 310 of file khtml_caret_p.h.
|
inline |
returns whether this caret box line is outside.
- Returns
- true if this caret box represents an outside position of this line box' containing block, false otherwise.
Definition at line 349 of file khtml_caret_p.h.
|
inline |
returns whether this caret box line is at the outside end.
The result cannot be relied upon unless isOutside() returns true.
Definition at line 359 of file khtml_caret_p.h.
|
inline |
Definition at line 317 of file khtml_caret_p.h.
|
inline |
Definition at line 324 of file khtml_caret_p.h.
Member Data Documentation
|
protected |
Definition at line 294 of file khtml_caret_p.h.
|
protected |
Definition at line 292 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.