Qt 4.8
Public Functions | Public Variables | List of all members
QWindowSystemInterfacePrivate::MouseEvent Class Reference

#include <qwindowsysteminterface_qpa_p.h>

Inheritance diagram for QWindowSystemInterfacePrivate::MouseEvent:
QWindowSystemInterfacePrivate::UserEvent QWindowSystemInterfacePrivate::WindowSystemEvent

Public Functions

 MouseEvent (QWidget *w, ulong time, const QPoint &local, const QPoint &global, Qt::MouseButtons b)
 
- Public Functions inherited from QWindowSystemInterfacePrivate::UserEvent
 UserEvent (QWidget *w, ulong time, EventType t)
 
- Public Functions inherited from QWindowSystemInterfacePrivate::WindowSystemEvent
 WindowSystemEvent (EventType t)
 
virtual ~WindowSystemEvent ()
 

Public Variables

Qt::MouseButtons buttons
 This property holds the mouse buttons pressed when the event was generated. More...
 
QPoint globalPos
 
QPoint localPos
 
- Public Variables inherited from QWindowSystemInterfacePrivate::UserEvent
unsigned long timestamp
 
QWeakPointer< QWidgetwidget
 
- Public Variables inherited from QWindowSystemInterfacePrivate::WindowSystemEvent
EventType type
 

Detailed Description

Definition at line 136 of file qwindowsysteminterface_qpa_p.h.

Constructors and Destructors

◆ MouseEvent()

QWindowSystemInterfacePrivate::MouseEvent::MouseEvent ( QWidget w,
ulong  time,
const QPoint local,
const QPoint global,
Qt::MouseButtons  b 
)
inline

Definition at line 138 of file qwindowsysteminterface_qpa_p.h.

Properties

◆ buttons

int MouseEvent::buttons

This property holds the mouse buttons pressed when the event was generated.

For mouse move events, this is all buttons that are pressed down. For mouse press and double click events this includes the button that caused the event. For mouse release events this excludes the button that caused the event.

It contains a bitwise combination of:

Definition at line 142 of file qwindowsysteminterface_qpa_p.h.

Referenced by qt_cleanup().

◆ globalPos

QPoint QWindowSystemInterfacePrivate::MouseEvent::globalPos

Definition at line 141 of file qwindowsysteminterface_qpa_p.h.

Referenced by qt_cleanup().

◆ localPos

QPoint QWindowSystemInterfacePrivate::MouseEvent::localPos

Definition at line 140 of file qwindowsysteminterface_qpa_p.h.

Referenced by qt_cleanup().


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