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

The class exposing MouseEvent to QML. More...

#include <qmlmouseevent.h>

Inheritance diagram for QmlMouseEvent:

Public Member Functions

 QmlMouseEvent (QMouseEvent *mouseEvent=nullptr, QObject *parent=nullptr)
 
int button () const
 
int buttons () const
 
QPoint globalPos () const
 
int globalX () const
 
int globalY () const
 
QPointF localPos () const
 
QPoint pos () const
 
QPointF screenPos () const
 
int source () const
 
QPointF windowPos () const
 
int x () const
 
int y () const
 
void clear ()
 

Properties

int button
 button associated with the event More...
 
int buttons
 button state associated with the event More...
 
QPoint globalPos
 global position of mouse cursor at the time of event More...
 
int globalX
 global x position of mouse cursor at the time of event More...
 
int globalY
 global y position of mouse cursor at the time of event More...
 
QPointF localPos
 local position of mouse cursor at the time of event More...
 
QPoint pos
 position of mouse cursor at the time of event More...
 
QPointF screenPos
 screen position of mouse cursor at the time of event More...
 
int source
 source of the event More...
 
QPointF windowPos
 window position of mouse cursor at the time of event More...
 
int x
 x position of mouse cursor at the time of event More...
 
int y
 y position of mouse cursor at the time of event More...
 

Detailed Description

The class exposing MouseEvent to QML.

Definition at line 25 of file qmlmouseevent.h.

Constructor & Destructor Documentation

◆ QmlMouseEvent()

QmlMouseEvent::QmlMouseEvent ( QMouseEvent *  mouseEvent = nullptr,
QObject *  parent = nullptr 
)
explicit

Definition at line 21 of file qmlmouseevent.cpp.

Member Function Documentation

◆ button()

int QmlMouseEvent::button ( ) const

Definition at line 27 of file qmlmouseevent.cpp.

◆ buttons()

int QmlMouseEvent::buttons ( ) const

Definition at line 35 of file qmlmouseevent.cpp.

◆ clear()

void QmlMouseEvent::clear ( )

Definition at line 123 of file qmlmouseevent.cpp.

◆ globalPos()

QPoint QmlMouseEvent::globalPos ( ) const

Definition at line 43 of file qmlmouseevent.cpp.

◆ globalX()

int QmlMouseEvent::globalX ( ) const

Definition at line 51 of file qmlmouseevent.cpp.

◆ globalY()

int QmlMouseEvent::globalY ( ) const

Definition at line 59 of file qmlmouseevent.cpp.

◆ localPos()

QPointF QmlMouseEvent::localPos ( ) const

Definition at line 67 of file qmlmouseevent.cpp.

◆ pos()

QPoint QmlMouseEvent::pos ( ) const

Definition at line 75 of file qmlmouseevent.cpp.

◆ screenPos()

QPointF QmlMouseEvent::screenPos ( ) const

Definition at line 83 of file qmlmouseevent.cpp.

◆ source()

int QmlMouseEvent::source ( ) const

Definition at line 91 of file qmlmouseevent.cpp.

◆ windowPos()

QPointF QmlMouseEvent::windowPos ( ) const

Definition at line 99 of file qmlmouseevent.cpp.

◆ x()

int QmlMouseEvent::x ( ) const

Definition at line 107 of file qmlmouseevent.cpp.

◆ y()

int QmlMouseEvent::y ( ) const

Definition at line 115 of file qmlmouseevent.cpp.

Property Documentation

◆ button

int QmlMouseEvent::button
read

button associated with the event

Definition at line 1 of file qmlmouseevent.h.

◆ buttons

int QmlMouseEvent::buttons
read

button state associated with the event

Definition at line 1 of file qmlmouseevent.h.

◆ globalPos

QPoint QmlMouseEvent::globalPos
read

global position of mouse cursor at the time of event

Definition at line 1 of file qmlmouseevent.h.

◆ globalX

int QmlMouseEvent::globalX
read

global x position of mouse cursor at the time of event

Definition at line 1 of file qmlmouseevent.h.

◆ globalY

int QmlMouseEvent::globalY
read

global y position of mouse cursor at the time of event

Definition at line 1 of file qmlmouseevent.h.

◆ localPos

QPointF QmlMouseEvent::localPos
read

local position of mouse cursor at the time of event

Definition at line 1 of file qmlmouseevent.h.

◆ pos

QPoint QmlMouseEvent::pos
read

position of mouse cursor at the time of event

Definition at line 1 of file qmlmouseevent.h.

◆ screenPos

QPointF QmlMouseEvent::screenPos
read

screen position of mouse cursor at the time of event

Definition at line 1 of file qmlmouseevent.h.

◆ source

int QmlMouseEvent::source
read

source of the event

Definition at line 1 of file qmlmouseevent.h.

◆ windowPos

QPointF QmlMouseEvent::windowPos
read

window position of mouse cursor at the time of event

Definition at line 1 of file qmlmouseevent.h.

◆ x

int QmlMouseEvent::x
read

x position of mouse cursor at the time of event

Definition at line 1 of file qmlmouseevent.h.

◆ y

int QmlMouseEvent::y
read

y position of mouse cursor at the time of event

Definition at line 1 of file qmlmouseevent.h.


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