KHTML
#include <khtml_caret_p.h>
Public Member Functions | |
CaretBox () | |
CaretBox (InlineBox *ibox, bool outside, bool outsideEnd) | |
CaretBox (int x, int y, int w, int h, RenderBox *cb, bool outside, bool outsideEnd) | |
RenderBlock * | containingBlock () const |
RenderBox * | enclosingObject () const |
int | height () const |
InlineBox * | inlineBox () const |
bool | isInline () const |
bool | isInlineTextBox () const |
bool | isLineBreak () const |
bool | isOutside () const |
bool | isOutsideEnd () const |
long | maxOffset () const |
long | minOffset () const |
RenderObject * | object () const |
int | width () const |
int | xPos () const |
int | yPos () const |
Protected Attributes | |
InlineBox * | _box |
int | _h |
bool | _outside:1 |
short | _w |
int | _x |
int | _y |
RenderBox * | cb |
bool | outside_end:1 |
Detailed Description
Represents a rectangular box within which the caret is located.
The caret box serves as a wrapper for inline boxes of all kind. It either wraps an InlineBox, InlineTextBox, or InlineFlowBox, or if no such boxes exist for a certain context, it contains the relevant information directly.
This class will be constructed whenever a caret position has to be described.
Definition at line 126 of file khtml_caret_p.h.
Constructor & Destructor Documentation
|
inline |
empty constructor for later assignment
Definition at line 140 of file khtml_caret_p.h.
initializes the caret box from the given inline box
Definition at line 142 of file khtml_caret_p.h.
|
inline |
initializes the caret box from scratch
Definition at line 150 of file khtml_caret_p.h.
Member Function Documentation
|
inline |
returns the containing block of this caret box.
If the caret box resembles a block itself, its containing block is returned.
Definition at line 165 of file khtml_caret_p.h.
|
inline |
Definition at line 159 of file khtml_caret_p.h.
|
inline |
Definition at line 156 of file khtml_caret_p.h.
|
inline |
Definition at line 160 of file khtml_caret_p.h.
|
inline |
returns the replaced render object if this caret box represents one, 0 otherwise.
returns true if this caret box represents an inline element, or text box, otherwise false.
Definition at line 175 of file khtml_caret_p.h.
|
inline |
returns true if this caret box represents an inline text box.
Definition at line 178 of file khtml_caret_p.h.
|
inline |
returns true if this caret box represents a line break
Definition at line 181 of file khtml_caret_p.h.
|
inline |
returns true when this caret box represents an ouside position of an element.
Definition at line 188 of file khtml_caret_p.h.
|
inline |
returns the position at which the outside is targeted at.
This method's return value is meaningless if isOutside() is not true.
- Returns
- true if the outside end is meant, false if the outside beginning is meant.
Definition at line 195 of file khtml_caret_p.h.
|
inline |
returns the maximum offset for this caret box.
Definition at line 204 of file khtml_caret_p.h.
|
inline |
returns the minimum offset for this caret box.
Definition at line 201 of file khtml_caret_p.h.
|
inline |
returns the associated render object.
Definition at line 197 of file khtml_caret_p.h.
|
inline |
Definition at line 155 of file khtml_caret_p.h.
|
inline |
Definition at line 157 of file khtml_caret_p.h.
|
inline |
Definition at line 158 of file khtml_caret_p.h.
Member Data Documentation
|
protected |
Definition at line 128 of file khtml_caret_p.h.
|
protected |
Definition at line 130 of file khtml_caret_p.h.
|
protected |
Definition at line 134 of file khtml_caret_p.h.
|
protected |
Definition at line 129 of file khtml_caret_p.h.
|
protected |
Definition at line 131 of file khtml_caret_p.h.
|
protected |
Definition at line 132 of file khtml_caret_p.h.
|
protected |
Definition at line 133 of file khtml_caret_p.h.
|
protected |
Definition at line 135 of file khtml_caret_p.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:24 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.