Falkon Develop
Cross-platform Qt-based web browser
QmlWebHitTestResult Class Reference

The class exposing result of WebHitTest to QML. More...

#include <qmlwebhittestresult.h>

Inheritance diagram for QmlWebHitTestResult:

Public Member Functions

 QmlWebHitTestResult (const WebHitTestResult &webHitTestResult, QObject *parent=nullptr)
 
Q_INVOKABLE bool isImage () const
 Checks if the context menu is requested on image. More...
 
Q_INVOKABLE bool isContentEditable () const
 Checks if the context menu is requested on editable content. More...
 
Q_INVOKABLE bool isContentSelected () const
 Checks if the context menu is requested on the selected content. More...
 
Q_INVOKABLE bool isNull () const
 Checks if the context menu is requested on null element. More...
 
Q_INVOKABLE bool isLink () const
 Checks if the context menu is requested on a link. More...
 
Q_INVOKABLE bool isMedia () const
 Checks if the context menu is requested on a media element. More...
 
Q_INVOKABLE bool mediaPaused () const
 Checks if the context menu requested on media element is paused. More...
 
Q_INVOKABLE bool mediaMuted () const
 Checks if the context menu requested on media element is muted. More...
 
QString tagName () const
 
QString baseUrl () const
 
QString linkTitle () const
 
QString linkUrl () const
 
QString imageUrl () const
 
QString mediaUrl () const
 
QPoint pos () const
 
QPointF viewportPos () const
 

Properties

QString tagName
 Gets the tagName of the element on which the context menu is requested. More...
 
QString baseUrl
 Gets the base url on which the context menu is requested. More...
 
QString linkTitle
 Gets the link title on which the context menu is requested. More...
 
QString linkUrl
 Gets the link url on which the context menu is requested. More...
 
QString imageUrl
 Gets the url of image on which the context menu is requested. More...
 
QString mediaUrl
 Gets the url of media on which the context menu is requested. More...
 
QPoint pos
 Gets the position at which the context menu is requested. More...
 
QPointF viewportPos
 Gets the viewport position at which the context menu is requested. More...
 

Detailed Description

The class exposing result of WebHitTest to QML.

Definition at line 26 of file qmlwebhittestresult.h.

Constructor & Destructor Documentation

◆ QmlWebHitTestResult()

QmlWebHitTestResult::QmlWebHitTestResult ( const WebHitTestResult webHitTestResult,
QObject *  parent = nullptr 
)
explicit

Definition at line 21 of file qmlwebhittestresult.cpp.

Member Function Documentation

◆ baseUrl()

QString QmlWebHitTestResult::baseUrl ( ) const

Definition at line 73 of file qmlwebhittestresult.cpp.

◆ imageUrl()

QString QmlWebHitTestResult::imageUrl ( ) const

Definition at line 90 of file qmlwebhittestresult.cpp.

◆ isContentEditable()

bool QmlWebHitTestResult::isContentEditable ( ) const

Checks if the context menu is requested on editable content.

Returns
true if the content is editable, else false

Definition at line 33 of file qmlwebhittestresult.cpp.

◆ isContentSelected()

bool QmlWebHitTestResult::isContentSelected ( ) const

Checks if the context menu is requested on the selected content.

Returns
true if content is selected, else false.

Definition at line 38 of file qmlwebhittestresult.cpp.

◆ isImage()

bool QmlWebHitTestResult::isImage ( ) const

Checks if the context menu is requested on image.

Returns
true if image, else false

Definition at line 28 of file qmlwebhittestresult.cpp.

◆ isLink()

bool QmlWebHitTestResult::isLink ( ) const

Checks if the context menu is requested on a link.

Returns
true if the element is link, else false

Definition at line 48 of file qmlwebhittestresult.cpp.

◆ isMedia()

bool QmlWebHitTestResult::isMedia ( ) const

Checks if the context menu is requested on a media element.

Returns
true if the element is media, else false

Definition at line 53 of file qmlwebhittestresult.cpp.

◆ isNull()

bool QmlWebHitTestResult::isNull ( ) const

Checks if the context menu is requested on null element.

Returns
true if the element is null, else false

Definition at line 43 of file qmlwebhittestresult.cpp.

◆ linkTitle()

QString QmlWebHitTestResult::linkTitle ( ) const

Definition at line 79 of file qmlwebhittestresult.cpp.

◆ linkUrl()

QString QmlWebHitTestResult::linkUrl ( ) const

Definition at line 84 of file qmlwebhittestresult.cpp.

◆ mediaMuted()

bool QmlWebHitTestResult::mediaMuted ( ) const

Checks if the context menu requested on media element is muted.

Returns
true if media is muted, else false

Definition at line 63 of file qmlwebhittestresult.cpp.

◆ mediaPaused()

bool QmlWebHitTestResult::mediaPaused ( ) const

Checks if the context menu requested on media element is paused.

Returns
true if media is paused, else false

Definition at line 58 of file qmlwebhittestresult.cpp.

◆ mediaUrl()

QString QmlWebHitTestResult::mediaUrl ( ) const

Definition at line 96 of file qmlwebhittestresult.cpp.

◆ pos()

QPoint QmlWebHitTestResult::pos ( ) const

Definition at line 102 of file qmlwebhittestresult.cpp.

◆ tagName()

QString QmlWebHitTestResult::tagName ( ) const

Definition at line 68 of file qmlwebhittestresult.cpp.

◆ viewportPos()

QPointF QmlWebHitTestResult::viewportPos ( ) const

Definition at line 107 of file qmlwebhittestresult.cpp.

Property Documentation

◆ baseUrl

QString QmlWebHitTestResult::baseUrl
read

Gets the base url on which the context menu is requested.

Definition at line 1 of file qmlwebhittestresult.h.

◆ imageUrl

QString QmlWebHitTestResult::imageUrl
read

Gets the url of image on which the context menu is requested.

Definition at line 1 of file qmlwebhittestresult.h.

◆ linkTitle

QString QmlWebHitTestResult::linkTitle
read

Gets the link title on which the context menu is requested.

Definition at line 1 of file qmlwebhittestresult.h.

◆ linkUrl

QString QmlWebHitTestResult::linkUrl
read

Gets the link url on which the context menu is requested.

Definition at line 1 of file qmlwebhittestresult.h.

◆ mediaUrl

QString QmlWebHitTestResult::mediaUrl
read

Gets the url of media on which the context menu is requested.

Definition at line 1 of file qmlwebhittestresult.h.

◆ pos

QPoint QmlWebHitTestResult::pos
read

Gets the position at which the context menu is requested.

Definition at line 1 of file qmlwebhittestresult.h.

◆ tagName

QString QmlWebHitTestResult::tagName
read

Gets the tagName of the element on which the context menu is requested.

Definition at line 1 of file qmlwebhittestresult.h.

◆ viewportPos

QPointF QmlWebHitTestResult::viewportPos
read

Gets the viewport position at which the context menu is requested.

Definition at line 1 of file qmlwebhittestresult.h.


The documentation for this class was generated from the following files: