The QWebHitTestResult class provides information about the web page content after a hit test. More...
#include <qwebframe.h>
Public Member Functions | |
| QWebHitTestResult () | |
| QWebHitTestResult (const QWebHitTestResult &other) | |
| QWebHitTestResult & | operator= (const QWebHitTestResult &other) |
| ~QWebHitTestResult () | |
| bool | isNull () const |
| QPoint | pos () const |
| QRect | boundingRect () const |
| QWebElement | enclosingBlockElement () const |
| QString | title () const |
| QString | linkText () const |
| QUrl | linkUrl () const |
| QUrl | linkTitle () const |
| QWebFrame * | linkTargetFrame () const |
| QWebElement | linkElement () const |
| QString | alternateText () const |
| QUrl | imageUrl () const |
| QPixmap | pixmap () const |
| bool | isContentEditable () const |
| bool | isContentSelected () const |
| QWebElement | element () const |
| QWebFrame * | frame () const |
Private Member Functions | |
| QWebHitTestResult (QWebHitTestResultPrivate *priv) | |
Private Attributes | |
| QWebHitTestResultPrivate * | d |
Friends | |
| class | QWebFrame |
| class | QWebPagePrivate |
| class | QWebPage |
The QWebHitTestResult class provides information about the web page content after a hit test.
QWebHitTestResult is returned by QWebFrame::hitTestContent() to provide information about the content of the web page at the specified position.
Definition at line 62 of file qwebframe.h.
| QWebHitTestResult::QWebHitTestResult | ( | ) |
Constructs a null hit test result.
Definition at line 1631 of file qwebframe.cpp.
| QWebHitTestResult::QWebHitTestResult | ( | const QWebHitTestResult & | other | ) |
Constructs a hit test result from other.
Definition at line 1639 of file qwebframe.cpp.
References d.
| QWebHitTestResult::~QWebHitTestResult | ( | ) |
| QWebHitTestResult::QWebHitTestResult | ( | QWebHitTestResultPrivate * | priv | ) | [private] |
Definition at line 1583 of file qwebframe.cpp.
| QString QWebHitTestResult::alternateText | ( | ) | const |
Returns the alternate text of the element. This corresponds to the HTML alt attribute.
Definition at line 1784 of file qwebframe.cpp.
References d.
| QRect QWebHitTestResult::boundingRect | ( | ) | const |
Definition at line 1694 of file qwebframe.cpp.
References d.
| QWebElement QWebHitTestResult::element | ( | ) | const |
Definition at line 1836 of file qwebframe.cpp.
References d.
| QWebElement QWebHitTestResult::enclosingBlockElement | ( | ) | const |
A block element is an element that is rendered using the CSS "block" style. This includes for example text paragraphs.
Definition at line 1709 of file qwebframe.cpp.
References d.
| QWebFrame * QWebHitTestResult::frame | ( | ) | const |
Returns the frame the hit test was executed in.
Definition at line 1847 of file qwebframe.cpp.
References d.
| QUrl QWebHitTestResult::imageUrl | ( | ) | const |
| bool QWebHitTestResult::isContentEditable | ( | ) | const |
Returns true if the content is editable by the user; otherwise returns false.
Definition at line 1815 of file qwebframe.cpp.
References d.
| bool QWebHitTestResult::isContentSelected | ( | ) | const |
Returns true if the content tested is part of the selection; otherwise returns false.
Definition at line 1825 of file qwebframe.cpp.
References d.
| bool QWebHitTestResult::isNull | ( | ) | const |
Returns true if the hit test result is null; otherwise returns false.
Definition at line 1675 of file qwebframe.cpp.
References d.
| QWebElement QWebHitTestResult::linkElement | ( | ) | const |
Definition at line 1762 of file qwebframe.cpp.
References d.
| QWebFrame * QWebHitTestResult::linkTargetFrame | ( | ) | const |
Returns the frame that will load the link if it is activated.
Definition at line 1774 of file qwebframe.cpp.
References d.
| QString QWebHitTestResult::linkText | ( | ) | const |
| QUrl QWebHitTestResult::linkTitle | ( | ) | const |
| QUrl QWebHitTestResult::linkUrl | ( | ) | const |
Returns the url to which the link points to.
Definition at line 1739 of file qwebframe.cpp.
References d.
| QWebHitTestResult & QWebHitTestResult::operator= | ( | const QWebHitTestResult & | other | ) |
Assigns the other hit test result to this.
Definition at line 1649 of file qwebframe.cpp.
References d.
| QPixmap QWebHitTestResult::pixmap | ( | ) | const |
Returns a QPixmap containing the image. A null pixmap is returned if the element being tested is not an image.
Definition at line 1805 of file qwebframe.cpp.
References d.
| QPoint QWebHitTestResult::pos | ( | ) | const |
Returns the position where the hit test occured.
Definition at line 1683 of file qwebframe.cpp.
References d.
| QString QWebHitTestResult::title | ( | ) | const |
Returns the title of the nearest enclosing HTML element.
Definition at line 1719 of file qwebframe.cpp.
References d.
friend class QWebFrame [friend] |
Definition at line 98 of file qwebframe.h.
friend class QWebPage [friend] |
Definition at line 100 of file qwebframe.h.
friend class QWebPagePrivate [friend] |
Definition at line 99 of file qwebframe.h.
QWebHitTestResultPrivate* QWebHitTestResult::d [private] |
Definition at line 96 of file qwebframe.h.
1.6.2-20100208